:root {
  --ink: #35231d;
  --muted: #716965;
  --line: #e5ddd6;
  --paper: #fffdf9;
  --cream: #faf7f2;
  --card: #ffffff;
  --red: #b8323c;
  --red-dark: #942630;
  --red-soft: #fff1ef;
  --olive: #8c9a67;
  --olive-soft: #f0f3e6;
  --shadow: 0 8px 24px rgba(58, 39, 31, .08);
  --max: 1180px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
.shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -64px; padding: 10px 16px; background: #fff; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255, 253, 249, .98); }
.site-header-home { position: absolute; inset: 0 0 auto; width: 100%; border-bottom: 0; background: transparent; }
.header-inner { min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-block: 18px 12px; }
.site-label { display: block; flex: 0 0 auto; text-decoration: none; }
.site-label img { width: 232px; height: auto; }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(18px, 3vw, 42px); }
.site-header nav { justify-content: center; }
.site-header-home nav { display: none; }
.site-header nav a { position: relative; padding: 2px 0 7px; font-family: var(--serif); font-size: .8rem; letter-spacing: .12em; text-decoration: none; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--red); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { right: 0; }

.hero { position: relative; z-index: 2; min-height: clamp(720px, 100svh, 980px); overflow: visible; background: #c9974a; isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: -1px; height: clamp(260px, 38vh, 380px); background: linear-gradient(to bottom, rgba(255, 253, 249, 0), var(--paper)); pointer-events: none; }
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-type { position: absolute; z-index: 1; left: 50%; height: auto; pointer-events: none; user-select: none; }
.hero-type-patisserie { top: 10%; width: min(92vw, 1320px); transform: translateX(-50%); }
.hero-type-select { top: 32%; width: min(58vw, 790px); opacity: .68; transform: translateX(-50%); }
.hero-cake { position: absolute; z-index: 2; left: 50%; bottom: -10%; width: min(58vw, 820px); height: auto; transform: translateX(-50%); filter: drop-shadow(0 20px 16px rgba(73, 45, 22, .16)); }
.hero-caption { position: absolute; z-index: 3; left: 50%; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 7px; width: min(90%, 440px); text-align: center; transform: translateX(-50%); }
.hero-caption h1 { margin: 0; font-family: var(--serif); font-size: .78rem; font-weight: 500; letter-spacing: .18em; line-height: 1.7; }
.hero-link { flex: 0 0 auto; border-bottom: 1px solid currentColor; padding-bottom: 1px; color: var(--red); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; }
.hero-link:hover { color: var(--red-dark); }
.eyebrow { margin: 0 0 20px; color: var(--red); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-align: center; }
.button, .filters button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--red); border-radius: 0; padding: 11px 25px; background: var(--red); color: #fff; font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover, .filters button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.notice { color: var(--muted); font-size: .88rem; }
.section-notice img { flex: 0 0 auto; opacity: .72; }

