/* =========================================================
   ぴーなっつかふぇ（架空店・デモ）
   つづくウェブ 制作サンプル
   参考サイトの世界観（モノクロ＋差し色・グレイン質感・手描き
   アウトライン・遊びのある太ゴシック）をもとに再構築。
   文章・イラスト・写真はオリジナル。
   ========================================================= */

:root {
  --ink:      #23201b;
  --paper:    #f0e8d6;
  --paper2:   #e8dcc3;
  --paper3:   #f7f1e4;
  --accent:   #b23a2a;   /* 焙煎レッド（差し色1色） */
  --accent-d: #8f2c20;
  --line:     #23201b;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --body:   "Noto Sans JP", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.95;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* フィルムグレイン */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(90%, var(--wrap)); margin-inline: auto; position: relative; z-index: 2; }
.wrap-narrow { width: min(88%, 720px); margin-inline: auto; position: relative; z-index: 2; }

h1, h2, h3 { font-family: var(--gothic); font-weight: 900; margin: 0; line-height: 1.5; }

/* 手描きの揺れ（SVGフィルタ #rough をHTML側に置く） */
.hd { filter: url(#rough); }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(3px);
}
.brand { font-family: var(--gothic); font-weight: 900; font-size: clamp(18px, 2.4vw, 23px); letter-spacing: .18em; }
.brand .dot { color: var(--accent); }
.menu-btn { display: inline-flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 30px; height: 3px; background: var(--ink); border-radius: 2px; }

/* オーバーレイナビ */
.nav-overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.nav-overlay::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)' opacity='0.35'/%3E%3C/svg%3E");
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a { position: relative; z-index: 2; font-family: var(--gothic); font-weight: 900; font-size: 26px; letter-spacing: .16em; padding: 8px 0; }
.nav-overlay a small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--accent); text-align: center; font-weight: 700; }
.nav-overlay a:hover { color: var(--accent); }
.nav-close { position: fixed; top: 22px; right: 26px; z-index: 3; background: none; border: none; font-family: var(--gothic); font-weight: 900; font-size: 20px; letter-spacing: .1em; cursor: pointer; }

/* ===== 手描きパーツ ===== */
.hd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--gothic); font-weight: 900; font-size: 17px; letter-spacing: .12em;
  padding: 20px 44px; cursor: pointer; background: var(--paper3); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 62% 38% 58% 42% / 55% 52% 48% 45%;
  transition: background .2s, color .2s, transform .2s;
}
.hd-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-1deg); }
.hd-btn.solid { background: var(--accent); color: #fff; border-color: var(--ink); }
.hd-btn.solid:hover { background: var(--accent-d); }

.hd-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--gothic); font-weight: 700; font-size: 14px; letter-spacing: .08em;
  padding: 10px 22px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper3);
}
.hd-pill.accent { background: var(--accent); color: #fff; border-color: var(--ink); }

.hd-badge {
  display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--gothic); font-weight: 900;
  font-size: 17px; letter-spacing: .08em; transform: rotate(-8deg); text-align: center; line-height: 1.4;
}

