html {
    /* 基準フォントサイズ: 16px相当（ブラウザデフォルト） */
    font-size: 100%;
    scroll-padding-top: 170px;
}

@media screen and (max-width: 600px) {
    html {
        scroll-padding-top: 70px;
    }
}

body {
    margin: 0;
    padding: 0;
    /* 【旧フォント設定】コメントアウトで保持
    font-family: "Hiragino Mincho ProN", "MS Mincho", "Yu Mincho", "Noto Serif JP", serif, 'Helvetica Neue', Arial;
    */
    /* 【新フォント設定】Googleフォント使用推奨（選定後に有効化）
     * 例: font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
     *     font-optical-sizing: auto;
     *     font-style: normal;
     */
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #ffffff;
    color: #4d4d4d;
}

:root {
    --primary-color: #b0c6c3;
    --secondary-color: #ccc3b0;
    --tertiary-color: #aa7766;
    --font-color: #4d4d4d;
    --font-color-white: #ffffff;
    --background-color: #ffffff;
}

p {
    font-weight: bold;
}

header {
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
    padding-bottom: 1.5rem;
}

.header {
    text-align: center;
}

header h1 {
    margin: 0;
}

header h1 a img {
    width: 3em;
    height: auto;
    margin: 2rem auto .5em auto;

}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--font-color);
    font-size: 1rem;
    font-weight: normal;
    padding: 0 5px;
    border-radius: 5px;
}

header nav ul .sp-none {
    display: none;
}


/*ハンバーガーメニューここから↓↓↓*/

@media screen and (max-width: 600px) {

    /* スマホサイズでは通常メニューを常に非表示 */
    header nav {
        display: none;
    }

    /* スマホサイズではheaderのpadding-bottomを削除 */
    header {
        padding-bottom: 0;
    }

    /* スマホサイズではマップの高さを半分に */
    #reserve .map iframe {
        height: 30vh !important;
    }

    /* スマホサイズではヒーロー見出しを「仏足」の後で改行 */
    #hero h2 .hero-line-break {
        display: block;
    }

    /* スマホサイズでは「私がおすすめする宮古のスポット」を「近隣スポット」に変更 */
    #spots .heading-text {
        font-size: 0;
        line-height: 1;
    }

    #spots .heading-text::before {
        content: "近隣スポット";
        font-size: 1.5rem;
        color: #fff;
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }

    /* スマホ: スポット写真は2枚目だけ表示 */
    #spots .spot-images:has(img:nth-child(2)) img:first-child {
        display: none;
    }

    #spots .spot-images:has(img:nth-child(2)) img:nth-child(2) {
        display: block;
    }

    /* スマホ: ギャラリーサムネイル 2列3行 */
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-thumbnails .thumb {
        max-width: none;
        justify-self: stretch;
    }

    /* スマホサイズではロゴの高さを1emに、少し上にずらす */
    header h1 {
        margin-top: -0.5rem;
    }

    header h1 a {
        display: inline-block;
    }

    header h1 a img {
        height: 1em;
        width: auto;
        margin: 1.2rem auto 0.3em auto;
    }

    /* メニュー本体：中央・ワイド化＆内側余白UP */
    .menu-icon {
        position: fixed;
        top: 12px;
        left: 10px;
        z-index: 2147483647;
        /* ぜったい最前面 */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, .5);
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
        border: 1px solid rgba(0, 0, 0, .06);
    }

    .navicon {
        position: relative;
        width: 24px;
        height: 2px;
        background: var(--secondary-color);
    }

    .navicon::before,
    .navicon::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--secondary-color);
    }

    .navicon::before {
        top: -8px;
    }

    .navicon::after {
        top: 8px;
    }

    .navicon.hamburger-active {
        background: transparent;
    }

    .navicon.hamburger-active::before {
        transform: rotate(-45deg);
        top: 0;
    }

    .navicon.hamburger-active::after {
        transform: rotate(45deg);
        top: 0;
    }

    /* メニュー本体：最上位・中央固定・他要素の上に */
    .menu {
        position: fixed;
        top: 64px;
        left: 50%;
        transform: translateX(-50%) scale(0, 1);
        transform-origin: top center;
        width: min(92vw, 680px);
        max-width: 92vw;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(6px) saturate(120%);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
        z-index: 2147483646;
        /* ← これで他セクションより常に前 */
        list-style: none;
        margin: 0;
        transition: transform .28s ease;
    }

    .menu.hamburger-active {
        transform: translateX(-50%) scale(1, 1);
    }

    .menu li {
        opacity: 0;
        padding: 14px 0;
        margin: 0 4%;
        transition: opacity .22s ease .08s;
    }

    .menu.hamburger-active li {
        opacity: 1;
    }

    .menu a {
        display: block;
        text-decoration: none;
        font-size: 1rem;
        letter-spacing: .06em;
        color: var(--tertiary-color);
        font-weight: bold;
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .24);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 2147483645;
    }

    .menu-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* メニュー開時は背面スクロール無効 */
    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    /* スマホ: プロフィール写真を画面中央に */
    #profile .profile-img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

}

