/* =====================================================================
   NextCore — design system v3 "washi & seal"  (2026-06-10)
   タイポグラフィと余白を主役に。和紙・藍・墨・朱印。
   画像は絵巻として額装し、脇役に置く。
   ===================================================================== */

:root {
  color-scheme: light;
  --washi: #f4efe3;
  --washi-deep: #ece5d3;
  --panel: #faf6ec;
  --ink: #211d18;
  --ink-soft: #57503f;
  --ai: #1f3d5c;
  --ai-soft: #2c5277;
  --shu: #b8432a;
  --gold: #a8854e;
  --line: rgba(33, 29, 24, 0.16);
  --line-strong: rgba(33, 29, 24, 0.34);
  --ease-calm: cubic-bezier(0.2, 0.7, 0.25, 1);
  --stagger: 80ms;
  --font-display: "Zen Old Mincho", serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --grain: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="table" tableValues="0 0.045"/></feComponentTransfer></filter><rect width="160" height="160" filter="url(%23n)"/></svg>');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; overflow-x: clip; }

body.home {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--washi);
  background-image: var(--grain);
  line-height: 1.9;
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.home ::selection { background: rgba(31, 61, 92, 0.18); }

/* ---------- header ---------- */
body.home .site-header,
body.subpage .site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: color-mix(in srgb, var(--washi) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body.home .brand,
body.subpage .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }

body.home .brand-mark,
body.subpage .brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--shu);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 20px; color: var(--washi);
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1.5px rgba(244, 239, 227, 0.35);
}
body.home .brand-mark img, body.subpage .brand-mark img { display: none; }
body.home .brand-mark::after, body.subpage .brand-mark::after { content: "核"; }

body.home .brand-text strong, body.subpage .brand-text strong {
  display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: 0.04em; line-height: 1.1;
}
body.home .brand-text small, body.subpage .brand-text small {
  display: block; font-size: 10.5px; color: var(--ink-soft); letter-spacing: 0.14em;
  white-space: nowrap;
}

body.home .nav, body.subpage .nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }
body.home .nav a, body.subpage .nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.06em; padding: 6px 2px; border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-calm), border-color 0.3s var(--ease-calm);
}
body.home .nav a:hover, body.subpage .nav a:hover,
body.subpage .nav a.is-current { color: var(--ink); border-bottom-color: var(--shu); }
/* styles.css(旧テーマ)の is-current::after 下線は washi テーマでは
   透明な幅100%ブロックとして残り、flex レイアウトを崩すので無効化 */
body.home .nav a.is-current::after,
body.subpage .nav a.is-current::after { content: none; }

body.home .header-cta, body.subpage .header-cta {
  margin-left: 6px; padding: 9px 20px; border-radius: 999px;
  background: var(--ai); color: var(--washi); text-decoration: none;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-calm), background 0.3s var(--ease-calm);
}
body.home .header-cta:hover, body.subpage .header-cta:hover { background: var(--ai-soft); transform: translateY(-2px); }

/* ---------- mobile nav (hamburger + washi drawer) ---------- */
@counter-style daiji {
  system: fixed;
  symbols: "壱" "弐" "参" "肆" "伍" "陸" "漆" "捌" "玖";
  fallback: cjk-ideographic;
}

body.home .nav-toggle,
body.subpage .nav-toggle {
  display: none;
}

html.nav-locked,
html.nav-locked body {
  overflow: hidden;
}

