/* ===========================
   ベース
=========================== */
:root {
    --main-color: #2B7FFF;
    --accent-color: #FF8A3D;
    --bg-light: #F7F9FC;
    --text-dark: #333;
}

body {
    margin: 0;
    font-family: sans-serif;
    background: #fafafa;
    color: #333;
}

section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
}

h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* ===========================
   ヘッダー
=========================== */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--main-color);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header-search-form {
    flex: 1;
    margin: 0 20px;
    display: flex;
}

.header-search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
}

.header-search-form button {
    padding: 10px 16px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
}

.post-btn {
    background: var(--accent-color);
    padding: 8px 14px;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* ===========================
   ヒーローエリア
=========================== */
.hero {
    background: linear-gradient(135deg, #eaf2ff, #ffffff);
    padding: 60px 20px;
    text-align: center;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: bold;
}

.hero p {
    margin-top: 10px;
    color: #666;
    margin-bottom: 20px;
}

.hero-search {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-search input {
    width: 60%;
    max-width: 320px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
}

.hero-search button {
    padding: 12px 20px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
}

/* ===========================
   「一番近くのクーポンを探す」
=========================== */
.nearby-section {
    margin: 15px;
}

.nearby-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.nearby-btn:hover {
    opacity: 0.9;
}

/* ===========================
   検索セクション
=========================== */
.search-section {
    padding: 20px;
    background: #fff;
    margin: 15px;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
}

.search-section h2 {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.search-section form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-section input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    font-size: 14px;
}

.search-section button {
    padding: 12px 20px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.search-section button:hover {
    opacity: 0.9;
}

/* ===========================
   人気ジャンル（ブランドカラー）
=========================== */
.popular-genre {
    background: var(--bg-light);
    padding: 40px 16px;
    border-radius: 12px;
    margin: 15px;
}

.popular-genre h2 {
    font-size: 20px;
    color: var(--main-color);
    margin-bottom: 15px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* アイコン付きジャンルボタン */
.genre-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    color: var(--main-color);
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: 0.2s;
}

.genre-btn:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-2px);
}

.all-genre-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--main-color);
    font-weight: bold;
    text-decoration: none;
}

.all-genre-link:hover {
    text-decoration: underline;
}

/* ===========================
   都道府県タイル（地域）
=========================== */
.pref-section {
    padding: 20px;
    background: #fff;
    margin: 20px;
    border-radius: 10px;
}

