:root {
  --ink: #493e42;
  --muted: #756a6d;
  --cream: #fff9ed;
  --cream-deep: #f8efd9;
  --pink: #f7cbd4;
  --pink-soft: #fff0f3;
  --pink-dark: #bc667c;
  --teal: #4c9e97;
  --teal-dark: #28766f;
  --gold: #d8a947;
  --white: #fff;
  --shadow: 0 14px 38px rgba(100, 70, 76, .11);
  --radius: 24px;
  --mobile-bottom-nav-height: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(#d8a947 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  z-index: -1;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.pr-bar { padding: 3px 20px; color: #fff; background: var(--teal-dark); font-size: 11px; letter-spacing: .15em; text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 249, 237, .95);
  border-bottom: 1px solid rgba(188, 102, 124, .15);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.15; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 27px; background: var(--pink-soft); border: 2px solid var(--pink); border-radius: 50%;
}
.brand strong { display: block; color: var(--pink-dark); font-size: 18px; letter-spacing: .03em; }
.brand small { display: block; margin-top: 4px; color: var(--teal-dark); font-size: 11px; letter-spacing: .17em; }
.site-menu { display: flex; align-items: center; gap: 24px; }
.site-menu a { text-decoration: none; font-size: 13px; font-weight: 700; }
.site-menu a:hover { color: var(--pink-dark); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: var(--pink-soft); }
.menu-button > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--pink-dark); transition: .2s; }

