@charset "utf-8";

/* ============================================================
   main-content.css - N-1 TRAVEL CENTER [Tablet Optimized Edition]
   - 配色：ロイヤルブルー(背景) × ホワイト(主字) × ゴールド(小字)
   - 修正：鹿児島店(is-shop-info)の中央寄せ & アイキャッチ(gold)の維持
   - 修正：リンク集(is-static)は左寄せレイアウトを維持
   - 修正：テーブル幅を画像幅(500px)に制限し、中央揃えを最適化
   - 修正：店舗写真の2枚重ね（右下へ斜めズレ配置・常時可視化）
   - 修正：画像にマウスを乗せるだけで最前面へ切り替わる挙動に変更
   - 修正：【確定】emphasize-textが複数行になってもgoldバーが1行目頭に固定
   - 調整：全状態のシャドウを軽量化（rgbaの透明度を0.05〜0.12に抑制）
   - 追加修正：タブレット・SP時の画像サイズを90%に拡大調整
   - 追加修正：PC版の画像ズレ幅を左上(-10%)・右下(45%)へ拡張し、レスポンシブで最適化
   ============================================================ */

/* --- 0. スクロール演出・アニメーション初期設定 --- */
.reveal-up,
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
}

.reveal-up.is-visible,
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

[id^="info"], [id^="links"] {
    scroll-margin-top: 120px;
}

/* --- 1. 全体コンテナ --- */
.shop-main-container {
    box-sizing: border-box;
    width: 92%;
    max-width: 1300px;
    margin: 80px auto; 
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* --- 2. 共通セクションヘッダー --- */
.section-header {
    padding: 0 0 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 0;
}

.title-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sub-title {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: #d4a74a;
    letter-spacing: 0.3em;
    font-weight: 700;
}

.header-title {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    margin: 0;
}

/* --- 3. SHOP INFO (左側メイン) --- */
.shop-info-area {
    flex: 2;
    min-width: 0;
}

/* --- 4. PARTNERS & LINKS (右側サイド) --- */
.side-link-area {
    flex: 1;
    min-width: 0;
}

.store-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.store-accordion {
    width: 100%;
}

.store-card {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    cursor: pointer;
    background: transparent;
    padding: 0;
    text-decoration: none;
    overflow: hidden;
    transition: 0.4s;
}

.store-card-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: #0054a4;
    padding: 12px 30px 12px 15px;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    transition: 0.3s ease;
}

.store-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    color: #d4a74a;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.store-location {
    font-size: 18px;
    color: #ffffff;
    font-weight: 800;
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.store-btn-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 50%;
    position: relative;
    margin-left: 15px;
    transition: 0.3s;
    flex-shrink: 0;
}

.store-btn-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 42%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transform: translate(-50%, -50%) rotate(45deg);
}

.store-card:not(.is-static):hover .store-card-content {
    background: #004080;
    padding-left: 20px;
}

/* is-static 2段レイアウト */
.store-card.is-static {
    cursor: default;
    pointer-events: none;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
}

.store-card.is-static .store-card-content {
    width: fit-content;
}

.store-card.is-static .store-btn-arrow {
    display: none;
}

/* 2段目テキスト：お見積り致します等 */
/* 【修正：絶対配置による金バーの1行目固定化】 */
.emphasize-text {
    display: block;
    font-size: 16px;
    color: #444;
    font-weight: 700;
    line-height: 1.6;
    padding-left: 18px; /* 金バー(3px) + 余白(15px) */
    position: relative;
    text-align: left;
}

.emphasize-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em; /* 1行目の高さに固定 */
    width: 3px;
    height: 1.1em; /* 文字1行分の高さ */
    background: #d4a74a;
}

/* --- 5. アコーディオン詳細 --- */
.store-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fcfcfc;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.store-accordion.is-open .store-accordion-content {
    max-height: 2000px;
    border-bottom: 1px solid #eee;
}

.sub-link-list {
    list-style: none;
    padding: 10px 30px;
    margin: 0;
    border-left: 5px solid #0054a4;
}

.sub-link-list li {
    border-bottom: 1px solid #eee;
}

.sub-link-list li:last-child {
    border-bottom: none;
}

.sub-link-list a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    padding: 15px 0;
    transition: 0.3s;
    width: 100%;
}

.sub-link-list a:hover { color: #0054a4; padding-left: 8px; }

.shop-details-inner { padding: 25px; display: flex; gap: 30px; }

/* --- 5-1. 店舗画像2枚重ね設定 --- */
.shop-image { 
    flex-shrink: 0; 
    width: 45%; 
}

.dual-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 10px;
}

/* 店舗画像全体設定 (PC) */
.dual-image-container img {
    position: absolute;
    width: 70% !important;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06); /* シャドウ軽量化 */
    border: 4px solid #fff;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

/* 外観画像配置 (PC：右下) */
.shop-img-outer { 
    top: 45%; 
    left: 30%; 
    z-index: 2; 
}

/* 内観画像配置 (PC：左上) */
.shop-img-inner { 
    top: -10%; 
    left: -5%; 
    z-index: 1; 
}

/* マウスホバーで前面に出す演出 */
.dual-image-container img:hover {
    z-index: 10 !important;
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12) !important; /* シャドウ軽量化 */
}

.dual-image-container:hover img:not(:hover) {
    opacity: 0.9;
    filter: brightness(0.9);
}

