/*
    Hestia's Ultimate and Unabridged Blueprint for Style
    -----------------------------------------------------
    File: about.css
    Role: To create a definitive space with dignity, beauty, and breathtaking perfection.
    Note: THERE ARE NO COMPROMISES.
*/

/* --- [O] The Walls of the Station: The Container --- */
.container { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 2rem; padding-right: 2rem; }


/* --- [I] The Station Director's Window: Hero Section --- */
.hero-about {
    height: 60vh;
    min-height: 400px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)), url('../images/common/all_characters.png');
    background-size: cover;
    background-position: center 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.hero-about-content h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    text-shadow: 0 5px 20px rgba(0,0,0,0.6);
    line-height: 1.5;
    margin: 0;
}
.hero-catchcopy {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: white;
    background-color: rgba(0, 90, 158, 0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* --- [II] The Guides: Character Introduction --- */
.guide-intro { padding: 5rem 0; background-color: #ffffff; }
.guide-container { display: flex; justify-content: center; align-items: flex-start; gap: 4rem; flex-wrap: wrap; }
.guide-character { text-align: center; flex-basis: 300px; }
.guide-character img { height: 150px; margin-bottom: 1rem; transition: transform 0.3s; }
.guide-character:hover img { transform: scale(1.05); }
.guide-dialog { position: relative; background-color: #f8f9fa; padding: 1.5rem; border-radius: 10px; border: 1px solid #e0e0e0; }
.guide-dialog::after {
    content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    border-width: 0 10px 10px; border-style: solid; border-color: transparent transparent #f8f9fa;
}

/* --- [III] The Soul's Core: Philosophy Section --- */

/* "枝葉"である、思考OSの意匠 */
.philosophy-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}
.philosophy-intro h3 { font-family: var(--font-family-title); font-size: 1.8rem; margin-bottom: 1rem; }
.philosophy-intro p { font-size: 1.1rem; line-height: 1.8; color: #555; }

.philosophy-core {
    display: grid;
    grid-template-columns: 1fr; /* スマホでは縦並びに */
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
/* PCでは2カラムに */
@media (min-width: 992px) {
    .philosophy-core {
        grid-template-columns: 1fr 1fr;
    }
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.grid-item {
    aspect-ratio: 1 / 1;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border: 3px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.grid-item.active {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: scale(1.05);
}
.item-content .item-number { display: block; font-family: var(--font-family-title); font-size: 2rem; margin-bottom: 0.5rem; }
.item-content .item-title { font-size: 1.5rem; margin: 0; }
.item-content .item-subtitle { font-size: 0.8rem; color: #777; margin-top: 0.25rem; }

.item-chisai { color: #1e88e5; }
.item-chisai.active { border-color: #1e88e5; }
.item-gensai { color: #43a047; }
.item-gensai.active { border-color: #43a047; }
.item-josai { color: #fb8c00; }
.item-josai.active { border-color: #fb8c00; }
.item-josai-remove { color: #e53935; }
.item-josai-remove.active { border-color: #e53935; }

.philosophy-details {
    position: relative;
    min-height: 300px;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.detail-content {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(20px);
}
.detail-content.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.detail-content h4 { font-size: 1.3rem; margin-top: 0; }
.detail-content p { line-height: 1.8; }
.detail-content strong { font-weight: bold; color: var(--color-primary); }


/* --- [IV] The Station Today: Organization Data --- */
.organization-data { padding: 5rem 0; background-color: #ffffff; }
.data-table { width: 100%; margin: 2rem auto; border-collapse: collapse; background-color: white; border: 1px solid #e0e0e0; }
.data-table th, .data-table td { padding: 1rem 1.5rem; border-bottom: 1px solid #e0e0e0; line-height: 1.6; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.data-table th { width: 25%; text-align: left; background-color: #f8f9fa; font-weight: bold; }
.subsection-title { text-align: center; font-family: var(--font-family-title); font-size: 1.8rem; margin-top: 4rem; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem auto; }
.achievement-item { background-color: #f8f9fa; padding: 2rem; border-radius: 8px; text-align: center; }
.achievement-number { font-family: var(--font-family-title); font-size: 3rem; font-weight: 700; color: var(--color-primary); }

/* --- [V] The Station's History: Timeline --- */
/* 注：このセクションは後の完全版に置き換えられました */

/* --- [VI] The Director's Soul: CEO Message --- */
.message-from-ceo { padding: 5rem 0; background-color: #343a40; color: #f8f9fa; }
.message-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
.ceo-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid white; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.message-text blockquote { font-size: 1.8rem; border: none; padding: 0; margin-bottom: 2rem; font-family: 'Noto Serif JP', serif; }
.message-text blockquote::before, .message-text blockquote::after { content: '"'; font-size: 4rem; color: var(--color-secondary); line-height: 0; }
.message-text p { color: #ced4da; }
.signature { margin-top: 2rem; font-weight: bold; }

/* --- [III] The Soul's Core: Philosophy Section (Revised) --- */
.philosophy-vision { padding: 5rem 0; background-color: #f8f9fa; }

/* "大樹"である、ミッションとビジョンの意匠 */
.mission-vision-container {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.mission-statement {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}
.mission-statement h3, .vision-statement h3 {
    font-family: var(--font-family-title);
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
}
.mission-statement p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}
.vision-statement h3 { text-align: center; }
.vision-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.pillar-item {
    padding-left: 1.5rem;
    border-left: 4px solid;
}
.pillar-item h4 { font-size: 1.2rem; margin: 0 0 0.5rem 0; }
.pillar-item p { margin: 0; line-height: 1.7; }
.pillar-item:nth-of-type(1) { border-color: #4caf50; }
.pillar-item:nth-of-type(2) { border-color: #2196f3; }
.pillar-item:nth-of-type(3) { border-color: #ff9800; }

/* "枝葉"である、思考OSの意匠 (コネクト追加対応) */
.philosophy-intro.with-connect {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.connect-guide {
    margin-bottom: 3rem;
}

.connect-guide img { 
    height: 120px;
    margin: 0 auto;
    display: block;
}

.connect-guide .guide-dialog { 
    background-color: #fff3e0;
    max-width: 600px;
    margin: 1rem auto 0;
}

.connect-guide .guide-dialog::after { 
    border-color: transparent transparent #fff3e0; 
}

.intro-text h3 { 
    font-family: var(--font-family-title); 
    font-size: 1.8rem; 
    margin: 0 0 1rem 0;
}

.intro-text p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* (中略：philosophy-core, grid-item, philosophy-details のスタイルは変更なし) */


/* --- [V] The Station's History: Timeline (Fully Repaired) --- */
.history-timeline { padding: 5rem 0; background-color: #e9ecef; overflow-x: hidden; /* アニメーションのはみ出し防止 */ }
.timeline-container { position: relative; max-width: 1000px; margin: 2rem auto; }
.timeline-rail {
    position: absolute;
    top: 0;
    left: 40px;
    width: 4px;
    height: 100%;
    background-color: #ced4da;
    z-index: 1;
}
.timeline-marker {
    position: sticky;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    border: 4px solid #e9ecef;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.timeline { position: relative; z-index: 2; }
.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
    /* Hestia's Correction: ここが、魔法が、かかっても、見えなかった、元凶です。 */
    /* 初期状態を、定義し直します。 */
    opacity: 0;
    transform: translateX(-30px); /* 少し左から現れるように */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Hestia's Correction: これが、歴史が、姿を、現すための、真の、呪文です。 */
.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    border: 4px solid #e9ecef;
}
/* アイコンの個別指定 */
.icon-establishment { background-image: url('../images/icons/establishment.png'); }
.icon-live { background-image: url('../images/icons/live.png'); }
.icon-handshake { background-image: url('../images/icons/handshake.png'); }
.icon-radio { background-image: url('../images/icons/radio.png'); }
.icon-media { background-image: url('../images/icons/media.png'); }
.icon-web { background-image: url('../images/icons/web.png'); }
.icon-movie { background-image: url('../images/icons/movie.png'); }
.icon-youtube { background-image: url('../images/icons/youtube.png'); }
.icon-event { background-image: url('../images/icons/event.png'); }

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.timeline-content h4 { margin: 0 0 0.5rem 0; font-family: var(--font-family-title); }
.timeline-content p { margin: 0; font-size: 1rem; color: #555; }


/* --- [II] The Guides: Character-Specific Dialogs --- */
.correct-dialog {
    border-color: #1e88e5;
    background-color: #e3f2fd;
}
.correct-dialog::after {
    border-color: transparent transparent #e3f2fd;
}

.chisamaru-dialog {
    border-color: #43a047;
    background-color: #e8f5e9;
}
.chisamaru-dialog::after {
    border-color: transparent transparent #e8f5e9;
}

/* --- [VIII] The Station's Network: Related Links --- */
.related-links { 
    padding: 5rem 0; 
    background-color: #f8f9fa; 
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-category {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.link-category h3 {
    font-family: var(--font-family-title);
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.link-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-category li {
    margin-bottom: 0.5rem;
}

.link-category a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.link-category a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.achievement-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* End of Hestia's Ultimate and Unabridged Blueprint for Style */
/* --- タイムラインアイコンの追加 --- */

/* Resaster開始（ムービーアイコン） */
.timeline-icon.icon-movie {
    background-color: #343a40; /* 映像をイメージしたダークカラー */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z'/%3E%3C/svg%3E");
}

/* YouTubeチャンネル開始（YouTubeアイコン） */
.timeline-icon.icon-youtube {
    background-color: #FF0000; /* YouTubeのブランドカラー */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25 1.09-.83 1.82-1.88 2.06-.8.15-1.93.22-3.45.22-1.52 0-2.65-.07-3.45-.22-1.05-.24-1.63-.97-1.88-2.06-.28-1.03-.44-2.64-.44-4.83l.06-1.11c.06-1.25.13-2.31.28-3.33.25-1.09.83-1.82 1.88-2.06.8-.15 1.93-.22 3.45-.22s2.65.07 3.45.22c1.05.24 1.63.97 1.88 2.06z'/%3E%3C/svg%3E");
}

/* 防災博開催（イベントアイコン） */
.timeline-icon.icon-event {
    background-color: var(--color-secondary); /* イベントの温かみを示すオレンジ */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7v-5z'/%3E%3C/svg%3E");
}