/* 画面幅370px以下：見出しを1remに */
@media screen and (max-width: 370px) {
    #hero h2,
    #about h2 .heading-text,
    .about-with-bg .heading-text,
    #about .about-details .about-details-item1 h3,
    .about-details-item2 h3,
    #profile h2 .profile-heading-text,
    #profile .profile-career h3,
    #menu h2 .menu-heading-text,
    #menu .refl-menu h3,
    #menu .momi-menu h3,
    #gallery h2 .gallery-heading-text,
    #information h2 .information-heading-text,
    #information .information-details-item1 h3,
    #information .information-details-item2 h3,
    #reserve h2 .reserve-heading-text,
    #reserve .invitation-course-title,
    #reserve .tel-info h3,
    #spots .heading-text::before,
    #spots .spot-title {
        font-size: 1.2rem;
    }
}

/* Hamburger Menu Animation End */
/*ハンバーガーメニューここまで↑↑↑*/


main {
    position: relative; 
    z-index: 0;
    overflow: hidden;

    background-image: url(./image/bg.png);
    /* 横幅を100%にフィットさせ、高さは画像比率を維持 */
    background-size: 100% auto;
    /* 縦方向に繰り返す */
    background-repeat: repeat-y;
    /* 背景の基点を左上に固定 */
    background-position: top left;

    background-attachment: fixed;

    /* コンテンツが突き抜けないよう最小の高さを確保 */
    min-height: 100vh;
}

#bg .bg-container {
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100vw;
    /* 横幅を画面いっぱいに */
    max-width: 100vw;
    height: 46vw;
    /* 高さは横幅の60%（お好みで調整） */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;

}

.hero-slider .slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    /* 画像も横幅いっぱい */
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    z-index: 1;
}

.hero-slider .slide,
.hero-slider img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    /* 画像全体を表示し、はみ出し防止 */
    background: #eee;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}


#hero {
    margin: 0 5%;
}

#hero h2 {
    font-size: 1.8rem;
    color: var(--font-color);
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0;
    padding-top: 2rem;
}

#hero p {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 2rem;
    font-weight: bold;
}


#about {
    margin: 0 5%;
}

#about h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--font-color-white);
    text-align: center;
    margin-bottom: 1rem;
}

.about-with-bg {
    position: relative;
    display: inline-block;
}

.about-with-bg img {
    display: block;
    width: 100%;
}

.about-with-bg .heading-text {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* 画像に合わせて調整 */
    font-size: 1.5rem;
    z-index: 1;
    text-align: center;
    width: 80%;
}


#about .about-text {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 0rem;
}

#about .about-details .about-details-item1 h3,
.about-details-item2 h3 {
    font-size: 1.2rem;
    color: var(--font-color);
    text-align: left;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tertiary-color);
    font-weight: bold;
}

#about .about-details .about-details-item1 p,
.about-details-item2 p {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0 0rem;
}

#about .about-details ol {
    margin: 0;
    padding-left: 1.5rem;
}

#about .about-details li {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#about .about-details {
    margin-bottom: 2.5rem;
}

#about .about-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

