/* グローバル設定 */
:root {
    --main-color: #3498db;
    --header-bg-color: #f9f9f9;
    --bg-color: #fff;
    --form-bg-color: #D9D9D9;
    --text-color: #161616;
    --hamburger-color: #464646;
    --input_line-color: #595959;
    --font-size-base: clamp(1rem, 2.5vw, 1.2rem);
    --radius: 8px;
    --max-width: 600px;
    --side-padding: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
}

/* タブレット以上で中央寄せ＋幅制限 */
@media (min-width: 768px) {
    .container {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

body {
    font-family: "Meiryo", sans-serif; /* ← メイリオ指定 */
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    background-color: #B9B9B9;
}

.strong {
    font-weight: bold;
}

#main_wrapper {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;    
    background-color: #FFFFFF;
}

.site-header {
    text-align: center;
    padding: 0.5rem 0;
    color: white;
    background-color: var(--header-bg-color);

    & h1 {

        display: inline-block;     /* 必須：高さを画像に合わせる */
        line-height: 0;
            & img {
                width: auto;
                height: 150px;
            }
    }
}

#main_visual {
    position: relative;
    display: block;
    background-image: url("./img/mv.jpg");
    background-size: cover;
    aspect-ratio: 3 / 4;

    & .vertical-text {
        position: absolute;
        bottom: 1px;
        left: 50px;
        writing-mode: vertical-rl; /* 縦書きだけど横向きの字形 */
        text-orientation: sideways; /* 横書きスタイルのまま縦方向に配置 */
        color:  var(--text-color);
        font-size: 24px;
        text-decoration: underline;
    
    }

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        border-right: 80px solid transparent;
        border-top: 240px solid var(--text-color);
    }

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
        border-left: 80px solid transparent;
        border-bottom: 240px solid var(--text-color);
    }
}

#reservation_visual {
    position: relative;
    display: block;
    background-image: url("./img/reservation_mv.jpg");
    background-size: cover;
    aspect-ratio: 3 / 2;
}

#menu_visual {
    position: relative;
    display: block;
    background-image: url("./img/reservation_mv.jpg");
    background-size: cover;
    aspect-ratio: 3 / 2;
}

section {
    padding: 40px 0;

    & .section_title {
        position: relative;
        text-align: center;
        margin: 20px 0 30px;

        & .h2_en {
            position: absolute;
            top: 15%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 32px;
            color: rgba(0, 0, 0, 0.1);
            font-weight: bold;
            pointer-events: none;
            z-index: 0;
        }

        & h2 {
            position: relative;
            font-size: 32px;
            font-weight: bold;
            margin: 0;
            z-index: 1;

            &::after{
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                width: 70%;
                height: 2px;
                background-color: var(--text-color);
            }
        }
    }

    & h3 {
        font-size: 24px;
        font-weight: bold;
        margin: 0;
        color: var(--text-color);
        text-align: center;
        margin-bottom: 20px;

        &::after {
            content: "";
            display: block;
            width: 80%;
            height: 2px;
            background-color: var(--text-color);
            margin: 0 auto;
        }
    }
}

section#concept {
    position: relative;
    padding-bottom: 150px;
    background-image: url("./img/back_leaf_1.png");
    background-repeat: no-repeat;
    background-position: left -30px bottom -95px;
    background-size: 180px auto;


    & p{
        margin-bottom: 10px;
    }
    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 0;
        border-right: 300px solid transparent;
        border-bottom: 10px solid #ABABAB;
    }

    & #introduction {
        & img {
            width: 65%;
            margin: 0 auto;
            display: block;
        }
        & .image p {
            text-align: center;
            margin-top: 8px;
        }
    }
}

section#availability{
    background-color:  var(--text-color);
    color: #FFFFFF;

    & .h2_en {
        color: rgba(255, 255, 255, 0.1);
    }
    & h2::after{
        background-color: #FFFFFF;
    }
}

.availability_time_table {
    width: 80%;
    margin: 0 auto;

    & dl{
        display: flex;
        padding: 8px 0;

        & dt{
            width: 50%;
        }
        & dd{
            width: 50%;
            margin: 0;
        }
    }
}

.btn_area {
    margin: 100px 0;
    text-align: center;

    & a,
    button{
        padding: 1rem 3rem;
        border-radius: 200px;
        margin: 0 auto;
        text-decoration: none;
        font-weight: 700;
    }
}

.btn_area {
    margin: 50px 0;
    text-align: center;
}

.btn_area.black a,
.btn_area.black button{
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn_area.white a{
    background-color: var(--bg-color);
    color: var(--text-color);
}

button{
    font-size: inherit;
}

#sub_visual {
    background-image: url("./img/sub_v.jpg");
    background-size: cover;
    aspect-ratio: 5 / 3;
}
#sub_visual.top_triangle {
    position: relative;
    &::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-left: 300px solid transparent;
        border-top: 10px solid #ABABAB;
    }
}
section#price_sec{
    & .menu-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding: 0.4em 0;
    }

    & .menu-item .name {
        flex: 1;
    }

    & .menu-item .name small {
        display: block;
        font-size: 0.65em;
        color: #666;
        margin-top: 0.2em;
    }

    & .menu-item .price {
        white-space: nowrap;
    }

    & .section-title {
        font-weight: bold;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }

    & .note {
        white-space: nowrap;      /* 改行させない */
        width: 100%;             /* ビューポート幅に合わせる */
        overflow: hidden;         /* はみ出し防止（必要なら） */
        text-align: center;       /* お好みで中央寄せ */
        font-size: 0.7rem;
        color: #666;
        margin-top: 1em;
    }
    & #cos_images {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        counter-reset: img-counter; /* カウンター初期化 */
        margin: 10px 0;

        & .cos_item {
            position: relative;

            &::before {
                counter-increment: img-counter; /* カウントアップ */
                content: counter(img-counter); /* ①②③… */

                position: absolute;
                top: 5px;
                left: 5px;
                background: rgba(0, 0, 0, 0.6);
                color: #fff;
                padding: 4px 8px;
                border-radius: 4px;
                font-size: 14px;
            }

            & img {
                width: 100%;   /* カラム幅いっぱい */
                height: auto;  /* 比率維持 */
                display: block;
            }
        }

    }
}

