/*
Theme Name:  立川ナイトナビ
Theme URI:   https://example.com/
Description: 立川エリアのスナック・ガールズバー特化型ランキングサイトテーマ。スキン機能によるワンタッチ着せ替えをサポート。
Version:     1.0.0
Author:      Tachikawa Night Navi
Text Domain: tachikawa-night
License:     GPL-2.0+
*/

/* =====================================================
   CSS カスタムプロパティ（デフォルト値）
   スキンCSSでこれらの値を上書きすることでデザイン変更
   ===================================================== */
:root {
    --tnn-color-primary: #FF3366;
    --tnn-color-primary-dark: #E6004C;
    --tnn-color-accent: #06C755;
    --tnn-color-accent-dark: #05A346;
    --tnn-color-bg: #F4F5F7;
    --tnn-color-card-bg: #FFFFFF;
    --tnn-color-text-main: #1A1A1A;
    --tnn-color-text-sub: #666666;
    --tnn-color-border: #E5E7EB;
    --tnn-color-header-bg: #1f1f1f;
    --tnn-color-header-text: #ffffff;
    --tnn-color-tag-bg: #FFF1F5;
    --tnn-color-tag-text: #FF3366;
    --tnn-color-tag-border: #FFD1DD;
    --tnn-color-rank-badge-1: linear-gradient(135deg, #FFDF40, #DAA520);
    --tnn-rank1-text: #4A3500;
    --tnn-color-rank-badge-2: linear-gradient(135deg, #E2E2E2, #8F8F8F);
    --tnn-rank2-text: #333;
    --tnn-color-rank-badge-3: linear-gradient(135deg, #E2945E, #9C582B);
    --tnn-rank3-text: #fff;
    --tnn-font-base: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --tnn-radius-card: 12px;
}

/* =====================================================
   リセット＆ベーススタイル
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--tnn-font-base);
    background-color: var(--tnn-color-bg);
    color: var(--tnn-color-text-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tnn-color-primary);
    text-decoration: none;
}

a:hover {
    opacity: .85;
}

/* =====================================================
   ヘッダー
   ===================================================== */
.tnn-header {
    background: var(--tnn-color-header-bg);
    color: var(--tnn-color-header-text);
    padding: 20px 16px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.tnn-header__inner {
    max-width: 700px;
    margin: 0 auto;
}

.tnn-header__logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: .05em;
}

.tnn-header__logo small {
    font-size: .7rem;
    display: block;
    font-weight: normal;
    opacity: .7;
    margin-top: 2px;
}

.tnn-header__nav {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tnn-header__nav a {
    color: var(--tnn-color-header-text);
    font-size: .85rem;
    opacity: .8;
}

.tnn-header__nav a:hover {
    opacity: 1;
}

/* =====================================================
   メインコンテンツ & ページレイアウト
   ===================================================== */
.tnn-main {
    padding: 16px;
    max-width: 1300px;
    /* フル幅に近いダイナミックなレイアウト用 */
    margin: 0 auto;
}

/* スマホ時デフォルト：1カラム縦積み */
.tnn-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 広告バナーの共通スタイル */
.tnn-ad-banner {
    display: block;
    text-align: center;
}

.tnn-ad-banner img {
    transition: opacity .2s ease, transform .2s ease;
}

.tnn-ad-banner:hover img {
    opacity: 0.95;
    transform: scale(1.01);
}

/* =====================================================
   絞り込みチップ
   ===================================================== */
.tnn-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tnn-filter__chip {
    background: var(--tnn-color-card-bg);
    border: 1px solid var(--tnn-color-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .8rem;
    white-space: nowrap;
    color: var(--tnn-color-text-main);
    font-weight: bold;
    cursor: pointer;
    transition: all .2s ease;
}

.tnn-filter__chip:hover {
    background: #f0f0f0;
}

.tnn-filter__chip.is-active {
    background: var(--tnn-color-primary);
    color: #fff;
    border-color: var(--tnn-color-primary);
}

/* =====================================================
   求人サイト風 店舗カード
   ===================================================== */
.tnn-shop-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tnn-shop-card {
    background: var(--tnn-color-card-bg);
    border: 1px solid var(--tnn-color-border);
    border-radius: var(--tnn-radius-card);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.tnn-shop-card__inner {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 上部のラベル行 */
.tnn-shop-card__head-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.tnn-shop-card__head-labels {
    display: flex;
    gap: 8px;
}

.tnn-shop-card__genre-label {
    background: #ffaa00;
    color: #fff;
    font-weight: bold;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.tnn-shop-card__coupon-label {
    background: #fff;
    color: var(--tnn-color-primary);
    border: 1px solid var(--tnn-color-primary);
    font-weight: bold;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ランキングバッジ（求人風なので左上に固定配置ではない） */
.tnn-shop-card__rank {
    font-weight: 900;
    font-size: 1.1rem;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
}

.tnn-shop-card__rank.rank-1 {
    background: var(--tnn-color-rank-badge-1);
    color: var(--tnn-rank1-text);
}

.tnn-shop-card__rank.rank-2 {
    background: var(--tnn-color-rank-badge-2);
    color: var(--tnn-rank2-text);
}

.tnn-shop-card__rank.rank-3 {
    background: var(--tnn-color-rank-badge-3);
    color: var(--tnn-rank3-text);
}

.tnn-shop-card__rank.rank-other {
    background: #555;
    color: #fff;
    font-size: 1rem;
}

/* 見出しとサムネイルの並び */
.tnn-shop-card__head-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tnn-shop-card__thumb {
    width: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.tnn-shop-card__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.tnn-shop-card__titles {
    flex: 1;
}

.tnn-shop-card__name {
    font-size: .95rem;
    color: #333;
    margin-bottom: 4px;
    font-weight: normal;
}

.tnn-shop-card__catchcopy {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tnn-shop-card__catchcopy a {
    color: #0056b3;
    text-decoration: underline;
}

.tnn-shop-card__catchcopy a:hover {
    color: #ff3366;
}

.tnn-shop-card__access {
    font-size: .85rem;
    color: #666;
}


/* 詳細情報エリア */
.tnn-shop-card__body {
    border-top: 1px dashed #ddd;
    padding-top: 16px;
    margin-top: 4px;
}

.tnn-shop-card__info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    margin-bottom: 12px;
}

.tnn-shop-card__info-table th {
    width: 80px;
    text-align: left;
    padding: 4px 0;
    color: #555;
    white-space: nowrap;
    font-weight: normal;
}

.tnn-shop-card__info-table td {
    padding: 4px 0 4px 8px;
    font-weight: bold;
    color: #d62040;
}

/* タグ一覧 */
.tnn-shop-card__feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tnn-tag--outline {
    background: #fff;
    border: 1px solid #f0b246;
    color: #c68a1f;
    font-size: .75rem;
    padding: 3px 8px;
    border-radius: 4px;
}

/* パラメーター表示群 */
.tnn-shop-card__params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    background: #fafafa;
    padding: 12px;
    border-radius: 8px;
}

.tnn-param-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
}

.tnn-param-name {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    color: #555;
}

.tnn-param-track-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: space-between;
}

.tnn-param-label-l,
.tnn-param-label-r {
    color: #666;
    white-space: nowrap;
}

.tnn-param-track {
    display: flex;
    gap: 4px;
    position: relative;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

.tnn-param-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #ccc;
    z-index: 1;
    transform: translateY(-50%);
}

.tnn-param-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.tnn-param-dot.is-active {
    width: 20px;
    height: 20px;
    background: #e6004c;
    /* うさぎ型などの装飾の代わりに派手な色とサイズを採用 */
    box-shadow: 0 0 6px rgba(230, 0, 76, .5);
}

/* 下部アクションボタンバー */
.tnn-shop-card__footer {
    background: #fff8e1;
    padding: 16px;
    border-top: 1px solid #f2e2b8;
}

.tnn-shop-card__coupon-text {
    font-size: .8rem;
    margin-bottom: 12px;
    text-align: center;
    color: #d62040;
}

.tnn-shop-card__actions {
    display: flex;
    gap: 8px;
}

.tnn-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    padding: 10px 4px;
    line-height: 1.3;
    font-size: .95rem;
    /* スマホでも入るように少し縮小 */
    text-decoration: none;
    transition: opacity .2s;
    letter-spacing: -0.05em;
    /* 詰める */
}

.tnn-btn:hover {
    opacity: .8;
}

.tnn-btn--keep {
    background: #fff;
    border-color: #ccc;
    color: #333;
    font-size: .85rem;
    flex: 0.5;
}

.tnn-btn--line {
    background: #06C755;
    color: #fff;
    flex: 1.8;
    /* LINEボタンを一番大きく目立たせる */
    border-color: #06C755;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}

.tnn-btn--line .main-text {
    font-size: 1.05rem;
}

.tnn-btn--contact {
    background: #fff;
    border-color: #aaa;
    color: #555;
    flex: 1;
}

.tnn-btn--contact .sub-text {
    font-size: .65rem;
    font-weight: normal;
    color: #666;
}

.tnn-btn--contact .main-text {
    font-size: .9rem;
}

.tnn-btn--detail {
    background: #e6004c;
    color: #fff;
    flex: 1;
    flex-direction: row;
    gap: 4px;
}

.tnn-btn--detail .icon {
    font-size: .8rem;
}

/* =====================================================
   フッター
   ===================================================== */
.tnn-footer {
    background: var(--tnn-color-header-bg);
    color: var(--tnn-color-header-text);
    text-align: center;
    padding: 24px 16px;
    margin-top: 40px;
    font-size: .8rem;
}

.tnn-footer__nav {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tnn-footer__nav a {
    color: #ddd;
}

/* =====================================================
   トーストポップアップ
   ===================================================== */
.tnn-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: .9rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275);
    z-index: 9999;
}

.tnn-toast.is-visible {
    transform: translateX(-50%) translateY(0);
}

/* =====================================================
   公式LINE 追従バナー（フローティング）
   ===================================================== */
.tnn-floating-banner {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 9900;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    animation: bounce 2.5s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.tnn-floating-banner__bubble {
    background: #e6004c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(230, 0, 76, .3);
    white-space: nowrap;
    /* 吹き出し内の改行を防ぐ */
}

.tnn-floating-banner__bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #e6004c transparent transparent transparent;
}

/* スマホ表示のベースサイズ（邪魔にならないやや小さめ） */
.tnn-floating-banner img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    transition: transform .2s;
    object-fit: cover;
    background: #fff;
}

.tnn-floating-banner:hover img {
    transform: scale(1.1);
}

.tnn-floating-banner__icon {
    width: 60px;
    height: 60px;
    background: #06C755;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* =====================================================
   レスポンシブ（スマホ優先, 768px以上でPCレイアウト調整）
   ===================================================== */
@media (min-width: 768px) {

    /* --- ↓ PC版 追従バナーのサイズアップ ↓ --- */
    .tnn-floating-banner {
        bottom: 30px;
        right: 30px;
    }

    .tnn-floating-banner__bubble {
        padding: 8px 16px;
        font-size: 1.05rem;
        /* PCでは文字を大きく */
        margin-bottom: 12px;
    }

    .tnn-floating-banner__bubble::after {
        border-width: 8px 8px 0;
        bottom: -8px;
    }

    .tnn-floating-banner img,
    .tnn-floating-banner__icon {
        width: 100px;
        /* PCではアイコンを特大に */
        height: 100px;
        font-size: 1.5rem;
    }

    /* --- ↑ PC版 追従バナーのサイズアップ ↑ --- */
    .tnn-header__logo {
        font-size: 1.6rem;
    }

    /* 2カラムレイアウト（左：メイン、右：サイドバー） */
    .tnn-layout-wrapper {
        display: grid;
        grid-template-columns: 1fr 300px;
        /* align-items: start; を削除（サイドバーをフルハイトに伸ばすため） */
        gap: 32px;
    }

    /* 追従サイドバーの固定処理 */
    .tnn-sticky-wrap {
        position: sticky;
        top: 80px;
    }

    /* =========== PC共通のベース（横長カード） =========== */
    .tnn-shop-card__inner {
        flex-direction: row;
    }

    .tnn-shop-card__head {
        flex: 1;
    }

    .tnn-shop-card__head-main {
        display: block;
    }

    .tnn-shop-card__thumb {
        width: auto;
        max-width: 320px;
        margin-bottom: 12px;
    }

    .tnn-shop-card__body {
        border-top: none;
        border-left: 1px dashed #ddd;
        padding-top: 0;
        padding-left: 20px;
        margin-top: 0;
        flex: 1.5;
    }

    .tnn-shop-card__params {
        grid-template-columns: 1fr 1fr;
    }

    /* =========== レイアウト1: 全店ワンカラム =========== */
    .tnn-layout-1col .tnn-shop-list {
        display: flex;
        /* デフォルトの flex-direction: column が効く */
        gap: 24px;
    }

    /* =========== レイアウト2: 1〜3位ワンカラム、4位以下2カラム =========== */
    .tnn-layout-2col .tnn-shop-list,
    .tnn-layout-3col .tnn-shop-list {
        /* 3colの768px〜1100px間も2colとする */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        align-items: stretch;
    }

    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(-n+3),
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(-n+3) {
        grid-column: 1 / -1;
    }

    /* 4位以下のカード（2col/3col共通）を縦積みに戻す */
    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__inner,
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__inner {
        flex-direction: column;
    }

    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__head-main,
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__head-main {
        display: flex;
        align-items: center;
    }

    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__thumb,
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__thumb {
        width: 100px;
        margin-bottom: 0;
    }

    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__body,
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__body {
        border-top: 1px dashed #ddd;
        border-left: none;
        padding-top: 16px;
        padding-left: 0;
    }

    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__params,
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__params {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__footer,
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-shop-card__footer {
        padding: 12px;
    }

    .tnn-layout-2col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-btn,
    .tnn-layout-3col .tnn-shop-list>.tnn-shop-card:nth-child(n+4) .tnn-btn {
        padding: 8px 4px;
        font-size: .85rem;
    }
}

/* =========== レイアウト3: さらに広い画面で4位以下を3列にする =========== */
@media (min-width: 1100px) {
    .tnn-layout-3col .tnn-shop-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   店舗詳細ページ専用スタイル (single-shop.php)
   ===================================================== */
.tnn-single-page {
    padding-bottom: 80px;
    /* 追従ボタン用の余白 */
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 16px;
}

@media (min-width: 768px) {
    .tnn-single-page {
        padding: 32px;
        border-radius: var(--tnn-radius-card);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}

/* ヒーローエリア */
.tnn-shop-single__hero {
    margin: -16px -16px 16px -16px;
    /* mainのpaddingを打ち消して全幅に */
    position: relative;
    background: #000;
}

@media (min-width: 768px) {
    .tnn-shop-single__hero {
        margin: -32px -32px 24px -32px;
        border-radius: var(--tnn-radius-card) var(--tnn-radius-card) 0 0;
        overflow: hidden;
    }
}

.tnn-shop-single__thumb img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
    display: block;
}

.tnn-shop-single__hero-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    padding: 8px 16px 8px 24px;
    border-radius: 0 24px 0 0;
    font-weight: bold;
    box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.5);
}

.tnn-shop-single__hero-points {
    font-size: 1.2rem;
}

/* タイトル周り */
.tnn-shop-single__name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* インスタ風横スクロールブログ (Stories) */
.tnn-shop-stories {
    margin: 24px 0;
    overflow: hidden;
}

.tnn-shop-stories__title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.tnn-shop-stories__track {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    /* スクロールバー余白 */
    scrollbar-width: none;
    /* Firefox */
}

.tnn-shop-stories__track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tnn-shop-stories__item {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 6px;
}

.tnn-shop-stories__img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--tnn-color-primary);
    background-color: #eee;
}

.tnn-shop-stories__text {
    font-size: 0.7rem;
    color: var(--tnn-color-text);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ボタンエリア & クーポン */
.tnn-shop-single__actions-area {
    margin: 24px 0;
}

.tnn-coupon-box {
    background: rgba(255, 51, 102, .05);
    border: 1px dashed rgba(255, 51, 102, .4);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.tnn-coupon-box__title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--tnn-color-primary);
    margin-bottom: 8px;
}

.tnn-coupon-box__desc {
    font-size: 1.1rem;
    font-weight: bold;
}

.tnn-coupon-box__exp {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 4px;
}

.tnn-shop-single__3btn {
    display: flex;
    gap: 8px;
}

.tnn-shop-single__3btn .tnn-btn {
    flex: 1;
    justify-content: center;
    padding: 12px 8px;
    font-size: 0.9rem;
}

.tnn-shop-single__3btn .tnn-btn--keep {
    flex: 0.6;
}

/* 基本情報とパラメータ */
.tnn-shop-single__info-wrapper {
    margin: 32px 0;
}

.tnn-heading-sec {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--tnn-color-primary);
}

/* パラメーターグリッド：スマホ=1列 / PC（768px以上）=2列 */
.tnn-params-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .tnn-params-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.tnn-param-row {
    background: var(--tnn-color-card-bg);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--tnn-color-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tnn-param-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--tnn-color-primary);
    text-align: center;
}

.tnn-param-track-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.tnn-param-label-l,
.tnn-param-label-r {
    font-size: 0.7rem;
    color: var(--tnn-color-text-sub);
    white-space: nowrap;
}

.tnn-param-track {
    flex: 1;
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 100px;
}

.tnn-param-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tnn-color-border);
    transform: translateY(-50%);
    z-index: 1;
}

