/* team.css - チームページ専用スタイル */

/* ===========================================
   Section Base (Team Page)
=========================================== */
.section {
    position: relative;
    padding: var(--section-padding-y) var(--section-padding-x);
    background-color: var(--color-white);
}

.section__heading {
    font-family: var(--font-noto);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.1em;
}

.section__label {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    margin-top: 0.5rem;
}

.section__label-line {
    width: 3rem;
    height: 2px;
    background-color: var(--color-black);
}

.section__label-text {
    font-family: var(--font-clash);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-gray-900);
}

.section__body {
    font-size: 1rem;
    font-weight: 500;
    line-height: 2.5;
    letter-spacing: 0.05em;
}

/* ===========================================
   Team Hero Section
=========================================== */
.team-hero {
    position: relative;
    padding-top: 8rem;
}

@media (min-width: 1024px) {
    .team-hero {
        padding-top: 12rem;
    }
}

@media (min-width: 1366px) {
    .team-hero {
        padding-top: 14rem;
    }
}

.team-hero__bg-text {
    position: absolute;
    top: 4rem;
    left: var(--section-padding-x);
    font-family: var(--font-clash);
    font-size: 20vw;
    font-weight: 500;
    line-height: 1;
    color: var(--color-primary-20);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

@media (min-width: 1024px) {
    .team-hero__bg-text {
        font-size: 16rem;
        top: 6rem;
    }
}

@media (min-width: 1366px) {
    .team-hero__bg-text {
        font-size: 20rem;
    }
}

.team-hero__back {
    margin-bottom: 2rem;
}

.team-hero__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-clash);
    font-size: 0.875rem;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color 0.3s;
}

.team-hero__back-link:hover {
    color: var(--color-primary);
}

.team-hero__header {
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .team-hero__header {
        margin-bottom: 6rem;
    }
}

.team-hero__body {
    max-width: 56rem;
}

/* ===========================================
   CEO Section
=========================================== */
.section--gray {
    background-color: #f8f8f8;
}

.ceo__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .ceo__grid {
        grid-template-columns: 5fr 7fr;
        gap: 4rem;
    }
}

@media (min-width: 1366px) {
    .ceo__grid {
        gap: 6rem;
    }
}

/* Left Column */
.ceo__left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    order: 2;
}

@media (min-width: 768px) {
    .ceo__left {
        flex-direction: row;
        gap: 2rem;
        align-items: flex-end;
    }
}

@media (min-width: 1024px) {
    .ceo__left {
        order: 1;
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }
}

.ceo__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .ceo__image-wrapper {
        max-width: 200px;
    }
}

@media (min-width: 1366px) {
    .ceo__image-wrapper {
        max-width: 280px;
    }
}

.ceo__image-accent {
    position: absolute;
    inset: 0;
    background-color: var(--color-primary);
    transform: translate(0.75rem, 0.75rem);
    transition: transform 0.5s;
}

@media (min-width: 1024px) {
    .ceo__image-accent {
        transform: translate(0.5rem, 0.5rem);
    }
}

@media (min-width: 1366px) {
    .ceo__image-accent {
        transform: translate(1rem, 1rem);
    }
}

.ceo__image-wrapper:hover .ceo__image-accent {
    transform: translate(1rem, 1rem);
}

@media (min-width: 1366px) {
    .ceo__image-wrapper:hover .ceo__image-accent {
        transform: translate(1.5rem, 1.5rem);
    }
}

.ceo__image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    z-index: 1;
}

.ceo__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.7s;
}

.ceo__image-wrapper:hover .ceo__image img {
    filter: grayscale(0%);
}

.ceo__profile {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .ceo__profile {
        padding-left: 1rem;
    }
}

@media (min-width: 1366px) {
    .ceo__profile {
        padding-left: 1.5rem;
    }
}

.ceo__profile-title {
    font-family: var(--font-noto);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gray-600);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .ceo__profile-title {
        font-size: 0.75rem;
    }
}

@media (min-width: 1366px) {
    .ceo__profile-title {
        font-size: 0.875rem;
    }
}

.ceo__profile-name-en {
    font-family: var(--font-clash);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
    .ceo__profile-name-en {
        font-size: 1.5rem;
    }
}