@media (max-width: 860px) {
  body.home .header-cta, body.subpage .header-cta { margin-left: auto; }

  /* backdrop-filter があると子の position:fixed の基準がヘッダーになり
     全画面ドロワーが作れない。狭幅では blur を外し不透明度で代替する */
  body.home .site-header,
  body.subpage .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--washi) 97%, transparent);
  }

  /* 狭幅ではサブタイトルを畳む(トグルの居場所を確保) */
  body.home .brand-text small,
  body.subpage .brand-text small { display: none; }

  /* ドロワー(nav, z:58)はヘッダーのスタッキング文脈内に描画されるため、
     ブランド・CTA・トグルを上層(61)に持ち上げて常に操作可能にする */
  body.home .site-header > .brand,
  body.subpage .site-header > .brand,
  body.home .site-header > .header-cta,
  body.subpage .site-header > .header-cta,
  body.home .site-header > .nav-toggle,
  body.subpage .site-header > .nav-toggle {
    position: relative;
    z-index: 61;
  }

  body.home .nav-toggle,
  body.subpage .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 11px 10px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle-bar {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-calm), opacity 0.2s var(--ease-calm);
  }

  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1),
  body.subpage .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2),
  body.subpage .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  body.home .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3),
  body.subpage .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 既存の .nav をヘッダー下に敷く全画面の和紙ドロワーにする。
     ヘッダー(z-index:60)より下に置き、トグルとブランドは常に見える */
  body.home .nav,
  body.subpage .nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 58;
    flex-direction: column;
    justify-content: center;
    align-items: stretch; /* styles.css(旧) の center を明示上書き */
    gap: 0;
    margin: 0;
    padding: 92px clamp(26px, 9vw, 52px) 110px;
    background-color: var(--washi);
    background-image: var(--grain);
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition:
      opacity 0.38s var(--ease-calm),
      transform 0.38s var(--ease-calm),
      visibility 0s linear 0.38s;
  }

  body.home .nav.is-open,
  body.subpage .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.38s var(--ease-calm),
      transform 0.38s var(--ease-calm);
  }

  /* ドロワーの品書き: 明朝の大きな縦積みリンク */
  body.home .nav a,
  body.subpage .nav a {
    font-family: var(--font-display);
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink);
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 14px;
    opacity: 0;
    transform: translateY(10px);
  }
  body.home .nav.is-open a,
  body.subpage .nav.is-open a {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease-calm), transform 0.5s var(--ease-calm);
  }
  body.home .nav.is-open a:nth-child(1) { transition-delay: 0.06s; }
  body.home .nav.is-open a:nth-child(2) { transition-delay: 0.12s; }
  body.home .nav.is-open a:nth-child(3) { transition-delay: 0.18s; }
  body.home .nav.is-open a:nth-child(4) { transition-delay: 0.24s; }
  body.home .nav.is-open a:nth-child(5) { transition-delay: 0.3s; }
  body.subpage .nav.is-open a:nth-child(1) { transition-delay: 0.06s; }
  body.subpage .nav.is-open a:nth-child(2) { transition-delay: 0.12s; }
  body.subpage .nav.is-open a:nth-child(3) { transition-delay: 0.18s; }
  body.subpage .nav.is-open a:nth-child(4) { transition-delay: 0.24s; }
  body.subpage .nav.is-open a:nth-child(5) { transition-delay: 0.3s; }

  /* 番号(壱弐参…)を朱で添える。トップの工程表記と同じ大字 */
  body.home .nav a::before,
  body.subpage .nav a::before {
    content: counter(nav-item, daiji);
    counter-increment: nav-item;
    font-size: 13px;
    color: var(--shu);
    letter-spacing: 0.1em;
    min-width: 1.6em;
  }
  body.home .nav,
  body.subpage .nav { counter-reset: nav-item; }

  body.subpage .nav a.is-current { color: var(--shu); border-bottom-color: var(--shu); }
}

@media (prefers-reduced-motion: reduce) {
  body.home .nav,
  body.subpage .nav,
  body.home .nav a,
  body.subpage .nav a,
  .nav-toggle-bar {
    transition: none !important;
  }
}

/* ---------- buttons ---------- */
body.home .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 170px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 14.5px; letter-spacing: 0.07em;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.35s var(--ease-calm), background 0.35s var(--ease-calm),
    color 0.35s var(--ease-calm), border-color 0.35s var(--ease-calm);
}
body.home .button.primary { background: var(--ai); color: var(--washi); }
body.home .button.primary:hover { background: var(--ai-soft); transform: translateY(-2px); }
body.home .button.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
body.home .button.ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- layout primitives ---------- */
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

.sec { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.single { grid-template-columns: 1fr; max-width: 760px; }
.sec-head p.desc { color: var(--ink-soft); font-size: 15px; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--shu);
  text-transform: uppercase; margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--shu);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.7s var(--ease-calm) 0.15s;
}
.is-visible .eyebrow::before, .eyebrow.is-visible::before { transform: scaleX(1); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.4; margin: 0; }
.sec-head h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); letter-spacing: 0.02em; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(64px, 9vw, 130px) 0 0; }

.hero-kasumi { position: absolute; inset: 0; pointer-events: none; }
.hero-kasumi::before, .hero-kasumi::after {
  content: ""; position: absolute; height: 1px; left: 0; right: 0;
  background: linear-gradient(90deg, transparent, rgba(31, 61, 92, 0.35) 30%, rgba(31, 61, 92, 0.35) 60%, transparent);
}
.hero-kasumi::before { top: 24%; }
.hero-kasumi::after { top: 71%; opacity: 0.5; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 90px); align-items: start; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.2em; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; margin: 0 0 30px;
  background: var(--panel);
}
.hero-kicker b { color: var(--shu); font-weight: 900; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.1rem);
  line-height: 1.28; letter-spacing: 0.015em; font-weight: 900;
}
.hero h1 em { font-style: normal; color: var(--ai); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0.05em; right: 0.05em; bottom: 0.04em; height: 0.5em;
  background: rgba(31, 61, 92, 0.1); z-index: -1;
}

