:root {
    --c-white: #fff;
    --c-text: #4C3820;
    --w-content: 85.47%;
}

.bg-color {
    background: linear-gradient(transparent 70%, #E0C4C5 70%);
    font-weight: bold;
}

#productDetailSection .descriptionBoxOuter .mariageSection h2 {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

#productDetailSection .descriptionBox .mariageSection h3 {
    margin: 0;
    padding: 0;
    border: none;
}

#productDetailSection .descriptionBox .mariageSection h3:not(:nth-child(1)) {
    margin: 0;
}

#productDetailSection .descriptionBox .mariageSection h4 {
    margin: 0;
    padding: 0;
    border: none;
}

.mariageSection {
    color: var(--c-text);
}

.mariageSection img {
    vertical-align: bottom;
}

.localNavi {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 1.1;
    text-align: center;
    z-index: 99999;
    transform: translateY(300%);
    transition: transform 0.4s ease;
}

.localNavi.is-visible {
    transform: translateY(0);
}

.localNavi>ul {
    display: flex;
    align-items: center;
}

.localNavi>ul>li {
    width: calc(100% / 4);
    border-left: 2px solid var(--c-white);
}

.localNavi>ul>li:first-child {
    border-left: none;
}

.localNavi a {
    display: block;
    color: var(--c-white);
    font-size: 1.7rem;
    padding: 1.6rem 0;
}

.mariageSection {
    padding: 4rem 0 6rem;
}

#mariageTop {
    padding: 0 0 4rem;
    text-align: center;
}

#mariageTop .mainVisual {
    margin-bottom: 4rem;
}

.mainTitle {
    padding: 2.1rem 0;
    color: var(--c-white);
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.mainTitle>span {
    display: block;
    font-size: 2.3rem;
    font-weight: 700;
}

#mariageTop .mainVisual img {
    width: 100%;
}

.mariageWrap {
    width: var(--w-content);
    margin-inline: auto;
}

#mariageTop .mariageWrap p {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 2;
}

#mariageTop .mariageWrap p+p {
    margin-top: 2.8rem;
}

.mariageItem+.mariageItem {
    margin-top: 4.6rem;
}

#productDetailSection .descriptionBoxOuter .mariageSection .sectionTitle {
    margin-bottom: 2.4rem;
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.0;
}

.mariageSection h2.sectionTitle span.sectionTitlesub {
    margin-bottom: 2.4rem;
    font-size: 1.5rem;
}

.sectionImg {
    margin-bottom: 2.8rem;
    border-radius: 0.688rem;
    overflow: hidden;
}

#productDetailSection .descriptionBox .contentTitle {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.contentTitle+.contentText {
    margin-top: 2.6rem;
}

.contentText p+p {
    margin-top: 2.8rem;
}

.mariageIntro {
    margin-bottom: 3.8rem;
}

.mainVisual {
    margin-bottom: 3rem;
}

#productDetailSection .descriptionBox .introTitle {
    font-size: 2.1rem;
    text-align: center;
}

.introTitle+p {
    margin-top: 1.8rem;
}

.mariageIntro p {
    font-size: 1.5rem;
}

#productDetailSection .descriptionBox .contentNum {
    display: flex;
    column-gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

#productDetailSection .descriptionBox .mariageItem:first-child .contentNum::before {
    content: "1.";
}

#productDetailSection .descriptionBox .mariageItem:nth-child(2) .contentNum::before {
    content: "2.";
}

.contentNum+.contentText {
    margin-top: 1rem;
}

.mariageProfile {
    margin-top: 4.6rem;
}

.profileHead {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 3rem 1.8rem;
}

.profileImg {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.profileImg img {
    width: 100%;
}

.profileCategory {
    font-size: 1.3rem;
}

#productDetailSection .descriptionBox .profileName {
    font-size: 1.7rem;
    font-weight: 700;
}

.profileNameEn {
    font-size: 1.6rem;
    font-weight: 400;
}

.profileSub {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
}

.profileText {
    grid-area: 2 / 1 / 2 / 3;
}

#aboutCoffee {
    background: url(/img/mariage/2026-summer/coffee_bg.jpg?260529b) repeat-y center top / 200% auto;
}

.coffeeHead {
    margin: 4rem auto 3rem;
    text-align: center;
}

