/* Modern Company Page Styles */

/* --- 1. Hero Enhancements --- */
.sub-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* iOS Safari does not support background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
    .sub-hero {
        background-attachment: scroll;
    }
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 153, 219, 0.5), rgba(16, 185, 129, 0.4));
    z-index: 1;
}

.sub-hero .container {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.sub-hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.sub-hero-en {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}

.sub-hero p {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* --- 2. Mission & Vision Cards (About Grid) --- */
.about-magazine {
    position: relative;
    padding: 170px 0;
    background: var(--color-white);
    overflow: hidden;
}

/*.about-magazine::before {
    content: "PHILOSOPHY";
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inter Black", "Arial Black", "Inter", sans-serif;
    font-size: clamp(6rem, 18vw, 16rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}*/

.about-magazine .container {
    position: relative;
    z-index: 1;
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.about-kicker {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 600;
}

.about-kicker-line {
    display: inline-block;
    width: 72px;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.about-title {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin: 0;
}

.about-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-bottom: 48px;
}

.about-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.1fr;
    gap: 40px 48px;
    align-items: start;
}

.about-entry {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.about-entry--wide {
    grid-column: span 2;
}

.about-entry--narrow {
    grid-column: span 1;
}

.about-entry h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--color-text-main);
}

.about-entry p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-light);
    margin: 0;
}

.about-highlight {
    display: inline;
    padding: 0 6px;
    background-image: none;
}

/* --- Magazine Section System --- */
.mag-section {
    position: relative;
    padding: 170px 0;
    background: var(--color-white);
    overflow: hidden;
}

.mag-section::before {
    content: attr(data-bg);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inter Black", "Arial Black", "Inter", sans-serif;
    font-size: clamp(5.5rem, 18vw, 14rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.mag-section .container {
    position: relative;
    z-index: 1;
}

.mag-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.mag-kicker {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 600;
}

.mag-kicker-line {
    display: inline-block;
    width: 72px;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.mag-title {
    font-size: clamp(2.6rem, 4.8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin: 0;
}

.mag-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-main);
    margin: 0 0 24px;
}

.mag-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-bottom: 48px;
}

.greeting-mag .message-block {
    background: transparent;
    box-shadow: none;
    border: none;
    margin-bottom: 90px;
}

.greeting-mag .message-block+.message-block {
    border-top: none;
    padding-top: 0;
    margin-top: 90px;
}

.greeting-mag .message-media img {
    box-shadow: none;
}

.greeting-mag .message-quote {
    border-left: none;
    padding-left: 0;
}

.greeting-mag .message-photo {
    border: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
}

.profile-mag .company-dl {
    background: transparent;
    box-shadow: none;
    border: none;
}

.profile-mag .company-dl dt,
.profile-mag .company-dl dd {
    border-bottom: none;
    padding: 12px 0;
}

.profile-mag .company-dl dt {
    width: auto;
    background: transparent;
    color: var(--color-text-light);
    padding-right: 24px;
}

.profile-mag .company-dl dd {
    color: var(--color-text-main);
    font-weight: 500;
}

.profile-mag .timeline {
    max-width: none;
    margin: 0;
    padding: 0;
}

.profile-mag .timeline::before {
    background: rgba(0, 0, 0, 0.08);
}

.profile-mag .timeline-marker {
    border: none;
    background: rgba(0, 0, 0, 0.2);
}

.profile-mag .timeline-item:hover .timeline-marker {
    background: var(--color-white);
    transform: none;
}

.profile-mag .timeline-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.profile-mag .timeline-item:hover .timeline-content {
    border-color: transparent;
    box-shadow: none;
}

.policy-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}

.policy-block {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.policy-signature,
.policy-date {
    margin-top: 20px;
    text-align: right;
    color: var(--color-text-light);
}

.policy-details-container {
    margin-top: 60px;
}

.policy-toggle-btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    color: var(--color-text-main);
}

.policy-toggle-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.policy-toggle-icon {
    font-size: 1.5rem;
}

.policy-details {
    display: none;
    padding: 24px 0 0;
    border: none;
    background: transparent;
}

.policy-details p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.policy-section {
    margin-top: 24px;
}

.policy-section-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.policy-section-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin: 0;
}

.policy-section-text--spaced {
    margin-top: 10px;
}

