/* =========================================================
   Tsumugi Systems — styles.css
   森の企画室の哲学をアレンジ / 線なし版
   ========================================================= */

:root {
  --c-bg:      #F4F0E8;  /* 生成り */
  --c-bg-soft: #EDE7DB;  /* 一段濃い生成り */
  --c-ink:     #3A3733;  /* 墨 */
  --c-ink-mut: #6E6962;  /* 墨の薄め */
  --c-indigo:  #2E4756;  /* 褪せた藍 */
  --c-indigo-d:#243A47;  /* 藍の濃いめ */
  --c-mustard: #D4A84B;  /* マスタード黄 */
  --c-line:    #D8D0C2;  /* 罫線 */

  --ff-ja: "Zen Kaku Gothic Antique", system-ui, sans-serif;
  --ff-en: "Josefin Sans", sans-serif;
  --ff-serif: "Noto Serif JP", serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --sp-section: clamp(80px, 12vw, 160px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-ja);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- shared ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--ff-ja);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 1.05em 2.4em;
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, color .35s, box-shadow .35s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-indigo);
  color: #F6F2EA;
  box-shadow: 0 10px 30px -14px rgba(46,71,86,.7);
}
.btn--primary:hover { background: var(--c-indigo-d); transform: translateY(-3px); box-shadow: 0 16px 36px -14px rgba(46,71,86,.8); }
.btn--ghost {
  background: transparent;
  color: var(--c-indigo);
  border-color: var(--c-indigo);
}
.btn--ghost:hover { background: var(--c-indigo); color: #F6F2EA; transform: translateY(-3px); }
.btn--lg { font-size: 1.05rem; padding: 1.2em 3em; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head__en {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .28em;
  text-transform: lowercase;
  color: var(--c-mustard);
  margin-bottom: .8em;
  display: flex;
  align-items: center;
  gap: .9em;
}
.section-head__en::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--c-mustard);
  display: inline-block;
}
.section-head__ja {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,240,232,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.scrolled { border-bottom-color: var(--c-line); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; flex-direction: column; gap: 6px; }
.logo__mark {
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: .12em;
  color: var(--c-indigo);
  line-height: 1;
}
.logo__weave {
  height: 7px;
  background-image:
    radial-gradient(circle at 10% 50%, transparent 38%, var(--c-indigo) 39%, var(--c-indigo) 46%, transparent 47%),
    radial-gradient(circle at 30% 50%, transparent 38%, var(--c-indigo) 39%, var(--c-indigo) 46%, transparent 47%),
    radial-gradient(circle at 50% 50%, transparent 38%, var(--c-indigo) 39%, var(--c-indigo) 46%, transparent 47%),
    radial-gradient(circle at 70% 50%, transparent 38%, var(--c-indigo) 39%, var(--c-indigo) 46%, transparent 47%);
  background-size: 22px 100%;
  background-repeat: repeat-x;
  opacity: .5;
}

.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-menu > li > a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-ink);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav-menu > li > a:not(.nav-cta a)::after,
.nav-menu > li:not(.nav-cta) > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--c-mustard);
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-menu > li:not(.nav-cta) > a:hover { color: var(--c-indigo); }
.nav-menu > li:not(.nav-cta) > a:hover::after { width: 100%; }
.nav-cta a {
  background: var(--c-indigo);
  color: #F6F2EA;
  padding: .7em 1.5em;
  border-radius: 999px;
  font-size: .88rem;
  transition: background .3s, transform .3s;
}
.nav-cta a:hover { background: var(--c-indigo-d); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .35s, opacity .3s;
}
.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); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 13vw, 150px) var(--gutter) clamp(60px, 10vw, 120px);
}
.hero__inner { max-width: 760px; position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--ff-en);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: lowercase;
  color: var(--c-mustard);
  font-size: clamp(.8rem, 2vw, .95rem);
  margin-bottom: 1.8em;
}
.hero__title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 7vw, 4.1rem);
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--c-ink);
  margin-bottom: .9em;
}
.hero__title span { display: block; }
.hero__lead {
  font-size: clamp(.98rem, 2.2vw, 1.12rem);
  line-height: 2.1;
  color: var(--c-ink-mut);
  margin-bottom: 2.6em;
  font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 1.8em; }
