/* =============================================
   mokume — Design-Forward Brand Site
   Colors: Black / Brown / Green
   ============================================= */

:root {
  --black:       #0f0e0d;
  --charcoal:    #1c1a18;
  --brown-dark:  #3d2b1f;
  --brown:       #7b4f2e;
  --brown-light: #b07d56;
  --tan:         #d4b896;
  --cream:       #f5f0e8;
  --green-dark:  #1e3a2f;
  --green:       #2d5a3d;
  --green-mid:   #4a7c5f;
  --green-light: #7aad8e;
  --white:       #fdfcfa;

  --font-sans:   'Noto Sans JP', sans-serif;
  --font-serif:  'Noto Serif JP', serif;

  --radius:      4px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Container */
.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.header.scrolled {
  background: rgba(15, 14, 13, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo__text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}
.logo__sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--brown-light);
}

/* Nav */
.nav { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--green-light);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  padding: 8px 20px;
  border: 1px solid var(--brown-light);
  border-radius: var(--radius);
  color: var(--tan);
  transition: background var(--transition), color var(--transition);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(45, 90, 61, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(123, 79, 46, 0.15) 0%, transparent 55%),
    linear-gradient(160deg, rgba(15,14,13,0.60) 0%, rgba(26,21,18,0.55) 50%, rgba(13,21,16,0.60) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--green-light);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}
.hero__title--accent {
  color: var(--green-light);
  position: relative;
}
.hero__desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  margin-bottom: 48px;
  line-height: 2;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px; right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45, 90, 61, 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}
.btn--full { width: 100%; }

/* Dark-section buttons */
.contact .btn--primary {
  background: var(--green);
  border-color: var(--green);
}
.contact .btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* =============================================
   SECTION COMMONS
   ============================================= */
.section { padding: 120px 0; }
.section__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__label::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--brown-light);
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--black);
}
.section__sub {
  font-size: 1rem;
  color: #5a5248;
  margin-bottom: 60px;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}
.about__text p {
  color: #4a4037;
  margin-bottom: 20px;
  font-size: 0.97rem;
  line-height: 2;
}
.about__text strong { color: var(--brown-dark); font-weight: 700; }
.about__values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.value-card {
  background: var(--cream);
  border: 1px solid rgba(123, 79, 46, 0.12);
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  border-color: var(--brown-light);
  box-shadow: 0 4px 20px rgba(123, 79, 46, 0.08);
}
.value-card__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.value-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 4px;
}
.value-card__desc { font-size: 0.85rem; color: #6b5a4e; line-height: 1.7; }

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--charcoal);
}
.services .section__label { color: var(--green-light); }
.services .section__label::after { background: var(--green-light); }
.services .section__title { color: var(--white); }
.services .section__sub { color: rgba(255,255,255,0.5); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--brown-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--green-mid);
  margin-bottom: 16px;
  font-weight: 700;
  text-align: center;
}
.service-card__icon { font-size: 1.8rem; margin-bottom: 20px; width: 72px; height: 72px; margin-inline: auto; }
.service-card__icon img { width: 72px; height: 72px; object-fit: contain; }
.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.5;
}
.service-card__title small {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--green-light);
  font-weight: 400;
}
.service-card__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: 20px;
}
.service-card__list {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__list li {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  padding-left: 14px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-mid);
}

/* 5th card spans full row on small grid */
.services__grid .service-card:last-child:nth-child(5) {
  grid-column: 2 / 3;
}

/* =============================================
   COMPANY
   ============================================= */
.company { background: var(--cream); }
.company__table-wrap {
  margin-top: 60px;
  border: 1px solid rgba(123, 79, 46, 0.15);
  border-radius: 8px;
  overflow: hidden;
}
.company__table { width: 100%; border-collapse: collapse; }
.company__table tr { border-bottom: 1px solid rgba(123, 79, 46, 0.1); }
.company__table tr:last-child { border-bottom: none; }
.company__table th {
  background: rgba(123, 79, 46, 0.06);
  color: var(--brown-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 20px 32px;
  text-align: left;
  white-space: nowrap;
  width: 180px;
}
.company__table td {
  padding: 20px 32px;
  font-size: 0.92rem;
  color: #3d3028;
  line-height: 1.9;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--black);
}
.contact .section__label { color: var(--green-light); }
.contact .section__label::after { background: var(--green-light); }
.contact .section__title { color: var(--white); }
.contact .section__sub { color: rgba(255,255,255,0.5); }
.contact__form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
}
.required { color: var(--green-light); }
.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--white);
  font-family: var(--font-sans);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-input:focus {
  outline: none;
  border-color: var(--green-mid);
  background: rgba(255,255,255,0.08);
}
.form-select { cursor: pointer; }
.form-select option { background: var(--charcoal); color: var(--white); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  letter-spacing: 0.04em;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.footer__info {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}
.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
.pc-only { display: inline; }

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .service-card:last-child:nth-child(5) { grid-column: auto; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  /* Header */
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100svh;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 80px 40px;
    transition: right var(--transition);
    border-left: 1px solid rgba(255,255,255,0.06);
  }
  .nav.open { right: 0; }
  .nav__link { font-size: 1.1rem; color: rgba(255,255,255,0.8); }
  .hamburger { display: flex; }

  /* Hero */
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .pc-only { display: none; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Company */
  .company__table th { width: auto; display: block; padding: 16px 20px 4px; }
  .company__table td { display: block; padding: 4px 20px 16px; }
  .company__table tr { display: block; padding: 0; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* =============================================
   ANIMATIONS (intersection observer)
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
