.mv-wrap {
    position: relative;
    height: 100svh;
}
.mv-wrap::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.mv-wrap picture img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.mv-wrap .text-box {
    /* position: absolute;
    top: 0;
    left: 0; */
    position: relative;
    width: 37.25%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #FFF;
    z-index: 1;
    margin: 0 auto;
}
.mv-wrap .text-box p {
    font-size: 3.8rem;
    letter-spacing: 0.08em;
    margin-top: 3.6%;
}

main.open .mv-wrap .text-box {
    display: none;
}

/* ナビゲーションが閉じられたときはアニメーションなしで表示 */
main.nav-closed .mv-wrap .text-box {
    animation: none;
    opacity: 1;
    filter: blur(0);
}

@media print, screen and (max-width: 768px) {
    .mv-wrap .text-box {
        width: 62.4vw;
}
    .mv-wrap .text-box p {
        font-size: 5.8vw;
        margin-top: 10.4vw;
    }

}

/* ==============================
  About
============================== */
/* About section with parallax effect */
#about {
    position: relative;
    aspect-ratio: 683 / 384;
    /* overflow: hidden; */
}

/* 背景画像を固定位置に配置（background-attachment: fixedの代替） */
#about::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/top/about-photo.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    opacity: 0; /* デフォルトでは非表示 */
    transition: opacity 0.3s ease;
}

/* 背景が表示される状態 */
#about.bg-visible::before {
    opacity: 1;
}

.about-content {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    padding: 8.7% 0;
    min-height: 100%;
    box-sizing: border-box;
}

.about-content .about-con {
    text-align: center;
    width: 70.13%;
    margin: 0 auto;
}

.about-content .about-con p {
    margin: 0;
    line-height: 3.1;
    font-size: 1.6rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #about {
        aspect-ratio: 375 / 479;
    }

    #about::before {
        background-image: url(../sp-images/top/about-photo.jpg);
        height: 100lvh;
        opacity: 0; /* スマホでもデフォルトは非表示 */
    }

    /* スマホでもbg-visibleクラスで制御 */
    #about.bg-visible::before {
        opacity: 1;
    }

    .about-content {
        padding: 9.8vw 0;
    }

    .about-content .about-con {
        width: 90.6vw;
        max-width: 90.6vw;
    }

    .about-content .about-con p {
        line-height: 3;
        font-size: 3.2vw;
    }
}

/* ロゴアニメーション */
.mv-wrap .text-box {
    opacity: 0;
    animation: blurIn 2s ease-out forwards 0.4s;
}

@keyframes blurIn {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* ==============================
  News
============================== */
#news {
    background-color: #000;
    position: relative;
    z-index: 1;
}

.news-wrap {
    padding: 5.2% 0 6.4%;
    color: #FFFFFF;
    background-color: #000000;
    position: relative;
    z-index: 1;
}

.news-wrap .inner {
    width: 79%;
    max-width: 1080px;
}

.news-wrap .news-con {
}
.news-wrap .news-list {
    display: flex;
}
.news-wrap .news-box {
    width: 344px;
    margin-right: 24px;

    font-family: MyYuGothicM, YuGothic, sans-serif;

    direction: ltr;
}
.news-wrap .news-box:last-child {
    margin-right: 0;
}
.news-wrap .news-box .news-detail .date {
    margin-top: 19px;

    color: #FFFFFF;

    font-size: 15px;
}

.news-wrap .news-box .news-detail .text {
    margin-top: 2px;

    color: #FFFFFF;

    font-size: 17px;
    line-height: 1.8;
}

.news-wrap .btn {
    margin: 7% auto 0;
}
@media print, screen and (max-width: 768px) {
    .news-wrap {
        padding: 7.2vw 0 26.6vw;
    }

    .news-wrap .inner {
        width: 100%;
        margin: 0 5.3vw 0 auto;
        padding: 0;
    }

    .news-wrap .title-wrap {
        width: 13.3vw;
    }
    .news-wrap .news-con {
        flex-direction: row;
    }

    .news-wrap .swiper-container {
        width: 100%;
    }
    .news-wrap .news-list {
        /* flex-direction: column; */

        width: 48vw;
    }
    .news-wrap .news-box {
        width: 100%;
        margin: 0;
    }
    .news-wrap .news-box + .news-box {
    }
    .news-wrap .news-box .news-detail .date {
        margin-top: 3.7vw;

        font-size: 4vw;
    }

    .news-wrap .news-box .news-detail .text {
        font-size: 4vw;
    }

    .news-wrap .btn {
        margin: 9.3vw auto 0;
    }


    /* スライダー */
    .smp-slider {
        position: inherit;
    }
    .smp-slider .pager-box {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 100vw;
        height: 13px;
        margin-top: 8vw;
    }
    .smp-slider .pager-box .swiper-pagination {
        position: relative;
        top: 0;
        left: auto;

        display: inline-block;

        height: 13px;
        margin: 0 25px;

        vertical-align: middle;

        line-height: 12px;
    }
    .smp-slider .pager-box .swiper-pagination .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
        margin: 0 7px;

        opacity: 1;
        border-radius: 50%;
        background-color: #FFF;
    }
    .smp-slider .pager-box .swiper-pagination .swiper-pagination-bullet-active {
        background-color: #B7975A;
    }
}

