/* ==========================================================================
   About Us Page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Header Bubbles (Orange)
   -------------------------------------------------------------------------- */
.page-header__bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.page-header__bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--color-primary);
}

.page-header__bubble--main {
    width: 22rem;
    height: 22rem;
    top: 70%;
    left: 51%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.page-header__bubble--small {
    top: 70%;
    left: 51%;
    opacity: 0;
    animation: pageHeaderBubbleRise var(--duration, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: border-radius 0.8s ease-in-out;
}

@keyframes pageHeaderBubbleRise {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(0) scale(0.3);
    }
    10% {
        opacity: 0.9;
        transform: translate(-50%, -50%) translateY(-5rem) scale(1);
    }
    85% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-100vh) scale(1);
    }
}

.page-header .section__inner,
.page-header .page-header__title,
.page-header .page-header__subtitle,
.page-header .page-header__desc {
    position: relative;
    z-index: 1;
}


@media screen and (max-width: 768px) {
    .page-header__bubble--main {
        width: 20rem;
        height: 20rem;
    }
    .page-header {
        padding-bottom: 6rem;
    }
    .page-header__subtitle {
        margin: 5rem 0;
        text-align: center;
        font-size: 3.2rem;
        line-height: 1.2;
    }
    .page-header__desc {
        font-size: 1.2rem;
    }
}

/* --------------------------------------------------------------------------
   Member Anchor Button (on top of hero image)
   -------------------------------------------------------------------------- */
main{
    padding-bottom: 0;
}
   .about-hero__image {
    position: relative;
}

.about-member-anchor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    background: none;
    border: 0.1rem solid var(--color-primary);
    color: var(--color-primary);
    transition: background 0.3s ease, color 0.3s ease;
}
.about-member-anchor::before {
    content: none;
}
.about-member-anchor:hover {
    background: var(--color-primary);
    color: var(--color-black);
}
@media screen and (max-width: 768px) {
    .about-member-anchor {
        width: 20rem;
        padding: 1.2rem 3rem;
    }
}

/* --------------------------------------------------------------------------
   About Hero Image
   -------------------------------------------------------------------------- */
.about-hero {
    padding: 0 var(--side-padding-right) 0 var(--side-padding-left);
}

.about-hero .section__inner {
    max-width: none;
}

.about-hero__image {
    margin: 0 auto;
    overflow: hidden;
}

.about-hero__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .about-hero {
        padding: 0;
    }
}

/* --------------------------------------------------------------------------
   About MISSION / VISION Override
   -------------------------------------------------------------------------- */
.about-section{
    overflow: hidden;
}
.about-mission__heading,
.about-vision__heading,
.about-value {
    display: block;
    position: relative;
}
.about-mission__heading::before,
.about-vision__heading::before,
.about-value::before {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 10rem);
    background: var(--color-primary);
    z-index: -1;
    opacity: 0;
}
.about-mission__heading.is-visible::before,
.about-vision__heading.is-visible::before,
.about-value.is-visible::before {
    animation: sectionBgReveal 1.2s ease forwards;
}
@keyframes sectionBgReveal {
    0% { opacity: 0; width: 100%; }
    50% { opacity: 1; width: 100%; }
    100% { opacity: 1; width: 2rem; }
}
.about-mission__title,
.about-vision__title,
.about-value__title {
    padding-bottom: 5rem;
}
.about-mission__title::after,
.about-vision__title::after,
.about-value__title::after {
    content: none;
}
.about-mission__body,
.about-vision__body {
    width: 80%;
    margin-left: auto;
}
.about-mission__lead, .about-vision__lead, .about-value__text {
    font-size: 3.3rem;
    font-weight: 500;
}
.about-mission__text, .about-vision__text, .about-value__desc{
    font-size: 1.6rem;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .about-mission__heading::before,
    .about-vision__heading::before,
    .about-value::before {
        height: calc(100% + 6rem - 7rem);
        top: 7rem;
    }
    .about-mission__title,
    .about-vision__title,
    .about-value__title {
        padding-bottom: 3rem;
        font-size: 3.8rem;
    }
    .about-mission__body,
    .about-vision__body {
        width: 100%;
        padding-left: 3rem;
        padding-top: 2rem;
    }
    .about-mission__lead,
    .about-vision__lead {
        font-size: 2.8rem;
        margin-bottom: 10rem;
    }
    @keyframes sectionBgReveal {
    0% { opacity: 0; width: 100%; }
    50% { opacity: 1; width: 100%; }
    100% { opacity: 1; width: 1rem; }
}
}

/* --------------------------------------------------------------------------
   About VALUE
   -------------------------------------------------------------------------- */
.about-value {
    gap: 6rem;
    align-items: flex-start;
}

.about-value__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 80%;
    margin-left: auto;
}

.about-value__item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 4rem 0;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

