/* ==========================================================================
   okurune.com 共通スタイル
   アプリ「おくるね」のポップテーマ（ライト）と同じトークン・書体・角丸で組む。
   出典: app/lib/theme/app_theme.dart（OkuruneColors _popLight）と
         design/ui_handoff_bento.md のトークン表
   ========================================================================== */
:root {
    /* 面 */
    --bg: #FFF6F2;
    --card: #FFFFFF;
    --card2: #FFF0EB;
    /* 文字 */
    --ink: #3A2F2E;
    --ink2: #8A7A78;
    --ink3: #BCAEAB;
    /* 主アクセント（贈った） */
    --accent: #FF6B81;
    --accent-deep: #D63E5A;
    --accent-tint: #FFE3E8;
    /* いただいた・肯定（sage） */
    --sage: #1F9C81;
    --sage-deep: #177A64;
    --sage-tint: #D9F2EA;
    /* お返し待ち・注意 */
    --gold: #E59429;
    --gold-deep: #9C6212;
    --gold-tint: #FDEACB;
    /* 罫線・影 */
    --line: rgba(60, 40, 40, 0.08);
    --line-solid: #EFE4E0;
    --shadow: 0 2px 10px rgba(214, 62, 90, 0.06);
    --shadow-hover: 0 12px 28px rgba(214, 62, 90, 0.14);
    /* ヒーロー・主要ボタンのグラデーション */
    --hero1: #FF8299;
    --hero2: #F0506A;
    /* 角丸（大カード24 / 小カード16 / ボタンはスタジアム） */
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 12px;
    /* 書体 */
    --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
    --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
    --font-num: "Figtree", "Zen Kaku Gothic New", sans-serif;
    --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink);
    background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; letter-spacing: 0.01em; }
.num { font-family: var(--font-num); font-weight: 800; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- ヘッダー ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 246, 242, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 19px;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand small {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink2);
    margin-left: 2px;
}
.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 700;
}
.site-nav a {
    color: var(--ink2);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.site-nav a:hover { background: var(--accent-tint); color: var(--accent-deep); }
.site-nav a.cta {
    background: var(--accent);
    color: #fff;
    margin-left: 6px;
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.35);
}
.site-nav a.cta:hover { background: var(--accent-deep); color: #fff; }
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px; height: 40px;
    border: 1px solid var(--line-solid);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}

