/* ===================================
   ご当地おさるのジョージ（osarunogeorge02）共通スタイル
   ※ NARUTO02 / コジコジ02 と同型。🔧 は調整用ポイント
   =================================== */

#osarunogeorge02-wrapper,
#osarunogeorge02-detail-wrapper {
    width: 100%;
    min-height: 100vh;
    padding-top: 120px;            /* ヘッダーとの距離 */
    padding-bottom: 60px;          /* 🔧 フッターとの距離 */
    box-sizing: border-box;
    background-color: #fdf570;     /* 🔧 背景色（デザインカンプの黄色） */
    color: #111111;
}

.osarunogeorge02-top,
.osarunogeorge02-detail {
    padding-left: 20px;
    padding-right: 20px;
}

/* ===================================
   トップページ
   =================================== */

/* トップ画像 */
.top-image-wrapper {
    max-width: 1000px;
    margin: 0 auto 50px;
}

.top-main-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;           /* 🔧 カンプの角丸 */
}

/* 地域選択セクション（左：地域から探す / 右：地域ボタン） */
.region-selection-wrapper {
    max-width: 1000px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.region-left-wrapper {
    flex-shrink: 0;
}

.region-title-image {
    display: block;
    width: 220px;                  /* 🔧 「地域から探す」画像の幅 */
    height: auto;
}

.region-content-wrapper {
    flex: 1;
}

.region-buttons-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 8地域 → 4列×2段 */
    gap: 16px 20px;
}

/* 地域ボタン（白ピル） */
.region-button {
    width: 100%;
    padding: 10px 0;
    background-color: #ffffff;
    color: #111111;
    border: none;
    border-radius: 999px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(150, 140, 40, 0.35);  /* カンプの下影 */
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.region-button:hover,
.region-button.active {
    background-color: #e53a2f;     /* 🔧 ホバー/選択中（風船の赤） */
    color: #ffffff;
}

.region-button:focus {
    outline: none;
}

/* 県ボタン一覧 */
.product-list-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 🔧 PCの列数 */
    gap: 30px 40px;
}

.product-item {
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-link {
    display: block;
    text-decoration: none;
}

.product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1250 / 1668;     /* 支給ボタンの比率（読み込み前のガタつき防止） */
}

/* 準備中 */
.preparing-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.preparing-text {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #ba511f;
}

/* 海賊バザール（購入ページ）CTAボタン（白ボタン＋赤丸矢印・ジョージ配色） */
.shop-cta-wrapper {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.shop-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 48px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background-color: #ffffff;
    border: none;
    border-radius: 999px;
    box-shadow:
        0 0 0 3px #38c3ef,             /* 内側リング（風船の水色） */
        0 0 0 6px #ffffff,
        0 0 0 11px #e53a2f,            /* 外側リング（風船の赤） */
        0 6px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* テーマ側のリンク色対策 */
.shop-cta:link,
.shop-cta:visited,
.shop-cta:hover,
.shop-cta:active,
.shop-cta .shop-cta-text {
    color: #333333 !important;
}

.shop-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 3px #38c3ef,
        0 0 0 6px #ffffff,
        0 0 0 11px #e53a2f,
        0 10px 20px rgba(0, 0, 0, 0.28);
}

.shop-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #e53a2f;
    border-radius: 50%;
    color: #fff452 !important;     /* 県ボタンの矢印と同じ黄色 */
}

.shop-cta-arrow svg {
    width: 17px;
    height: 17px;
    display: block;
    margin-left: 1px;
}

/* ===================================
   詳細ページ
   =================================== */

.detail-heading-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
    text-align: center;
}

.detail-heading-region {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 24px;
    background-color: #e53a2f;
    color: #ffffff;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.detail-heading {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #111111;
}

.detail-product-grid {
    max-width: 1000px;
    margin: 0 auto 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;                 /* 奇数件の最終行も中央寄せ */
    gap: 40px;
}

.detail-product-item {
    width: calc((100% - 40px) / 2);          /* 🔧 PCは2列 */
}

.detail-product-grid.is-single .detail-product-item {
    width: 100%;
    max-width: 560px;                        /* 🔧 1件のみの県の表示幅 */
}

.detail-product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 968;       /* 既存告知画像の比率 */
    border-radius: 12px;
    background-color: #ffffff;
}

.back-link-wrapper {
    text-align: center;
}

.back-link,
.back-link:link,
.back-link:visited {
    display: inline-block;
    padding: 10px 40px;
    background-color: #ffffff;
    color: #111111 !important;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 0 rgba(150, 140, 40, 0.35);
}

.back-link:hover {
    background-color: #e53a2f;
    color: #ffffff !important;
}

/* ===================================
   タブレット
   =================================== */
@media (max-width: 1023px) {
    .region-selection-wrapper {
        gap: 30px;
    }
    .region-title-image {
        width: 180px;
    }
    .region-button {
        font-size: 17px;
    }
    .product-grid {
        gap: 24px 28px;
    }
}

/* ===================================
   スマートフォン
   =================================== */
@media (max-width: 767px) {
    #osarunogeorge02-wrapper,
    #osarunogeorge02-detail-wrapper {
        padding-top: 80px;
    }
    .osarunogeorge02-top,
    .osarunogeorge02-detail {
        padding-left: 14px;
        padding-right: 14px;
    }
    .top-image-wrapper {
        margin-bottom: 30px;
    }
    .top-main-image {
        border-radius: 14px;
    }
    .region-selection-wrapper {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 36px;
    }
    .region-title-image {
        width: 150px;
    }
    .region-content-wrapper {
        width: 100%;
    }
    .region-buttons-wrapper {
        gap: 10px 8px;
    }
    .region-button {
        padding: 7px 0;
        font-size: clamp(11px, 3.4vw, 15px);
        letter-spacing: 0.04em;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);  /* カンプ準拠の3列 */
        gap: 14px 12px;
    }
    .shop-cta-wrapper {
        padding: 0 12px;
        margin-bottom: 36px;
    }
    .shop-cta {
        padding: 12px 18px;
        font-size: 14px;
        gap: 8px;
        letter-spacing: 0;
        box-shadow:
            0 0 0 2px #38c3ef,
            0 0 0 4px #ffffff,
            0 0 0 7px #e53a2f,
            0 4px 10px rgba(0, 0, 0, 0.2);
    }
    .shop-cta-arrow {
        width: 24px;
        height: 24px;
    }
    .shop-cta-arrow svg {
        width: 13px;
        height: 13px;
    }
    .detail-heading {
        font-size: 26px;
    }
    .detail-product-item {
        width: 100%;
    }
    .detail-product-grid {
        gap: 24px;
        margin-bottom: 40px;
    }
    .preparing-text {
        font-size: 18px;
    }
}

/* ===================================
   フッター重なり対策（2026-11-20 先方FB）
   テーマ側（site_base_oot.css）が 480px以下で #footer_base を top:-80px（359px以下は -50px）に
   引き上げているため、ページ下部のボタンにフッターが重なる。本ページでは 0 に戻す。
   ※ 本CSSはテーマCSSより後に読み込まれるので同じ詳細度で上書きできる
   =================================== */
@media screen and (max-width: 480px) {
    #footer_base {
        top: 0;
    }
}