.about-value__item:first-child {
    padding-top: 0;
}

.about-value__item:last-child {
    border-bottom: none;
}

.about-value__number {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 500;
    /* color: var(--color-primary); */
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.about-value__content {
    flex: 1;
}

.about-value__text {
    font-size: 3.3rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-value__desc {
    font-size: 1.6rem;
    line-height: 2;
}

@media screen and (max-width: 768px) {
    .about-value {
        flex-direction: column;
        gap: 3rem;
    }

    .about-value__item {
        gap: 2rem;
        padding: 2rem 0;
    }
    .about-value__list{
        width: 100%;
        padding-left: 3rem;
        padding-top: 2rem;
    }
    .about-value__text{
        font-size: 2.8rem;
    }
}

/* --------------------------------------------------------------------------
   About MEMBER
   -------------------------------------------------------------------------- */
.about-member__title {
    font-family: var(--font-en);
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 6rem;
}

.about-member__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.about-member__card-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-gray);
}

.about-member__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-member__card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-gray);
}

.about-member__card[data-member] {
    cursor: pointer;
}

.about-member__card-info {
    padding-top: .5rem;
}

.about-member__card-role {
    font-size: 1.4rem;
    color: var(--color-gray-dark);
    /* margin-bottom: 0.5rem; */
}

.about-member__card-name {
    font-size: 1.8rem;
    font-weight: 700;
}

.about-member__more {
    text-align: center;
    margin-top: 5rem;
}

.about-member__more-link {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 1.5rem 5rem;
    border: 1px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    transition: background 0.3s ease, color 0.3s ease;
}

.about-member__more-link:hover {
    background: var(--color-black);
    color: var(--color-white);
}

@media screen and (max-width: 768px) {
    .about-member__title {
        text-align: left;
        margin-bottom: 4rem;
        font-size: 4.8rem;
    }

    .about-member__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-member__more {
        margin-top: 3rem;
    }
}

/* --------------------------------------------------------------------------
   About COMPANY PROFILE
   -------------------------------------------------------------------------- */
.about-company__title {
    font-family: var(--font-en);
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 10rem;
}

.about-company__content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.about-company__info {
    flex: 1;
    min-width: 0;
}

.about-company__row {
    display: flex;
    gap: 3rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.about-company__row:first-child {
    padding-top: 0;
}

.about-company__row dt {
    width: 10rem;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.8;
}

.about-company__row dd {
    font-size: 1.5rem;
    line-height: 1.8;
}

.about-company__map {
    width: 48rem;
    min-height: 44rem;
    flex-shrink: 0;
    border-radius: 0.4rem;
    overflow: hidden;
}

.about-company__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 44rem;
}

@media screen and (max-width: 768px) {
    .about-company__title {
        font-size: 4.8rem;
        margin-bottom: 5rem;
    }

    .about-company__content {
        flex-direction: column;
        gap: 3rem;
    }

    .about-company__row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .about-company__row dt {
        width: auto;
    }

    .about-company__map {
        width: 100%;
        min-height: 30rem;
    }

    .about-company__map iframe {
        min-height: 30rem;
    }
}

/* --------------------------------------------------------------------------
   Member Modal
   -------------------------------------------------------------------------- */
.member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.member-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.member-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.member-modal__content {
    position: relative;
    display: flex;
    background: var(--color-white);
    max-width:120rem;
    width: 90%;
    max-height: 85vh;
    padding: 5rem 10rem;
    overflow-y: auto;
    transform: translateY(2rem);
    transition: transform 0.3s ease;
}

.member-modal.is-active .member-modal__content {
    transform: translateY(0);
}

.member-modal__image {
    flex-shrink: 0;
    width: 30%;
    /* padding: 4rem; */
    display: flex;
    align-items: center;
}

.member-modal__image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.member-modal__close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-orange);
    padding: 0.5rem 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.member-modal__close:hover {
    opacity: 0.6;
}

.member-modal__body {
    flex: 1;
    padding: 5rem 0rem 5rem 5rem;
    display: flex;
    flex-direction: column;
}

.member-modal__role {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.member-modal__name-en {
    font-family: var(--font-en);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-align: center;
}

.member-modal__name-jp {
    font-size: 1.4rem;
    margin-top: 0rem;
    margin-bottom: 3rem;
    text-align: center;
}

.member-modal__bio {
    font-size: 1.3rem;
    line-height: 2;
    flex: 1;
}

.member-modal__bio p {
    margin-bottom: 1em;
}

.member-modal__bio p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .member-modal__content {
        flex-direction: column;
        width: 92%;
        max-height: 90vh;
        padding: 0;
    }

    .member-modal__image {
        width: 100%;
        aspect-ratio: 4 / 3;
        padding: 6rem 7rem 0;
    }

    .member-modal__body {
        padding: 3rem 3rem;
    }
}
