/* ===== 食図鑑タウン — ポップ × 水彩 ===== */
:root {
  --bg: #FFFDF8;
  --bg-tint: #F3F6EE;
  --ink: #4A3A2A;
  --ink-soft: #8A7A66;
  --green: #3D5A3E;
  --leaf: #6E9D6A;
  --leaf-soft: #E7F0E4;
  --persim: #E8862E;        /* ポップに少し鮮やかな柿 */
  --persim-soft: #FBEBD6;
  --berry: #E0556B;         /* アクセント(さくらんぼ) */
  --sky: #4E9FD0;
  --sun: #F2B53A;
  --card: #FFFFFF;
  --line: #ECE3D3;
  --shadow: 0 8px 24px rgba(74, 58, 42, 0.08);
  --shadow-pop: 0 12px 30px rgba(74, 58, 42, 0.14);
  --radius: 20px;
  --wrap: 1120px;
  --head-font: "UD デジタル 教科書体 NK-B", "Yu Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --body-font: "BIZ UDPゴシック", "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); color: var(--ink); background: var(--bg); line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== ボタン ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border-radius: 999px; font-family: var(--head-font); font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.06rem; }
.btn-primary { background: var(--persim); color: #fff; box-shadow: 0 10px 22px rgba(232,134,46,0.32); }
.btn-primary:hover { background: #d4761f; }
.btn-ghost { background: #fff; color: var(--green); box-shadow: var(--shadow); }

/* ===== ヘッダー ===== */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head-font); }
.brand-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-text { font-size: 1.15rem; font-weight: 700; color: var(--green); display: flex; align-items: baseline; gap: 6px; }
.brand-text small { font-size: 0.72rem; color: var(--persim); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.2s; }
.site-nav a:hover { color: var(--green); }
.nav-cta { background: var(--green); color: #fff !important; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.86rem !important; }
.nav-cta:hover { background: #314a32; }

/* ===== ヒーロー（ポップ） ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 56px;
  background:
    radial-gradient(680px 360px at 88% 0%, rgba(242,181,58,0.22), transparent 60%),
    radial-gradient(720px 420px at 6% 30%, var(--leaf-soft), transparent 64%),
    radial-gradient(600px 380px at 60% 100%, rgba(224,85,107,0.10), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-block; font-size: 0.84rem; color: #fff; font-weight: 700; background: var(--berry); padding: 6px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(224,85,107,0.3); }
.hero-title { font-family: var(--head-font); font-weight: 700; color: var(--green); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.22; margin-top: 20px; letter-spacing: 0.01em; }
.hero-title .hl { color: var(--persim); position: relative; }
.hero-title .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 28%; background: rgba(242,181,58,0.4); border-radius: 6px; z-index: -1; }
.hero-lead { margin-top: 22px; font-size: clamp(1rem, 2vw, 1.16rem); color: var(--ink); max-width: 30em; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { position: relative; }
.hero-char { position: absolute; z-index: 2; width: 90px; filter: drop-shadow(0 8px 12px rgba(74,58,42,0.18)); pointer-events: none; }
.hero-char-1 { top: -64px; right: 6%; animation: float 5s ease-in-out infinite; }
.hero-char-2 { bottom: -40px; left: -10px; width: 78px; animation: float 6s ease-in-out infinite 1s; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.hstat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; text-align: center; }
.hstat-num { display: block; font-family: var(--head-font); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--persim); }
.hstat:nth-child(2) .hstat-num { color: var(--leaf); }
.hstat:nth-child(3) .hstat-num { color: var(--berry); }
.hstat:nth-child(4) .hstat-num { color: var(--sky); }
.hstat-label { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); }

/* ===== セクション ===== */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: linear-gradient(160deg, #3D5A3E, #2c4530); color: #fff; }
.section-title { font-family: var(--head-font); font-weight: 700; color: var(--green); font-size: clamp(1.7rem, 3.6vw, 2.4rem); text-align: center; }
.section-title.light { color: #fff; }
.section-sub { text-align: center; color: var(--ink-soft); margin-top: 12px; font-size: 1.02rem; }
.section-sub.light { color: #D8E5D4; }

/* ===== カテゴリグリッド（ポップなタイル） ===== */
.cat-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile { position: relative; border: none; cursor: pointer; border-radius: 18px; padding: 18px 10px 14px; text-align: center; background: var(--tile, #f4f0e8); color: #fff; box-shadow: var(--shadow); transition: transform 0.16s, box-shadow 0.2s; overflow: hidden; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.cat-tile.active { outline: 3px solid #fff; outline-offset: -3px; box-shadow: var(--shadow-pop); }
.cat-icon { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)); }
.cat-emoji { font-size: 2.2rem; line-height: 1; }
.cat-name { display: block; font-family: var(--head-font); font-weight: 700; font-size: 0.92rem; margin-top: 8px; }
.cat-count { display: block; font-size: 0.7rem; opacity: 0.92; margin-top: 2px; }
.cat-prodbadge { position: absolute; top: 8px; right: 8px; background: #fff; color: var(--ink); font-size: 0.64rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }

/* ===== 商品ディスカバリー ===== */
.discover-products { margin-top: 48px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dp-title { font-family: var(--head-font); font-weight: 700; color: var(--green); font-size: 1.3rem; }
.chip-clear { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 6px 16px; font-size: 0.82rem; cursor: pointer; }
.chip-clear:hover { color: var(--green); border-color: var(--leaf); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform 0.16s, box-shadow 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.product-img { aspect-ratio: 4 / 3; background: var(--leaf-soft) center/cover no-repeat; position: relative; }
.product-cat { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; background: var(--leaf); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.product-voicebadge { position: absolute; bottom: 10px; right: 10px; background: var(--berry); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.product-avatar { position: absolute; bottom: -16px; left: 12px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid #fff; background: var(--leaf-soft); box-shadow: var(--shadow); }
.product-card .product-body { padding-top: 22px; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-name { font-family: var(--head-font); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.product-by { font-size: 0.8rem; color: var(--ink-soft); }
.product-desc { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 地図（青葉区SVG） ===== */
.map-board { position: relative; width: 100%; max-width: 900px; margin: 40px auto 0; aspect-ratio: 1000 / 814; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-pop); border: 3px solid #fff; outline: 1px solid var(--line);
  background: radial-gradient(130% 100% at 50% -10%, #EAF3F7 0%, #EEF4E6 45%, #F3F6EE 100%); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.map-deco { position: absolute; inset: 0; pointer-events: none; }
.md { position: absolute; opacity: 0.92; filter: drop-shadow(0 4px 6px rgba(74,58,42,0.12)); }
.md-cloud { width: 13%; opacity: 0.55; animation: drift 26s linear infinite; filter: none; }
.md-3 { left: 9%; top: 5%; }
.md-4 { right: 12%; top: 11%; width: 10%; animation-duration: 34s; }
.md-tree { width: 9%; }
.md-t1 { left: 2%; bottom: 4%; }
.md-t2 { right: 3%; top: 30%; width: 7%; }
.md-flower { width: 6%; }
.md-f1 { left: 30%; bottom: 5%; }
.md-f2 { right: 26%; bottom: 12%; width: 7%; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.map-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255,253,248,0.94); color: var(--ink); font-size: 0.8rem; font-weight: 700; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
@keyframes drift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(24px); } }
.map-pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -100%); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform 0.18s ease; animation: pin-drop 0.5s ease backwards; background: none; border: none; padding: 0; }
.pin:hover { transform: translate(-50%, -100%) scale(1.08); z-index: 5; }
@keyframes pin-drop { from { opacity: 0; transform: translate(-50%, -140%); } }
.pin-badge { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 3px solid var(--persim); box-shadow: var(--shadow-pop); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.pin-badge img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pin-badge.no-img { font-size: 1.5rem; }
.pin-stem { width: 3px; height: 10px; background: var(--persim); border-radius: 0 0 2px 2px; margin-top: -2px; }
.pin-label { font-family: var(--head-font); font-size: 0.72rem; font-weight: 700; color: var(--green); background: rgba(255,253,248,0.94); padding: 2px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(74,58,42,0.1); max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.pin-voicecount { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--berry); color: #fff; font-size: 0.66rem; font-weight: 700; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.map-empty-card { background: rgba(255,253,248,0.94); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; max-width: 420px; text-align: center; }
.map-empty-icon { width: 56px; height: 56px; object-fit: contain; }
.map-empty-title { font-family: var(--head-font); font-weight: 700; color: var(--green); font-size: 1.15rem; margin-top: 10px; }
.map-empty-sub { color: var(--ink-soft); margin-top: 8px; font-size: 0.92rem; }

/* ===== 声 ===== */
.voice-grid { margin-top: 40px; columns: 3 280px; column-gap: 22px; }
.voice-card { break-inside: avoid; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.voice-card::before { content: "❝"; font-size: 2.4rem; color: var(--leaf); opacity: 0.5; line-height: 0.6; font-family: serif; }
.voice-text { margin: 8px 0 14px; font-size: 1rem; color: var(--ink); }
.voice-meta { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); flex-wrap: wrap; }
.voice-nick { font-family: var(--head-font); font-weight: 700; color: var(--persim); }
.voice-reply { margin-top: 12px; background: var(--leaf-soft); border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; color: var(--ink); position: relative; }
.voice-reply-by { display: block; font-family: var(--head-font); font-weight: 700; font-size: 0.78rem; color: var(--green); margin-bottom: 4px; }
.voice-reply::before { content: "↩"; position: absolute; left: -2px; top: -14px; color: var(--leaf); font-size: 1.1rem; }

/* ===== 効果ダッシュボード ===== */
.effect-flow { margin-top: 44px; display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.effect-col { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 18px 16px; flex: 1 1 240px; max-width: 300px; }
.effect-kicker { display: block; font-family: var(--head-font); font-weight: 700; font-size: 0.92rem; color: var(--sun); margin-bottom: 14px; text-align: center; }
.effect-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ecard { background: rgba(255,255,255,0.1); border-radius: 14px; padding: 14px 8px; text-align: center; }
.ecard-num { display: block; font-family: var(--head-font); font-weight: 700; font-size: 1.9rem; line-height: 1; color: #fff; }
.ecard-label { display: block; margin-top: 6px; font-size: 0.72rem; color: #CDDDC9; }
.effect-arrow { align-self: center; color: var(--sun); font-size: 2rem; font-family: var(--head-font); }
.effect-trend { margin-top: 30px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 20px 24px; }
.effect-trend-head { display: flex; justify-content: space-between; align-items: baseline; color: #D8E5D4; font-size: 0.88rem; margin-bottom: 10px; }
.effect-trend-total { font-family: var(--head-font); font-weight: 700; color: #fff; font-size: 1.1rem; }
.spark { width: 100%; height: 90px; display: block; }
.effect-note { margin-top: 28px; text-align: center; color: #E8F0E5; font-size: 1.02rem; line-height: 1.8; }
.effect-note strong { color: var(--sun); }

/* ===== 空状態 ===== */
.empty-state { margin-top: 24px; text-align: center; padding: 44px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-emoji-img { width: 54px; height: 54px; object-fit: contain; opacity: 0.85; }
.empty-title { font-family: var(--head-font); font-weight: 700; color: var(--green); font-size: 1.18rem; margin-top: 14px; }
.empty-sub { color: var(--ink-soft); margin-top: 8px; }

/* ===== プラグイン ===== */
.plugin-band { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.plugin-kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--persim); background: var(--persim-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.plugin-text p { color: var(--ink); margin-top: 14px; }
.plugin-code { margin-top: 16px; background: #3a352c; color: #E8E0D2; border-radius: 12px; padding: 16px 18px; font-size: 0.8rem; overflow-x: auto; line-height: 1.6; }
.plugin-code code { font-family: Consolas, Menlo, monospace; white-space: pre; }
.plugin-fine { font-size: 0.8rem; color: var(--ink-soft); }
.plugin-preview { display: flex; justify-content: center; }

/* ===== CTA ===== */
.cta-band { background: linear-gradient(120deg, var(--persim), var(--sun)); color: #fff; padding: 64px 0; text-align: center; }
.cta-inner h2 { font-family: var(--head-font); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta-inner p { margin: 14px auto 28px; color: #FFF6E8; max-width: 36em; }
.cta-band .btn-primary { background: #fff; color: var(--persim); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.cta-band .btn-primary:hover { background: #fff7ee; }

/* ===== フッター ===== */
.site-foot { background: #3a352c; color: #E8E0D2; padding: 44px 0; }
.site-foot-inner { text-align: center; }
.foot-brand { font-family: var(--head-font); font-weight: 700; font-size: 1.1rem; }
.foot-note { margin-top: 8px; font-size: 0.92rem; color: #C9BFAE; }
.foot-fine { margin-top: 14px; font-size: 0.78rem; color: #9A9080; }

/* ===== SNSシート ===== */
.sheet-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(74,58,42,0.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); width: min(560px, 100%); max-height: 88vh; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); display: flex; flex-direction: column; animation: rise 0.28s cubic-bezier(0.2,0.8,0.3,1); }
@keyframes rise { from { transform: translateY(24px); opacity: 0.6; } }
.sheet-head { position: relative; }
.sheet-cover { height: 150px; background: var(--leaf-soft) center/cover no-repeat; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,253,248,0.92); color: var(--ink); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); }
.sheet-prod { display: flex; gap: 14px; align-items: center; padding: 0 22px; margin-top: -42px; position: relative; }
.sheet-prod-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid #fff; box-shadow: var(--shadow); background: var(--leaf-soft); }
.sheet-prod-meta { padding-top: 44px; }
.sheet-producer-name { font-family: var(--head-font); font-weight: 700; color: var(--green); font-size: 1.25rem; }
.sheet-loc { font-size: 0.82rem; color: var(--ink-soft); }
.sheet-prodtag { display: inline-block; margin-top: 5px; font-size: 0.78rem; font-weight: 700; color: var(--persim); background: var(--persim-soft); padding: 2px 12px; border-radius: 999px; }
.sheet-scroll { overflow-y: auto; padding: 18px 22px 24px; }
.sheet-story { background: var(--persim-soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.sheet-story h4 { font-family: var(--head-font); color: var(--persim); font-size: 1rem; margin-bottom: 6px; }
.sheet-story p { font-size: 0.9rem; color: var(--ink); }
.sheet-section-label { font-family: var(--head-font); font-weight: 700; color: var(--green); font-size: 0.95rem; margin: 4px 0 12px; }
.sheet-voice { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.sheet-voice-text { font-size: 0.95rem; color: var(--ink); }
.sheet-voice-meta { margin-top: 8px; font-size: 0.8rem; color: var(--ink-soft); }
.sheet-voice-nick { font-family: var(--head-font); font-weight: 700; color: var(--persim); }
.sheet-empty { text-align: center; color: var(--ink-soft); padding: 24px; font-size: 0.9rem; }
.sheet-buy { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; background: var(--persim); color: #fff; padding: 10px 20px; border-radius: 999px; font-family: var(--head-font); font-weight: 700; font-size: 0.92rem; }

/* ===== レスポンシブ ===== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .plugin-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .site-nav a:not(.nav-cta) { display: none; }
  .effect-arrow { transform: rotate(90deg); }
  .voice-grid { columns: 1; }
  .map-board { aspect-ratio: 4 / 5; }
  .pin-badge { width: 44px; height: 44px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ===== 入場アニメ ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .md-cloud, .pin { animation: none; } }
