/* たのまれどき サービスサイト v2
   値は DESIGN.md v2 の frontmatter だけを使う。ここに無い色・寸法をHTMLに直書きしない。 */

:root {
  --paper: #FFFFFF;
  --washi: #F6F5F2;
  --ink: #14202B;
  --mute: #55616B;
  --rule: #E2E2DE;
  --border: #79838B;
  --indigo: #163E63;
  --indigo-deep: #0E2A45;
  --indigo-soft: #EAF0F5;
  --warn: #8C3A2E;

  --display: "Noto Sans JP", "Hiragino Sans", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic",
            "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;

  --read: 36rem;
  --wide: 70rem;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(20, 32, 43, .08);
  --dur: 180ms;
  --ease: cubic-bezier(.2, .6, .3, 1);
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
}

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--wide)); margin-inline: auto; }
.read { max-width: var(--read); }
/* 版面を狭めるときも左端は動かさない。節ごとに左端が動くと、読み手が段落の始まりを毎回探し直すことになる */
.wrap.read { width: min(100% - 40px, var(--wide)); max-width: none; }
.wrap.read > * { max-width: var(--read); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; }
h2 { font-size: 32px; letter-spacing: .01em; }
h3 { font-size: 17px; }
.wrap.read h3 { margin-bottom: 8px; }
p { margin: 0 0 18px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.note { color: var(--mute); font-size: 13px; line-height: 1.85; }

a { color: var(--indigo); }
:where(a, button, summary):focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }

/* 節 ------------------------------------------------------------------ */

.sec { padding-block: 88px; }
.sec--washi { background: var(--washi); }
.sec__label {                       /* 英字の節名。DESIGN.md §4で3か所まで */
  font-family: var(--display);
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--indigo); margin: 0 0 8px;
}
.sec__lead { margin-top: 16px; }

/* ヘッダー ------------------------------------------------------------ */

.head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  height: var(--head-h);
  display: flex; align-items: center;
}
.head .wrap { display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .06em; text-decoration: none; color: var(--ink); }
.logo small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .22em; color: var(--mute); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { font-size: 14px; color: var(--ink); text-decoration: none; padding: 6px 2px; }
.nav a:hover { color: var(--indigo); text-decoration: underline; text-underline-offset: 4px; }

/* 第一画面 ------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; background: var(--washi); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
  align-items: center; gap: 32px;
  width: min(100% - 40px, var(--wide)); margin-inline: auto;
  padding-block: 76px 72px;
}
.hero__left { display: flex; align-items: flex-start; gap: 28px; }
.hero__body { min-width: 0; }
.hero__tag {                        /* 縦組みの短い和文（GPオンラインの型） */
  writing-mode: vertical-rl;
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: .3em; color: var(--indigo);
  white-space: nowrap; height: auto; margin: 8px 0 0;
  border-right: 1px solid var(--rule); padding-right: 14px; flex: none;
}
.hero h1 {
  font-size: clamp(28px, 3.7vw, 50px);
  font-weight: 900; line-height: 1.28; letter-spacing: .005em;
  margin-bottom: 24px;
}
.hero h1 .sub { display: block; font-size: .42em; font-weight: 700; color: var(--indigo); letter-spacing: .04em; margin-bottom: 12px; }
.hero__lede { font-size: 17px; max-width: 30rem; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* 価格の2枚 ------------------------------------------------------------ */

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 14px; margin: 26px 0 22px; max-width: 32rem; }
.price {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.price dt { font-size: 13px; color: var(--mute); }
.price dd { margin: 2px 0 0; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price dd .u { font-size: 15px; font-weight: 700; }
.price .cond { display: block; font-size: 12px; font-weight: 400; color: var(--mute); line-height: 1.7; margin-top: 6px; font-family: var(--gothic); }

/* 行動 ---------------------------------------------------------------- */

.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--fill { background: var(--indigo); color: #fff; }
.btn--fill:hover { background: var(--indigo-deep); }
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn--line:hover { background: var(--paper); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.btn:active { transform: scale(.98); }

/* 表 ------------------------------------------------------------------ */

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); }
caption { text-align: left; font-size: 13px; color: var(--mute); padding-bottom: 10px; }
th, td { text-align: left; padding: 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--indigo); color: #fff; font-family: var(--display); font-size: 13px; letter-spacing: .04em; white-space: nowrap; border-bottom: 0; }
thead th:first-child { border-radius: var(--radius) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius) 0 0; }
tbody th { font-weight: 700; }
tbody tr:last-child :where(th, td) { border-bottom: 0; }
.boxed { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
td.num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.boxed--narrow { max-width: 52rem; }
.handover th:first-child { width: 11rem; }
.handover td:nth-child(2) { width: 11rem; }
.handover td:nth-child(3) { width: 11rem; white-space: nowrap; font-size: 14px; color: var(--mute); }
.handover .owner { font-family: var(--display); font-weight: 700; color: var(--indigo); }

/* 暗い帯 -------------------------------------------------------------- */

.band {
  position: relative; color: #fff;
  background: var(--indigo-deep) center / cover no-repeat;
  padding-block: 80px;
}
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,42,69,.94) 0%, rgba(14,42,69,.86) 55%, rgba(14,42,69,.62) 100%); }
.band .wrap { position: relative; }
.band h2 { color: #fff; }
.band .note { color: rgba(255, 255, 255, .78); }
.band a { color: #fff; }

/* 工程 ---------------------------------------------------------------- */

.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 2px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.flow > li { counter-increment: step; background: var(--paper); display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; padding: 22px 24px; }
.flow > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.3;
  color: var(--indigo); font-variant-numeric: tabular-nums;
}
.who { display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 2px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); margin-bottom: 6px; }
.who--you { background: var(--washi); color: var(--mute); }
.flow p { margin: 4px 0 0; font-size: 15px; }