/* ==============================
  料亭
============================== */
#ryoutei {
    padding-bottom: 7.6%;
}
#ryoutei .content-con .text-wrap .text-image {
    margin-top: 17.2%;
}

.kakure {
    position: relative;
    margin-top: 5.8%;
}
.kakure .text-wrap {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #FFF;
}
.kakure .text-wrap h3 {
    font-size: 3.2rem;
    margin-bottom: 2%;
}
@media print, screen and (max-width: 768px) {
    #ryoutei {
        padding-bottom: 28vw;
    }
    #ryoutei .content-con .text-wrap {
        padding-top: 18.9vw;
    }
    #ryoutei .content-con .text-wrap .text-image {
        position: absolute;
        top: 38.4vw;
        right: 5.3vw;
        width: 43.2vw;
        margin-top: 0;
    }

    .kakure {
        position: relative;
        margin-top: 28vw;
    }
    .kakure .text-wrap h3 {
        font-size: 5.8vw;
        margin-bottom: 3.2vw;
    }
}

/* ==============================
  中食
============================== */
#nigirimeshi {
    padding-bottom: 7.75%;
}
#nigirimeshi .content-con .text-wrap .text-image {
    position: absolute;
    bottom: -5.8%;
    right: 49.1%;
    width: 32.4%;
    z-index: 1;
}
@media print, screen and (max-width: 768px) {
    #nigirimeshi {
        padding-bottom: 28vw;
    }

    #nigirimeshi .photo-wrap {
        width: 62.1vw;
        margin: 0 0 0 auto;
    }
    #nigirimeshi .text-wrap {
        padding-top: 20vw;
    }
    #nigirimeshi .content-con .text-wrap .text-image {position: absolute;
        width: 43.2vw;
        top: 38.4vw;
        right: auto;
        left: 0;
        z-index: 1;
    }
}

/* ==============================
  精米販売
============================== */
#seimai {
    padding-bottom: 16.9%;
}
#seimai .content-con .photo-wrap {
    order: 1;
}
#seimai .content-con .photo-wrap img {
}
#seimai .content-con .text-wrap {
    order: 2;
}
#seimai .content-con .text-wrap .text-box {
    margin-left: 0;
}
#seimai .content-con .text-wrap .text-image {
    position: absolute;
    bottom: -11.1%;
    left: 50%;
    width: 33.1%;
}
@media print, screen and (max-width: 768px) {
    #seimai {
        padding-bottom: 28vw;
    }
    #seimai .content-con .photo-wrap img {
        width: 62.1vw;
        left: 0;
    }
    #seimai .content-con .text-wrap {
        padding-top: 21vw;
    }
    #seimai .content-con .text-wrap .text-image {
        position: absolute;
        top: 38.4vw;
        bottom: auto;
        left: 56.8vw;
        width: 46.4vw;
    }
}

/* ==============================
  ワークショップ
============================== */
#workshop {
    padding-bottom: 5.8%;
}
#workshop .content-con {
    flex-wrap: wrap;
}
#workshop .content-con .photo-wrap01 {
    order: 2;
    /* width: 57.75%; */
}
#workshop .content-con .text-wrap01 {
    order: 1;
    /* width: 31.7%;
    margin: 0 0 0 auto; */
}
#workshop .content-con .text-wrap .text-box {
    margin: 0 0 0 auto;
}
#workshop .workshop-sub-content {
    display: flex;
    position: relative;
    width: 79%;
    margin: 0 auto;
}

#workshop .workshop-sub-content:after {
    content: "";
    display: block;
    padding-top: 34.6958%; /* 1:1 */
    width: 50%;
}