#about .about-img img {
    display: block;
    width: auto;
    max-width: 260px;
    height: auto;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

#profile {
    margin: 0 5%;
}

#profile h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--font-color-white);
    text-align: center;
    margin-bottom: 1rem;
}

.profile-with-bg {
    position: relative;
    display: inline-block;
}

.profile-with-bg img {
    display: block;
    width: 100%;
}

.profile-with-bg .profile-heading-text {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* 画像に合わせて調整 */
    font-size: 1.5rem;
    z-index: 1;
    text-align: center;
    width: 80%;
}


#profile .profile-text {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1rem;
    padding: 0 0rem;
}

#profile .profile-career {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0;
}

#profile .profile-career h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--tertiary-color);
    text-align: left;
    margin: 0 0 1rem 0;
    padding: 0 0 0.5rem 0;
    border-bottom: 2px solid var(--tertiary-color);
}

#profile .profile-career p {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.8;
    text-align: left;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

#menu {
    margin: 0 5%;
}

#menu h2 {
    font-size: 1.5rem;
    color: var(--font-color-white);
    text-align: center;
    margin-bottom: 1rem;
}

.menu-with-bg {
    position: relative;
    display: inline-block;
}

.menu-with-bg img {
    display: block;
    width: 100%;
}

.menu-with-bg .menu-heading-text {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* 画像に合わせて調整 */
    font-size: 1.5rem;
    z-index: 1;
    text-align: center;
    width: 80%;
}


#menu .refl-menu h3 {
    font-size: 1.2rem;
    color: var(--font-color);
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tertiary-color);
    font-weight: bold;
}

#menu .refl-menu {
    font-size: 0.9rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 0rem;
}

#menu .refl-menu-1,
#menu .refl-menu-2,
#menu .refl-menu-3,
#menu .momi-menu-1,
#menu .momi-menu-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#menu .refl-menu-bg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


#menu .refl-menu-bg img {
    display: block;
    width: 80%;
    /* 親の幅に対して100%にするのが管理しやすいです */
    max-width: 300px;
    /* 必要に応じて最大幅を指定 */
    height: auto;
    align-items: center;
}

#menu .refl-menu .menu-title,
.momi-menu .menu-title {
    position: absolute;
    top: 50%;
    /* 上から50% */
    left: 50%;
    /* 左から50% （単位 % が必須） */
    transform: translate(-50%, -50%);
    /* 自身の幅・高さの半分戻して真ん中へ */

    /* display: flex を追加することで上下左右中央寄せを確実に */
    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    /* テキストが折り返さないように */
    color: #fff;
    font-size: 1.1rem;
    z-index: 1;
    margin: 0;
    width: 100%;
}

#menu .refl-menu .refl-menu-1 h4,
.refl-menu-2 h4,
.refl-menu-3 h4 {
    font-size: 1.1rem;
    color: var(--font-color-white);
    margin-bottom: 0rem;
}

#menu .refl-menu .refl-menu-1 h4 {
    /* background-color: var(--primary-color); */
    padding: 0.2rem 0.2rem;
    width: 40%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#menu .refl-menu .refl-menu-2 h4 {

    padding: 0.2rem 0.2rem;
    width: 40%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#menu .refl-menu .refl-menu-3 h4 {
    /* background-color: var(--tertiary-color); */
    padding: 0.2rem 0.2rem;
    width: 40%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#menu .refl-menu .menu-description,
#menu .momi-menu .menu-description {
    font-size: 0.95rem;
    color: var(--font-color);
    margin: 0.5rem 0 0.25rem 0;
    line-height: 1.5;
    min-height: 1.5rem;
}

#menu .refl-menu .menu-price,
#menu .momi-menu .menu-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--font-color);
    margin: 0.25rem 0 1rem 0;
    line-height: 1.2;
}

#menu .refl-menu .refl-menu-note,
#menu .momi-menu-note {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    align-self: end;
}

#menu .refl-menu .refl-menu-note ul,
#menu .momi-menu-note ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

