/* ==========================================================
   車中泊マップ — Design System  (mobile, max-width: 768px)
   ========================================================== */

:root {
    /* 旧サイト(_old/html/css)のブランドブルー #0D66C0 を基調とするパレット（main.cssと同一） */
    --brand:        #0D66C0;
    --brand-deep:   #094B8F;
    --brand-mid:    #2E7BD4;
    --sun:          #FFCC00;
    --mist:         #EAF3FB;
    --text-dark:    #2b2b2b;
    --text-mid:     #666;
    --text-light:   #949494;
    --border:       #C9DCEE;
    --border-dark:  #9DBBD8;
    --link:         #0D66C0;
    --link-hover:   #094B8F;
    --cta:          var(--brand); /* 公式サイト・写真投稿ボタン。ブランドブルーに揃える */
    --cta-hover:    var(--brand-deep);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
    font-size: 14px;
    font-family: 'Noto Sans JP', Tahoma, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--brand);
    overflow-x: hidden;
    max-width: 100%;
}

img { border: 0; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:visited { color: var(--link); }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus { outline: none; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

p { line-height: 1.8; margin-bottom: 1.1em; color: var(--text-mid); }

h1, h2, h3, h4 { margin: 0; }
h2 { font-size: 15px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; display: inline; }
h4 { font-size: 15px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.bold { font-weight: 600; }

/* ===== WRAPPER ===== */

#wrapper { width: 100%; min-width: 0; max-width: none; background: #fff; }

/* ===== ヘッダー ===== */

/* PC版と同じくCSSグラデーション帯＋ロゴ画像。モバイルは中央寄せで画面幅に応じて縮小し、
   ロゴの下に検索フォームを重ねる（ロゴのグラデーションは縦方向のみのため、幅が縮んでも帯と揃う） */
#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 0 12px;
    /* main.cssと同じ、ロゴ縁の実測値による多段ストップ */
    background: linear-gradient(to bottom,
        #4388CD 0%, #3480CB 10%, #2877C6 20%, #1A6FC2 30%, #0D66C0 40%,
        #005EBA 51%, #0360BD 61%, #0762BD 71%, #0A63BD 81%, #0D67BF 91%, #1068BF 100%);
}

#logo-block { display: flex; justify-content: center; }
#logo-block h1, #logo-block .site-logo { margin: 0; line-height: 0; }
#logo-block .site-logo img,
#logo-block h1 img { display: block; width: min(417px, 92vw); height: auto; }

#header-top { display: none; }
#header-tagline { display: none; }

#header-controls { display: flex; width: 100%; padding: 0 12px; }
#search-form { width: 100%; }
#search-form > div { display: flex; gap: 6px; width: 100%; }
#search-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(13, 102, 192, 0.3);
    border-radius: 4px;
    color: var(--brand-deep);
    outline: none;
}
#search-form input[type="text"]::placeholder { color: rgba(13, 102, 192, 0.45); }
#search-form input[type="submit"] {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--brand-deep);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
#headmenu { display: none; }

/* ===== パンくず ===== */

#navi {
    padding: 7px 14px;
    font-size: 12px;
    word-break: break-all;
    background-color: #EAF3FB;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}
#navi ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
#navi li { display: flex; align-items: center; }
#navi li + li::before { content: "›"; margin: 0 5px; color: var(--text-mid); }
#navi a { color: var(--link); }
#navi a:hover { color: var(--link-hover); }
.breadcrumb-current { font-size: 12px; color: var(--text-dark); font-weight: 500; }

.content-heading {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--brand-mid);
    padding-bottom: 6px;
    margin-bottom: 14px;
}
ruby { ruby-align: center; }
rt { font-size: 0.55em; font-weight: 400; color: var(--text-light); letter-spacing: 0.02em; }

/* ===== MAIN AREA ===== */

/* main.cssのalign-items:flex-startのままcolumn化すると子要素の幅がコンテンツ依存になる罠が
   あるため、stretchを明示して幅を揃える */
.page-body { padding: 12px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.page-main { width: 100%; }
.page-h1-wrap { padding: 14px 14px 0; }
.page-content { width: 100%; min-width: 0; }
.page-sidebar { width: 100%; margin-top: 14px; text-align: center; }
.sidebar-banner { display: inline-block; margin-bottom: 10px; }
.sidebar-banner img { max-width: 100%; height: auto; }
.sidebar-doc { text-align: left; }

/* ===== LINE BOX ===== */

.line_box { background-color: #fff; border: 1px solid var(--border); border-top: 2px solid var(--link); margin-bottom: 20px; }
.line_head { background-color: #fafaf8; border-bottom: 1px solid var(--border); padding: 12px 14px; }
.line_head h2, .line_head p, .line_head h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== トップページ 地方ナビ ===== */

#map_box { padding: 12px 14px; }
#map_box > img { display: none; }
#map_box ul { position: static; list-style: none; width: 100%; top: auto; left: auto; }
#map_box ul li {
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 13px;
    border-left: 3px solid var(--link);
    padding-left: 8px;
}

/* ===== 施設詳細 ===== */

#spa-detail.spa-detail--deleted { margin-top: 80px; text-align: center; }

.campsite-gallery { margin-bottom: 14px; }

.campsite-gallery-single {
    margin-bottom: 14px;
}
.campsite-gallery-single img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.campsite-swiper-main { width: 100%; margin-bottom: 5px; background: var(--mist); cursor: zoom-in; }
.campsite-swiper-main .swiper-slide img { width: 100%; height: auto; display: block; }
.campsite-swiper-main .swiper-button-prev,
.campsite-swiper-main .swiper-button-next {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    transform: scale(0.7);
}

.campsite-swiper-thumbs { width: 100%; }
.campsite-swiper-thumbs .swiper-slide { width: 52px; height: 52px; opacity: 0.55; cursor: pointer; }
.campsite-swiper-thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid var(--link); }
.campsite-swiper-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

#campsite-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#campsite-lightbox.open { display: flex; }
#campsite-lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
#campsite-lb-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: rgba(255,255,255,0.8);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

#infocanvas {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(13,102,192,0.10);
}
.info-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--brand-mid);
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.info-section-title i { font-size: 11px; opacity: 0.9; }
.info-section-title--with-accessory { justify-content: space-between; padding: 4px 8px 4px 12px; }

