/* Member Page specific styles */

:root {
    --orbit-size: 520px;
    --node-size: 140px;
    --center-size: 220px;
    --orbit-radius: 210px;
}

.member-header {
    min-height: 75vh !important;
    background: var(--bg-color) !important;
}

.editorial-header {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.header-visual-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.visual-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.blob-a {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #ff9a9e 0%, #a18cd1 100%);
    top: -200px;
    right: -100px;
    animation: float-blob 20s infinite alternate-reverse;
}

.blob-b {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    bottom: -150px;
    left: -100px;
    animation: float-blob 25s infinite alternate;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.visual-line {
    position: absolute;
    top: 0;
    left: 20%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), transparent);
}

.header-main-flex {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 5;
    padding-top: 100px;
    width: 100%;
}

.header-left-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.decor-tag {
    writing-mode: vertical-rl;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: #bbb;
    transform: rotate(180deg);
}

.decor-line {
    width: 1px;
    height: 100px;
    background: #1a1a1a;
    margin-top: 30px;
}

.header-content-group {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8vw;
}

.header-title-col {
    flex: 0 0 450px;
    padding-left: 5vw;
}

.sub-title-en {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: #aaa;
    line-height: 1;
    margin-bottom: -5px;
    letter-spacing: -0.02em;
}

.editorial-title {
    font-size: clamp(4rem, 10vw, 7rem) !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    margin-left: -4px;
    letter-spacing: -0.05em !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #5d8bb3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-message-col {
    flex: 1;
    padding-bottom: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
    max-width: 600px;
    position: relative;
}

.message-accent-line {
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 1.5px;
    background: #5d8bb3;
}

.caption-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #5d8bb3;
    margin-bottom: 25px;
}

.caption-desc {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 2 !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Section Title */
.member-section-title {
    position: relative;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 40px;
    /* Reduced from 80px */
    text-align: center;
    color: var(--text-main);
}

.member-section-title::before {
    content: attr(data-bg-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    color: rgba(93, 139, 179, 0.04);
    z-index: -1;
    white-space: nowrap;
    letter-spacing: 0.1em;
}

/* Board Member Grid */
.board-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.board-card {
    display: flex;
    gap: 60px;
    padding: 60px;
    align-items: center;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s var(--easing);
}

.board-card:hover {
    transform: translateY(-8px);
}

.member-photo-wrapper {
    flex-shrink: 0;
    width: 250px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.member-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-photo-placeholder {
    color: #ddd;
    font-size: 1.2rem;
    font-weight: 700;
}

.member-info {
    flex-grow: 1;
}

.member-role-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(93, 139, 179, 0.1);
    color: #5d8bb3;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.member-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-main);
}

.member-name .name-en {
    display: block;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    color: var(--text-sub);
    margin-top: 8px;
    font-weight: 400;
}

.member-career-list {
    list-style: none;
    padding: 0;
}

.member-career-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
}

.member-career-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #5d8bb3;
    font-weight: 800;
}

/* Team Member expertise flex layout (PC) */
.team-expertise-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0 60px;
    /* Reduced top padding from 60px to 20px */
}

.team-left-visual {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-right-content {
    flex: 1;
}

.team-points-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Team Member Proper Circular Diagram */
.team-diagram-cluster-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: var(--orbit-size);
}

.team-orbit-diagram {
    position: relative;
    width: var(--orbit-size);
    height: var(--orbit-size);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--easing);
}

/* Decorative Ring */
.team-orbit-diagram::before {
    content: '';
    position: absolute;
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    border-radius: 50%;
    border: 1px dashed rgba(93, 139, 179, 0.2);
    animation: rotate-orbit 60s linear infinite;
}

@keyframes rotate-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-center-node {
    position: relative;
    z-index: 10;
}

