/* ========================================
   Beauty and the Beast
   Page-specific styles only
   Header and footer are styled externally.
======================================== */

/* Remove outer browser/page whitespace without changing section spacing. */
html {
    margin: 0;
    padding: 0;
}

body#beauty-and-the-beast {
    margin: 0;
    padding: 0;
}

#beauty-and-the-beast .layoutRole,
#beauty-and-the-beast .layoutRole_contents,
#beauty-and-the-beast .layoutRole_main {
    margin: 0;
    padding: 0;
}

/* Variables are scoped to this LP, not the shared header/footer. */
#beauty-and-the-beast main {
    --navy: #10183f;
    --gold: #caa650;
    --yellow: #edc153;
    --font-mincho: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "Yu Mincho", "游明朝", serif;
    --font-gothic: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
    --font-latin: "Adobe Garamond Pro", Garamond, "Times New Roman", serif;
    --font-ryumin: "A P-OTF RyuminKS+ ProN", "Hiragino Mincho ProN", "Yu Mincho", serif;
    word-break: break-all;
}

/* Page scope: do not override the shared header/footer. */
#beauty-and-the-beast .layoutRole_main {
    padding-top: 0;
}

#beauty-and-the-beast main {
    color: var(--navy);
    font-family: var(--font-mincho);
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

#beauty-and-the-beast main *,
#beauty-and-the-beast main *::before,
#beauty-and-the-beast main *::after {
    box-sizing: border-box;
}

#beauty-and-the-beast main img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Text links inherit the surrounding copy color, including visited links. */
#beauty-and-the-beast main a {
    color: inherit;
    text-decoration: none;
}

#beauty-and-the-beast main :is(p, h1, h2, h3) {
    margin: 0;
}

#beauty-and-the-beast main .u-pc {
    display: inline;
}

/* Hero */
.p-hero {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    overflow: hidden;
}

.p-hero__image {
    width: 100%;
}

/* Shared headings and buttons (non-slider content) */
.c-section-heading {
    text-align: center;
    font-weight: 400;
    line-height: 1;
}

.c-section-heading img {
    margin-inline: auto;
}

.c-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.c-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 34px;
    padding: 7px 28px 7px 20px;
    background: var(--yellow);
    color: var(--navy);
    font-family: var(--font-gothic);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .08em;
    text-align: center;
}

.c-button--svg-arrow::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 8px;
    height: 14px;
    background: url("images/beauty-and-beast-button-arrow.svg") center / contain no-repeat;
    content: "";
    transform: translateY(-50%);
    pointer-events: none;
}

.c-text-link {
    font-family: var(--font-gothic);
    font-size: 13px;
    line-height: 20px;
    text-decoration: none !important;
}

.c-text-link--svg-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.c-text-link--svg-arrow::after {
    width: 8px;
    height: 14px;
    background: url("images/beauty-and-beast-button-arrow.svg") center / contain no-repeat;
    filter: brightness(0) saturate(100%) invert(79%) sepia(44%) saturate(525%) hue-rotate(352deg) brightness(94%);
    content: "";
}

/* Introduction */
.p-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1280px;
    margin-inline: auto;
    padding: 30px 10px;
    background: var(--navy) url("images/beauty-and-beast-navy-fabric.png") center top / 768px auto repeat;
    color: #fff;
}

.p-intro__decoration {
    flex: none;
    align-self: center;
    width: 480px;
    max-width: 100%;
}

.p-intro__decoration img {
    width: 100%;
}

.p-intro__inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding: 20px 40px;
}

.p-intro__lead {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 840px;
    max-width: 100%;
    margin-inline: auto;
}

.p-intro__lead-visual {
    position: relative;
    flex: 0 0 auto;
    width: 400px;
}

.p-intro__lead-image {
    width: 100%;
    aspect-ratio: 660 / 416;
    object-fit: cover;
    border-radius: 7px;
}

.p-intro__lead-emblem {
    position: absolute;
    top: 45.9%;
    left: 79.25%;
    z-index: 1;
    width: 28.5%;
    max-width: none !important;
    pointer-events: none;
}

.p-intro__lead-text {
    flex: 1;
    font-family: var(--font-latin);
    font-size: 20px;
    line-height: 1.6;
}

/* New collection */
.p-intro__collection {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 840px;
    max-width: 100%;
    margin-inline: auto;
}

.p-intro__collection > .c-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.p-intro__collection > .c-section-heading img {
    width: 267px;
}

.p-intro__collection-frame {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 379px;
    padding: 42px 50px 50px;
    border: 1px solid #b69b42;
}

.p-intro__collection-frame::before {
    position: absolute;
    inset: 16px 14px;
    z-index: 0;
    border: 1px solid #6d6753;
    content: "";
    pointer-events: none;
}