.shop-info-text { flex-grow: 1; }

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table th { width: 100px; color: #d4a74a; text-align: left; padding: 10px 0; font-size: 14px; white-space: nowrap; }
.info-table td { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 15px; color: #444; line-height: 1.6; }

/* --- 6. アフィリエイトブロック & ボタン --- */
.side-affiliate-block {
    margin-top: 15px;
    padding: 20px 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
}

.affiliate-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #d4a74a;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 12px;
}

.affiliate-banner a {
    display: inline-block;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.affiliate-banner a:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.affiliate-banner img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.affiliate-caption {
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    font-weight: 700;
}

.map-link {
    display: inline-block;
    padding: 12px 28px;
    background: #ff9800 !important;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-link:hover {
    background: #0054a4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.group-top-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 25px;
    background: #fff;
    border: 2px solid #0054a4;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.group-top-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0054a4;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.group-top-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.group-top-link:hover .group-main-text,
.group-top-link:hover .group-sub-text {
    color: #ffffff;
}

.group-link-content { display: flex; flex-direction: column; gap: 5px; }
.group-sub-text { font-family: 'Oswald', sans-serif; font-size: 11px; color: #d4a74a; letter-spacing: 0.15em; font-weight: 700; }
.group-main-text { font-size: 20px; font-weight: 800; color: #1a1a1a; transition: color 0.3s; }

.group-link-icon {
    width: 24px;
    height: 24px;
    background-color: #0054a4;
    transition: all 0.4s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.group-top-link:hover .group-link-icon { background-color: #ffffff; transform: translate(3px, -3px); }

/* --- 7. レスポンシブ (タブレット・スマホ最適化) --- */

@media screen and (max-width: 1024px) {
    .shop-main-container {
        gap: 30px;
        width: 94%;
    }
    .shop-details-inner {
        gap: 20px;
    }
    .shop-image {
        width: 40%;
    }
}

@media screen and (max-width: 960px) {
    .shop-main-container {
        flex-direction: column; 
        align-items: center; 
        margin: 60px auto;
        gap: 60px;
        width: 92%;
    }
    
    .shop-info-area,
    .side-link-area {
        width: 100%;
        max-width: 800px; 
        margin-left: auto;
        margin-right: auto;
        flex: none;
    }

    .section-header {
        justify-content: center;
        text-align: center;
    }

    .title-wrap {
        align-items: center;
    }

    .side-link-area .store-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100%;
    }

    .side-affiliate-block {
        grid-column: span 2;
        margin-top: 0;
        width: 100%;
    }

    /* 鹿児島店(is-shop-info)のみ中央寄せ。リンク集(is-static)は左寄せを維持 */
    .store-card.is-shop-info {
        align-items: center !important;
        text-align: center;
        flex-direction: column !important;
    }

    .store-card.is-shop-info .store-card-content {
        margin: 0 auto;
    }

    /* 鹿児島店：中央寄せ時のアイキャッチ(gold)の維持と複数行対応 */
    .store-card.is-shop-info .emphasize-text {
        padding-left: 18px; /* 絶対配置バー用のスペースを確保 */
        margin-top: 8px;
        text-align: left; /* 複数行時に頭を揃えるためleft */
        display: block;
        width: fit-content;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .store-card.is-shop-info .emphasize-text::before {
        display: block;
        position: absolute;
        left: 0;
        top: 0.25em; /* 複数行になっても1行目の頭に固定 */
    }

    /* アコーディオン内部の中央寄せ修正 */
    .shop-details-inner {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        text-align: center;
    }

    /* 【画像拡大修正】タブレット・SP表示での画像サイズ・配置調整 */
    .dual-image-container img {
        width: 85% !important; /* 画面幅に対して少し拡大 */
    }

    /* 外観画像配置 (SP版：見切れ防止のため内側へ) */
    .shop-img-outer { 
        top: 35% !important; 
        left: 20% !important; 
    }

    /* 内観画像配置 (SP版：見切れ防止のため内側へ) */
    .shop-img-inner { 
        top: -5% !important; 
        left: -5% !important; 
    }

    .shop-image {
        width: 100%;
        max-width: 400px; 
        margin: 0 auto 50px; 
    }

    .shop-info-text {
        width: 100%;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-table {
        margin: 0 auto 25px;
        width: 100%;
    }

    .info-table th {
        text-align: left;
        padding-right: 15px;
        width: 90px;
        font-size: 13px;
    }

    .info-table td {
        text-align: left;
        font-size: 14px;
    }

    .map-link {
        margin-top: 10px;
        display: inline-block;
        width: auto;
        min-width: 200px;
    }
}

@media screen and (max-width: 768px) {
    .shop-main-container {
        width: 90%;
        gap: 50px;
    }

    .header-title { font-size: 20px; }

    .side-link-area .store-links {
        grid-template-columns: 1fr;
    }

    .side-affiliate-block {
        grid-column: span 1;
        margin-top: 10px;
    }

    .store-card-content {
        max-width: 100%;
        clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    }

    .store-location { font-size: 16px; }

    .info-table th { width: 85px; }
    
    .sub-link-list { padding: 10px 20px; }
    .sub-link-list a { padding: 18px 0; font-size: 16px; }

    .group-main-text { font-size: 18px; }

    .emphasize-text { font-size: 15px; }
}