@charset "utf-8";

/* ==========================================================================
   BlissCube LP — クラフトピクセル（1a）
   デザイン意図: 高級感70% / ピクセルアート20% / 一次産業の温かさ10%
   ピクセルは主役にせず、ブランドの独自性を補強する小さな演出として使う。
   ========================================================================== */

:root {
  /* 配色は BlissCube LP.dc.html の実値 */
  --cream:      #F6EFDE;  /* ページ地 */
  --canvas:     #E8DFC9;  /* 一段沈んだ地 */
  --ink:        #503A22;  /* 罫線・文字の主色 */
  --gold:       #A9782F;  /* アクセント */
  --muted:      #7A5A33;  /* 補助文字・リンク */
  --highlight:  #F0C46B;  /* 濃色地の上の強調 */
  --tan:        #C9B68C;  /* 破線・影 */
  --card:       #FBF6E9;  /* カード地 */
  --frame-bg:   #EFE3C8;  /* 画像枠の下地 */
  --dash-bg:    #F1E7CC;  /* 破線枠の下地 */
  --card-shade: #E2D3AE;  /* カードの硬い影 */
  --counter-bg: #F0E4C4;  /* カウンター地 */
  --on-dark:    #E4D6B8;  /* 濃色地の上の本文 */
  --body-ink:   #6B5233;  /* 本文 */

  --font-display: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --font-pixel:   'DotGothic16', ui-monospace, monospace;
  --font-body:    'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;

  --gutter: 48px;
  --maxw: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 20px;
  font-family: var(--font-pixel);
}
.skip-link:focus { left: 0; color: var(--cream); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.container.center { text-align: center; }
.section { padding-block: 72px; }

/* ---------- 見出し・ラベル ---------- */
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--gold);
}
.eyebrow-gold { color: var(--highlight); }
.label {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: .24em;
  color: var(--gold);
}
.label-gold { color: var(--highlight); }
.lead { font-size: 18px; line-height: 2; text-wrap: pretty; }
.body { font-size: 15px; line-height: 1.9; color: var(--body-ink); }
.sub { font-size: 16px; color: var(--muted); }

.section-head {
  display: flex; flex-direction: column; gap: 14px;
  text-align: center; margin-bottom: 48px;
}
.section-head h2 { font-size: 36px; letter-spacing: .06em; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: .12em;
  padding: 13px 26px;
  border: 2px solid var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn-lg { font-size: 18px; padding: 16px 32px; }
.btn-solid  { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--gold); }
.btn-outline{ background: transparent; color: var(--ink); }
.btn-gold   { background: var(--highlight); color: var(--ink); border-color: var(--highlight); box-shadow: 5px 5px 0 var(--gold); }
.btn-solid:hover { color: var(--cream); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-gold:hover { color: var(--ink); }
/* 硬い影を持つボタンは押し込む動き（ピクセル感） */
.btn-solid:active, .btn-gold:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--gold); }

/* ---------- ピクセル区切り ---------- */
.pixel-divider {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px);
}

/* ==========================================================================
   画像スロット
   Claude Design の image-slot ランタイムと同じ配置数式を CSS で再現する。
   ランタイム: k = base * s   (base = cover 相当 = max(fw/iw, fh/ih))
               width = iw*k/fw, height = ih*k/fh, left = 50+x%, top = 50+y%
               + transform: translate(-50%,-50%)
   object-fit:cover が base を担うので、残りは scale(s) と left/top のオフセット。
   ========================================================================== */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--frame-bg);
}
.frame .slot {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}
/* サイドカー .image-slots.state.json の s / x / y をそのまま反映。
   .frame .slot と同じ詳細度(0,2,0)にしないと基底ルールに負けてトリミングが無効になる。 */
