@charset "utf-8";

/*----------------------------------------
common
----------------------------------------*/
* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    color: #704214;
    font-family: "Sawarabi Gothic";
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 400;
    background-color: #FFFFF0;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロール防止 */
}

img,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* コンテナ幅制御 */
#container {
    max-width: 100%;
    overflow-x: hidden;
}

.Topics {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    align-items: flex-start;
    background-color: transparent;
}

.section__title {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 4px; /* グラデーションの線を表示するためのスペースを確保 */
    background-image: linear-gradient(to right, rgba(128, 0, 0, 1) 0%, rgba(128, 0, 0, 0.3) 100%);
    background-repeat: no-repeat;
    background-position: left bottom; /* 線を要素の下端に配置 */
    background-size: 100% 4px; /* 幅100%、高さ4pxの線にする */
}

.maintitle {
    font-family: "Zen Old Mincho";
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    color: rgba(112, 66, 20, 0.50);
    font-family: "EB Garamond";
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/*----------------------------------------
header
----------------------------------------*/
.header_pc {
    background-color: #fffff0;
    color: #704214;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 140px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* スクロール時に表示されるクラス (PC/SP共通でJSで付与) */
.header_pc.is-visible,
.header_sp.is-visible {
    opacity: 1;
    visibility: visible;
}

.header__topic img {
    vertical-align: middle;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.nav__item a {
    color: #704214;
    text-decoration: none;
    font-size: 1.6rem;
    position: relative;
}

/* ナビゲーションの区切り線 */
.nav__item:not(:last-child) a::after {
    content: "|";
    color: #704214;
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
}

.header_sp {
    background-color: #fffff0;
    color: #704214;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* ハンバーガーメニュー本体の初期状態 */
.sp-nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* 画面の右外に配置 */
    width: 80%; /* メニューの幅 */
    max-width: 355px;
    height: 377px;
    background-color: #fffff0;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out; /* スライドアニメーション */
    z-index: 20; /* ヘッダーより手前に表示 */
    overflow-y: auto; /* メニューが長い場合にスクロール可能に */
    display: flex;
    flex-direction: column;
}

/* JavaScriptで付与される開いている状態のクラス */
.sp-nav-menu.is-open {
    right: 0; /* 画面内にスライドイン */
}


/*----------------------------------------
firstview
----------------------------------------*/
.firstview {
    background-image: url(../images/firstview.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fffff0;
    position: relative;
    height: 100vh;
}

.mainTopics {
    position: absolute;
    top: 40%;
    left: 20%;
    text-align: left;
}

.mainTopics__title {
    color: #FFFFF0;
    font-family: "EB Garamond";
    font-size: 6.4rem;
    font-weight: 700;
}

.mainTopics__subtitle {
    color: #FFFFF0;
    font-family: "Zen Old Mincho";
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 24px;
}

/*----------------------------------------
news
----------------------------------------*/
.section--news {
    position: relative;
    background-image: url(../images/background1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section--news::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.section--news > * {
    position: relative;
    z-index: 2;
}

.section--news .Topics {
    padding: 80px 10px;
    height: auto;
}

.banner {
    max-width: 1000px;
    width: 100%;
    aspect-ratio: 1001.60/313.00;
    margin: 0 auto;
}

/* モーダル（QR）共通スタイル */
#qrModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0; /* JSでis-active付与時に1にする */
    visibility: hidden; /* JSでis-active付与時にvisibleにする */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#qrModal.is-active {
    opacity: 1;
    visibility: visible;
    display: flex;
}


/* モーダルのコンテンツ */
.modal-content {
    background-color: #fffff0;
    margin: auto;
    padding: 20px;
    border: 3px solid #800000;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* 閉じるボタン */
.close-button {
    color: #aaa;
    font-size: 2.8rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
    cursor: pointer;
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

/* QRコード画像 */
.qr-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* モーダルのテキスト */
.modal-text {
    font-size: 1.2em;
    color: #333;
    margin-top: 15px;
}

/*----------------------------------------
menu
----------------------------------------*/
.section--menu {
    position: relative;
    background-image: url(../images/background2.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section--menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.section--menu > * {
    position: relative;
    z-index: 2;
}

.section--menu .Topics {
    height: 967px;
}

/* 画像のスタイル */
.Topics-img {
    width: 600px;
    position: absolute;
    top: 40px;
    right: 40%;
    z-index: 4;
}

/* テキストボックスのスタイル */
.Topics-txt {
    width: 600px;
    height: auto;
    aspect-ratio: 6/5;
    padding: 165px 90px;
    border: 2px solid #800000;
    background: #FFFFF0;
    box-shadow: 8px 8px 5px 0px rgba(128, 0, 0, 0.30);
    position: absolute;
    bottom: 40px;
    left: 40%;
    z-index: 3;
}

/* テキストのスタイル */
.txt-first {
    margin-bottom: 16px;
}

/* オリーブ画像のスタイル */
.Topics-txt img {
    width: 80px;
    align-self: flex-end;
    margin-top: 20px;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/*----------------------------------------
about
----------------------------------------*/
.section--about {
    position: relative;
    background-image: url(../images/background1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section--about::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.section--about > * {
    position: relative;
    z-index: 2;
}

.section--about .Topics {
    height: 967px;
}
/*----------------------------------------
access
----------------------------------------*/
.section--access {
    position: relative;
    background-image: url(../images/background3.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section--access::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.section--access > * {
    position: relative;
    z-index: 2;
}

.section--access .Topics {
    height: 967px;
}

/* 地図のスタイル */
iframe {
    max-width: 600px;
    height: 500px;
    aspect-ratio: 6/5;
    position: absolute;
    top: 40px;
    right: 40%;
    z-index: 4;
    transition: transform 0.3s ease-in-out;
}

/* PCでのマウスオーバー時 */
iframe.is-hovered {
    transform: scale(1.5);
    z-index: 4;
    pointer-events: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
    word-break: break-word;
}

td {
    text-align: left;
}

td:first-child {
    width: 80px;
    padding-right: 16px;
}

td:nth-child(2) {
    padding-left: 0;
}

td a {
    color: #704214;
    text-decoration: underline;
}

/*----------------------------------------
gallery
----------------------------------------*/
.section--gallery {
    position: relative;
    background-image: url(../images/background1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section--gallery::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.section--gallery > * {
    position: relative;
    z-index: 2;
}

.section--gallery .Topics {
    display: block;
    height: auto;
    padding: 80px 0;
    overflow: hidden;
}

/* スライダー調整 */
.slider-container {
    overflow: hidden; /*スクロールバーを非表示にする */
}

.slider {
    display: flex;
    gap: 1rem;
    width: calc((600px + 16px) * 8);
    animation: slide-left 20s linear infinite;
}

.slider__item {
    width: 600px;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
}

/* スライドアニメーションの定義 */
@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * (600px + 16px) * 4));
    }
}

.sns {
    text-align: center;
    padding: 16px 0 0;
}

.sns__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.sns__item img {
    width: 80px;
    vertical-align: middle;
}

/*----------------------------------------
footer
----------------------------------------*/
footer .Topics {
    height: auto;
    padding: 40px 0;
}

.footer-txt {
    margin: 0 auto;
}

/* To Top ボタン */
.Totop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #704214;
    font-size: 1.6rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 10;
}


.Totop.is-show {
    opacity: 1;
    visibility: visible;
}

/* ToTop内の画像 */
.Totop-img {
    display: block;
    width: 80px;
    margin-bottom: 5px;
}

/* ToTop内のテキスト */
.Totop-txt {
    display: block;
    font-size: 1.6rem;
    color: #704214;
    margin: 0;
}

/*----------------------------------------
Middle Screens (769px to 1200px)
----------------------------------------*/
@media screen and (min-width: 769px) and (max-width: 1200px) {
    /* Header PC */
    .header_pc {
        padding: 10px 60px; /* PCヘッダーの左右パディングを調整 */
    }

    /* Firstview */
    .mainTopics {
        left: 15%; /* メインタイトル位置を微調整 */
    }

    .mainTopics__title {
        font-size: 5.2rem; /* タイトルフォントサイズを少し小さく */
    }

    .mainTopics__subtitle {
        font-size: 2.0rem; /* サブタイトルフォントサイズを少し小さく */
    }

    /* Menu Section */
    .section--menu .Topics {
        height: 800px; /* 高さを調整 */
    }
    .section--menu .Topics-img {
        width: 500px; /* 画像の幅を調整 */
        right: 35%; /* 画像の右からの位置を調整 */
    }
    .section--menu .Topics-txt {
        width: 500px; /* テキストボックスの幅を調整 */
        padding: 160px 60px; /* パディングを調整 */
        left: 35%; /* テキストボックスの左からの位置を調整 */
    }

    /* About Section */
    .section--about .Topics {
        height: 800px; /* 高さを調整 */
    }
    .section--about .Topics-img {
        width: 500px; /* 画像の幅を調整 */
        right: 35%; /* aboutセクションの画像位置を調整 (HTMLの左右と合わせてください) */
        top: 40px;
    }
    .section--about .Topics-txt {
        width: 500px; /* テキストボックスの幅を調整 */
        padding: 160px 60px; /* パディングを調整 */
        right: 35%; /* aboutセクションのテキストボックス位置を調整 */
        bottom: 40px;
    }

    /* Access Section */
    .section--access .Topics {
        height: 800px; /* 高さを調整 */
    }
    iframe {
        max-width: 500px; /* 地図の最大幅を調整 */
        height: 400px; /* 地図の高さを調整 */
        right: 35%; /* 地図の右からの位置を調整 */
    }
    .section--access .Topics-txt {
        width: 500px; /* テキストボックスの幅を調整 */
        padding: 112px 40px 80px; /* パディングを調整 */
        left: 35%; /* テキストボックスの左からの位置を調整 */
    }

    /* Gallery Slider */
    .slider {
        width: calc((500px + 16px) * 8); /* スライダーアイテム幅を調整 */
    }
    .slider__item {
        width: 500px; /* スライダーアイテム幅を調整 */
    }
    @keyframes slide-left {
        100% {
            transform: translateX(calc(-1 * (500px + 16px) * 4)); /* スライドアニメーションの距離を調整 */
        }
    }
}


/*----------------------------------------
sp
----------------------------------------*/
@media screen and (max-width: 768px) {

    /* common */
    .container {
        /* min-width: 415px; */ /* 横スクロールの原因になるため削除 */
        margin: 0 auto;
    }

    .section__title {
        padding-bottom: 2px;
        background-size: 100% 2px;
    }

    .subtitle {
        font-size: 1.6rem;
    }

    .Topics {
        padding: 20px 0;
    }

/*----------------------------------------
header
----------------------------------------*/
    .header_pc {
        display: none;
    }

    .sp-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
    }

    /* ハンバーガーメニュー本体の初期状態 */
    .sp-nav-menu {
        height: 377px; /* SP版でも377pxに固定 */
    }


    .sp-nav__list {
        padding: 40px 70px;
        list-style: none;
        margin: 0;
    }

    .sp-nav__item:nth-child(2) {
        margin: 16px 0;
    }

    .sp-nav__item a {
        color: #704214;
        text-decoration: none;
        font-size: 1.8rem;
        display: block;
        padding: 8px 0;
    }

    .sp-sns {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 0 70px 40px;
        margin-top: auto;
    }

    .sp-sns__item {
        width: 40px;
        height: 40px;
        aspect-ratio: 1/1;
    }

/*----------------------------------------
firstview
----------------------------------------*/
    .mainTopics {
        left: 10%;
    }

    .mainTopics__title {
        font-size: 3.2rem;
    }

    .mainTopics__subtitle {
        font-size: 1.6rem;
    }

/*----------------------------------------
news
----------------------------------------*/
    .section--news .Topics{
        padding: 40px 10px;
    }

    .banner {
        max-width: 415px;
    }

    .modal-content{
        max-width: 355px;
    }

    .modal {
        left: 0;
        top: 0;
        justify-content: center;
        align-items: center;
    }

/*----------------------------------------
menu
----------------------------------------*/
    .section--menu .Topics{
        height: 502px;
    }

    /* 画像のスタイル */
    .Topics-img {
        width: 300px;
        height: auto;
        aspect-ratio: 6/5;
        position: absolute;
        top: 20px;
        right: 40%;
        z-index: 4;
    }

    /* テキストボックスのスタイル */
    .Topics-txt {
        width: 300px;
        height: auto;
        aspect-ratio: 6/5;
        border: 1px solid #800000;
        background: #FFFFF0;
        box-shadow: 8px 8px 5px 0px rgba(128, 0, 0, 0.30);
        padding: 45px 15px;
        position: absolute;
        bottom: 20px;
        left: 40%;
        z-index: 3;
    }

    /* オリーブ画像のスタイル */
    .Topics-txt img {
        width: 40px;
        align-self: flex-end;
        margin-top: 10px;
        position: absolute;
        bottom: 10px;
        right: 10px;
    }
/*----------------------------------------
about
----------------------------------------*/
    .section--about .Topics{
        height: 502px;
    }
/*----------------------------------------
access
----------------------------------------*/
    .section--access .Topics{
        height: 502px;
    }

    iframe {
        max-width: 300px;
        height: auto;
        aspect-ratio: 6/5;
        position: absolute;
        top: 20px;
        right: 40%;
        z-index: 4;
    }

    iframe.is-hovered {
        transform: none;
        z-index: auto;
        pointer-events: none;
    }

    td:first-child {
        padding-right: 8px;
    }

    .section--access .Topics-txt {
        padding: 36px 6px 20px;
    }

    /* テキストのスタイル */
    .section--access .section__title {
    margin-bottom: 8px;
}
/*----------------------------------------
gallery
----------------------------------------*/
    .section--gallery .Topics{
        padding: 40px 0;
    }

    /* スライドアニメーションの定義 */
    @keyframes slide-left {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-1 * (300px + 16px) * 4));
        }
    }

    .slider {
        width: calc((300px + 16px) * 8);
        animation: slide-left 20s linear infinite;
    }

    .slider__item {
        width: 300px;
        margin-right: 16px;
    }

    .sns__item img {
    width: 40px;
    vertical-align: middle;
    }

    .Totop-img {
        width: 50px;
    }
}

    @media screen and (max-width: 480px) {
    .Topics {
        /* min-width: 355px; */ /* 横スクロールの原因になるため削除 */
        padding: 20px 15px; /* 左右にパディングを追加 */
    }

    .banner {
        max-width: 355px;
    }

    /* 画像のスタイル */
    .Topics-img {
        width: 300px;
        height: auto;
        aspect-ratio: 6/5;
        position: absolute;
        top: 20px;
        right: 20%;
        z-index: 4;
    }

    /* テキストボックスのスタイル */
    .Topics-txt {
        width: 300px;
        height: auto;
        aspect-ratio: 6/5;
        border: 1px solid #800000;
        background: #FFFFF0;
        box-shadow: 8px 8px 5px 0px rgba(128, 0, 0, 0.30);
        padding: 45px 15px;
        position: absolute;
        bottom: 20px;
        left: 20%;
        z-index: 3;
    }

    iframe {
        width: 300px;
        height: auto;
        aspect-ratio: 6/5;
        position: absolute;
        top: 20px;
        right: 20%;
        z-index: 4;
    }
}