/* 手順（箇条・枠なし）。番号つきカード（.flow）と型を変える */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.steps > li { counter-increment: st; border-top: 2px solid var(--indigo); padding-top: 16px; }
.steps > li::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .12em; color: var(--indigo); margin-bottom: 6px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; }

/* 面 ------------------------------------------------------------------ */

.pane { background: var(--washi); border-radius: var(--radius); padding: 24px; margin-top: 28px; }
.sec--washi .pane { background: var(--paper); }
.pane h3 { margin-bottom: 8px; }

/* よくある質問 -------------------------------------------------------- */

.qa { border-top: 1px solid var(--rule); max-width: 48rem; }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 16px;
  list-style: none; display: flex; gap: 14px; align-items: baseline;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "＋"; color: var(--indigo); font-size: 14px; flex: none; }
.qa details[open] summary::before { content: "－"; }
.qa .answer { padding: 0 0 20px 28px; font-size: 15px; }

/* フッター ------------------------------------------------------------ */

.foot { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 40px; font-size: 13px; }
.foot a { color: #fff; }
.foot .logo { color: #fff; margin-bottom: 16px; display: inline-block; }
.foot ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.foot ul a { display: inline-block; padding: 8px 0; }

/* 狭い画面 ------------------------------------------------------------ */

@media (max-width: 900px) {
  .nav { display: none; }
  /* 狭い画面では視覚物を先に見せる（第一画面に視覚物があるのが実測12/18） */
  .hero__grid { display: flex; flex-direction: column; padding-block: 28px 56px; gap: 26px; }
  .hero__media { order: -1; }
  .hero__left { display: block; }
  .hero__tag { writing-mode: horizontal-tb; height: auto; border-right: 0; border-left: 3px solid var(--indigo); padding: 0 0 0 12px; margin: 0 0 18px; letter-spacing: .16em; }
  .hero__media img { height: auto; aspect-ratio: 16 / 9; }
  .sec { padding-block: 60px; }
  h2 { font-size: 26px; }

  /* 表は行ごとに積む。横スクロールに隠すと「名義」の列が見落とされる */
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .boxed { border: 0; box-shadow: none; overflow: visible; }
  .stack tr { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
  .stack :where(td, th) { display: grid; grid-template-columns: 6rem 1fr; gap: 10px; border: 0; padding: 5px 0; font-size: 15px; }
  .stack :where(td, th)::before { content: attr(data-label); font-family: var(--gothic); font-size: 12px; font-weight: 400; color: var(--mute); }
  .handover :where(td, th) { width: auto !important; white-space: normal; }
  .flow > li { grid-template-columns: 3rem 1fr; padding: 18px 16px; gap: 12px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
