/* =========================================
   spot.css  (名所：共通 / 一覧 / 単一 / トップ)
   ========================================= */

:root {
    --heart-s: 18px;
    --heart-s-lg: 22px;
    --heart-s-head: 28px;
    --heart-stroke: 3.7;
    --heart-on: #e14b4b;
    --c-border: #e5e7eb;
}

/* -----------------------------------------
   ページヘッダー（一覧のh1など）
----------------------------------------- */
.page-head {
    width: min(900px, 96%);
    margin: 60px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .page-head {
        padding: 0;
    }
}

.page-head .page-title {
    font-size: clamp(22px, 3vw, 28px);
    color: var(--c-text);
    font-weight: 500;
    margin: 0 0 8px;
    border-bottom: solid 3px #b4c7ce;
    position: relative;
    line-height: 2;
}

.page-head .page-title:after {
    content: "";
    position: absolute;
    border-bottom: solid 3px var(--c-text);
    left: 0;
    bottom: -3px;
    width: 20%;
}

.page-head .page-desc {
    font-size: 14px;
    color: #666;
}

/* ============ タグ/チップ（共通） ============ */
.tag,
.chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f6f8;
    color: #334;
    text-decoration: none;
}

.tag--town,
.chip--town {
    background: #eef6ff;
}

.tag--theme,
.chip--theme {
    background: #f7eefc;
}


/* =========================================
   単一ページ：コンテナ・ヘッダー
========================================= */

.spot .container--narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* -------- ヘッダー -------- */
.spot__header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title fav"
        "catch fav";
    gap: .4rem 1rem;
    align-items: start;
    margin-bottom: 12px;
}

.spot__header .fav-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ブックマーク */
.spot-card .fav-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.spot__header .fav-btn {
    justify-self: end;
    border: none;
    background: transparent;
    box-shadow: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .2s ease;
}

.spot__title {
    grid-area: title;
    margin: 0;
    font-weight: 500;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.35;
}

.spot__catch {
    grid-area: catch;
    margin: 0;
    color: #666;
    font-size: .95rem;
}

@media (max-width: 768px) {
    .spot__header {
        position: relative;
        display: block;
    }

    .spot__header .fav-btn {
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
    }

    .spot__title {
        margin-bottom: 4px;
        padding-right: 50px;
    }

    .spot__catch {
        margin-bottom: 12px;
    }

    .spot__fav {
        margin-top: 4px;
    }

    .spot-card .fav-btn svg {
        width: 14px;
        height: 14px;
    }

}

/* タグ（町/テーマ） */
.spot__tax {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

/* =========================================
   ギャラリー
========================================= */

.spot__gallery {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    margin: 12px 0 16px;
    align-items: stretch;
}

.spot__main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
}

.spot__main img,
.spot__main iframe,
.spot__main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

/* サムネ */
.spot__thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.spot__thumbs .thumb,
.spot__thumbs img,
.spot__thumbs .ph {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #f2f2f2;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.spot__thumbs img {
    object-fit: cover;
}

/* バッジ 
.thumb__badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    padding: .3em .6em;
    border-radius: 999px;
}*/

/* =========================================
   目次（TOC）
========================================= */

.spot__toc {
    margin: 8px 0 16px;
}

.spot__toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.spot__toc a {
    display: inline-flex;
    gap: .4em;
    padding: .45em .8em;
    border-radius: 999px;
    background: #0b607d10;
    color: var(--c-text);
    text-decoration: none;
    transition: background .2s;
}

.spot__toc a:hover {
    background: #0b607d18;
}

@media (max-width: 768px) {
    .spot__toc ul {
        justify-content: center;
        gap: .8rem 1rem;
    }

    .spot__toc a {
        padding: .3em 1em;
        font-size: 14px;
        font-weight: 500;
    }
}

/* =========================================
   本文セクション（.spot__section）
========================================= */

.spot__section {
    border-top: 1px solid #ddd;
    padding: 16px 0;
    scroll-margin-top: 80px;
}

.spot__section a {
    color: #142dab;
}

.spot__h2 {
    display: flex;
    gap: .5em;
    margin: 0 0 8px;
    font-size: 18px;
}

/* 本文インデント（地図除外） */
.spot__section>*:not(.spot__h2):not(.spot__map) {
    padding-left: 1.5em;
    line-height: 1.5;
}


