/* TERASU Partner HP
   z-index の段：10＝進捗バー下の要素 / 100＝固定ヘッダー / 200＝スマホ固定ボタン / 1000＝進捗バー */
:root {
  --navy: #0b1b33;
  --navy-2: #122a4e;
  --navy-3: #1b3a66;
  --gold: #f5c66b;
  --gold-deep: #8a6212;
  --gold-pale: #f8ecd2;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --card: #ffffff;
  --ink: #16202e;
  --ink-soft: #485263;
  --line: #d9d5c9;
  --line-green: #05883e;
  --line-green-dark: #04702f;
  --on-navy: #f4f2ec;
  --on-navy-soft: #c3ccd9;
  --radius: 12px;
  --radius-lg: 24px;
  --header-h: 72px;
  --font: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Archivo", "Noto Sans JP", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.2, 1.25, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt";
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, dt, summary { word-break: auto-phrase; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .contact :focus-visible { outline-color: var(--gold); }

h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; font-weight: 900; letter-spacing: .01em; }
h3 { font-size: 18px; line-height: 1.55; font-weight: 700; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }
.fine { font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

.ico, .ico-fill { width: 1.25em; height: 1.25em; flex: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; background: var(--card); padding: 8px 14px; border-radius: 8px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 28px;
  border-radius: var(--radius); border: 0;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: var(--line-green-dark); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.btn-lg { min-height: 64px; padding: 16px 40px; font-size: 18px; }
.link-more {
  display: inline-flex; align-items: center; gap: 10px; padding-block: 8px;
  font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor;
}
.link-more .ico { transition: transform .2s var(--ease-out); }
.link-more:hover .ico { transform: translateX(4px); }
.link-more-light { color: var(--on-navy); }

/* 進捗バー */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--paper);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 20px rgba(20, 30, 50, .05); }
.header-inner {
  height: 100%; max-width: 1400px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px);
  display: flex; align-items: center; gap: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-en); font-weight: 700; font-size: 19px; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: clamp(12px, 1.5vw, 22px); }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--gold-deep); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--ink-soft); white-space: nowrap;
}
.motion-toggle:hover { border-color: var(--ink-soft); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }

/* ヒーロー */
.hero { padding: 4px clamp(10px, 2vw, 28px) 0; }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1500px; margin-inline: auto;
  min-height: min(calc(100svh - var(--header-h) - 76px), 720px);
  display: flex; align-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(118deg, var(--navy) 0%, var(--navy) 42%, var(--navy-2) 100%);
  color: var(--on-navy);
}
.hero-copy { position: relative; z-index: 2; width: min(660px, 52%); padding: clamp(32px, 5vw, 72px); padding-right: 0; }
.hero-label { font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: .04em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(24px, 3.75vw, 54px); white-space: nowrap; line-height: 1.3; font-weight: 900; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h1 .line { display: block; overflow: hidden; padding-block: .04em; }
.hero h1 .line > span { display: block; }
.hero-sub { margin-top: 20px; color: var(--on-navy-soft); font-size: clamp(15px, 1.2vw, 17px); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.hero-visual { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 58%; }
.hero-glow {
  position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 198, 107, .22) 0%, rgba(245, 198, 107, .07) 40%, transparent 68%);
}
.obj { position: absolute; }
.obj img { width: 100%; height: auto; }
.par { will-change: transform; transition: transform .5s var(--ease-out); }
.obj-lantern   { width: 44%; left: 31%; top: 13%; }
.obj-helmet    { width: 29%; left: 3%;  top: 4%; }
.obj-blueprint { width: 31%; right: 1%; top: 3%; }
.obj-estimate  { width: 31%; left: 5%;  bottom: 2%; }
.obj-phone     { width: 25%; right: 7%; bottom: 3%; }

