@charset "UTF-8";

/* ======================================== 
   Main
   ======================================== */
.main {
    margin-top: 60px;
}

.article {
    background-color: #ffffff;
}

.siteVisual__area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.siteVisual__img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center center;
}

.siteVisual__title {
    position: absolute;
    top: 24px;
    right: 6.4%;
}

.siteVisual__title img {
    width: 80px;
    height: auto;
}

.top__section {
    margin: 60px auto;
    padding: 0 20px;
    max-width: 528px;
}

.mariage__copy {
    font-size: 1.8rem;
    color: var(--primary-darkred);
    text-align: center;
}

.mariage__txt {
    margin-top: 40px;
    line-height: 2;
}

/************************************/
/* @media 1025px:                   */
/************************************/
@media screen and (min-width: 1025px) {
    .main {
        margin-top: 80px;
    }

    .siteVisual__img {
        object-position: center center;
    }

    .siteVisual__title {
        position: absolute;
        top: 34px;
    }

    .siteVisual__title img {
        width: 114px;
        height: auto;
    }

    .top__section {
        margin: 90px auto 0;
        max-width: 840px;
    }

    .brSp {
        display: none;
    }

    .mariage__txt {
        margin-top: 60px;
    }
}

/* pc 1025px */

/* ======================================== 
   Mariage section
======================================== */
.mariage__item {
    margin: 120px auto 0;
}

.mariage__item:first-of-type {
    margin: 90px auto 0;
}

.mariage__visual img {
    width: 100%;
    aspect-ratio: 1.618 / 1;
    object-fit: cover;
    object-position: center top;
}

.mariage__info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.mariage__sake1 {
    padding: 13px 29px;
}

.mariage__sake1 img {
    width: 69px;
    height: auto;
}

.mariage__name {
    margin-top: 13px;
}

.mariage__name img {
    width: 140px;
    height: auto;
}

.mariage__sake2 {
    padding: 13px 29px;
}

.mariage__sake2 img {
    width: 78px;
    height: auto;
}

.mariage__sake3 {
    padding: 13px 29px;
}

.mariage__sake3 img {
    width: 70px;
    height: auto;
}

.mariage__sake4 {
    padding: 13px 29px;
}

.mariage__sake4 img {
    width: 69px;
    height: auto;
}

/* モーダルウィンドウ (dialog) */
dialog {
    border: none;
    padding: 40px 40px;
    min-width: 375px;
    max-width: 528px;
    width: 100%;
    position: fixed;
    top: 30%;
    left: 0;
    opacity: 0;
    transform: scale(0.95);
    transition:
        transform 0.4s ease,
        overlay 0.4s ease allow-discrete,
        display 0.4s ease allow-discrete;
    box-shadow: 0 5px 10px rgba(37, 37, 37, 0.25);
    background-color: #ffffff;
    z-index: 1000;
}

dialog[open] {
    opacity: 1;
    transform: translate(0, -15%) scale(1);
}

@starting-style {
    dialog[open] {
        opacity: 0;
        transform: scale(0.95);
    }
}

dialog::backdrop {
    background-color: rgba(37, 37, 37, 0);
    transition:
        background-color 0.4s ease,
        overlay 0.4s ease allow-discrete,
        display 0.4s ease allow-discrete;
}

dialog[open]::backdrop {
    background-color: rgba(37, 37, 37, 0.5);
}

dialog button {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
}

dialog button .modal__btn {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.modal__name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    margin-top: 15px;
    text-align: left;
}

.modal__bottle {
    display: block;
    width: 135px;
    height: 486px;
    margin: 40px auto;
}

.modal__spec {
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: left;
}

.modal__spec--property {
    font-weight: 500;
    margin-top: 16px;
}

.modal__spec--value {
    padding-bottom: 16px;
    /* 横4px（1px描画 + 3px幅）、縦1px（線幅） */
    background-image: linear-gradient(to right, rgba(139, 121, 80, 0.5) 1px, transparent 1px);
    background-size: 4px 1px;
    background-position: bottom;
    background-repeat: repeat-x;
}

