/* ======================================= */
/* ファイル名: main-content-t-guide.css */
/* ======================================= */

/* --- 2. ページタイトル (H2) --- */
.sub-ttl {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: #007bff; 
    padding: 15px 0;
    margin: 0 0 30px 0;
    border-bottom: 3px solid #007bff;
}

/* --- 3. ガイドマップ画像セクション --- */
a.zoom-img {
    display: block;
    margin: 0 auto 60px;
    width: fit-content;
    line-height: 0;
    cursor: zoom-in;
}

.guidemap {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

a.zoom-img:hover .guidemap {
    transform: translateY(-5px);
    opacity: 0.9;
}

/* --- 4. セクション大見出し (H3) --- */
.content-ttl {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin: 80px 0 50px;
    color: #222;
    letter-spacing: 0.1em;
    position: relative;
    border: none;
    padding: 0;
}

.content-ttl::after {
    content: "Discover Tokunoshima";
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #007bff;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* --- 5. 観光スポットセクション --- */
.sightseeing-section {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* スポットカード強化（構造は維持） */
.spot-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
    padding: 30px 25px 40px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.35s ease;
}

/* 上部アクセントラインで区切り明確化 */
.spot-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 14px 14px 0 0;
}

/* ホバー演出（hover対応端末のみ） */
@media (hover: hover) {
    .spot-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    }
}

/* 6. スポット名称 */
.inner-ttl {
    order: 1;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    text-align: center;
}

/* 下線アクセント */
.inner-ttl::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: #007bff;
}

/* 7. 画像 */
figure {
    order: 2;
    margin: 0 0 25px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

/* 8. 説明文 */
.spot-item p {
    order: 3;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin: 0;
    text-align: justify;
}

/* --- PCレイアウト (768px以上) --- */
@media (min-width: 768px) {

    .content-ttl {
        font-size: 2.4rem;
        margin: 100px 0 60px;
    }

    .spot-item {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 130px;
        padding: 40px 40px 50px;
    }

    .inner-ttl {
        width: 100%;
        font-size: 2rem;
        margin-bottom: 40px;
        text-align: left;
    }

    .inner-ttl::after {
        left: 0;
        transform: none;
    }

    figure {
        flex-basis: 48%;
        margin-bottom: 0;
    }

    .spot-item p {
        flex-basis: 46%;
        padding-top: 10px;
    }

    /* 左右交互配置（既存維持） */
    .spot-item:nth-of-type(even) figure {
        order: 3;
    }
    
    .spot-item:nth-of-type(even) p {
        order: 2;
    }

    @media (hover: hover) {
        .spot-item:hover figure img {
            transform: scale(1.08);
        }
    }
}

/* --- モーダル（画像拡大表示） ※既存機能維持 --- */
.zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    pointer-events: none;
}

.zoom-container img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.zoom-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2100;
}

.zoom-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background-color: #fff;
}

.zoom-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.zoom-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 480px) {
    .zoom-close {
        top: 10px;
        right: 10px;
    }
}