/* 手描き枠（画像用・SVGフィルタで輪郭を手描き風に揺らす。文字は歪めない） */
.hd-frame { border: 3px solid var(--ink); border-radius: 64% 36% 40% 60% / 52% 60% 40% 48%; overflow: hidden; background: var(--paper3); filter: url(#rough); }
.hd-frame.ph { display: grid; place-items: center; aspect-ratio: 4/3; }
.hd-frame.ph span { font-family: var(--gothic); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: #b0a58f; }
.hd-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ===== ヒーロー ===== */
.hero { padding: clamp(20px, 4vw, 46px) 0 clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .eyebrow { font-family: var(--gothic); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--accent); margin-bottom: 18px; }
.hero-copy h1 { font-size: clamp(34px, 6.4vw, 60px); letter-spacing: .04em; line-height: 1.35; }
.hero-copy h1 .lg { font-size: 1.28em; }
.hero-copy h1 .ac { color: var(--accent); }
.hero-copy h1 .u { border-bottom: 6px solid var(--accent); padding-bottom: 2px; }
.hero-lead { margin: 26px 0 32px; font-size: 15.5px; }
.hero-note { margin-top: 16px; font-family: var(--gothic); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-illust { width: min(78%, 340px); }
.hero-illust img { width: 100%; }
.hero-visual .float-coffee { position: absolute; right: 2%; top: 4%; width: 22%; transform: rotate(8deg); }
.hero-visual .float-bread { position: absolute; left: 0; bottom: 2%; width: 30%; transform: rotate(-6deg); }

/* ===== セクション ===== */
.section { padding: clamp(52px, 8vw, 96px) 0; position: relative; }
.section.tone { background: var(--paper2); }
.section.dark { background: var(--ink); color: var(--paper); }

/* 見出し */
.head { text-align: center; margin-bottom: 40px; }
.head .en { font-family: var(--gothic); font-weight: 700; font-size: 13px; letter-spacing: .28em; color: var(--accent); display: block; margin-bottom: 12px; }
.head h2 { font-size: clamp(26px, 4.4vw, 40px); letter-spacing: .06em; }
.head .en.on-dark, .section.dark .head .en { color: #e6a99b; }

/* ===== コンセプト ===== */
.concept { text-align: center; }
.concept .big { font-family: var(--gothic); font-weight: 900; font-size: clamp(24px, 4.6vw, 40px); letter-spacing: .06em; line-height: 1.7; margin-bottom: 24px; }
.concept .big .ac { color: var(--accent); }
.concept p { font-size: 15px; line-height: 2.2; }

/* ===== おすすめ商品 ===== */
.feature-item { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-item .media { position: relative; }
.feature-item .media .hd-frame { aspect-ratio: 1; }
.feature-item .media .hd-badge { position: absolute; left: -14px; top: -18px; z-index: 3; }
.feature-body .label-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.feature-body .name { font-family: var(--gothic); font-weight: 900; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: .06em; }
.feature-body .catch { font-family: var(--gothic); font-weight: 900; font-size: 19px; color: var(--accent); margin: 6px 0 14px; letter-spacing: .04em; }
.feature-body p { font-size: 14.5px; line-height: 2.1; margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== メニュー抜粋 ===== */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.menu-card { text-align: center; }
.menu-card .hd-frame { aspect-ratio: 4/3; margin-bottom: 16px; }
.menu-card h3 { font-family: var(--gothic); font-weight: 900; font-size: 19px; letter-spacing: .06em; }
.menu-card .yen { font-family: var(--gothic); font-weight: 700; color: var(--accent); font-size: 15px; margin-top: 4px; }
.menu-card p { font-size: 13px; color: #6b6157; margin: 8px 0 0; }

/* ===== お知らせ / 掲載 ===== */
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.news-list { }
.news-row { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 15px 4px; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 40%, transparent); }
.news-row time { font-family: var(--gothic); font-weight: 700; font-size: 14px; color: var(--accent); }
.news-row p { margin: 0; font-size: 14px; }

/* ===== アクセス / SHOP ===== */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 54px); align-items: start; }
.shop-media .hd-frame { aspect-ratio: 4/3; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 15px 4px; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 40%, transparent); font-size: 14.5px; }
.info-table th { width: 96px; font-family: var(--gothic); font-weight: 900; color: var(--accent); letter-spacing: .04em; }

/* ===== CTA ===== */
.cta { text-align: center; }
.cta h2 { font-size: clamp(24px, 4vw, 36px); letter-spacing: .06em; margin-bottom: 14px; }
.cta p { margin: 0 0 28px; font-size: 15px; }

/* ===== フォーム ===== */
.form { max-width: 680px; margin-inline: auto; }
.demo-lock { background: var(--accent); color: #fff; font-family: var(--gothic); font-weight: 700; font-size: 13.5px; text-align: center; padding: 13px 18px; border: 3px solid var(--ink); border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; margin-bottom: 26px; }
.f-row { margin-bottom: 20px; }
.f-row label { display: block; font-family: var(--gothic); font-weight: 700; font-size: 14px; margin-bottom: 8px; letter-spacing: .04em; }
.f-row label .req { color: var(--accent); font-size: 11px; margin-left: 8px; }
.f-row input, .f-row select, .f-row textarea { width: 100%; padding: 13px 15px; border: 2.5px solid var(--ink); border-radius: 12px; font-family: var(--body); font-size: 15px; background: var(--paper3); color: var(--ink); }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-color: var(--accent); }
.f-hp { position: absolute; left: -9999px; }

/* ===== デモ帯 ===== */
.demo-band { background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .04em; text-align: center; padding: 8px 14px; position: relative; z-index: 50; }
.demo-band strong { color: #e6a99b; font-weight: 700; }
.demo-band a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* ===== フッター ===== */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 28px; position: relative; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand .fb-name { font-family: var(--gothic); font-weight: 900; font-size: 26px; letter-spacing: .16em; }
.footer-brand .fb-name .dot { color: #e6a99b; }
.footer-brand p { font-size: 13px; color: #c6b9a4; margin: 12px 0 0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.footer-nav a { font-family: var(--gothic); font-weight: 700; font-size: 14px; letter-spacing: .04em; padding: 4px 0; }
.footer-nav a:hover { color: #e6a99b; }
.footer-demo { margin-top: 40px; padding-top: 20px; border-top: 2px dotted #4a4238; font-size: 11.5px; line-height: 1.9; color: #b3a690; text-align: center; }
.footer-demo a { color: #e6a99b; text-decoration: underline; }

/* ===== ピーナッツのキャラクター ===== */
.peanut-char { position: relative; cursor: pointer; }
.peanut-svg { width: 100%; display: block; overflow: visible; transform-origin: 50% 92%; animation: pn-breathe 4.2s ease-in-out infinite; }
.peanut-face .cheek { fill: var(--accent); opacity: .42; }
.peanut-face .eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: pn-blink 4.6s infinite; }
.mouth-open { fill: #4a241d; opacity: 0; transform-box: fill-box; transform-origin: center; }

@keyframes pn-breathe { 0%,100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(1.6deg) translateY(-4px); } }
@keyframes pn-blink { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }

/* しゃべる（ホバー / フォーカス / タップ） */
.peanut-char:hover .peanut-svg,
.peanut-char:focus-visible .peanut-svg,
.peanut-char.talking .peanut-svg { animation: pn-bob .5s ease-in-out infinite; }
.peanut-char:hover .mouth-smile,
.peanut-char:focus-visible .mouth-smile,
.peanut-char.talking .mouth-smile { opacity: 0; }
.peanut-char:hover .mouth-open,
.peanut-char:focus-visible .mouth-open,
.peanut-char.talking .mouth-open { opacity: 1; animation: pn-talk .24s ease-in-out infinite; }
@keyframes pn-bob { 0%,100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-9px); } }
@keyframes pn-talk { 0%,100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }

/* 吹き出し */
.speech {
  position: absolute; z-index: 6; top: 3%; right: -8%;
  background: var(--paper3); border: 3px solid var(--ink);
  border-radius: 62% 38% 58% 42% / 62% 55% 45% 38%;
  padding: 11px 20px; font-family: var(--gothic); font-weight: 900; font-size: 15px; letter-spacing: .04em;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: scale(.4) rotate(-6deg); transform-origin: bottom left;
  transition: opacity .18s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.speech::after {
  content: ""; position: absolute; left: 20px; bottom: -13px; width: 15px; height: 15px;
  background: var(--paper3); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(38deg);
}
.peanut-char:hover .speech,
.peanut-char:focus-visible .speech,
.peanut-char.talking .speech { opacity: 1; transform: scale(1) rotate(-3deg); }

@media (prefers-reduced-motion: reduce) {
  .peanut-svg { animation: none; }
  .peanut-char:hover .peanut-svg, .peanut-char.talking .peanut-svg { animation: none; }
  .peanut-face .eye { animation: none; }
  .peanut-char:hover .mouth-open, .peanut-char.talking .mouth-open { animation: none; }
}

/* ===== reveal ===== */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== 下層ページ ===== */
.page-hero { padding: clamp(28px,5vw,52px) 0 clamp(22px,4vw,38px); text-align: center; position: relative; }
.page-hero .crumb { font-family: var(--gothic); font-weight: 700; font-size: 12px; letter-spacing: .06em; color: #8a7f6c; margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero .en { font-family: var(--gothic); font-weight: 700; font-size: 13px; letter-spacing: .28em; color: var(--accent); display: block; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(30px,6vw,50px); letter-spacing: .05em; }
.page-hero h1 .ac { color: var(--accent); }
.page-hero .peanut-mini { width: 54px; margin: 0 auto 12px; }
.page-lead { text-align: center; font-size: 15px; line-height: 2.1; }

/* メニュー：カテゴリ＋価格リスト */
.menu-cat { text-align: center; margin: 0 0 24px; }
.menu-cat .pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--gothic); font-weight: 900; font-size: 18px; letter-spacing: .08em; padding: 10px 28px; border: 3px solid var(--ink); border-radius: 58% 42% 55% 45% / 60% 55% 45% 40%; background: var(--paper3); }
.price-list { max-width: 640px; margin: 0 auto; }
.price-list .row { display: flex; align-items: baseline; gap: 12px; padding: 13px 4px; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 38%, transparent); }
.price-list .row .nm { font-family: var(--gothic); font-weight: 700; font-size: 15.5px; }
.price-list .row .ds { font-size: 12px; color: #7a7060; margin-left: 8px; font-family: var(--body); font-weight: 400; }
.price-list .row .dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 28%, transparent); transform: translateY(-5px); }
.price-list .row .pr { font-family: var(--gothic); font-weight: 900; color: var(--accent); white-space: nowrap; }
.allergy { max-width: 640px; margin: 30px auto 0; font-size: 12.5px; line-height: 1.9; color: #7a7060; background: var(--paper3); border: 2.5px dashed var(--accent); border-radius: 16px; padding: 16px 22px; }

/* About：粒ストーリー */
.grain { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,54px); align-items: center; margin-bottom: clamp(36px,6vw,72px); }
.grain:last-child { margin-bottom: 0; }
.grain.rev .grain-media { order: 2; }
.grain-media .hd-frame { aspect-ratio: 4/3; }
.grain-no { display: inline-flex; align-items: center; gap: 10px; font-family: var(--gothic); font-weight: 900; color: var(--accent); font-size: 15px; letter-spacing: .06em; margin-bottom: 12px; }
.grain-no .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2.5px solid var(--accent); border-radius: 60% 40% 55% 45% / 55% 50% 45% 50%; }
.grain h3 { font-size: clamp(20px,2.8vw,27px); letter-spacing: .05em; line-height: 1.6; margin-bottom: 14px; }
.grain p { font-size: 14.5px; line-height: 2.1; }

/* 情報の吹き出しメモ */
.note-bubble { max-width: 640px; margin: 0 auto; background: var(--paper3); border: 3px solid var(--ink); border-radius: 40% 60% 45% 55% / 55% 45% 55% 45%; padding: 22px 28px; font-size: 14px; line-height: 2; }
.note-bubble h3 { font-family: var(--gothic); font-weight: 900; font-size: 17px; margin-bottom: 8px; letter-spacing: .04em; }

@media (max-width: 880px) {
  .grain { grid-template-columns: 1fr; gap: 22px; }
  .grain.rev .grain-media { order: 0; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; }
  .hero-illust { width: min(56%, 250px); }
  .feature-item { grid-template-columns: 1fr; gap: 28px; }
  .feature-item .media { max-width: 340px; margin-inline: auto; }
  .menu-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .news-cols { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
}

/* =========================================================
   スマホ固定CTA（≤900px）
   ========================================================= */
.sp-cta{display:none}
@media (max-width:900px){
  .sp-cta{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:120;
    gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    transform:translateY(120%);transition:transform .38s cubic-bezier(.22,.61,.36,1);
  }
  .sp-cta.show{transform:translateY(0)}
  .sp-cta a{
    display:inline-flex;align-items:center;justify-content:center;gap:6px;
    height:54px;border-radius:999px;text-decoration:none;
    font-weight:700;font-size:15px;letter-spacing:.02em;
  }
  .sp-cta a svg{width:19px;height:19px;flex:none}
  .sp-cta-tel{flex:0 0 33%}
  .sp-cta-main{flex:1 1 auto}
  body{padding-bottom:78px}
}

@media (max-width:900px){
  .sp-cta{background:rgba(247,241,228,.96);border-top:2.5px solid var(--ink)}
  .sp-cta-tel{background:var(--paper3);color:var(--ink);border:2.5px solid var(--ink)}
  .sp-cta-main{background:var(--accent);color:#fff;border:2.5px solid var(--ink)}
}

/* ピーナッツ／注意アイコン（絵文字の置き換え） */
.ic-nut { width: 19px; height: 19px; flex: none; vertical-align: -4px; margin-right: 6px; color: var(--accent); }
.ic-warn { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.eyebrow .ic-nut { width: 18px; height: 18px; }
.menu-cat .pill .ic-nut { width: 18px; height: 18px; vertical-align: -3px; }
