/* ラクヨコの買い方メモ — 配色と余白の基準をここに集約する。
   方針: 書き手「しずく」に合わせて、暖かく角の丸い紙面にする。見出しは丸ゴシック。
   彩度の高い色はアクセント（湯の色（水色））と価格だけに使う。ダークモードは持たない。 */
:root {
  --bg: #f6fbfd;
  --surface: #ffffff;
  --surface-2: #eef6fa;
  --ink: #2e3940;
  --ink-2: #4b5a63;
  --muted: #66757e;
  --line: #e3eff5;
  --line-2: #cbe1eb;
  --accent: #7cc0dc;
  --accent-ink: #2f7c9b;
  --accent-bg: #eaf5fa;
  --price: #c0503a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(47, 88, 107, .06), 0 6px 18px rgba(47, 88, 107, .07);
  --round: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "Zen Maru Gothic", "M PLUS Rounded 1c", -apple-system, "Noto Sans JP", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16.5px/1.9 var(--sans);
  font-feature-settings: "palt";
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--round); font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--accent); }
.site-nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .875rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: .2rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }

@media (max-width: 33.9rem) {
  /* 折り返したナビが右端に浮くので、左揃えで 1 行に並べる */
  .site-header .wrap { min-height: 0; padding-top: .8rem; padding-bottom: .7rem; gap: .5rem; }
  .site-nav { margin-left: 0; width: 100%; gap: 1rem; font-size: .82rem; }
  .hero h1 { font-size: 1.55rem; }
  .page > h1 { font-size: 1.4rem; }
}

/* 導入部 */
.hero { background: linear-gradient(180deg, #e4f3fa, var(--bg)); border-bottom: 1px solid var(--line); padding: 2.75rem 0 2.25rem; }
.hero h1 { margin: 0 0 .9rem; font-family: var(--round); font-size: 1.85rem; line-height: 1.5; font-weight: 600; letter-spacing: .01em; }
.hero .lead { margin: 0; color: var(--ink-2); }
.hero .facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.hero .facts li { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; color: var(--ink-2); }
.hero .facts b { color: var(--price); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.btn { display: inline-block; padding: .65rem 1.4rem; border-radius: 999px; font-size: .95rem; text-decoration: none; border: 1px solid var(--accent); }
.btn-main { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }
.btn-main:hover { background: #26708c; border-color: #26708c; }
.btn-sub { background: var(--surface); color: var(--accent-ink); border-color: var(--line-2); }
.btn-sub:hover { background: var(--accent-bg); }

/* 本文 */
main { padding: 0; }
.page { padding: 2.5rem 0 1rem; }
.page > h1 { margin: 0 0 1.1rem; font-family: var(--round); font-size: 1.6rem; line-height: 1.55; font-weight: 600; }
h2 { margin: 2.6rem 0 .8rem; font-family: var(--round); font-size: 1.2rem; line-height: 1.6; font-weight: 600; }
h2::before { content: ""; display: inline-block; width: .5rem; height: .5rem; background: var(--accent); border-radius: 50%; margin-right: .6rem; vertical-align: .12em; }
h3 { margin: 1.8rem 0 .5rem; font-size: 1.02rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
strong { font-weight: 600; }
main ul, main ol { padding-left: 1.3rem; }
main li { margin-bottom: .45rem; }

/* ページ一覧のカード */
.pages { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
@media (min-width: 34rem) { .pages { grid-template-columns: 1fr 1fr; } }
.pages li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.pages li:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pages a { display: block; padding: .95rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.pages a:hover { color: var(--accent-ink); }
.pages span { display: block; margin-top: .3rem; color: var(--muted); font-size: .85rem; font-weight: 400; line-height: 1.75; }

/* 組み合わせのカード */
.sets { display: grid; gap: 1rem; margin: 1.4rem 0; }
.set { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; }
.set-head { display: flex; align-items: baseline; gap: .7rem; padding: .8rem 1.1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set-no { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.set-total { font-family: var(--round); font-size: 1.5rem; font-weight: 600; color: var(--price); letter-spacing: .01em; }
.set-total small { font-size: .7em; font-weight: 400; }
.set-over { font-size: .8rem; color: var(--muted); margin-left: auto; }
.set-body { padding: .9rem 1.1rem 1.1rem; }
.set-body ul { list-style: none; padding: 0; margin: 0; }
.set-body li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; margin: 0; border-top: 1px dashed var(--line); }
.set-body .right { flex: none; display: flex; align-items: center; gap: .5rem; }
.set-body li:first-child { border-top: 0; padding-top: 0; }
.set-body li a { flex: 1; font-size: .93rem; line-height: 1.7; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-body li a:hover { color: var(--accent-ink); text-decoration: underline; }
.price { min-width: 4.6rem; text-align: right; font-weight: 600; }
.tag { flex: none; align-self: center; font-size: .72rem; line-height: 1.5; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-bg); color: var(--accent-ink); border: 1px solid var(--line-2); white-space: nowrap; }
.set-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.price { color: var(--price); white-space: nowrap; font-size: .9rem; font-variant-numeric: tabular-nums; }
.after { margin: 0; padding: .3rem .7rem; background: var(--accent-bg); border-radius: 999px; color: var(--accent-ink); font-size: .8rem; display: inline-block; }
.mini { font-size: .93rem; }

/* 表・定義リスト */
.spec { margin: 1rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.spec > div { display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding: .75rem 1.1rem; border-top: 1px solid var(--line); }
.spec > div:first-child { border-top: 0; }
.spec dt { flex: 0 0 7.5rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.spec dd { flex: 1; min-width: 12rem; margin: 0; font-size: .95rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .93rem; background: var(--surface); }
caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: .4rem; }
th, td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: right; font-variant-numeric: tabular-nums; }
th { background: var(--surface-2); font-weight: 600; text-align: center; }
tbody tr:hover td { background: #f8fcfe; }

.src, .note { color: var(--muted); font-size: .85rem; line-height: 1.8; }

/* フッター */
.site-footer { margin-top: 3.5rem; border-top: 1px solid var(--line); background: var(--surface); padding: 2rem 0 3rem; }
.site-footer h2 { margin: 0 0 .5rem; font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.site-footer h2::before { display: none; }
.cols { display: grid; gap: 1.5rem; }
@media (min-width: 34rem) { .cols { grid-template-columns: 1fr 1.4fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.2rem; }
.site-footer li { margin-bottom: .35rem; font-size: .88rem; break-inside: avoid; }
.site-footer .cols > div:first-child ul { columns: 1; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer .note { margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