.frame .slot-hero      { left: calc(50% + 2.4811%); top: calc(50% - 0.5306%); transform: translate(-50%,-50%) scale(1.0977); }
.frame .slot-ing-egg   { left: calc(50% + 6.6648%); top: calc(50% + 8.3891%); transform: translate(-50%,-50%) scale(1.1333); }
.frame .slot-ing-honey { left: calc(50% - 0.9732%); top: calc(50% - 2.1643%); transform: translate(-50%,-50%) scale(1.0864); }
/* slot-slice / slot-ing-cheese は s=1, x=0, y=0 のため既定のまま */

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.brand img { height: 48px; width: auto; image-rendering: pixelated; }
.site-nav {
  display: flex; gap: 32px; margin-left: auto;
  font-family: var(--font-pixel); font-size: 16px; letter-spacing: .18em;
}
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--gold); }
.header-cta { font-size: 16px; padding: 12px 24px; box-shadow: 4px 4px 0 var(--gold); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 3px; margin: 3px auto;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero-rule {
  position: absolute; inset: 14px;
  border: 2px dashed var(--tan);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr 480px; gap: 48px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.hero-copy .eyebrow { font-size: 17px; letter-spacing: .28em; }
.hero-copy h1 { font-size: 46px; font-weight: 800; line-height: 1.4; letter-spacing: .02em; }
.hero-copy .lead { max-width: 34em; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

.support-chip {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 10px;
  font-family: var(--font-pixel);
}
.support-chip-label { font-size: 14px; letter-spacing: .2em; color: var(--muted); }
.digit-chip {
  font-size: 30px; letter-spacing: .1em;
  background: var(--ink); color: var(--highlight);
  padding: 4px 14px;
}

.hero-visual { position: relative; }
.frame-hero {
  width: 480px; height: 440px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--tan);
}
.serial-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--cream); border: 2px solid var(--ink);
  padding: 10px 18px;
  font-family: var(--font-pixel); font-size: 15px; letter-spacing: .1em;
  box-shadow: 4px 4px 0 var(--ink);
  animation: floaty 4s ease-in-out infinite;
}
.serial-badge strong { color: var(--gold); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==========================================================================
   CONCEPT
   ========================================================================== */
.concept .container { display: flex; flex-direction: column; gap: 20px; }
.concept h2 { font-size: 34px; line-height: 1.6; letter-spacing: .04em; }

/* ==========================================================================
   INGREDIENTS
   ========================================================================== */
.ing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ing-card {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 5px 5px 0 var(--card-shade);
}
.frame-ing {
  width: 100%; height: 150px;
  border: 2px dashed var(--tan);
  background: var(--dash-bg);
}
.ing-card .label { margin-top: 12px; }
.ing-card h3 { font-size: 21px; line-height: 1.6; }

/* ==========================================================================
   PRODUCT / PRICE
   ========================================================================== */
.product-panel {
  border: 3px solid var(--ink);
  background: var(--ink); color: var(--cream);
  display: grid; grid-template-columns: 460px 1fr;
}
.frame-slice { min-height: 420px; border-right: 3px solid var(--cream); background: var(--ink); }
.product-info {
  padding: 48px;
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.product-info h2 { font-size: 32px; line-height: 1.6; }
.product-info .body { color: var(--on-dark); font-size: 16px; line-height: 2; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.price-figure { font-family: var(--font-pixel); font-size: 44px; color: var(--highlight); }
.price-note { font-size: 15px; color: var(--tan); }
.tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-pixel); font-size: 14px; letter-spacing: .1em;
  border: 1px solid var(--gold); padding: 6px 12px; color: var(--highlight);
}
.product-info .btn { align-self: flex-start; margin-top: 10px; }

/* ==========================================================================
   WHY IT SUPPORTS PRODUCERS
   ========================================================================== */
.cycle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.cycle-step {
  padding: 36px 32px;
  border-right: 2px solid var(--ink);
  display: flex; flex-direction: column; gap: 10px;
}
.cycle-step:last-child { border-right: 0; }
.cycle-step.is-filled { background: var(--card); }
.step-num { font-family: var(--font-pixel); font-size: 30px; color: var(--gold); }
.cycle-step h3 { font-size: 24px; }

/* ==========================================================================
   SUPPORT COUNT
   ========================================================================== */
.counter-box {
  border: 3px solid var(--ink);
  background: var(--counter-bg);
  padding: 56px 48px;
  text-align: center;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.counter-box h2 { font-size: 32px; }
.digit-panel { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.digit-panel span {
  font-family: var(--font-pixel); font-size: 72px; line-height: 1;
  background: var(--ink); color: var(--highlight);
  padding: 18px 20px; border: 2px solid var(--ink);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .35);
}
.counter-caption {
  font-family: var(--font-pixel); font-size: 16px; letter-spacing: .16em; color: var(--muted);
}

/* ==========================================================================
   GIFT + FIRST RELEASE
   ========================================================================== */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gift-card {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 40px;
  display: flex; flex-direction: column; gap: 14px;
}
.gift-card h3 { font-size: 25px; line-height: 1.6; }
.gift-card .btn { align-self: flex-start; }
.gift-card-dark { background: var(--ink); color: var(--cream); }
.gift-card-dark .body { color: var(--on-dark); }
.gift-card-dark .btn-gold { box-shadow: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details { border: 2px solid var(--ink); background: var(--card); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: '+';
  font-family: var(--font-pixel); font-size: 20px; color: var(--gold);
  flex: 0 0 auto;
}
.faq-list details[open] summary::before { content: '−'; }
.faq-list details > .body { padding: 0 24px 22px 58px; }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { border-top: 3px solid var(--ink); }
.footer-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 28px var(--gutter);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-pixel); font-size: 13px; letter-spacing: .14em; color: var(--muted);
}
.sns { display: flex; gap: 14px; align-items: center; }
.sns a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 2px solid var(--ink); color: var(--ink);
}
.sns a:hover { background: var(--ink); color: var(--cream); }
.footer-links { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; }