#productDetailSection .descriptionBox .CoffeeTitle {
    font-size: 1.7rem;
    text-align: center;
}

.CoffeeTitle+p::before {
    content: "";
    display: block;
    width: 20%;
    height: 2px;
    margin: 2.8rem auto 2.4rem;
    background-color: var(--c-text);
}

.coffeeHead>p {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.5;
}

.coffeeDetail {
    margin-top: 4rem;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
}

#productDetailSection .descriptionBox .mariageSection .coffeeDetailTitle {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 600;
}

#productDetailSection .descriptionBox .mariageSection .coffeeDetailTitle::before {
    content: "【";
    margin-right: 0.6rem;
}

#productDetailSection .descriptionBox .mariageSection .coffeeDetailTitle::after {
    content: "】";
    margin-left: 0.6rem;
}

.coffeeFlavor {
    margin-top: 1rem;
}

.coffeeFlavor>dl {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 2.4rem;
    font-size: 1.6rem;
    font-weight: 400;
}

.coffeeFlavor>dl>dd>span {
    color: #d3d4d3;
}

.coffeeFlavor>dl>dd>span.coffeeFlavorActive {
    color: #d10026;
}

.coffeeDetail .mariageItem+.mariageItem {
    margin-top: 2.8rem;
}

.mariageCoffee+.mariageCoffee {
    margin-top: 10rem;
}

.mariageBtn {
    width: 92.5%;
    margin-top: 2rem;
    margin-inline: auto;
    background-color: var(--c-text);
    text-align: center;
    border-radius: 100vmax;
}

.mariageWrap>.mariageBtn {
    margin-top: 4rem;
}

.mariageBtn>a {
    display: block;
    padding: 1rem 0;
    color: #fff;
    font-weight: 500;
}

.mariageBtn>a>span {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.5rem;
}

.mariageBtn>a>span::after {
    content: "";
    display: inline-block;
    width: 1.1rem;
    aspect-ratio: 1 / 1;
    background: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38.1 37.9"%3E%3Cpath fill="%23ffffff" d="M1.4 0l36.7 18.9v.2L1.4 37.9l-1.4-2.7 31.7-16.2h0C31.7 18.9 0 2.7 0 2.7L1.4 0z"/%3E%3C/svg%3E') no-repeat center / 100% auto;
}

.accordionBtn+* {
    display: none;
    margin-top: 5rem;
}

.accordionBtn>a>span::after {
    width: 1.5rem;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.2 127.2"%3E%3Cpath fill="%23fff" d="M63.6 0C28.5 0 0 28.5 0 63.6s28.5 63.6 63.6 63.6 63.6-28.5 63.6-63.6S98.8 0 63.6 0zm33.1 70.2H70.2v26.5H57.1V70.2H30.6v-13.1h26.5v-26.5h13.1v26.5h26.5v13.1z"/%3E%3C/svg%3E');
    transition: transform .4s ease;
}

.accordionBtn.active>a>span::after {
    transform: rotate(405deg);
}

.page-top {
    transition: transform .4s ease;
}


