/* 紹介ページ・料金表の共通スタイル（外部の読み込みなし） */
:root {
  --ink: #17242e;
  --sub: #55636e;
  --line: #d6e0e6;
  --base: #ffffff;
  --soft: #f2f6f8;
  --navy: #1b3a52;
  --teal: #1f7a6d;
  --teal-soft: #e3f2ef;
  --blue-soft: #e6eff6;
  --note: #fff7df;
  --note-line: #e3c25e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--teal); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-head { background: var(--navy); color: #fff; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.site-name { font-weight: 700; font-size: 17px; margin: 0; letter-spacing: .02em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.site-nav a { color: #d9ecf5; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* ヒーロー */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #24597a 55%, var(--teal) 100%); color: #fff; padding: 40px 0 44px; }
.hero h1 { font-size: 28px; line-height: 1.45; margin: 0 0 12px; }
.hero p { margin: 0; max-width: 640px; color: #e4f1f7; }
.hero .tag { display: inline-block; font-size: 13px; padding: 2px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; margin-bottom: 14px; }

/* 区画 */
main { padding: 8px 0 48px; }
section.block { background: var(--base); border: 1px solid var(--line); border-radius: 10px; padding: 24px 20px; margin: 24px 0; }
section.block h2 { font-size: 21px; margin: 0 0 14px; padding-left: 12px; border-left: 5px solid var(--teal); line-height: 1.4; }
section.block h3 { font-size: 17px; margin: 18px 0 8px; }
.lead { color: var(--sub); font-size: 15px; margin: 0 0 12px; }
.small { font-size: 13px; color: var(--sub); }

/* サービスのカード */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--base); }
.card h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.card p { margin: 0; font-size: 15px; }
.card .price { font-size: 20px; font-weight: 700; color: var(--teal); margin-top: 8px; }
.card .price small { font-size: 13px; color: var(--sub); font-weight: 400; }

/* 表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
thead th { background: var(--blue-soft); }
td.num { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
ul.tight { margin: 0; padding-left: 1.2em; }
ul.tight li { margin: 0; }

/* 流れ */
ol.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: step; }
ol.flow li { position: relative; background: var(--teal-soft); border-radius: 8px; padding: 12px 12px 12px 46px; font-size: 14px; line-height: 1.55; counter-increment: step; }
ol.flow li::before { content: counter(step); position: absolute; left: 10px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; text-align: center; line-height: 26px; }
ol.flow li b { display: block; font-size: 15px; color: var(--navy); }
ol.flow li.key { background: var(--blue-soft); }

/* 注意・除外 */
.notice { background: var(--note); border: 1px solid var(--note-line); border-radius: 8px; padding: 14px 16px; }
.notice p { margin: 0; }
.exclude { border: 2px solid var(--navy); border-radius: 10px; padding: 16px 18px; background: var(--base); }
.exclude ul { margin: 6px 0 0; padding-left: 1.3em; }
.exclude li { margin: 2px 0; }
dl.terms { display: grid; grid-template-columns: 9em 1fr; gap: 6px 14px; margin: 0; }
dl.terms dt { font-weight: 700; color: var(--navy); }
dl.terms dd { margin: 0; }

/* 作例 */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.work { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--base); }
.work .thumb { height: 112px; position: relative; }
.work .thumb.t1 { background: linear-gradient(180deg, #fff7df 0 18%, #ffffff 18% 100%); }
.work .thumb.t2 { background: linear-gradient(180deg, #fff7df 0 18%, #ffffff 18% 100%); }
.work .thumb.t3 { background: linear-gradient(135deg, #1f5f7a, #2f8f7f); }
.work .thumb .bar { position: absolute; left: 16px; right: 16px; height: 10px; border-radius: 3px; background: var(--line); }
.work .thumb .bar.b1 { top: 34px; right: 40%; background: #1f6f8b; }
.work .thumb .bar.b2 { top: 56px; }
.work .thumb .bar.b3 { top: 74px; }
.work .thumb .bar.b4 { top: 92px; right: 30%; }
.work .thumb.t3 .bar { background: rgba(255,255,255,.35); }
.work .thumb.t3 .bar.b1 { background: #fff; }
.work .body { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.work .body b { display: block; color: var(--navy); }
.work .body span { font-size: 14px; color: var(--sub); }
.badge { display: inline-block; font-size: 12px; line-height: 1.5; padding: 0 8px; border-radius: 4px; background: var(--note); border: 1px solid var(--note-line); color: #5f4a00; font-weight: 700; margin-bottom: 4px; }

/* 連絡 */
.contact { text-align: center; }
.mail { display: inline-block; font-size: 20px; font-weight: 700; color: var(--navy); background: var(--teal-soft); border-radius: 8px; padding: 10px 20px; margin: 8px 0; word-break: break-all; }

footer.site-foot { background: var(--navy); color: #c9dde8; font-size: 13px; padding: 18px 0; text-align: center; }
footer.site-foot p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero { padding: 30px 0 34px; }
  .hero h1 { font-size: 23px; }
  section.block { padding: 20px 14px; }
  section.block h2 { font-size: 19px; }
  dl.terms { grid-template-columns: 1fr; gap: 2px; }
  dl.terms dd { margin-bottom: 8px; }
}

/* 印刷（料金表をA4で） */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; line-height: 1.6; }
  .site-head, .no-print { display: none !important; }
  section.block { border: none; padding: 0; margin: 0 0 10mm; }
  table { min-width: 0; font-size: 10pt; }
  a { color: var(--ink); text-decoration: none; }
}

/* 表示の表（2列） */
table.kv { min-width: 0; }
table.kv th { width: 34%; background: var(--soft); font-weight: 700; }
@media (max-width: 600px) { table.kv th { width: 40%; } }

/* 料金表：スマホでは縦積み */
thead th { white-space: nowrap; }
.contact h2 { text-align: left; }
@media (max-width: 600px) {
  table.price-table { min-width: 0; }
  table.price-table thead { display: none; }
  table.price-table, table.price-table tbody, table.price-table tr, table.price-table td { display: block; width: 100%; }
  table.price-table tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
  table.price-table td { border: none; border-top: 1px solid var(--line); text-align: left; white-space: normal; }
  table.price-table td:first-child { border-top: none; background: var(--blue-soft); font-weight: 700; }
  table.price-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; color: var(--sub); font-weight: 400; }
}

/* 印刷用の見出し（料金表） */
.print-only { display: none; }
@media print {
  .print-only { display: block; font-size: 12pt; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--teal); padding-bottom: 2mm; margin-bottom: 5mm; }
  body { font-size: 9.5pt; line-height: 1.5; }
  main { padding: 0; }
  section.block { margin: 0 0 5mm; }
  section.block h2 { font-size: 12pt; margin-bottom: 2mm; }
  .lead, .small { font-size: 8.5pt; margin-bottom: 2mm; }
  th, td { padding: 4px 6px; }
  table { font-size: 9pt; }
  .exclude { padding: 3mm 4mm; break-inside: avoid; }
  .exclude ul { columns: 2; }
  dl.terms { gap: 1mm 4mm; }
}