.js .obj { animation: objPop .95s var(--ease-pop) both; }
.js .obj-lantern { animation-delay: .15s; }
.js .obj-helmet { animation-delay: .4s; }
.js .obj-blueprint { animation-delay: .55s; }
.js .obj-estimate { animation-delay: .7s; }
.js .obj-phone { animation-delay: .85s; }
.obj img { animation: objFloat 7s ease-in-out infinite; }
.obj-helmet img { animation-duration: 8s; animation-delay: -2s; }
.obj-blueprint img { animation-duration: 9s; animation-delay: -4s; }
.obj-estimate img { animation-duration: 7.5s; animation-delay: -1s; }
.obj-phone img { animation-duration: 8.5s; animation-delay: -3s; }
@keyframes objPop { from { opacity: 0; transform: translateY(40px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes objFloat {
  0%, 100% { transform: translateY(-9px) rotate(-1.4deg); }
  50% { transform: translateY(9px) rotate(1.4deg); }
}
.js .hero h1 .line > span { animation: lineRise 1s var(--ease-out) both; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: .14s; }
.js .hero-label, .js .hero-sub, .js .hero-actions { animation: fadeUp .8s var(--ease-out) both; }
.js .hero-sub { animation-delay: .3s; }
.js .hero-actions { animation-delay: .42s; }
@keyframes lineRise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 業種の帯 */
.marquee { overflow: hidden; padding-block: 16px; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee-group { display: flex; flex: none; }
.marquee-group span { font-weight: 700; font-size: 15px; white-space: nowrap; padding-inline: 26px; position: relative; color: var(--ink-soft); }
.marquee-group span::after { content: ""; position: absolute; right: -1px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* スクロール出現：ポップ（カード）とリビール（文章） */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-pop] {
  opacity: 0; filter: blur(8px);
  transform: translateY(42px) rotate(var(--tilt, 0deg)) scale(.94);
  transition: opacity .55s var(--ease-out), filter .55s var(--ease-out), transform .85s var(--ease-pop);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible, .js [data-pop].is-visible { opacity: 1; filter: none; transform: none; }

/* 困りごと */
.worry-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: start; }
.worry-head { grid-column: 1 / span 5; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 32px); }
.worry-head p { margin-top: 16px; color: var(--ink-soft); }
.w-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.w-card p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.ico-box { display: block; width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; border-radius: 10px; background: var(--gold-pale); color: var(--gold-deep); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.w-a { grid-column: 6 / span 7; background: var(--navy); border-color: var(--navy); color: var(--on-navy); padding: 36px; }
.w-a h3 { font-size: 22px; }
.w-a p { color: var(--on-navy-soft); }
.w-a .ico-box { background: var(--navy-3); color: var(--gold); }
.w-b { grid-column: 6 / span 4; }
.w-c { grid-column: 10 / span 3; grid-row: 2 / span 2; align-self: stretch; }
.w-d { grid-column: 6 / span 4; }
.role-note { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(18px, 2vw, 24px); line-height: 1.7; font-weight: 700; }
/* 途中の相談ボタン */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(32px, 5vw, 56px); padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); border: 1px solid var(--navy); border-radius: var(--radius); background: var(--card); }
.cta-strip p { flex: 1 1 320px; }
.cta-strip b { display: block; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--navy); }
.cta-strip span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
.cta-after-story { padding-block: clamp(8px, 2vw, 24px) clamp(48px, 6vw, 80px); }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--on-navy-soft); }
.js .hero-note { animation: fadeUp .8s var(--ease-out) .5s both; }
.story-month { font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); color: var(--gold-deep); margin-bottom: calc(clamp(16px, 3vh, 32px) * -.6); }
.contact-steps { list-style: none; margin: clamp(28px, 4vw, 40px) 0 0; padding: 0; max-width: 600px; counter-reset: step; }
.contact-steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid rgba(244, 242, 236, .24); counter-increment: step; }
.contact-steps li:last-child { border-bottom: 1px solid rgba(244, 242, 236, .24); }
.contact-steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--gold); color: var(--navy); font-family: var(--font-en); font-weight: 700; }
.contact-steps b, .contact-steps span { display: block; }
.contact-steps span { font-size: 14px; color: var(--on-navy-soft); }
.komon-months .komon-deliver { margin-top: 0; }
.komon-months .fine a { color: var(--gold-deep); font-weight: 700; }
.role-note strong { color: var(--gold-deep); font-weight: 900; }