@media screen and (min-width: 768px) {
    .localNavi {
        left: 50%;
        translate: -50% 0;
        width: calc(100% - (var(--contentsPadding) * 2));
        max-width: var(--contentsMaxWidth);
    }

    .localNavi a {
        font-size: 2rem;
        padding: 1.8rem 0;
    }

    .localNavi br {
        display: none;
    }

    #mariageTop {
        padding-bottom: 0;
    }

    .mainTitle {
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 1.2rem;
        padding: 2rem 0;
    }

    .mainTitle>span {
        font-size: 2.6rem;
    }

    #mariageTop .mariageContainer {
        display: flex;
        align-items: center;
        column-gap: 7rem;
        width: var(--w-content);
        margin-inline: auto;
        padding: 6rem 0;
    }

    #mariageTop .mainVisual {
        width: 58%;
        margin-bottom: 0;
    }

    #mariageTop .mariageWrap {
        width: 40%;
    }

    #mariageTop .mariageWrap p {
        font-size: 1.7rem;
        font-weight: 500;
        text-align: left;
    }

    #mariageTop .mariageWrap p+p {
        margin-top: 2.4rem;
    }

    .mariageSection {
        padding: 8rem 0;
    }

    #productDetailSection .descriptionBoxOuter .mariageSection .sectionTitle {
        margin-bottom: 5rem;
    }

    .mariageItem {
        display: flex;
        align-items: center;
        column-gap: 6rem;
    }

    .mariageItem+.mariageItem {
        margin-top: 5rem;
    }

    .sectionImg {
        flex-shrink: 0;
        width: 30%;
        margin-bottom: 0;
    }

    #productDetailSection .descriptionBox .contentTitle {
        text-align: left;
    }

    #productDetailSection .descriptionBox .contentTitle br {
        display: none;
    }

    .mariageIntro {
        display: flex;
        align-items: center;
        column-gap: 6rem;
        width: var(--w-content);
        margin-inline: auto;
        margin-bottom: 8rem;
    }

    .mainVisual {
        flex-shrink: 0;
        width: 50%;
        margin-bottom: 0;
    }

    #productDetailSection .descriptionBox .introTitle {
        text-align: left;
    }

    #productDetailSection .descriptionBox .contentNum {
        font-size: 1.8rem;
    }

    .contentNum+.contentText {
        margin-top: 1.6rem;
    }

    .profileHead {
        grid-template-columns: 1fr 3fr;
        gap: 0 5rem;
        width: 80%;
        margin-inline: auto;
        margin-top: 6rem;
    }

    .profileImg {
        grid-area: 1 / 1 / 3 / 2;
    }

    .profileText {
        grid-area: 2 / 2 / 3 / 3;
        margin-top: 1rem;
    }

    .mariageCoffee {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
        align-items: center;
        column-gap: 8rem;
        width: var(--w-content);
        margin-inline: auto;
    }

    .mariageCoffee>.mariageWrap {
        width: auto;
    }

    #aboutCoffee {
        background-size: 100% auto;
    }

    .mariageCoffee+.mariageCoffee {
        margin-top: 12rem;
    }

    .mariageCoffee .mainVisual {
        width: 100%;
    }

    #productDetailSection .descriptionBox .CoffeeTitle {
        font-size: 2rem;
    }

    .coffeeHead>p br {
        display: none;
    }

    .mariageCoffee .mariageItem {
        justify-content: center;
        column-gap: 0;
    }

    .coffeeDetail {
        width: 80%;
        margin-inline: auto;
    }

    #productDetailSection .descriptionBox .mariageSection .coffeeDetailTitle {
        width: 40%;
        text-align: left;
    }

    .mariageCoffee .mariageWrap:has(.mariageProfile) {
        grid-area: 2 / 1 / 2 / 3;
    }

    .mariageCoffee .mariageItem>.coffeeDetailTitle+* {
        width: 60%;
        text-align: left;
    }

    .coffeeFlavor>dl {
        justify-content: flex-start;
    }

    .mariageBtn {
        width: fit-content;
        margin-inline: inherit;
    }

    .mariageWrap>.mariageBtn {
        width: 60%;
        margin-top: 10rem;
    }

    .mariageBtn>a {
        padding: 1rem 4rem;
    }

    .mariageWrap>.mariageBtn>a {
        padding: 1.6rem 4rem;
    }

    .mariageBtn>a>span {
        column-gap: 1rem;
    }
}


/* 見出し */
.common-intro p {
    margin: 0 0 1em;
}

#productDetailSection .descriptionBox .singleProduct .common-intro h3 {
    display: block;
    margin-bottom: 3rem;
    padding: 1.7rem 1rem 1.3rem;
    border-top: 1px solid #4C3820;
    border-bottom: 1px solid #4C3820;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

/* テイスティングノート（1列・シンプル版） */
.tasting-notes {
    margin: 40px 0;
    padding: 0;
}

.tasting-header {
    margin-bottom: 25px;
    border-left: 2px solid #d4a017;
    padding-left: 15px;
}

.tasting-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
    display: block;
}

.tasting-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.tasting-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tasting-item {
    padding: 0;
}

.tasting-label {
    font-weight: bold;
    /* color: #d4a017;
    font-size: 0.9rem; */
    display: block;
    margin-bottom: 4px;
}

.tasting-content {
    /* font-size: 1rem;
    color: #333; */
    border-top: 1px solid #eee;
    padding-top: 8px;
    display: block;
}