#menu .refl-menu .refl-menu-note li,
#menu .momi-menu-note li {
    font-size: 1rem;
    font-weight: bold;
    color: var(--font-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

#menu .refl-menu .refl-menu-note li::before,
#menu .momi-menu-note li::before {
    content: "※";
    position: absolute;
    left: 0;
    color: var(--font-color);
    font-weight: bold;
}

#menu .momi-menu {
    color: var(--font-color);
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 0rem;
}

#menu .momi-menu h3 {
    font-size: 1.2rem;
    color: var(--font-color);
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tertiary-color);
    font-weight: bold;
}

#menu .momi-menu h4 {
    font-size: 1.1rem;
    color: var(--font-color-white);
    margin-bottom: 0rem;
    padding: 0.2rem 0.2rem;
    width: 40%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#menu .momi-menu .menu-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--font-color);
    margin: 0.25rem 0 1rem 0;
    line-height: 1.2;
}


#gallery {
    margin: 0 5%;
}

#gallery h2 {
    font-size: 1.5rem;
    color: var(--font-color-white);
    text-align: center;
    margin-bottom: 1rem;
}

.gallery-with-bg {
    position: relative;
    display: inline-block;
}

.gallery-with-bg img {
    display: block;
    width: 100%;
}

.gallery-with-bg .gallery-heading-text {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* 画像に合わせて調整 */
    font-size: 1.5rem;
    z-index: 1;
    text-align: center;
    width: 80%;
}

.gallery-main {
    text-align: center;
    width: 100%;
    max-width: 800px;
    /* PCでの最大幅 */
    margin: 2rem auto 1rem;
}

.gallery-main img {
    width: 80vw;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* スマホ: 2列3行 / PC: 3列2行（メディアクエリで上書き） */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 10px;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.gallery-thumbnails .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbnails .thumb.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}



#information {
    margin: 0 5%;
    margin-bottom: 2rem;
}

#information h2 {
    font-size: 1.5rem;
    color: var(--font-color-white);
    text-align: center;
    margin-bottom: 1rem;
}

.information-with-bg {
    position: relative;
    display: inline-block;
}

.information-with-bg img {
    display: block;
    width: 100%;
}

.information-with-bg .information-heading-text {
    position: absolute;
    top: 55%;
    left: 45%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* 画像に合わせて調整 */
    font-size: 1.5rem;
    z-index: 1;
    text-align: center;
    width: 80%;
}


#information ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#information ul li {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1;
    text-align: left;
    margin-bottom: 1rem;
    padding: 0 0rem;
}

#information ul li p {
    margin: 0.6rem 0 0 1rem;
    font-size: 0.9rem;
}

#information .information-details-item1 h3,
.information-details-item2 h3 {
    font-size: 1.2rem;
    color: var(--font-color);
    text-align: left;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tertiary-color);
    font-weight: bold;
}

#information .information-details-item1 p,
.information-details-item2 p {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0 0rem;
}

#information .information-details-item1 ol {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}

#information .information-details-item1 li {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

#information .caution-notes {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(176, 198, 195, 0.15);
    border-left: 4px solid var(--tertiary-color);
    border-radius: 0 8px 8px 0;
}

#information .caution-notes p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

#information .caution-notes p:last-child {
    margin-bottom: 0;
}

#information .caution-notes strong {
    color: var(--tertiary-color);
}

#information .information-details-item2 ol {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}

#information .information-details-item2 li {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-weight: bold;
}


#reserve {
    margin: 0 5%;
    padding-bottom: 2rem;
}

#reserve h2 {
    font-size: 1.5rem;
    color: var(--font-color-white);
    text-align: center;
    margin-bottom: 1rem;
}

.reserve-with-bg {
    position: relative;
    display: inline-block;
}

.reserve-with-bg img {
    display: block;
    width: 100%;
}

.reserve-with-bg .reserve-heading-text {
    position: absolute;
    top: 43%;
    left: 45%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* 画像に合わせて調整 */
    font-size: 1.5rem;
    z-index: 1;
    text-align: center;
    width: 80%;
}



#reserve .info-pickup p {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
    padding: 0 0rem;
}