.pref-section h2 {
    font-size: 20px;
    color: var(--main-color);
    margin-bottom: 10px;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* 都道府県ボタン（最適化版） */
.area-btn { padding: 14px; background: #e8f1ff; border: 1px solid var(--main-color); border-radius: 8px; color: var(--main-color); font-weight: bold; cursor: pointer; transition: 0.2s; }


.area-btn:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 都道府県リスト（アコーディオン内） */
/*
.pref-list {
    display: none;
    margin-top: 16px;
    padding: 10px;
    background: #fff;
    border-left: 4px solid var(--main-color);
    border-radius: 6px;
}
*/
.pref-list {
    display: none;
    margin-top: 16px;
    padding: 10px;
    background: #fff;
    border-left: 4px solid var(--main-color);
    border-radius: 6px;

    /* ← 追加：タイル状に並べる */
    /* display: grid;*/
    grid-template-columns: repeat(auto-fill, minmax(90px, auto));
    gap: 6px;
}


.pref-list button {
    margin: 6px;
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--main-color);
    border-radius: 6px;
    color: var(--main-color);
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.pref-list button:hover {
    background: var(--main-color);
    color: #fff;
}

/* ===========================
   クーポンカード（共通）
=========================== */
.coupon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 15px 0;
}

.coupon-card {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #eee;
    position: relative;
}

.coupon-card h3 {
    margin: 10px 0 6px;
}

.expire {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 12px;
}

/* バッジ */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.official-badge,
.app-badge {
    background: var(--main-color);
}

.user-badge {
    background: var(--accent-color);
}

.timezone-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #555;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* もっと見るリンク */
.more-link {
    display: inline-block;
    margin: 10px 15px;
    color: var(--main-color);
    font-size: 14px;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: underline;
}

/* ===========================
   店舗ページ
=========================== */
.store-header {
    background: var(--main-color);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 12px 12px;
}

.store-header h2 {
    font-size: 28px;
    margin: 0;
}

.store-info {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.store-info p {
    margin: 6px 0;
    color: #444;
}

.store-coupons {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
}

.store-coupon-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.store-name-text {
    color: #666;
    font-size: 14px;
}

.detail-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--main-color);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.detail-btn-red {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

/* ===========================
   公式クーポン詳細用
=========================== */
.detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.detail-header {
    background: var(--main-color);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 12px 12px;
}

.detail-header h1 {
    margin: 0;
    font-size: 28px;
}

.badge-area {
    margin-top: 20px;
    text-align: center;
}

.discount-box {
    background: #fff;
    border: 2px solid var(--main-color);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.discount-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--main-color);
}

.info-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.use-coupon-btn {
    display: block;
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    background: var(--accent-color);
    color: #fff;
    text-align: center;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.use-coupon-btn:hover {
    opacity: 0.9;
}

.back-list {
    display: inline-block;
    margin-top: 20px;
    color: var(--main-color);
    font-weight: bold;
    text-decoration: none;
}

.back-list:hover {
    text-decoration: underline;
}

/* ===========================
   ポップアップ / ダイアログ
=========================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    padding: 25px;
    width: 85%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    animation: popupFade 0.2s ease-out;
}

@keyframes popupFade {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.popup-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.popup-expire {
    font-size: 16px;
    margin-bottom: 20px;
}

.popup-note {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.close-btn {
    padding: 10px 20px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

/* 別画面風ダイアログ */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    color: #fff;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.dialog-window {
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.dialog-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.dialog-expire {
    font-size: 20px;
    margin-bottom: 30px;
}

.dialog-note {
    font-size: 16px;
    margin-bottom: 40px;
}

.dialog-close {
    padding: 12px 20px;
    background: #fff;
    color: var(--main-color);
    border: none;
    border-radius: 8px;
    font-size: 18px;
}

/* ===========================
   フッター
=========================== */
.footer {
    background: #f5f5f5;
    padding: 30px 20px;
    color: #555;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 50px;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-section h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.footer-section ul {
    padding-left: 18px;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #777;
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 600px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-search-form {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .header-right {
        order: 2;
    }

    .logo {
        order: 1;
        width: 100%;
    }

    .hero-search input {
        width: 100%;
        border-radius: 6px;
    }

    .hero-search button {
        width: 100%;
        border-radius: 6px;
        margin-top: 8px;
    }

    .search-section {
        margin: 10px;
    }

    .pref-section {
        margin: 10px;
    }
}

.popular-genre,
.pref-section {
    max-width: 1100px;
    margin: 40px auto; /* ← auto で中央寄せ */
    padding-left: 16px;
    padding-right: 16px;
}

.free-post-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 20px;
    background: #fff7e6;
    border: 1px solid #ffd9a3;
    border-radius: 12px;
    text-align: center;
}

.free-post-section h2 {
    color: var(--accent-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.free-post-text {
    font-size: 15px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}

.free-post-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.free-post-points li {
    margin: 6px 0;
    font-size: 15px;
    color: #333;
}

.free-post-btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* ====== 掲載無料セクション（強アピール版） ====== */
.free-post-section.highlight {
    background: linear-gradient(135deg, #fff3cd, #ffe8a3);
    border: 2px solid #ffcc66;
    border-radius: 16px;
    padding: 50px 20px;
    margin: 50px auto;
    max-width: 1100px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 200, 80, 0.3);
}

.free-post-inner h2 {
    font-size: 26px;
    color: #d47a00;
    margin-bottom: 15px;
    font-weight: bold;
}

.free-post-lead {
    font-size: 17px;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.8;
}

.free-post-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.benefit-box {
    background: #fff;
    border: 2px solid #ffcc66;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    color: #d47a00;
    box-shadow: 0 3px 10px rgba(255, 200, 80, 0.2);
}

.free-post-cta {
    display: inline-block;
    padding: 16px 28px;
    background: #ff8a3d;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 140, 60, 0.4);
    transition: 0.2s;
}

.free-post-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 140, 60, 0.5);
}


a.logo-wrap,
a.logo-wrap:visited,
a.logo-wrap:hover,
a.logo-wrap:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* ▼ ロゴ周り */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: inherit !important;
}

.logo-wrap img {
    height: 40px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
    white-space: nowrap;
}

/* ▼ 下線を完全に消す（最強版） */
a.logo-wrap,
a.logo-wrap:link,
a.logo-wrap:visited,
a.logo-wrap:hover,
a.logo-wrap:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* ▼ レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
    .logo-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .logo-text {
        font-size: 16px;
    }
}

.coupon-card h3 a,
.coupon-card h3 a:link,
.coupon-card h3 a:visited,
.coupon-card h3 a:hover,
.coupon-card h3 a:active {
    text-decoration: none !important;
    color: inherit !important;
}

.store-header h2,
#store-name {
    color: #fff !important;
}

.store-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-list li {
    background: #fff;
    border: 1px solid #eee;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 16px;
}

.store-list li a {
    color: var(--main-color);
    font-weight: bold;
    text-decoration: none;
}

.store-list li a:hover {
    text-decoration: underline;
}

