/* Co-Lantern 公式サイト — 根の見た目「夜に灯る」から（色・書体の正本は社のブランドの根） */
:root {
  --night: #081424;      /* 背景色＝先の見えない夜 */
  --navy: #0a2540;       /* 補助色＝章の区切り */
  --lamp: #f5a623;       /* 主色＝照らしたい所だけ */
  --glow: #ffc58a;       /* 強調色＝灯の淡い光 */
  --ink: #fff8ec;        /* 文字色＝生成り */
  --ink-2: rgba(255, 248, 236, 0.76);
  --ink-3: rgba(255, 248, 236, 0.62);
  --line: rgba(255, 248, 236, 0.16);
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --latin: "Cormorant Garamond", serif;
  --head-h: 68px;
  --wrap: 1120px;
  --gutter: 24px;
}
@media (max-width: 640px) { :root { --gutter: 16px; --head-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.latin { font-family: var(--latin); font-weight: 500; letter-spacing: 0.02em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.45; margin: 0; letter-spacing: 0.02em; }
h1, h2, h3 { text-wrap: balance; }
p, li, blockquote, figcaption, .door .what { text-wrap: pretty; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--lamp); color: var(--night); padding: 8px 12px; }

/* 上の帯（留める） */
.site-head {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: rgba(8, 20, 36, 0.88); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 48px; width: auto; }
@media (max-width: 640px) { .brand img { height: 40px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: 0.04em; transition: box-shadow .3s, background-color .3s, color .3s;
}
.btn-lamp { background: var(--lamp); color: var(--night); }
.btn-lamp:hover, .btn-lamp:focus-visible { box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.22), 0 0 28px rgba(245, 166, 35, 0.45); }
.btn-line { border: 1px solid rgba(255, 197, 138, 0.6); color: var(--ink); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--glow); background: rgba(255, 197, 138, 0.08); }
.nav .btn { color: var(--night); font-size: 14px; min-height: 40px; padding: 0 18px; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; cursor: pointer;
}
.menu-panel { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .menu-panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 49; background: var(--night);
    border-bottom: 1px solid var(--line); padding: 20px var(--gutter) 28px;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .menu-panel.open { display: block; }
  .menu-panel .top { display: grid; gap: 12px; margin-bottom: 18px; }
  .menu-panel .top .btn { width: 100%; }
  .menu-panel ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .menu-panel li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
}

/* 章 */
.sec { padding: 112px 0; }
.sec-navy { background: var(--navy); }
@media (max-width: 640px) { .sec { padding: 72px 0; } }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.sec-head p { margin-top: 16px; color: var(--ink-2); }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; color: var(--glow); margin-bottom: 14px; }

/* 1 最初の画面 */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 32px;
  min-height: min(calc(100vh - var(--head-h) - 28px), 760px); padding-top: 56px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.32; letter-spacing: 0.03em; }
.hero .sub { font-family: var(--serif); font-weight: 600; color: var(--glow); font-size: clamp(19px, 2.2vw, 26px); margin-top: 18px; letter-spacing: 0.06em; }
.hero .lead { margin-top: 28px; color: var(--ink-2); font-size: 16px; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.lantern { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.lantern::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.30) 0%, rgba(245, 166, 35, 0.10) 38%, rgba(8, 20, 36, 0) 68%);
}
.lantern img { position: relative; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .lantern::before { animation: glow-in 1.6s ease-out 0.15s both; }
  .lantern img { animation: kindle 1.6s ease-out 0.15s both; }
}
@keyframes kindle { from { opacity: .42; filter: brightness(.5) saturate(.6); } to { opacity: 1; filter: none; } }
@keyframes glow-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 64px; position: relative; }
  .hero .copy { position: relative; }
  .hero .eyebrow { padding-right: 96px; }
  .hero h1 { font-size: min(36px, 10.4vw); }
  .lantern { position: absolute; top: 20px; right: var(--gutter); width: 88px; }
  .hero .actions .btn-line { display: none; }
  .hero .actions .btn-lamp { min-height: 52px; padding: 0 30px; }
}

