/* style.css - 日本の名産再発見帖 共通デザイン */

/* フォントと基本カラーの定義 */
:root { 
    --primary: #1b263b; /* 基本の深い藍色 */
    --bg: #fdfaf5; 
    --accent: #9e2a2b; /* 基本の茜色 */
    --gold: #b08d57;
    --text: #2b2d42;
    --light-bg: #ffffff;
}

body {
    margin: 0;
    font-family: 'Noto Serif JP', 'Sawarabi Mincho', serif;
    background: var(--bg);
    line-height: 1.9;
    color: var(--text);
    padding-top: 48px;
}

.container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 60px 25px; 
}

.intro-text {
    background: white;
    border-left: 6px solid var(--primary);
    padding: 25px 30px;
    margin-bottom: 50px;
    font-size: 0.95em;
    line-height: 1.9;
    border-radius: 0 4px 4px 0;
}

/* 共通パーツ：ヘッダー・リンク */
.back-link {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 2px solid var(--primary);
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    display: block;
    padding: 12px 25px;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.back-link:hover { opacity: 0.6; }

header { 
    text-align: center; 
    margin-bottom: 80px; 
}
header small {
    display: block;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 10px;
}
h1 { 
    color: var(--primary); 
    font-size: 2.2em; 
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}

/* 共通パーツ：導入文・セクション */
.zue-intro { 
    background: var(--light-bg); 
    padding: 40px; 
    border-radius: 4px; 
    margin-bottom: 80px; 
    border-left: 8px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.process-section { 
    margin-bottom: 100px; 
    padding-bottom: 60px; 
    border-bottom: 1px solid #e0e0e0; 
}
.process-img { 
    width: 100%; 
    height: auto;
    display: block;
    margin-bottom: 30px; 
    border-radius: 2px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border: 8px solid white;
}
h3 { 
    margin: 0 0 20px; 
    color: var(--primary); 
    font-size: 1.8em; 
    line-height: 1.4;
}

/* 共通パーツ：囲み記事・豆知識 */
.feature-box {
    background: #f0f4f8;
    border: 1px solid var(--primary);
    padding: 25px;
    margin: 25px 0;
    position: relative;
    font-size: 0.95em;
}
.feature-box::before {
    content: "名産知恵袋";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 0 15px;
    font-size: 0.8em;
    font-weight: bold;
}
.quote-box {
    font-size: 0.95em; 
    border-left: 3px solid var(--accent); 
    padding: 5px 0 5px 20px; 
    color: #555;
    margin: 30px 0;
    background: #fffcfc;
}

/* 共通パーツ：ショップエリア */
.shop-area { 
    text-align: center; 
    padding: 60px 20px; 
    background: white; 
    border-radius: 12px; 
    margin: 80px 0;
    border: 1px solid #eee;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.shop-btn {
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
}
.shop-btn:hover { background: var(--accent); }
.affiliate-note { font-size: 0.7em; color: #999; margin-top: 20px; }

/* 共通パーツ：ほえまるコメント */
.comment-box { 
    background: #eef4f7; 
    padding: 35px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    gap: 25px;
    border-left: 6px solid var(--primary);
}
.hoemaru-icon { 
    width: 110px; height: 110px; 
    flex-shrink: 0; background: white; border-radius: 8px; 
}
.comment-label { font-weight: bold; color: var(--accent); margin-bottom: 5px; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comment-box { flex-direction: column; text-align: center; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .shop-grid { grid-template-columns: repeat(1, 1fr); }
}
/* ── フッター ────────────────────────────────────── */
footer {
    padding: 40px 20px;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
    margin-top: 50px;
    font-size: 0.82em;
    color: #999;
    line-height: 1.8;
}
footer .source-note {
    font-size: 0.95em;
    margin-bottom: 4px;
}
