/* ==========================================================
   全国日帰り温泉マップ — Design System  (mobile, max-width: 768px)
   ========================================================== */

:root {
    --slate-dark:   #3D2200;
    --slate-mid:    #5C3300;
    --mineral:      #CC6600;
    --cedar:        #B5896B;
    --mist:         #F5EDD6;
    --text-dark:    #3D2200;
    --text-mid:     #7A5530;
    --text-light:   #9E8060;
    --border:       #D4B896;
    --border-dark:  #8B5E3C;
    --link:         #815524;
    --link-hover:   #994400;
}

/* ==========================================================
   RESET & BASE
   ========================================================== */

*, *::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(--slate-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(--mineral);
    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; text-wrap: balance; }
h3 { font-size: 14px; font-weight: 700; display: inline; text-wrap: balance; }
h4 { font-size: 15px; font-weight: 500; text-wrap: balance; }

@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%; }

/* ==========================================================
   HEADER
   ========================================================== */

#header {
    background-color: #FFCC00;
    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: 9vw;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 6px rgba(61,34,0,0.7), 0 0 12px rgba(61,34,0,0.4);
}

#logo-block h1 a {
    color: #fff;
    text-decoration: none;
}

#logo-block h1 a:hover {
    color: var(--mineral);
    text-decoration: none;
}

#header-top {
    background-color: var(--slate-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.75);
    border: 1px solid rgba(61, 34, 0, 0.3);
    border-radius: 4px;
    color: var(--slate-dark);
    outline: none;
}

#search-form input[type="text"]::placeholder {
    color: rgba(61, 34, 0, 0.4);
}

#search-form input[type="submit"],
#search-form button[type="submit"] {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--slate-dark);
    color: #FFCC00;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

#headmenu {
    display: none;
}

/* ==========================================================
   BREADCRUMB
   ========================================================== */

#navi {
    padding: 7px 14px;
    font-size: 12px;
    word-break: break-all;
    background-color: #f7de79;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}

#navi ol {
    list-style: none;
    margin: 0;
    padding: 0;
    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); text-decoration: none; }
#navi a:hover { color: var(--link-hover); }
#navi .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(--cedar);
    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
   ========================================================== */

/* Two-column page layout */
.page-body {
    background-color: var(--mist);
    padding: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-main {
    width: 100%;
}

.page-sidebar {
    width: 100%;
    margin-top: 14px;
    text-align: center;
}

.sidebar-app-link {
    display: block;
    margin-bottom: 10px;
}

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

.line_box {
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border);
    border-top: 2px solid #815524;
    margin-bottom: 20px;
}

.line_head {
    width: 100%;
    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);
    padding: 0;
}

/* ==========================================================
   HOME PAGE — MAP BOX
   ========================================================== */

#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 {
    list-style-type: none;
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 13px;
    border-left: 3px solid #815524;
    padding-left: 8px;
}

/* ==========================================================
   SPA DETAIL
   ========================================================== */

#spa-detail { width: 100%; }

#infocanvas {
    width: 100%;
    max-width: none;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--cedar);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

#infocanvas dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    padding: 0;
    margin: 0;
    width: 100%;
}

#infocanvas dl dt {
    font-size: 12px;
    font-weight: 600;
    color: var(--cedar);
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(181, 137, 107, 0.07);
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
}

#infocanvas dl dd {
    font-size: 13px;
    color: var(--text-dark);
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    width: auto;
    line-height: 1.5;
    display: flex;
    align-items: center;
    word-break: break-word;
}

#infocanvas dl > dt:last-of-type,
#infocanvas dl > dd:last-child {
    border-bottom: none;
}

.spa-hero-img {
    text-align: center;
    margin-bottom: 14px;
}

/* SPA GALLERY */
.spa-gallery { margin-bottom: 14px; }

.spa-gallery-single {
    margin-bottom: 14px;
    background: var(--mist);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.spa-gallery-single img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.spa-swiper-main {
    width: 100%;
    margin-bottom: 5px;
    background: var(--mist);
}

.spa-swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
}

.spa-swiper-main .swiper-slide img {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.spa-swiper-main .swiper-button-prev,
.spa-swiper-main .swiper-button-next {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    --swiper-navigation-size: 28px;
}

.spa-swiper-thumbs { width: 100%; }

.spa-swiper-thumbs .swiper-slide {
    width: 52px;
    height: 52px;
    opacity: 0.55;
    cursor: pointer;
}

.spa-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    outline: 2px solid #815524;
}

.spa-swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spa-swiper-main { cursor: zoom-in; }

/* LIGHTBOX */
#spa-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#spa-lightbox.open { display: flex; }

#spa-lightbox img {
    max-width: 96vw;
    max-height: 96vh;
    object-fit: contain;
}

#spa-lb-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: rgba(255,255,255,0.85);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.nearby-spas {
    margin-top: 16px;
}

.nearby-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 10px;
}

/* ==========================================================
   FOOTER
   ========================================================== */

#footer {
    background-color: var(--slate-dark);
    background-image: none;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 0;
    overflow: hidden;
}

#foot_box {
    background-color: rgba(255, 255, 255, 0.04);
    padding: 16px;
}

#footer_pr {
    padding: 10px 0;
}

#footer_pr img {
    width: 160px;
    height: auto;
}

.footer-area {
    padding-top: 0;
    padding-left: 0;
}

.footer-area a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.footer-area a:hover { color: var(--mineral); text-decoration: none; }

