/* ==========================================
   About Section
   ========================================== */

.about-section {
    position: relative;
    width: 100%;
    height: clamp(300px, 36vw, 800px);
    display: flex;
    align-items: center;
    background-color: #E5E5EA;
    --about-square: clamp(300px, 36vw, 800px);
    --about-margin: max((100vw - 1440px) / 2, 0px);
    --about-padding: clamp(40px, 8.33vw, 120px);
    --about-gap: max(var(--about-square) - 12px - var(--about-margin) - var(--about-padding) - 300px, 20px);
}

.about-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-image: var(--legacy-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.about-section__wrapper {
    display: flex;
    width: 100%;
    margin: 0;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Left Side - About Banner */
.about-section__left {
    flex: 0 0 calc(var(--about-square) - 12px);
    max-width: calc(var(--about-square) - 12px);
    display: flex;
    justify-content: flex-end;
}

.about-section__text {
    position: relative;
    z-index: 2;
    font-family: 'Roboto Flex', sans-serif;
    font-size: clamp(21px, 2.5vw, 30px);
    font-weight: 600;
    line-height: clamp(32px, 3.25vw, 39px);
    writing-mode: vertical-rl;
    letter-spacing: 0.05em;
    color: #000;
    margin-right: var(--about-gap);
}

.about-section__text span {
    display: inline-block;
}

/* Divider */
.about-section__divider {
    position: relative;
    width: 12px;
    height: 0;
    background-color: #000;
    padding: 0;
    flex-shrink: 0;
    transition: height 1s ease;
}

/* Right Side - Content */
.about-section__right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-left: var(--about-gap);
}

.about-section__content {
    width: calc(100vw - var(--about-margin) - var(--about-padding) - var(--about-square) - var(--about-gap));
}

/* Brand page legacy: constrain right edge to product-list gradient boundary (80vw) */
.single-brand .about-section__content {
    width: calc(80vw - var(--about-square) - var(--about-gap));
}

.about-section__title {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    color: #000;
    margin: 0 0 clamp(1.5rem, 2vw, 2rem);
    line-height: 1;
    letter-spacing: 0;
    opacity: 0;
}

.about-section__title.char-animate {
    opacity: 1;
}

.about-title-br {
    display: none;
}

.about-section__title span {
    display: inline-block;
    opacity: 0;
}

.about-section__title.char-animate span {
    animation: fadeInChar 0.1s ease forwards;
}

.about-section__description {
    font-family: 'IBM Plex Sans JP', sans-serif;
    font-size: clamp(15px, 1.17vw, 14px);
    font-weight: 450;
    line-height: 2.2;
    color: #333;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.about-section__description.animate {
    opacity: 1;
}

.about-section__description p {
    margin: 0 0 2rem;
}

.about-section__description p:last-child {
    margin-bottom: 0;
}

/* Animation */
@keyframes fadeInChar {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.contact .brand-box__rect,
body.news-archive .brand-box__rect {
    stroke-dashoffset: 0;
    opacity: 1;
    transition: none;
    stroke: rgba(0, 0, 0, 1) !important;
}

/* Responsive - Large desktop */
@media (min-width: 1920px) {
    .about-section {
        height: 40vw;
        --about-square: 40vw;
        --about-gap: max(var(--about-square) - 12px - var(--about-margin) - var(--about-padding) - 300px, 20px);
    }

    .about-section__left {
        flex: 0 0 calc(var(--about-square) - 12px);
        max-width: calc(var(--about-square) - 12px);
    }

    .about-section__content {
        width: calc(100vw - var(--about-margin) - var(--about-padding) - var(--about-square) - var(--about-gap));
    }

    .single-brand .about-section__content {
        width: calc(80vw - var(--about-square) - var(--about-gap));
    }
}

@media (max-width: 1100px) and (min-width: 1025px) {
    .about-section {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 40px;
    }
}

/* Responsive - Tablet */
@media (max-width: 1025px) and (min-width: 768px) {
    .about-section {
        height: auto;
        padding-top: clamp(40px, 5vw, 80px);
        padding-bottom: clamp(40px, 5vw, 80px);
        --about-square: clamp(288px, 34.5vw, 354px);
        min-height: var(--about-square);
        --about-padding: clamp(30px, 6vw, 60px);
        --about-gap: clamp(20px, 2vw, 30px);
    }

    .about-section::before {
        width: var(--about-square);
        aspect-ratio: unset;
    }

    .about-section__wrapper {
        align-items: flex-start;
    }

    .about-section__left {
        flex: 0 0 calc(var(--about-square) - 12px);
        max-width: calc(var(--about-square) - 12px);
    }

    .about-section__content {
        width: calc(100vw - var(--about-square) - 12px - 2 * var(--about-gap));
    }

    .single-brand .about-section__content {
        width: 100%;
        padding-right: 30px;
    }

    .about-section__divider {
        width: 7px;
    }

    .about-section__left {
        flex: 0 0 calc(var(--about-square) - 7px);
        max-width: calc(var(--about-square) - 7px);
    }

    .about-section__text {
        margin-right: calc(var(--about-square) - 12px - 30px - 230px);
    }

    .about-section__title {
        font-size: 18px;
        line-height: 1.8;
        font-weight: 700;
    }

    .about-section__description {
        font-size: 13px;
        line-height: 1.8;
        font-weight: 500;
    }
}

/* Responsive - Tablet landscape only */
@media (max-width: 1025px) and (min-width: 768px) and (orientation: landscape) {
    .about-section {
        padding-top: clamp(40px, 5vw, 80px);
        padding-bottom: clamp(40px, 5vw, 80px);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .about-title-br {
        display: inline;
    }

    .about-section {
        height: auto;
        width: auto;
        padding: 150px 1rem;
    }

    .about-section::before {
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        background-image: var(--legacy-bg-mobile, var(--legacy-bg));
    }

    .about-section__wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .about-section__left {
        flex: none;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        justify-content: flex-start;
        margin-right: 6px;
    }

    .about-section__text {
        writing-mode: vertical-rl;
        margin-right: 0;
        top: 0;
        position: relative;
    }

    .about-section__divider {
        position: relative;
        top: 0;
        width: 9px;
        height: 0;
        background-color: #000;
        margin: 0 20px 0 0;
        transition: height 1.33s ease;
    }

    .about-section__right {
        flex: 1;
        padding: 0;
        margin-top: 0;
        background-color: transparent;
        max-width: none;
    }

    .about-section__content,
    .single-brand .about-section__content {
        width: 100%;
        padding: 0;
    }

    .about-section__title {
        margin: 0 0 45px;
        line-height: 1.5;
    }

    .about-section__description {
        font-weight: 450;
        line-height: 33px;
    }

    .about-section__description p {
        margin: 0 0 1.5rem;
    }
}
