/* ===== Tokens ===== */
:root {
  color-scheme: light;

  --cream: #E8E6E1;
  --cream-alt: #DCD9D1;
  --white: #FFFFFF;
  --olive: #677834;
  --olive-dark: #4E5C27;
  --olive-light: #8A9A54;
  --stone: #8C8778;
  --charcoal: #33322D;
  --charcoal-soft: #57554C;
  --border-soft: rgba(51, 50, 45, 0.12);

  --font-display: "Shippori Mincho", serif;
  --font-body: "Noto Sans JP", sans-serif;

  --container: 1120px;
  --radius-md: 14px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--olive);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.5;
  margin: 0 0 48px;
  color: var(--charcoal);
}

:focus-visible {
  outline: 2px solid var(--olive-dark);
  outline-offset: 3px;
}

/* ===== Preloader ===== */
body.is-loading { overflow: hidden; height: 100vh; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.preloader-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.preloader-panel--1 { background: var(--charcoal); z-index: 1; }
.preloader-panel--2 { background: var(--olive); z-index: 2; }

.preloader-logo {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cream);
}
.preloader-mark-img {
  width: min(260px, 60vw);
  height: auto;
  opacity: 0;
  transform: translateY(14px);
}

.service-chip {
  position: relative;
  overflow: hidden;
}
.brush-roller {
  position: absolute;
  top: -10%;
  left: -42%;
  width: 36%;
  height: 120%;
  z-index: 3;
  pointer-events: none;
  border-radius: 3px;
  opacity: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.10) 0px,
      rgba(255,255,255,0.10) 2px,
      transparent 2px,
      transparent 5px
    ),
    linear-gradient(90deg,
      rgba(78, 92, 39, 0) 0%,
      var(--olive-dark) 16%,
      var(--olive) 50%,
      var(--olive-dark) 84%,
      rgba(78, 92, 39, 0) 100%
    );
  box-shadow: 0 0 18px 2px rgba(78, 92, 39, 0.35);
}

/* subtle paper grain overlay */
/* grain overlay removed (mix-blend-mode caused rendering issues on some mobile WebKit browsers) */

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(103, 120, 52, 0.55);
}
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); }
.btn-ghost {
  color: var(--charcoal);
  border-color: var(--border-soft);
}
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); }
.btn-outline {
  border-color: var(--olive);
  color: var(--olive);
}
.btn-outline:hover { background: var(--olive); color: var(--white); }
.btn-line {
  background: #06C755;
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(6, 199, 85, 0.5);
  flex-direction: row !important;
  gap: 10px !important;
}
.btn-line:hover { background: #05a648; transform: translateY(-2px); }
.line-icon { display: inline-flex; }
.btn.btn-line .tel-sub { font-size: 17px; font-weight: 700; opacity: 1; }
.btn-lg { padding: 18px 32px; font-size: 16px; flex-direction: column; gap: 2px; }
.btn-lg .tel-sub { font-size: 11px; font-weight: 500; opacity: 0.85; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: invert(1);
}
.logo-img--footer { height: 30px; }
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--olive);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.tel-link { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.tel-label { font-size: 11px; color: var(--charcoal-soft); }
.tel-number { font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 4px;
  transform: translateY(-140%);
  transition: transform 0.35s ease;
  z-index: 999;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--border-soft); }
.mobile-nav .mobile-cta { margin-top: 10px; text-align: center; background: var(--olive); color: var(--white); border-radius: 999px; border: none; font-weight: 700; }

@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 88px;
  overflow: hidden;
  background: var(--cream);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -35deg,
    rgba(51,50,45,0.05) 0px,
    rgba(51,50,45,0.05) 1px,
    transparent 1px,
    transparent 46px
  );
}

.hero-photo {
  position: absolute;
  top: 88px; right: 0; bottom: 0;
  width: 64%;
  overflow: hidden;
  z-index: 1;
}
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  background-color: #2E2D28;
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) contrast(1.08);
}
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,241,233,0.9) 0%, rgba(245,241,233,0) 22%);
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 760px;
  padding: 120px 24px 0 40px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--olive-dark);
  margin: 0 0 22px;
}
.hero-title-big {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(34px, 6.2vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}
.htb-line {
  display: block;
  color: var(--charcoal);
  text-shadow: 0 1px 3px rgba(255,255,255,0.55), 0 2px 18px rgba(255,255,255,0.4);
}
.htb-accent {
  color: var(--olive);
  text-shadow: 0 2px 22px rgba(46, 45, 40, 0.35);
}
.hero-lead {
  position: relative;
  z-index: 5;
  font-size: 16px;
  color: var(--charcoal-soft);
  margin: 0 0 40px;
  background: rgba(245,241,233,0.001); /* keeps text above scrim without visual box */
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 40px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--charcoal-soft);
}
.hero-scroll-cue span {
  width: 1px; height: 34px;
  background: linear-gradient(var(--olive), transparent);
}