/* 2 どなたのご相談ですか */
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.door {
  position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(8, 20, 36, 0.35); transition: border-color .3s, background-color .3s;
}
.door .mark {
  width: 52px; height: 52px; margin-bottom: 6px;
  background-color: var(--ink-3);
  -webkit-mask: url(/assets/mark.png) center / contain no-repeat; mask: url(/assets/mark.png) center / contain no-repeat;
  transition: background-color .3s, filter .3s;
}
.door .who { font-size: 13px; color: var(--ink-3); letter-spacing: 0.08em; }
.door .want { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.55; }
.door .what { color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.door .go { margin-top: auto; padding-top: 12px; color: var(--glow); font-size: 14px; transition: transform .3s; }
.door:hover, .door:focus-visible { border-color: var(--lamp); background: rgba(245, 166, 35, 0.06); }
.door:hover .mark, .door:focus-visible .mark { background-color: var(--lamp); filter: drop-shadow(0 0 10px rgba(245, 166, 35, .75)); }
.door:hover .go, .door:focus-visible .go { transform: translateX(4px); }
@media (hover: none) { .door .mark { background-color: rgba(245, 166, 35, .78); } }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door { padding: 22px 20px; } .door .want { font-size: 19px; } }

/* 3 しないこと、すること */
.vows { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.vows-side { position: sticky; top: calc(var(--head-h) + 48px); align-self: start; }
.vows-side h2 { font-size: clamp(26px, 3.2vw, 36px); }
.vows-side p { margin-top: 16px; color: var(--ink-2); }
.dots { display: flex; gap: 14px; margin-top: 28px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 197, 138, .55); transition: background-color .5s, box-shadow .5s, border-color .5s; }
.dots span.lit { background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 12px rgba(245, 166, 35, .8); }
.pair { padding: 40px 0; border-top: 1px solid var(--line); }
.pair:last-child { border-bottom: 1px solid var(--line); }
.pair .no { font-family: var(--latin); font-size: 22px; color: var(--glow); }
.pair .lab { display: inline-block; font-size: 12.5px; letter-spacing: 0.12em; margin-right: 10px; }
.pair .not { margin-top: 10px; color: var(--ink-3); }
.pair .do { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.65; transition: color .6s; }
.pair .do .lab { font-family: var(--sans); font-weight: 500; color: var(--glow); }
.pair.lit .do { color: var(--glow); }
.pair .eg { margin-top: 18px; padding: 16px 18px; border-left: 2px solid rgba(245, 166, 35, .6); background: rgba(255, 197, 138, .05); color: var(--ink-2); font-size: 14.5px; }
/* 動きを使うときだけ、灯る前の姿にする（スクリプトが付ける印） */
.vows.motion .pair:not(.lit) .do { color: var(--ink); }
@media (min-width: 961px) { .vows.motion .pair { padding: 11vh 0; } }
@media (max-width: 960px) {
  .vows { grid-template-columns: 1fr; gap: 24px; }
  .vows-side { position: static; }
  .dots { display: none; }
  .pair .do { font-size: 19px; }
}

/* 4 灯ったところ */
.lit-grid { display: flex; flex-direction: column; gap: 40px; }
.stage { display: flex; flex-direction: column; gap: 14px; }
.stage .tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chip { align-self: flex-start; font-size: 12.5px; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.chip.on { border-color: var(--lamp); color: var(--night); background: var(--lamp); }
.tool { padding: 18px 18px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 20, 36, .4); }
.stage.made .tool { border-color: rgba(245, 166, 35, .55); box-shadow: inset 0 0 40px rgba(245, 166, 35, .07); }
.tool h3 { font-size: 17px; line-height: 1.6; }
.tool p { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.tool .co { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.vid { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 197, 138, .55); color: var(--glow); font-size: 13.5px; text-decoration: none; transition: background .2s, border-color .2s; }
.vid::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vid:hover, .vid:focus-visible { background: rgba(245, 166, 35, .14); border-color: var(--lamp); }
/* 使い方の動画（開くと前に出る窓・閉じれば止まる） */
.video-dialog { padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--night); color: var(--ink); max-width: 94vw; max-height: 94vh; }
.video-dialog::backdrop { background: rgba(4, 10, 20, .82); }
.video-dialog .vd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; }
.video-dialog .vd-head p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.video-dialog .vd-close { flex-shrink: 0; white-space: nowrap; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.video-dialog .vd-close:hover, .video-dialog .vd-close:focus-visible { border-color: var(--glow); color: var(--glow); }
.video-dialog video { display: block; height: min(80vh, 820px); width: auto; max-width: 94vw; background: #000; }
.lit-note { margin-top: 28px; color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 1000px) { .stage .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stage .tools { grid-template-columns: 1fr; } }
/* 札が静かに現れる（スクリプトが使えるときだけ隠す＝失敗しても中身は出たまま） */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease-out, transform .4s ease-out; }
  .js-motion .reveal.in { opacity: 1; transform: none; }
}