/* ---------- ボタン・チップ ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--hero1), var(--hero2));
    box-shadow: 0 8px 20px rgba(240, 80, 106, 0.3);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(240, 80, 106, 0.38); color: #fff; }
.btn-ghost {
    color: var(--accent-deep);
    background: var(--card);
    border-color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-tint); }
.btn-soft {
    color: var(--ink);
    background: var(--card);
    border-color: var(--line-solid);
}
.btn-soft:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink2);
    background: var(--card);
    border: 1px solid var(--line-solid);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.chip.on, .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 10px;
    line-height: 1.7;
    white-space: nowrap;
}
.badge-accent { background: var(--accent-tint); color: var(--accent-deep); }
.badge-sage { background: var(--sage-tint); color: var(--sage-deep); }
.badge-gold { background: var(--gold-tint); color: var(--gold-deep); }
.badge-soft { background: var(--card2); color: var(--ink2); }

/* ---------- セクション ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--card2); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.section-head .en {
    display: block;
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent-deep);
    margin-bottom: 4px;
}
.section-head h2 { font-size: 24px; font-weight: 900; }
.section-head p { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.section-head .more {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-deep);
    white-space: nowrap;
}

/* ---------- ヒーロー ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(90% 80% at 85% 20%, rgba(255, 130, 153, 0.16) 0%, rgba(255, 130, 153, 0) 70%),
        var(--bg);
}
.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 20px 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}
.hero-copy .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 16px;
}
.hero-copy h1 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--ink);
}
.hero-copy h1 em {
    font-style: normal;
    color: var(--accent-deep);
}
.hero-copy .lead {
    margin-top: 14px;
    font-size: 15px;
    color: var(--ink2);
    max-width: 30em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-scenes { margin-top: 22px; }
.hero-scenes .label { font-size: 11.5px; font-weight: 700; color: var(--ink3); margin-bottom: 8px; letter-spacing: 0.05em; }
.hero-art { min-width: 0; }
.hero-art img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--r-lg);
}

/* ---------- 検索の入口（シーン・相手・予算） ---------- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 16px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(255, 107, 129, 0.4); text-decoration: none; }
.tile .ico {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--accent-tint);
    font-size: 22px;
}
.tile.sage .ico { background: var(--sage-tint); }
.tile.gold .ico { background: var(--gold-tint); }
.tile > span:not(.ico) { display: flex; flex-direction: column; min-width: 0; }
.tile .t { display: block; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.tile .s { display: block; font-size: 11.5px; color: var(--ink2); line-height: 1.5; margin-top: 2px; }
.tile-grid.compact { grid-template-columns: repeat(6, 1fr); }
.tile-grid.compact .tile { flex-direction: column; text-align: center; gap: 8px; padding: 16px 10px; }
.tile-grid.compact .ico { width: 48px; height: 48px; font-size: 24px; }
.tile-grid.compact .t { font-size: 13.5px; }
.budget-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.budget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 16px;
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.budget:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.budget .num { font-size: 22px; color: var(--accent-deep); }
.budget .s { font-size: 12px; color: var(--ink2); margin-top: 2px; }

/* ---------- ギフトカード ---------- */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gift-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.gift-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.gift-card .ph {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.gift-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s ease; }
.gift-card:hover .ph img { transform: scale(1.04); }
.gift-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gift-card .brand-name { font-size: 11px; font-weight: 700; color: var(--ink2); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-card h3 { font-size: 14px; font-weight: 800; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gift-card .desc { font-size: 12px; color: var(--ink2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gift-card .meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 6px; }
.gift-card .price { font-family: var(--font-num); font-weight: 800; font-size: 16px; color: var(--accent-deep); }
.gift-card .price small { font-size: 11px; font-weight: 700; margin-right: 1px; }
.gift-card .tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.gift-card .shops { display: flex; gap: 6px; margin-top: 8px; }
.gift-card .shops a, .gift-card .shops span {
    flex: 1;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 8px;
    border-radius: 999px;
    text-decoration: none;
}
.shop-rakuten { background: #BF0000; color: #fff; }
.shop-rakuten:hover { background: #A00000; }
.shop-amazon { background: #232F3E; color: #fff; }
.shop-amazon:hover { background: #131A22; }
.pr-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gold-deep);
    background: var(--gold-tint);
    border-radius: 999px;
    padding: 3px 12px;
}

/* ---------- カタログページのフィルタ ---------- */
.filter-bar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}
.filter-group { display: flex; align-items: flex-start; gap: 12px; }
.filter-group .k {
    flex-shrink: 0;
    width: 64px;
    font-size: 12px;
    font-weight: 800;
    color: var(--ink2);
    padding-top: 7px;
}
.filter-group .chip-row { flex: 1; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 14px; font-size: 13px; color: var(--ink2); }
.result-bar select {
    font-family: var(--font-body);
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-solid);
    background: var(--card);
    color: var(--ink);
}
.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--ink2);
    background: var(--card);
    border: 1px dashed var(--line-solid);
    border-radius: var(--r-lg);
}

/* ---------- 記事カード ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.article-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-tint); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .thumb img { transform: scale(1.05); }
.article-card .thumb .badge { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.94); color: var(--accent-deep); }
.article-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card h3 { font-size: 15px; font-weight: 800; line-height: 1.5; }
.article-card p { font-size: 12.5px; color: var(--ink2); line-height: 1.7; }
.article-card .more { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--accent-deep); }

/* ---------- マナー早見表 ---------- */
.manner-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.table-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow);
}
.table-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-card th, .table-card td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line-solid); }
.table-card th { font-size: 11.5px; color: var(--ink2); font-weight: 700; }
.table-card td .num { color: var(--accent-deep); }
.table-card .foot { font-size: 11.5px; color: var(--ink3); margin-top: 10px; }
.tips { display: grid; gap: 12px; }
.tip {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.tip .ico { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-tint); font-size: 20px; }
.tip > span:not(.ico) { display: flex; flex-direction: column; min-width: 0; }
.tip .t { display: block; font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.tip .s { display: block; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }

/* ---------- アプリ訴求 ---------- */
.app-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, var(--hero1), var(--hero2));
    color: #FFF8F5;
    border-radius: var(--r-lg);
    padding: 36px 36px;
    box-shadow: 0 16px 40px rgba(240, 80, 106, 0.25);
}
.app-panel .app-icon { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.18); margin-bottom: 14px; }
.app-panel h2 { font-size: 26px; font-weight: 900; line-height: 1.4; }
.app-panel p { font-size: 14px; opacity: .95; margin-top: 10px; }
.app-panel .stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-panel .btn-store {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.96); color: var(--ink);
    border-radius: 999px; padding: 10px 18px 10px 14px;
    font-weight: 700; text-decoration: none; font-size: 13px;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.app-panel .btn-store:hover { background: #fff; text-decoration: none; }
.app-panel .btn-store svg { width: 20px; height: 20px; }
.app-panel .btn-store small { display: block; font-size: 10px; color: var(--ink2); line-height: 1.1; }
.app-panel .btn-store b { display: block; font-size: 13.5px; line-height: 1.2; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: var(--r-md);
    padding: 12px 14px;
}
.feature .t { font-family: var(--font-head); font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.feature .s { font-size: 12px; opacity: .92; line-height: 1.55; margin-top: 2px; }

/* ---------- アプリ紹介ページ ---------- */
.page-hero { text-align: center; padding: 48px 20px 28px; }
.page-hero .app-icon-lg { width: 112px; height: 112px; border-radius: 28px; margin: 0 auto 18px; box-shadow: 0 14px 36px rgba(252, 117, 108, 0.32); }
.page-hero h1 { font-size: 36px; font-weight: 900; }
.page-hero .sub { font-size: 15px; color: var(--ink2); margin-top: 8px; }
.page-hero .tag { font-size: 17px; font-weight: 700; color: var(--accent-deep); margin-top: 12px; font-family: var(--font-head); }
.page-hero .stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.store-pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--ink); color: #fff;
    border-radius: 999px; padding: 10px 20px 10px 14px;
    text-decoration: none; box-shadow: 0 8px 20px rgba(58, 47, 46, .22);
    transition: transform .15s ease;
}
.store-pill:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.store-pill svg { width: 22px; height: 22px; }
.store-pill small { display: block; font-size: 10px; opacity: .8; line-height: 1.1; }
.store-pill b { display: block; font-size: 14px; line-height: 1.2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 20px;
    box-shadow: var(--shadow);
}
.feature-card .no {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--accent-tint); color: var(--accent-deep);
    font-family: var(--font-num); font-weight: 800; font-size: 14px;
    margin-bottom: 12px;
}
.feature-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--ink2); line-height: 1.75; }
.check-list { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
.check-list li {
    list-style: none;
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 12px 16px; font-size: 14px;
}
.check-list li::before { content: "✓"; color: var(--sage); font-weight: 900; flex-shrink: 0; }
.callout {
    max-width: 760px; margin: 0 auto;
    background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent);
    border-radius: var(--r-md); padding: 24px 26px; box-shadow: var(--shadow);
}
.callout h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.callout ul { padding-left: 0; display: grid; gap: 6px; }
.callout li { list-style: none; padding-left: 18px; position: relative; font-size: 14px; }
.callout li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.callout p { font-size: 14px; margin-top: 12px; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- お問い合わせ ---------- */
.contact-box {
    max-width: 560px; margin: 0 auto; text-align: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 30px 24px; box-shadow: var(--shadow);
}
.contact-box p { font-size: 14px; color: var(--ink2); }
.contact-email {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 12px 22px; border-radius: 999px;
    background: var(--accent-tint); color: var(--accent-deep);
    font-family: var(--font-num); font-weight: 800; font-size: 16px; text-decoration: none;
}
.contact-email:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- 規約ページ ---------- */
.legal-main { padding: 40px 0 64px; }
.legal-header { text-align: center; margin-bottom: 28px; }
.legal-label { font-family: var(--font-num); font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent-deep); }
.legal-title { font-size: 30px; font-weight: 900; margin-top: 6px; }
.legal-updated { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.legal-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 32px 36px; box-shadow: var(--shadow); font-size: 14.5px;
}
.legal-card h2 { font-size: 17px; font-weight: 800; margin: 30px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.5; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--ink); line-height: 1.9; }
.legal-card p { margin-bottom: 10px; }
.legal-card ul, .legal-card ol { padding-left: 1.4em; margin-bottom: 10px; }
.legal-card li { margin-bottom: 4px; }
.legal-card strong { color: var(--ink); }
.legal-card code { font-family: var(--font-num); background: var(--card2); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.legal-card .dl-row { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-solid); }
.legal-card .dl-row:last-child { border-bottom: none; }
.legal-card .dl-row dt { flex: 0 0 160px; font-weight: 700; color: var(--ink2); font-size: 13.5px; }
.legal-card .dl-row dd { flex: 1; }
.legal-card dl { margin-bottom: 12px; }
.legal-back { display: inline-block; margin-top: 24px; font-size: 13.5px; font-weight: 700; color: var(--accent-deep); }

