/* つむぎ 共通スタイル（2026-10 複数ページ化） */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d8;
  --ink: #2b2620;
  --ink-2: #5b5248;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --accent: #6b4426;
  --accent-ink: #fff;
  --radius: 10px;
  --wrap: 1120px;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.nw { white-space: nowrap; }

/* ヘッダー（PC：横並びナビ／SP：ハンバーガーメニュー） */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo .logo-word { height: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 6px;
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-links .nav-cta {
  background: var(--accent); color: var(--accent-ink); margin-left: 6px; padding-inline: 16px;
}
.nav-links .nav-cta:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 8px; position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.menu-btn::before { top: 14px; } .menu-btn span { top: 21px; } .menu-btn::after { top: 28px; }
.menu-open .menu-btn::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span { opacity: 0; }
.menu-open .menu-btn::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 8px; border: 0; }
}

/* パンくずリスト */
.breadcrumb { font-size: 13px; color: var(--ink-2); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-2); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 共通部品 */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; margin: 0 0 8px; font-weight: 700; }
.lead { color: var(--ink-2); margin: 0 0 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .12s, box-shadow .12s, background .15s;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000);
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--paper-2); }
.note { font-size: 13px; color: var(--ink-2); }

/* 画像の読み込み中（スケルトン） */
.ph { background: linear-gradient(100deg, var(--paper-2) 30%, #f8f3ea 50%, var(--paper-2) 70%) 0 0/300% 100%;
  animation: skel 1.4s linear infinite; border-radius: var(--radius); overflow: hidden; }
.ph.is-loaded { animation: none; background: none; }
@keyframes skel { to { background-position: -150% 0; } }

/* トップのヒーロー（記帳代行） */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent);
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 14px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.3; margin: 0 0 16px; font-weight: 800; letter-spacing: 0.01em; }
.hero h1 .price { color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; }
.hero-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 28px; font-weight: 600; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .note { width: 100%; margin: 4px 0 0; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 18px 40px -22px rgba(43,38,32,.55); }
.hero-copy > * { animation: rise .6s both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-copy > *:nth-child(5) { animation-delay: .24s; }
.hero-visual { animation: rise .7s .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 記帳の要点（3つの数字） */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fffaf2; }
.facts div { padding: 20px 22px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 24px; color: var(--accent); line-height: 1.3; }
.facts span { font-size: 14px; color: var(--ink-2); }

/* サービスの入口カード */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  display: flex; flex-direction: column; text-decoration: none; background: #fffaf2;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(43,38,32,.6); }
.cat:active { transform: translateY(-1px); }
.cat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat h3 { margin: 0; font-size: 18px; }
.cat p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.cat .from { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); font-size: 15px; }
.cat .go { font-size: 14px; font-weight: 700; }
.cat .go::after { content: " →"; transition: margin .15s; }
.cat:hover .go::after { margin-left: 4px; }