/* ==========================================================================
   トースト（仮URL・未収録ページのクリックを受け止める）
   ブラウザの alert() だと商談中に OS ダイアログが出るため、ページ内で完結させる。
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 16px);
  max-width: min(620px, calc(100vw - 32px));
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--gold);
  padding: 14px 22px;
  font-size: 14px; line-height: 1.7;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   スクロール演出（初期状態は JS が付与する。JS 無効なら常に表示）
   ========================================================================== */
[data-reveal].is-armed { opacity: 0; transform: translateY(30px); }
[data-reveal].is-revealed {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}

/* ==========================================================================
   中間幅（タブレット）
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --gutter: 36px; }
  .hero-inner { grid-template-columns: 1fr 400px; gap: 36px; }
  .frame-hero { width: 100%; height: 380px; }
  .hero-copy h1 { font-size: 40px; }
  .product-panel { grid-template-columns: 380px 1fr; }
  .product-info { padding: 40px; }
  .digit-panel span { font-size: 56px; padding: 14px 16px; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .frame-hero { height: 340px; }
  .hero-copy h1 { font-size: 36px; }
  .ing-grid { grid-template-columns: 1fr 1fr; }
  .product-panel { grid-template-columns: 1fr; }
  .frame-slice { min-height: 320px; border-right: 0; border-bottom: 3px solid var(--cream); }
  .cycle-grid { grid-template-columns: 1fr; }
  .cycle-step { border-right: 0; border-bottom: 2px solid var(--ink); }
  .cycle-step:last-child { border-bottom: 0; }
  .gift-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 30px; }
}

/* ==========================================================================
   スマホ（デザインのスマホ版 390px に合わせる）
   ========================================================================== */
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .section { padding-block: 36px; }

  /* ヘッダー: ハンバーガー */
  .header-inner { padding: 16px var(--gutter); gap: 12px; }
  .brand img { height: 32px; }
  .nav-toggle { display: block; order: 3; }
  .header-cta { order: 2; margin-left: auto; font-size: 13px; padding: 9px 14px; box-shadow: none; }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column; gap: 0;
    margin-left: 0;
    display: none;
    border-top: 2px solid var(--ink);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 2px dashed var(--tan); }
  .site-nav a:last-child { border-bottom: 0; }

  /* ヒーロー */
  .hero { padding: 28px 0 8px; }
  .hero-rule { display: none; }
  .hero-inner { gap: 16px; }
  .hero-copy { gap: 16px; }
  .hero-copy .eyebrow { font-size: 12px; letter-spacing: .24em; }
  .hero-copy h1 { font-size: 28px; line-height: 1.55; }
  .hero-copy .lead { font-size: 14px; line-height: 1.9; }
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 4px; }
  .hero-actions .btn { text-align: center; font-size: 16px; padding: 16px; }
  .btn-solid { box-shadow: 4px 4px 0 var(--gold); }
  /* inline-flex のままだと幅が内容ぴったりで justify-content が効かない */
  .support-chip { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
  .support-chip-label { font-size: 12px; letter-spacing: .16em; }
  .digit-chip { font-size: 22px; padding: 3px 10px; }
  .hero-visual { max-width: none; margin-top: 8px; }
  .frame-hero { width: 100%; height: 250px; border-width: 2px; box-shadow: 5px 5px 0 var(--tan); }
  .serial-badge { bottom: -14px; left: auto; right: -6px; padding: 7px 12px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }
  /* スマホ用トリミング（hero-1a-sp: s=1, x=0, y=-16.3742） */
  .frame .slot-hero { left: 50%; top: calc(50% - 16.3742%); transform: translate(-50%, -50%) scale(1); }

  .pixel-divider { height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px); }

  /* 見出し */
  .section-head { gap: 10px; margin-bottom: 24px; }
  .section-head h2 { font-size: 23px; }
  .eyebrow { font-size: 12px; letter-spacing: .26em; }
  .concept h2 { font-size: 22px; }
  .concept .lead { font-size: 15px; }

  /* 素材: 横並びリスト */
  .ing-grid { grid-template-columns: 1fr; gap: 14px; }
  /* サムネ左・右にラベルと商品名を縦積み（デザインのスマホ版と同じ組み） */
  .ing-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: 'thumb label' 'thumb title';
    align-content: center;
    column-gap: 14px; row-gap: 4px;
    padding: 14px; box-shadow: none;
  }
  .frame-ing { grid-area: thumb; width: 86px; height: 86px; align-self: center; }
  .ing-card .label { grid-area: label; align-self: end; margin-top: 0; font-size: 11px; letter-spacing: .2em; }
  .ing-card h3 { grid-area: title; align-self: start; font-size: 16px; line-height: 1.5; }
  .ing-card .body { display: none; }
  /* スマホ用画像は既に個別トリミング済みのため等倍で置く */
  .frame .slot-ing-egg,
  .frame .slot-ing-honey { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1); }

  /* 商品 */
  .product-info { padding: 24px 20px; gap: 12px; }
  .product-info h2 { font-size: 20px; }
  .product-info .body { font-size: 14px; line-height: 1.9; }
  .frame-slice { min-height: 190px; }
  .price-figure { font-size: 32px; }
  .price-note { font-size: 12px; }
  .product-info .btn { align-self: stretch; text-align: center; font-size: 15px; padding: 14px; }

  /* 循環 */
  .cycle-step { padding: 24px 20px; }
  .cycle-step h3 { font-size: 20px; }

  /* カウンター */
  .counter-box { padding: 32px 20px; gap: 12px; border-width: 2px; }
  .counter-box h2 { font-size: 20px; }
  /* 6桁だと 320px 幅で枠から溢れるため、字送りをビューポート連動にする。
     余白と影も em にして、桁数が変わっても比率が崩れないようにする。 */
  .digit-panel { gap: 0.15em; font-size: clamp(26px, 9.5vw, 40px); }
  .digit-panel span {
    font-size: inherit;
    padding: 0.25em 0.3em;
    border: 0;
    box-shadow: inset 0 -0.1em 0 rgba(0, 0, 0, .35);
  }
  .counter-caption { font-size: 12px; letter-spacing: .12em; }

  /* ギフト */
  .gift-card { padding: 24px 20px; }
  .gift-card h3 { font-size: 20px; }
  .gift-card .btn { align-self: stretch; text-align: center; }

  /* FAQ */
  .faq-list summary { font-size: 16px; padding: 16px 18px; }
  .faq-list details > .body { padding: 0 18px 18px 46px; }

  /* フッター */
  .footer-inner { flex-direction: column; align-items: center; gap: 12px; padding: 18px var(--gutter); font-size: 11px; }
  .footer-links { margin-left: 0; justify-content: center; gap: 14px; text-align: center; }
}

/* ==========================================================================
   演出を控える設定
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .serial-badge { animation: none; }
  [data-reveal].is-armed { opacity: 1; transform: none; }
}