/* 業種タブ */
.trade { border-top: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button {
  min-height: 52px; padding: 8px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, transform .18s var(--ease-out);
}
.tabs button:hover { transform: translateY(-1px); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.tab-panel { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); animation: panelIn .5s var(--ease-pop); }
.tab-panel[hidden] { display: none; }
.tab-lead h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; }
.tab-lead p { margin-top: 12px; color: var(--ink-soft); }
.task-list li { padding-block: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11em 1fr; gap: 6px 20px; }
.task-list li:first-child { border-top: 0; padding-top: 0; }
.task-list li:last-child { padding-bottom: 0; }
.task-list span { color: var(--ink-soft); font-size: 15px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* 3問チェック */
.check-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.check-head p { margin-top: 14px; color: var(--ink-soft); }
.check-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 18px 44px rgba(20, 30, 50, .08); min-height: 420px; }
.check {  border-top: 1px solid var(--line); }
.check-progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.check-progress span { display: block; height: 100%; background: var(--gold-deep); transform: scaleX(.05); transform-origin: left; transition: transform .4s var(--ease-out); }
.check-count { font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.check-q { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; font-weight: 700; margin: 4px 0 18px; }
.check-opts { display: grid; gap: 10px; }
.check-opts button {
  display: block; width: 100%; min-height: 54px; padding: 12px 18px; text-align: left; line-height: 1.5;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; font-weight: 500;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease-out);
}
.check-opts button:hover { border-color: var(--navy); background: var(--card); transform: translateX(3px); }
.check-opts button:active { transform: translateX(1px); }
.check-back { margin-top: 14px; background: none; border: 0; padding: 6px 0; font-size: 14px; color: var(--ink-soft); cursor: pointer; text-decoration: underline; }
.check-step { animation: panelIn .45s var(--ease-pop); }
.check-result-label { font-size: 14px; font-weight: 700; color: var(--gold-deep); }
.check-result h3 { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.4; font-weight: 900; margin: 4px 0 14px; }
.check-result ul { margin-block: 16px 22px; }
.check-result li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.check-actions .check-back { margin: 0; }