.footer-area h4 {
    font-size: 13px;
    font-weight: 700;
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.footer-area h4:first-child { padding-top: 8px; }

.footer-area ul {
    list-style: none;
    margin-top: 5px;
}

.footer-area ul li {
    display: inline-block;
    font-size: 12px;
    margin: 2px 6px 2px 0;
}

#footer_info {
    width: 100%;
    padding: 14px 0 0;
}

#footer_info #message p {
    text-align: left;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

#footer_info #message a { color: var(--mineral); }

#footer > p {
    color: rgba(255, 255, 255, 0.32);
    padding: 12px 14px;
    font-size: 11px;
    line-height: 1.8;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

#footer > p a { color: rgba(255, 255, 255, 0.4); }

/* ==========================================================
   FORMS
   ========================================================== */

#mail,
#txt {
    width: 100%;
    font-size: 16px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing: border-box;
}

#mail { height: 40px; }
#txt  { height: 160px; }

/* フォーム共通 */
.form-honeypot { display: none; }

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.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;
    vertical-align: middle;
    line-height: 1.6;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
}

.form-char-count {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-top: 2px;
}

.form-error { color: #f00; }
.form-error--notice {
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #f0c040;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
}

/* 確認画面 */
.confirm-lead { margin-bottom: 16px; }

.confirm-box {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.confirm-row {
    display: block;
    border-bottom: 1px solid var(--border);
}

.confirm-row:last-child {
    border-bottom: none;
    min-height: 160px;
}

.confirm-label {
    display: block;
    width: 100%;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
}

.confirm-value {
    width: 100%;
    padding: 10px 12px;
    background-color: #fff;
    line-height: 1.7;
    word-break: break-all;
}

.confirm-value #mail,
.confirm-value #txt {
    width: 100%;
    box-sizing: border-box;
}

.confirm-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 16px 0 30px;
}

.confirm-actions #btn,
.confirm-actions #btn_2 {
    margin: 0;
}

#btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#btn {
    display: block;
    margin: 16px auto 30px;
    width: 140px;
    height: 42px;
    background: var(--mineral);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

#btn_2 {
    margin: 0;
    width: 80px;
    height: 36px;
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
}


/* ==========================================================
   ABOUT PAGE
   ========================================================== */

dl#about dt {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-dark);
    border-bottom: 2px solid var(--mineral);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

dl#about dd {
    margin-bottom: 18px;
    line-height: 1.7;
    color: var(--text-mid);
}

ul.about-badge-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

ul.about-badge-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-mid);
}

/* SPA LIST */
/* 市区町村アコーディオン */
.area-pref-list {
    padding-right: 0;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--cedar);
    overflow: hidden;
}

.area-pref-title {
    appearance: none;
    -webkit-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(--cedar);
    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;
    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: #faf7f2;
}

.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(--cedar);
    font-size: 20px;
    line-height: 1;
}

.area-pref-list ul li a.active {
    font-weight: 700;
    color: #fff;
    background: var(--cedar);
}

.area-pref-list ul li a.active::after {
    color: #fff;
}

.area-pref-list ul li a:active {
    background: var(--mist);
}

.spa-list {
    gap: 0;
    padding: 0;
    border: 3px solid var(--border);
    overflow: hidden;
    margin: 16px 0;
}

.spa-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 36px 14px 14px;
    box-shadow: none;
    position: relative;
    transition: background 0.15s;
}

.spa-list-item:last-child {
    border-bottom: none;
}

.spa-list-item:active {
    background: var(--mist);
}

.spa-list-item::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cedar);
    font-size: 22px;
    line-height: 1;
}

.spa-list-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.spa-list-body {
    flex: 1;
    min-width: 0;
}

.spa-list-name {
    font-family: 'EllipsisLatin', 'Noto Sans JP', Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: var(--link);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.spa-list-address,
.spa-list-tel {
    font-family: 'EllipsisLatin', 'Noto Sans JP', Tahoma, Arial, sans-serif;
    display: block;
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.7;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 施設バッジ（モバイル） */
.spa-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.spa-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    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;
}

.spa-badge i { font-size: 9px; }

.spa-badge--onsen {
    background: #fff5ec;
    border-color: #e8a87c;
    color: var(--mineral);
    font-weight: 700;
}

.spa-badge--outdoor { color: #1a78c2; }
.spa-badge--parking { color: #2e7d32; }
.spa-badge--eatin   { color: #6d4c41; }
.spa-badge--charter { color: #5c6bc0; }
.spa-badge--morning { color: #f57c00; }
.spa-badge--h22     { color: #37474f; }
.spa-badge--konyoku { color: #7b1fa2; }

.spa-list-filler { display: none; }

.spa-pagination {
    padding: 20px 0 8px;
    text-align: center;
}

.spa-pagination-info {
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.spa-pagination-page-count {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 10px;
}

/* モバイルではページ番号を隠して前へ／次へのみ表示 */
.spa-pagination-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.spa-pagination-list li:not(:first-child):not(:last-child) {
    display: none;
}

.spa-pagination-list li a,
.spa-pagination-list li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--link);
    background: #fff;
    text-decoration: none;
    font-weight: 500;
}

.spa-pagination-list li a:active {
    background: var(--mist);
}

.spa-pagination-list li.disabled span {
    color: var(--text-light);
    background: #fafaf8;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}

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

.btn-back-top,
.btn-back-top:visited {
    display: inline-block;
    width: 140px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: var(--mineral);
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
}