.section { padding: 96px 0; }
.products-section { position: relative; z-index: 1; background: var(--paper); }
.section-heading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; margin-bottom: 12px; text-align: center; }
.section-heading h2, .pathway-section > .shell > h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.45rem); font-weight: 500; letter-spacing: .06em; }
.section-heading > a { border-bottom: 1px solid currentColor; color: var(--red); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; }
.section-notice { display: block; margin: 0 0 38px; color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 42px); }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; }
.product-card-main { flex: 1; display: flex; flex-direction: column; text-decoration: none; }
.product-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #faf7f1; border: 0; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card-main:hover .product-image img { transform: scale(1.025); }
.product-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 22px 8px 14px; }
.product-body strong { min-height: 3.3em; font-family: var(--serif); font-size: .96rem; font-weight: 500; line-height: 1.7; }
.product-price { color: var(--red); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.product-price small { margin-left: 4px; color: var(--muted); font-family: var(--sans); font-size: .68rem; font-weight: 400; }
.product-badges { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: .72rem; }
.review-badge { padding: 0; border-radius: 0; background: transparent; color: var(--red); }
.shipping-badge { display: inline-block; padding: 0; border-radius: 0; background: transparent; color: #6e7657; font-size: .7rem; }
.product-external { align-self: center; margin: 0 auto; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 3px 0; color: var(--red); font-size: .72rem; font-weight: 600; letter-spacing: .05em; line-height: 1.45; text-align: center; text-decoration: none; }
.product-external:hover { background: transparent; color: var(--red-dark); }

.cake-atlas { position: relative; z-index: 1; padding: 160px 0 108px; background: var(--paper); }
.cake-atlas-grid { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 42px); }
.cake-atlas-row { display: grid; justify-content: center; gap: clamp(18px, 2.6vw, 36px); }
.cake-atlas-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cake-atlas-row-3 { grid-template-columns: repeat(3, minmax(0, 260px)); }
.cake-atlas-row-2 { grid-template-columns: repeat(2, minmax(0, 260px)); }
.cake-atlas-card { min-width: 0; color: var(--ink); text-align: center; text-decoration: none; }
.cake-atlas-image { display: block; aspect-ratio: 1 / 1; overflow: visible; background: transparent; }
.cake-atlas-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.cake-atlas-label { display: inline-block; margin-top: 18px; border-bottom: 1px solid transparent; padding-bottom: 3px; font-family: var(--serif); font-size: .9rem; letter-spacing: .09em; transition: border-color .2s ease, color .2s ease; }
.cake-atlas-card:hover .cake-atlas-image img { transform: scale(1.025); }
.cake-atlas-card:hover .cake-atlas-label { border-color: var(--red); color: var(--red); }

.category-page { text-align: center; }
.category-portrait { width: min(440px, 72vw); margin: -26px auto 12px; }
.category-lead { max-width: 560px; margin: 0 auto 30px; color: var(--muted); font-family: var(--serif); font-size: .95rem; letter-spacing: .04em; line-height: 2.15; text-align: left; text-wrap: pretty; }
.category-variations { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 20px; max-width: 820px; margin: 0 auto 34px; color: var(--muted); font-size: .76rem; letter-spacing: .04em; }
.category-variations span::before { content: "・"; color: var(--red); }
.category-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 76px; }
.category-rakuten-link { border-bottom: 1px solid currentColor; color: var(--red); font-size: .78rem; font-weight: 600; text-decoration: none; }
.category-products-title { margin: 0 0 36px; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .09em; }
.category-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; }
.category-product-grid .product-card:only-child { grid-column: 2; }