.tnn-param-dot {
    width: 8px;
    height: 8px;
    background: var(--tnn-color-border);
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.tnn-param-dot.is-active {
    background: var(--tnn-color-primary);
    transform: scale(1.5);
    box-shadow: 0 0 5px var(--tnn-color-primary);
}

.tnn-shop-single__desc-body {
    background: var(--tnn-color-card-bg);
    padding: 16px;
    border-radius: var(--tnn-radius-card);
    line-height: 1.8;
}

/* ブログリスト (3件出し) */
.tnn-blog-list-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--tnn-color-card-bg);
    border-radius: 8px;
    border: 1px solid var(--tnn-color-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.tnn-blog-list-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.tnn-blog-list-item__thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.tnn-blog-list-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tnn-blog-list-item__date {
    font-size: 0.7rem;
    color: var(--tnn-color-text-sub);
    margin-bottom: 4px;
}

.tnn-blog-list-item__tit {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.4;
}

/* スマホ用 追従フッターボタン */
.tnn-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9990;
    /* toastやbannerの少し下 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.tnn-sticky-footer__inner {
    display: flex;
    width: 100%;
}

.tnn-sticky-footer .tnn-btn {
    flex: 1;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PCの場合はスマホ用固定フッターを消す */
@media (min-width: 768px) {
    .tnn-sticky-footer {
        display: none;
    }

    .tnn-single-page {
        padding-bottom: 32px;
    }
}

/* =====================================================
   ユーティリティクラス（表示切り替え）
   ===================================================== */
@media (max-width: 991px) {
    .tnn-u-pc-only {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .tnn-u-sp-only {
        display: none !important;
    }
}

/* =====================================================
   トップページ：サイドバー新着ブログ（PC専用2x2グリッド）
   ===================================================== */
.tnn-sidebar-blog {
    margin-top: 32px;
}

.tnn-sidebar-blog__title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tnn-color-primary);
}