/* 5 代表と、水戸の会社 */
.daihyo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.daihyo figure { margin: 0; position: relative; width: fit-content; }
.daihyo figure img { border-radius: 18px; width: 100%; max-width: 400px; }
.daihyo figure::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 248, 236, .08); pointer-events: none; }
.daihyo blockquote { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; }
.daihyo blockquote .lamp { color: var(--glow); }
.daihyo .who { margin-top: 28px; color: var(--ink-2); }
.daihyo .name { margin-top: 20px; font-size: 15px; }
.daihyo .name .latin { font-size: 18px; color: var(--glow); margin-left: 6px; display: inline-block; }
.creds { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { word-break: keep-all; overflow-wrap: anywhere; font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
@media (max-width: 860px) { .daihyo { grid-template-columns: 1fr; gap: 32px; } .daihyo figure img { max-width: 280px; } }

/* 6 相談の帯 */
.ask { position: relative; overflow: hidden; text-align: center; }
.ask::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 62% at 50% 50%, rgba(245, 166, 35, .16) 0%, rgba(245, 166, 35, 0) 100%);
}
.ask .wrap { position: relative; }
.ask h2 { font-size: clamp(28px, 3.6vw, 42px); }
@media (max-width: 760px) { .ask h2 { font-size: min(28px, 6.9vw); } }
.ask p { margin: 20px auto 0; max-width: 560px; color: var(--ink-2); }
.ask .actions { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* 7 足もと */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.foot img { height: 34px; width: auto; margin-bottom: 16px; }
.foot address { font-style: normal; line-height: 1.9; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: right; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .copy { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; margin-top: 8px; }
@media (max-width: 640px) { .foot .wrap { grid-template-columns: 1fr; } .foot ul { text-align: left; } }

/* 下層の型 */
.page-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.crumb a { text-decoration: none; color: var(--ink-2); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); }
.page-hero .lead { margin-top: 24px; max-width: 720px; color: var(--ink-2); }
.page-hero .fde { margin-top: 20px; display: inline-block; font-size: 14px; padding: 8px 14px; border: 1px solid rgba(255, 197, 138, .45); border-radius: 10px; color: var(--glow); }
.worries { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.worries li { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 36px 24px 0 0; }
.steps li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px rgba(245, 166, 35, .7); }
.steps .no { font-family: var(--latin); color: var(--glow); font-size: 20px; }
.steps h3 { font-size: 19px; margin-top: 4px; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 28px 32px; }
  .steps li::before { top: 13px; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
}
.not-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.not-ai .box { padding: 28px; border: 1px solid rgba(245, 166, 35, .45); border-radius: 16px; background: rgba(255, 197, 138, .04); }
.not-ai .box h3 { font-size: 19px; }
.not-ai .box p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.not-ai .box .title { margin-top: 16px; font-size: 13.5px; color: var(--glow); }
@media (max-width: 860px) { .not-ai { grid-template-columns: 1fr; gap: 24px; } }

br.sp { display: none; }
@media (max-width: 760px) { br.sp { display: inline; } }
.nowrap { white-space: nowrap; }
.kp { word-break: keep-all; overflow-wrap: anywhere; }

/* 医院の方へ: 一般の方への発信（Instagram）。広い画面は左に言葉・右に表紙 3 枚、スマホは表紙を横に送る */
.ig { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ig-label { font-size: 17px; letter-spacing: .08em; color: var(--glow); }
.ig h2 { margin-top: 8px; font-size: clamp(24px, 3vw, 34px); }
.ig-body { margin-top: 18px; color: var(--ink-2); }
.ig-handle { margin-top: 12px; font-size: 18px; color: var(--ink-3); }
.ig .btn-line { margin-top: 24px; }
.ig-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ig-posts a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: border-color .25s ease, box-shadow .25s ease; }
.ig-posts a:hover, .ig-posts a:focus-visible { border-color: var(--lamp); box-shadow: 0 0 22px rgba(245, 166, 35, .35); }
.ig-posts img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 960px) { .ig { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 599px) {
  .ig-posts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 66%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px 2px; }
  .ig-posts li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .ig-posts a { transition: none; } }