.tasting-footer {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #888;
    line-height: 1.5;
}

/* メイン紹介ブロック (PC: 横並び / SP: 縦並び) */
.coffee-block {
    display: flex;
    flex-direction: row;
    /* PCデフォルト */
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.coffee-img {
    flex: 0 0 320px;
    max-width: 320px;
}

.coffee-img .image-placeholder {
    width: 100%;
    height: 320px;
    background-color: #fdfaf5;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* color: #8d735b; */
    font-weight: bold;
    text-align: center;
    border: 1px solid #efe3d5;
}

.coffee-text {
    flex: 1;
}

.coffee-text h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 2.4rem;
    /* color: #d4a017; */
    letter-spacing: 0.05em;
}

.intro-lead {
    font-weight: bold;
    /* font-size: 1.15rem; */
    margin-bottom: 15px;
    display: block;
    /* color: #5a3e2b; */
    line-height: 1.4;
}

.intro-desc {
    /* font-size: 1rem; */
    /* color: #666; */
    margin: 0;
}

/* --- 抽出手順 インフォグラフィック --- */
.recipe-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.recipe-title {
    font-weight: bold;
    /* color: #5a3e2b; */
    display: inline-flex;
    align-items: center;
    gap: 15px;
    /* font-size: 1.1rem; */
}

.recipe-title::before,
.recipe-title::after {
    content: "";
    height: 1px;
    width: 40px;
    background: #d1c4b3;
}

.recipe-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.recipe-step {
    flex: 1;
    background: #fff;
    border: 1px solid #efe3d5;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #5a3e2b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    /* font-size: 1rem; */
}

.step-label {
    /* font-size: 1.05rem; */
    font-weight: bold;
    color: #5a3e2b;
    margin-bottom: 12px;
    display: block;
}

.step-specs {
    background: #fdfaf5;
    border-radius: 8px;
    padding: 8px 5px;
    margin-bottom: 15px;
    border: 1px solid #f3ede6;
}

.spec-item {
    display: block;
    /* font-size: 1rem; */
    font-weight: 800;
    /* color: #333; */
}

.spec-unit {
    /* font-size: 0.8rem; */
    color: #8d735b;
    margin-left: 2px;
    font-weight: normal;
}

.step-desc {
    /* font-size: 0.85rem; */
    /* color: #666; */
    line-height: 1.5;
    text-align: center;
}

/* アイスの使い方　切り替え部分 */
input[name="machine-switch"] {
    display: none;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-label {
    display: inline-block;
    background: #fff;
    border: 2px solid #5a3e2b;
    color: #5a3e2b;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

/* チェックされた時のラベル（ボタン）のスタイル変更 */
#tab-dp3:checked~.carousel-nav label[for="tab-dp3"],
#tab-youbi:checked~.carousel-nav label[for="tab-youbi"] {
    background: #5a3e2b;
    color: #fff;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* チェックされたボタンに応じてトラックを移動 */
/* YOUBI (1枚目のスライド) */
#tab-youbi:checked~.carousel-container .carousel-track {
    transform: translateX(0%);
}

/* DP3 (2枚目のスライド) */
#tab-dp3:checked~.carousel-container .carousel-track {
    transform: translateX(-100%);
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.video-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f3ede6;
    border-radius: 15px;
}

@media (max-width: 768px) {

    /* メイン紹介ブロックを縦並びに変更 */
    .coffee-block {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    /* 画像を上に配置するための調整（HTMLの並び順が テキスト→画像 の場合に有効） */
    .coffee-block.img-top-sp {
        flex-direction: column-reverse;
    }

    .coffee-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .coffee-img .image-placeholder {
        height: 250px;
        /* スマホでは少し高さを抑える */
    }

    .coffee-text {
        width: 100%;
    }

    .coffee-text h4 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    /* 抽出手順を縦並びに変更 */
    .recipe-container {
        flex-direction: column;
        gap: 25px;
    }

    .recipe-step:not(:last-child)::after {
        content: "▼";
        position: absolute;
        bottom: -22px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.9rem;
        /* color: #d1c4b3; */
    }

    .step-desc {
        text-align: center;
    }

    .nav-label {
        width: 100%;
        padding: 10px 0;
    }
}