.core-text {
    width: var(--center-size);
    height: var(--center-size);
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.core-text p {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.core-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 139, 179, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.orbit-roles-wrapper {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.orbit-role {
    position: absolute;
    width: var(--node-size);
    height: var(--node-size);
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s var(--easing);
    top: 50%;
    left: 50%;
    margin-top: calc(var(--node-size) / -2);
    margin-left: calc(var(--node-size) / -2);
    pointer-events: auto;
}

.orbit-role span {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    padding: 10px;
}

/* Orbital Calculation */
/* Orbital Calculation */
.pos-1 {
    transform: rotate(-90deg) translateY(calc(var(--orbit-radius) * -1)) rotate(90deg);
}

.pos-2 {
    transform: rotate(-30deg) translateY(calc(var(--orbit-radius) * -1)) rotate(30deg);
}

.pos-3 {
    transform: rotate(30deg) translateY(calc(var(--orbit-radius) * -1)) rotate(-30deg);
}

.pos-4 {
    transform: rotate(90deg) translateY(calc(var(--orbit-radius) * -1)) rotate(-90deg);
}

.pos-5 {
    transform: rotate(150deg) translateY(calc(var(--orbit-radius) * -1)) rotate(-150deg);
}

.pos-6 {
    transform: rotate(210deg) translateY(calc(var(--orbit-radius) * -1)) rotate(-210deg);
}

/* Orbit node hover removed as requested */

/* Point Item Styling */
.point-item {
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.point-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(93, 139, 179, 0.1);
    color: #5d8bb3;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.point-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-main);
    font-weight: 500;
}

/* Modern Contact CTA */
.contact-cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.15) 0%, rgba(255, 255, 255, 1) 50%, rgba(230, 230, 250, 0.2) 100%);
    z-index: -1;
}

.cta-content {
    text-align: center;
}

.cta-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.cta-button-wrapper {
    display: flex;
    justify-content: center;
}

.btn-contact-modern {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 45px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s var(--easing);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-contact-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.btn-text {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.btn-arrow-box {
    width: 24px;
    height: 24px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--easing);
}

.btn-contact-modern:hover .btn-arrow-box {
    transform: scale(1.1);
}

/* Responsive Updates */
@media (max-width: 1200px) {
    .team-expertise-flex {
        gap: 20px;
    }

    .team-orbit-diagram {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .team-expertise-flex {
        flex-direction: column;
        gap: 40px;
    }

    .team-left-visual {
        width: 100%;
    }

    .team-right-content {
        width: 100%;
        max-width: 700px;
    }

    .board-card {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }

    .member-photo-wrapper {
        width: 100%;
        max-width: 300px;
        height: 350px;
    }

    .member-career-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .member-header {
        min-height: auto !important;
        padding-top: 100px !important;
        /* Added to prevent overlap */
        padding-bottom: 80px !important;
    }

    .header-main-flex {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        gap: 30px;
        padding-top: 40px;
        text-align: center;
        /* Center children text */
    }

    .header-left-decor {
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: center;
        /* Center horizontally */
        gap: 20px;
    }

    .decor-tag {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .decor-line {
        width: 60px;
        height: 1px;
        margin-top: 0;
    }

    .header-content-group {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        gap: 40px;
        text-align: center;
    }

    .header-title-col {
        padding-left: 0;
        flex: none !important;
        width: 100%;
        text-align: center;
    }

    .header-message-col {
        padding-top: 30px;
        width: 100%;
        text-align: center;
    }

    .message-accent-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .caption-desc {
        text-align: center !important;
    }

    .member-section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
        /* Further reduction for mobile */
    }

    .member-section-title::before {
        font-size: 5rem;
    }

    /* Scale diagram specifically for mobile with transform-origin to prevent disappearing */
    .team-left-visual {
        display: flex;
        width: 100%;
        margin-bottom: 20px;
        overflow: visible;
    }

    .team-orbit-diagram {
        /* Replaced scale(0.65) with variable adjustments to keep text readable */
        --orbit-size: 380px;
        --node-size: 90px;
        --center-size: 160px;
        --orbit-radius: 140px;
        margin: 20px 0;
    }

    .orbit-role span {
        font-size: 0.75rem;
        /* Slight reduction but much larger than scaled global version */
        padding: 5px;
    }

    .core-text p {
        font-size: 0.9rem;
    }

    .team-diagram-cluster-wrapper {
        min-height: 400px;
    }

    .contact-cta {
        padding: 80px 0;
    }

    .cta-heading {
        font-size: 1.5rem;
    }

    .btn-contact-modern {
        padding: 15px 35px;
    }
}

@media (max-width: 480px) {
    .team-orbit-diagram {
        /* Further reduction for small mobiles */
        --orbit-size: 300px;
        --node-size: 75px;
        --center-size: 130px;
        --orbit-radius: 110px;
    }

    .orbit-role span {
        font-size: 0.65rem;
    }

    .team-diagram-cluster-wrapper {
        min-height: 320px;
    }

    .core-text p {
        font-size: 0.8rem;
    }
}