#reserve .reserve-text {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 2rem;
    margin-top: 0;
    padding: 0 0rem;
}

#reserve .invitation-course-block {
    width: 90%;
    margin: 2rem auto 0;
}

#reserve .invitation-course-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--font-color);
    text-align: left;
    margin: 0 0 1rem;
    padding: 0 0 0.5rem;
    border-bottom: 2px solid var(--tertiary-color);
}

#reserve .invitation-course-box {
    background-color: color-mix(in srgb, var(--primary-color), transparent 60%);
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

#reserve .invitation-course-box .invitation-course-lead {
    font-size: 1rem;
    font-weight: bold;
    color: #7d5a50;
    line-height: 1.8;
    margin: 0 0 1rem;
}

#reserve .invitation-course-box .invitation-course-catch {
    font-size: 1.25rem;
    color: #7d5a50;
    line-height: 2;
    margin: 1.25rem 0;
    padding: 0;
    font-weight: bold;
    letter-spacing: 0.02em;
}

#reserve .invitation-course-box .invitation-course-text {
    font-size: 0.95rem;
    font-weight: bold;
    color: #7d5a50;
    line-height: 1.7;
    margin: 0;
}

#reserve .sns-icon {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#reserve .sns-icon img {
    width: 50px;
    height: auto;
    margin: 0 1rem;
}

#reserve .reserve-info {
    width: 90%;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: color-mix(in srgb, var(--primary-color), transparent 85%);
    border-radius: 10px;
    text-align: center;
}

#reserve .reserve-info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--tertiary-color), transparent 70%);
}

#reserve .reserve-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#reserve .reserve-info-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--tertiary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: center;
}

#reserve .reserve-info-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--font-color);
    text-align: center;
}

#reserve .map {
    text-align: center;
    margin: 1rem auto 0;
    padding: 0;
}

#reserve .map iframe {
    width: 90%;
    height: 60vh;
    border: 0;
    border-radius: 10px;
}

#reserve .tel-info {
    background-color: var(--tertiary-color);
    text-align: center;
    color: var(--font-color-white);
    width: 80%;
    height: auto;
    margin: 1rem auto 0;
    padding: 1rem 1rem;
}

#reserve .tel-info h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--font-color-white);
    text-align: center;
    margin: 0 0;
    padding: 0 0rem;
}

#reserve .tel-info h3 img {
    width: 1.5rem;
    height: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
}


#reserve .tel-info a {
    color: var(--font-color-white);
    text-decoration: none;
}

#reserve .tel-info p {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--font-color-white);
    text-align: center;
    margin: 0rem 0;
    padding: 0 0rem;
}

#reserve .banner_masters {
    margin: 1.5rem 0 0;
    padding: 0;
}

#reserve .banner_masters-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    background-color: #3d3d52;
    border: 1px solid #4a4a62;
    border-radius: 8px;
    color: var(--font-color-white);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#reserve .banner_masters-link:hover {
    background-color: #4a4a62;
    border-color: #555570;
    color: var(--font-color-white);
}

#reserve .banner_masters-link::after {
    content: " →";
    font-weight: bold;
    color: var(--font-color-white);
}

#reserve .banner_masters-link:hover::after {
    color: var(--font-color-white);
}

/* 宮古のスポット（ご予約・お問合せの下に統合） */
#spots {
    width: min(92vw, 960px);
    margin: 0 auto 2rem;
    padding: 0 5%;
    box-sizing: border-box;
}
#spots .spots-intro {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
#spots .spot-section {
    margin-bottom: 4rem;
}
#spots .spot-title {
    color: var(--tertiary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tertiary-color);
    text-align: center;
    font-weight: bold;
}
#spots .spot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
#spots .spot-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 0;
}
#spots .spot-images img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#spots .spot-comment {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
}
@media (min-width: 601px) {
    #spots .spot-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }
    #spots .spot-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    #spots .spot-images img {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: 300px;
        object-fit: cover;
    }
    /* 画像が1枚の場合は1列で中央に配置 */
    #spots .spot-images:has(img:only-child) {
        grid-template-columns: 1fr;
    }
    #spots .spot-images img:only-child {
        max-width: 100%;
    }
}