@media (min-width: 1366px) {
    .ceo__profile-name-en {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
}

.ceo__profile-name-jp {
    font-family: var(--font-noto);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .ceo__profile-name-jp {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 1366px) {
    .ceo__profile-name-jp {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
}

.ceo__profile-desc {
    font-family: var(--font-noto);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-600);
}

@media (min-width: 1024px) {
    .ceo__profile-desc {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (min-width: 1366px) {
    .ceo__profile-desc {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Right Column */
.ceo__right {
    display: flex;
    flex-direction: column;
    order: 1;
}

@media (min-width: 1024px) {
    .ceo__right {
        order: 2;
        padding-top: 0;
    }
}

.ceo__message-label {
    font-family: var(--font-clash);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .ceo__message-label {
        font-size: 1.125rem;
    }
}

@media (min-width: 1366px) {
    .ceo__message-label {
        font-size: 1.25rem;
    }
}

.ceo__message-title {
    font-family: var(--font-noto);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .ceo__message-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1366px) {
    .ceo__message-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
}

.ceo__message-body {
    font-family: var(--font-noto);
    font-size: 1rem;
    line-height: 2;
    color: var(--color-gray-700);
}

.ceo__message-body p + p {
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .ceo__message-body {
        font-size: 1rem;
        line-height: 2;
    }
    
    .ceo__message-body p + p {
        margin-top: 1.5rem;
    }
}

@media (min-width: 1366px) {
    .ceo__message-body {
        font-size: 1rem;
        line-height: 2.2;
    }
    
    .ceo__message-body p + p {
        margin-top: 2rem;
    }
}

/* ===========================================
   Members Section - Footer Spacing
=========================================== */
.section--members {
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .section--members {
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .section--members {
        padding-bottom: 4rem;
    }
}

/* ===========================================
   Members Section - Responsive Grid
=========================================== */
.members__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
}

@media (min-width: 1024px) {
    .members__header {
        margin-bottom: 3rem;
    }
}

.members__title {
    font-family: var(--font-clash);
    font-size: 2.5rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .members__title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .members__title {
        font-size: 2.5rem;
    }
}

.members__count {
    font-family: var(--font-clash);
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

@media (min-width: 768px) {
    .members__count {
        font-size: 1rem;
    }
}

/* Responsive Grid */
.members__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
}

@media (min-width: 768px) {
    .members__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .members__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem 2rem;
    }
}

/* Member Card - Compact */
.member-card {
    display: flex;
    flex-direction: column;
}

.member-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-gray-100);
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-card__image img {
    width: 60%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: filter 0.5s, opacity 0.5s, transform 0.5s;
}

.member-card:hover .member-card__image img {
    filter: grayscale(0%);
    opacity: 0.7;
    transform: scale(1.05);
}

.member-card__content {
    display: flex;
    flex-direction: column;
}

.member-card__num {
    font-family: var(--font-clash);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.member-card__title {
    font-family: var(--font-noto);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.4;
    margin-bottom: 0.375rem;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .member-card__title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .member-card__title {
        font-size: 1.5rem;
    }
}

.member-card:hover .member-card__title {
    color: var(--color-primary);
}

.member-card__role {
    font-family: var(--font-noto);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-500);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .member-card__role {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .member-card__role {
        font-size: 1rem;
    }
}

.member-card__desc {
    font-family: var(--font-noto);
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--color-gray-600);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .member-card__desc {
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .member-card__desc {
        font-size: 0.8125rem;
    }
}

/* ===========================================
   Member Modal
=========================================== */
.member-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@media (min-width: 768px) {
    .member-modal {
        padding: 2rem;
    }
}

.member-modal--open {
    display: flex;
}

.member-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.member-modal__content {
    position: relative;
    background-color: var(--color-white);
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.member-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.member-modal__close:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.member-modal__close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.member-modal__inner {
    padding: 2rem;
}

@media (min-width: 768px) {
    .member-modal__inner {
        padding: 3rem;
    }
}

@media (min-width: 1366px) {
    .member-modal__inner {
        padding: 4rem;
    }
}

.member-modal__header {
    margin-bottom: 2rem;
}

.member-modal__role {
    font-family: var(--font-clash);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .member-modal__role {
        font-size: 1.125rem;
    }
}

.member-modal__name-en {
    font-family: var(--font-noto);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .member-modal__name-en {
        font-size: 2.25rem;
    }
}

@media (min-width: 1366px) {
    .member-modal__name-en {
        font-size: 3rem;
    }
}

.member-modal__name-jp {
    font-family: var(--font-noto);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-gray-900);
}

@media (min-width: 768px) {
    .member-modal__name-jp {
        font-size: 1.25rem;
    }
}

@media (min-width: 1366px) {
    .member-modal__name-jp {
        font-size: 1.5rem;
    }
}

.member-modal__intro {
    font-family: var(--font-noto);
    font-size: 0.9375rem;
    line-height: 2;
    color: var(--color-gray-700);
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .member-modal__intro {
        font-size: 1rem;
    }
}

@media (min-width: 1366px) {
    .member-modal__intro {
        font-size: 1.0625rem;
    }
}

.member-modal__intro--no-history {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.member-modal__history-title {
    font-family: var(--font-clash);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-400);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.member-modal__history-list {
    display: flex;
    flex-direction: column;
}

.member-modal__history-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .member-modal__history-item {
        flex-direction: row;
        gap: 2rem;
    }
}

.member-modal__history-item:first-child {
    padding-top: 0;
}

.member-modal__history-item:last-child {
    border-bottom: none;
}

.member-modal__history-item:hover {
    background-color: var(--color-gray-100);
}

.member-modal__history-year {
    font-family: var(--font-clash);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-800);
    width: 6rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .member-modal__history-year {
        font-size: 1.125rem;
    }
}

.member-modal__history-event {
    font-family: var(--font-noto);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-gray-600);
}

@media (min-width: 768px) {
    .member-modal__history-event {
        font-size: 1rem;
    }
}