.hero__note { font-size: .9rem; color: var(--c-ink-mut); letter-spacing: .03em; }

.hero__deco { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.hero__deco--dot {
  width: 14px; height: 14px;
  background: var(--c-mustard);
  top: 18%; right: 8%;
  opacity: .85;
}
.hero__deco--ring {
  width: clamp(180px, 26vw, 320px);
  height: clamp(180px, 26vw, 320px);
  border: 1px solid var(--c-mustard);
  opacity: .25;
  top: 30%; right: -6%;
}

/* ---------- features ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sp-section);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--c-line);
  padding-top: clamp(40px, 6vw, 64px);
}
.feature__num {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--c-indigo);
  margin-bottom: .5em;
  letter-spacing: .01em;
}
.feature__num span {
  font-family: var(--ff-ja);
  font-size: .9rem;
  font-weight: 500;
  margin-left: .3em;
  color: var(--c-ink-mut);
}
.feature__title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: .7em;
  letter-spacing: .02em;
}
.feature__body { font-size: .92rem; color: var(--c-ink-mut); line-height: 1.95; }

/* ---------- concerns ---------- */
.concerns {
  background: var(--c-bg-soft);
  padding: var(--sp-section) 0;
}
.concerns > .section-head { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.concern-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}
.concern {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  align-items: baseline;
  padding: clamp(24px, 3.4vw, 38px) 0;
  border-bottom: 1px solid var(--c-line);
}
.concern:first-child { border-top: 1px solid var(--c-line); }
.concern__num {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-mustard);
  flex-shrink: 0;
  line-height: 1.2;
  min-width: 1.6em;
}
.concern__text h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  margin-bottom: .5em;
  line-height: 1.6;
}
.concern__text p { font-size: .92rem; color: var(--c-ink-mut); line-height: 1.95; }

/* ---------- services ---------- */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-section) var(--gutter);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}
.plan {
  background: #FBF8F2;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(58,55,51,.4); }
.plan--accent {
  background: var(--c-indigo);
  border-color: var(--c-indigo);
  color: #F1ECE2;
}
.plan--accent .plan__label { color: var(--c-mustard); }
.plan--accent .plan__body { color: #D5DCE0; }
.plan--accent .plan__price { color: #fff; }
.plan--accent .plan__price span { color: #C6D0D5; }
.plan__label {
  font-family: var(--ff-en);
  font-weight: 600;
  letter-spacing: .15em;
  font-size: .82rem;
  color: var(--c-mustard);
  margin-bottom: 1.4em;
}
.plan__name {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: .9em;
}
.plan__name span { font-size: .8em; font-weight: 500; }
.plan__body { font-size: .9rem; color: var(--c-ink-mut); line-height: 1.95; margin-bottom: 1.8em; flex-grow: 1; }
.plan__price {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--c-indigo);
  line-height: 1;
  letter-spacing: .01em;
}
.plan__price span { font-family: var(--ff-ja); font-size: .42em; font-weight: 500; margin-left: .4em; color: var(--c-ink-mut); }
.services__more { text-align: right; margin-top: clamp(28px, 4vw, 44px); }
.services__more a {
  font-family: var(--ff-ja);
  font-weight: 500;
  color: var(--c-indigo);
  font-size: .98rem;
  transition: gap .3s;
  display: inline-flex;
  gap: .5em;
}
.services__more a:hover span { transform: translateX(4px); }
.services__more a span { transition: transform .3s; display: inline-block; }

/* ---------- bridge ---------- */
.bridge {
  background: var(--c-bg-soft);
  padding: var(--sp-section) 0;
}
.bridge__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.bridge__quote {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.7;
  color: var(--c-indigo);
  margin-bottom: 1em;
}
.bridge__body {
  font-size: .96rem;
  color: var(--c-ink-mut);
  line-height: 2.05;
  margin-bottom: 2.4em;
}

/* ---------- why ---------- */
.why {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-section) var(--gutter);
}
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px); }
.why-item { padding-top: 28px; border-top: 2px solid var(--c-indigo); }
.why-item__key {
  font-family: var(--ff-en);
  font-weight: 500;
  letter-spacing: .1em;
  font-size: .9rem;
  color: var(--c-ink-mut);
  margin-bottom: 1.2em;
}
.why-item__num { color: var(--c-mustard); font-weight: 600; font-size: 1.15em; }
.why-item__title { font-size: 1.2rem; font-weight: 700; margin-bottom: .7em; line-height: 1.55; }
.why-item__body { font-size: .92rem; color: var(--c-ink-mut); line-height: 1.95; }