.hero-lead { max-width: 36em; color: var(--ink-soft); font-size: clamp(0.98rem, 1.5vw, 1.1rem); margin: 28px 0 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* right rail: seal + vertical text */
.hero-side { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: flex-start; padding-top: 10px; }

.tate {
  writing-mode: vertical-rl; font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.45vw, 1.15rem); letter-spacing: 0.42em; color: var(--ink-soft);
  border-left: 1px solid var(--line); padding-left: clamp(14px, 1.8vw, 24px);
  min-height: 320px;
}
.tate b { color: var(--ink); font-weight: 700; }

.seal-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.seal {
  width: clamp(74px, 8vw, 96px); aspect-ratio: 1; border-radius: 16px;
  background: var(--shu); color: var(--washi);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 4.4vw, 3.3rem);
  transform: rotate(-3deg) scale(1.5); opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(244, 239, 227, 0.4), 0 14px 30px rgba(184, 67, 42, 0.25);
}
.seal.is-stamped { animation: sealStamp 0.7s var(--ease-calm) forwards; }
@keyframes sealStamp {
  0% { opacity: 0; transform: rotate(-10deg) scale(1.55); }
  62% { opacity: 1; transform: rotate(-2deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(-3deg) scale(1); }
}
.seal-wrap small { font-size: 10px; letter-spacing: 0.34em; color: var(--ink-soft); font-weight: 700; }

.hero-foot {
  margin-top: clamp(54px, 8vw, 100px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: center;
  padding: 18px 0 26px; font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.06em;
}
.hero-foot .scrolldown { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.28em; }
.hero-foot .scrolldown::after {
  content: ""; width: 44px; height: 1px; background: var(--ink-soft);
  animation: scrollLine 2.2s var(--ease-calm) infinite;
  transform-origin: left center;
}
@keyframes scrollLine { 0% { transform: scaleX(0); opacity: 0; } 35% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1) translateX(18px); opacity: 0; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { order: -1; justify-content: flex-end; padding-top: 0; }
  .tate { display: none; }
  .seal { width: 60px; border-radius: 12px; font-size: 1.9rem; }
  .seal-wrap small { font-size: 8.5px; letter-spacing: 0.26em; }
}

/* ---------- emaki (horizontal scroll-painting) ---------- */
.emaki { border-top: 1px solid var(--line); background: var(--washi-deep); background-image: var(--grain); }
.emaki-head { padding: clamp(70px, 9vw, 120px) 0 clamp(20px, 3vw, 36px); }

.emaki-wrap { position: relative; height: 330vh; }
.emaki-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.emaki-track {
  display: flex; gap: clamp(28px, 4vw, 64px);
  padding: 0 clamp(20px, 6vw, 90px);
  will-change: transform;
}

.emaki-panel { flex: 0 0 auto; width: min(640px, 74vw); display: grid; gap: 22px; }

.emaki-frame {
  position: relative; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--panel); padding: clamp(10px, 1.4vw, 16px);
  box-shadow: 0 24px 60px rgba(33, 29, 24, 0.12);
}
.emaki-frame::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none;
}
.emaki-frame img { display: block; width: 100%; aspect-ratio: 1280 / 600; object-fit: cover; border-radius: 3px; filter: sepia(0.08) saturate(0.92); }

/* living frames: two layers crossfade so the 12-frame sequence reads as continuous motion */
.ef-stack { position: relative; display: block; }
.ef-stack .ef-b {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: var(--mix, 0); will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  .ef-stack .ef-b { display: none; }
}

.emaki-cap { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.emaki-num {
  font-family: var(--font-display); font-weight: 900; color: var(--shu);
  font-size: 1.5rem; line-height: 1; padding-top: 4px;
}
.emaki-cap h3 { font-size: 1.25rem; letter-spacing: 0.04em; }
.emaki-cap p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

.emaki-progress { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px); display: flex; justify-content: center; }
.emaki-progress .bar { width: min(420px, 60vw); height: 2px; background: rgba(33, 29, 24, 0.14); border-radius: 2px; overflow: hidden; }
.emaki-progress .bar::after {
  content: ""; display: block; height: 100%; background: var(--shu);
  transform-origin: left center; transform: scaleX(var(--emaki-prog, 0));
}

@media (max-width: 860px) {
  .emaki-wrap { height: auto; }
  .emaki-stage { position: static; height: auto; overflow: visible; }
  .emaki-track { flex-direction: column; transform: none !important; padding: 0 0 56px; }
  .emaki-panel { width: 100%; }
  .emaki-progress { display: none; }
}

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px); background: transparent; position: relative;
  transition: background 0.45s var(--ease-calm);
}
.svc:hover { background: var(--panel); }
.svc i {
  font-style: normal; font-family: var(--font-display); font-weight: 700;
  color: var(--gold); font-size: 13px; letter-spacing: 0.3em;
}
.svc h3 { margin: 14px 0 10px; font-size: 1.16rem; letter-spacing: 0.03em; }
.svc h3::after {
  content: ""; display: block; width: 26px; height: 1px; background: var(--shu);
  margin-top: 12px; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease-calm);
}
.svc:hover h3::after { transform: scaleX(1); }
.svc p { margin: 0; color: var(--ink-soft); font-size: 13.8px; line-height: 1.9; }