#workshop .workshop-sub-content .photo-wrap02 {
    position: absolute;
    width: 48.7%;
    top: -6.2%;
    z-index: 1;
}
#workshop .workshop-sub-content .photo-wrap02 img {
}
#workshop .workshop-sub-content .text-wrap02 {
    color: #FFF;
    /* width: 50%; */
    width: 39%;
    margin: 0 0 0 auto;
    order: 4;
    padding-top: 6.3%;
}
#workshop .workshop-sub-content .text-wrap02 .text-box {
    /* width: 68.3%; */
    margin: 0 0 0 auto;
}
@media print, screen and (max-width: 768px) {
    #workshop {
        padding-bottom: 28vw;
    }
    #workshop .content-con {
        flex-wrap: wrap;
    }
    #workshop .content-con .photo-wrap01 {
        order: 1;
        width: 72.8vw;
        margin: 0 0 0 auto;
    }
    #workshop .content-con .text-wrap01 {
        order: 2;
        width: 74.4vw;
        margin: 0 auto;
        padding-top: 18.9vw;
    }
    #workshop .workshop-sub-content {
        position: unset;
        width: 100vw;
        display: block;
    }
    #workshop .workshop-sub-content:after {
        display: none;
    }
    #workshop .workshop-sub-content .photo-wrap02 {
        position: absolute;
        width: 43.2vw;
        /* top: 111.2vw; */
        top: 94.2vw;
        top: 102.4vw;
        left: 0;
        z-index: 1;
    }
    #workshop .workshop-sub-content .photo-wrap02 img {
    }
    #workshop .workshop-sub-content .text-wrap02 {
        width: 74.4vw;;
        margin: 0 auto;
        order: 4;
        padding-top: 6.3%;
    }
    #workshop .workshop-sub-content .text-wrap02 .text-box {
        width: 100%;
        margin: 0 auto;
    }
}

/* ==============================
  ギフトサロン
============================== */
#gift {
    padding-bottom: 7.3%;
}
#gift .content-con {
    padding-bottom: 19.9%;
}
#gift .content-con .text-wrap .text-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 33.8%;
}
@media print, screen and (max-width: 768px) {
    #gift {
        padding-bottom: 28vw;
    }
    #gift .ttl-wrap .noren-wrap h1 {
        font-size: 4.8vw;
    }
    #gift .content-con {
        padding-bottom: 0;
    }
    #gift .content-con .photo-wrap {
        width: 72.5vw;
        position: relative;
        left: -3.7vw;
    }
    #gift .content-con .text-wrap {
        padding-top: 25.6vw;
    }
    #gift .content-con .text-wrap .text-image {
        position: absolute;
        top: 38.4vw;
        bottom: auto;
        left: 56.8vw;
        width: 47.4vw;
    }
}

/* ==============================
  営業案内
============================== */
#information {
    background-image: url(../images/top/information-image.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: #FFF;
    padding: 5.8% 0 13%;
}

#information .business_hours {
    font-size: 2.4rem;
    line-height: 1.3;
    width: 65.7%;
    margin: 0 auto 5.9%;
    text-align: center;
    letter-spacing: 0.08em;
}
#information .business_hours .youbi {
    font-size: 2.2rem;
}
#information .business_hours .closed-day {
    font-size: 1.4rem;
}
#information .business_hours a {
    color: #FFF;
    text-decoration: underline;
    font-size: 1.4rem;
}

#information .information-list {
    display: flex;
    flex-wrap: wrap;
    width: 65.7%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#information .information-list.aos-animate {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
#information .information-list dl {
    width: 26.24%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
}
/* #information .information-list dl:nth-of-type(n+3){
    margin-top: 12.5%;
} */

#information .information-list dt {
    font-size: 2.4rem;
    width: 100%;
}
#information .information-list dd {
    border-top: 4px solid #B7975A;
    padding-top: 17px;
    font-size: 1.6rem;
    line-height: 2;
    width: 100%;
    box-sizing: border-box;
}
#information .information-list dd span {
    font-size: 1.4rem;
}


#information .information-list dd .time-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
}
#information .information-list dd .time-list dt {
    font-size: 1.6rem;
}
#information .information-list dd .time-list dd {
    border-top: none;
    padding: 0;
}