.p-intro__corner {
    position: absolute;
    z-index: 2;
    width: 100px;
    max-width: none !important;
    pointer-events: none;
}

.p-intro__corner--top-left { top: -1px; left: -1px; }
.p-intro__corner--top-right { top: -1px; right: -1px; }
.p-intro__corner--bottom-left { bottom: -1px; left: -1px; }
.p-intro__corner--bottom-right { bottom: -1px; right: -1px; }

.p-intro__product {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.p-intro__product-visual {
    flex: none;
    width: calc(50% - 10px);
}

.p-intro__product-visual img {
    width: 100%;
}

.p-intro__product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 17px;
    min-width: 0;
    text-align: center;
}

.p-intro__product-catch {
    font-family: var(--font-ryumin);
    font-size: 19px;
    line-height: 28px;
    letter-spacing: .08em;
}

.p-intro__product-description {
    max-width: 350px;
    margin-inline: auto;
    font-family: var(--font-gothic);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: .08em;
    text-align: left;
}

.p-intro__product-meta {
    text-align: center;
}

.p-intro__product-name {
    font-family: var(--font-latin);
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: .08em;
}

.p-intro__product-price {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: .08em;
}

.p-intro__product-spec {
    font-family: var(--font-gothic);
    font-size: 10px;
    line-height: 17px;
    letter-spacing: .08em;
}

/* Product detail */
.p-intro__detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 920px;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
}

.p-intro__detail-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 720px;
    max-width: 100%;
    margin-inline: auto;
}

.p-intro__detail-inner > .c-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 53px;
}

.p-intro__detail-inner > .c-section-heading img {
    width: 187px;
}

.p-intro__detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    width: 100%;
}

.p-intro__detail-visual,
.p-intro__detail-body {
    width: 100%;
    min-width: 0;
}

.p-intro__detail-body {
    font-family: var(--font-gothic);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: .08em;
    text-align: left;
}

.p-intro__detail > .c-button-group {
    width: 540px;
    max-width: 100%;
    margin-inline: auto;
}

.p-intro__detail > .c-button-group > .c-button {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}

.p-intro__detail > .c-text-link {
    align-self: center;
    color: var(--yellow);
}

/* Intro copy must remain white even when the shared site CSS colors text and links. */
#beauty-and-the-beast main .p-intro :is(
    .p-intro__lead-text,
    .p-intro__product-catch,
    .p-intro__product-description,
    .p-intro__product-meta,
    .p-intro__product-name,
    .p-intro__product-price,
    .p-intro__product-spec,
    .p-intro__detail-body
),
#beauty-and-the-beast main .p-intro .p-intro__product-meta a {
    color: #fff;
}

/* Intro link colors: keep these independent of inherited text color. */
#beauty-and-the-beast main .p-intro__detail .c-button {
    background-color: var(--yellow);
    color: var(--navy);
}

#beauty-and-the-beast main .p-intro__detail .c-text-link {
    color: var(--yellow);
}

/* Fashion */
.p-fashion {
    max-width: 1280px;
    margin-inline: auto;
    padding: 40px 15px;
    background: var(--gold);
    color: #fff;
}

.p-fashion__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    text-align: center;
}

.p-fashion__inner > .c-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.p-fashion__inner > .c-section-heading img {
    width: 151px;
}

.p-fashion__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 8px;
    width: 720px;
    max-width: 100%;
}

.c-product-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.c-product-tile img {
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: contain;
    background: #fff;
}

.c-product-tile__price {
    margin-top: 3px !important;
    font-size: 14px;
    line-height: 30px;
    letter-spacing: .08em;
}

.c-product-tile__spec {
    font-family: var(--font-gothic);
    font-size: 10px;
    line-height: 16px;
    letter-spacing: .08em;
}

.p-fashion__button,
.p-fashion__button:visited {
    min-width: 225px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
}

.p-fashion .p-fashion__button.c-button--svg-arrow::after {
    filter: brightness(0) invert(1);
}

.p-fashion .c-product-tile > a,
.p-fashion .c-product-tile > a:link,
.p-fashion .c-product-tile > a:visited,
.p-fashion .c-product-tile > a:hover,
.p-fashion .c-product-tile > a:active,
.p-fashion .c-product-tile > a .c-product-tile__price,
.p-fashion .c-product-tile__spec {
    color: #fff;
}