.info-section--primary dl dt i { color: var(--brand-mid); width: 13px; text-align: center; margin-right: 2px; }

.info-section--soft {
    box-shadow: 0 1px 3px rgba(13,102,192,0.06);
    border-color: #d3e2f0;
}
.info-section--soft .info-section-title {
    background: transparent;
    color: var(--brand-mid);
    font-size: 11px;
    padding: 9px 12px 6px;
    border-bottom: 2px solid var(--mist);
    margin-bottom: 2px;
}
.info-section--soft .info-section-title i { color: var(--brand); }

/* ラベル・値を横並びの2カラムにして視線の上下移動を減らす（デスクトップと同じ考え方） */
.info-section dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    width: 100%;
}
.info-section dl dt {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-mid);
    padding: 9px 8px 9px 12px;
    border-bottom: 1px solid var(--border);
    background: #f7fafd;
    white-space: nowrap;
}
.info-section dl dd {
    font-size: 12.5px;
    padding: 9px 12px 9px 4px;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}
.info-section dl dt:last-of-type,
.info-section dl dd:last-of-type { border-bottom: none; }

.link-map {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    margin-left: 0;
    margin-top: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-deep);
    background: #e7f1fb;
    border: 1px solid #9ec7ec;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
}
.link-map:hover { background: #d5e7f8; color: var(--brand-deep); text-decoration: none; }
.link-map i { color: var(--brand); }

.season-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 7px;
    padding: 3px 7px 2px;
    line-height: 0;
    flex-shrink: 0;
}
.season-badge-caption { display: block; line-height: normal; font-size: 8px; font-weight: 600; color: var(--brand-mid); margin-top: 1px; white-space: nowrap; }
.season-dial-ring { fill: none; stroke: var(--border); stroke-width: 1.4; }
.season-dial-dot { fill: #fff; stroke: var(--border-dark); stroke-width: 1.2; }
.season-dial-dot.is-open { fill: var(--brand); stroke: var(--brand-deep); }

.equipment-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--mist); }
.equipment-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: #fff; text-align: left; }
.equipment-label { font-size: 12px; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 6px; }
.equipment-label i { color: var(--brand-mid); width: 13px; text-align: center; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; flex-shrink: 0; }
.status-pill--yes { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.status-pill--no { background: #f1f1ee; color: #999; border: 1px solid #d8d8d2; }
.status-pill--unknown { background: transparent; color: var(--text-light); border: 1px dashed #cfcfc8; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-external-link, .btn-external-link:visited {
    display: inline-block;
    padding: 0 16px;
    height: 34px;
    line-height: 34px;
    background: var(--cta);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}
.btn-external-link:hover { background: var(--cta-hover); }

.btn-external-link--top {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin: 2px 0 14px auto;
}

.nearby-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.nearby-campsites h3 { font-family: 'Noto Serif JP', serif; margin-bottom: 8px; }

/* ===== 施設一覧カード ===== */

.campsite-list { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
.campsite-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: 0 4px 4px 0;
    padding: 14px 10px;
}
.campsite-list-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.campsite-list-body { flex: 1; min-width: 0; }
.campsite-list-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; display: block; color: var(--brand-mid); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.campsite-list-address { display: block; font-size: 12px; color: var(--text-mid); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ===== バッジ ===== */

.campsite-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.campsite-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 2px;
    background: var(--mist); color: var(--text-mid); border: 1px solid var(--border); white-space: nowrap;
}
.campsite-badge--electric    { background: #fff8ea; border-color: #e8c87c; color: #93650a; font-weight: 700; }
.campsite-badge--bath        { background: #eaf4fb; border-color: #a8d4f0; color: #0d5c94; font-weight: 700; }
.campsite-badge--pet         { background: #f5ede9; border-color: #d9c2b8; color: #5a3d33; font-weight: 700; }
.campsite-badge--daycamp     { background: #fff3e0; border-color: #ffcc80; color: #b35900; font-weight: 700; }
.campsite-badge--accessible  { background: #eceff1; border-color: #b0bec5; color: #263238; font-weight: 700; }
.campsite-badge--rvpark      { background: #e8eaf6; border-color: #c5cae9; color: #303f9f; font-weight: 700; }
.campsite-badge--yuyu        { background: #f3e5f5; border-color: #ce93d8; color: #6a1b7a; font-weight: 700; }

/* ===== ページネーション ===== */

.campsite-pagination { padding: 16px 0 8px; text-align: center; }
.campsite-pagination-page-count { display: none; }
.campsite-pagination-info { font-size: 11px; color: var(--text-mid); margin-bottom: 8px; }
.campsite-pagination-list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.campsite-pagination-list li a, .campsite-pagination-list li span {
    display: inline-block; padding: 5px 10px; font-size: 12px;
    border: 1px solid var(--border); border-radius: 3px; color: var(--brand-mid); background: #fff; text-decoration: none;
}
.campsite-pagination-list li.active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.campsite-pagination-list li.disabled span { color: var(--text-light); background: #fafaf8; }
.campsite-pagination-list li.dots span { border: none; background: none; color: var(--text-light); }

/* ===== エリア/都道府県/市区町村 サイドリスト ===== */

/* main.cssのalign-items:flex-startのままだとcolumn方向で横幅がコンテンツ依存になり、
   長いタイトルのカードがあるページだけ横スクロールしてしまう。stretchで幅を揃える */
.content-with-aside { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }

/* 市区町村アコーディオン（JS: accordion.js） */
.area-pref-list {
    flex: none;
    width: 100%;
    font-size: 13px;
    padding-right: 0;
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand-mid);
    overflow: hidden;
}
.area-pref-title {
    appearance: none;
    border: none;
    width: 100%;
    font: inherit;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}
.area-pref-title::after {
    content: '▼';
    font-size: 11px;
    color: var(--brand-mid);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.area-pref-list.is-open .area-pref-title::after { transform: rotate(180deg); }

.area-pref-list ul {
    display: none;
    list-style: none;
    line-height: normal;
    padding: 0 0 8px;
    margin: 0;
}
.area-pref-list ul li { border-top: 1px solid var(--border); background: #fff; }
.area-pref-list ul li:nth-child(even) { background: #f0f6fc; }
.area-pref-list ul li a {
    display: block;
    padding: 12px 36px 12px 16px;
    color: var(--link);
    font-size: 14px;
    text-decoration: none;
    position: relative;
}
.area-pref-list ul li a::after {
    content: '›';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-mid);
    font-size: 20px;
    line-height: 1;
}
.area-pref-list ul li a.active { font-weight: 700; color: #fff; background: var(--brand-mid); }
.area-pref-list ul li a.active::after { color: #fff; }
.area-pref-list ul li a:active { background: var(--mist); }

/* ===== フッター ===== */

#footer { color: rgba(255, 255, 255, 0.85); background: var(--brand) url('/img/foot_bg.jpg') repeat-x top left; padding-top: 4px; }
#foot_box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px 14px 28px; }
.footer-area a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-area a:hover { color: var(--sun); }
.footer-area-heading { font-family: 'Noto Serif JP', serif; font-size: 12px; font-weight: 700; color: #fff; }
.footer-area ul { list-style: none; margin-top: 4px; }
.footer-area ul li { display: inline-block; white-space: nowrap; font-size: 11px; margin: 2px 5px 2px 0; }
#footer p { color: rgba(255, 255, 255, 0.75); padding: 12px 14px; font-size: 10px; line-height: 1.6; border-top: 1px solid rgba(255, 255, 255, 0.25); }
#footer p a { color: var(--sun); }

/* ===== お問い合わせ・このサイトについて ===== */

dl#about dt {
    font-family: 'Noto Serif JP', serif; font-size: 15px; font-weight: 700; line-height: 1.6;
    color: var(--text-dark); background: var(--mist); border-left: 4px solid var(--brand); padding: 8px 12px; margin: 18px 0 8px;
}
dl#about dt:first-child { margin-top: 0; }
dl#about dd { margin-bottom: 20px; line-height: 1.7; color: var(--text-mid); }
dl#about dd p { margin: 0 0 8px 0; }

ul.about-badge-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
ul.about-badge-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mid); }

.form-honeypot { display: none; }
.form-required {
    display: inline-block; font-size: 10px; font-weight: 600; color: #fff;
    background-color: #c0392b; padding: 1px 6px; border-radius: 3px; margin-left: 6px;
}
.form-char-count { font-size: 11px; color: #888; text-align: right; margin-top: 2px; }
.form-error { color: #f00; font-size: 0.8rem; margin-top: 4px; }
.form-error--notice {
    margin-bottom: 14px; padding: 10px 12px; background: #fff3cd;
    border: 1px solid #f0c040; border-radius: 4px; color: #856404; font-size: 13px;
}

.confirm-box { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin: 14px 0 20px; }
.confirm-row { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.confirm-row:last-child { border-bottom: none; }
.confirm-label { width: 100%; font-weight: 600; background-color: rgba(0,0,0,0.04); padding: 6px 12px; }
.confirm-value { padding: 6px 12px; word-break: break-all; line-height: 1.7; background: none; }
/* 入力欄・送信ボタンの基本スタイルはmain.cssのIDベース指定（#mail/#name/#tel/#txt/#btn/#btn_2）を
   共用し、モバイルではサイズのみ調整する */
#txt { height: 140px; }

#btn { width: 100%; max-width: 260px; margin: 16px auto 32px; }
#btn_2 { width: 100%; max-width: 260px; }
.confirm-actions { display: flex; flex-direction: column-reverse; gap: 10px; align-items: center; margin: 14px 0 32px; }
.confirm-actions #btn,
.confirm-actions #btn_2 { margin: 0; }

.thanks-actions { display: flex; justify-content: center; margin-top: 20px; }
.btn-back-top, .btn-back-top:visited {
    display: inline-block; width: 100%; max-width: 260px; height: 42px; line-height: 42px; text-align: center;
    background: var(--brand); color: #fff; border-radius: 4px; font-size: 15px; text-decoration: none;
}

/* ===== カテゴリ絞り込み（モバイルはボックス内2列グリッド） ===== */
.category-tabs--in-box ul { grid-template-columns: repeat(2, 1fr); }