/* 折りたたみ */
.is-toggle .spot__h2 {
    cursor: pointer;
}

.is-toggle .spot__h2::before {
    content: "▾";
    font-size: .9em;
    opacity: .8;
    transform: translateY(.5px);
}

.is-toggle.is-collapsed .spot__h2::before {
    content: "▸";
}

.is-toggle.is-collapsed>*:not(.spot__h2) {
    display: none;
}

/* 地図 */
.spot__map {
    margin-top: 12px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    min-height: 260px;
}

.spot__map iframe {
    width: 100%;
    height: 360px;
    border: none;
}

/* =========================================
   一覧ページ：グリッド  (spot-grid)
========================================= */

.spot-grid {
    width: min(900px, 96%);
    margin: 0 auto 40px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.spot-grid__item {
    display: flex;
    flex-direction: column;
}

/* =========================================
   一覧・関連・トップ共通のカード (spot-card)
========================================= */

.spot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.spot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

/* ------- カードリンク全体 -------- */
.spot-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* ------- カード内メタ（タイトル・タグなど） -------- */
.spot-card__meta {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    box-sizing: border-box;
}

/* ------- サムネイル（画像60%） -------- */
.spot-grid .spot-card {
    height: 360px;
}

.spot-grid .spot-card__thumb {
    flex: 0 0 60%;
    height: 60%;
    background: #f2f4f6;
    overflow: hidden;
    margin: 0;
}

.spot-grid .spot-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ------- タイトル / リード文 -------- */
.spot-grid .spot-card__title,
.spot-card__title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px;
}

.spot-grid .spot-card__lead {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------- タグ欄 -------- */
.spot-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag--more {
    background: #eee;
    color: #666;
    padding: 2.5px 6px;
    border-radius: 999px;
}

/* ------- カード内しおり（右上固定） -------- */
.spot-card .fav-btn {
    position: absolute;
    right: 8px;
    top: calc(0% + 8px);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .8);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: background .25s, transform .2s;
}

.spot-card .fav-btn:hover {
    background: rgba(255, 255, 255, .95);
    transform: scale(1.05);
}

.spot-card .fav-btn:focus-visible {
    outline: 2px solid #8ac4ff;
    outline-offset: 2px;
}

/* 名所カード・詳細ページ：押した時は塗りつぶす */
.spot-card .fav-btn[aria-pressed="true"] svg path,
.spot__header .fav-btn[aria-pressed="true"] svg path {
    fill: currentColor !important;
}


/* =========================================
   関連名所（単一ページ）
========================================= */

.spot__related {
    margin-top: 48px;
}

.spot__related .spot-h2 {
    margin-bottom: 20px;
}

/* =========================================
   トップページ：カルーセル  (spot-carousel)
========================================= */

.spot-carousel {
    padding: clamp(28px, 5vw, 56px) 0;
}

.spot-carousel__inner {
    width: min(1100px, 80%);
    margin: 0 auto;
}

.spot-carousel__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.spot-carousel__head h2 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
}

.spot-carousel__sub {
    color: #777;
    font-size: .9rem;
}

/* =========================================
   スクロール本体（scroller）
========================================= */

.scroller {
    position: relative;
}

.scroller .viewport {
    overflow: hidden;
}

.scroller .track {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform .45s ease;
    padding: 6px 4px;
}

/* -------- 各スライド -------- */
.slide {
    flex: 0 0 auto;
    width: var(--card-w, 300px);
}

/* =========================================
   カルーセル内カード（spot-card流用）
========================================= */

.spot-carousel .spot-card {
    height: var(--card-h, 333px);
}

.spot-carousel .spot-card__thumb {
    height: 60%;
    background: #f2f4f6;
    overflow: hidden;
    margin: 0;
}

.spot-carousel .spot-card__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.spot-carousel .spot-card__meta {
    padding: 8px 16px 16px;
    gap: 8px;
}

/* =========================================
   ナビゲーション（左右矢印）
========================================= */

.scroller .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d8d8d8;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.scroller .nav:hover {
    background: #f8f8f8;
}

.scroller .prev {
    left: -14px;
}

.scroller .next {
    right: -14px;
}

/* =========================================
   SP 最適化
========================================= */

@media (max-width: 768px) {

    /* ナビ矢印の位置調整 */
    .scroller .prev {
        left: -6px;
    }

    .scroller .next {
        right: -6px;
    }
}