/* Mobile */
@media (max-width: 700px) {
    #beauty-and-the-beast main .u-pc {
        display: none;
    }

    .p-intro {
        padding: 30px 10px;
    }

    .p-intro__decoration {
        width: 370px;
    }

    .p-intro__inner {
        gap: 30px;
        padding: 20px;
    }

    .p-intro__lead {
        flex-direction: column;
        gap: 15px;
        width: 330px;
    }

    .p-intro__lead-visual {
        width: 330px;
        max-width: 100%;
    }

    .p-intro__lead-emblem {
        top: 41.3%;
        left: 71.82%;
        width: 33.03%;
    }

    .p-intro__collection {
        gap: 14px;
        width: 330px;
    }

    .p-intro__collection > .c-section-heading img {
        width: 202px;
    }

    .p-intro__collection-frame {
        min-height: 535px;
        padding: 28px 29px 43px;
    }

    .p-intro__collection-frame::before {
        inset: 11px;
    }

    .p-intro__corner {
        width: 80px;
    }

    .p-intro__product {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 9px;
    }

    .p-intro__product-visual {
        width: 100%;
    }

    .p-intro__detail {
        gap: 30px;
        width: 330px;
    }

    .p-intro__detail-inner {
        gap: 0;
        width: 330px;
    }

    .p-intro__detail-inner > .c-section-heading {
        height: 40px;
    }

    .p-intro__detail-inner > .c-section-heading img {
        width: 143px;
    }

    .p-intro__detail-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .p-intro__detail-body {
        min-height: 160px;
    }

    .p-intro__detail > .c-button-group {
        gap: 15px;
        width: 330px;
    }

    .p-intro__detail > .c-button-group > .c-button {
        padding-inline: 10px 23px;
        font-size: 13px;
        letter-spacing: 0;
    }

    .p-fashion__inner {
        gap: 25px;
    }

    .p-fashion__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 361px;
    }
}


/* Bridal: section and card appearance (no slider behavior) */
.p-bridal,
.p-order-made {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 40px 16px;
    text-align: center;
}

.p-bridal > .c-section-heading,
.p-order-made > .c-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
}

.p-bridal > .c-section-heading img { width: 126px; }
.p-order-made > .c-section-heading img { width: 221px; }

/* Bridal: desktop three cards; Embla on tablet and mobile. */
.c-carousel--bridal {
    width: 100%;
    max-width: 1131px;
    margin-inline: auto;
    overflow: hidden;
}

.c-carousel--bridal .c-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-carousel--bridal .c-product-card--bridal {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: 361px;
    min-width: 0;
}

@media (min-width: 1100px) {
    .c-carousel--bridal .c-carousel__track { justify-content: center; }
}

/* Tablet / mobile: keep the heading inset, but let the slider reach both screen edges.
   The leading track padding gives the first card breathing room; no trailing padding
   means the final card can slide all the way to the right edge. */
@media (max-width: 1099px) {
    .p-bridal {
        padding-inline: 0;
    }

    .c-carousel--bridal {
        width: 100%;
        max-width: none;
    }

    .c-carousel--bridal .c-carousel__track {
        padding-left: 16px;
        padding-right: 0;
    }
}

@media (min-width: 701px) and (max-width: 1099px) {
    .c-carousel--bridal .c-product-card--bridal {
        flex: 0 0 min(calc((100% - 40px) / 2), 361px);
        max-width: none;
    }
}

@media (max-width: 700px) {
    .c-carousel--bridal .c-carousel__track { gap: 12px; }
    .c-carousel--bridal .c-product-card--bridal {
        flex: 0 0 min(84%, 361px);
        max-width: none;
    }
}

.c-product-card--bridal {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.c-product-card--bridal .c-product-card__image {
    width: 100%;
    height: 230px !important;
    object-fit: contain;
}

.c-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.c-product-card__name {
    margin: 4px 0 2px !important;
    font-family: var(--font-latin);
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: .08em;
}

.c-product-card__price {
    margin: 0 0 1px !important;
    font-size: 14px;
    line-height: 30px;
    letter-spacing: .08em;
}

.c-product-card__spec {
    margin: 0 !important;
    font-family: var(--font-gothic);
    font-size: 10px;
    line-height: 15px;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}

.c-product-card__spec--mr {
    width: 100%;
    text-align: left;
}

.p-bridal .c-product-card__spec:last-of-type {
    margin-bottom: 12px !important;
}

.c-button--outline-dark {
    border: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
}

.c-product-card__button {
    min-width: 170px;
    min-height: 29px;
    margin-top: auto;
    font-size: 13px;
}

/* Order-made: static cards retain the original cover proportions and typography */
.p-order-made {
    background: #fff url("images/beauty-and-beast-order-made-bg.jpg") center / cover no-repeat;
}

.p-order-made__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 840px;
    margin-inline: auto;
}

.c-carousel--order-made {
    width: 100%;
    max-width: 450px;
    margin-inline: auto;
    overflow: hidden;
}

.c-carousel--order-made .c-carousel__track {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform .4s ease;
    will-change: transform;
}

.c-product-card--order-made {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 309 / 378;
    min-width: 0;
    overflow: hidden;
    background: #fff;
}