@media (max-width: 900px) {
  .hero { padding-top: 76px; }
  .hero::before { display: none; }
  .hero-photo {
    position: absolute;
    top: 76px; left: 0; right: 0; bottom: 0;
    width: 100%; height: auto;
  }
  .hero-photo-scrim {
    background: linear-gradient(180deg, rgba(30,29,25,0.45) 0%, rgba(30,29,25,0.58) 55%, rgba(30,29,25,0.82) 100%);
  }
  .hero-inner {
    max-width: 100%;
    padding: 48px 24px 40px;
    min-height: calc(100svh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-inner .eyebrow {
    color: rgba(255,255,255,0.85);
  }
  .hero-inner .hero-lead {
    color: rgba(255,255,255,0.82);
  }
  .htb-line {
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  }
  .htb-accent {
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  }
  .hero-actions .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.55);
  }
  .hero-actions .btn-ghost:hover {
    border-color: #fff;
    color: #fff;
  }
  .hero-scroll-cue {
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
  }
  .hero-scroll-cue span {
    background: linear-gradient(rgba(255,255,255,0.8), transparent);
  }
}

/* ===== Reasons ===== */
.reasons { padding: 120px 0 100px; }
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.reason-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.35s ease;
}
.reason-card:hover,
.reason-card:focus-within,
.reason-card:active {
  background: var(--olive);
}
.reason-card:hover h3,
.reason-card:hover .reason-num,
.reason-card:focus-within h3,
.reason-card:focus-within .reason-num,
.reason-card:active h3,
.reason-card:active .reason-num {
  color: var(--white);
}
.reason-card:hover p,
.reason-card:focus-within p,
.reason-card:active p {
  color: var(--cream);
  transition: color 0.35s ease;
}
.reason-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--olive);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
  transition: color 0.35s ease;
}
.reason-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.5;
  transition: color 0.35s ease;
}
.reason-card p { margin: 0; font-size: 14.5px; color: var(--charcoal-soft); transition: color 0.35s ease; }

/* ===== Services ===== */
.services { padding: 100px 0; background: var(--cream-alt); }
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-soft);
}
.service-row:first-child { border-top: 1px solid var(--border-soft); }
.service-chip {
  width: 64px; height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.service-text h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 8px;
}
.service-text p { margin: 0; color: var(--charcoal-soft); font-size: 14.5px; max-width: 640px; }

/* ===== Flow ===== */
.flow { padding: 120px 0; }
.flow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow-list li {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--border-soft);
}
.flow-list li:last-child { border-bottom: 1px solid var(--border-soft); }
.flow-step {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--olive);
  min-width: 52px;
}
.flow-list h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; }
.flow-list p { margin: 0; color: var(--charcoal-soft); font-size: 14.5px; }

/* ===== Area ===== */
.area { padding: 100px 0; background: var(--olive); color: var(--white); }
.area-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.area .section-eyebrow { color: #D9E2BE; }
.area .section-title {
  color: var(--white);
  margin-bottom: 20px;
  white-space: nowrap;
  font-size: clamp(18px, 5.2vw, 40px);
}
.area-lead { color: rgba(255,255,255,0.85); margin: 0 0 28px; max-width: 46ch; }
.area-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.area-tags li {
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
}
.area-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 0;
  max-width: 100%;
}
.area-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 27px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  z-index: 0;
}
.area-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.area-node-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.5);
}
.area-node-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.area-node--main {
  gap: 0;
  transform: translateY(-14px);
}
.area-node--main .area-node-dot {
  width: 108px; height: 108px;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,0.35);
}
.area-node--main .area-node-dot b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--olive-dark);
}

@media (max-width: 520px) {
  .area-visual { gap: 10px; }
  .area-node-label { font-size: 11.5px; }
  .area-node--main .area-node-dot { width: 88px; height: 88px; }
  .area-node--main .area-node-dot b { font-size: 16px; }
}

/* ===== Company ===== */
.company { padding: 100px 0; background: var(--cream-alt); }
.company-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.company-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 44px -22px rgba(51,50,45,0.35);
  position: sticky;
  top: 110px;
}
.company-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.company-table { display: grid; gap: 0; margin: 0; }
.company-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}
.company-table > div:last-child { border-bottom: 1px solid var(--border-soft); }
.company-table dt { font-weight: 700; color: var(--olive-dark); font-size: 14px; }
.company-table dd { margin: 0; font-size: 14.5px; }

/* ===== Contact ===== */
.contact { padding: 140px 0; text-align: center; }
.contact-inner { max-width: 760px; }
.contact-lead {
  color: var(--charcoal-soft);
  margin: 0 0 40px;
  white-space: nowrap;
  font-size: clamp(11px, 2.6vw, 16px);
}
@media (max-width: 480px) {
  .contact-lead {
    white-space: normal;
    font-size: 14.5px;
  }
}
.contact-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.contact-form {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
  display: grid;
  gap: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}
.contact-form.open {
  max-height: 900px;
  opacity: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
  min-width: 0;
}
.contact-form label em {
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--olive-dark);
  margin-left: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  background: var(--white);
  color: var(--charcoal);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--olive);
}
.form-full { grid-column: 1 / -1; }
.contact-form input.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-submit { justify-self: center; margin-top: 4px; }
.form-status {
  text-align: center;
  font-size: 13.5px;
  margin: 0;
  min-height: 1.2em;
  color: var(--olive-dark);
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border-soft); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo--footer { font-size: 18px; }
.footer-inner p { margin: 0; font-size: 13px; color: var(--charcoal-soft); }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .reason-grid { grid-template-columns: 1fr; }
  .service-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .area-inner { grid-template-columns: 1fr; text-align: center; }
  .area-tags { justify-content: center; }
  .area-lead { margin-left: auto; margin-right: auto; }
  .company-grid { grid-template-columns: 1fr; gap: 28px; }
  .company-photo { order: -1; position: static; max-width: 80%; margin: 0 auto; }
  .company-table > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stroke-fill { transform: none !important; }
}