main { overflow: hidden; }
.hero {
  min-height: 650px;
  padding: 80px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 50px;
  background:
    radial-gradient(circle at 78% 28%, rgba(247, 203, 212, .95) 0 16%, transparent 16.2%),
    linear-gradient(135deg, #fff9ed 20%, #fff0f3 100%);
}
.eyebrow { margin: 0 0 9px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--pink-dark); font-size: clamp(38px, 5.4vw, 70px); line-height: 1.2; letter-spacing: .025em; }
.hero h1 span { display: block; color: var(--teal-dark); font-size: .74em; }
.hero-lead { max-width: 650px; margin: 26px 0 0; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  min-height: 48px; padding: 12px 24px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(73, 62, 66, .14); }
.button-primary { color: #fff; background: var(--pink-dark); }
.button-ghost { color: var(--teal-dark); background: #fff; border: 1px solid rgba(76, 158, 151, .28); }
.button-dark { color: #fff; background: var(--teal-dark); }
.hero-visual {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1 / 1;
  margin: auto;
  overflow: hidden;
  background: #fff;
  border: 12px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.hero-visual::before { display: none; }
.hero-visual-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-rabbit { position: absolute; right: 12%; bottom: 12%; font-size: clamp(100px, 12vw, 165px); filter: drop-shadow(0 10px 8px rgba(73, 62, 66, .18)); }
.hero-rabbit span { position: absolute; top: 22%; left: 43%; color: var(--teal-dark); font-size: 25px; }
.counter { position: absolute; left: 7%; right: 7%; bottom: 12%; height: 23%; border-radius: 18px; background: #efbca9; border-top: 12px solid #fff0d7; }
.cake { position: absolute; left: 24%; top: -54px; font-size: 63px; }
.oven { position: absolute; left: 15%; top: 29%; width: 31%; height: 34%; border: 9px solid #ebae9a; border-radius: 20px; background: #fff4e6; }
.oven span { height: 64%; display: grid; place-items: center; color: var(--pink-dark); font-size: 40px; background: #533f44; border-radius: 10px; }
.sparkle { position: absolute; z-index: 3; color: #fff; font-size: 35px; text-shadow: 0 2px 10px var(--gold); }
.s1 { top: 15%; right: 26%; }.s2 { top: 40%; right: 8%; }

.intro-strip {
  width: min(1120px, calc(100% - 40px));
  margin: -40px auto 70px;
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid rgba(188, 102, 124, .14); border-radius: var(--radius); box-shadow: var(--shadow);
}
.intro-strip div { min-height: 140px; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-right: 1px dashed var(--pink); }
.intro-strip div:last-child { border-right: 0; }
.intro-strip span { font-size: 30px; }.intro-strip strong { margin-top: 6px; font-size: 14px; }.intro-strip small { color: var(--muted); font-size: 11px; }

.recipe-section, .howto-section { padding: 80px max(24px, calc((100vw - 1180px) / 2)); }
.section-heading { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.section-heading h2, .request-section h2, .newsletter-section h2, .author-section h2, .learning-section h2, .share-section h2 {
  margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 40px); line-height: 1.35;
}
.section-heading > p:last-child { color: var(--muted); }
.align-left { max-width: none; margin-left: 0; text-align: left; }
.search-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(188, 102, 124, .16);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(100, 70, 76, .07);
}
.search-box { height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 12px; border: 2px solid var(--pink); border-radius: 16px; background: #fffaf8; }
.search-box span { color: var(--pink-dark); font-size: 28px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.filter-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 14px; border: 1px solid #eadbd7; border-radius: 999px; color: var(--muted); background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-chip.active, .filter-chip:hover { color: #fff; border-color: var(--teal); background: var(--teal); }
.status-select { margin-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.status-select select { padding: 8px 28px 8px 12px; border: 1px solid #e9d8d3; border-radius: 10px; color: var(--ink); background: #fff; }
.results-line { margin: 26px 0 14px; color: var(--muted); font-size: 13px; }
.results-line strong { color: var(--pink-dark); font-size: 22px; }
.recipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.recipe-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid rgba(188, 102, 124, .14); border-radius: 20px; box-shadow: 0 8px 22px rgba(100, 70, 76, .07); transition: transform .2s, box-shadow .2s; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--pink-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-number { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 999px; color: #fff; background: rgba(40, 118, 111, .9); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.now-printing { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; color: var(--pink-dark); text-align: center; background: radial-gradient(circle at 50% 37%, #fff 0 17%, transparent 17.3%), linear-gradient(145deg, #fff1f4, #f9eedf); }
.now-printing > span { font-size: 42px; }.now-printing strong { font-family: Georgia, serif; font-size: 17px; line-height: 1.1; letter-spacing: .12em; }.now-printing small { color: var(--muted); font-size: 10px; }
.card-body { padding: 17px; }.card-category { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.card-body h3 { min-height: 47px; margin: 4px 0 12px; font-size: 16px; line-height: 1.45; }
.card-status { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.card-status span { padding: 3px 7px; color: #8f8585; background: #f3f0ed; border-radius: 5px; font-size: 9px; font-weight: 700; }
.card-status span.done { color: var(--teal-dark); background: #dff2ed; }
.card-link { display: flex; align-items: center; justify-content: space-between; color: var(--pink-dark); text-decoration: none; font-size: 12px; font-weight: 800; }
.card-link.disabled { color: #aaa; }.empty-state { padding: 50px; text-align: center; background: #fff; border-radius: var(--radius); }

.howto-section { background: var(--pink-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps article { padding: 30px; position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 22px rgba(100, 70, 76, .06); }
.steps article > span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.steps h3 { margin: 17px 0 5px; color: var(--pink-dark); }.steps p { margin: 0; color: var(--muted); font-size: 13px; }
.request-section, .newsletter-section, .learning-section, .share-section {
  width: min(1120px, calc(100% - 40px)); margin: 70px auto; padding: 42px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: var(--radius);
}
.request-section { background: linear-gradient(115deg, #dcefeb, #fff6ea); }
.request-section > div { max-width: 720px; }.request-section p:not(.eyebrow) { color: var(--muted); }
.newsletter-section { background: var(--pink); }
.newsletter-icon { font-size: 48px; }.newsletter-section > div:nth-child(2) { flex: 1; }.newsletter-section p { margin-bottom: 0; }
.learning-section { color: #fff; background: var(--teal-dark); }
.learning-section > div:first-child { max-width: 620px; }.learning-section h2 { color: #fff; font-size: 26px; }
.learning-section p { margin-bottom: 0; color: #dcefeb; font-size: 13px; }
.mini-label { font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.learning-links { min-width: 270px; display: grid; gap: 8px; }
.learning-links a { padding: 12px 16px; color: var(--teal-dark); background: #fff; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 800; }
.author-box {
  width: min(900px, calc(100% - 40px)); margin: 70px auto; padding: 28px;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 24px;
  background: #fff; border: 1px solid rgba(188, 102, 124, .16); border-radius: 18px; box-shadow: 0 8px 28px rgba(100, 70, 76, .07);
}
.author-box > img { width: 112px; height: 112px; object-fit: cover; border: 1px solid #eadbd7; border-radius: 50%; }
.author-box h2 { margin: 0 0 8px; color: var(--ink); font-size: 24px; }
.author-box p { color: var(--muted); font-size: 13px; }
.author-box .author-name { color: var(--ink); font-size: 15px; font-weight: 800; }
.profile-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-grid > div { padding: 15px; background: var(--cream); border: 1px solid #eadbd7; border-radius: 10px; }
.profile-grid strong { color: var(--teal-dark); font-size: 12px; }
.profile-grid ul { margin: 7px 0 0; padding-left: 20px; color: var(--muted); font-size: 11px; }
.site-footer { padding: 55px 24px; color: #e6dadd; background: #44383c; text-align: center; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 800; }.footer-brand small { display: block; color: var(--pink); font-size: 11px; letter-spacing: .16em; }
.site-footer nav { margin: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }.site-footer nav a { font-size: 12px; }
.site-footer p, .site-footer > small { font-size: 10px; opacity: .75; }

/* Detail page */
.detail-main { overflow: visible; }
.breadcrumb { width: min(1080px, calc(100% - 40px)); margin: 24px auto; display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 11px; }
.breadcrumb a { color: var(--teal-dark); }
.detail-main article { width: min(1080px, calc(100% - 40px)); margin: auto; }
.recipe-hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: 52px; padding: 35px 0 70px; }
.recipe-gallery { width: min(520px, 100%); justify-self: center; }
.recipe-image-frame { position: relative; width: min(460px, 100%); aspect-ratio: 4 / 5; margin: 0 auto; overflow: hidden; background: #fff; border: 12px solid #fff; border-radius: 28px; box-shadow: var(--shadow); }
.recipe-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.recipe-feature-frame { aspect-ratio: 3 / 2; }
.recipe-feature-frame img { object-fit: contain; }
.image-count { position: absolute; right: 15px; bottom: 15px; padding: 5px 10px; color: #fff; background: rgba(68, 56, 60, .8); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.gallery-arrow {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--pink-dark); background: rgba(255, 255, 255, .9); border: 0; border-radius: 50%;
  box-shadow: 0 5px 16px rgba(68, 56, 60, .18); transform: translateY(-50%); cursor: pointer; font-size: 34px; line-height: 1;
}
.gallery-arrow:hover { color: #fff; background: var(--pink-dark); }
.gallery-prev { left: 12px; }.gallery-next { right: 12px; }
.gallery-thumbnails {
  margin-top: 14px; padding: 4px 2px 9px; display: flex; gap: 8px; overflow-x: auto;
  scrollbar-color: var(--pink) transparent; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.gallery-thumb {
  width: 48px; min-width: 48px; height: 64px; padding: 3px; overflow: hidden; background: #fff;
  border: 2px solid transparent; border-radius: 9px; opacity: .58; cursor: pointer; scroll-snap-align: center;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--pink-dark); opacity: 1; }
.recipe-kicker { display: flex; flex-wrap: wrap; gap: 7px; }
.recipe-kicker span { padding: 5px 10px; color: var(--teal-dark); background: #e0f2ed; border-radius: 999px; font-size: 10px; font-weight: 800; }
.recipe-title-block h1 { margin: 18px 0 0; color: var(--pink-dark); font-size: clamp(42px, 5vw, 68px); line-height: 1.2; }
.english-name { margin: 2px 0 24px; color: var(--gold); font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.recipe-lead { color: var(--muted); }
.progress-card { margin: 25px 0; padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid #f0ded9; border-radius: 16px; }
.progress-card div { display: flex; flex-direction: column; text-align: center; border-right: 1px dashed var(--pink); }.progress-card div:last-child { border-right: 0; }
.progress-card strong { color: var(--teal-dark); font-size: 22px; }.progress-card span { color: var(--muted); font-size: 10px; }
.progress-card strong.status-text { font-size: 16px; line-height: 2.2; }
.dvd-jacket { margin: 24px 0 20px; padding: 12px; background: #fff; border: 1px solid #f0ded9; border-radius: 18px; box-shadow: 0 8px 22px rgba(100, 70, 76, .08); }
.dvd-jacket .eyebrow { margin: 0 0 9px; }
.dvd-jacket img { width: min(100%, 360px); height: auto; margin: auto; border-radius: 10px; object-fit: contain; cursor: zoom-in; }
.dvd-jacket img:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.jacket-lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 50px 24px 24px;
  background: rgba(48, 42, 45, .9); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.jacket-lightbox.open { opacity: 1; visibility: visible; }
.jacket-lightbox img { width: auto; max-width: min(1100px, calc(100vw - 48px)); height: auto; max-height: calc(100vh - 74px); object-fit: contain; border-radius: 12px; box-shadow: 0 16px 60px rgba(0, 0, 0, .35); }
.jacket-lightbox-close {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  cursor: pointer; font-size: 27px; line-height: 1;
}
.jacket-lightbox-close:hover, .jacket-lightbox-close:focus-visible { background: var(--pink-dark); }
.jacket-lightbox-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lightbox-open { overflow: hidden; }
.contest-note {
  margin: 0 0 20px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(125deg, #e0f2ed, #fff0f3 55%, #fff5d9); border: 1px solid rgba(76, 158, 151, .2); border-radius: 22px;
}
.contest-note > div:first-child { max-width: 700px; }
.contest-note h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.contest-note p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.contest-badge { display: inline-block; margin-bottom: 10px; padding: 5px 11px; color: #fff; background: var(--pink-dark); border-radius: 999px; font-size: 10px; font-weight: 800; }
.contest-meta { min-width: 245px; padding: 18px; display: grid; gap: 4px; background: rgba(255, 255, 255, .78); border-radius: 14px; }
.contest-meta > span:first-child { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.contest-meta strong { font-size: 14px; }
.contest-hashtag { margin-top: 8px; color: var(--pink-dark); font-size: 11px; font-weight: 800; }
.content-section { padding: 70px 0; border-top: 1px dashed #ddc7c4; }
.video-placeholder {
  width: min(430px, 100%); aspect-ratio: 9 / 16; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; background: linear-gradient(160deg, #40383b, #6b535b); border: 10px solid #fff; border-radius: 28px; box-shadow: var(--shadow);
}
.video-placeholder::before { content: "✦"; font-size: 55px; color: var(--pink); opacity: .7; }
.play-mark { width: 65px; height: 65px; margin: 15px; display: grid; place-items: center; padding-left: 5px; color: var(--pink-dark); background: #fff; border-radius: 50%; }
.video-placeholder strong { font-size: 18px; }.video-placeholder span { color: #e3d4d8; font-size: 11px; }
.published-video { width: min(430px, 100%); margin: auto; }
.published-video video { width: 100%; aspect-ratio: 9 / 16; display: block; object-fit: cover; background: #302a2d; border: 10px solid #fff; border-radius: 28px; box-shadow: var(--shadow); }
.published-video p { margin: 14px 0 0; padding: 14px 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 14px; text-align: center; background: #fff; border: 1px solid #f0ded9; border-radius: 14px; }
.published-video p strong { color: var(--teal-dark); font-size: 12px; }.published-video p span { color: var(--muted); font-size: 11px; }
.video-list { width: min(920px, 100%); margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; align-items: start; }
.storyboard-section { scroll-margin-top: 80px; }
.storyboard-frame { width: min(1000px, 100%); margin: 0 auto; padding: 12px; background: #fff; border: 1px solid #f0ded9; border-radius: 22px; box-shadow: var(--shadow); }
.storyboard-frame img { display: block; width: 100%; height: auto; border-radius: 12px; }
.storyboard-frame figcaption { margin: 10px 4px 0; color: var(--muted); font-size: 11px; text-align: center; }
.prompt-section { scroll-margin-top: 80px; }
.customizer { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--pink-soft); border-radius: 18px 18px 0 0; }
.customizer label { color: var(--pink-dark); font-size: 12px; font-weight: 800; }
.customizer select { width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #e8c8ce; border-radius: 10px; color: var(--ink); background: #fff; }
.prompt-toolbar { padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #fff; background: var(--teal-dark); }
.prompt-toolbar span { font-size: 12px; font-weight: 800; }
.copy-button { padding: 8px 13px; border: 0; border-radius: 8px; color: var(--teal-dark); background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.prompt-output { max-height: 590px; margin: 0; padding: 28px; overflow: auto; white-space: pre-wrap; color: #e9f5f2; background: #302a2d; border-radius: 0 0 18px 18px; font: 12px/1.75 Consolas, monospace; }
.prompt-notes { margin-top: 15px; padding: 14px 18px; background: #fff; border: 1px solid #eadbd7; border-radius: 12px; font-size: 12px; }
.prompt-notes summary { color: var(--pink-dark); cursor: pointer; font-weight: 800; }
.share-section { width: 100%; margin: 20px 0 70px; color: var(--ink); background: var(--pink); }
.share-buttons { min-width: 260px; display: grid; gap: 8px; }
.share-buttons a { padding: 11px 14px; color: #fff; background: #44383c; border-radius: 9px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 800; }
.recipe-pager { width: min(1080px, calc(100% - 40px)); margin: 0 auto 80px; padding-top: 22px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px dashed #ddc7c4; font-size: 12px; }
.recipe-pager a { color: var(--pink-dark); font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 50; padding: 11px 20px; color: #fff; background: #44383c; border-radius: 999px; opacity: 0; transform: translate(-50%, 20px); transition: .2s; pointer-events: none; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Shared affiliate banner and mobile bottom navigation */
.brain-affiliate-banner {
  position: fixed; right: 20px; bottom: 20px; z-index: 65; width: min(360px, calc(100% - 40px));
  padding: 12px 46px 12px 14px; color: var(--ink); background: rgba(255, 249, 237, .98);
  border: 1px solid var(--pink); border-radius: 18px; box-shadow: 0 12px 34px rgba(68, 56, 60, .2);
  opacity: 0; transform: translateY(calc(100% + 32px)); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.brain-affiliate-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.brain-affiliate-link { display: block; color: inherit; text-decoration: none; }
.brain-affiliate-meta { display: flex; align-items: center; gap: 7px; color: var(--teal-dark); font-size: 10px; font-weight: 800; }
.brain-affiliate-pr { padding: 2px 7px; color: #fff; background: var(--teal-dark); border-radius: 999px; letter-spacing: .08em; }
.brain-affiliate-title { margin: 5px 0 7px; color: var(--pink-dark); font-size: 14px; font-weight: 800; line-height: 1.4; }
.brain-affiliate-cta { display: inline-flex; min-height: 32px; padding: 6px 12px; align-items: center; color: #fff; background: var(--pink-dark); border-radius: 999px; font-size: 11px; font-weight: 800; }
.brain-affiliate-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); background: #fff; border: 1px solid #ead6d8; border-radius: 50%; cursor: pointer; font-size: 20px; }
.brain-affiliate-link:focus-visible, .brain-affiliate-close:focus-visible,
.mobile-bottom-nav a:focus-visible, .mobile-bottom-nav button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-menu {
    position: absolute; top: 76px; left: 18px; right: 18px; padding: 18px;
    display: none; align-items: stretch; flex-direction: column; gap: 0;
    background: #fff; border: 1px solid var(--pink); border-radius: 18px; box-shadow: var(--shadow);
  }
  .site-menu.open { display: flex; }
  .site-menu a { padding: 12px 8px; border-bottom: 1px dashed #ead6d8; }
  .site-menu a:last-child { border-bottom: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { grid-row: 2; text-align: center; }.hero-lead { margin-left: auto; margin-right: auto; }.hero-actions { justify-content: center; }
  .hero-visual { grid-row: 1; width: min(360px, 86vw); margin-bottom: 24px; }
  .intro-strip { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .intro-strip div:nth-child(2) { border-right: 0; }.intro-strip div:nth-child(-n+2) { border-bottom: 1px dashed var(--pink); }
  .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request-section, .newsletter-section, .learning-section, .share-section { align-items: stretch; flex-direction: column; }
  .learning-links, .share-buttons { width: 100%; min-width: 0; }
  .recipe-hero { grid-template-columns: 1fr; }.recipe-gallery { margin: auto; }
  .contest-note { align-items: stretch; flex-direction: column; }
  .contest-meta { min-width: 0; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 20px); }
  main h1 { white-space: nowrap; word-break: keep-all; overflow-wrap: normal; letter-spacing: 0; }
  .hero h1 { font-size: clamp(28px, 8vw, 34px); line-height: 1.15; }
  .hero h1 span { margin-top: 12px; }
  .detail-page .breadcrumb { margin: 16px auto 0; }
  .detail-page .recipe-hero { gap: 30px; padding: 20px 0 50px; }
  .detail-page .recipe-title-block h1 { font-size: clamp(26px, 8vw, 32px); line-height: 1.15; }
  .detail-page .recipe-title-block h1.title-medium { font-size: clamp(24px, 7.4vw, 30px); }
  .detail-page .recipe-title-block h1.title-long { font-size: clamp(21px, 6.4vw, 27px); }
  .detail-page .recipe-gallery {
    width: 100%;
    min-width: 0;
  }
  .detail-page .recipe-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    max-height: calc(100svh - 190px);
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
  }
  .detail-page .recipe-image-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 214px);
    object-fit: contain;
    object-position: center;
  }
  .mobile-bottom-nav {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 70;
    height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    color: var(--muted); background: rgba(255, 253, 249, .98); border-top: 1px solid #ead6d8;
    box-shadow: 0 -6px 20px rgba(68, 56, 60, .12);
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button {
    min-width: 0; min-height: 44px; padding: 5px 2px; display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 1px; color: inherit; background: transparent; border: 0; text-decoration: none;
    cursor: pointer; font-size: 9px; font-weight: 800;
  }
  .mobile-bottom-nav .nav-icon { font-size: 18px; line-height: 1.2; }
  .mobile-bottom-nav a.active { color: var(--teal-dark); background: var(--pink-soft); border-radius: 12px; }
  .mobile-bottom-nav a.active::after { content: "表示中"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .brain-affiliate-banner {
    right: 8px; bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 8px); left: 8px;
    width: auto; max-height: 110px; padding: 8px 42px 8px 10px; border-radius: 15px;
  }
  .brain-affiliate-meta { font-size: 9px; }
  .brain-affiliate-title {
    margin: 3px 0 5px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: 12px; line-height: 1.3;
  }
  .brain-affiliate-cta { min-height: 28px; padding: 4px 10px; font-size: 10px; }
  .brain-affiliate-close { top: 7px; right: 7px; width: 32px; height: 32px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 66px; padding: 9px 15px; }.brand-mark { width: 40px; height: 40px; font-size: 23px; }.brand strong { font-size: 15px; }.brand small { font-size: 9px; }
  .site-menu { top: 67px; }
  .hero { padding: 35px 20px 45px; }.hero-lead { font-size: 14px; }.hero-visual { width: min(340px, 86vw); border-width: 8px; }
  .hero-actions .button { width: 100%; }
  .intro-strip { width: calc(100% - 24px); margin-bottom: 40px; }.intro-strip div { min-height: 118px; padding: 15px 7px; }.intro-strip strong { font-size: 12px; }.intro-strip small { font-size: 9px; }
  .recipe-section, .howto-section { padding: 55px 16px; }
  .search-panel { padding: 14px; }.status-select { justify-content: space-between; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-body { padding: 12px; }.card-body h3 { min-height: 42px; font-size: 14px; }.card-status { gap: 3px; }.card-status span { padding: 3px 5px; font-size: 8px; }
  .steps { grid-template-columns: 1fr; }
  .request-section, .newsletter-section, .learning-section, .share-section { width: calc(100% - 24px); margin: 45px auto; padding: 28px 22px; }
  .newsletter-icon { display: none; }
  .author-box { width: calc(100% - 24px); margin: 45px auto; padding: 22px; grid-template-columns: 1fr; }
  .author-box > img { width: 96px; height: 96px; }
  .profile-grid { grid-template-columns: 1fr; }
  .recipe-hero { gap: 30px; padding-bottom: 50px; }
  .contest-note { padding: 24px 20px; }
  .content-section { padding: 50px 0; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 30px; }
  .customizer { grid-template-columns: 1fr; }.prompt-toolbar { align-items: stretch; flex-direction: column; }.copy-button { min-height: 42px; }
  .prompt-output { padding: 18px; font-size: 11px; }
  .recipe-pager { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
