@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* 変数 */
:root {
    --main-color: #e32727;
    --sb-color: #f3987d;
    --sb-sb-color: #f0ae71;
    --main-txt-color: #292929;
    --accent-color: #f33d24;
    --main-background-color: #ffffff;
    --section-background-color: #ebebeb;
    --main-border-color: #8b8b8b;
    --main-font-size: 16px;
    --headding-font-size: 32px;
    --headding-font-size-sp: 24px;
    --font-weight-400: 400;
    --font-weight-500: 500;
    --font-weight-700: 700;
    --main-border-radius: 6px;
    --hover-transition: .2s;
}

/* 基本設定
------------------------------------------*/
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Noto Sans JP", sans-serif;
    font-style: normal;
    font-size: var(--main-font-size);
    color: var(--main-txt-color);
    letter-spacing: .02em;
    line-height: 150%;
    min-height: 100svh;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    height: 100%;
}
img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}
.header {
    display: flex;
    align-items: center;
    width: max-content;
    position: fixed;
    top: -90px;
    left: 32px;
    aspect-ratio: 1;
    z-index: 30;
    transition: var(--hover-transition);
}
.header-logo a img {
    width: 360px;
}
.hamburger,
.sp-nav-menu {
    display: none;
}

/* 地図
------------------------------------------*/
#map {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 50%;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
/* ピン（縁の色はカテゴリーごとに管理画面で設定：スポット → カテゴリー） */
.custom-marker {
    border-radius: 50%;
    border: 2px solid var(--main-color);
    cursor: pointer;
    box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.2);
}
.custom-marker:hover {
    transform: scale(1.2); /* ホバー時に拡大 */
}
.marker-title {
    width: max-content;
    text-align: center;
    background: white;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.01em;
    font-weight: var(--font-weight-500);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .2);
}

/* ピン詳細ポップアップ
------------------------------------------*/
#popup-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 380px;
    height: 100%;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden; /* 横スクロールを出さない */
    background: var(--main-background-color);
    box-shadow: 0px 2px 10px rgba(0,0,0,0.2);
    display: none; /* 初期は非表示 */
}
#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    background: var(--accent-color);
    border-radius: 50px;
    z-index: 2;
    text-align: center;
    border: 2px solid #32373c;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}
#popup-info::-webkit-scrollbar {
    background: #e9eef0;
    width: 5px;
    height: 5px;
    border-radius: 20px;
}
#popup-info::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 20px;
}
/* スライド画像 */
.splide {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}
.splide img {
    height: auto;
    width: 100%;
    aspect-ratio: 4/3;
}

/* 見出し・本文 */
.icon-content {
    padding: 32px 0 0;
}
.icon-header {
    padding: 0 24px;
}
.icon-header h2 {
    font-size: 20px;
    font-weight: var(--font-weight-500);
    margin-bottom: 16px;
}
.icon-header p {
    font-size: 14px;
}

/* 住所・電話などの情報 */
.icon-add {
    display: flex;
    flex-direction: column;
}
.icon-item {
    padding: 40px 24px;
}
.icon-item .table,
.icon-item .tbody {
    display: block;
    width: 100%;
}
.tr {
    font-size: 14px;
    padding-bottom: 12px;
    display: flex;
    gap: 12px;
}
.th {
    font-weight: var(--font-weight-400);
    flex: 0 0 100px;
    text-align: left;
    white-space: normal;
    word-break: break-all;
}
.td {
    flex: 1 1 auto;
    min-width: 0; /* 長いURL・文章を、枠の中で折り返す */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.td a {
    color: var(--main-color);
    letter-spacing: 0.01em;
}
.td a:hover {
    text-decoration: underline;
}

/* ルート検索ボタン */
.btn-flex {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.b-flex-item {
    width: calc((100% - 8px)/2);
    text-align: center;
}
.b-flex-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    border-radius: 50px;
    font-size: 14px;
    background: var(--main-background-color);
    color: var(--main-txt-color);
    font-weight: var(--font-weight-500);
    border: 1px solid var(--main-txt-color);
    transition: var(--hover-transition);
}
.b-flex-item a:hover {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

/* カテゴリーメニュー
------------------------------------------*/
.category-menu {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: #fff;
    width: max-content;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
.category-menu ul {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: var(--font-weight-500);
    letter-spacing: .001em;
    border-radius: 24px;
    padding: 0 12px;
}
.category-menu ul li {
    width: 90px;
    text-align: center;
    line-height: 1;
}
.category-menu ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    color: #494949;
    transition: var(--hover-transition);
}
.category-menu ul li img {
    transition: var(--hover-transition);
    display: block;
    margin-bottom: 4px;
}
.category-menu ul li:hover img {
    transform: scale(1.1);
}

/* footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
}
.site-copyright {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 12px;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    height: 268px;
    color: var(--main-background-color);
    font-weight: var(--font-weight-500);
    text-align: center;
}
.site-copyright small {
    display: block;
}

/* スマートフォン
-------------------------------------*/
@media screen and (max-width: 768px) {
    .header {
        top: -55px;
        left: 16px;
    }
    .header-logo a img {
        width: 210px;
    }
    .category-menu {
        border-radius: 16px;
        overflow: hidden;
        width: 84%;
    }
    .category-menu ul {
        font-size: 10px;
        border-radius: 0;
        padding: 0 12px;
        width: 100%;
        display: flex;
        overflow-x: auto;
    }
    /* アイコンサイズは category-menu.php の spot_cm_icon_size_sp()（スマホ）で指定 */
    .category-menu ul li {
        width: 80px;
        flex-shrink: 0;
        background: var(--main-background-color);
    }
    .category-menu ul li a {
        padding: 12px 0;
        background: var(--main-background-color);
    }
    #popup-info {
        width: 100%;
    }
    #close-popup {
        position: fixed;
    }
    .marker-title {
        font-size: 11px !important;
    }
}