/* ---------- final cta ---------- */
.final-cta {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212,168,75,.10), transparent 60%),
    var(--c-indigo);
  color: #F1ECE2;
  padding: var(--sp-section) 0;
}
.final-cta__inner { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.final-cta__title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.55;
  margin-bottom: .9em;
  color: #FBF8F2;
}
.final-cta__body { font-size: .98rem; color: #CFD7DB; line-height: 2.05; margin-bottom: 2.6em; }
.final-cta .btn--primary { background: var(--c-mustard); color: var(--c-indigo-d); box-shadow: 0 14px 34px -14px rgba(212,168,75,.6); }
.final-cta .btn--primary:hover { background: #E0B85C; transform: translateY(-3px); }
.final-cta__sub { margin-top: 1.8em; }
.final-cta__sub a { color: #F1ECE2; font-size: .95rem; border-bottom: 1px solid rgba(241,236,226,.4); padding-bottom: 2px; transition: border-color .3s; }
.final-cta__sub a:hover { border-color: var(--c-mustard); }
.final-cta__caption { margin-top: 2em; font-size: .85rem; color: #A9B5BB; letter-spacing: .04em; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink); color: #C9C3B9; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) var(--gutter) clamp(36px, 4vw, 48px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer-brand__logo {
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: .1em;
  color: #F1ECE2;
  margin-bottom: 1em;
}
.footer-brand__tag { font-size: .92rem; color: #E0DACE; margin-bottom: 1em; font-weight: 500; }
.footer-brand__desc { font-size: .82rem; color: #9B958B; line-height: 1.9; }
.footer-col__head {
  font-family: var(--ff-en);
  font-weight: 600;
  letter-spacing: .14em;
  font-size: .82rem;
  color: var(--c-mustard);
  margin-bottom: 1.4em;
}
.footer-col ul { display: flex; flex-direction: column; gap: .9em; }
.footer-col a { font-size: .88rem; color: #C9C3B9; transition: color .3s; }
.footer-col a:hover { color: #F1ECE2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom__copy { font-size: .8rem; color: #8A857C; letter-spacing: .03em; }
.footer-bottom__links { font-size: .8rem; display: flex; gap: .8em; color: #8A857C; }
.footer-bottom__links a { color: #8A857C; transition: color .3s; }
.footer-bottom__links a:hover { color: #C9C3B9; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--d, 0) * .12s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    background: var(--c-bg);
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.4);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li > a { font-size: 1.05rem; }
  .nav-cta a { font-size: 1rem; }

  .features__grid { grid-template-columns: 1fr; gap: 36px; }
  .plan-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; gap: 36px; }
  .hero__deco--ring { display: none; }
  .concern { gap: 16px; }
}
@media (max-width: 760px) {
  body.nav-open { overflow: hidden; }
}