/* ---------- フッター ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding: 36px 20px 40px;
    background: var(--card2);
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 900; font-size: 17px; color: var(--ink); }
.footer-brand img { width: 26px; height: 26px; border-radius: 8px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 12.5px; }
.footer-links a { color: var(--ink2); }
.footer-links a:hover { color: var(--accent-deep); }
.footer-copy { font-size: 11.5px; color: var(--ink3); }
.footer-note { font-size: 11px; color: var(--ink3); max-width: 640px; line-height: 1.7; }

/* ---------- Cookie 同意バナー（js/analytics.js が生成） ---------- */
.consent-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
    max-width: 560px; margin: 0 auto; padding: 20px 22px;
    background: var(--card); border: 1px solid var(--line-solid); border-radius: var(--r-lg);
    box-shadow: var(--shadow-hover);
    display: flex; flex-direction: column; gap: 14px;
    animation: consent-in .3s ease;
}
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.consent-text { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--ink); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent-btn {
    font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
    padding: 9px 20px; border-radius: 999px;
    background: var(--card); color: var(--ink); border: 1.5px solid var(--line-solid); cursor: pointer;
}
.consent-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.consent-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.consent-btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.consent-link { color: var(--accent-deep); text-decoration: underline; white-space: nowrap; }
.consent-settings-link { font-size: 11.5px; color: var(--ink3); text-decoration: none; }
.consent-settings-link:hover { color: var(--accent-deep); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
    .tile-grid { grid-template-columns: repeat(3, 1fr); }
    .tile-grid.compact { grid-template-columns: repeat(4, 1fr); }
    .gift-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-copy h1 { font-size: 34px; }
}
@media (max-width: 760px) {
    .site-nav {
        display: none;
        position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--card); border: 1px solid var(--line-solid); border-radius: var(--r-md);
        padding: 8px; box-shadow: var(--shadow-hover);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 14px; }
    .site-nav a.cta { margin: 6px 0 0; text-align: center; }
    .nav-toggle { display: inline-grid; place-items: center; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 28px; }
    .hero-art { order: -1; }
    .hero-art img { max-width: 420px; margin: 0 auto; }
    .hero-copy h1 { font-size: 29px; }
    .section { padding: 40px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .section-head h2 { font-size: 21px; }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .tile-grid.compact { grid-template-columns: repeat(3, 1fr); }
    .budget-row { grid-template-columns: repeat(2, 1fr); }
    .gift-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gift-card .desc { display: none; }
    .article-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .article-card p { display: none; }
    .manner-grid { grid-template-columns: minmax(0, 1fr); }
    .table-card { overflow-x: auto; }
    .app-panel { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
    .feature-list { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .filter-group { flex-direction: column; gap: 6px; }
    .filter-group .k { width: auto; padding-top: 0; }
    .legal-card { padding: 22px 18px; }
    .legal-title { font-size: 24px; }
    .legal-card .dl-row { flex-direction: column; gap: 2px; }
    .page-hero h1 { font-size: 30px; }
}
@media (max-width: 480px) {
    .tile-grid.compact { grid-template-columns: repeat(2, 1fr); }
    .feature-list { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 26px; }
}