.pathway-section { background: var(--paper); text-align: center; }
.title-rule { width: 54px; height: 1px; margin: 18px auto 42px; border: 0; background: #b9c39e; }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.pathway-card { display: flex; min-width: 0; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); padding: 42px 30px; text-decoration: none; transition: color .2s ease, background .2s ease; }
.pathway-card:last-child { border-right: 0; }
.pathway-card:hover { background: rgba(240, 243, 230, .34); color: var(--red); }
.pathway-verb { font-family: var(--serif); font-size: clamp(1.55rem, 2.7vw, 2.1rem); letter-spacing: .18em; line-height: 1.4; }
.pathway-card strong { margin-top: 12px; font-family: var(--serif); font-size: .92rem; font-weight: 500; letter-spacing: .12em; }
.pathway-card small { margin-top: 6px; color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.data-date { margin: 18px 0 0; color: var(--muted); font-size: .75rem; text-align: right; }

.page { padding-block: 88px; }
.page > h1, .prose > h1 { margin: .15em 0 1em; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: .06em; line-height: 1.35; text-align: center; }
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto auto; gap: 12px; align-items: end; margin: 44px 0 34px; border: 0; border-block: 1px solid var(--line); border-radius: 0; padding: 28px 0; background: transparent; }
.filters label { font-size: .74rem; font-weight: 600; letter-spacing: .05em; }
.filters input, .filters select { display: block; width: 100%; min-height: 48px; margin-top: 7px; border: 1px solid #c8beb6; border-radius: 0; padding: 10px; background: transparent; color: var(--ink); font: inherit; }
.filters > a { min-height: 48px; padding: 10px; }
.result-count { font-family: var(--serif); font-size: .9rem; font-weight: 500; letter-spacing: .08em; text-align: center; }
.pagination { display: flex; justify-content: center; gap: 24px; margin-top: 40px; }
.empty { padding: 42px; background: var(--cream); }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; color: var(--muted); font-size: .78rem; }
.product-detail { display: grid; grid-template-columns: minmax(300px, 1fr) 1.08fr; gap: 58px; }
.detail-image { overflow: hidden; aspect-ratio: 1; border: 0; border-radius: 0; background: #faf7f1; }
.detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-main h1 { margin: .2em 0 .6em; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.45; }
.detail-price { color: var(--red); font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.detail-price small { display: block; color: var(--muted); font-family: var(--sans); font-size: .75rem; font-weight: 400; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metrics div { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: .74rem; }
.metrics dd { margin: 2px 0 0; font-weight: 700; }
.external { width: 100%; text-align: center; }
.editorial, .source-data { max-width: 900px; margin: 66px auto 0; border-top: 1px solid var(--line); padding-top: 30px; }
.editorial dl div { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); padding: 11px; }
.editorial dt { font-weight: 700; }
.editorial dd { margin: 0; }
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2.5em; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .05em; text-align: center; }
.prose p, .prose li { max-width: 780px; }
.prose p, .prose ul, .prose ol { margin-inline: auto; }
.prose-lead { max-width: 620px !important; font-family: var(--serif); letter-spacing: .04em; line-height: 2.15; }
.prose-action { margin-top: 54px !important; text-align: center; }
.shop-invitation { max-width: 720px; margin: 74px auto 0; border-block: 1px solid var(--line); padding: 52px 0; }
.shop-invitation h2 { margin-top: .4em; }
.shop-invitation h3 { margin: 38px 0 16px; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; letter-spacing: .08em; text-align: center; }
.shop-invitation ul { max-width: 580px; padding-left: 1.4em; }
.shop-invitation li { margin-block: 8px; }
.free-listing { color: var(--red); font-family: var(--serif); font-size: 1.15rem; letter-spacing: .14em; text-align: center; }
.application-note { margin-top: 34px !important; color: var(--muted); font-size: .82rem; text-align: center; }
.shop-policy { max-width: 720px; margin: 0 auto; padding-top: 18px; }
.shop-directory { max-width: 820px; margin: 74px auto 0; border-block: 1px solid var(--line); padding: 50px 0; }
.shop-directory h2 { margin-top: 0; }
.directory-empty { padding: 18px 0 8px; text-align: center; }
.directory-empty p { margin-bottom: 26px; color: var(--muted); font-family: var(--serif); letter-spacing: .06em; }
.shop-request-page .shop-invitation { margin-top: 64px; }
.shop-request-form { position: relative; max-width: 680px; margin: 74px auto 0; border-top: 1px solid var(--line); padding-top: 46px; }
.form-field { margin-bottom: 28px; }
.form-field label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .05em; }
.form-field label b { color: var(--red); font-size: .7rem; }
.form-field label span { color: var(--muted); font-size: .7rem; font-weight: 400; }
.form-field input, .form-field textarea { display: block; width: 100%; min-height: 50px; border: 1px solid #c8beb6; border-radius: 0; padding: 12px 14px; background: rgba(255,255,255,.42); color: var(--ink); font: inherit; }
.form-field textarea { resize: vertical; line-height: 1.75; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--olive); outline: 2px solid rgba(140,154,103,.22); }
.form-help { margin-top: 7px !important; color: var(--muted); font-size: .72rem; }
.form-consent { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 34px auto 24px; font-size: .82rem; }
.form-consent input { margin-top: .55em; }
.form-submit { display: flex; margin: 0 auto; }
.form-note { text-align: center; }
.form-errors, .form-status { max-width: 680px; margin: 54px auto 0; border: 1px solid #d9b4ae; padding: 24px 30px; background: var(--red-soft); }
.form-errors p { font-weight: 600; }
.form-errors ul { margin-bottom: 0; }
.form-status { border-color: #cbd2b6; background: var(--olive-soft); text-align: center; }
.form-status h2 { margin-top: 0; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.status-page { min-height: 50vh; text-align: center; }

.site-footer { position: relative; min-height: 620px; margin-top: 0; overflow: hidden; background: var(--paper); color: #3d291e; font-size: .76rem; text-align: center; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: clamp(220px, 32vh, 280px); background: linear-gradient(to bottom, var(--paper) 0%, rgba(255, 253, 249, .78) 24%, rgba(255, 253, 249, .32) 60%, rgba(255, 253, 249, 0) 100%); pointer-events: none; }
.footer-stage { position: absolute; z-index: -2; inset: 0; }
.footer-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1.045) contrast(.94); mix-blend-mode: normal; opacity: .82; }
.footer-content { position: relative; min-height: 620px; padding-top: 408px; padding-bottom: 28px; }
.site-footer nav { justify-content: center; margin-bottom: 14px; font-family: var(--serif); letter-spacing: .04em; }
.site-footer nav a { text-decoration-color: rgba(61, 41, 30, .38); }
.site-footer p { margin: 9px auto; max-width: 720px; }
.site-footer .footer-notice { font-size: 10px; }
.site-footer .rakuten-credit { position: absolute; left: clamp(16px, 3vw, 40px); bottom: 18px; margin: 0; max-width: none; font-size: 10px; letter-spacing: .02em; line-height: 1.4; }

button, input, select, a { outline-offset: 3px; }
:focus-visible { outline: 3px solid #1d66a8; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (min-width: 1081px) {
  .hero-type-select { top: 30%; width: min(78vw, 1120px); opacity: 1; }
}

@media (max-width: 1080px) {
  .shell { width: min(var(--max), calc(100% - 44px)); }
  .header-inner { gap: 8px; }
  .site-label img { width: 220px; }
  .site-header nav { gap: 22px; }
  .hero-cake { width: min(68vw, 760px); }
  .hero-type-patisserie { width: 98vw; }
  .hero-type-select { width: 66vw; }
  .product-grid { gap: 12px; }
  .product-body { padding-inline: 6px; }
  .product-external { margin-inline: auto; font-size: .7rem; }
}

@media (max-width: 860px) {
  .header-inner { padding-block: 17px 13px; flex-direction: column; align-items: center; gap: 8px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { padding: 4px 0; }
  .site-header nav a::after { bottom: 0; }
  .site-header-home .header-inner { padding-block: 18px; flex-direction: column; align-items: center; }
  .site-header-home nav { display: none; }
  .hero { min-height: max(760px, 100svh); }
  .hero::after { height: 240px; }
  .hero-type-patisserie { top: 13%; width: 112vw; }
  .hero-type-select { top: 27%; width: 78vw; }
  .hero-cake { bottom: -4%; width: min(92vw, 700px); }
  .hero-caption { left: 50%; bottom: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .cake-atlas { padding-top: 130px; }
  .cake-atlas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .cake-atlas-row { display: contents; }
  .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-product-grid .product-card:only-child { grid-column: auto; }
  .pathway-card { padding-inline: 18px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-image { max-width: 620px; }
}

@media (max-width: 600px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }
  .site-label img { width: 210px; }
  .site-header nav { gap: 8px 15px; font-size: .78rem; line-height: 1.45; }
  .hero { min-height: max(760px, 100svh); }
  .hero-type-patisserie { top: 15%; width: 136vw; }
  .hero-type-select { top: 27%; width: 96vw; opacity: .62; }
  .hero-cake { bottom: -3%; width: 140vw; max-width: none; }
  .hero-caption { left: 50%; right: auto; bottom: 16px; justify-content: center; gap: 5px; max-width: 300px; }
  .hero-caption h1 { max-width: none; font-size: .7rem; letter-spacing: .12em; }
  .hero-link { font-size: .78rem; }
  .section { padding-block: 76px; }
  .products-section { padding-top: 76px; }
  .section-heading { align-items: center; flex-direction: column; gap: 8px; }
  .section-heading h2, .pathway-section > .shell > h2 { font-size: 1.75rem; }
  .product-grid { grid-template-columns: 1fr; gap: 22px; }
  .cake-atlas { padding: 112px 0 82px; }
  .cake-atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .cake-atlas-label { margin-top: 12px; font-size: .76rem; letter-spacing: .04em; }
  .category-lead { max-width: 520px; margin-bottom: 40px; font-size: .88rem; line-height: 2.05; }
  .category-portrait { width: min(340px, 86vw); margin-top: -20px; }
  .category-actions { margin-bottom: 58px; }
  .category-product-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 1.22 / 1; }
  .product-body strong { min-height: 0; }
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-card { min-height: 184px; border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 24px; }
  .pathway-card:last-child { border-bottom: 0; }
  .filters { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .editorial dl div { grid-template-columns: 1fr; }
  .data-date { text-align: left; }
  .site-footer { min-height: 720px; }
  .site-footer::before { height: 280px; }
  .footer-content { min-height: 720px; padding-top: 390px; padding-bottom: 30px; }
  .site-footer nav { gap: 12px 22px; }
  .site-footer p { max-width: 310px; line-height: 1.75; }
}