#information .information-list dd a {
    color: #FFF;
    text-decoration: underline;
}
@media print, screen and (max-width: 768px) {
    #information {
        background-image: url(../sp-images/top/information-image.jpg);
        padding: 6.4vw 0 25.8vw;
    }

    #information .business_hours {
        font-size: 4.2vw;
        line-height: 1.3;
        width: 53.8vw;
        margin: 0 auto 11.7vw;
        letter-spacing: 0.08em;
    }
    #information .business_hours .youbi {
        font-size: 4vw;
    }
    #information .business_hours .closed-day {
        display: inline-block;
        font-size: 3.7vw;
        margin-top: 2.4vw;
    }
    #information .business_hours a {
        font-size: 3.7vw;
        letter-spacing: 0.04em;
        margin-top: 1.4vw;
    }

    #information .information-list {
        width: 50vw;
        /* width: 90vw; */
        width: 60vw;
        flex-direction: column;
    }
    #information .information-list dl {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    #information .information-list dl + dl {
        margin-top: 6.6vw;
    }

    #information .information-list dt {
        font-size: 5.8vw;
        margin-bottom: 1.8vw;
        width: 100%;
        text-align: center;
    }
    #information .information-list dt::after {
        content: "";
        background-color: #B7975A;
        width: 3.2vw;
        height: 1px;
        display: block;
        margin: 0 auto;
    }
    #information .information-list dd {
        border-top:none;
        padding-left: 0;
        font-size: 4.2vw;
        line-height: 2;
        width: 100%;
        text-align: center;
    }
    #information .information-list .time-list dt {
        text-align: left;
    }
    #information .information-list .time-list dt::after {
        display: none;
    }
    #information .information-list .time-list dd {
        min-width: 8em;
    }
}

/* ==============================
  アクセス
============================== */
#access {
    background-color: #000;
    color: #FFF;
    padding: 4.5% 0 6.9%;
}
#access .access-box {
    width: 79%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* align-items: flex-start; */
}
#access .map-wrap {
    width: 50%;
    aspect-ratio: 270 / 179;
    filter: grayscale(100%);
}

#access .map-wrap iframe {
    width: 100%;
    height: 100%;
}

#access .access-text-box {
    width: 50%;
    padding-left: 6.4%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
}

#access .access-text h5 {
    font-size: 2.4rem;
}

#access .access-text p {
    font-size: 1.6rem;
    line-height: 1.3;
}

#access .access-text a {
    color: #FFF;
    text-decoration: underline;
    font-weight: bold;
}
@media print, screen and (max-width: 768px) {
    #access {
        padding: 0 0 25.7vw;
    }
    #access .access-box {
        width: 67.2vw;
        flex-direction: column;
    }
    #access .map-wrap {
        width: 100%;
        aspect-ratio: 252 / 167;
    }

    #access .access-text-box {
        width: 59.4vw;
        width: 67.2vw;
        margin: 7.2vw auto 0;
        padding-left: 0;
    }

    #access .access-text + .access-text {
        margin-top: 5.6vw;
    }
    #access .access-text h5 {
        font-size: 4.8vw;
    }

    #access .access-text p {
        font-size: 3.2vw;
    }

}

/* シンプルなふわっとアニメーション */
.content-con .photo-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.content-con .photo-wrap.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.content-con .text-image {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
}

.content-con .text-image.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 各セクションのtext-image要素にも明示的にアニメーションを適用 */
#ryoutei .content-con .text-image,
#nigirimeshi .content-con .text-image,
#seimai .content-con .text-image,
#gift .content-con .text-image {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
}

#ryoutei .content-con .text-image.aos-animate,
#nigirimeshi .content-con .text-image.aos-animate,
#seimai .content-con .text-image.aos-animate,
#gift .content-con .text-image.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* .noren-wrapのアニメーション（.information-listと同じ効果） */
.noren-content {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.noren-content.aos-animate {
opacity: 1;
transform: translateY(0);
filter: blur(0);
}

/* ワークショップの追加アニメーション */
.workshop-sub-content .photo-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.workshop-sub-content .photo-wrap.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
  かくれモーダル
============================== */
body.modal-open {
    overflow: hidden;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 24px 0;
    border-bottom: none;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 20px;
    font-size: 1.4rem;
    color: #666;
    text-align: center;
}

#password-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1.4rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#password-input:focus {
    outline: none;
    border-color: #B7975A;
}

.error-message {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 8px;
    min-height: 20px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit {
    background-color: #B7975A;
    color: #fff;
}

.btn-submit:hover {
    background-color: #a0854f;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #e9e9e9;
}

/* スマートフォン対応 */
@media print, screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 12px 20px 0;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body p {
        font-size: 1.3rem;
    }

    #password-input {
        font-size: 1.6rem;
        padding: 14px 16px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-submit,
    .btn-cancel {
        font-size: 1.6rem;
        padding: 14px 16px;
    }
}
