/* style.css - 古今名物御前菓子秘伝抄 再発見帖 */
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap');

:root {
    --primary: #5d4037;
    --bg: #fdfaf5;
    --text: #2c3e50;
    --accent: #4a6741;
    --accent-light: #e8f0e4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Sawarabi Mincho', serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.9;
}

/* ── ヘッダー ── */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid #e0d8cc;
    padding: 14px 24px;
}
.site-header a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.8;
}
.site-header a:hover { opacity: 1; }

/* ── ヒーロー ── */
.hero {
    background: linear-gradient(135deg, #e8f0e4 0%, #f5f0e8 100%);
    padding: 60px 24px 50px;
    text-align: center;
    border-bottom: 1px solid #d9e8d3;
}
.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
}
.hero h1 {
    font-size: 2.4rem;
    color: var(--primary);
    margin: 0 0 8px;
    letter-spacing: 0.15em;
}
.hero .yomi {
    font-size: 1rem;
    color: #7a6a5a;
    margin: 0 0 16px;
    letter-spacing: 0.1em;
}
.hero .source {
    font-size: 0.8rem;
    color: #9a8a7a;
}

/* ── コンテナ ── */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── 挿絵 ── */
.kashi-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ── 挿絵プレースホルダー ── */
.kashi-image-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #d4e8cc, #e8f0e4);
    border-radius: 12px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    opacity: 0.7;
}

/* ── セクション ── */
.section { margin-bottom: 48px; }
.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 16px;
    font-weight: bold;
}
.section p { margin: 0; font-size: 1rem; }

/* ── 季節タグ ── */
.season-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ── 翻刻 ── */
.honkoku-block {
    background: #f5f0e8;
    border: 1px solid #e0d4c0;
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 0.95rem;
    line-height: 2;
    color: #5a4a3a;
}

/* ── レシピテーブル ── */
.recipe-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.recipe-table th {
    width: 30%;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: bold;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #d9e8d3;
    vertical-align: top;
    white-space: nowrap;
}
.recipe-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #ece8e0;
    vertical-align: top;
    line-height: 1.75;
}
.recipe-table tr:last-child th,
.recipe-table tr:last-child td { border-bottom: none; }

/* ── 原材料 ── */
.ingredient-section {
    background: white;
    border: 1px solid #d9e8d3;
    border-radius: 12px;
    padding: 20px 24px;
}
.ingredient-intro { font-size: 0.85rem; color: #7a6a5a; margin: 0 0 14px; }
.ingredient-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.ingredient-item { text-align: center; font-size: 0.8rem; color: #666; }
.ingredient-item img { width: 100%; max-width: 120px; height: auto; object-fit: contain; }
.affiliate-note { font-size: 0.72rem; color: #aaa; margin: 0; }

/* ── ほえまる ── */
.hoemaru-block {
    background: white;
    border: 1px solid #d9e8d3;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.hoemaru-icon {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
}
.hoemaru-text { font-size: 0.95rem; line-height: 1.8; color: #4a3a2a; }
.hoemaru-name { font-size: 0.75rem; color: var(--accent); margin-bottom: 6px; font-weight: bold; }

/* ── カード ── */
.item-card {
    border: 1px solid #e0d8cc;
    border-radius: 10px;
    padding: 20px 24px;
    background: white;
}
.coming-soon { font-size: 0.85rem; color: #aaa; font-style: italic; margin: 0; }

/* ── ナビ ── */
.nav-links {
    display: flex;
    justify-content: center;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #e0d8cc;
    font-size: 0.85rem;
}
.nav-links a { color: var(--accent); text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

/* ── フッター ── */
footer {
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: white;
    color: #bbb;
    font-size: 0.8rem;
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .hoemaru-block { flex-direction: column; }
    .recipe-table th { white-space: normal; }
}

/* ── 現代の逸品 ── */
.modern-recipe-desc {
    font-size: 0.9rem;
    color: #5a4a3a;
    margin: 0 0 14px;
    line-height: 1.8;
}
.modern-recipe-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}
.modern-recipe-link:hover { opacity: 0.7; }