/* ==========================================================
   全国オートキャンプ場マップ — Design System  (mobile, max-width: 768px)
   ========================================================== */

:root {
    --forest-dark:  #2F4A06;
    --leaf:         #6FAE0A;
    --moss:         #7E9500;
    --mist:         #F7F3E3;
    --text-dark:    #2b2b2b;
    --text-mid:     #666;
    --text-light:   #949494;
    --border:       #457105;
    --border-dark:  #8B8B5E;
    --link:         #7E9500;
    --link-hover:   #2F4A06;
    --cta:          #c2410c;
    --cta-hover:    #9a3412;
}

*, *::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(--forest-dark);
    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(--leaf); 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; }

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

#header { background-color: var(--leaf); padding: 0; }
#header-inner { display: flex; flex-direction: column; padding: 14px 14px 12px; gap: 12px; }

#logo-block h1 { font-family: 'Noto Serif JP', serif; font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap; }
#logo-block h1 a { display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; text-decoration: none; text-shadow: 0 0 6px rgba(47, 74, 6, 0.7), 0 0 12px rgba(47, 74, 6, 0.4); }
#logo-block h1 a:hover { color: rgba(255, 255, 255, 0.85); }
#logo-icon { width: 18px; height: 14px; flex-shrink: 0; }
#logo-icon path, #logo-icon circle { fill: #fff; }

#header-top { background-color: var(--forest-dark); text-align: right; padding: 3px 14px; }
#header-tagline { font-size: 11px; color: rgba(255, 255, 255, 0.82); }

#header-controls { display: flex; flex-direction: column; gap: 8px; }
#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(47, 74, 6, 0.3);
    border-radius: 4px;
    color: var(--forest-dark);
    outline: none;
}
#search-form input[type="text"]::placeholder { color: rgba(47, 74, 6, 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(--forest-dark);
    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: #eef0d8;
    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(--moss);
    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 ===== */

.page-body { background-color: var(--mist); padding: 12px; min-width: 0; display: flex; flex-direction: column; }
.page-main { width: 100%; }
.page-sidebar { width: 100%; margin-top: 14px; text-align: center; }
.sidebar-app-link { display: block; margin-bottom: 10px; }
.sidebar-app-link img { max-width: 100%; height: auto; }

/* ===== 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(47,74,6,0.10);
}
.info-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--moss);
    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(--moss); width: 13px; text-align: center; margin-right: 2px; }

.info-section--soft {
    box-shadow: 0 1px 3px rgba(47,74,6,0.06);
    border-color: #dfe6c8;
}
.info-section--soft .info-section-title {
    background: transparent;
    color: var(--moss);
    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(--leaf); }

/* ラベル・値を横並びの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: #fbfbf6;
    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(--forest-dark);
    background: #eef6de;
    border: 1px solid #b9d98a;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
}
.link-map:hover { background: #e2f0c9; color: var(--forest-dark); text-decoration: none; }
.link-map i { color: var(--leaf); }

.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(--moss); 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(--leaf); stroke: var(--forest-dark); }

.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(--moss); 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(--leaf); color: #fff; border: 1px solid var(--leaf); }
.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(--moss); 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(--moss); background: #fff; text-decoration: none;
}
.campsite-pagination-list li.active span { background: var(--border); border-color: var(--border); 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(--moss);
    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(--moss);
    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: #f7f3e8; }
.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(--moss);
    font-size: 20px;
    line-height: 1;
}
.area-pref-list ul li a.active { font-weight: 700; color: #fff; background: var(--moss); }
.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.7); background-color: var(--forest-dark); }
#foot_box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; background-color: rgba(255, 255, 255, 0.04); padding: 20px 14px 28px; }
.footer-area a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.footer-area a:hover { color: var(--leaf); }
.footer-area-heading { font-family: 'Noto Serif JP', serif; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.82); }
.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.32); padding: 12px 14px; font-size: 10px; line-height: 1.6; border-top: 1px solid rgba(255, 255, 255, 0.07); }
#footer p a { color: #ccc; }

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

dl#about dt {
    font-family: 'Noto Serif JP', serif; font-size: 15px; font-weight: 700; line-height: 1.6;
    color: var(--text-dark); border-bottom: 2px solid var(--moss); padding-bottom: 4px; 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; }
.confirm-value input[type="email"], .confirm-value textarea {
    width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit;
}
.confirm-value textarea { min-height: 100px; resize: vertical; }

#inquiry-form #btn, #confirm-form #btn, .confirm-actions #btn {
    display: block; margin: 16px auto 0; width: 100%; max-width: 260px; height: 42px;
    background: var(--leaf); color: #fff; border: none; border-radius: 4px; cursor: pointer;
    font-size: 15px; font-family: 'Noto Sans JP', sans-serif;
}
.confirm-actions { display: flex; flex-direction: column-reverse; gap: 10px; align-items: center; margin-top: 14px; }
.confirm-actions button#btn_2 {
    width: 100%; max-width: 260px; height: 36px; background: #fff; color: var(--text-dark);
    border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 14px;
}

.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(--leaf); color: #fff; border-radius: 4px; font-size: 15px; text-decoration: none;
}
