/* ============ Tokens ============ */
:root {
  --paper: #F8F5EF;          /* ととのえる屋 cream */
  --paper-2: #F0EBE1;        /* ととのえる屋 paper-warm */
  --ink: #1C1A17;            /* ととのえる屋 text */
  --ink-2: #5A5349;          /* ととのえる屋 text-mid */
  --line: #00B900;           /* LINE official green */
  --line-deep: #008F00;
  --line-soft: #E6F4E6;
  --mute: #8C8278;           /* ととのえる屋 text-soft */
  --rule: rgba(44,37,28,0.12);
  --rule-soft: rgba(44,37,28,0.06);
  --forest: #2B4A1A;         /* ととのえる屋 forest */
  --forest-mid: #3D6626;
  --amber: #B8823A;          /* ととのえる屋 amber */
  --amber-lt: #F5EDD9;
  --accent-warm: #E26F3E;
  --accent-red: #C8362A;     /* 差し色 朱赤 */
  --accent-red-deep: #9A2A20;
  --accent-red-soft: #F6E3DF;
  --radius: 4px;             /* ととのえる屋 4px に統一 */
  --radius-lg: 12px;
  --maxw: 1080px;            /* ととのえる屋 container--wide */
  --pad: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  --paper: #0B0E0C;
  --paper-2: #14181A;
  --ink: #F1EDE3;
  --ink-2: #DAD4C2;
  --rule: #2A2F2C;
  --mute: #8B8B7E;
  --line-soft: #0E2A18;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 300;
  font-feature-settings: "palt";
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

::selection { background: var(--forest); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============ Typography（ととのえる屋HPに合わせる）============ */
.serif-jp { font-family: "Noto Serif JP", serif; font-weight: 500; letter-spacing: 0.02em; }
.serif-en { font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-weight: 500; font-style: normal; letter-spacing: 0; }
.mono { font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-weight: 500; font-size: .82rem; letter-spacing: 0.14em; text-transform: uppercase; }

h1, h2, h3, h4 { font-family: "Noto Serif JP", serif; font-weight: 600; line-height: 1.4; letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}

/* ============ Layout ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.5; }
.section-head p { color: var(--ink-2); font-size: 15px; line-height: 2; max-width: 580px; }

.rule { height: 1px; background: var(--rule); }
.dotrule {
  height: 1px;
  background-image: linear-gradient(to right, var(--rule) 50%, transparent 0%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: backdrop-filter .3s, background .3s;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Noto Serif JP", serif; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em;
}
.brand-logo {
  width: 28px; height: auto; display: block;
}
.brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  font-family: "Cormorant Garamond", serif; font-style: italic;
  position: relative;
}
.brand-dot::after {
  content: ""; position: absolute; bottom: -3px; left: 8px;
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--forest);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: .9rem; color: var(--ink-2); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--line-deep); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--line-deep); color: #fff; }
.nav-cta .arrow { transition: transform .2s; }
.nav-cta:hover .arrow { transform: translate(2px, -2px); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ととのえる屋ロゴ in Hero（既存トップ hero-logo の引き算サイズ） */
.hero-totonoeru-logo {
  width: clamp(64px, 7vw, 92px);
  height: auto;
  display: block;
  margin-bottom: clamp(20px, 3vw, 28px);
  opacity: 0;
  transform: translateY(-12px);
  animation: heroLogoDescend 1.1s .25s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes heroLogoDescend {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Hero ============ */
.hero { padding-top: 140px; padding-bottom: clamp(80px, 12vw, 140px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: end;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; align-items: stretch; } }

.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .72rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--mute);
}
.hero-meta .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper);
}
.hero-meta .pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--line) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--line) 25%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--line) 5%, transparent); }
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  font-weight: 500;
}
.hero h1 .accent {
  color: var(--accent-red);
  font-style: italic;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: 0;
}
.hero h1 .small {
  display: block;
  font-size: 13px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-top: 24px;
  line-height: 2.1;
  max-width: 460px;
}
.hero-sub {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: 999px;
  font-size: .95rem; font-weight: 500;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 6px 24px -8px color-mix(in oklab, var(--ink) 50%, transparent);
}
.btn-primary:hover { background: var(--line-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero chat preview */
.hero-chat {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--ink) 30%, transparent);
  min-height: 440px;
}
.hero-chat::before {
  content: ""; position: absolute; inset: 12px; border: 1px dashed var(--rule); border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none; opacity: .4;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
  position: relative; z-index: 1;
}
.chat-head .who { display: flex; align-items: center; gap: 10px; }
.chat-head .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--line); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .82rem;
  font-family: "Inter Tight", sans-serif;
}
.chat-head .name { font-size: .92rem; font-weight: 600; }
.chat-head .name small { display: block; color: var(--mute); font-size: .7rem; font-weight: 400; }
.chat-head .badge {
  font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .65rem;
  background: var(--line-soft); color: var(--line-deep);
  padding: 4px 8px; border-radius: 999px;
  letter-spacing: 0.05em;
}
.bubbles {
  flex: 1; display: flex; flex-direction: column; gap: 10px;
  padding-top: 6px; position: relative; z-index: 1;
}
.bubble {
  max-width: 80%; padding: 10px 14px; font-size: .9rem; line-height: 1.5;
  border-radius: 18px;
  opacity: 0;
  animation: bubbleIn .5s ease forwards;
}
.bubble.bot {
  background: var(--paper); border: 1px solid var(--rule); align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.bubble.user {
  background: var(--line); color: #fff; align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.bubble.options {
  align-self: flex-start;
  background: transparent; border: none; padding: 0;
  display: flex; gap: 8px; flex-wrap: wrap; max-width: 90%;
}
.bubble.options button {
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font-size: .82rem;
  transition: all .2s;
}
.bubble.options button:hover { background: var(--line); color: #fff; border-color: var(--line); }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing { display: inline-flex; align-items: center; gap: 4px; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mute);
  animation: typingDot 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 0; overflow: hidden;
  font-family: "Noto Sans JP", sans-serif; font-weight: 400; font-size: 14px;
  color: var(--ink-2); letter-spacing: 0.06em;
}
.marquee-track {
  display: flex; gap: 36px; white-space: nowrap; width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 36px; }
.marquee-track .marquee-cell { display: inline-flex; align-items: center; gap: 36px; }
.marquee-track .sep { color: var(--amber); font-size: 10px; opacity: .55; }
.marquee-logo {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  opacity: .95;
}
.marquee-logo--mono {
  filter: brightness(0) saturate(100%);
  opacity: .65;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Capabilities ============ */
.cap-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
}
.cap {
  grid-column: span 4;
  background: var(--paper);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
  position: relative; transition: background .25s;
}
.cap:hover { background: var(--paper-2); }
.cap .num { font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .75rem; color: var(--mute); }
.cap h3 { font-size: 1.5rem; }
.cap p { color: var(--mute); font-size: .95rem; }
.cap .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--line-soft); color: var(--line-deep);
  display: grid; place-items: center; margin-bottom: 4px;
}
.cap:nth-child(2) { grid-column: span 4; }
.cap:nth-child(3) { grid-column: span 4; }
@media (max-width: 900px) {
  .cap, .cap:nth-child(n) { grid-column: span 12; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .cap, .cap:nth-child(n) { grid-column: span 6; }
}

/* ============ Demo ============ */
.demo-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 960px) { .demo-wrap { grid-template-columns: 1fr; } }
.phone {
  width: 100%; max-width: 380px; margin: 0 auto;
  background: var(--ink); border-radius: 44px; padding: 14px;
  box-shadow: 0 40px 80px -30px color-mix(in oklab, var(--ink) 60%, transparent);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px; background: var(--ink); border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  background: var(--paper);
  border-radius: 32px;
  height: 620px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px; font-size: .72rem; font-weight: 600;
  font-family: "Inter Tight", sans-serif;
}
.phone-status .right { display: inline-flex; gap: 5px; align-items: center; }
.phone-header {
  padding: 10px 18px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding-top: 42px;
}
.phone-header .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--line); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .85rem;
}
.phone-header .name { font-size: .92rem; font-weight: 600; line-height: 1.2; }
.phone-header .name small { color: var(--mute); font-size: .72rem; font-weight: 400; display: block; }
.phone-body {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.phone-body .bubble { font-size: .85rem; max-width: 75%; }
.phone-body .bubble.bot { background: #fff; }
.phone-input {
  border-top: 1px solid var(--rule); padding: 10px 14px;
  display: flex; gap: 8px; align-items: center;
  background: var(--paper);
}
.phone-input .field {
  flex: 1; background: var(--paper-2); border: 1px solid var(--rule);
  padding: 8px 12px; border-radius: 999px; font-size: .82rem; color: var(--mute);
}
.phone-input .send {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--line); color: #fff; display: grid; place-items: center;
}

.demo-controls h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 20px; }
.demo-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0;
}
.demo-tab {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper);
  font-size: .85rem; color: var(--ink-2);
  transition: all .2s;
}
.demo-tab:hover { border-color: var(--ink); }
.demo-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo-desc { color: var(--mute); font-size: 1rem; line-height: 1.7; margin-bottom: 22px; }
.demo-feats { display: flex; flex-direction: column; gap: 10px; }
.demo-feat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--rule);
  font-size: .92rem;
}
.demo-feat .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--line); color: #fff; display: grid; place-items: center;
  font-size: 12px; margin-top: 1px;
}