.policy-section-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.about-item {
    background: var(--card-bg, var(--color-white));
    border: 1px solid var(--card-border, var(--color-border));
    padding: 68px 32px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Line icon at top center */
.about-item::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translateX(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
    background-image: var(--card-icon);
}

/* Specific colors + icons for cards */
.about-item:nth-child(1) {
    --card-border: rgba(244, 63, 94, 0.45);
    --card-bg: rgba(244, 63, 94, 0.08);
    --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F43F5E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.9 6.1 6.7.9-4.9 4.6 1.2 6.6L12 17l-5.9 3.2 1.2-6.6L2.4 9l6.7-.9z'/%3E%3C/svg%3E");
}

.about-item:nth-child(2) {
    --card-border: rgba(0, 153, 219, 0.45);
    --card-bg: rgba(0, 153, 219, 0.08);
    --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099DB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
}

.about-item:nth-child(3) {
    --card-border: rgba(16, 185, 129, 0.45);
    --card-bg: rgba(16, 185, 129, 0.08);
    --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='12' rx='2' ry='2'/%3E%3Cpath d='M8 7V5h8v2'/%3E%3Cpath d='M12 11v3'/%3E%3C/svg%3E");
}

.about-item:nth-child(4) {
    --card-border: rgba(139, 92, 246, 0.45);
    --card-bg: rgba(139, 92, 246, 0.08);
    --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5CF6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M12 19v3'/%3E%3Cpath d='M2 12h3'/%3E%3Cpath d='M19 12h3'/%3E%3C/svg%3E");
}

.about-item:nth-child(5) {
    --card-border: rgba(245, 158, 11, 0.45);
    --card-bg: rgba(245, 158, 11, 0.08);
    --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-6 11-6 11 6 11 6-4 6-11 6S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.about-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-main);
    /* Reset text color */
    position: relative;
    padding-bottom: 15px;
}

.about-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--card-border, currentColor);
    /* Match card accent */
    border-radius: 2px;
}

.about-item p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

/* --- 3. Modern Company Overview (Description List) --- */
.company-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    border-top: 1px solid var(--color-border);
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.company-dl dt,
.company-dl dd {
    padding: 24px 32px;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
}

.company-dl dt {
    font-weight: 600;
    color: var(--color-text-light);
    background-color: var(--color-bg-light);
    width: 240px;
    /* Fixed width for labels */
    display: flex;
    align-items: center;
}

.company-dl dd {
    color: var(--color-text-main);
    font-weight: 500;
}

@media (max-width: 768px) {
    .company-dl {
        grid-template-columns: 1fr;
    }

    .company-dl dt {
        width: 100%;
        padding-bottom: 8px;
        border-bottom: none;
        background-color: var(--color-white);
        color: var(--color-primary);
        font-size: 0.9rem;
        padding-top: 24px;
    }

    .company-dl dd {
        padding-top: 0;
        padding-left: 32px;
        padding-right: 32px;
        color: var(--color-text-main);
    }
}

/* --- 4. Vertical Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 32px;
}

.timeline-marker {
    position: absolute;
    left: 17px;
    /* (24px line + 2px width)/2 - (16px marker)/2 + adjustment */
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--color-primary);
    transform: scale(1.2);
}

.timeline-date {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: var(--font-number, sans-serif);
}

.timeline-content {
    background: var(--color-white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

/* --- 5. CEO Message (Magazine Style) --- */
.message-block {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
    background: var(--color-white);
    padding: 0;
    /* Remove default padding from previous usage if any */
    border-radius: 0;
    box-shadow: none;
}

.message-block+.message-block {
    margin-top: 80px;
    border-top: 1px solid var(--color-border);
    padding-top: 80px;
}

.message-media {
    flex: 0 0 350px;
    position: relative;
}

.message-media img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: auto;
    filter: brightness(1.02) contrast(1.05);
}

.message-body {
    flex: 1;
}

.message-role {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.message-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* Highlight Quote */
.message-quote {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 32px;
    padding-left: 24px;
    border-left: 4px solid var(--color-accent);
    line-height: 1.6;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.message-text {
    line-height: 2;
    color: var(--color-text-main);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.message-note {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 0 0 24px;
}

.message-signature {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 40px;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

@media (max-width: 900px) {
    .message-block {
        flex-direction: column;
    }

    .message-media {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 40px;
    }
}

@media (max-width: 900px) {
    .mag-section {
        padding: 130px 0;
    }

    .mag-section::before {
        font-size: clamp(4rem, 22vw, 9rem);
        top: 20px;
    }

    .profile-grid,
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .profile-mag .company-dl dt,
    .profile-mag .company-dl dd {
        padding: 10px 0;
    }
}

/* --- Reveal Helper (if not in modern-theme) --- */
.reveal,
.reveal-left,
.reveal-right {
    will-change: transform, opacity;
}

/* --- Smooth Transition for Policy Details --- */
#policyDetails {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
}

#policyDetails.active {
    max-height: 2000px;
    /* Large enough for content */
    opacity: 1;
}

@media (max-width: 768px) {
    .about-magazine {
        padding: 130px 0;
    }

    .about-magazine::before {
        font-size: clamp(4rem, 24vw, 10rem);
        top: 20px;
    }

    .about-columns {
        grid-template-columns: 1fr;
    }

    .about-entry--wide,
    .about-entry--narrow {
        grid-column: span 1;
    }
}