:root {
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --ink: #23302E;
  --sub: #6E7672;
  --line: #E6E1D6;
  --soft: #F0EDE5;
  --navy: #134E48;      /* 見出し・濃い色 */
  --accent: #0F766E;    /* メインのティール */
  --accent-2: #14B8A6;
  --ok: #0E9F6E;
  --pr: #F0623C;        /* コーラル（行動ボタン） */
  --w: 1080px;
  --round: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  font-size: 14px; line-height: 1.65; padding-bottom: 110px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30; height: 56px; background: rgba(247,245,240,.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 max(16px, calc(50% - var(--w)/2));
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 7px; }
.brand-mark i { display: block; height: 3px; border-radius: 3px; background: #fff; }
.brand-mark i:nth-child(2) { width: 70%; }
.brand-mark i:nth-child(3) { width: 45%; background: #FFD7C9; }
.brand-name { font-family: var(--round); font-weight: 900; font-size: 17px; letter-spacing: .02em; }
.hdr-actions { display: flex; align-items: center; gap: 6px; }
.hdr-link { font-size: 13px; font-weight: 700; color: var(--accent); padding: 6px 10px; border-radius: 99px; }
.hdr-link:hover { background: #E3F2EF; }
.hdr-menu { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); background: var(--card); box-shadow: 0 1px 0 var(--line); }

main { max-width: var(--w); margin: 0 auto; padding: 0 16px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 14px 0 22px; align-items: center; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.4fr 1fr; padding: 40px 0 36px; } }
.hero-eyebrow { display: inline-block; margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--accent); background: #E3F2EF; padding: 3px 12px; border-radius: 99px; }
.hero h1 { margin: 0; font-family: var(--round); font-weight: 900; font-size: clamp(27px, 5.4vw, 44px); line-height: 1.35; color: var(--navy); letter-spacing: .01em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, #FFD7C9 62%); }
.hero-lead { margin: 12px 0 0; color: #4B5551; font-size: 14px; max-width: 520px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 14px 0 0; font-size: 12px; color: var(--sub); }
.hero-points li::before { content: "✔"; color: var(--accent); margin-right: 4px; font-weight: 700; }
.hero-points b { color: var(--navy); font-size: 14px; }

.receipt {
  justify-self: center; width: min(280px, 82%); background: var(--card); padding: 18px 20px 26px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px; color: #4B5551; position: relative; transform: rotate(2deg); box-shadow: 0 18px 40px -18px rgba(19,78,72,.35);
  border-radius: 6px 6px 0 0;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 0 100% / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 6.5px, #000 7px) 0 100% / 18px 100% repeat-x;
}
.receipt p { margin: 0; }
.rc-title { text-align: center; letter-spacing: .4em; font-weight: 700; color: var(--navy); padding-bottom: 8px; border-bottom: 1px dashed #C9C2B3; margin-bottom: 8px !important; }
.rc-row { display: flex; justify-content: space-between; padding: 2px 0; }
.rc-row.dim { color: #A39C8D; }
.rc-total { display: flex; justify-content: space-between; border-top: 1px dashed #C9C2B3; margin-top: 8px !important; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--navy); }
.rc-save { margin-top: 10px !important; text-align: center; background: #FFF1EB; color: var(--pr); border-radius: 6px; padding: 4px; font-family: var(--round); font-size: 12px; }

/* ---------- search / hint ---------- */
.finder { background: var(--card); border-radius: 18px; padding: 12px; box-shadow: 0 1px 0 var(--line); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--accent); }
#search { width: 100%; height: 44px; border: 2px solid transparent; border-radius: 12px; padding: 0 12px 0 40px; font: inherit; font-size: 13px; background: var(--soft); outline: none; }
#search:focus { border-color: var(--accent-2); background: #fff; }
.hint { margin: 10px 2px 0; font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.hint::before { content: "👆"; }
.hint button { margin-left: auto; color: #A39C8D; font-size: 14px; }
.hint.hide { display: none; }

/* ---------- category tabs ---------- */
.tabs { position: sticky; top: 56px; z-index: 20; display: flex; align-items: center; gap: 8px; margin: 14px -16px 0; padding: 8px 0 8px 16px; background: rgba(247,245,240,.95); backdrop-filter: blur(10px); }
.tab-all { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 12px; background: var(--card); font-size: 12px; font-weight: 700; color: #4B5551; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.chip.on { background: #E3F2EF; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.chip .dot[hidden] { display: none; }
.chip .dot { min-width: 18px; height: 18px; line-height: 18px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; text-align: center; padding: 0 5px; }

/* ---------- catalog ---------- */
.cat { padding-top: 22px; }
.cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cat-head .emo { width: 32px; height: 32px; border-radius: 10px; background: var(--card); display: grid; place-items: center; font-size: 17px; box-shadow: 0 1px 0 var(--line); }
.cat-head h2 { margin: 0; font-family: var(--round); font-size: 18px; font-weight: 900; color: var(--navy); }
.cat-head .picked { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent); background: #E3F2EF; border-radius: 99px; padding: 2px 10px; }
.cat-desc { margin: 0 0 10px; font-size: 12px; color: var(--sub); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; text-align: left;
  background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .12s, background .15s;
}
.tile:hover { box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.tile:active { transform: scale(.98); }
.tile .ico { width: 36px; height: 36px; border-radius: 10px; font-size: 11px; }
.tile .ico.sm { font-size: 9px; }
.tile .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.tile .tname { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .tfrom { font-size: 11px; color: var(--sub); }
.tile .tag-multi { position: absolute; top: -7px; right: 10px; font-size: 9px; font-weight: 700; color: var(--accent); background: #E3F2EF; border-radius: 99px; padding: 0 7px; line-height: 16px; }
.tile .tprice { font-size: 12px; font-weight: 700; color: var(--accent); }
.tile.sel { background: #F1FAF8; box-shadow: inset 0 0 0 2px var(--accent); }
.tile.sel .tfrom { display: none; }
.tile.sel::after { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.tile .cnt { position: absolute; top: -7px; left: 10px; font-size: 9px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 99px; padding: 0 7px; line-height: 16px; }
.tile.add { background: transparent; box-shadow: inset 0 0 0 1.5px #D5CEC0; border: 0; }
.tile.add .ico { background: transparent; color: var(--accent); font-size: 20px; box-shadow: inset 0 0 0 1.5px #BFE3DC; }
.tile.add .tname { color: var(--accent); }
.tile[hidden] { display: none; }

.ico { position: relative; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; color: #fff; font-weight: 900; font-size: 10px; line-height: 1; letter-spacing: -.02em; overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.sm { font-size: 8px; }
.ico img.fav { position: absolute; inset: 0; object-fit: contain; padding: 6%; background: #fff; opacity: 0; transition: opacity .2s; }
.ico.has-img { box-shadow: inset 0 0 0 1px var(--line); }
.ico.has-img img.fav { opacity: 1; }

.noresult { text-align: center; padding: 30px 0; color: var(--sub); font-size: 13px; }

/* ---------- content ---------- */
.content { margin-top: 44px; background: var(--card); border-radius: 20px; padding: 22px 18px; }
.content h2 { font-family: var(--round); font-size: 19px; color: var(--navy); margin: 0 0 8px; font-weight: 900; }
.content > p { color: #4B5551; font-size: 13px; margin: 0 0 12px; }
.howto-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .howto-grid { grid-template-columns: 1fr 1fr; } }
.howto-grid div { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.howto-grid b { color: var(--navy); font-size: 14px; }
.howto-grid span { font-size: 12px; color: #4B5551; }
details { border-radius: 12px; background: var(--soft); margin: 6px 0; overflow: hidden; }
summary { padding: 13px 40px 13px 14px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; position: relative; font-size: 13px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p, details .ptable { padding: 0 14px 12px; margin: 0; font-size: 13px; }
.ptable table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ptable td { border-top: 1px solid var(--line); padding: 7px 4px; vertical-align: top; }
.ptable td:first-child { font-weight: 700; color: var(--navy); width: 36%; white-space: pre-line; }
.ptable td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ftr { margin-top: 30px; padding: 16px 4px; font-size: 11px; color: var(--sub); }
.ftr p { margin: 0 0 6px; }
.copy { text-align: center; margin-top: 14px !important; }

/* ---------- floating bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.bar-inner {
  pointer-events: auto; width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px;
  background: var(--card); border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(19,78,72,.45), inset 0 0 0 1px var(--line);
}
.bar-list { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bar-icons { display: flex; }
.bar-icons:empty { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed #C9C2B3; }
.bar-icons .ico { width: 26px; height: 26px; border-radius: 50%; font-size: 8px; box-shadow: 0 0 0 2px #fff; }
.bar-icons .ico + .ico { margin-left: -8px; }
.bar-count { font-size: 11px; font-weight: 700; color: var(--sub); background: var(--soft); border-radius: 99px; padding: 1px 8px; }
.bar-sum { flex: 1; min-width: 0; text-align: right; line-height: 1.15; }
.bar-sum small { display: block; font-size: 10px; color: var(--sub); }
.bar-sum b { font-family: var(--round); font-size: 20px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.bar-sum b i { font-style: normal; font-size: 11px; color: var(--sub); font-weight: 500; }
.bar-go { flex-shrink: 0; height: 44px; padding: 0 16px; border-radius: 999px; background: #CFC8BA; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: background .2s; }
.bar-go.ready { background: var(--pr); }
.bar-go span { font-size: 15px; }
.bar.pulse .bar-sum b { animation: pulse .5s; display: inline-block; }
@keyframes pulse { 40% { transform: scale(1.12); color: var(--accent); } }

/* ---------- sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(35,48,46,.45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 51; left: 50%; bottom: 0; width: 100%; max-width: 520px;
  transform: translate(-50%, 105%); transition: transform .28s cubic-bezier(.2,.9,.3,1);
  background: var(--bg); border-radius: 24px 24px 0 0; max-height: 88vh; display: flex; flex-direction: column;
}
.sheet.on { transform: translate(-50%, 0); }
@media (min-width: 760px) {
  .sheet { bottom: auto; top: 50%; border-radius: 24px; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: .22s; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
}
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--sub); font-size: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.sheet:not(.on) .sheet-close { opacity: 0; pointer-events: none; }
.sheet-body { overflow-y: auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
.sh-head { display: flex; align-items: center; gap: 12px; padding: 0 44px 14px 0; }
.sh-head .ico { width: 46px; height: 46px; font-size: 13px; border-radius: 13px; }
.sh-head h3 { margin: 0; font-family: var(--round); font-size: 18px; color: var(--navy); line-height: 1.3; }
.sh-head p { margin: 0; font-size: 12px; color: var(--sub); }
.plans { display: grid; gap: 6px; }
.plan { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: 14px; text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.plan:hover { box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.plan .radio { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #C9C2B3; flex-shrink: 0; position: relative; }
.plan.on { box-shadow: inset 0 0 0 2px var(--accent); background: #F1FAF8; }
.plan.on .radio { border-color: var(--accent); background: var(--accent); }
.plan.on .radio::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.plan .pl { flex: 1; font-size: 13px; font-weight: 500; }
.plan .pl small { display: block; color: var(--sub); font-size: 11px; font-weight: 400; }
.plan .pp { font-size: 11px; color: var(--sub); white-space: nowrap; }
.plan .pp b { font-family: var(--round); font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.sh-group { font-size: 11px; font-weight: 700; color: var(--sub); margin: 14px 2px 6px; letter-spacing: .05em; }
.custom { margin-top: 12px; background: var(--card); border-radius: 14px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.custom-title { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.custom input[type=text], .custom input[type=number] { width: 100%; height: 42px; border: 0; border-radius: 10px; padding: 0 12px; font: inherit; margin-bottom: 8px; background: var(--soft); outline: none; }
.custom input:focus { box-shadow: inset 0 0 0 2px var(--accent-2); background: #fff; }
.custom .row { display: flex; gap: 8px; align-items: center; }
.custom .row input { margin: 0 !important; flex: 1; min-width: 0; }
.seg { display: flex; background: var(--soft); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.seg button { padding: 0 12px; height: 36px; font-size: 12px; border-radius: 8px; color: var(--sub); font-weight: 700; }
.seg button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; margin-top: 10px; transition: filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 1.5px #BFE3DC; }
.btn.danger { background: transparent; color: #C2410C; box-shadow: inset 0 0 0 1.5px #F6D2C3; }
.btn.pr { background: var(--pr); }
.btn small { font-size: 9px; margin-left: 2px; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; opacity: .9; }
.aff-box { margin-top: 12px; padding: 12px; background: #FFF4EF; border-radius: 14px; }
.aff-box p { margin: 0; font-size: 12px; color: #8A3B1E; }
.link-btn { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 12px; color: var(--sub); text-decoration: underline; }

/* list */
.li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.li .ico { width: 34px; height: 34px; border-radius: 10px; }
.li .lt { flex: 1; min-width: 0; text-align: left; }
.li .lt b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .lt small { color: var(--sub); font-size: 11px; }
.li .lp { font-family: var(--round); font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.li .lx { width: 30px; height: 30px; border-radius: 10px; background: var(--soft); color: var(--sub); }
.li-cat { font-size: 11px; font-weight: 700; color: var(--accent); margin-top: 14px; }
.li-sum { display: flex; justify-content: space-between; padding: 14px 0 4px; font-family: var(--round); font-weight: 900; color: var(--navy); font-size: 17px; }
.empty-msg { text-align: center; color: var(--sub); padding: 30px 0; }
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-list button { background: var(--card); border-radius: 14px; padding: 12px; text-align: left; font-weight: 700; color: var(--navy); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.cat-list small { display: block; font-weight: 400; color: var(--sub); font-size: 11px; }

.fly { position: fixed; z-index: 60; pointer-events: none; border-radius: 50%; transition: transform .6s cubic-bezier(.5,-.2,.6,1), opacity .6s; }

/* ---------- result ---------- */
.result { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; }
.result-top { position: sticky; top: 0; z-index: 2; background: rgba(247,245,240,.95); backdrop-filter: blur(10px); height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(16px, calc(50% - 280px)); font-family: var(--round); font-weight: 900; color: var(--navy); }
.result-back { color: var(--accent); font-weight: 700; font-size: 13px; width: 90px; text-align: left; }
.result-top span:last-child { width: 90px; }
.result-body { max-width: 560px; margin: 0 auto; padding: 4px 16px 40px; }
.summary { background: var(--card); border-radius: 24px; padding: 20px 18px; box-shadow: 0 18px 40px -24px rgba(19,78,72,.4); }
.summary-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: var(--sub); letter-spacing: .08em; }
.summary-main { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.donut { position: relative; width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; }
.donut::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: var(--card); }
.donut-c { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-c small { font-size: 10px; color: var(--sub); }
.donut-c b { font-family: var(--round); font-size: 19px; color: var(--navy); font-weight: 900; line-height: 1.1; }
.legend { flex: 1; min-width: 0; display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.legend span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #4B5551; }
.legend b { font-variant-numeric: tabular-nums; color: var(--navy); }
.summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.summary-stats div { background: var(--soft); border-radius: 12px; padding: 8px 4px; text-align: center; }
.summary-stats small { display: block; font-size: 10px; color: var(--sub); }
.summary-stats b { font-family: var(--round); font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }
.summary-icons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.summary-icons .ico { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.share-row .btn { margin: 0; height: 46px; font-size: 13px; }
.btn.x { background: #111; }
.panel { background: var(--card); border-radius: 20px; padding: 18px 16px; margin-top: 14px; }
.panel h3 { margin: 0 0 12px; font-family: var(--round); font-size: 16px; color: var(--navy); }
.rec { background: #FFF4EF; border-radius: 14px; padding: 14px; margin-top: 10px; }
.rec .tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--pr); margin-bottom: 4px; }
.rec h4 { margin: 0 0 4px; font-size: 14px; }
.rec p { margin: 0; font-size: 12px; color: var(--sub); }
.rec .btn { height: 42px; font-size: 13px; }
.pr-note { font-size: 10px; color: var(--sub); margin-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 13px; z-index: 90; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 見直しレポート */
.rp h3 { font-size: 17px; }
.rp-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.rp-sum div { background: #E3F2EF; border-radius: 14px; padding: 12px; text-align: center; }
.rp-sum div:last-child { background: #FFF4EF; }
.rp-sum small { display: block; font-size: 11px; color: var(--sub); }
.rp-sum b { font-size: 20px; color: var(--ok); font-variant-numeric: tabular-nums; }
.rp-sum div:last-child b { color: var(--pr); }
.rp-sec { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.rp-sec h4 { margin: 0 0 6px; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.rp-now { margin: 0 0 8px; font-size: 12px; color: var(--sub); }
.rp-now b { color: var(--navy); font-size: 15px; }
.rp-text { margin: 0; font-size: 13px; color: #3a4554; }
.rp-opt { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; }
.rp-opt .ico { width: 36px; height: 36px; border-radius: 8px; font-size: 11px; }
.rp-main { flex: 1; min-width: 0; }
.rp-main b { display: block; font-size: 14px; color: var(--ink); }
.rp-main small { display: block; font-size: 11px; color: var(--sub); line-height: 1.4; }
.rp-tag { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; color: var(--accent); background: #E3F2EF; border-radius: 4px; padding: 1px 6px; }
.rp-best { display: inline-block; font-size: 10px; color: #fff; background: var(--pr); border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: 2px; }
.rp-price { text-align: right; font-weight: 900; color: var(--navy); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-price small { font-size: 10px; font-weight: 400; color: var(--sub); }
.rp-price em { display: block; font-style: normal; font-size: 12px; color: var(--ok); font-weight: 700; }
.rp-btn { height: 40px; font-size: 13px; margin-top: 8px; }
.rp-goto { height: 42px; font-size: 13px; }
.rp-note { margin: 10px 0 0; font-size: 11px; color: var(--sub); }
.rp-note b { color: var(--ok); }
.rp-alert { background: #fff4e6; color: #8a4b0b; font-size: 12px; border-radius: 8px; padding: 10px 12px; margin-bottom: 4px; }
.rp-tier { display: block; font-size: 10px; color: var(--sub); font-weight: 700; }

/* 通知・相談・有料会員 */
.mb-lead { margin: -4px 0 10px; font-size: 12px; color: var(--sub); }
.mb-list { border-top: 1px solid var(--line); }
.mb-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mb-row .ico { width: 28px; height: 28px; }
.mb-name { flex: 1; min-width: 90px; }
.mb-name b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-name small { font-size: 11px; color: var(--sub); }
.mb-type, .mb-date { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 12px; background: #fff; color: var(--ink); }
.mb-date { width: 132px; }
.mb-count { font-size: 12px; color: var(--accent); font-weight: 700; margin: 8px 0 0; }
.mb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mb-btns .btn { font-size: 13px; }
.btn.line { background: #06C755; }
.btn.line-add { color: #06A847; border-color: #bfe9cf; font-size: 13px; height: 42px; }
.btn.big { height: 52px; font-size: 15px; }
.premium { margin-top: 14px; border: 2px solid #f1d77a; border-radius: 12px; padding: 14px; background: linear-gradient(160deg, #fffdf3, #fff); }
.premium-head { display: flex; align-items: center; gap: 8px; }
.premium-head b { font-size: 15px; color: var(--navy); }
.premium-badge { font-size: 10px; font-weight: 700; color: #7a5a00; background: #f6e3a1; border-radius: 4px; padding: 1px 6px; }
.premium-price { margin-top: 6px; font-size: 12px; color: var(--sub); }
.premium-price b { font-size: 24px; color: var(--navy); font-weight: 900; }
.premium ul { margin: 8px 0 0; padding: 0; list-style: none; }
.premium li { position: relative; padding: 4px 0 4px 22px; font-size: 13px; }
.premium li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }

@media (max-width: 759px) {
  .receipt { width: 230px; padding: 12px 16px 20px; font-size: 11px; }
  .rc-row.dim { display: none; }
  .rc-total { font-size: 13px; }
}
.summary-main { flex-wrap: wrap; justify-content: center; }
.legend { min-width: 190px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { font-size: 9px; font-weight: 700; color: var(--sub); letter-spacing: .12em; }
.mb-steps { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 6px; }
.mb-steps li { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 8px 12px; font-size: 12px; }
.mb-steps b { width: 22px; height: 22px; border-radius: 50%; background: #06C755; color: #fff; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.mb .mb-list { margin-top: 14px; }

/* 明細スクショ読み取り */
.scan-cta { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #0F766E, #14B8A6); color: #fff; text-align: left; box-shadow: 0 10px 24px -14px rgba(15,118,110,.8); }
.scan-cta:hover { filter: brightness(1.05); }
.scan-cta-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.scan-cta-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.scan-cta-tx b { font-family: var(--round); font-size: 15px; }
.scan-cta-tx small { font-size: 11px; opacity: .9; }
.scan-cta-go { font-size: 20px; font-weight: 700; }
.or { display: flex; align-items: center; gap: 10px; margin: 12px 2px 10px; font-size: 11px; color: var(--sub); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scan-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 130px; border-radius: 16px; border: 2px dashed #9ED8CF; background: #F1FAF8; color: var(--accent); cursor: pointer; text-align: center; }
.scan-drop b { font-family: var(--round); font-size: 17px; }
.scan-drop span { font-size: 12px; color: var(--sub); }
.scan-drop::before { content: "🖼️"; font-size: 28px; }
.scan-tips { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 12px; color: #4B5551; }
.scan-bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 8px; }
.scan-bar i { display: block; height: 100%; width: 3%; background: linear-gradient(90deg, #0F766E, #14B8A6); transition: width .3s; }
.scan-list { display: grid; gap: 6px; }
.scan-row { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.scan-row:has(.scan-on:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: #F1FAF8; }
.scan-on { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.scan-row .ico { width: 32px; height: 32px; border-radius: 9px; }
.scan-name { flex: 1; min-width: 0; }
.scan-name b { display: block; font-size: 13px; }
.scan-name small { display: block; font-size: 10px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-amt { display: flex; gap: 4px; flex-shrink: 0; }
.scan-price { width: 78px; height: 34px; border: 0; border-radius: 8px; background: var(--soft); padding: 0 8px; font: inherit; font-size: 13px; text-align: right; }
.scan-unit { height: 34px; border: 0; border-radius: 8px; background: var(--soft); font: inherit; font-size: 12px; padding: 0 4px; }
.scan-raw { margin-top: 12px; background: var(--card); }
.scan-raw pre { white-space: pre-wrap; font-size: 11px; color: var(--sub); padding: 0 14px 12px; margin: 0; max-height: 200px; overflow: auto; }
.scan-note { font-size: 11px; color: var(--sub); margin: 10px 2px 0; }
.scan-row { flex-wrap: wrap; }
.scan-name { flex: 1 1 150px; }
.scan-amt { margin-left: auto; }

/* LINE公式アカウントのカード */
.line-card { display: flex; align-items: center; gap: 12px; background: #F2FBF5; border: 1px solid #C9EED6; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.line-icon { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px #06C755; flex-shrink: 0; }
.line-info { flex: 1; min-width: 0; }
.line-info b { display: block; font-size: 14px; color: var(--ink); }
.line-info small { font-size: 12px; color: var(--sub); }
.line-qr { margin: 0; text-align: center; flex-shrink: 0; }
.line-qr img { width: 92px; height: 92px; display: block; background: #fff; border-radius: 8px; padding: 4px; }
.line-qr figcaption { font-size: 10px; color: var(--sub); margin-top: 2px; }
/* スマホではQRより友だち追加ボタンの方が便利なので小さく */
@media (max-width: 520px) { .line-qr img { width: 64px; height: 64px; } }

/* パソコンでLINEのボタンを押したとき */
.line-pc { position: fixed; inset: 0; z-index: 95; background: rgba(35,48,46,.5); display: grid; place-items: center; padding: 16px; }
.line-pc-card { position: relative; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 24px; padding: 22px 20px; }
.line-pc-card h3 { margin: 0 36px 6px 0; font-family: var(--round); font-size: 18px; color: var(--navy); }
.line-pc-card p { margin: 0; font-size: 12px; color: #4B5551; }
.line-pc-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--sub); font-size: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.line-pc-qr { width: 220px; height: 220px; margin: 14px auto; background: #fff; border-radius: 16px; padding: 10px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px #06C755; text-align: center; font-size: 12px; color: var(--sub); }
.line-pc-qr svg { width: 100%; height: 100%; }
.line-pc-sub { margin-top: 4px !important; }
.line-pc-card textarea { width: 100%; height: 96px; margin-top: 8px; border: 0; border-radius: 12px; background: var(--card); padding: 10px; font: inherit; font-size: 12px; resize: none; box-shadow: inset 0 0 0 1px var(--line); }
.line-pc-btns .btn { margin-top: 8px; }
.btn.line { background: #06C755; }

/* ふるさと納税 */
.fs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
@media (max-width: 420px) { .fs-form { grid-template-columns: 1fr; } }
.fs-form label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: var(--sub); }
.fs-form select { height: 40px; border: 0; border-radius: 10px; background: var(--soft); padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink); }
.fs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fs-cards div { background: #FFF1F3; border-radius: 12px; padding: 10px; text-align: center; }
.fs-cards small { display: block; font-size: 10px; color: var(--sub); }
.fs-cards b { font-family: var(--round); font-size: 18px; color: #BE123C; font-variant-numeric: tabular-nums; }
.fs-rest { margin: 8px 0 0; font-size: 12px; color: #4B5551; }
.fs-rest b { color: #BE123C; }
.rp-sub { margin: 12px 0 0; font-size: 11px; font-weight: 700; color: var(--sub); }

/* お悩み別ガイド */
.sheet-bg { z-index: 80; }
.sheet { z-index: 81; }
.guides-lead { margin: -6px 0 10px; font-size: 12px; color: var(--sub); }
.guide-cards { display: grid; gap: 8px; }
.guide-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--soft); border-radius: 16px; padding: 12px 14px; transition: background .15s; }
.guide-card:hover { background: #E8F5F2; }
.guide-card.pick { background: #FFF4EF; box-shadow: inset 0 0 0 1.5px #F6C9B6; }
.guide-emoji { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.guide-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.guide-tx b { font-family: var(--round); font-size: 15px; color: var(--navy); }
.guide-tx small { font-size: 11px; color: var(--sub); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-badge { align-self: flex-start; font-size: 10px; font-weight: 700; color: #fff; background: var(--pr); border-radius: 99px; padding: 0 8px; margin-bottom: 3px; }
.guide-go { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.guide-article { padding-bottom: 4px; }
.guide-cat { margin: 0 44px 4px 0; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.guide-article h3 { margin: 0 44px 8px 0; font-family: var(--round); font-size: 22px; color: var(--navy); line-height: 1.35; display: flex; gap: 8px; align-items: center; }
.guide-intro { margin: 0 0 14px; font-size: 14px; color: #4B5551; background: var(--card); border-left: 4px solid var(--accent-2); border-radius: 4px 12px 12px 4px; padding: 10px 12px; }
.guide-body { font-size: 14px; line-height: 1.85; color: var(--ink); }
.guide-body p { margin: 0 0 12px; }
.guide-body h4 { margin: 18px 0 8px; font-family: var(--round); font-size: 16px; color: var(--navy); padding-bottom: 4px; border-bottom: 2px solid #BFE3DC; }
.guide-body ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.guide-body li { position: relative; padding: 4px 0 4px 22px; }
.guide-body li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 900; }
.guide-links { margin-top: 16px; background: #FFF4EF; border-radius: 16px; padding: 14px; }
.guide-links-h { margin: 0 0 8px; font-family: var(--round); font-weight: 900; color: var(--pr); }
.guide-link { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 6px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 12px -8px rgba(240,98,60,.6); }
.guide-link span { flex: 1; display: flex; flex-direction: column; }
.guide-link b { font-size: 14px; }
.guide-link small { font-size: 11px; color: var(--sub); }
.guide-link em { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: var(--pr); border-radius: 6px; padding: 2px 6px; }
.guide-link::after { content: "›"; font-size: 20px; color: var(--pr); }
.guide-line { margin-top: 14px; background: #F2FBF5; border: 1px solid #C9EED6; border-radius: 16px; padding: 14px; }
.guide-line p { margin: 0; font-size: 12px; color: #4B5551; }
.guide-line b { color: var(--ink); }
.btn.line { background: #06C755; }

/* 見直しレポートのカルーセル */
.rp-car { margin-top: 14px; }
.rp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px 10px; padding: 2px; }
.rp-tabs::-webkit-scrollbar { display: none; }
.rp-tab { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--soft); font-size: 12px; font-weight: 700; color: #4B5551; white-space: nowrap; }
.rp-tab.on { background: var(--navy); color: #fff; }
.rp-view { overflow: hidden; transition: height .25s ease; touch-action: pan-y; }
.rp-track { display: flex; align-items: flex-start; transition: transform .3s ease; will-change: transform; }
.rp-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 0 2px; }
.rp-car .rp-sec { border-top: 0; margin-top: 0; padding-top: 0; }
.rp-car .rp-sec h4 { display: none; }  /* タブに出ているので見出しは省く */
.rp-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.rp-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--navy); font-size: 20px; line-height: 1; }
.rp-arrow:hover { background: #E3F2EF; }
.rp-dots { display: flex; gap: 6px; }
.rp-dots i { width: 7px; height: 7px; border-radius: 99px; background: #D5CEC0; transition: .2s; }
.rp-dots i.on { width: 20px; background: var(--accent); }

/* PRの注記（見出しの横に小さく） */
.pr-mini { margin-left: 8px; font-family: "Noto Sans JP", sans-serif; font-size: 10px; font-weight: 400; color: var(--sub); vertical-align: middle; letter-spacing: 0; }

/* お得額の帯（カルーセルの各項目の一番上） */
.rp-hl { background: linear-gradient(135deg, #0F766E, #14B8A6); color: #fff; border-radius: 14px; padding: 12px 14px; font-family: var(--round); font-size: 14px; font-weight: 700; margin-bottom: 10px; box-shadow: 0 8px 18px -12px rgba(15,118,110,.9); }
.rp-hl b { font-size: 24px; font-weight: 900; margin: 0 3px; color: #FFE08A; font-variant-numeric: tabular-nums; }
/* 見直しの手順をLINEで受け取る */
.rp-plan { margin-top: 12px; height: 52px; font-size: 15px; }
.rp-plan-note { margin: 4px 0 0; text-align: center; font-size: 11px; color: var(--sub); }

/* お悩みガイド：LINE登録の案内＋記事は折りたたみ */
.guide-topics { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.guide-topics li { display: inline-flex; align-items: center; gap: 5px; background: #F2FBF5; border: 1px solid #C9EED6; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.guide-topics li.pick { background: #FFF4EF; border-color: #F6C9B6; }
.guide-topics em { font-style: normal; font-size: 10px; color: #fff; background: var(--pr); border-radius: 99px; padding: 0 6px; }
.guide-more { margin-top: 12px; background: transparent; }
.guide-more summary { font-size: 12px; color: var(--sub); padding: 8px 30px 8px 2px; }
.guide-more[open] summary { margin-bottom: 6px; }

/* ---------- 合法の裏技（hacks.html・固定費レポート・トップの紹介） ---------- */
.hk-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.hk-badges:empty { display: none; }
.hk-badge { font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--sub); }
.hk-badge.top { background: #FFF4EF; color: var(--pr); }
.hk-badge.unv { background: #FFF8E1; color: #8A6100; }
.hk-badge.free { background: #E3F2EF; color: var(--accent); }
.hk-badge.lock { background: #E9F9EF; color: #06A847; }

.hk-body { font-size: 14px; line-height: 1.8; }
.hk-body h5 { margin: 14px 0 4px; font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.hk-body p { margin: 0; }
.hk-steps { margin: 0; padding-left: 1.4em; }
.hk-steps li { padding: 2px 0; }
.hk-note { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.hk-src { margin-top: 12px !important; font-size: 11px; color: var(--sub); overflow-wrap: anywhere; }
.hk-src a { color: var(--accent); }
.hk-effect { margin: 10px 0 0; background: #FFF4EF; color: #9A3412; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; }

.hk-lock { background: #F2FBF5; border: 1.5px dashed #9EDDB4; border-radius: 16px; padding: 14px; margin-top: 12px; }
.hk-lock-h { margin: 0; font-weight: 700; color: #0B6B33; }
.hk-lock-tx { margin: 6px 0 0; font-size: 13px; color: var(--sub); }
.hk-lock-btns .btn { height: 44px; }
.hk-share { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.hk-share .btn { margin-top: 10px; }
.hk-share .btn.ghost { grid-column: 1 / -1; }
.btn.hk-sh-line { background: #06C755; }
.hk-line-link { display: block; margin: 8px auto 0; font-size: 12px; font-weight: 700; color: #06A847; text-decoration: underline; }
.hk-code { display: flex; gap: 8px; margin-top: 10px; }
.hk-code input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; font: inherit; background: #fff; }
.hk-code .btn { width: auto; margin: 0; padding: 0 18px; }

/* 固定費レポートの欄 */
.hk-rows { display: grid; gap: 8px; }
.hk-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--soft); border-radius: 16px; padding: 12px 14px; }
.hk-row:hover { background: #E8F5F2; }
.hk-row.pick { background: #FFF4EF; box-shadow: inset 0 0 0 1.5px #F6C9B6; }
.hk-row-ico { font-size: 22px; flex: none; }
.hk-row-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hk-row-tx em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--pr); }
.hk-row-tx b { font-size: 14px; line-height: 1.45; }
.hk-row-tx small { font-size: 12px; color: var(--sub); line-height: 1.5; }
.hk-row-go { flex: none; font-size: 12px; font-weight: 700; color: var(--accent); }
.hk-article h3 { display: block; font-size: 20px; }

/* トップページの紹介 */
.hk-teaser { margin: 0; padding: 0; list-style: none; counter-reset: hk; display: grid; gap: 8px; }
@media (min-width: 760px) { .hk-teaser { grid-template-columns: 1fr 1fr; } }
.hk-teaser li { counter-increment: hk; }
.hk-teaser a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--soft); border-radius: 14px; padding: 12px 14px 12px 44px; position: relative; }
.hk-teaser a::before { content: counter(hk); position: absolute; left: 14px; top: 10px; font-family: var(--round); font-weight: 900; font-size: 20px; color: var(--pr); }
.hk-teaser a:hover { background: #E8F5F2; }
.hk-teaser b { display: block; font-size: 14px; line-height: 1.5; }
.hk-teaser small { display: block; margin-top: 2px; font-size: 12px; color: var(--sub); }

/* 一覧ページ */
.hk-page { padding-bottom: 40px; }
.hk-hero { padding: 18px 0 8px; }
.hk-hero h1 { margin: 0; font-family: var(--round); font-weight: 900; font-size: clamp(27px, 5.4vw, 42px); line-height: 1.35; color: var(--navy); }
.hk-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, #FFD7C9 62%); }
.hk-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.hk-stats li { background: var(--card); border-radius: 12px; padding: 6px 12px; font-size: 12px; color: var(--sub); }
.hk-stats b { color: var(--navy); font-size: 15px; margin-right: 2px; }
.hk-gate { position: relative; }
.hk-gate .hk-lock { margin-top: 0; }
.hk-qr { display: none; }
@media (min-width: 760px) { .hk-qr { display: block; width: 120px; margin: 12px auto 0; } }
.hk-top ol { margin: 0; padding: 0; list-style: none; counter-reset: tp; display: grid; gap: 6px; }
@media (min-width: 760px) { .hk-top ol { grid-template-columns: 1fr 1fr; } }
.hk-top li { counter-increment: tp; }
.hk-top a { display: block; text-decoration: none; color: var(--ink); padding: 8px 10px 8px 40px; border-radius: 12px; position: relative; }
.hk-top a:hover { background: var(--soft); }
.hk-top a::before { content: counter(tp); position: absolute; left: 10px; top: 6px; font-family: var(--round); font-weight: 900; font-size: 18px; color: var(--pr); }
.hk-top b { display: block; font-size: 14px; line-height: 1.5; }
.hk-top small { display: block; font-size: 12px; color: var(--sub); }

.hk-chips { position: sticky; top: 56px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin-top: 10px; background: var(--bg); scrollbar-width: none; }
.hk-chips::-webkit-scrollbar { display: none; }
.hk-chips button { flex: none; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 99px; background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.hk-chips button.on { background: var(--navy); color: #fff; box-shadow: none; }

.hk-sec { margin-top: 18px; }
.hk-sec h2 { margin: 0; font-family: var(--round); font-size: 20px; color: var(--navy); display: flex; align-items: baseline; gap: 8px; }
.hk-sec h2 small { font-size: 12px; color: var(--sub); font-weight: 500; }
.hk-sec-lead { margin: 4px 0 10px; font-size: 13px; color: var(--sub); }
.hk-card { background: var(--card); border-radius: 18px; margin-top: 10px; scroll-margin-top: 120px; }
.hk-card summary { display: flex; gap: 10px; padding: 14px 40px 14px 16px; font-weight: 400; font-size: 14px; color: var(--ink); }
.hk-no { flex: none; font-family: var(--round); font-weight: 900; color: var(--pr); font-size: 15px; padding-top: 1px; }
.hk-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hk-head b { font-size: 15px; line-height: 1.5; color: var(--navy); }
.hk-head small { font-size: 12px; color: #9A3412; line-height: 1.5; }
.hk-card > .hk-body, .hk-card > .hk-lock { margin: 0 16px 16px; }
.hk-card > .hk-body { border-top: 1px solid var(--line); padding-top: 4px; }
.hk-notes ul { margin: 0; padding-left: 1.2em; font-size: 13px; color: #4B5551; }
.hk-notes li { padding: 3px 0; }
.hk-ftr { max-width: var(--w); margin: 30px auto 0; padding: 0 16px; }

/* レポートのライフハック欄：LINE登録の案内と、折りたたみ */
.hk-line-cta { display: flex; align-items: center; gap: 12px; background: #F2FBF5; border: 1.5px solid #9EDDB4; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.hk-line-cta p { flex: 1; margin: 0; }
.hk-line-cta b { display: block; color: #0B6B33; font-size: 14px; }
.hk-line-cta small { display: block; font-size: 11px; color: var(--sub); line-height: 1.5; margin-top: 2px; }
.hk-line-cta .btn { width: auto; flex: none; margin: 0; height: 42px; padding: 0 14px; font-size: 13px; }
@media (max-width: 420px) { .hk-line-cta { flex-direction: column; align-items: stretch; } .hk-line-cta .btn { width: 100%; } }
.hk-more { margin-top: 8px; }
.hk-more > summary { font-size: 13px; color: var(--accent); background: transparent; padding: 10px 40px 10px 4px; }
.hk-more > .hk-rows { margin-top: 4px; }
.hk-all { display: block; text-align: center; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 8px; }

/* 診断結果：性別・年代（任意） */
.demo { position: relative; background: var(--card); border-radius: 18px; padding: 14px 16px; margin-top: 12px; }
.demo-h { margin: 0 28px 8px 0; font-weight: 700; font-size: 13px; color: var(--navy); }
.demo-h small { font-weight: 400; color: var(--sub); font-size: 11px; margin-left: 4px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.demo-row > span { font-size: 11px; color: var(--sub); width: 30px; }
.demo-chip { font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--soft); color: var(--ink); }
.demo-chip.on { background: var(--accent); color: #fff; }
.demo-x { position: absolute; right: 10px; top: 8px; width: 28px; height: 28px; border-radius: 50%; color: var(--sub); font-size: 16px; }
.demo-thanks { margin: 0; text-align: center; font-weight: 700; color: var(--accent); padding: 6px 0; }