/* =========================================
   Q&A（名所詳細ページ内）
========================================= */

/* 一覧全体（単一スポット内のQ&A一覧） */
.qa-list {
    width: min(900px, 96%);
    margin: 0 auto 40px;
    display: grid;
    gap: 20px;
}

/* カード本体 */
.qa-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* トグル（details） */
.qa-item details {
    border-radius: 14px;
}

.qa-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6em;
    padding: 1em 1.2em;
    cursor: pointer;
    font-weight: 500;
    background: #f8fbfc;
    list-style: none;
    border-radius: 14px;
}

.qa-item summary::-webkit-details-marker {
    display: none;
}

/* Qラベル・テキスト */
.qa-label {
    font-weight: 700;
    color: var(--c-text);
    flex-shrink: 0;
}

.qa-qtext {
    flex: 1;
    font-weight: 500;
    color: #444;
    line-height: 1.5;
}

/* 矢印 */
.qa-acc .chev {
    width: 20px;
    height: 20px;
    margin-left: .5em;
    flex-shrink: 0;
    transition: transform .3s ease;
    color: #444;
}

/* 開いたとき */
.qa-acc[open] .chev {
    transform: rotate(180deg);
}

/* 回答部分 */
.qa-a {
    padding: 1em 1.5em 1.3em;
    background: #fff;
    color: #444;
    line-height: 1.7;
    border-top: 1px solid #eee;
}

.qa-a .qa-label.a {
    color: #e72e2b;
    margin-right: .5em;
}

.qa-atext p {
    margin: .6em 0;
}

.qa-pending {
    color: #777;
    font-style: italic;
}

/* 質問者リンク・その他 */
.qa-more {
    margin-top: 10px;
}

.qa-more a {
    color: var(--c-text);
    text-decoration: underline;
}

/* 関連名所タグ（単一Q&A内） */
.qa-spots,
.others {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: .4em 1.2em .6em;
    padding: 0;
}

.qa-spots a,
.others li {
    display: inline-block;
    background: #e9e9e9;
    color: var(--c-text);
    font-size: .85rem;
    padding: 4px 10px;
    border-radius: 999px;
    transition: background .2s ease;
}

.qa-spots a:hover {
    background: var(--c-text);
    color: #e9e9e9;
}

/* 空表示 */
.no-empty {
    text-align: center;
    color: #666;
    margin: 40px 0;
}

/* -------- SP調整 -------- */
@media (max-width: 768px) {
    .qa-item summary {
        padding: 1em;
    }

    .qa-qtext {
        font-size: .95rem;
    }

    .qa-a {
        padding: .9em 1.2em 1.2em;
    }
}

.qa-ask {
    text-align: center;
}

.qa-ask .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    background: var(--c-text);
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    font-size: 1rem;
    text-decoration: none;
    transition: filter 0.25s ease;
    width: 300px;
    max-width: 90%;
}

.qa-ask .btn:hover {
    filter: brightness(1.08);
}

.qa-ask .ask-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.qa-ask .ask-icon path,
.qa-ask .ask-icon circle {
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}


/* =========================================
   検索結果：名所カードレイアウト補助
========================================= */

/* ヒット理由ボックス */
.hit-reasons {
    margin-top: 16px;
    padding: 0 18px;
    font-size: .7rem;
    border: 1px solid #d4dce1;
    border-radius: 6px;
    background: #f9fbfc;
}

/* 検索結果ページ */

.search-spot .spot-list {
    min-height: 300px;
    padding-top: 24px;
}

/* 「見つからない」時 */
.search-spot .no-result {
    padding: 40px 0;
    text-align: center;
    font-size: 18px;
    color: #555;
}

.no-result-wrap {
    text-align: center;
    padding: 40px 0;
}

.no-result-img {
    width: 300px;
}

/* =========================================
   プレースホルダー（PH）
========================================= */

.ph {
    background: #eee;
    color: #666;
    display: grid;
    place-items: center;
    border-radius: 10px;
    min-height: 80px;
}

.ph--main {
    min-height: 320px;
}

.ph--thumb {
    height: 80px;
}

/* =========================================
   レスポンシブ（SP = max 768px）
========================================= */