.modal__cartbtn {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-brown);
    color: #ffffff;
    font-size: 1.4rem;
    text-decoration: none;
    height: 56px;
    opacity: 1;
}

.modal__cartbtn img {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

.modal__cartbtn:hover {
    opacity: 0.8;
}

/************************************/
/* @media 1025px: Mariage section   */
/************************************/
@media screen and (min-width: 1025px) {
    .section__mariage {
        margin-top: 90px;
        padding: 0 120px;
    }

    .mariage__item {
        margin: 160px auto 0;
    }

    .mariage__item:first-of-type {
        margin: 120px auto 0;
    }

    .mariage__contents {
        display: grid;
        grid-template-rows: calc(100vw * 0.275);
        grid-template-columns: 10fr 8fr;
        width: 100%;
    }

    .mariage__info {
        margin: 0;
        height: 100%;
    }

    .mariage__sake1,
    .mariage__sake2,
    .mariage__sake3,
    .mariage__sake4 {
        padding: 0 40 5px;
        height: 100%;
    }

    .mariage__sake1 img,
    .mariage__sake2 img,
    .mariage__sake3 img,
    .mariage__sake4 img {
        width: auto;
        height: 100%;
        object-fit: cover;
    }

    .mariage__name {
        margin: 0 0 0 20px;
    }

    .mariage__name img {
        width: 160px;
        height: auto;
        object-fit: cover;
    }

    .link__btn--mariage {
        margin-top: 90px;
    }

    /* モーダルウィンドウ (dialog) */
    dialog {
        border: none;
        padding: 40px 60px;
        min-width: 600px;
        max-width: 750px;
        width: 100%;
        position: fixed;
        top: 30%;
        left: 0;
        opacity: 0;
        transform: scale(0.95);
        transition:
            transform 0.4s ease,
            overlay 0.4s ease allow-discrete,
            display 0.4s ease allow-discrete;
        box-shadow: 0 5px 10px rgba(37, 37, 37, 0.25);
        background-color: #ffffff;
        z-index: 1000;
    }

    dialog[open] {
        opacity: 1;
        transform: translate(0, -15%) scale(1);
    }

    @starting-style {
        dialog[open] {
            opacity: 0;
            transform: scale(0.95);
        }
    }

    dialog::backdrop {
        background-color: rgba(37, 37, 37, 0);
        transition:
            background-color 0.4s ease,
            overlay 0.4s ease allow-discrete,
            display 0.4s ease allow-discrete;
    }

    dialog[open]::backdrop {
        background-color: rgba(37, 37, 37, 0.5);
    }

    dialog button {
        position: absolute;
        top: 50px;
        right: 50px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        border: none;
        outline: none;
        background: transparent;
    }

    dialog button .modal__btn {
        width: 30px;
        height: 30px;
        object-fit: cover;
    }

    .modal__name {
        font-family: var(--font-serif);
        font-size: 2.8rem;
        font-weight: 500;
        margin: 20px 20px;
        text-align: left;
    }

    .modal__contents {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .modal__bottle {
        display: block;
        width: 135px;
        height: 486px;
        margin: 40px auto;
    }

    .modal__spec {
        font-size: 1.6rem;
        line-height: 1.8;
        text-align: left;
        width: 350px;
    }

    .modal__spec--property {
        font-weight: 500;
        margin-top: 16px;
    }

    .modal__spec--value {
        padding-bottom: 16px;
        /* 横4px（1px描画 + 3px幅）、縦1px（線幅） */
        background-image: linear-gradient(to right, rgba(139, 121, 80, 0.5) 1px, transparent 1px);
        background-size: 4px 1px;
        background-position: bottom;
        background-repeat: repeat-x;
    }

    .modal__cartbtn {
        margin-top: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: var(--primary-brown);
        color: #ffffff;
        font-size: 1.6rem;
        text-decoration: none;
        height: 56px;
        opacity: 1;
    }

    .modal__cartbtn img {
        width: 26px;
        height: 26px;
        color: #ffffff;
    }

    .modal__cartbtn:hover {
        opacity: 0.8;
    }
}