@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- flow ---------- */
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); counter-reset: step; position: relative; }
.flow-list::before {
  content: ""; position: absolute; top: 23px; left: 4%; right: 4%; height: 1px; background: var(--line);
}
.flow-step { position: relative; padding-top: 64px; }
.flow-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--washi);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--ai);
}
.flow-step h3 { font-size: 1.08rem; }
.flow-step p { color: var(--ink-soft); font-size: 13.5px; margin: 8px 0 0; }

@media (max-width: 860px) {
  .flow-list { grid-template-columns: 1fr; gap: 30px; }
  .flow-list::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-step { padding: 0 0 0 70px; }
}

/* ---------- works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 34px); }
.work {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel);
  transition: transform 0.45s var(--ease-calm), box-shadow 0.45s var(--ease-calm);
}
.work:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(33, 29, 24, 0.14); }
.work img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.work > div { padding: 20px 22px 24px; }
.work i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--shu); }
.work h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.work p { margin: 0; color: var(--ink-soft); font-size: 13.2px; }

.evidence { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.evidence a {
  color: var(--ai); text-decoration: none; font-weight: 700; font-size: 13.5px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 22px;
  transition: transform 0.35s var(--ease-calm), border-color 0.35s var(--ease-calm);
}
.evidence a:hover { transform: translateY(-2px); border-color: var(--ai); }

@media (max-width: 860px) { .works-grid { grid-template-columns: 1fr; } }

/* ---------- governance ---------- */
.gov { background: var(--ink); color: var(--washi); background-image: var(--grain); }
.gov .eyebrow { color: var(--gold); }
.gov .eyebrow::before { background: var(--gold); }
.gov .sec-head h2 { color: var(--washi); }
.gov .sec-head p.desc { color: rgba(244, 239, 227, 0.66); }
.gov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(244, 239, 227, 0.16); border: 1px solid rgba(244, 239, 227, 0.16); }
.gov-cell { background: var(--ink); padding: clamp(22px, 2.6vw, 34px); }
.gov-cell i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.22em; color: var(--gold); }
.gov-cell strong { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 15.5px; line-height: 1.8; font-weight: 600; }
@media (max-width: 980px) { .gov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gov-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-form { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.contact-form label span b { color: var(--shu); font-size: 10.5px; margin-left: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 13px 14px; outline: none;
  transition: border-color 0.3s var(--ease-calm), box-shadow 0.3s var(--ease-calm);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--ai); box-shadow: 0 0 0 3px rgba(31, 61, 92, 0.12);
}
.contact-form > label { margin-top: 18px; }
.privacy-check { display: flex !important; grid-template-columns: none; flex-direction: row; gap: 10px !important; align-items: flex-start; font-weight: 500 !important; color: var(--ink-soft) !important; font-size: 12.5px !important; }
.privacy-check input { width: 16px; height: 16px; margin-top: 3px; }
.form-hp { position: absolute !important; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.form-status { min-height: 1.4em; font-size: 13.5px; margin: 14px 0 0; }
.form-status[data-state="success"] { color: #2e6b3f; }
.form-status[data-state="error"] { color: var(--shu); }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- company ---------- */
.company-dl { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; margin: 0; }
.company-dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.company-dl dt { font-weight: 700; font-size: 13.5px; color: var(--ink-soft); letter-spacing: 0.08em; }
.company-dl dd { margin: 0; font-size: 14.5px; }
.company-dl a { color: var(--ai); }
@media (max-width: 640px) { .company-dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- footer ---------- */
body.home .site-footer, body.subpage .site-footer {
  background: var(--ink); color: rgba(244, 239, 227, 0.78);
  display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: center;
  padding: 34px clamp(18px, 4vw, 48px);
  font-size: 12.5px; letter-spacing: 0.08em;
  border: 0;
}
body.home .site-footer span:first-child, body.subpage .site-footer span:first-child {
  font-family: var(--font-display); font-weight: 700; color: var(--washi); font-size: 15px;
}

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(5px);
  transition: opacity 0.8s var(--ease-calm), transform 0.8s var(--ease-calm), filter 0.8s var(--ease-calm);
  transition-delay: calc(var(--ri, 0) * var(--stagger));
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

body.home .stagger-item { opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s var(--ease-calm), transform 0.65s var(--ease-calm);
  transition-delay: calc(var(--ri, 0) * var(--stagger));
}
body.home .is-visible .stagger-item { opacity: 1; transform: none; }

/* ---------- subpage reskin (styles.css の上書き) ---------- */
body.subpage {
  color: var(--ink);
  background: var(--washi);
  background-image: var(--grain);
  font-family: var(--font-body);
}
body.subpage .page-hero { background: transparent; color: var(--ink); }
body.subpage .page-hero h1 { color: var(--ink); font-family: var(--font-display); }
body.subpage .page-hero p { color: var(--ink-soft); }
body.subpage .status-pill {
  background: var(--panel); color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
body.subpage .eyebrow { color: var(--shu); }
body.subpage .section-heading h2 { color: var(--ink); font-family: var(--font-display); }
body.subpage .section-heading p { color: var(--ink-soft); }
body.subpage .detail-card, body.subpage .page-cta-card, body.subpage .case-card, body.subpage .service-card {
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: none; border-radius: 8px;
}
body.subpage .detail-card span, body.subpage .case-card span, body.subpage .service-card span { color: var(--shu); }
body.subpage .detail-card h3, body.subpage .case-card h3, body.subpage .service-card h3 { color: var(--ink); }
body.subpage .detail-card p, body.subpage .case-card p, body.subpage .service-card p,
body.subpage .feature-list li { color: var(--ink-soft); }
body.subpage .button.primary { background: var(--ai); color: var(--washi); }
body.subpage .button.primary:hover { background: var(--ai-soft); }
body.subpage .button.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }

.related-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-service-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.35s var(--ease-calm), border-color 0.35s var(--ease-calm), box-shadow 0.35s var(--ease-calm);
}

.related-service-card:hover,
.related-service-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(184, 67, 42, 0.45);
  box-shadow: 0 20px 44px rgba(31, 61, 92, 0.12);
}

.related-service-card span {
  color: var(--shu);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-service-card strong {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.55;
}

.related-service-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---------- Zaitaku pharmacy cloud product page ---------- */
.product-cloud-page .product-hero {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) 0 clamp(54px, 8vw, 94px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.58fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: end;
}

.product-cloud-page .product-hero-inner h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.product-cloud-page .product-subtitle {
  margin: 14px 0 0;
  color: var(--ai);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.55;
}

.product-cloud-page .product-hero-inner > p:not(.status-pill):not(.product-subtitle) {
  max-width: 46em;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.product-cloud-page .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.product-cloud-page .product-summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
}

.product-cloud-page .product-summary dl,
.product-cloud-page .provider-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.product-cloud-page .product-summary div,
.product-cloud-page .provider-list div {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.product-cloud-page .product-summary div:first-child,
.product-cloud-page .provider-list div:first-child {
  padding-top: 0;
}

.product-cloud-page .product-summary div:last-child,
.product-cloud-page .provider-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-cloud-page dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-cloud-page dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.product-cloud-page .product-section {
  border-top: 1px solid var(--line);
}

.product-cloud-page .feature-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-cloud-page .feature-matrix article {
  min-height: 210px;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-cloud-page .feature-matrix span {
  color: var(--shu);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.product-cloud-page .feature-matrix strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
}

.product-cloud-page .feature-matrix p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.product-cloud-page .pricing-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.product-cloud-page .price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 38px);
}

.product-cloud-page .price-card.main {
  border-color: rgba(31, 61, 92, 0.36);
  box-shadow: 0 24px 60px rgba(33, 29, 24, 0.1);
}

.product-cloud-page .price-label {
  margin: 0 0 10px;
  color: var(--shu);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.product-cloud-page .price-card h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.product-cloud-page .price {
  margin: 18px 0 20px;
  color: var(--ai);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.product-cloud-page .price span,
.product-cloud-page .price small {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-right: 8px;
}

.product-cloud-page .price small {
  margin: 0 0 0 6px;
}

.product-cloud-page .fee-table-wrap {
  margin-top: clamp(22px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-cloud-page .fee-table-wrap h3 {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
}

.product-cloud-page .fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-cloud-page .fee-table th,
.product-cloud-page .fee-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.product-cloud-page .fee-table th {
  color: var(--ink);
  background: rgba(31, 61, 92, 0.08);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.product-cloud-page .fee-table td:nth-child(2) {
  white-space: nowrap;
  font-weight: 800;
  color: var(--ai);
}

.product-cloud-page .scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.product-cloud-page .scope-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
}

.product-cloud-page .scope-card h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
}

.product-cloud-page .scope-card .feature-list {
  margin-top: 18px;
}

.product-cloud-page .product-form {
  max-width: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
}

.product-cloud-page .trust {
  background: var(--ink);
}

.product-cloud-page .trust-inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
}

.product-cloud-page .provider-list {
  color: var(--washi);
}

.product-cloud-page .provider-list dt {
  color: rgba(244, 239, 227, 0.6);
}

.product-cloud-page .provider-list dd {
  color: var(--washi);
}

.product-cloud-page .provider-list a {
  color: var(--washi);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .related-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-cloud-page .product-hero,
  .product-cloud-page .trust-inner {
    grid-template-columns: 1fr;
  }
  .product-cloud-page .feature-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .related-services .section-heading.split {
    gap: 14px;
  }

  .related-services .section-heading h2 {
    font-size: clamp(2rem, 8.5vw, 2.55rem);
    line-height: 1.2;
  }

  .related-services .section-heading p {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .related-service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .related-service-card {
    position: relative;
    min-height: 0;
    gap: 7px;
    padding: 16px 48px 16px 18px;
  }

  .related-service-card::after {
    content: "›";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shu);
    font-size: 1.8rem;
    line-height: 1;
  }

  .related-service-card span {
    font-size: 0.72rem;
  }

  .related-service-card strong {
    font-size: 1rem;
    line-height: 1.45;
  }

  .related-service-card p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .product-cloud-page .pricing-layout,
  .product-cloud-page .scope-grid,
  .product-cloud-page .feature-matrix {
    grid-template-columns: 1fr;
  }
  .product-cloud-page .fee-table-wrap {
    overflow: hidden;
  }
  .product-cloud-page .fee-table {
    min-width: 0;
    display: block;
  }
  .product-cloud-page .fee-table thead {
    display: none;
  }
  .product-cloud-page .fee-table tbody,
  .product-cloud-page .fee-table tr,
  .product-cloud-page .fee-table td {
    display: block;
    width: 100%;
  }
  .product-cloud-page .fee-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .product-cloud-page .fee-table td {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 0;
    white-space: normal;
  }
  .product-cloud-page .fee-table td::before {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }
  .product-cloud-page .fee-table td:nth-child(1)::before {
    content: "項目";
  }
  .product-cloud-page .fee-table td:nth-child(2)::before {
    content: "価格";
  }
  .product-cloud-page .fee-table td:nth-child(3)::before {
    content: "内容";
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, body.home .stagger-item { transition: none; opacity: 1; transform: none; filter: none; }
  .seal { opacity: 1; transform: rotate(-3deg) scale(1); }
  .seal.is-stamped { animation: none; }
  .hero-foot .scrolldown::after { animation: none; }
  .emaki-wrap { height: auto; }
  .emaki-stage { position: static; height: auto; }
  .emaki-track { transform: none !important; flex-wrap: wrap; }
  .eyebrow::before { transform: scaleX(1); transition: none; }
}

/* footer nav */
.site-footer { flex-direction: column; gap: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-nav a { font-size: 12.5px; opacity: .78; text-decoration: none; color: inherit; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; opacity: .7; font-size: 12px; }

/* products band */
.hero-product-note { margin-top: 14px; font-size: 13.5px; opacity: .85; }
.hero-product-note a { font-weight: 700; }
.prod-price { font-weight: 800; font-size: 14px; margin: 6px 0 10px; }
.prod-benefits { margin: 10px 0 14px; padding-left: 1.2em; font-size: 13.5px; line-height: 1.9; }
.prod-benefits li { list-style: "— "; }
.case-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.case-link:hover { opacity: .75; }

/* card hover lift */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .svc, .work { transition: transform .35s var(--ease-calm, ease), box-shadow .35s var(--ease-calm, ease); }
  .svc:hover, .work:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(30, 25, 18, .10); }
}
.countup { font-variant-numeric: tabular-nums; }

/* pricing: prevent awkward wraps (3-card layouts) */
.product-cloud-page .price {
  font-size: clamp(1.8rem, 3.1vw, 2.9rem);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
}
.product-cloud-page .price-card h3,
.product-cloud-page .product-hero h1 {
  word-break: auto-phrase;
}

/* service hero visual */
.service-visual {
  max-width: 1160px;
  margin: clamp(-10px, -1vw, 0px) auto 0;
  padding: 0 clamp(18px, 4vw, 48px);
}
.service-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(33, 29, 24, 0.14);
  box-shadow: 0 22px 54px rgba(33, 29, 24, 0.12);
}

/* legal pages */
.legal-doc { max-width: 860px; }
.legal-doc h2 { margin: 2.2em 0 0.7em; font-size: 1.25rem; }
.legal-doc p, .legal-doc li { line-height: 2; font-size: 14.5px; }
.legal-doc ul { padding-left: 1.4em; margin: 0.6em 0 1.2em; }
.legal-list dd { line-height: 2; }

/* ---------- fix (2026-07-05): カードタイトル・case-linkが素の青リンクだった ---------- */
.svc h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease-calm), border-color 0.3s var(--ease-calm);
}
.svc h3 a:hover { color: var(--shu); border-color: currentColor; }
.case-link { color: var(--shu); }

/* ---------- fix (2026-07-05): モバイルで見出し+説明の2カラムが潰れていた ---------- */
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
}

/* fix: ヒーロー内プロダクトリンクも同トーンに */
.hero-product-note a { color: var(--shu); text-decoration: none; border-bottom: 1px solid currentColor; }
.hero-product-note a:hover { opacity: 0.75; }

/* Salon platform product */
.salon-product-page .product-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(239, 120, 105, .16), transparent 35%),
    linear-gradient(135deg, #f4efe3 0%, #f7f5ef 58%, #e8efe9 100%);
  grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr);
  gap: clamp(34px, 4.5vw, 64px);
  align-items: start;
}
.salon-hero-side {
  display: grid;
  align-self: stretch;
  padding-top: 6px;
}
.salon-hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 60, 52, .18);
  border-radius: 8px;
  background: #e7dfcf;
  box-shadow: 0 24px 52px rgba(23, 60, 52, .16);
}
.salon-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 8px rgba(247, 245, 239, .25);
}
.salon-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.salon-hero-visual figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 12px;
  color: #f7f4ee;
  background: rgba(23, 60, 52, .88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.salon-hero-side .product-summary {
  position: relative;
  z-index: 2;
  width: calc(100% - 44px);
  margin: -34px 0 0 44px;
  background: rgba(247, 245, 239, .96);
  box-shadow: 0 18px 38px rgba(23, 60, 52, .11);
  backdrop-filter: blur(8px);
}
.salon-product-page h1.salon-product-title {
  max-width: none;
  font-size: clamp(3rem, 4.7vw, 4rem);
  line-height: 1.08;
  letter-spacing: .025em;
}
.salon-product-title span,
.salon-product-title b { display: block; }
.salon-product-title b {
  font: inherit;
  white-space: nowrap;
}
.salon-product-page .product-subtitle,
.salon-product-page .section-heading h2,
.salon-product-page .salon-demo-copy h2,
.salon-product-page .page-cta h2 {
  text-wrap: balance;
  word-break: auto-phrase;
}
.salon-product-page .button { text-wrap: nowrap; }
.salon-commitment {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(520px, 1.35fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: start;
  padding-top: clamp(76px, 10vw, 140px);
  padding-bottom: clamp(76px, 10vw, 140px);
  border-bottom: 1px solid rgba(23, 60, 52, .16);
}
.salon-commitment-lead { position: sticky; top: 112px; }
.salon-commitment-lead h2 { margin: 12px 0 24px; max-width: 9em; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.2; }
.salon-commitment-lead > p:not(.eyebrow) { color: var(--ink-soft); line-height: 2; }
.salon-commitment-note { margin-top: 26px; padding: 18px 0 0 22px; border-left: 3px solid #ef7869; font-weight: 700; }
.salon-fit-grid { display: grid; gap: 20px; }
.salon-fit-column { padding: clamp(26px, 4vw, 42px); border: 1px solid rgba(23, 60, 52, .18); background: rgba(255, 255, 255, .46); }
.salon-fit-column > span { display: inline-block; margin-bottom: 24px; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.salon-fit-column ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.salon-fit-column li { position: relative; padding: 22px 0 22px 34px; border-top: 1px solid rgba(23, 60, 52, .13); }
.salon-fit-column li::before { position: absolute; left: 0; top: 22px; font-size: 18px; font-weight: 900; }
.salon-fit-column strong, .salon-fit-column small { display: block; }
.salon-fit-column strong { color: var(--ink); font-size: 1.05rem; }
.salon-fit-column small { margin-top: 7px; color: var(--ink-soft); font-size: .9rem; line-height: 1.75; }
.salon-fit-yes { border-top: 4px solid #173c34; }
.salon-fit-yes > span { color: #173c34; }
.salon-fit-yes li::before { content: "○"; color: #173c34; }
.salon-fit-no { border-color: rgba(97, 91, 80, .2); background: rgba(238, 233, 221, .48); }
.salon-fit-no > span { color: #756f63; }
.salon-fit-no li::before { content: "—"; color: #938b7c; }
.salon-demo-stage {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.45fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(72px, 9vw, 130px);
  padding-bottom: clamp(72px, 9vw, 130px);
}
.salon-demo-copy h2 { margin: 12px 0 22px; max-width: 650px; }
.salon-demo-copy > p { color: var(--ink-soft); line-height: 1.9; }
.salon-demo-copy .feature-list { margin: 24px 0; }
.salon-demo-window {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(23, 60, 52, .22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(24, 38, 34, .18);
  transform: rotate(.6deg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.salon-demo-window:hover,
.salon-demo-window:focus-visible { transform: translateY(-6px) rotate(0); box-shadow: 0 38px 100px rgba(24, 38, 34, .24); }
.salon-browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #173c34; color: #fff; }
.salon-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ef7869; }
.salon-browser-bar i:nth-child(2) { opacity: .62; }
.salon-browser-bar i:nth-child(3) { opacity: .35; }
.salon-browser-bar b { margin-left: auto; font-size: 10px; letter-spacing: .15em; }
.salon-demo-window img { display: block; width: 100%; height: auto; }
.salon-pricing-layout .price-card.main { border-top-color: #ef7869; }
.salon-pricing-layout .price { font-size: clamp(1.5rem, 2.4vw, 2.4rem); }
.salon-monthly { margin: -10px 0 22px; color: var(--ink-soft); font-size: 1.05rem; font-weight: 800; }
.salon-boundary { background: #173c34; color: #f7f4ee; }
.salon-product-page .salon-boundary .section-heading h2,
.salon-product-page .salon-boundary .scope-card h3 { color: #f7f4ee; }
.salon-product-page .salon-boundary .eyebrow { color: #f3a08f; }
.salon-product-page .salon-boundary .section-heading > p { color: rgba(247, 244, 238, .82); }
.salon-boundary .section-heading p,
.salon-boundary .scope-card p { color: rgba(247, 244, 238, .76); }
.salon-boundary .scope-card { border-color: rgba(247, 244, 238, .18); background: rgba(247, 244, 238, .05); }
@media (max-width: 900px) {
  .salon-product-page .product-hero { grid-template-columns: 1fr; }
  .salon-commitment { grid-template-columns: 1fr; }
  .salon-commitment-lead { position: static; }
  .salon-commitment-lead h2 { max-width: none; }
  .salon-demo-stage { grid-template-columns: 1fr; }
  .salon-demo-window { transform: none; }
  .salon-product-page h1.salon-product-title { font-size: clamp(2.75rem, 7.7vw, 4rem); }
  .salon-hero-side { width: min(760px, 100%); max-width: none; padding-top: 12px; }
}
@media (max-width: 720px) {
  .salon-product-page h1.salon-product-title {
    font-size: clamp(2.05rem, 9.2vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: .015em;
  }
  .salon-hero-side { padding-top: 10px; }
  .salon-hero-side .product-summary { width: calc(100% - 20px); margin: -20px 0 0 20px; }
  .salon-hero-visual figcaption { right: 10px; bottom: 10px; font-size: 11px; }
  .salon-demo-stage { padding-top: 64px; padding-bottom: 64px; }
  .salon-commitment { padding-top: 64px; padding-bottom: 64px; }
  .salon-fit-column { padding: 24px 20px; }
  .salon-fit-column li { padding-left: 30px; }
  .salon-demo-window { border-radius: 12px; }
  .salon-pricing-layout .price { font-size: clamp(1.7rem, 9vw, 2.5rem); }
}
@media (max-width: 350px) {
  .salon-product-page h1.salon-product-title { font-size: 1.72rem; }
  .salon-product-page .product-actions .button { width: 100%; padding-inline: 12px; }
  .salon-pricing-layout .price { font-size: 1.58rem; }
}

/* ---------- washi-motion overlay（トップ演出キャンバス） ---------- */
#washi-motion {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 55; /* header(60)の下、コンテンツの上 */
  pointer-events: none;
}

/* =====================================================================
   washi-texture (2026-07-05) — サイト全体を「漉いた紙」に近づける
   1. 漉きムラ: 大きく柔らかい濃淡を背景に
   2. 楮の繊維: 長い繊維のテクスチャを全面に薄く
   ===================================================================== */
:root {
  --fiber: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="700" height="700"><filter id="f"><feTurbulence type="turbulence" baseFrequency="0.004 0.055" numOctaves="3" seed="7" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="table" tableValues="0 0 0 0.02 0.05"/></feComponentTransfer></filter><rect width="700" height="700" filter="url(%23f)" fill="black"/></svg>');
  --fiber-v: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="700" height="700"><filter id="f"><feTurbulence type="turbulence" baseFrequency="0.05 0.005" numOctaves="3" seed="11" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="table" tableValues="0 0 0 0.018 0.04"/></feComponentTransfer></filter><rect width="700" height="700" filter="url(%23f)" fill="black"/></svg>');
}

/* 漉きムラ — 背景のベタ塗りに柔らかい濃淡を足す */
body.home,
body.subpage {
  background-image:
    radial-gradient(ellipse 90% 55% at 12% 8%, rgba(236, 229, 211, 0.85), transparent 70%),
    radial-gradient(ellipse 70% 60% at 88% 30%, rgba(250, 246, 236, 0.9), transparent 72%),
    radial-gradient(ellipse 85% 50% at 40% 68%, rgba(236, 229, 211, 0.6), transparent 70%),
    radial-gradient(ellipse 60% 45% at 78% 92%, rgba(233, 224, 204, 0.55), transparent 75%),
    var(--grain);
  background-attachment: fixed, fixed, fixed, fixed, scroll;
}

/* 楮の繊維 — 固定オーバーレイで紙の繊維を全面に */
body.home::after,
body.subpage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 54; /* washi-motion(55) と header(60) の下 */
  pointer-events: none;
  background-image: var(--fiber), var(--fiber-v);
  mix-blend-mode: multiply;
}

/* パネル・カード類も紙の質感に */
.svc,
body.subpage .card,
body.subpage .panel {
  background-image: var(--grain);
  box-shadow: inset 0 0 32px rgba(33, 29, 24, 0.025);
}

/* ダークセクション(gov)では繊維を控えめに見せるため薄い washi 繊維に */
.gov {
  position: relative;
}