/* ― 全体を作る段で足した型 ― */
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; color: var(--glow); text-decoration: none; border-bottom: 1px solid rgba(255, 197, 138, .45); }
.more:hover, .more:focus-visible { border-bottom-color: var(--lamp); color: var(--lamp); }
.small { font-size: 13.5px; color: var(--ink-3); }

/* 医院の方へ: 動画のある道具は、縦長の動画の表紙と言葉を左右に（交互）。スマホは表紙を小さく左に */
.feats { display: grid; gap: 80px; }
.feat { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 64px; align-items: center; }
.feat:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 250px); }
.feat:nth-child(even) .shot { order: 2; }
.feat-text { max-width: 560px; }
.feat h3 { margin-top: 16px; font-size: clamp(22px, 2.4vw, 28px); }
.feat .body { margin-top: 14px; color: var(--ink-2); }
.feat .meta { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.feat .vid { margin-top: 20px; }
.feat .vid + .meta { margin-top: 10px; }
.shot { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; transition: border-color .3s, box-shadow .3s; }
.shot img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .3s; }
.shot .play { position: absolute; left: 50%; bottom: 7%; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 8px rgba(245, 166, 35, .22), 0 8px 28px rgba(0, 0, 0, .4); }
.shot .play::before { content: ""; position: absolute; left: 24px; top: 19px; border-left: 18px solid var(--night); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.shot:hover { border-color: var(--lamp); box-shadow: 0 0 36px rgba(245, 166, 35, .35); }
.shot:hover img { opacity: 1; }
.more-tools { margin-top: 96px; }
.more-tools > h3 { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 20px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows h4 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.6; }
.rows p { color: var(--ink-2); font-size: 15px; }
.dev { margin-top: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 28px; align-items: start; padding: 28px; border: 1px dashed rgba(255, 197, 138, .45); border-radius: 16px; }
.dev .chip { margin-top: 4px; }
.dev h3 { font-size: 19px; }
.dev p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.sec-line { border-top: 1px solid var(--line); }
@media (max-width: 860px) { .steps.three { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .feats { gap: 56px; }
  .feat, .feat:nth-child(even) { grid-template-columns: 108px minmax(0, 1fr); gap: 20px; align-items: start; }
  .feat:nth-child(even) .shot { order: 0; }
  .shot { border-radius: 14px; }
  .shot .play { width: 36px; height: 36px; margin-left: -18px; box-shadow: 0 0 0 5px rgba(245, 166, 35, .22); }
  .shot .play::before { left: 14px; top: 11px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
  .feat h3 { margin-top: 10px; }
  .more-tools { margin-top: 64px; }
  .rows li { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .dev { grid-template-columns: 1fr; padding: 22px 20px; }
}

/* 会社と代表: 写真を左に留め、右で代表の言葉を読む */
.msg { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.msg-side { position: sticky; top: calc(var(--head-h) + 40px); }
.msg-side img { width: 100%; max-width: 380px; border-radius: 18px; }
.msg-id .name { margin-top: 20px; font-size: 15px; }
.msg-id .name .latin { display: block; font-size: 18px; color: var(--glow); }
.msg-body h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 36px; }
.msg-text p { font-size: 17px; line-height: 2.1; }
.msg-text p + p { margin-top: 30px; }
.msg-text .line { display: block; }
.msg-body .sign { margin-top: 44px; font-family: var(--serif); font-weight: 600; text-align: right; }
@media (max-width: 860px) {
  .msg { grid-template-columns: 1fr; gap: 40px; }
  .msg-side { position: static; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 20px; align-items: center; }
  .msg-id { display: contents; }
  .msg-id .name { margin-top: 0; }
  .msg-id .creds { grid-column: 1 / -1; margin-top: 0; }
  .msg-text p { font-size: 16px; }
  .msg-body .sign { text-align: left; }
}
/* 宣言（根のステートメントのまま） */
.stmt { max-width: 800px; }
.stmt .label { font-size: 17px; letter-spacing: .08em; color: var(--glow); }
.stmt h2 { margin-top: 10px; font-size: clamp(28px, 3.8vw, 44px); }
@media (max-width: 640px) { .stmt h2 { font-size: min(28px, 7.4vw); } }
.stmt p:not(.label) { margin-top: 26px; color: var(--ink-2); font-size: 17px; line-height: 2.05; }
.stmt .close { color: var(--glow) !important; font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2vw, 21px) !important; line-height: 1.9 !important; margin-top: 40px !important; }
@media (max-width: 640px) { .stmt p:not(.label) { font-size: 16px; } }
/* 会社概要・特商法の表 */
.info { margin: 0; max-width: 860px; border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--ink-3); font-size: 14px; padding-top: 2px; }
.info dd { margin: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.info a { color: var(--glow); }
.info ul { margin: 8px 0 0; padding-left: 1.3em; }
.info.legal dd { font-size: 15px; color: var(--ink-2); }
@media (max-width: 640px) { .info > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; } }
/* プライバシーポリシーの文 */
.prose { max-width: 800px; }
.prose > p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.prose > p { margin-top: 12px; }
.prose h2 { margin-top: 44px; font-size: 19px; }
.prose ul { margin: 12px 0 0; padding-left: 1.3em; }
.prose a { color: var(--glow); }
.prose .dated { margin-top: 48px; color: var(--ink-3); font-size: 14px; }

/* お問い合わせ: 左に送る欄、右にほかの方法 */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; }
.form { display: grid; gap: 24px; }
.field label { display: block; margin-bottom: 8px; font-size: 14.5px; }
.req { margin-left: 10px; font-size: 12px; color: var(--glow); letter-spacing: .06em; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 248, 236, .3);
  background: rgba(255, 248, 236, .05); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6;
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--glow) 50%), linear-gradient(135deg, var(--glow) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { background: var(--navy); color: var(--ink); }
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(255, 197, 138, .25); }
.form [aria-invalid="true"] { border-color: #ff9f8f; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { flex-shrink: 0; width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--lamp); }
.check a { color: var(--glow); }
.form .btn { justify-self: start; min-height: 54px; padding: 0 44px; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; }
.form-msg.err { border: 1px solid #ff9f8f; background: rgba(255, 159, 143, .08); color: #ffd9d2; }
.form-msg a { color: inherit; }
.done { padding: 36px 32px; border: 1px solid var(--lamp); border-radius: 16px; background: rgba(245, 166, 35, .06); }
.done:focus { outline: none; }
.done h2 { font-size: 24px; color: var(--glow); }
.done p { margin-top: 12px; color: var(--ink-2); }
.ways { padding: 32px 28px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 37, 64, .45); }
.ways h2 { font-size: 20px; }
.way { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.way h3 { font-size: 16px; }
.way p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.way a:not(.btn) { color: var(--glow); }
.way .btn { margin-top: 14px; }
.ways > .small { margin-top: 24px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 48px; } .form .btn { width: 100%; } }

/* 名刺のページ（名刺の QR から開く・上の帯なし） */
.meishi { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter); text-align: center; background: radial-gradient(circle at 50% 18%, rgba(245, 166, 35, .12), rgba(8, 20, 36, 0) 55%); }
.meishi .card { width: 100%; max-width: 380px; }
.meishi .photo { width: 190px; margin: 0 auto; border-radius: 18px; }
.meishi .org { margin-top: 24px; font-size: 17px; color: var(--glow); }
.meishi h1 { margin-top: 4px; font-size: 30px; }
.meishi .role { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.meishi .about { margin-top: 18px; font-size: 15px; }
.meishi .acts { display: grid; gap: 12px; margin-top: 28px; }
.meishi address { margin-top: 28px; font-style: normal; font-size: 14px; line-height: 2; color: var(--ink-2); }
.meishi address a { color: var(--ink); }
.meishi .logo { height: 30px; width: auto; margin: 36px auto 0; opacity: .8; }