@media (max-width: 768px) {

    /* -------- 単一ページ：ギャラリー -------- */
    .spot__gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spot__thumbs {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        gap: 8px;
    }

    .spot__thumbs .thumb,
    .spot__thumbs img,
    .spot__thumbs .ph {
        aspect-ratio: 16/9;
        min-height: 64px;
    }

    /* 本文インデント少し短く */
    .spot__section>*:not(.spot__h2):not(.spot__map) {
        padding-left: 1em;
    }

    /* -------- 一覧ページ：spot-grid -------- */
    .spot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: min(900px, 94%);
        margin-inline: auto;
    }

    .spot-grid .spot-card {
        height: 280px;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
    }

    .spot-grid .spot-card__thumb {
        height: 60%;
    }

    .spot-grid .spot-card__meta {
        padding: 10px;
        gap: 4px;
    }

    .spot-grid .spot-card__lead {
        font-size: 11.5px;
        line-height: 1.4;
        color: #555;
        margin-bottom: 2px;
    }

    .spot-grid .spot-card__title {
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .spot-grid .tag {
        padding: 2.5px 6px;
        border-radius: 999px;
        font-size: 11px;
    }

    /* -------- カード内♡ -------- */
    .spot-card .fav-btn {
        width: 28px;
        height: 28px;
        right: 6px;
        bottom: calc(40% + 6px);
    }

    /* -------- カルーセル矢印 -------- */
    .scroller .prev {
        left: -6px;
    }

    .scroller .next {
        right: -6px;
    }
}

/* =========================================
   レスポンシブ：中サイズ（769px〜）
========================================= */

@media (min-width: 769px) {

    /* PCで3カラム */
    .spot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   カード幅（カルーセル用）
========================================= */

@media (min-width: 751px) {
    :root {
        --card-w: 300px;
    }
}

/* =========================================
   ガイド小ネタ（Tips）
========================================= */

/* セクションタイトル（sticky 行） */
.tips-section__title {
    margin: 24px 0 12px;
    font-size: clamp(18px, 2.8vw, 22px);
    font-weight: 700;
    position: sticky;
    top: 48px;
    background: #fff;
    padding: 8px 0;
    border-left: 6px solid #eee;
    padding-left: 10px;
}

/* 小ネタリスト */
.tips-archive__list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
}

/* カード */
.tip-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
}

.tip-card__title {
    font-size: 18px;
    margin: 0 0 8px;
}

.tip-card__excerpt {
    color: #444;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 小ネタ → 関連名所タグ */
.tip-card__spots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-spot {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

.btn-spot:hover {
    border-color: #bbb;
}

/* =========================================
   Glossary（用語集） - 共通 / single / archive
========================================= */

/* 用語集：単一ページ */
.glossary-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    line-height: 1.9;
    color: var(--c-body);
}

.glossary-entry__title {
    font-size: clamp(22px, 3vw, 26px);
    font-weight: 600;
    margin: 0 0 1em;
    border-left: 4px solid var(--c-text);
    padding-bottom: .3em;
    padding-left: .6em;
}

.glossary-entry__body p {
    margin-bottom: 1.4em;
}

.glossary-entry {
    line-height: 1.9;
}

.glossary-entry p+p {
    margin-top: 1em;
}

/* 用語リンク（本文内） */
a.glossary-link {
    color: #004668;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #007da3;
    text-underline-offset: 3px;
    transition: color .25s ease, text-decoration-color .25s ease;
}

a.glossary-link:hover {
    color: #007da3;
    text-decoration-color: #007da3;
}

/* 関連名所：カード群 */
.related-spots {
    margin-top: 64px;
}

.related-spots__title {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 20px;
    border-bottom: 2px solid #b4c7ce;
    display: inline-block;
}

.related-spots .spot-cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* 一覧：タイトル */
.glossary-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    border-left: 4px solid var(--c-text);
    padding-left: .6em;
}

/* アーカイブページのメイン幅を正確に制御 */
.glossary-list {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

/* 一覧ページ */
.glossary-archive {
    padding: 40px 16px 80px;
    line-height: 1.9;
    color: var(--c-body);
}

.glossary-items {
    display: flex;
    flex-wrap: wrap;
    gap: .8em 1.6em;
    padding-left: 0;
}

.glossary-item a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--c-text);
}

.glossary-item a:hover {
    color: #007da3;
}

/* 戻るリンク */
.glossary-back {
    text-align: center;
    margin-top: 40px;
}

.glossary-back a {
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.glossary-back a:hover {
    opacity: .7;
}