.tnn-sidebar-blog__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tnn-sidebar-blog__item {
    display: block;
    text-decoration: none;
    color: var(--tnn-color-text);
}

.tnn-sidebar-blog__item:hover .tnn-sidebar-blog__img {
    transform: scale(1.05);
}

.tnn-sidebar-blog__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f1f5f9;
    margin-bottom: 8px;
}

.tnn-sidebar-blog__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tnn-sidebar-blog__text {
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tnn-sidebar-blog__shop {
    display: block;
    font-size: 0.7rem;
    color: var(--tnn-color-text-sub);
    margin-top: 4px;
}

/* ── 2段フィルターエリア ─────────────────────────── */
.tnn-filter-area {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* 幅をページ幅に制限（flexの子要素が膨らまないように） */
    min-width: 0;
    width: 100%;
}

/* グリッドレイアウト：ラベル(auto) | スクロールエリア(1fr) */
.tnn-filter-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.tnn-filter-row__label {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--tnn-color-text-sub);
    white-space: nowrap;
    background: var(--tnn-color-card-bg);
    border: 1px solid var(--tnn-color-border);
    border-radius: 20px;
    padding: 5px 10px;
    line-height: 1.2;
}

/* スクロールコンテナ：gridの 1fr セルに収まる → 確実に幅が制限される */
.tnn-filter {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    /* 横スクロール有効 */
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    /* iOS慣性スクロール */
    /* scrollbar-width: none を削除 → スクロールバーを表示する */
}

.tnn-filter__chip {
    flex-shrink: 0;
    /* チップが縮まらないようにする */
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--tnn-color-border);
    background: var(--tnn-color-card-bg);
    color: var(--tnn-color-text-main);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    line-height: 1.2;
    font-weight: bold;
}

.tnn-filter__chip:hover {
    border-color: var(--tnn-color-primary);
    color: var(--tnn-color-primary);
}

.tnn-filter__chip.is-active {
    background: var(--tnn-color-primary);
    border-color: var(--tnn-color-primary);
    color: #fff;
    font-weight: bold;
}