/* ケーキ便のものさし — 共通スタイル */
:root {
  --cream: #fff8f0;
  --paper: #ffffff;
  --choco: #4a2c2a;
  --choco-soft: #7a5a55;
  --berry: #d4506c;
  --berry-dark: #a93752;
  --berry-pale: #fde6ec;
  --mint: #5fae98;
  --mint-pale: #e3f4ee;
  --butter: #f6d77a;
  --butter-pale: #fff4d1;
  --line: #ecdcd2;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(74, 44, 42, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--choco);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  background-color: var(--cream);
  /* 壁紙：いちごの水玉とスプリンクル（CSSのみで描画） */
  background-image:
    radial-gradient(circle at 12px 12px, rgba(212, 80, 108, 0.13) 0 5px, transparent 6px),
    radial-gradient(circle at 42px 40px, rgba(95, 174, 152, 0.14) 0 3px, transparent 4px),
    linear-gradient(35deg, transparent 46%, rgba(246, 215, 122, 0.45) 46% 54%, transparent 54%);
  background-size: 56px 56px, 56px 56px, 28px 28px;
  background-position: 0 0, 0 0, 14px 30px;
}

a { color: var(--berry-dark); }
a:hover { color: var(--berry); }

img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  background: var(--choco);
  color: #fff;
  border-bottom: 6px solid var(--berry);
  position: relative;
}
.site-header::after {
  /* クリームの垂れ（波線） */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 12px;
  background:
    radial-gradient(circle at 10px 0, var(--berry) 0 9px, transparent 10px);
  background-size: 28px 12px;
  background-repeat: repeat-x;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-logo { width: 46px; height: 46px; flex-shrink: 0; }
/* T-01 は透過なし（RGB）で、円の外側に濃い茶の角がある。円形に切り抜いてヘッダー地になじませる */
img.brand-logo { border-radius: 50%; display: block; }
.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  display: block;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--butter);
  letter-spacing: 0.08em;
  display: block;
}
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.global-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.global-nav a:hover { background: rgba(255, 255, 255, 0.14); }
.global-nav .nav-icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}
.global-nav a[aria-current="page"] {
  background: var(--berry);
  color: #fff;
}

/* 本文 */
main { padding: 36px 0 24px; }

.hero {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  border: 2px solid var(--berry-pale);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.45;
}
.hero p { margin: 0 0 8px; }
.hero-art { max-width: 280px; margin: 0 auto; }
.hero-art-main { max-width: 320px; width: 100%; }

.eyebrow {
  display: inline-block;
  background: var(--butter-pale);
  color: var(--choco);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.section {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-top: 24px;
}
.section h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  line-height: 1.5;
  padding-left: 14px;
  border-left: 6px solid var(--berry);
}
.section h3 {
  font-size: 1.08rem;
  margin: 22px 0 8px;
  color: var(--berry-dark);
}
.section p { margin: 0 0 12px; }
.section ul, .section ol { padding-left: 1.4em; margin: 0 0 12px; }
.section li { margin-bottom: 4px; }

.note {
  font-size: 0.85rem;
  color: var(--choco-soft);
}

/* 計算式ボックス */
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-weight: 700;
}
.formula .chip {
  background: var(--berry-pale);
  border: 2px solid var(--berry);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  line-height: 1.4;
}
.formula .chip small { display: block; font-weight: 400; font-size: 0.75rem; }
.formula .chip-total {
  background: var(--choco);
  border-color: var(--choco);
  color: #fff;
}
.formula .op { font-size: 1.3rem; color: var(--choco-soft); }

/* カード並び */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.card h3 { margin-top: 0; }
.card-icon { width: 56px; height: 56px; display: block; margin-bottom: 6px; }

