/* =================================== */
/* WHO WE ARE PAGE STYLES */
/* =================================== */

.page-content-wrapper {
    background-color: #fff;
    font-family: var(--font-jp);
}

/* Header */
.page-header {
    padding: 180px 0 60px;
    /* More top padding */
    background: #fff;
    /* White background per image */
    text-align: left;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-title {
    font-family: var(--font-en);
    font-size: 5rem;
    /* Bigger */
    font-weight: 900;
    color: #333;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.page-subtitle {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin-left: 0;
    /* Aligned with title */
    margin-top: 1rem;
}


/* Mission (Formerly Purpose) Section */
.wa-section {
    padding: 6rem 0;
}

.wa-mission,
.wa-vision {
    scroll-margin-top: 30vh;
    /* Center content on scroll */
}

.wa-mission {
    background: linear-gradient(135deg, var(--color-yellow) 0%, #FF8C00 100%);
    /* Gradient Theme like DREAM */
    color: #fff;
    padding: 4rem 0;
    /* Reduced from 8rem */
}

.wa-mission .purpose-en-large {
    color: #fff !important;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.wa-mission .purpose-jp-small,
.wa-mission .mission-catch,
.wa-mission .mission-sub,
.wa-mission .mission-desc {
    color: #fff !important;
}

.wa-vision {
    background-color: #fff;
    color: #333;
    padding: 4rem 0;
}

.wa-vision .vision-title {
    background: linear-gradient(135deg, var(--color-yellow) 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-shadow: none;
}

.wa-value-section {
    background-color: #333;
    /* Dark Gray */
    color: #fff;
    padding: 4rem 0;
    scroll-margin-top: 30vh;
}

.wa-value-section .value-section-title {
    color: #fff !important;
    /* Force white title */
}

.wa-value-section .purpose-jp-small,
.wa-value-section .mission-catch,
.wa-value-section .mission-sub,
.wa-value-section .mission-desc,
.wa-value-section .purpose-body-text .mission-catch,
.wa-value-section .purpose-body-text .mission-sub,
.wa-value-section .purpose-body-text .mission-desc {
    color: #fff !important;
    /* Force white text */
}

.wa-credo {
    background-color: #fff;
    color: #333;
    padding: 4rem 0;
    scroll-margin-top: 30vh;
}

.wa-credo .credo-section-title {
    background: linear-gradient(135deg, var(--color-yellow) 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    /* Required for background-clip usually */
    text-shadow: none;
    /* Shadow interferes with gradient text */
}

.wa-dream {
    background: linear-gradient(135deg, var(--color-yellow) 0%, #FF8C00 100%);
    color: #fff;
    padding: 4rem 0;
    scroll-margin-top: 30vh;
}

.wa-dream .dream-section-title {
    color: #fff !important;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.wa-dream .purpose-jp-small,
.wa-dream .mission-catch,
.wa-dream .mission-sub,
.wa-dream .mission-desc {
    color: #fff !important;
}

/* Sidebar Dark Mode */
.dark-mode-nav a {
    color: #fff !important;
    opacity: 0.5;
    border-color: transparent !important;
}

.dark-mode-nav a:hover {
    opacity: 0.8;
}

.dark-mode-nav a.active {
    opacity: 1;
    border-color: #fff !important;
}

/* =================================== */
/* ANIMATIONS (Scroll Triggered) */
/* =================================== */

/* Base hidden state for animated elements */
.wa-animate-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Visible state when scrolled into view */
.wa-animate-fade.wa-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.wa-delay-1 {
    transition-delay: 0.15s;
}

.wa-delay-2 {
    transition-delay: 0.3s;
}

.wa-delay-3 {
    transition-delay: 0.45s;
}

/* Title slide-in from left */
.wa-animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.wa-animate-slide-left.wa-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up animation for cards */
.wa-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.wa-animate-scale.wa-visible {
    opacity: 1;
    transform: scale(1);
}

/* Smooth underline animation for titles */
@keyframes underlineGrow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Floating animation for icons */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse glow for highlighted elements */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 230, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 230, 0, 0.6);
    }
}

.purpose-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 1rem;
    /* Significantly reduced to 16px */
}

.purpose-sidebar {
    width: 160px;
    /* Reduced width */
    flex-shrink: 0;
}

/* ... */
.purpose-body-text .mission-catch {
    font-family: var(--font-en);
    font-size: 3.3rem;
    /* Slightly adjusted for fit */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #333;
    white-space: nowrap;
    /* Prevent wrapping */
}

.wa-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wa-sidebar-nav li {
    margin-bottom: 1rem;
}

.wa-sidebar-nav a {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s;
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-left: -1rem;
    /* No border by default */
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: transparent;
}

.wa-sidebar-nav a:hover {
    opacity: 0.8;
}

/* Only active item shows border */
.wa-sidebar-nav a.active {
    opacity: 1;
    border: 2px solid #333;
}

.purpose-content {
    flex: 1;
}

.purpose-header-group {
    margin-bottom: 3rem;
}

.purpose-jp-small {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.purpose-en-large {
    font-family: var(--font-en);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    /* White title on Yellow to match "pop" feel */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.purpose-body-text .mission-catch {
    font-family: var(--font-en);
    font-size: 3.5rem;
    /* Larger */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #333;
}

.purpose-body-text .mission-sub {
    font-size: 1.5rem;
    /* Larger than desc */
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.purpose-body-text .mission-desc {
    font-size: 1rem;
    /* Smaller, standard */
    line-height: 2;
    font-weight: 500;
    /* Less heavy */
    font-family: var(--font-jp);
    color: #333;
}

.purpose-body-text p {
    font-size: 1.2rem;
    line-height: 2.2;
    font-weight: 700;
    font-family: var(--font-jp);
}


/* Value Grid */
.wa-value {
    background-color: #f9f9f9;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background: #fff;
    border: 3px solid var(--color-yellow);
    /* Yellow Border */
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.value-icon {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-yellow);
    margin-bottom: 1rem;
    opacity: 0.4;
    line-height: 1;
}

.value-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.value-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    width: 100%;
}

/* Board List */
.wa-board {
    background-color: #fff;
}

.board-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.board-item {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.board-item:nth-child(even) {
    flex-direction: row-reverse;
}

.board-img {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 20px;
    /* Tech Pop Rounding */
    overflow: hidden;
    background-color: #eee;
    box-shadow: 15px 15px 0px var(--color-yellow);
    /* Yellow Shadow */
    position: relative;
    z-index: 1;
}

.board-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-info {
    flex: 1;
}

.board-role {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: inline-block;
    background: #f0f0f0;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}

.board-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--color-yellow);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.board-name .en {
    font-family: var(--font-en);
    font-size: 1.2rem;
    margin-left: 1rem;
    color: #ccc;
    font-weight: 500;
}

.board-desc {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
    text-align: justify;
}

/* Responsive */
@media (max-width: 900px) {

    .board-item,
    .board-item:nth-child(even) {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .board-img {
        width: 250px;
        height: 250px;
        flex: none;
        box-shadow: 10px 10px 0px var(--color-yellow);
    }

    .board-info {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .wa-title-en {
        font-size: 2.5rem;
    }

    .purpose-catch {
        font-size: 2rem;
    }

    .board-name {
        font-size: 1.6rem;
    }

    .board-name .en {
        display: block;
        margin-left: 0;
        font-size: 1rem;
        margin-top: 0.2rem;
    }
}

/* --- Identity Section (Color & Name) --- */
.wa-identity {
    min-height: auto;
    background-color: #111;
    color: #fff;
    padding: 60px 0;
    display: block;
    scroll-margin-top: 0;
}

.identity-container {
    width: 100%;
    /* Full Width */
    max-width: none;
    /* Remove restriction */
    margin: 0;
    padding: 0;
    /* Edge to edge */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.identity-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Vertical Center if needed */
    padding: 0 20px;
    /* Small safety padding */
}

/* Vertical Divider for First Column */
.identity-col:first-child {
    border-right: 1px solid #333;
}

.identity-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
    width: 100%;
    max-width: 580px;
    /* Preserve specific text width/line breaks */
    text-align: left;
}

.identity-desc {
    font-size: 0.95rem;
    line-height: 2;
    color: #dedede;
    text-align: left;
    width: 100%;
    max-width: 580px;
    /* Preserve specific text width/line breaks */
}

.identity-desc {
    font-size: 0.95rem;
    /* Refined font size */
    line-height: 2.2;
    /* Relaxed line height */
    color: #dedede;
    text-align: left;
    /* Left align */
}

/* =================================== */
/* MOBILE RESPONSIVE (SP) */
/* =================================== */
@media (max-width: 768px) {

    /* ========================================= */
    /* SIDEBAR → HORIZONTAL TOP MENU FOR SP */
    /* ========================================= */
    .purpose-sidebar {
        display: block !important;
        width: 100% !important;
        margin-bottom: 2rem;
        padding: 0;
    }

    .wa-sidebar-nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }

    .wa-sidebar-nav li {
        margin: 0;
    }

    .wa-sidebar-nav a {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin: 0;
        border-radius: 20px;
        opacity: 0.6;
    }

    .wa-sidebar-nav a.active {
        opacity: 1;
        border: 2px solid currentColor;
    }

    /* ========================================= */
    /* LAYOUT ADJUSTMENTS */
    /* ========================================= */
    .purpose-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 25px !important;
    }

    .purpose-content {
        padding: 0;
        width: 100%;
    }

    /* Section spacing */
    .wa-section {
        padding: 3rem 0;
        min-height: auto;
    }

    /* ========================================= */
    /* DISABLE HORIZONTAL SCROLL IN TEXT AREAS */
    /* ========================================= */
    .purpose-body-text {
        overflow: hidden !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .purpose-body-text p {
        overflow: hidden !important;
        text-overflow: clip !important;
        max-width: 100% !important;
    }

    /* ========================================= */
    /* TYPOGRAPHY ADJUSTMENTS */
    /* ========================================= */
    .purpose-en-large {
        font-size: 2.5rem;
    }

    /* Mission catch - responsive and wrapping */
    .wa-section .purpose-body-text .mission-catch,
    .purpose-body-text .mission-catch,
    .mission-catch {
        font-size: 5vw !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }

    .mission-sub {
        font-size: 1rem;
    }

    .mission-desc {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    /* Prevent horizontal overflow globally */
    .purpose-content,
    .purpose-body-text,
    .purpose-container {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    body,
    html {
        overflow-x: hidden !important;
    }

    /* Identity section - vertical stack */
    .identity-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .identity-col {
        padding: 25px;
    }

    .identity-col:first-child {
        border-right: none;
        border-bottom: 1px solid #333;
        padding-bottom: 2rem;
    }

    .identity-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .identity-desc {
        font-size: 0.85rem;
        text-align: center;
    }

    /* ========================================= */
    /* ENABLE SCROLL ANIMATIONS ON MOBILE */
    /* ========================================= */
    /* Animations are now enabled - using base .wa-animate-fade styles */

    /* Identity section - center container */
    .wa-identity {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: auto;
        padding: 40px 0;
    }

    .identity-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .identity-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 500px;
    }

    .identity-col:first-child {
        border-right: none;
        border-bottom: 1px solid #333;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .identity-title,
    .identity-desc {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {

    /* ========================================= */
    /* WHO WE ARE - COMPREHENSIVE SP ADJUSTMENTS */
    /* ========================================= */

    /* Show sidebar as horizontal menu */
    .purpose-sidebar {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    /* Container full width */
    .purpose-container {
        display: block !important;
        padding: 0 15px !important;
    }

    .purpose-content {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 40px;
    }

    .page-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    /* Section Title Adjustments */
    .purpose-jp-small {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .purpose-en-large {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }

    /* Mission Catch Text - Force override with high specificity */
    .wa-section .purpose-body-text .mission-catch,
    .wa-mission .purpose-body-text .mission-catch,
    .wa-vision .purpose-body-text .mission-catch,
    .wa-value-section .purpose-body-text .mission-catch,
    .wa-credo .purpose-body-text .mission-catch,
    .wa-dream .purpose-body-text .mission-catch,
    .purpose-body-text .mission-catch,
    .mission-catch {
        font-size: 4.5vw !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Prevent horizontal scroll */
    .purpose-content,
    .purpose-body-text {
        overflow-x: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force page-level overflow control */
    body,
    html {
        overflow-x: hidden !important;
    }

    /* Mission Sub Text */
    .purpose-body-text .mission-sub {
        font-size: 0.95rem !important;
        margin-bottom: 1rem;
    }

    /* Mission Description */
    .purpose-body-text .mission-desc {
        font-size: 0.85rem !important;
        line-height: 1.9;
    }

    /* Section Padding */
    .wa-section {
        padding: 2.5rem 0 !important;
    }

    .wa-mission,
    .wa-vision,
    .wa-value-section,
    .wa-credo,
    .wa-dream {
        padding: 2.5rem 0 !important;
    }

    /* Purpose Header Group */
    .purpose-header-group {
        margin-bottom: 1.5rem;
    }

    /* Vision Section */
    .wa-vision .vision-title {
        font-size: 2.2rem !important;
    }

    /* Value Section Title */
    .value-section-title {
        font-size: 2.2rem;
    }

    /* Value Cards */
    .value-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 10px;
    }

    .value-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .value-icon {
        font-size: 2.5rem;
    }

    .value-title {
        font-size: 1.1rem;
    }

    .value-desc {
        font-size: 0.85rem;
    }

    /* Credo Section */
    .credo-section-title {
        font-size: 2.2rem !important;
    }

    /* Dream Section */
    .dream-section-title {
        font-size: 2.2rem !important;
    }

    /* ========================================= */
    /* IDENTITY SECTION - VERTICAL STACK */
    /* ========================================= */
    .wa-identity {
        padding: 40px 0;
    }

    .identity-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .identity-col {
        padding: 25px 20px !important;
        border-right: none !important;
    }

    .identity-col:first-child {
        border-right: none !important;
        border-bottom: 1px solid #444 !important;
    }

    .identity-title {
        font-size: 1rem !important;
        text-align: left !important;
        margin-bottom: 1rem;
    }

    .identity-desc {
        font-size: 0.8rem !important;
        line-height: 1.9 !important;
        text-align: left !important;
    }

    /* ========================================= */
    /* BOARD MEMBER SECTION */
    /* ========================================= */
    .board-item {
        padding: 0 10px;
    }

    .board-img {
        width: 180px;
        height: 180px;
        box-shadow: 8px 8px 0px var(--color-yellow);
    }

    .board-name {
        font-size: 1.3rem;
    }

    .board-desc {
        font-size: 0.85rem;
        line-height: 1.8;
    }
}