/* 道具 */
.tools { border-top: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.tool > h3, .tool > p { padding-inline: 28px; }
.tool h3 { font-size: 20px; font-weight: 700; }
.tool p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.tool .fine { font-size: 13px; }
.tool-body { padding: 22px 28px 26px; }
.tool img { width: 100%; object-fit: cover; }
.tool-sim { grid-column: span 7; grid-row: span 2; }
.tool-mitsumori { grid-column: span 5; padding-block: 28px; background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.tool-mitsumori p, .tool-mitsumori .fine { color: var(--on-navy-soft); }
.tool-jw { grid-column: span 5; padding-block: 28px; }
.tool-gaikou { grid-column: span 6; }
.tool-line { grid-column: span 6; }
.tool-gaikou img, .tool-line img { aspect-ratio: 16 / 9; }

.bars { padding: 18px 28px 6px; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 14px; }
.bar b { font-size: 20px; font-weight: 900; color: var(--gold); }
.bar-fill { grid-column: 1 / -1; height: 10px; border-radius: 3px; display: block; transform-origin: left; transition: transform 1.2s var(--ease-out) .3s; }
.bar-full { background: var(--navy-3); }
.bar-quarter { background: var(--gold); width: 25%; }
.js .bars:not(.is-on) .bar-fill { transform: scaleX(0); }

.sim { position: relative; --pos: 50%; aspect-ratio: 1000 / 755; touch-action: pan-y; overflow: hidden; background: var(--paper-2); }
.sim > img, .sim-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sim-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sim-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--card); pointer-events: none; }
.sim-handle::after {
  content: "\2194"; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
  background: var(--card); color: var(--navy); border-radius: 8px; box-shadow: 0 4px 14px rgba(20, 30, 50, .28);
}
.sim input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.sim:focus-within .sim-handle::after { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* 進め方（スクロールで切り替わる） */
.story { position: relative; height: 240svh; }
.story-sentinel { position: absolute; left: 0; width: 1px; height: 33.33%; pointer-events: none; }
.story-sentinel[data-chapter="0"] { top: 0; }
.story-sentinel[data-chapter="1"] { top: 33.33%; }
.story-sentinel[data-chapter="2"] { top: 66.66%; }
.story-stage {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden;
  background: var(--paper); border-top: 1px solid var(--line);
}
.story-inner { position: relative; height: 100%; max-width: 1200px; margin-inline: auto; padding: clamp(20px, 4vh, 40px) clamp(20px, 4vw, 40px) clamp(28px, 5vh, 48px); display: flex; flex-direction: column; }
.story-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(11, 27, 51, .25); }
.story-top h2 { font-size: 18px; font-weight: 700; }
.story-count { font-family: var(--font-en); font-weight: 700; }
.story-panels { position: relative; flex: 1; }
.story-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3vh, 32px); visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s; }
.story-panel.is-active { visibility: visible; opacity: 1; transition: opacity .4s; }
.story-word { font-size: clamp(72px, 16vw, 200px); line-height: 1.1; font-weight: 900; color: var(--navy); overflow: hidden; letter-spacing: -.01em; }
.story-word span { display: block; }
.js .story-panel.is-active .story-word span { animation: wordRise .9s var(--ease-out) both; }
@keyframes wordRise { from { transform: translateY(70%) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.story-text h3 { font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; }
.story-chain { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.story-chain li + li::before { content: "\2192"; margin-inline: 12px; color: var(--navy); }
.story-obj { position: absolute; right: 0; top: 50%; width: clamp(240px, 36vw, 460px); height: auto; margin-top: calc(clamp(240px, 36vw, 460px) / -2); pointer-events: none; }
.js .story-panel.is-active .story-obj { animation: storyObj 1s var(--ease-pop) both; }
@keyframes storyObj { from { opacity: 0; transform: translateY(50px) scale(.72) rotate(-6deg); } to { opacity: 1; transform: none; } }
.story-bar { height: 4px; background: rgba(11, 27, 51, .14); }
.story-bar span { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }

/* 先にお伝えしておくこと */
.honest-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 4vw, 56px); }
.honest-list > div { padding-block: 22px; border-top: 1px solid var(--line); }
.honest-list > div:first-child { border-top: 2px solid var(--navy); }
.honest-list dt { font-weight: 700; font-size: 18px; }
.honest-list dd { margin-top: 4px; color: var(--ink-soft); }

/* 代表 */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-text p { margin-top: 16px; max-width: 36em; color: var(--ink-soft); }
.about-nums > div { padding-block: 16px; border-top: 1px solid var(--line); }
.about-nums > div:first-child { border-top: 0; padding-top: 0; }
.about-nums b { display: block; font-family: var(--font-en); font-weight: 700; font-size: clamp(36px, 4vw, 48px); line-height: 1.2; color: var(--navy); }
.about-nums small { font-family: var(--font); font-size: .42em; font-weight: 700; margin-left: 2px; }
.about-nums > div > span { font-size: 14px; color: var(--ink-soft); }

/* 料金 */
.price { border-top: 1px solid var(--line); }
.honest { border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.price-main { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.price-main h2 { font-size: clamp(22px, 2.4vw, 28px); }
.price-yen { font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1.2; margin-block: 8px 12px; }
.price-yen b { font-family: var(--font-en); font-size: 96px; font-weight: 700; line-height: 1; margin-right: 4px; }
.price-main p:last-child { color: var(--on-navy-soft); font-size: 15px; }
.price-rows > div { display: grid; grid-template-columns: 9em 1fr; gap: 4px 20px; padding-block: 20px; border-top: 1px solid var(--line); }
.price-rows > div:last-child { border-bottom: 1px solid var(--line); }
.price-rows dt { font-weight: 700; }
.price-rows dd { color: var(--ink-soft); }

/* よくある質問 */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 60px; padding-block: 14px; font-weight: 700; cursor: pointer; list-style: none; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { transition: transform .25s var(--ease-out); }
.faq-list details[open] summary .ico { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 40em; }
.faq-list details[open] p { animation: panelIn .35s var(--ease-out); }

/* 最後の問い合わせ */
.contact { padding: clamp(40px, 6vw, 72px) clamp(10px, 2vw, 28px) 0; }
.contact-panel {
  max-width: 1500px; margin-inline: auto; border-radius: var(--radius-lg);
  background: linear-gradient(118deg, var(--navy) 0%, var(--navy) 42%, var(--navy-2) 100%);
  color: var(--on-navy); padding: clamp(40px, 6vw, 88px) clamp(20px, 6vw, 88px);
  position: relative; overflow: hidden; isolation: isolate;
}
.contact-lantern { position: absolute; z-index: -1; right: clamp(20px, 6vw, 110px); top: clamp(16px, 3vw, 44px); width: clamp(220px, 27vw, 380px); }
.contact-lantern::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle, rgba(245, 198, 107, .2) 0%, transparent 62%); }
.contact-lantern img { position: relative; animation: objFloat 8s ease-in-out infinite; }
.contact-main h2 { font-size: clamp(25px, 4.4vw, 56px); line-height: 1.35; }
.contact-main p { margin-block: 18px 28px; color: var(--on-navy-soft); font-size: 17px; }
.contact-grid { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.qr-card {
  grid-column: span 3; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px;
  background: var(--card); color: var(--ink); border-radius: var(--radius); text-decoration: none; font-weight: 700;
}
.qr-card img { width: 100%; max-width: 170px; }
.qr-card span { display: inline-flex; align-items: center; gap: 8px; }
.qr-card:hover, .note-banner:hover { translate: 0 -3px; }
.qr-card, .note-banner { transition-property: opacity, filter, transform, translate; }
.note-banner {
  grid-column: span 6; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 32px;
  background: var(--gold); color: var(--navy); border-radius: var(--radius); text-decoration: none;
}
.note-word { font-family: var(--font-en); font-weight: 700; font-size: clamp(38px, 4.4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.note-text b { display: block; font-size: 18px; line-height: 1.5; }
.note-text small { font-size: 14px; }
.note-banner .ico { width: 28px; height: 28px; stroke-width: 1.5; }
.contact-info { margin-top: clamp(32px, 5vw, 48px); display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px clamp(28px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(244, 242, 236, .24); }
.contact-info dt { font-size: 13px; color: var(--on-navy-soft); }
.contact-info dd { font-weight: 500; overflow-wrap: anywhere; }

/* フッター */
.site-footer { padding-block: 28px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; }
.brand-foot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-en); font-weight: 700; margin-right: auto; }
.brand-foot .brand-mark { width: 28px; height: 28px; }
.footer-inner small { color: var(--ink-soft); font-size: 13px; }

/* スマホ固定LINE */
.line-float { display: none; }

/* プライバシーポリシー */
.policy { max-width: 760px; margin-inline: auto; padding: clamp(40px, 7vw, 80px) clamp(20px, 4vw, 40px); }
.policy h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; line-height: 1.4; }
.policy h2 { font-size: 19px; margin-top: 36px; font-weight: 700; }
.policy p, .policy ul { margin-top: 10px; color: var(--ink-soft); }
.policy li { padding-left: 1em; text-indent: -1em; }
.policy li::before { content: "・"; }
.policy .back { display: inline-block; margin-top: 40px; }

/* AI導入顧問 */
.komon { border-top: 1px solid var(--line); }
.komon h3 { font-size: 20px; font-weight: 700; }
.komon-top { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.komon-flow ol { list-style: none; margin: 18px 0 0; padding: 0; }
.komon-flow li { position: relative; padding: 0 0 24px 30px; }
.komon-flow li:last-child { padding-bottom: 0; }
.komon-flow li::before { content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--navy); }
.komon-flow li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: -6px; width: 1px; background: var(--line); }
.komon-flow b, .komon-flow span { display: block; }
.komon-flow span { margin-top: 2px; color: var(--ink-soft); }
.komon-plan { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 40px); }
.komon-plan-label { font-weight: 700; }
.komon-price { font-size: 24px; font-weight: 700; color: var(--gold); line-height: 1.2; margin-block: 4px 16px; white-space: nowrap; }
.komon-price b { font-family: var(--font-en); font-size: clamp(52px, 6vw, 72px); line-height: 1; margin-right: 4px; }
.komon-price small { font-size: 15px; margin-left: 8px; color: var(--on-navy); font-weight: 500; }
.komon-plan ul { margin-bottom: 22px; border-top: 1px solid rgba(244, 242, 236, .24); }
.komon-plan li { padding-block: 9px; border-bottom: 1px solid rgba(244, 242, 236, .24); color: var(--on-navy); font-size: 15px; }
.komon-plan .btn { width: 100%; }
.komon-lists { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.komon-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.komon-list ul { margin-top: 14px; }
.komon-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-block: 9px; font-size: 15px; line-height: 1.7; }
.komon-list .ico { margin-top: 3px; }
.komon-incl .ico { color: var(--gold-deep); stroke-width: 2; }
.komon-excl li { color: var(--ink-soft); }
.komon-perk { margin-top: 20px; padding: clamp(22px, 3vw, 32px); background: var(--gold-pale); color: var(--navy); border-radius: var(--radius); }
.komon-perk p { margin-top: 6px; max-width: 54em; }
.komon-months { margin-top: clamp(40px, 6vw, 72px); }
.komon-months ol { list-style: none; margin: 16px 0 0; padding: 0; }
.komon-months > ol > li { display: grid; grid-template-columns: 7em 1fr; gap: 4px 20px; padding-block: 18px; border-top: 1px solid var(--line); }
.komon-months > ol > li:last-child { border-bottom: 1px solid var(--line); }
.komon-months > ol > li span { color: var(--ink-soft); }
.komon-deliver { margin-top: 26px; }
.komon-deliver h4 { margin: 0; font-size: 16px; font-weight: 700; }
.komon-deliver ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; margin-top: 10px; }
.komon-deliver li { padding-left: 1.1em; text-indent: -1.1em; color: var(--ink-soft); }
.komon-deliver li::before { content: "・"; }
.komon-months .fine { margin-top: 16px; }
.price-rows dd a { color: var(--gold-deep); font-weight: 700; }