section#access{
    position: relative;
    padding-bottom: 140px;
    background-image: url(./img/back_leaf_2.png);
    background-repeat: no-repeat;
    background-position: right -30px bottom -70px;
    background-size: 200px auto;
}

section#for_line {
    position: relative;
    padding-bottom: 70px;
    background-image: url("./img/back_leaf_1.png");
    background-repeat: no-repeat;
    background-position: left -30px bottom -50px;
    background-size: 180px auto;

    & ul {
        margin: 20px 0;
        
        & li {
            margin-left: 1.5em;
        }
    }

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
        border-left: 300px solid transparent;
        border-bottom: 15px solid var(--text-color);
    }    
}

section#form {
    background-color: var(--form-bg-color);

    & form {
        margin: 20px 0;
        & dl {
            & dt {
                font-weight: 700;

                & span {
                    color: red; /* 必須項目を赤色に */
                    margin-left: 5px;
                    font-size: smaller;
                    font-weight: normal;
                }
            }

            & dd {
                margin-bottom: 20px; /* 各項目の間隔を広げる */
            }

            & dd.list {
                margin-left: 1em;
            }

            & dd input[type="text"],
            & dd textarea {
                width: 100%;
                line-height: 1.6;
                box-shadow: 2px 2px 5px rgba(0,0,0,0.3); /* 影を付ける */
                border: 0.5px solid var(--input_line-color); /* 枠線 */
                padding: 8px; /* 内側の余白 */
                box-sizing: border-box; /* padding込みで幅を計算 */
                border-radius: var(--radius); /* 角丸 */
            }

            & dd label {
                display: block; /* ラベルをブロック要素にして、入力フィールドの上に配置 */
                margin-bottom: 5px; /* ラベルと入力フィールドの間隔 */

                & input[type="radio"],
                & input[type="checkbox"] {
                    transform: scale(1.3); /* 1.5倍に拡大 */
                    margin-right: 10px; /* ラジオボタンとラベルの間隔 */
                }
            }

            & p {
                font-size: smaller;
                margin: 10px 0;
            }
        }

        & p.privacy_policy {
            margin-top: 20px;
            /* text-align: center; */

            & input[type="checkbox"] {
                transform: scale(1.3); /* チェックボックスを1.3倍に拡大 */
                margin-right: 10px; /* チェックボックスとラベルの間隔 */
            }
        }
        & span.error p {
            font-size: smaller;
            margin: 0;
            color: red;
        }
    }

    & #sp_option_cos_choices {
        display: none;
    }
}

section#notice {
    position: relative;
    padding-bottom: 150px;
    background-image: url(./img/back_leaf_2.png);
    background-repeat: no-repeat;
    background-position: right -50px bottom -40px;
    background-size: 200px auto;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        border-right: 300px solid transparent;
        border-top: 10px solid var(--text-color);
    }
}

section#menu {
    & p {
        margin-bottom: 10px;
    }
}

section#add_option {
    position: relative;
    padding-bottom: 150px;
    background-image: url(./img/back_leaf_2.png);
    background-repeat: no-repeat;
    background-position: right -30px bottom -20px;
    background-size: 200px auto;

    & dl {
        margin-bottom: 60px;
        & dt {
            font-weight: 700;
            margin-top: 20px;
        }
        & dd {
            padding: 10px;
            & span {
                font-size: smaller;
            }
        }
    }

    & .btn_area {
        margin-top: 20px;
    }

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
        border-left: 300px solid transparent;
        border-bottom: 10px solid var(--text-color);
    }
}

section#precautions {
    background-color: var(--form-bg-color);
    & ul {
        margin: 20px 0;
        padding-left: 20px; /* 左側の余白 */
        
        & li {
            margin-bottom: 10px; /* 各項目の間隔 */
            line-height: 1.6; /* 行間を広げる */
        }
    }
    & p {
        margin-bottom: 10px;
    }
}

section#reservation_link {
    position: relative;
    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        border-right: 250px solid transparent;
        border-top: 10px solid var(--text-color);
    }
}

.add_line_btn{
    text-align: center;
    margin: 40px 0;
    & img {
        width: 232px;
        height: auto;
    }
}

.site-footer {
    background-color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--bg-color);
}

/**ハンバーガーメニュー**/
.hamburger {
    width: 30px;
    height: 20px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--hamburger-color);
    left: 0;
    transition: all 0.3s ease;
}
.hamburger.active span {
    background: #FFFFFF;
}

.hamburger span:nth-child(1) {
    top: 0;
}
.hamburger span:nth-child(2) {
    top: 8px;
}
.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.side-menu ul {
    list-style: none;
    text-align: center;
}

.side-menu li {
    margin: 20px 0;
}

.side-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}

.side-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}