/* --- About Page Specific Styles --- */

.about-page {
    /* Base styles inherited from main.css */
    position: relative;
}

/* --- Editorial Page Header (Fundamental Redesign) --- */
.editorial-header {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 !important;
    background: var(--bg-color) !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.25;
}

.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: #000;
    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;
}

.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;
}

.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, 12vw, 8rem) !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    margin-left: -4px;
    letter-spacing: -0.05em !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.caption-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #5d8bb3;
    margin-bottom: 25px;
}

.caption-desc {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 2 !important;
    color: #555 !important;
    margin: 0 !important;
}

.overflow-visible {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .editorial-header {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 80px !important;
    }

    .header-main-flex {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        gap: 30px;
        padding-top: 0;
        text-align: center;
        /* Center children text */
    }

    .header-left-decor {
        flex-direction: row;
        width: 100%;
        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;
    }

    .editorial-title {
        font-size: clamp(3rem, 15vw, 6rem) !important;
    }
}

/* Layout Utilities */
.centered-layout {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Section Title */
.about-section-title {
    /* Base styles are now in .section-title-accent in main.css */
    color: var(--text-main);
}

/* Mission & Vision Text */
.about-section-desc p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 40px;
    color: var(--text-main);
    font-weight: 500;
}

.mission-statement {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    margin-bottom: 60px !important;
}

.mission-text-bottom {
    font-weight: 700 !important;
}

.vision-large {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.05em;
}

/* --- Style Diagram --- */
/* --- Value Section Refinement --- */
.value-inner-block {
    max-width: 960px;
    /* narrowed from 1100px to make it more centered */
    margin: 0 auto;
    text-align: center;
    /* center for title */
}

.value-inner-block .about-section-title {
    text-align: center;
    /* back to center */
    margin-bottom: 80px;
    padding-left: 0;
}

.value-list {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* items remain left-aligned */
}

.value-item {
    display: flex;
    gap: 60px;
    /* slightly narrowed gap */
    padding: 60px 0;
    border-top: 1px solid #dfdfdf;
    align-items: flex-start;
}

.value-item:last-child {
    border-bottom: 1px solid #dfdfdf;
}

.value-item-left {
    flex: 0 0 420px;
    text-align: left;
}

.value-number {
    font-family: var(--font-en);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: block;
}

.value-title-jp {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.value-item-right {
    flex: 1;
    text-align: left;
    padding-top: 10px;
}

.value-desc {
    font-size: 16px;
    line-height: 2.2;
    color: var(--text-main);
    font-weight: 500;
}

@media (max-width: 900px) {
    .value-item {
        flex-direction: column;
        gap: 24px;
        padding: 40px 0;
    }

    .value-item-left {
        flex: none;
        width: 100%;
    }

    .value-item-right {
        padding-top: 0;
    }
}

/* --- Style Diagram Section Refinement --- */
.style-diagram-container {
    max-width: 1200px;
    margin: 80px auto 0;
}

.style-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 18px;
    font-weight: 700;
    line-height: 2;
    color: var(--text-main);
}

.style-diagram-box {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
}

.diagram-column {
    flex: 0 0 460px;
    display: flex;
    flex-direction: column;
}

.diagram-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 60px 40px !important;
    border-radius: 40px !important;
    background: #fff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--easing);
}

.diagram-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08) !important;
}

.card-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
}

.card-labels {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-arrow-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.4s var(--easing);
}

.diagram-card:hover .card-arrow-icon {
    background: #000;
    color: #fff;
    transform: rotate(45deg);
}

.card-number {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 700;
    color: #999;
}

.card-label-en {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 800;
    color: #999;
    letter-spacing: 0.05em;
}

.card-title-jp {
    font-size: 32px;
    font-weight: 800;
    color: #222;
    line-height: 1.4;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

/* Removed style-view-more as cards are now links */

.card-image-wrapper {
    margin-top: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}

.diagram-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* .image-label related styles can be removed or kept for fallback, but effectively replaced by img */

/* --- Refined Arrows & Interaction --- */
.diagram-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.center-logo-v2 {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    z-index: 5;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-en);
}

.logo-ring {
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(93, 139, 179, 0.1);
    border-radius: 50%;
    animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.interaction-path {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.path-text {
    font-size: 16px;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.interaction-path.bottom .path-text {
    margin-top: 12px;
    margin-bottom: 0;
}

.path-arrow-v2 {
    width: 100%;
    height: 1px;
    background: #dfdfdf;
    position: relative;
    overflow: visible;
}

.arrow-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, #5d8bb3, transparent);
    background-size: 200% 100%;
    animation: flow-line 2s infinite linear;
}

.arrow-head {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #5d8bb3;
    border-top: 1.5px solid #5d8bb3;
    transform: translateY(-50%) rotate(45deg);
}

.path-arrow-v2.reverse .arrow-line {
    animation-direction: reverse;
}

.path-arrow-v2.reverse .arrow-head {
    right: auto;
    left: -2px;
    transform: translateY(-50%) rotate(-135deg);
}

@keyframes flow-line {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media (max-width: 1150px) {
    .diagram-column {
        flex: 0 0 380px;
    }

    .card-title-jp {
        font-size: 24px;
    }
}

@media (max-width: 960px) {
    .style-diagram-box {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .diagram-column {
        width: 100%;
        max-width: 500px;
        flex: none;
    }

    .diagram-center {
        width: 100%;
        padding: 50px 0;
        /* Expanded from 40px */
    }

    .interaction-path {
        margin: 20px 0;
        /* Add margin to avoid overlap with cards */
    }

    .path-arrow-v2 {
        width: 1.5px;
        height: 120px;
    }

    .arrow-line {
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, transparent, #5d8bb3, transparent);
        background-size: 100% 200%;
        animation: flow-line-v 2s infinite linear;
    }

    .arrow-head {
        left: 50%;
        right: auto;
        bottom: -2px;
        top: auto;
        transform: translateX(-50%) rotate(135deg);
        width: 10px;
        height: 10px;
    }

    .path-arrow-v2.reverse .arrow-head {
        top: -2px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%) rotate(-45deg);
    }

    @keyframes flow-line-v {
        from {
            background-position: 0 200%;
        }

        to {
            background-position: 0 -200%;
        }
    }

}