@charset "utf-8";
/* CSS Document */

/* ----------------------------------------------------
    グローバルスタイル
    ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    height: 100%;
    overflow-y: auto;
    font-family: '游明朝', 'Yu Mincho', 'MS PMincho', serif;
}
body.no-scroll {
    overflow: hidden;
}

/* ----------------------------------------------------
    ヘッダー
    ---------------------------------------------------- */
header {
    position: fixed;
    top: -60px;
    transform: translateY(0);
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: rgba(71, 67, 64, 1);
    transition: background-color 0.4s ease;
    z-index: 4;
}

header.scrolled {
    background-color: rgba(71, 67, 64, 1);
    box-shadow: 1px 1px 3px #333;
    color: #fff;
}

header p {
    color: #fff;
    font-weight: bold;
    padding-right: 1em;
}

/* ----------------------------------------------------
    PC版ヘッダー（769px以上）
    ---------------------------------------------------- */
.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.desktop-logo,
.desktop-nav {
    display: flex;
}
.mobile-header,.mobile-nav{
    display: none;
}
.desktop-nav {
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.desktop-nav a:not(.cta-button) {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.desktop-nav a:not(.cta-button):hover {
    opacity: 0.7;
}

header.scrolled .desktop-nav a:not(.cta-button) {
    color: #fff;
}

/* CTAボタン */
.desktop-nav .cta-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.btn-request {
    background-color: #008248;
    border: 2px solid #008248;
    color: #fff;
}

.btn-request:hover {
    opacity: 0.8;
}

.btn-tour {
    background-color: #f57a00;
    border: 2px solid #f57a00;
    color: #fff;
}

.btn-tour:hover {
    opacity: 0.8;
}

/* 電話番号 */
.desktop-nav .phone-number {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    font-size: 1.25em;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s;
    white-space: nowrap;
}

header.scrolled .desktop-nav .phone-number {
    color: #fff;
}
.mobile-bg {
    display: none;
}

/* ----------------------------------------------------
    メインコンテンツ
    ---------------------------------------------------- */
main {
    padding: 10px 20px;
    background: #f5f5f5;
    position: relative;
    z-index: 3;
    margin-top: 100vh;
}

.slide-show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.slide-show-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #474340;
    opacity: 0;
    z-index: 2;
}

.slide-show_panel {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.overlay-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    pointer-events: none;
    text-shadow: 1px 1px 7px #000;
}

.overlay-text h1 {
    font-size: 4vw;
    margin-bottom: 2vh;
}

.sub-text {
    font-size: 2vw;
    opacity: 0;
    margin: 0.5vh 0;
}

/* 施設概要セクション */
.facility-overview {
    width: 70%;
    margin: 1em auto;
    padding-bottom: 20%;
}

.facility-overview .fl {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin: 1em 0;
}

.facility-overview .text {
    flex: 1 1 400px;
}

.facility-overview h2 {
    color: #333;
    margin: 2em 0 1em 0;
    background-image: linear-gradient(90deg, #f5f5f5, #cba9a9);
}

.facility-overview .text ul {
    margin-top: 10px;
    padding-left: 1em;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

.facility-overview .text img {
    margin-top: 10px;
    width: 75%;
    overflow-y: hidden;
}

.facility-overview .text p {
    margin-bottom: 1em !important;
}

.facility-overview .bar {
    background-color: #847060;
    border-radius: 100vh;
    display: block;
    padding: .5em 1em;
    color: #FFF;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

.facility-overview .bar span {
    font-size: 1.5em;
    font-weight: bold;
}

.facility-overview .zero {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    font-style: italic;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

.facility-overview .tuki {
    font-size: 1.25em;
    font-weight: bold;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    background-color: #474340;
    border-radius: 100vh;
    color: #fff;
    padding: .5em 1em;
}

.facility-overview .kome {
    border-top: 1px #333 solid;
}

.facility-overview .nagare div {
    display: flex;
    align-items: center;
    gap: 0; /* 要素間の隙間を確保 */
    flex-wrap: nowrap; /* 強制的に折り返さない */
    justify-content: center; /* 水平方向の中央揃え */
    font-size: 1.5em;
}

.facility-overview .nagare div span {
    position: relative;
    padding: 0 2em;
}

.nagare div span::after {
    content: "▶";
    position: absolute;
    right: -0.5em; /* span要素の右側に配置 */
    top: 50%;
    transform: translateY(-50%);
}

/* 最後のspanには矢印を表示しない */
.nagare div span:last-child::after {
    content: "";
}
.facility-overview .text ul li,
.facility-overview .nagare ul li {
    list-style-type: none !important;
    padding-left: 1em;
}

.facility-overview .housiki li::before {
    content: "■";
    position: absolute;
    left: -0.25em;
}

.facility-overview .if li::before,
.facility-overview .nagare li::before {
    content: "※";
    position: absolute;
    left: -0.25em;
}

.facility-overview strong {
    font-size: 1.5em;
    font-style: italic;
}

.facility-overview .images {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.facility-overview .images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.js-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

/* 食事ギャラリー */
.gohan-gallery {
    margin-top: 50px;
    overflow: hidden;
    padding: 0 20px;
}

.gohan-gallery h2 {
    text-align: center;
    margin-bottom: 20px;
}

.gohan-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

.gohan-wrapper img {
    width: 25vw;
    height: auto;
    object-fit: cover;
}

/* ----------------------------------------------------
    PC用 お問い合わせフォーム
    ---------------------------------------------------- */
#contact .contact-info {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

#contact .contact-info ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#contact .contact-info ul li {
    font-size: 1em;
}

#contact .contact-info ul li a {
    color: #008248;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#contact .contact-info ul li a:hover {
    color: #006633;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#contact .form-group {
    display: grid;
    grid-template-columns: 1fr 2fr; /* ラベルと入力欄を1:2の比率で表示 */
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

#contact .form-group:last-child {
    display: block; /* 送信ボタンのグループはグリッドにしない */
    text-align: center;
}

#contact form label {
    font-weight: bold;
    color: #444;
    font-size: 1em;
    text-align: right;
    padding-right: 15px;
}

#contact form input[type="text"],
#contact form input[type="tel"],
#contact form input[type="email"],
#contact form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#contact form textarea {
    resize: vertical;
}

#contact form button[type="submit"] {
    display: block;
    width: 50%;
    margin: 20px auto 0;
    padding: 14px 25px;
    background-color: #008248;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#contact form button[type="submit"]:hover {
    background-color: #006633;
    transform: translateY(-2px);
}

/* ラジオボタンのレイアウト */
#contact .inquiry-options {
    display: flex; /* 横並びにする */
    gap: 1em;
    align-items: center;
}