/* 見本のカルーセル */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; scrollbar-width: thin;
}
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.carousel-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: transparent;
  font-size: 18px; cursor: pointer; transition: background .15s;
}
.carousel-nav button:hover { background: var(--paper-2); }
.carousel-nav button:active { transform: scale(.94); }
.sample { border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.sample img { border-radius: 8px; transition: transform .18s; }
.sample:hover img { transform: scale(1.02); }
.sample span { display: block; font-size: 13px; margin-top: 6px; font-weight: 600; }

/* モーダル（見本の拡大） */
.modal { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); width: 100%; }
.modal::backdrop { background: rgba(20, 16, 12, .72); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.modal img { border-radius: 10px; width: 100%; }
.modal-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 22px; cursor: pointer;
}
.modal-cap { color: #fff; text-align: center; margin: 10px 0 0; font-size: 14px; }

/* サービス一覧（カテゴリページ） */
.svc-list { display: grid; gap: 22px; }
.svc {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start;
  background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.svc h2 { font-size: 20px; margin: 0 0 4px; }
.svc .price { font-size: 22px; font-weight: 800; color: var(--accent); margin: 0; }
.svc .price small { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-left: 6px; }
.svc ul { margin: 12px 0 14px; padding-left: 1.2em; }
.svc li { margin: 2px 0; }
.svc .svc-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.svc .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.svc .sample { width: 100%; }
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; margin: 6px 0 8px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 46em; }
.page-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.page-tabs a { display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; background: #fffaf2; }
.page-tabs a:hover { border-color: var(--ink); }
.page-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 料金表 */
.price-table { width: 100%; border-collapse: collapse; background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.price-table caption { text-align: left; font-weight: 700; font-size: 18px; padding: 0 0 10px; }
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table td.yen { text-align: right; white-space: nowrap; font-weight: 700; }
.price-table td .unit { display: block; font-size: 13px; color: var(--ink-2); font-weight: 400; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table a { font-weight: 600; }
.price-block + .price-block { margin-top: 36px; }

/* アコーディオン（よくある質問） */
.faq { display: grid; gap: 10px; }
.faq details { background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }

/* 流れ（ステップ） */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: st; }
.steps li { background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: st; font-size: 14px; color: var(--ink-2); }
.steps li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.steps li b::before { content: counter(st) ". "; color: var(--accent); }

.profile { display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--line); margin: 0; }
.profile dt, .profile dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.profile dt { font-weight: 700; }

/* 相談の帯 */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 4px; font-size: 22px; }
.cta-band p { margin: 0; color: #d9d1c4; font-size: 14px; }
.cta-band .btn { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn:hover { background: var(--paper-2); }

/* 相談フォーム */
.form { display: grid; gap: 16px; background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 12px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 8px; background: #fff; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-error { color: #a02a1e; font-weight: 700; margin: 0; }
.assure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }

/* フッター */
.site-footer { margin-top: 56px; background: var(--ink); color: #e9e2d6; padding: 40px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #e9e2d6; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { text-decoration: underline; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 6px; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; color: #b8ae9f; }

/* 追従ボタン（スマホ） */
.follow-cta { display: none; }
@media (max-width: 700px) {
  .follow-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    justify-content: center; align-items: center; min-height: 52px; border-radius: 10px;
    background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(0,0,0,.5);
    transform: translateY(140%); transition: transform .25s;
  }
  .follow-cta.is-visible { transform: none; }
}

@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 40px 0; }
  .hero { padding: 20px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; max-width: 420px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-body { padding: 12px 12px 14px; }
  .cat h3 { font-size: 16px; }
  .cat p { display: none; }
  .carousel-track { grid-auto-columns: 62%; }
  .svc { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .form-row, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile dt { border-bottom: 0; padding-bottom: 0; }
  .cta-band { padding: 24px; }
  .price-table th, .price-table td { padding: 10px 12px; }
  body.has-follow { padding-bottom: 76px; }
}
.sample-name { display: block; font-size: 13px; margin-top: 6px; font-weight: 600; line-height: 1.5; }
.cat > .ph img { aspect-ratio: 1; object-fit: cover; }
.hero-tax { margin: -8px 0 14px; font-weight: 700; color: var(--accent); }
.cat .from small { font-size: 12px; color: var(--ink-2); margin-left: 4px; font-weight: 600; }
@media (max-width: 760px) {
  .facts { display: none; }
  .hero-visual { max-width: 340px; margin-inline: auto; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 760px) {
  .svc { grid-template-columns: 120px 1fr; grid-template-areas: "img head" "strip strip" "cta cta"; gap: 12px 14px; }
  .svc .svc-media, .svc .svc-body { display: contents; }
  .svc .svc-media > .sample { grid-area: img; }
  .svc .svc-media > .strip { grid-area: strip; grid-template-columns: repeat(4, 1fr); margin: 0; }
  .svc .svc-head { grid-area: head; }
  .svc .svc-cta { grid-area: cta; }
  .svc h2 { font-size: 17px; line-height: 1.45; }
  .svc .price { font-size: 20px; margin-top: 4px; }
  .svc .price small { display: block; margin: 0; font-family: var(--gothic); font-weight: 500; }
  .svc .svc-head p:last-child { font-size: 13px; margin: 6px 0 0; line-height: 1.6; }
  .svc ul, .svc .svc-cta .note { display: none; }
  .svc .btn { width: 100%; }
  .badge { font-size: 11px; padding: 1px 8px; right: 4px; bottom: 4px; }
}

/* 見出しの書体（サムネと同じ太い明朝） */
h1, .h2, .svc h2, .cat h3, .cta-band h2, .facts b, .svc .price, .hero-tax, .price-table caption, .page-head h1 {
  font-family: var(--mincho); font-weight: 800; letter-spacing: 0.03em;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.35; }
.hero h1 .price { display: inline-block; background: linear-gradient(transparent 62%, #f3d98b 62%); padding: 0 4px; color: var(--accent); }
.h2 { font-size: clamp(24px, 2.8vw, 32px); }
.hero-kicker, .nav-links a, .btn { letter-spacing: 0.06em; }
.price-table td.yen { font-family: var(--mincho); font-weight: 800; font-size: 17px; }

/* 見本のほかの画像（2〜4枚目） */
.svc-media { display: grid; gap: 8px; align-content: start; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2px; }
.thumb img { border-radius: 6px; }
.sample { position: relative; }
.badge {
  position: absolute; right: 8px; bottom: 8px; background: rgba(43,38,32,.82); color: #fff;
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
}
.hero-visual .strip { margin-top: 10px; }

/* モーダルの前後 */
.modal { position: relative; }
.modal-nav {
  display: none; position: absolute; top: calc(50% - 40px); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.modal.is-multi .modal-nav { display: block; }
.modal-nav.prev { left: 8px; } .modal-nav.next { right: 8px; }
.modal-nav:active { transform: scale(.94); }

/* 記帳の料金インフォグラフィック */
.info-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; }
.info-chart, .calc { background: #fffaf2; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; height: 400px; margin-top: 10px; align-items: end; border-bottom: 2px solid var(--ink); padding: 0 6px; }
.bar { height: 100%; display: grid; grid-template-rows: 1fr auto; position: relative; text-align: center; }
.bar i { align-self: end; height: calc(var(--h) * .86); background: #d9b48a; border-radius: 6px 6px 0 0; position: relative; overflow: hidden;
  transform-origin: bottom; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.bar i .base { position: absolute; left: 0; right: 0; bottom: 0; height: var(--b); background: var(--accent); }
.bar b { position: absolute; left: 0; right: 0; bottom: calc(var(--h) * .86 + 6px); font-family: var(--mincho); font-weight: 800; font-size: 18px; color: var(--ink);
  transition: bottom 1s cubic-bezier(.2,.8,.2,1); }
.bar em { position: absolute; left: 0; right: 0; bottom: -30px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.info.is-ready .bar i { transform: scaleY(.12); }
.info.is-ready .bar b { bottom: calc(var(--h) * .86 * .12 + 6px); }
.info.is-play .bar i { transform: none; }
.info.is-play .bar b { bottom: calc(var(--h) * .86 + 6px); }
.info.is-play .bar:nth-child(2) i, .info.is-play .bar:nth-child(2) b { transition-delay: .12s; }
.info.is-play .bar:nth-child(3) i, .info.is-play .bar:nth-child(3) b { transition-delay: .24s; }
.info.is-play .bar:nth-child(4) i, .info.is-play .bar:nth-child(4) b { transition-delay: .36s; }
.legend { margin: 44px 0 0; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.sw.base { background: var(--accent); } .sw.extra { background: #d9b48a; }
.calc { display: grid; gap: 10px; align-content: start; }
.calc label { font-weight: 700; }
.calc-n { margin: 0; font-family: var(--mincho); font-weight: 800; font-size: 22px; }
.calc-n output { font-size: 36px; color: var(--accent); }
.calc input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.calc-meter { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.calc-meter span { display: block; height: 100%; transition: width .35s ease; }
.calc-meter .m-base { background: var(--accent); } .calc-meter .m-extra { background: #d9b48a; }
.calc-yen { margin: 6px 0 0; font-family: var(--mincho); font-weight: 800; font-size: 24px; }
.calc-yen output { font-size: 46px; color: var(--accent); letter-spacing: .02em; }
.calc-yen small output { font-size: inherit; color: inherit; letter-spacing: 0; }
.calc-yen small { display: block; font-family: var(--gothic); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.calc-formula { margin: 0; font-size: 14px; font-weight: 700; background: var(--paper-2); padding: 8px 12px; border-radius: 6px; }
.calc .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 760px) {
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-chart, .calc { padding: 18px; }
  .bars { height: 230px; gap: 10px; }
  .bar b { font-size: 14px; }
  .bar em { font-size: 12px; }
  .calc-yen output { font-size: 40px; }
  .calc .btn { justify-self: stretch; }
}