footer {
    background-color: var(--primary-color);
    text-align: center;
    color: var(--font-color-white);
    padding: 1.5rem 0;
}

footer p {
    margin: 0;
}

/* ================================
   Tablet: 601px〜
================================ */
@media (min-width: 601px) {

    /* モバイル用ハンバーガーを無効化（ヘッダーの通常ナビだけ表示） */
    .menu-icon,
    .menu,
    .menu-backdrop {
        display: none !important;
    }

    /* レイアウト幅・タイポ */
    main>section {
        width: min(92vw, 960px);
        margin: 0 auto 2rem;
    }

    header nav ul {
        gap: 16px;
    }

    header nav ul li a {
        font-size: 1rem;
        padding: 0 .5rem;
    }

    header nav ul .sp-none {
    display: inline;
}

    /* ヒーロー */
    .hero-slider {
        height: 40vw;
        max-height: 520px;
    }

    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
        padding: 0 3rem;
    }

    /* 見出しオーバーレイ文字サイズ */
    .about-with-bg .heading-text {
        font-size: 1.8rem;
    }

    .menu-with-bg .menu-heading-text {
        font-size: 1.8rem;
    }

    .gallery-with-bg .gallery-heading-text {
        font-size: 1.8rem;
    }

    .information-with-bg .information-heading-text {
        font-size: 1.8rem;
    }

    .reserve-with-bg .reserve-heading-text {
        font-size: 1.8rem;
    }

    /* About 詳細を2カラムに */
    #about .about-text {
        font-size: 1rem;
    }

    #about .about-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 2rem;
    }

    /* Profile：画像＋テキストの2カラム */
    #profile {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        grid-template-areas:
            "title title"
            "image text"
            "image career";
        column-gap: 2rem;
        align-items: start;
    }

    #profile .profile-with-bg {
        grid-area: title;
    }

    #profile .profile-img {
        grid-area: image;
        width: 100%;
        max-width: 420px;
        justify-self: center;
    }

    #profile .profile-text {
        grid-area: text;
    }

    #profile .profile-career {
        grid-area: career;
    }

    /* Menu：リフレ＆もみほぐしを横並び */
    #menu>div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    #menu .refl-menu,
    #menu .momi-menu {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #menu .refl-menu-1,
    #menu .refl-menu-2,
    #menu .refl-menu-3,
    #menu .momi-menu-1,
    #menu .momi-menu-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Gallery */
    .gallery-main {
        margin: 2rem auto 1rem;
    }
    .gallery-main img {
        width: 70vw;
        max-width: 780px;
    }

    /* PC: 3列2行 */
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
    .gallery-thumbnails .thumb {
        max-width: 190px;
        justify-self: center;
    }

    /* Information */
    #information ul li {
        font-size: 1rem;
    }



    /* Reserve */
    #reserve .map iframe {
        height: 480px;
    }

    #reserve .tel-info {
        width: 60%;
    }
}