/* Subtle outline on order-made cards after the cover. */
.c-carousel--order-made .c-product-card--order-made:not(:first-child) {
    border: 1px solid #ddd;
}

.p-order-made__media {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.p-order-made__media .c-product-card__image {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

.c-product-card--order-made .c-product-card__description {
    flex: 0 0 100px;
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 10px 14px;
    overflow: hidden;
    font-family: var(--font-gothic);
    font-size: 11px;
    line-height: 1.55;
    text-align: left;
}

.p-order-made__description {
    max-width: 700px;
    margin: 25px auto 0 !important;
    font-family: var(--font-gothic);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: .08em;
}

.p-order-made__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.c-button-group--vertical {
    flex-direction: column;
    gap: 16px;
}

.p-order-made__actions > .c-button,
.c-button-group--vertical > .c-button {
    min-width: 240px;
}

@media (max-width: 700px) {
    .p-order-made__description {
        text-align: left;
    }

    .c-product-card--order-made .c-product-card__description {
        padding: 8px 10px;
        font-size: 10px;
    }
}


.p-order-made__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(450px, 100%);
    max-width: 450px;
    margin: 16px auto 0;
}

.p-order-made__prev,
.p-order-made__next {
    display: block;
    flex: 0 0 66px;
    width: 66px;
    height: 28px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

.p-order-made__prev {
    background-image: url("images/beauty-and-beast-order-made-arrow-prev.svg");
}

.p-order-made__next {
    background-image: url("images/beauty-and-beast-order-made-arrow-next.svg");
}

.p-order-made__nav button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.p-order-made__nav button:disabled {
    opacity: .35;
    cursor: default;
}

.p-order-made__nav button:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .p-order-made .c-carousel--order-made .c-carousel__track {
        transition: none;
    }
}


/* No-JS / CDN fallback: still allow access to every bridal card. */
@media (max-width: 1099px) {
    .c-carousel--bridal:not(.is-embla-ready) {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .c-carousel--bridal:not(.is-embla-ready) .c-product-card--bridal {
        scroll-snap-align: center;
    }
}

/* Bridal scroll-linked progress: shown only when Embla is active. */
.p-bridal__progress {
    display: none;
    width: min(361px, calc(100% - 40px));
    height: 3px;
    margin: 24px auto 0;
    overflow: hidden;
    background: rgba(185, 155, 101, .25);
    border-radius: 999px;
}
.p-bridal:has(.c-carousel--bridal.is-embla-ready) .p-bridal__progress {
    display: block;
}
.p-bridal__progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: #B99B65;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}


/* Mobile order-made width: keep the card and navigation aligned. */
@media (max-width: 700px) {
    .p-order-made .c-carousel--order-made,
    .p-order-made__nav {
        width: 100%;
        max-width: 361px;
    }
}

/* Desktop typography: keep mobile sizing unchanged. */
@media (min-width: 701px) {
    #beauty-and-the-beast main {
        font-size: 16px;
    }

    .p-intro__product-description,
    .p-intro__detail-body,
    .p-order-made__description {
        font-size: 14px;
        line-height: 1.8;
    }

    .c-text-link,
    .c-button,
    .c-product-card__button {
        font-size: 14px;
    }

    .c-product-tile__price,
    .c-product-card__price {
        font-size: 16px;
    }

    .c-product-tile__spec,
    .c-product-card__spec {
        font-size: 12px;
        line-height: 1.6;
    }

    /* Retain the 450px card width while giving its copy room to breathe. */
    .c-product-card--order-made .c-product-card__description {
        flex-basis: 125px;
        height: 125px;
        padding: 14px 18px;
        font-size: 13px;
        line-height: 1.8;
    }
}

/* Removed text underlines from elements that were previously links.
#beauty-and-the-beast main :is(
    .p-intro__product-name,
    .p-intro__product-price,
    .c-product-tile__price,
    .c-product-card__price,
    .c-text-link,
    .c-button
),
#beauty-and-the-beast main :is(
    .p-intro__product-name,
    .p-intro__product-price,
    .c-product-tile__price,
    .c-product-card__price,
    .c-text-link,
    .c-button
) * {
    text-decoration: none !important;
    border-bottom: 0;
} */

/* ORDER MADE - Fade Carousel */

.p-order-made__slider.is-fade-slider {
    display: grid;
    transform: none;
    transition: none;
}

.p-order-made__slider.is-fade-slider > .c-product-card--order-made {
    grid-area: 1 / 1;
    min-width: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.8s ease-in-out,
        visibility 0s linear 0.8s;
}

.p-order-made__slider.is-fade-slider > .c-product-card--order-made.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
    transition:
        opacity 0.8s ease-in-out,
        visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
    .p-order-made__slider.is-fade-slider > .c-product-card--order-made {
        transition: none;
    }
}