/* ============ Integrations ============ */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
@media (max-width: 960px) { .integ-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .integ-grid { grid-template-columns: 1fr; } }

.integ {
  padding: 28px 24px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  transition: background .25s ease;
}
.integ:hover { background: var(--amber-lt); }
.integ-logo-wrap {
  display: flex; align-items: center;
  height: 40px;
  margin-bottom: 18px;
}
.integ-logo {
  width: auto;
  height: 28px;
  max-width: 100px;
  object-fit: contain;
  display: block;
  transition: filter .25s ease, opacity .25s ease;
}
.integ-logo--mono {
  filter: brightness(0) saturate(100%);
  opacity: .82;
}
.integ:hover .integ-logo--mono {
  opacity: 1;
}
.integ-logo--raster {
  opacity: .95;
}
.integ-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.integ-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.integ-role {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-red);
}
.integ-note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* ============ Use cases ============ */
.uc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 800px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-item {
  padding: 40px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
  transition: background .25s;
  position: relative;
}
.uc-item:hover { background: var(--paper-2); }
.uc-item:nth-child(2n) { border-right: none; }
.uc-item:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 800px) {
  .uc-item { border-right: none; }
  .uc-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .uc-item:last-child { border-bottom: none; }
}
.uc-item .head { display: flex; justify-content: space-between; align-items: baseline; }
.uc-item .label { font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .72rem; color: var(--mute); letter-spacing: 0.1em; }
.uc-item .industry {
  font-size: 1rem; font-family: "Shippori Mincho B1", serif; color: var(--line-deep); font-weight: 500;
}
.uc-item h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.6; letter-spacing: 0.02em; }
.uc-item p { color: var(--ink-2); font-size: 14px; line-height: 1.95; letter-spacing: 0.02em; }
.uc-stats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.stat-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
  line-height: 1.4;
}