/* 動画で紹介するバナー */
.video-wrap { padding: clamp(48px, 6vw, 80px) clamp(10px, 2vw, 28px) 0; border-top: 1px solid var(--line); }
.video-banner {
  max-width: 1200px; margin-inline: auto; display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: clamp(20px, 3vw, 36px); background: var(--gold-pale); color: var(--navy); border-radius: var(--radius-lg);
}
.vb-text { padding-left: clamp(4px, 1.4vw, 20px); }
.vb-text h2 { font-size: clamp(26px, 3vw, 38px); }
.vb-text p { margin-top: 12px; }
.vb-text .fine { color: var(--ink-soft); }
.vb-player { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); aspect-ratio: 16 / 9; box-shadow: 0 16px 36px rgba(11, 27, 51, .24); }
.vb-player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vb-play { display: none; }
.js .vb-play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(11, 27, 51, .28); border: 0; color: #fff; cursor: pointer; transition: background-color .2s;
}
.js .vb-play:hover { background: rgba(11, 27, 51, .14); }
.vb-play-mark { flex: none; width: clamp(64px, 7vw, 84px); height: clamp(64px, 7vw, 84px); display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--navy); border-radius: 50%; box-shadow: 0 8px 24px rgba(11, 27, 51, .32); transition: transform .25s var(--ease-pop); }
.vb-play-mark .ico-fill { width: 42%; height: 42%; margin-left: 6%; }
.vb-play:hover .vb-play-mark { transform: scale(1.08); }
.vb-play-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vb-player.is-playing .vb-play { display: none; }
.vb-expand { display: none; }
.js .vb-expand {
  position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  background: rgba(11, 27, 51, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s;
}
.js .vb-expand:hover { background: var(--navy); }
/* 拡大表示：ブラウザの全画面機能が使えない環境でも画面いっぱいに広げる */
.vb-player.is-expanded { position: fixed; inset: 0; z-index: 2000; width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #05101f; }
.vb-player.is-expanded video { object-fit: contain; }
.vb-player.is-expanded .vb-expand { top: 14px; right: 14px; }
body.video-open { overflow: hidden; }

/* AIセミナーのバナー */
.seminar-banner-wrap { padding: clamp(48px, 6vw, 80px) clamp(10px, 2vw, 28px); border-top: 1px solid var(--line); }
.seminar-banner {
  max-width: 1200px; margin-inline: auto; min-height: 320px; display: grid; grid-template-columns: 6fr 6fr; align-items: stretch; overflow: hidden;
  background: var(--gold-pale); color: var(--navy); border-radius: var(--radius-lg); text-decoration: none;
  transition-property: opacity, filter, transform, translate;
}
.seminar-banner:hover { translate: 0 -3px; }
.sb-text { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.sb-label { font-weight: 700; color: var(--gold-deep); }
.sb-text h2 { font-size: clamp(24px, 3vw, 36px); margin-top: 6px; }
.sb-meta { margin-top: 8px; font-weight: 500; }
.sb-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 700; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.sb-more .ico { transition: transform .2s var(--ease-out); }
.seminar-banner:hover .sb-more .ico { transform: translateX(4px); }
.sb-visual { position: relative; min-height: 240px; }
.sb-obj { position: absolute; animation: objFloat 8s ease-in-out infinite; }
.sb-obj-a { width: 46%; left: 6%; top: 18%; }
.sb-obj-b { width: 62%; right: 2%; top: 5%; animation-delay: -3s; }
.sb-visual.has-photo { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; height: 100%; min-height: 320px; max-height: 420px; }
.sb-photo { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.sb-photo-0 { grid-row: 1 / span 2; }
.sb-photo-0:only-child { grid-column: 1 / -1; }
.sb-photo-1:last-child { grid-row: 1 / span 2; }

/* AIセミナーの記録ページ */
.back-top { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.back-top:hover { text-decoration: underline; }
.seminar-head { max-width: 44em; margin-bottom: clamp(32px, 5vw, 56px); }
.seminar-head h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; line-height: 1.35; }
.seminar-head p { margin-top: 12px; color: var(--ink-soft); }
.seminar-item { padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); display: grid; gap: 28px; }
.seminar-date { font-weight: 700; color: var(--gold-deep); }
.seminar-item h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 4px; }
.seminar-target { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.seminar-body { margin-top: 14px; max-width: 42em; color: var(--ink-soft); }
.seminar-link { margin-top: 14px; }
.seminar-photos { columns: 3; column-gap: 12px; }
.seminar-photos-1 { columns: 1; max-width: 720px; }
.seminar-photos-2 { columns: 2; }
.seminar-photo { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.seminar-photo img { width: 100%; transition: transform .5s var(--ease-out); }
.seminar-photo:hover img { transform: scale(1.03); }
.seminar-empty { padding-block: 40px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.seminar-cta { margin-top: 8px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); }
.seminar-cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.seminar-cta p { margin-block: 10px 22px; color: var(--on-navy-soft); }

/* 写真の拡大表示 */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 27, 51, .94); color: var(--on-navy); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fadeUp .3s var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84dvh; width: auto; height: auto; border-radius: 8px; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); color: var(--navy); border: 0; border-radius: 10px; cursor: pointer; z-index: 2; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--font-en); font-size: 14px; }