/* 表 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.92rem;
  background: #fff;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
thead th {
  background: var(--choco);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
tbody th { background: var(--berry-pale); white-space: nowrap; }
tbody tr:nth-child(even) td { background: #fffaf6; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.total-row td, tr.total-row th { font-weight: 800; background: var(--butter-pale); }

/* 導線ボックス */
.shop-box {
  margin-top: 24px;
  background: var(--paper);
  border: 3px dashed var(--berry);
  border-radius: var(--radius);
  padding: 20px;
}
.shop-box h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.shop-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--berry-pale);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
.shop-main p { margin: 0; }
.shop-sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 20px;
  line-height: 1.4;
}
.btn-main {
  background: var(--berry);
  color: #fff;
  box-shadow: 0 4px 0 var(--berry-dark);
  font-size: 1.05rem;
}
.btn-main:hover { background: var(--berry-dark); color: #fff; }
.btn-sub {
  background: #fff;
  color: var(--choco);
  border: 2px solid var(--choco-soft);
}
.btn-sub:hover { background: var(--cream); color: var(--choco); }
.pr-label {
  font-size: 0.75rem;
  color: var(--choco-soft);
  margin: 0 0 4px;
}

/* 流れ図 */
.steps {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 12px 12px 12px 58px;
  margin-bottom: 10px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-weight: 800;
  text-align: center;
  line-height: 34px;
}
.steps strong { display: block; }

/* 注意・ポイント */
.callout {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  border-left: 6px solid var(--mint);
  background: var(--mint-pale);
}
.callout-warn {
  border-left-color: var(--berry);
  background: var(--berry-pale);
}
.callout p:last-child { margin-bottom: 0; }

/* 本文中の控えめな導線（PR） */
.inline-aff {
  margin: 14px 0;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.92em;
}
.inline-aff p { margin: 0; }
.inline-aff .pr-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--butter-pale);
  color: var(--choco-soft);
  font-size: 0.8em;
}
.inline-aff a[data-aff="cakejp"] { color: var(--berry-dark); font-weight: 700; }
.inline-aff .inline-aff-sub { color: var(--choco-soft); font-size: 0.9em; }
.inline-aff .inline-aff-sub a { color: var(--choco-soft); }

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  margin-bottom: 10px;
  padding: 0 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  text-align: center;
  line-height: 26px;
  font-size: 0.85rem;
}
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq details p { margin: 12px 0; }

/* 目次 */
.toc {
  background: var(--butter-pale);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 20px;
}
.toc p { margin: 0 0 4px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.4em; }

/* 調査日 */
.survey-date {
  display: inline-block;
  font-size: 0.82rem;
  background: var(--mint-pale);
  color: var(--choco);
  border-radius: 6px;
  padding: 2px 8px;
}

/* フッター */
.site-footer {
  margin-top: 40px;
  background: var(--choco);
  color: #f3e6df;
  padding: 28px 0 20px;
  font-size: 0.85rem;
  border-top: 6px solid var(--berry);
}
.site-footer a { color: var(--butter); }
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.site-footer p { margin: 0 0 8px; }

/* イラスト画像（images/） */
.hero-img {
  display: block;
  width: 100%;
  height: auto;
}
.spot-illust {
  float: right;
  width: 104px;
  height: auto;
  margin: 4px 0 10px 14px;
}
/* 背景つき（透過なし）のPNGスポット。四角い縁を角丸でなじませる */
.spot-illust.spot-raster { border-radius: 10px; }
/* 枠付きの箱や表はイラストの横に回り込ませず下へ送る */
.section .callout,
.section .inline-aff,
.section .table-scroll,
.section .cards,
.section .formula { clear: both; }
.section::after {
  content: "";
  display: block;
  clear: both;
}

/* 本文幅の図解（ASSETS.md 01〜04 等）。スマホ版は picture で出し分け */
.section .diagram { clear: both; }
.diagram {
  margin: 16px 0 20px;
}
.diagram img {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}
@media (max-width: 759px) {
  .diagram img { max-width: 340px; }
}

/* 画像の差し込み枠（ASSETS.md の番号）。空のうちは表示に影響させない */
.img-slot:empty { display: none; }

/* セクション見出しの左に添えるアイコン（ASSETS.md 6章 S-01〜S-25） */
.section > .sec-icon {
  float: left;
  width: 40px;
  height: 40px;
  margin: 0 10px 0 0;
}
.section > .sec-icon + h2 {
  display: flex;
  align-items: center;
  min-height: 40px;
}
@media (min-width: 760px) {
  .section > .sec-icon { width: 48px; height: 48px; margin-right: 12px; }
  .section > .sec-icon + h2 { min-height: 48px; }
}

/* PC */
@media (min-width: 760px) {
  .spot-illust { width: 150px; margin-left: 20px; }
  body { font-size: 17px; }
  .hero {
    grid-template-columns: 1.4fr 1fr;
    padding: 36px 36px;
  }
  .hero h1 { font-size: 2rem; }
  .section { padding: 32px 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .shop-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .shop-sub { grid-template-columns: 1fr 1fr; }
}

/* バッチ119: 文字入りヒーロー（トップのみ） */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-text { grid-template-columns: 1fr; }
.hero-text-picture { display: block; }
.hero-text-picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.hero-cta p { margin: 0 0 8px; }
@media (min-width: 760px) {
  .hero-text { grid-template-columns: 1fr; }
}