/* ================================
   Desktop: 1280px〜
================================ */
@media (min-width: 1280px) {

    header nav ul li a {
        font-size: 1.3rem;
    }

    main {
        background-size: cover;
        background-attachment: fixed;
        background-repeat: no-repeat;
    }


    /* ヒーローは16:9の比率を維持（高さは子要素の絶対配置のため必要） */
    .hero-slider {
        position: relative;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        /* ← これで高さを自動算出 */
        height: auto;
        /* 念のため */
        background: #eee;
        margin: 0 auto;
        display: block;
        /* FlexでなくてOK */
    }

    /* スライド画像（.slide は <img> 自体なのでこれだけでOK） */
    .hero-slider .slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s;
        object-fit: contain;
        /* ← 上下を切らない（全体表示） */
        object-position: center center;
        z-index: 1;
        background: #eee;
        /* 余白の色（任意で変更可） */
    }

    .hero-slider .slide.active {
        opacity: 1;
        z-index: 2;
    }

    #hero {
        align-items: center;
        margin: 0 auto 5rem;
    }

    #hero p {
        text-align: center;

    }

    #about {
        margin: 0 auto 5rem;
    }

    #about h2 .heading-text {
        font-size: 2rem;
    }

    #about .about-text {
        font-size: 1rem;
    }

    #about .about-details .about-details-item1 h3,
    .about-details-item2 h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--tertiary-color);
        font-weight: bold;
    }

    #about .about-details .about-details-item1 p,
    .about-details-item2 p {
        font-size: 1rem;
    }

    #profile {
        margin: 0 auto 5rem;
    }

    #profile h2 .profile-heading-text {
        font-size: 2rem;
    }

    #profile .profile-text {
        font-size: 1rem;
    }

    #profile .profile-career h3 {
        font-size: 1.1rem;
    }

    #profile .profile-career p {
        font-size: 0.95rem;
    }

    #menu {
        margin: 0 auto 5rem;
    }

    #menu h2 .menu-heading-text {
        font-size: 2rem;
    }

    #menu .refl-menu h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--tertiary-color);
        font-weight: bold;
    }

    #menu .refl-menu h4 {
        font-size: 1.1rem;
    }

    #menu .refl-menu .menu-description,
    #menu .momi-menu .menu-description {
        font-size: 0.9rem;
    }

    #menu .refl-menu .menu-price,
    #menu .momi-menu .menu-price {
        font-size: 1.3rem;
    }

    #menu .refl-menu .refl-menu-note,
    #menu .momi-menu-note {
        text-align: center;
        padding: 0 10%;
        align-self: end;
    }

    #menu .refl-menu .refl-menu-note li,
    #menu .momi-menu-note li {
        font-size: 1rem;
        font-weight: bold;
    }

    #menu .momi-menu h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--tertiary-color);
        font-weight: bold;
    }

    #menu .momi-menu h4 {
        font-size: 1.3rem;
    }



    #gallery {
        margin: 0 auto 5rem;
    }

    #gallery h2 .gallery-heading-text {
        font-size: 2rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
    .gallery-thumbnails .thumb {
        max-width: 190px;
        justify-self: center;
    }

    #information {
        margin: 0 auto 5rem;
    }

    #information h2 .information-heading-text {
        font-size: 2rem;
    }

    #information ul li {
        font-size: 1rem;
    }

    #information ul li p {
        font-size: 0.9rem;
    }

    #information .information-details-item1 h3,
    .information-details-item2 h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--tertiary-color);
        font-weight: bold;
    }

    #information .information-details-item1 p,
    .information-details-item2 p {
        font-size: 1rem;
    }


    #reserve {
        margin: 0 auto 5rem;
    }

    #reserve h2 .reserve-heading-text {
        font-size: 2rem;
    }

    #reserve .info-pickup {
        text-align: center;
        padding: 0 20%;
    }

    #reserve .info-pickup p {
        font-size: 1rem;
    }

    #reserve .reserve-text {
        text-align: center;
        padding: 0 20%;
        margin-bottom: 2rem;
    }

    #reserve .reserve-text p {
        font-size: 1rem;
        text-align: left;
        margin-top: 0;
    }

    #reserve .sns-icon img {
        width: 100px;
        height: auto;
        margin: 0 2rem;
    }

    #reserve .reserve-info {
        width: 90%;
        margin: 2rem auto;
        padding: 1.25rem;
        text-align: center;
    }

    #reserve .reserve-info-item {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    #reserve .reserve-info-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #reserve .reserve-info-item strong {
        font-size: 1rem;
        text-align: center;
    }

    #reserve .reserve-info-item p {
        font-size: 0.9rem;
        text-align: center;
    }

    #reserve .invitation-course-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--tertiary-color);
    }

    #reserve .invitation-course-box .invitation-course-lead,
    #reserve .invitation-course-box .invitation-course-text {
        font-size: 0.95rem;
    }

    #reserve .invitation-course-box .invitation-course-catch {
        font-size: 1.15rem;
    }

    #reserve .tel-info {
        width: 40%;
    }

    #reserve .tel-info h3 {
        font-size: 1.8rem;
    }

    #reserve .tel-info p {
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.9rem;
    }


}