/* 動きを止める（ボタン or OS設定） */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
}
html[data-motion="off"] [data-reveal], html[data-motion="off"] [data-pop] { opacity: 1 !important; filter: none !important; transform: none !important; }
html[data-motion="off"] .marquee-track { width: auto; flex-wrap: wrap; }
html[data-motion="off"] .marquee-group:last-child { display: none; }
html[data-motion="off"] .marquee-group { flex-wrap: wrap; justify-content: center; }
html[data-motion="off"] .story { height: auto; }
html[data-motion="off"] .story-sentinel, html[data-motion="off"] .story-bar, html[data-motion="off"] .story-count { display: none; }
html[data-motion="off"] .story-stage { position: static; height: auto; }
html[data-motion="off"] .story-panels { flex: none; }
html[data-motion="off"] .story-panel { position: static; visibility: visible; opacity: 1; padding-block: 28px; border-bottom: 1px solid rgba(11, 27, 51, .25); }
html[data-motion="off"] .story-word { font-size: clamp(56px, 10vw, 120px); }
html[data-motion="off"] .story-panel { position: relative; }
html[data-motion="off"] .story-obj { width: clamp(120px, 18vw, 220px); top: 50%; margin-top: calc(clamp(120px, 18vw, 220px) / -2); }

/* レスポンシブ */
@media (max-width: 1180px) {
  .motion-toggle span { display: none; }
  .motion-toggle { padding: 4px 10px; }
  .nav { gap: 12px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px clamp(16px, 3vw, 40px) 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .hero-copy { width: 60%; }
  .hero-visual { width: 50%; }
  .obj-helmet, .obj-blueprint { display: none; }
  .obj-lantern { width: 72%; left: 22%; top: 12%; }
  .obj-estimate { width: 40%; left: 2%; bottom: 3%; }
  .obj-phone { width: 32%; right: 2%; bottom: 4%; }
  .tool-sim { grid-column: span 12; grid-row: auto; }
  .tool-mitsumori, .tool-jw { grid-column: span 6; }
}
@media (max-width: 768px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
  .hero-panel { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { width: 100%; padding: 32px 24px 8px; }
  .hero h1 { font-size: clamp(24px, 7.8vw, 44px); }
  .hero-sub br { display: none; }
  .hero-visual { position: relative; width: 100%; height: 300px; }
  .obj-helmet, .obj-blueprint { display: block; }
  .obj-lantern { width: 58%; left: 21%; top: 6%; }
  .obj-helmet { width: 30%; left: 0; top: 2%; }
  .obj-blueprint { width: 30%; right: 0; top: 2%; }
  .obj-estimate { width: 32%; left: 4%; bottom: 0; }
  .obj-phone { width: 26%; right: 6%; bottom: 0; }
  .worry-grid, .check-grid, .honest-grid, .about-grid, .price-grid, .faq-grid, .tab-panel { grid-template-columns: 1fr; }
  .worry-head, .w-a, .w-b, .w-c, .w-d { grid-column: 1; grid-row: auto; position: static; }
  .check-card { min-height: 0; }
  .task-list li { grid-template-columns: 1fr; }
  .tool-sim, .tool-mitsumori, .tool-jw, .tool-gaikou, .tool-line { grid-column: 1 / -1; }
  .story-word { font-size: clamp(64px, 21vw, 120px); }
  .story-inner { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .story-obj { width: 58vw; top: 2%; margin-top: 0; right: -8px; }
  .story-panel { justify-content: flex-end; padding-bottom: 14px; }
  .story-chain { font-size: 14px; }
  .price-rows > div { grid-template-columns: 1fr; }
  .komon-top, .komon-lists, .komon-deliver ul { grid-template-columns: 1fr; }
  .komon-months > ol > li { grid-template-columns: 1fr; }
  .cta-strip .btn { width: 100%; }
  .video-banner { grid-template-columns: 1fr; }
  .vb-text { padding-left: 4px; }
  .seminar-banner { grid-template-columns: 1fr; }
  .sb-visual { min-height: 220px; }
  .sb-visual.has-photo { height: 240px; min-height: 240px; }
  .seminar-photos { columns: 2; }
  .seminar-photos-1 { columns: 1; }
  .back-top { margin-right: 4px; }
  .contact-lantern { display: none; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-card { grid-column: span 1; padding: 14px; }
  .note-banner { grid-column: 1 / -1; padding: 22px; gap: 14px; grid-template-columns: 1fr auto; }
  .note-word { grid-column: 1 / -1; }
  .contact-info { grid-template-columns: repeat(2, 1fr); }
  .contact-info > div:last-child { grid-column: 1 / -1; }
  .btn-lg { width: 100%; }
  .footer-inner { justify-content: flex-start; }
  .line-float {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; z-index: 200; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 54px; border-radius: var(--radius); background: var(--line-green); color: #fff;
    font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(11, 27, 51, .28);
    transition: transform .25s var(--ease-out), opacity .25s;
  }
  .line-float.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (max-width: 768px) {
  html[data-motion="off"] .story-obj { display: none; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
  .back-top ~ .motion-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 料金（初回相談とAI導入支援を1つの欄に統合・2026-11-11） */
.price-cards { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; align-items: stretch; }
.price .price-main { background: var(--gold-pale); color: var(--navy); display: flex; flex-direction: column; justify-content: center; }
.price .price-main h3 { font-size: clamp(20px, 2.2vw, 24px); }
.price .price-yen { color: var(--gold-deep); }
.price .price-main p:last-child { color: var(--ink-soft); }
.komon-plan-lead { margin-top: 6px; color: var(--on-navy-soft); font-size: 15px; }
.komon-plan .komon-plan-label { margin-top: 18px; }
.komon-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); align-items: center; }
.komon-more { margin-top: clamp(28px, 4vw, 44px); }
.komon-more ul { padding-bottom: 14px; }
.komon-more li { padding: 3px 0 3px 1.1em; text-indent: -1.1em; color: var(--ink-soft); }
.komon-more li::before { content: "・"; }
.komon-more details p a { color: var(--gold-deep); font-weight: 700; }
.price .price-rows { margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 768px) {
  .price-cards, .komon-body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .price .price-main { padding: 22px 24px; }
  .price .price-yen b { font-size: 60px; }
  .price .price-yen { margin-block: 2px 8px; }
}

/* 道具の欄：スマホでは横に送る形にして、ページを短くする（2026-11-14） */
.swipe-hint { display: none; }
@media (max-width: 768px) {
  .swipe-hint { display: block; margin: -12px 0 14px; font-size: 14px; font-weight: 700; color: var(--gold-deep); }
  .tool-grid {
    display: flex; align-items: stretch; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    margin-inline: -20px; padding: 4px 20px 10px; scrollbar-width: none;
  }
  .tool-grid::-webkit-scrollbar { display: none; }
  .tool-grid > .tool { flex: 0 0 84%; scroll-snap-align: start; }
  /* 横に隠れているカードも最初から表示しておく（出現アニメは使わない） */
  .js .tool-grid > [data-pop] { opacity: 1; filter: none; transform: none; transition: none; }
  .js .tool-grid .bars .bar-fill { transform: none; }
}

/* インテリア照明シミュレーター（2026-11-14） */
.lightsim-open { display: block; width: 100%; padding: 0; border: 0; background: #1b1d20; cursor: pointer; }
.lightsim-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease-out); }
.lightsim-open:hover img { transform: scale(1.02); }
.btn-navy { background: var(--navy); color: #fff; margin-top: 14px; cursor: pointer; }
.btn-navy:hover { background: var(--navy-3); }
.tool-body .btn-navy + .fine { margin-top: 12px; }
.sim-modal { position: fixed; inset: 0; z-index: 2100; display: flex; flex-direction: column; background: #1b1d20; }
.sim-modal[hidden] { display: none; }
.sim-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; background: var(--navy); color: var(--on-navy); }
.sim-modal-head b { font-size: 15px; }
.sim-modal-close { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; background: var(--card); color: var(--navy); border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }
.sim-modal iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; }
body.modal-open { overflow: hidden; }

/* 外構プランシミュレーター（2026-11-14）：照明と同じ全画面モーダルで開く。画像は元の16:9のまま */
.tool-gaikou .lightsim-open img { aspect-ratio: 16 / 9; }

/* YouTubeのバナー（2026-11-23） */
.link-stack { grid-column: span 6; display: grid; gap: 16px; }
.link-stack .note-banner { grid-column: auto; }
.yt-banner { background: var(--card); color: var(--navy); }
.yt-banner .note-word { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(26px, 2.6vw, 34px); }
.yt-banner .note-word .ico { width: 1.15em; height: 1.15em; color: #c4302b; stroke-width: 1.8; }
@media (max-width: 768px) {
  .link-stack { grid-column: 1 / -1; }
}