#contact .inquiry-options label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: normal;
    text-align: left;
    padding-right: 0;
}

#contact .inquiry-options input[type="radio"] {
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

#contact .inquiry-options input[type="radio"]:checked::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* フッター */
footer {
    position: relative;
    z-index: 5;
    background-color: #474340;
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
    transform: translateY(100%);
    opacity: 0;
}

.ft {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 50px;
}

footer p {
    margin: 0;
    padding: 0;
}

footer a {
    text-decoration: none;
    color: #fff;
}

.kadomaru {
    background-color: #fff;
    color: #474340;
    border-radius: 100vh;
    padding: .25em .5em;
    font-weight: bold;
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* その他の施設セクション */
.related-facilities {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.facilities-grid a {
    text-decoration: none;
}

.facility-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.facility-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-title {
    padding: 15px 10px;
    font-size: 1em;
    font-weight: bold;
    color: #444;
}

.facility-list {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.facility-list h3 {
    font-size: 1.2em;
    color: #008248;
    border-left: 4px solid #008248;
    padding-left: 10px;
    margin-bottom: 15px;
}

.facility-list ul {
    list-style: none;
    padding-left: 0;
}

.facility-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 1em;
    color: #666;
}

.facility-list li:last-child {
    border-bottom: none;
}

/* アクセスセクション */
.address {
    font-size: 1.1em;
    margin-bottom: 2em;
}

.transport-info {
    text-align: left;
    width: 100%;
    max-width: 800px;
}

.transport-info h3 {
    font-size: 1.5em;
    color: #008248;
    margin: 0;
    padding: 0;
}

.transport-info ul {
    list-style: none;
    padding-left: 0;
}

.transport-info li {
    font-size: 1.1em;
    position: relative;
    padding-left: 1.1em;
}

.transport-info li::before {
    content: "🚃";
    position: absolute;
    left: -1em;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    max-width: 800px;
    width: 90%;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    border: 2px solid #aaa;
    border-radius: 50vh;
    color: #aaa;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.close-button:hover {
    color: #333;
    border-color: #333;
    background-color: #f0f0f0;
}

.close-icon {
    font-size: 20px;
    line-height: 1;
}

.close-text {
    font-size: 14px;
    white-space: nowrap;
}

.modal-layout {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.image-container {
    flex: 1 1 300px;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.text-container {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.text-container h2 {
    margin-top: 0;
}

.text-container p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-content .cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.modal-content .download-button {
    background-color: #008248;
    color: #fff;
}

.modal-content .download-button:hover {
    background-color: #006633;
}

.modal-content .open-button {
    background-color: #f57a00;
    color: #fff;
}

.modal-content .open-button:hover {
    background-color: #d16100;
}

/* ----------------------------------------------------
    レスポンシブデザイン
    ---------------------------------------------------- */
@media screen and (max-width: 768px) {
    /* PC版要素の非表示 */
    .desktop-header,
    .desktop-logo,
    .desktop-nav,
    .desktop-bg {
        display: none;
    }
    /* モバイルヘッダーの表示と配置 */
    .mobile-header,
    .mobile-nav {
        display: block;
    }
    .mobile-bg {
        display: block;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px;
    }

    .mobile-logo {
        display: block;
        font-size: 1rem;
        font-weight: bold;
        color: #fff;
    }

    /* ハンバーガーメニューのスタイル */
    .hamburger-menu {
        display: block;
        cursor: pointer;
        padding: 5px;
        z-index: 101;
    }

    .hamburger-menu .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: 0.4s;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* オーバーレイのスタイル */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5); /* 黒の半透明 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease;
        z-index: 90; /* メニューより下に設定 */
    }

    /* オーバーレイをアクティブにする */
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* モバイルナビゲーションのスタイル */
    .mobile-nav {
        position: fixed;
        top: 60px;
        left: -80%; /* 修正: メニュー幅分だけ左に隠す */
        width: 80%; /* 修正: メニューの幅を80%に */
        height: calc(100vh - 60px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.5s ease-in-out; /* 修正: transition対象をleftに */
        z-index: 100;
        overflow-y: auto;
    }

    .mobile-nav.active {
        left: 0; /* アクティブ時に画面内に表示 */
    }

    .mobile-nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px;
        font-size: 1.2rem;
        color: #474340;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 1px solid #eee;
        width: 100%;
        justify-content: center;
    }

    .mobile-nav a:last-child {
        border-bottom: none;
    }

    .mobile-nav .cta-button {
        margin-top: 15px;
        padding: 12px 24px;
    }

    .mobile-nav .phone-number {
        display: block;
        text-align: center;
        margin-top: 20px;
        font-size: 1.5em;
        color: #474340;
    }

    .mobile-nav .phone-number i {
        margin-right: 8px;
        color: #f57a00;
    }

    /* 施設概要セクションのモバイル対応 */
    .facility-overview {
        width: 95%;
        padding-bottom: 20%;
    }

    .facility-overview .images,
    .facility-overview .text {
        width: 100%;
        flex: none;
    }
    .facility-overview .text img {
        width: 100%;
        height: auto;
    }
    .overlay-text{
        width: 95%;
    }
    .overlay-text h1 {
    font-size: 6vw;
    margin-bottom: 2vh;
}
    .sub-text {
    font-size: 4vw;
    opacity: 0;
    margin: 0.5vh 0;
}
    /* 各セクションのモバイル対応 */
    .facility-overview .nagare div {
        flex-direction: column;
        gap: 0;
    }

    .facility-overview .nagare div span {
        position: relative;
        display: block;
        padding-bottom: 2em; /* 矢印分のスペースを確保 */
    }

    .facility-overview .nagare div span::after {
        content: "▼";
        position: absolute;
        left: 65%;
        bottom: 0.5em; /* span要素の下側に配置 */
        transform: translateX(-50%);
    }

    /* 最後のspanには矢印を表示しない */
    .facility-overview .nagare div span:last-child::after {
        content: "";
    }
    .gohan-wrapper img {
        width: 50vw;
    }

    /* ----------------------------------------------------
        モバイル用 お問い合わせフォーム
        ---------------------------------------------------- */
    #contact form {
        padding: 20px;
        margin: 0 10px;
    }
    
    #contact .form-group {
        display: flex; /* 縦並びにする */
        flex-direction: column;
        gap: 0.5em;
        margin-bottom: 1em;
        align-items: flex-start;
    }

    #contact form label {
        text-align: left;
        padding-right: 0;
        margin-bottom: 0;
        width: 100%;
    }

    #contact .inquiry-options {
        flex-direction: row; /* モバイルでも横並びを維持 */
        gap: 1em;
        justify-content: flex-start;
        width: 100%;
    }

    #contact .inquiry-options label {
        font-size: 0.9em;
    }

    #contact form button[type="submit"] {
        width: 100%;
        margin-top: 1em;
    }

    #contact .contact-info ul {
        flex-direction: column;
        gap: 10px;
    }

    .close-button {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 18px;
    }

    .close-icon {
        font-size: 24px;
    }

    .close-text {
        font-size: 16px;
    }

    .modal-layout {
        flex-direction: column;
        text-align: center;
    }

    .text-container {
        text-align: center;
    }

    .button-container {
        justify-content: center;
    }

    .transport-info {
        text-align: center;
    }

    .related-facilities {
        width: 90%;
    }
}