/* ============ Process (dark) ============ */
.process {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(60px, 9vw, 100px) clamp(28px, 5vw, 64px);
  margin: 0 auto;
  max-width: calc(var(--maxw) - 0px);
}
.process .eyebrow { color: var(--paper); opacity: .7; }
.process h2 { color: var(--paper); font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 56px; max-width: 720px; }
.process-list {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
}
@media (max-width: 900px) { .process-list { grid-template-columns: 1fr; } }
.proc-step {
  padding: 32px 22px 28px;
  border-right: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
  display: flex; flex-direction: column; gap: 12px; min-height: 240px;
  position: relative;
}
.proc-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .proc-step { border-right: none; border-bottom: 1px solid color-mix(in oklab, var(--paper) 15%, transparent); }
  .proc-step:last-child { border-bottom: none; }
}
.proc-step .n {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: 3rem; color: var(--line); line-height: 1;
}
.proc-step h4 { font-size: 1.2rem; color: var(--paper); }
.proc-step p { font-size: .88rem; color: color-mix(in oklab, var(--paper) 70%, transparent); }
.proc-step .when {
  margin-top: auto;
  font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .68rem;
  color: var(--line); letter-spacing: 0.12em;
  padding-top: 16px;
}

/* ============ Pricing ============ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform .25s, border-color .25s;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.featured h3, .plan.featured .price { color: var(--paper); }
.plan.featured .feat { color: color-mix(in oklab, var(--paper) 80%, transparent); border-color: color-mix(in oklab, var(--paper) 15%, transparent); }
.plan.featured .badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--line); color: #fff;
  padding: 5px 10px; border-radius: 999px; font-family: "Inter Tight", "Noto Sans JP", sans-serif;
  font-size: .65rem; letter-spacing: 0.1em;
}
.plan.featured .btn-primary { background: var(--line); color: #fff; }
.plan.featured .btn-primary:hover { background: var(--line-deep); }
.plan .tier { font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .72rem; color: var(--mute); letter-spacing: 0.12em; }
.plan h3 { font-size: 1.8rem; }
.plan .price { font-family: "Shippori Mincho B1", serif; font-size: 2.8rem; font-weight: 500; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.plan .price small { font-size: .35em; color: var(--mute); font-family: "Inter Tight", sans-serif; }
.plan .price-note { font-size: .82rem; color: var(--mute); margin-top: -8px; }
.plan .feats { display: flex; flex-direction: column; gap: 0; margin: 8px 0 18px; }
.plan .feat {
  font-size: .9rem; padding: 12px 0; border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
}
.plan .feat:last-child { border-bottom: 1px solid var(--rule); }
.plan.featured .feat:last-child { border-bottom-color: color-mix(in oklab, var(--paper) 15%, transparent); }
.plan .feat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex-shrink: 0; }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); padding: 0; }
.faq-q {
  width: 100%; text-align: left;
  padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: "Shippori Mincho B1", serif; font-size: 1.2rem; font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.faq-q:hover { color: var(--line-deep); }
.faq-q .toggle {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--rule); display: grid; place-items: center;
  font-family: "Inter Tight", sans-serif; transition: transform .3s, background .3s, color .3s;
  font-size: 1.2rem; line-height: 1;
}
.faq-item.open .faq-q .toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease, opacity .35s ease;
  color: var(--mute); font-size: .98rem; line-height: 1.8; opacity: 0;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 0 28px; opacity: 1; }

/* ============ CTA ============ */
.cta-final {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: clamp(60px, 9vw, 110px) clamp(32px, 5vw, 80px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-final::before, .cta-final::after {
  content: ""; position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--line); opacity: .08;
  filter: blur(40px);
}
.cta-final::before { top: -40px; left: -40px; }
.cta-final::after { bottom: -40px; right: -40px; background: var(--accent-warm); }
.cta-final h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  margin: 18px auto 24px; max-width: 720px;
  position: relative; z-index: 1;
}
.cta-final h2 em {
  font-family: "Instrument Serif", serif; font-style: italic; color: var(--line-deep);
}
.cta-final p { color: var(--mute); max-width: 480px; margin: 0 auto 32px; position: relative; z-index: 1; }
.cta-final .hero-actions { justify-content: center; position: relative; z-index: 1; }

/* ============ Footer ============ */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: .85rem; color: var(--mute);
}
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot-col h5 { font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .7rem; letter-spacing: 0.14em; color: var(--ink); margin-bottom: 16px; text-transform: uppercase; font-weight: 500; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a:hover { color: var(--line-deep); }
.foot-brand p { margin-top: 14px; max-width: 280px; line-height: 1.6; }
.foot-bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-top: 30px; border-top: 1px solid var(--rule);
  font-family: "Inter Tight", "Noto Sans JP", sans-serif; font-size: .72rem; letter-spacing: 0.08em;
}

/* ============ Big number motif ============ */
.big-num {
  font-family: "Instrument Serif", serif; font-style: italic;
  color: var(--rule); font-size: clamp(6rem, 16vw, 14rem);
  line-height: 0.85; letter-spacing: -0.04em;
  position: absolute; right: var(--pad); top: -20px;
  pointer-events: none; user-select: none;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
