@charset "UTF-8";

        /* --- Base Settings --- */
        :root {
            --bg-color: #050505;
            --text-color: #e0e0e0;
            --accent-color: #00ff41; /* Terminal Green */
            --accent-sub: #008f11;
            --white-doc: #f5f5f5;
            --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
            --font-mono: "Courier New", Courier, monospace;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: var(--font-main);
            line-height: 1.6;
            overflow-x: hidden;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        /* --- Animations Utility Classes --- */
        .fade-in-section {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            will-change: opacity, visibility;
        }
        .fade-in-section.is-visible {
            opacity: 1;
            transform: none;
        }

        /* --- Hero Section with Matrix Effect --- */
        .hero {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        /* Matrix Canvas */
        #matrix-canvas {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 1;
            opacity: 0.15; /* コードの薄さ */
        }

        .hero-content {
            position: relative;
            z-index: 10;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 900;
            margin-bottom: 1.5rem;
            text-shadow: 0 0 10px rgba(0,255,65,0.8);
            min-height: 1.2em; /* ガタつき防止 */
        }
.hero .school-name {
            display: block; /* ブロック要素にして改行 */
            font-size: 1.1rem;
            font-weight: bold;
            color: #e0e0e0;
            letter-spacing: 0.2em;
            margin-top: 40px; /* 日付との余白 */
            opacity: 0;
            animation: fadeIn 1s ease 0.5s forwards; /* 最初にフェードイン */
            position: relative;
        }
        
        /* 学校名の下に少し装飾線を入れる（任意） */
        .hero .school-name::after {
            content: '';
            display: block;
            width: 60px;
            height: 1px;
            background: var(--accent-color);
            margin: 8px auto 0;
            opacity: 0.7;
        }
.hero .sub-copy {
            /* ベース設定 */
            font-size: clamp(1.2rem, 4vw, 2rem); /* スマホでも崩れない可変サイズ */
            font-family: var(--font-main); /* 読みやすさ優先でゴシック体へ */
            font-weight: 900; /* 極太 */
            letter-spacing: 0.05em;
            
            /* 色と背景の反転 */
            color: #000; /* 文字は黒 */
            background-color: var(--accent-color); /* 背景を蛍光緑に */
            padding: 10px 30px; /* 余白を持たせる */
            
            /* 配置と装飾 */
            display: inline-block;
            margin-bottom: 2rem;
            transform: skew(-10deg); /* 少し斜めに歪ませてスピード感を出す */
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.6); /* 緑の光を放つ */

            /* アニメーション（既存のものを維持） */
            opacity: 0;
            animation: fadeIn 1s ease 2s forwards, pulse-bg 2s infinite alternate;
        }

        /* 文字の傾きを戻して読みやすくする（これを入れるとかっこいい） */
        .hero .sub-copy span { 
            display: inline-block;
            transform: skew(10deg); 
        }

        /* 明滅アニメーションの追加 */
        @keyframes pulse-bg {
            from { box-shadow: 0 0 10px rgba(0, 255, 65, 0.4); }
            to { box-shadow: 0 0 30px rgba(0, 255, 65, 0.9); }
        }
                       
        .hero .date {
            font-size: 1rem;
            border: 0px solid var(--accent-color);
            padding: 5px 15px;
            margin-bottom: 3rem;
            display: inline-block;
            background: rgba(0,0,0,0.7);
            opacity: 0;
            animation: fadeIn 1s ease 1.5s forwards;
        }

        /* Typing Cursor */
        .typing-cursor {
            display: inline-block;
            width: 15px;
            height: 1em;
            background-color: var(--accent-color);
            vertical-align: sub;
            animation: blink 0.8s infinite;
        }

        /* Glitch Button */
        .btn-cta {
            position: relative;
            background-color: transparent;
            color: var(--accent-color);
            padding: 15px 40px;
            font-size: 1.1rem;
            /* font-weight: bold; */
            border: 1px solid var(--accent-color);
            border-radius: 0; /* 角張らせる */
            transition: all 0.3s;
            display: inline-block;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 2px;
            opacity: 0;
            animation: fadeIn 1s ease 2.5s forwards;
        }

        .btn-cta:hover {
            background-color: var(--accent-color);
            color: #009921;
            box-shadow: 0 0 30px var(--accent-color);
        }
        
        .btn-cta2 {
            /*position: relative;*/
            background-color: transparent;
            color: var(--accent-color);
            margin:10px auto;
            padding: 15px 40px;
            font-size: 1.0rem;
            /* font-weight: bold; */
            /*border: 2px solid var(--accent-color);
            border-radius: 0;  */
            transition: all 0.3s;
            display: block;
            overflow: hidden;
            /* text-transform: uppercase; */
            letter-spacing: 2px;
            opacity: 0;
            animation: fadeIn 1s ease 3.0s forwards;
        }

        .btn-cta2 #ev:hover {
            /*background-color: var(--accent-color);*/
            color: #aaffaa;
            text-shadow: 0 0 10px var(--accent-color);
            text-decoration:underline;
        }
        
        .btn-cta2::after {
            content: "  Now！！";
            /*position: absolute;*/
            top: 20px; right: 20px;
            color: #ff4444;
            font-size: 0.8rem;
            animation: blink 1s infinite;
            font-family: var(--font-mono);
        }


/* --- Global Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Subtle Terminal Navigation --- */
.terminal-nav {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    mix-blend-mode: difference; /* 背景が白でも黒でも見えるように反転 */
}

.terminal-nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.terminal-nav a {
    color: #888; /* 通常時は目立たないグレー */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
    font-weight: bold;
}

/* ホバー時の演出： [] で囲まれる */
.terminal-nav a::before {
    content: '[';
    position: absolute;
    left: -10px;
    opacity: 0;
    color: var(--accent-color);
    transition: 0.3s;
}

.terminal-nav a::after {
    content: ']';
    position: absolute;
    right: -10px;
    opacity: 0;
    color: var(--accent-color);
    transition: 0.3s;
}

.terminal-nav a:hover {
    color: #fff; /* ホバー時は白く光る */
    text-shadow: 0 0 5px var(--accent-color);
}

.terminal-nav a:hover::before,
.terminal-nav a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* --- Mobile Adjustment --- */
@media (max-width: 768px) {
    .terminal-nav {
        top: auto;
        bottom: 0; /* スマホでは下部に固定 */
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9); /* 背景をつけて読みやすく */
        padding: 15px 0;
        border-top: 1px solid #333;
        mix-blend-mode: normal;
    }

    .terminal-nav ul {
        justify-content: center;
        gap: 15px;
        font-size: 0.7rem;
    }
    
    /* スマホでは []演出は狭くなるので非表示にするか調整 */
    .terminal-nav a:hover::before, .terminal-nav a:hover::after {
        content: none; 
    }
    .terminal-nav a:hover {
        color: var(--accent-color);
    }
}


        /* --- Section Titles --- */
        .section-title {
            font-size: 2rem;
            text-align: center;
            margin-bottom: 4rem;
            font-weight: bold;
            letter-spacing: 0.1em;
            color: #fff;
            position: relative;
            display: inline-block;
            width: 100%;
        }
        
        .section-title span {
            border-bottom: 3px solid var(--accent-color);
            padding-bottom: 10px;
            display: inline-block;
        }

        /* --- The Origin (Word Doc) --- */
        .origin {
            padding: 100px 0;
            background-color: #0a0a0a;
            position: relative;
        }
/* --- Editor Window Style (Manifesto) --- */
        .editor-container {
            max-width: 800px;
            margin: 0 auto;
            background-color: #1e1e1e; /* VS Code Dark */
            border-radius: 8px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px #333;
            overflow: hidden;
            font-family: "Menlo", "Consolas", "Monaco", monospace;
            text-align: left;
            position: relative;
        }

        /* ウィンドウ上部のバー */
        .editor-header {
            background-color: #252526;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #333;
        }

        .window-controls {
            display: flex;
            gap: 8px;
            margin-right: 20px;
        }
        .control { width: 12px; height: 12px; border-radius: 50%; }
        .control.close { background-color: #ff5f56; }
        .control.min { background-color: #ffbd2e; }
        .control.max { background-color: #27c93f; }

        .file-name {
            color: #ccc;
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* エディタ本文エリア */
        .editor-body {
            padding: 20px;
            color: #d4d4d4; /* Default text color */
            font-size: 0.95rem;
            line-height: 1.8;
            overflow-x: auto;
            display: flex;
        }

        /* 行番号 */
        .line-numbers {
            color: #858585;
            text-align: right;
            padding-right: 20px;
            user-select: none;
            border-right: 1px solid #333;
            margin-right: 20px;
            font-size: 0.9rem;
            line-height: 1.8; /* 本文と合わせる */
        }

        /* 本文のシンタックスハイライト風装飾 */
        .code-content {
            white-space: pre-wrap; /* 折り返しあり */
        }
        .comment { color: #6a9955; } /* 緑色のコメント */
        .keyword { color: #c586c0; } /* 紫色のキーワード */
        .string { color: #ce9178; }  /* 茶色の文字列 */
        .function { color: #dcdcaa; } /* 黄色の関数名 */
        
        /* カーソル点滅 */
        .cursor {
            display: inline-block;
            width: 8px;
            height: 18px;
            background-color: #d4d4d4;
            animation: blink 1s step-end infinite;
            vertical-align: text-bottom;
        }

        /* --- 5 Points --- */
        .points { padding: 100px 0; }
        .points-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .point-card {
            border: 1px solid #333;
            background: #111;
            padding: 30px;
            transition: 0.4s;
            position: relative;
            overflow: hidden;
        }

        .point-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 3px; height: 100%;
            background: var(--accent-color);
            transform: scaleY(0);
            transition: transform 0.4s;
            transform-origin: bottom;
        }

        .point-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        
        .point-card:hover::before {
            transform: scaleY(1);
        }

        .point-num {
            font-family: var(--font-mono);
            color: var(--accent-color);
            font-size: 1.5rem;
            margin-bottom: 10px;
            display: block;
        }
        .point-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; color: #fff; }
        .point-card.extra { grid-column: 1 / -1; border: 1px dashed var(--accent-color); text-align: center; }


        /* --- Mentors --- */
        .mentors { padding: 100px 0; background: #080808; }
        .mentor-flex { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }
        .mentor-profile { flex: 1; min-width: 300px; text-align: center; }
        .mentor-img,#mu {
            width: 150px; height: 150px; border-radius: 50%;
            background-color: #222; margin: 0 auto 20px;
            background-image:url(m.jpg);
            background-size: cover;
    height: 200px;
    width: 200px;
            border: 2px solid var(--accent-color);
            display: flex; align-items: center; justify-content: center;
            color: #666; position: relative;
            transition: 0.3s;
        }

        .mentor-img,#ay {
            width: 150px; height: 150px; border-radius: 50%;
            background-color: #222; margin: 0 auto 20px;
            background-image:url(a.jpg);
            background-size: cover;
   			height: 200px;
   			width: 200px;
            border: 2px solid var(--accent-color);
            display: flex; align-items: center; justify-content: center;
            color: #666; position: relative;
            transition: 0.3s;
        }
 
         
        .mentor-profile:hover .mentor-img {
            box-shadow: 0 0 20px var(--accent-color);
            border-color: #fff;
        }

        .mentor-name { font-size: 1.5rem; font-weight: bold; color: #fff; }
        .mentor-role { font-size: 0.9rem; color: #999; margin-bottom: 15px; }
        /* Teachers Log Grid Layout */
        .activity-log {
            background: #000;
            border: 1px solid #333;
            padding: 40px;
            border-radius: 5px;
            position: relative;
        }
        
        .activity-log::after {
            content: "Caution！！";
            position: absolute;
            top: 20px; right: 20px;
            color: red;
            font-size: 0.8rem;
            animation: blink 1s infinite;
            font-family: var(--font-mono);
        }

        .log-title {
            color: #888; margin-bottom: 30px;
            border-bottom: 1px solid #333; padding-bottom: 10px;
            font-family: var(--font-mono);
        }

        .log-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .log-item {
            background: #111;
            border: 1px solid #222;
            transition: 0.3s;
            overflow: hidden;
        }

        .log-item:hover {
            border-color: var(--accent-color);
            transform: translateY(-5px);
        }

        .log-img-box {
            width: 100%;
            height: 180px;
            background-color: #222;
            position: relative;
            overflow: hidden;
        }

        .log-img-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(80%) brightness(0.8);
            transition: 0.4s;
        }

        .log-item:hover .log-img-box img {
            filter: grayscale(0%) brightness(1);
            transform: scale(1.05);
        }

        .log-caption {
            padding: 15px;
            font-size: 0.95rem;
            color: #ccc;
            font-family: var(--font-mono);
            border-top: 1px solid #222;
        }

        .log-caption::before {
            content: "> ";
            color: var(--accent-color);
        }

/* --- Merit / Points Section --- */
        .merit-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* レスポンシブ対応 */
            gap: 30px;
            margin-top: 40px;
        }

        .merit-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid #333;
            padding: 30px;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .merit-card:hover {
            border-color: var(--accent-color);
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
        }
        
        /* カード内の番号装飾 */
        .merit-number {
            font-family: var(--font-mono);
            color: var(--accent-color);
            font-size: 3rem;
            opacity: 0.2;
            position: absolute;
            top: 10px;
            right: 20px;
            font-weight: bold;
        }

        .merit-title {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: #fff;
            border-bottom: 2px solid var(--accent-sub);
            display: inline-block;
            padding-bottom: 5px;
        }


/* --- Student Story Section --- */
        .student-story {
            padding: 100px 0;
            background-color: #0d0d0d; /* 少しだけ背景色を変えて区切る */
        }

        .story-container {
            display: flex;
            gap: 50px;
            align-items: flex-start;
        }

        /* Left Side: Profile */
        .story-profile {
            flex: 1;
            background: #151515;
            padding: 30px;
            border-top: 2px solid var(--accent-color);
            text-align: center;
        }

        .story-img-frame {
            width: 100%;
            margin-bottom: 20px;
            border: 1px solid #333;
            padding: 5px;
        }

        .story-img-frame img {
            width: 100%;
            height: auto;
            display: block;
            filter: grayscale(20%); /* 渋い雰囲気に */
        }

        .story-data h3 {
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 5px;
        }

        .story-data .tag {
            font-family: var(--font-mono);
            color: var(--accent-color);
            font-size: 0.8rem;
            display: block;
            margin-top: 8px;
            margin-bottom: 8px;
        }

        .story-data .bio {
            text-align: left;
            font-size: 0.9rem;
            color: #aaa;
            line-height: 1.6;
        }

        /* Right Side: Timeline Content */
        .story-content {
            flex: 2;
        }

        .story-header h4 {
            font-size: 1.8rem;
            line-height: 1.4;
            margin-bottom: 40px;
            color: #fff;
            position: relative;
        }
        
        .story-header h4::before {
            content: '“';
            font-family: serif;
            font-size: 4rem;
            color: var(--accent-color);
            position: absolute;
            top: -30px;
            left: -20px;
            opacity: 0.1;
        }        

        /* Timeline Styling */
        .timeline {
            position: relative;
            padding-left: 30px;
            border-left: 1px solid #333;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 50px;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -35px; /* Lineの上に配置 */
            top: 5px;
            width: 10px;
            height: 10px;
            background: #000;
            border: 2px solid var(--accent-color);
            border-radius: 50%;
            transition: 0.3s;
        }

        .timeline-item:hover::before {
            background: var(--accent-color);
            box-shadow: 0 0 10px var(--accent-color);
        }

        .time-label {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 5px;
            display: block;
        }

        .timeline-content h5 {
            font-size: 1.2rem;
            color: #e0e0e0;
            margin-bottom: 10px;
            font-weight: bold;
        }

        .timeline-content p {
            color: #bbb;
            font-size: 1rem;
            line-height: 1.7;
        }

        .timeline-photo {
            margin-top: 15px;
            width: 100%;
            max-width: 400px;
            height: 200px;
            background: #222;
            overflow: hidden;
            border: 1px solid #333;
        }

        .timeline-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.3s;
        }
        
        .timeline-photo:hover img {
            transform: scale(1.05);
        }

        /* Mobile Adjustments for Story */
        @media (max-width: 768px) {
            .story-container {
                flex-direction: column;
            }
            
            .timeline {
                border-left: 2px solid #333; /* モバイルでは線を太く */
            }
            
            .story-header h4 {
                font-size: 1.4rem;
            }
        }

/* --- IPFactory Image Layout --- */
.ipf-header-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 50px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #333;
    background: #000;
}

.ipf-bg-image {
    width: 100%;
    height: 250px; /* 高さを抑えて主張しすぎないように */
    position: relative;
}

.ipf-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* サイトの雰囲気に合わせるフィルター処理 */
    /* 彩度を落とし、明度を下げ、少し青緑っぽくする */
    filter: grayscale(40%) brightness(0.6) contrast(1.2); 
    transition: transform 10s ease;
}

/* ホバー時にゆっくり拡大する演出（任意） */
.ipf-header-container:hover .ipf-bg-image img {
    transform: scale(1.1);
}

.ipf-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
    padding: 0 20px;
}

.ipf-overlay-text h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9); /* 文字を読みやすくする影 */
    letter-spacing: 2px;
}

.ipf-overlay-text p {
    color: var(--accent-color); /* アクセントカラー（緑）を使用 */
    font-family: var(--font-mono);
    font-size: 1rem;
    background: rgba(0,0,0,0.7); /* 文字背景に薄い黒帯 */
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--accent-color);
}

.ipf_min{
   font-size: 0.7rem;
   color:#777;
}

/* --- Teachers Log Layout Change (Grid to List) --- */

/* コンテナを縦積みに変更 */
.log-grid {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    gap: 15px; /* アイテム間の余白 */
}

/* 個々のアイテムを横並びレイアウトに変更 */
.log-item {
    display: flex;
    flex-direction: row; /* 画像と文字を横に並べる */
    align-items: stretch; /* 高さを揃える */
    background: #111;
    border: 1px solid #222;
    transition: 0.3s;
    height: auto; /* 高さは中身に合わせる */
}

/* 画像エリアのサイズ調整 */
.log-img-box {
    width: 35%; /* 左側の幅（画像の比率） */
    max-width: 300px; /* PCで見えすぎないように制限 */
    min-width: 120px; /* スマホでも小さくなりすぎないように */
    height: auto; /* 高さは自動（親要素に合わせる） */
    min-height: 100px; /* 最低限の高さ */
}

/* テキストエリアの調整 */
.log-caption {
    flex: 1; /* 残りの幅を全て使う */
    display: flex;
    align-items: top; /* 上下中央揃え */
    padding: 15px 20px;
    border-top: none; /* 元の線を消す */
    border-left: 1px solid #222; /* 画像との境界線 */
    font-size: 1rem;
    line-height: 1.5;
}

/* ホバー時の挙動調整 */
.log-item:hover {
    transform: translateX(5px); /* 右に少しズレる演出に変更 */
    border-color: var(--accent-color);
}
.log-item:hover .log-img-box img {
    transform: scale(1.1); /* 画像拡大はそのまま */
}

/* スマホ向けの微調整（画面幅が狭いとき） */
@media (max-width: 600px) {
    .log-item {
        font-size: 0.9rem; /* 文字を少し小さく */
    }
    .log-caption {
        padding: 10px 15px;
    }
}

        /* --- Community --- */
        .community {
            padding: 100px 0;
            /* 画像がなくてもそれっぽく見えるグリッド背景 */
            background-color: #111;
            background-image: 
                linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
            background-size: 30px 30px;
            position: relative;
        }

        .rules-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
        .rule-item {
            flex: 1; min-width: 250px;
            background: rgba(0,0,0,0.8);
            padding: 20px;
            border-left: 4px solid var(--accent-color);
            backdrop-filter: blur(5px);
            transition: 0.3s;
        }
        .rule-item:hover { background: rgba(0, 255, 65, 0.1); }
        .rule-head { font-weight: bold; font-size: 1.2rem; color: #fff; margin-bottom: 10px; display: block; }

        /* --- Voices --- */

/* --- Voices Section Single Layout --- */

/* コンテナ：横並び（Flexbox）にする */
.single-voice-container {
    display: flex;
    align-items: flex-start; /* 上揃え */
    justify-content: center; /* 中央寄せ */
    gap: 40px; /* アイコンと吹き出しの間隔 */
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- 左側：プロフィール部分 --- */
.voice-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px; /* 幅を固定 */
    flex-shrink: 0; /* 縮まないようにする */
}

/* 円形アイコン */
.voice-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color); /* 緑色の枠線 */
    overflow: hidden;
    background: #222;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.voice-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 名前と学年 */
.voice-name {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.4;
}

.voice-name span {
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
}

/* --- 右側：吹き出し部分 --- */
/* 既存のchat-bubbleクラスを上書きして配置調整 */
.voice-message.chat-bubble {
    position: relative; /* 絶対配置を解除 */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important; /* ランダム配置を解除 */
    opacity: 0; /* JSで表示されるまで隠す */
    
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    color: #ddd;
    font-size: 1rem;
    line-height: 1.8;
    flex: 1; /* 残りの幅を使う */
    
    /* 吹き出しの三角（左向き）を作成 */
    margin-left: 10px;
}

/* 吹き出しの三角矢印 */
.voice-message.chat-bubble::before {
    content: '';
    position: absolute;
    top: 40px; /* 上からの位置 */
    left: -12px; /* 左に突き出す */
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid #333; /* 枠線の色 */
}
.voice-message.chat-bubble::after {
    content: '';
    position: absolute;
    top: 41px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-right: 11px solid #1a1a1a; /* 背景色 */
}

/* JSのアニメーション用クラス（既存のJSがこれを付与します） */
.voice-message.chat-bubble.popped {
    opacity: 1;
    transform: translateY(0);
    animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bubblePop {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateX(10px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateX(0); 
    }
}

/* --- スマホ対応（常に横並びを維持する設定） --- */
@media (max-width: 768px) {
    .single-voice-container {
        /* 縦積み（column）にはせず、横並び（row）のままにする */
        flex-direction: row; 
        align-items: flex-start; /* 上揃え */
        gap: 15px; /* アイコンと吹き出しの間隔を少し詰める */
        padding: 0 10px; /* 全体の余白調整 */
    }

    /* プロフィール部分（アイコン）のサイズ調整 */
    .voice-profile {
        width: 80px; /* スマホでは幅を狭く */
        margin-right: 0;
    }

    .voice-icon-circle {
        width: 70px; /* アイコンを小さくする */
        height: 70px;
        border-width: 2px;
        margin-bottom: 8px;
    }

    .voice-name {
        font-size: 0.8rem; /* 名前も小さく */
        line-height: 1.2;
    }
    
    .voice-name span {
        display: block; /* 学年を改行して表示 */
        font-size: 0.7rem;
        transform: scale(0.9); /* 少し詰める */
    }

    /* 吹き出し部分の調整 */
    .voice-message.chat-bubble {
        margin-left: 0; /* 余計なマージン削除 */
        margin-top: 10px; /* アイコンと上辺を合わせるための微調整 */
        padding: 15px; /* 内側の余白を詰める */
        font-size: 0.85rem; /* 文字サイズを読みやすく調整 */
        line-height: 1.6;
    }

    /* スマホでも「左向き」の三角矢印を維持 */
    .voice-message.chat-bubble::before,
    .voice-message.chat-bubble::after {
        /* 位置リセット（上向き三角の設定を上書きキャンセル） */
        left: -12px;
        top: 20px; /* 矢印の位置を少し上に合わせる */
        transform: none;
        
        /* 左向きの形状を維持 */
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid #333; /* 枠線 */
        border-left: none; /* 上向き設定を打ち消し */
    }
    
    .voice-message.chat-bubble::after {
        left: -10px;
        top: 21px;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        border-right: 9px solid #1a1a1a; /* 背景色 */
        border-left: none;
    }
}


/* --- Event / Public Lecture --- */
        .event-section {
            padding: 100px 0;
            background: radial-gradient(circle at center, #111 0%, #000 70%);
            border-top: 1px solid #222;
        }

        .event-card {
            border: 2px solid var(--accent-color);
            background: rgba(0, 50, 0, 0.2);
            padding: 40px;
            position: relative;
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
            overflow: hidden;
        }

        /* 斜めストライプ背景 */
        .event-card::before {
            content: "";
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 10px,
                rgba(0, 255, 65, 0.03) 10px,
                rgba(0, 255, 65, 0.03) 20px
            );
            pointer-events: none;
        }

        .event-badge {
            display: inline-block;
            background: var(--accent-color);
            color: #000;
            font-weight: bold;
            padding: 5px 15px;
            font-family: var(--font-mono);
            font-size: 0.9rem;
            margin-bottom: 20px;
            text-transform: uppercase;
        }

        .event-title {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #fff;
        }

        .event-desc {
            color: #ccc;
            margin-bottom: 30px;
            font-size: 1.1rem;
        }

        .event-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
            border-top: 1px dashed #444;
            border-bottom: 1px dashed #444;
            padding: 20px 0;
        }

        .detail-item dt {
            color: var(--accent-color);
            font-family: var(--font-mono);
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .detail-item dd {
            color: #fff;
            font-weight: bold;
            font-size: 1.2rem;
        }

        /* 点滅するカーソル演出 */
        .blinking-bar {
            display: inline-block;
            width: 10px;
            height: 2px;
            background: var(--accent-color);
            animation: blink 0.5s infinite;
            vertical-align: middle;
            margin-left: 10px;
        }

/* --- IPFactory Additional Styles --- */

/* --- IPFactory Additional Styles (Compact Ver) --- */

/* 概要説明エリア：幅と文字サイズを縮小 */
.ipf-intro {
    max-width: 800px; /* 幅を狭めてコンパクトに */
    margin: 30px auto; /* 上下の余白を詰める */
    text-align: left;
    color: #ccc; /* 文字色を少し落ち着かせる */
    line-height: 1.5;
    font-size: 1rem; /* 文字を小さく */
    padding: 0 15px;
}

/* 実績セクション全体：幅制限を追加 */
.ipf-achievements {
    margin-top: 60px; /* 上の要素との距離を縮める */
    max-width: 1000px; /* 全体が広がりすぎないように制限 */
    margin-left: auto;
    margin-right: auto;
}

/* サブタイトル：少し控えめに */
.ipf-sub-title {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 1.25rem; /* サイズダウン */
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color); /* 線を少し細く */
    padding-left: 12px;
    /*text-transform: uppercase;*/
    letter-spacing: 1.5px;
}

/* --- 実績セクション修正（1カラム横並びレイアウト） --- */

/* 全体の中央寄せ設定 */
.achieve-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 実績カード単体：Flexboxで横並びにする */
.achieve-card {
    display: flex; /* 【重要】子要素を横並びにする */
    flex-direction: row; /* 左から右へ配置 */
    align-items: stretch; /* 高さを揃える */
    
    background: #151515;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    
    /* 横長になるので最大幅を少し広げる */
    max-width: 800px; 
    width: 100%;
}

.achieve-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

/* 画像エリア：左側の固定幅領域 */
.achieve-img {
    width: 40%; /* 全体の35%を画像エリアにする */
    min-width: 250px; /* ただし最低250pxは確保（小さくなりすぎ防止） */
    height: auto; /* 高さは親要素（テキスト量）に合わせる */
    
    background-color: #222;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* 幅が縮まないようにする */
}

/* 画像本体の設定 */
.achieve-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    transition: transform 0.5s;
    filter: grayscale(30%);
    position: absolute; /* 親要素いっぱいに広げるために絶対配置 */
    top: 0;
    left: 0;
}

.achieve-card:hover .achieve-img img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

/* テキストエリア：右側の可変幅領域 */
.achieve-content {
    flex: 1; /* 残りの幅を全て使う */
    padding: 30px; /* テキスト周りの余白 */
    text-align: left;
    
    /* テキストを上下中央に配置したい場合は以下を有効化 */
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: center; */
}

.achieve-content h4 {
    color: #fff;
    font-size: 1.2rem; /* 少し大きく強調 */
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: none; /* 横並びなので下線はなくても良いかも（お好みで） */
    padding-bottom: 0;
}

.achieve-content p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.7; /* 行間を少し広げて読みやすく */
    margin-bottom: 0;
}

/* --- スマホ対応（画面が狭いときは縦積みに戻す） --- */
@media (max-width: 768px) {
    .achieve-card {
        flex-direction: column; /* 縦積みに変更 */
        max-width: 500px; /* 幅制限を戻す */
    }

    .achieve-img {
        width: 100%; /* 幅を100%に戻す */
        height: 180px; /* 高さを固定する */
        position: relative; /* 絶対配置を解除 */
    }
    
    .achieve-img img {
        position: relative; /* 絶対配置を解除 */
    }

    .achieve-content {
        padding: 20px; /* 余白を少し狭く */
    }
    
    .achieve-content h4 {
        border-bottom: 1px solid #333; /* 縦積みの時は下線があった方が良い */
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
}



        /* --- Footer --- */
        footer { padding: 50px 0; text-align: center; border-top: 1px solid #333; font-size: 0.9rem; color: #666; }
        .footer-note { color: var(--accent-color); margin-bottom: 20px; font-weight: bold; }

        /* --- Animations Keyframes --- */
        @keyframes blink { 50% { opacity: 0; } }
        @keyframes fadeIn { to { opacity: 1; } }

        /* Mobile */
        @media (max-width: 768px) {
            .hero h1 { font-size: 2rem; }
            .doc-paper { padding: 30px; }
        }

       /* --- Editor Fix for Mobile --- */

/* 1. 基本設定：折り返しを禁止して横スクロールさせる */
.editor-body {
    overflow-x: auto; /* 横スクロールを許可 */
    align-items: flex-start; /* 上揃え */
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
}

.code-content {
    white-space: pre; /* 【重要】勝手に折り返さないようにする */
    min-width: max-content; /* コンテンツ幅を確保する */
}

/* 2. スマホ向けの調整（画面を広く使う） */
@media (max-width: 768px) {
    /* 外枠の余白を少し詰める */
    #manifesto-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .editor-container {
        border-radius: 0; /* スマホなら角丸なしで画面いっぱいに */
        border-left: none;
        border-right: none;
    }

    /* エディタ内部の余白を詰めて表示領域を確保 */
    .editor-body {
        padding: 15px 10px; 
    }

    /* 行番号の余白を詰める */
    .line-numbers {
        padding-right: 10px;
        margin-right: 10px;
        font-size: 0.8rem; /* 少し文字を小さく */
    }

    /* コード本文の文字サイズ調整 */
    .code-content {
        font-size: 0.8rem; /* スマホでは文字を小さくして全体を見やすく */
    }
} 
/* --- Voices Section: 強制レイアウト修正 --- */

/* 1. コンテナ：強制的にFlexboxの横並びにする */
.single-voice-container {
    display: flex !important;       /* Flexboxを強制 */
    flex-direction: row !important; /* 常に横並び（左→右） */
    align-items: flex-start !important; /* 上辺揃え */
    justify-content: center;
    gap: 20px;                      /* アイコンと吹き出しの間隔 */
    max-width: 800px;
    margin: 0px auto;
    padding: 0 15px;
    
}

/* 2. 左側：アイコンエリア */
.voice-profile {
    width: 100px; /* 固定幅 */
    flex-shrink: 0; /* 縮小させない */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0 !important; /* 余計なマージン削除 */
}

.voice-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    overflow: hidden;
    background: #222;
    margin-bottom: 10px;
}
.voice-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-name {
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* 3. 右側：吹き出しエリア（元の配置を完全リセット） */
/* 詳細度を上げるため .single-voice-container を前につけています */
.single-voice-container .voice-message.chat-bubble {
    position: relative !important; /* 絶対配置を解除 */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;    /* ランダム配置の解除 */
    
    width: auto !important;        /* 幅の固定を解除 */
    flex: 1;                       /* 残りの幅を全て埋める */
    margin: 0 !important;          /* マージンリセット */
    
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    color: #ddd;
    text-align: left;
    
    /* 上端をアイコンと合わせる微調整 */
    margin-top: 10px !important; 
}

/* 4. 吹き出しの三角（左向き） */
.single-voice-container .voice-message.chat-bubble::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -12px; /* 左側に突き出す */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid #333; /* 枠線の色 */
    border-left: none;
}

.single-voice-container .voice-message.chat-bubble::after {
    content: '';
    position: absolute;
    top: 21px;
    left: -10px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 11px solid #1a1a1a; /* 背景色 */
    border-left: none;
}

/* 5. スマホ向けのサイズ微調整（横並びは維持） */
@media (max-width: 600px) {
    .single-voice-container {
        gap: 10px; /* 間隔を少し詰める */
        padding: 0 10px;
    }
    .voice-profile {
        width: 70px; /* アイコンエリアを狭く */
    }
    .voice-icon-circle {
        width: 60px; /* アイコンを小さく */
        height: 60px;
    }
    .voice-name {
        font-size: 0.7rem;
    }
    .single-voice-container .voice-message.chat-bubble {
        padding: 15px;
        font-size: 0.8rem;
    }
}  
/* --- Editor Accordion: Partial View Settings --- */

/* 1. ヘッダー設定（クリック可能に） */
.editor-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
    z-index: 2; /* グラデーションより上に表示 */
}
.editor-header:hover {
    background-color: #333;
}

/* 2. 開閉アイコン（▶） */
.editor-header::after {
    content: '▶';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* 開いた時にアイコンを回転（▼） */
.editor-container.is-open .editor-header::after {
    transform: translateY(-50%) rotate(90deg);
}

/* 3. 本文の表示制御（ここを変更） */
.editor-container .editor-body {
    display: flex !important; /* 常に表示状態にする */
    
    /* ▼ここで見せる高さを調整（約6〜7行分） */
    max-height: 180px;        
    overflow: hidden;         /* はみ出た部分を隠す */
    
    position: relative;
    transition: max-height 0.6s ease-in-out; /* ぬるっと開くアニメーション */
}

/* 4. 「続きがある」感を出すグラデーション */
.editor-container .editor-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* グラデーションの高さ */
    
    /* 下に行くほど背景色（黒）になる */
    background: linear-gradient(to bottom, rgba(20,20,20,0), rgba(20,20,20,1));
    
    pointer-events: none; /* クリックを邪魔しない */
    transition: opacity 0.3s;
}

/* --- 開いた時の設定 --- */

/* 高さ制限を解除（十分な高さを指定） */
.editor-container.is-open .editor-body {
    max-height: 2000px; /* 内容がこれより多い場合は数値を増やしてください */
}

/* 開いたらグラデーションを消す */
.editor-container.is-open .editor-body::after {
    opacity: 0;
}   

/* --- スマホ対応：専任教員ログ（Teachers Log）を縦積みに修正 --- */
@media (max-width: 768px) {
    /* 1. カード全体を縦並び（カラム）に変更 */
    .log-item {
        flex-direction: column !important; /* 強制的に縦積みにする */
        height: auto !important;
    }

    /* 2. 写真エリアを上部に大きく表示 */
    .log-img-box {
        width: 100% !important;    /* 横幅いっぱいに */
        max-width: 100% !important;
        height: 200px !important;  /* 高さをしっかり確保 */
        min-width: auto !important;
        
        /* 境界線の調整 */
        border-bottom: 1px solid #222; 
    }

    /* 3. 文章エリアをその下に配置 */
    .log-caption {
        width: 100% !important;
        border-left: none !important; /* 横並び用の左線を消す */
        padding: 20px !important;
    }
}
/* --- スマホでエディタの右側を見えるようにする修正 --- */
@media (max-width: 768px) {
    /* 1. エディタ本体の設定 */
    .editor-body {
        overflow-x: auto !important;       /* 横スクロールを強制許可 */
        white-space: nowrap !important;    /* 中身の折り返しを禁止 */
        -webkit-overflow-scrolling: touch; /* iPhoneでのスクロールを滑らかに */
        padding-bottom: 15px;              /* スクロールバーが被らないよう余白確保 */
    }

    /* 2. コード部分の設定 */
    .code-content {
        white-space: pre !important;       /* 【重要】勝手に折り返さない */
        min-width: max-content;            /* 文字数分の幅を確保 */
        display: inline-block;             /* インラインブロックで幅を持たせる */
    }
    
    /* 3. 行番号の設定（ズレ防止） */
    .line-numbers {
        height: auto;
        min-height: 100%;                  /* 高さを揃える */
    }
}
/* --- スマホ対応：コードを端で折り返して全体を表示 --- */
@media (max-width: 768px) {
    /* 1. エディタ本体：横スクロールをやめる */
    .editor-body {
        overflow-x: visible !important;   /* スクロールさせない */
        white-space: normal !important;   /* 標準の折り返し挙動へ */
        padding-bottom: 0 !important;
        display: block !important;        /* フレックス解除 */
    }

    /* 2. コード部分（.code-content）：端で折り返す設定 */
    .code-content {
        white-space: pre-wrap !important; /* 【重要】端で折り返す */
        word-wrap: break-word !important; /* 長い単語も折り返す */
        overflow-wrap: break-word !important;
        width: 100% !important;           /* 幅いっぱいに使う */
        display: block !important;
        padding-left: 0 !important;       /* 左の余白をリセット */
    }

    /* 3. 行番号（.line-numbers）：ズレ防止のためスマホでは非表示 */
    /* ※折り返すと行番号と高さが合わなくなるため、消すのが最も綺麗です */
    .line-numbers {
        display: none !important;
    }
}
/* 企業ロゴのスタイル */
.company-logo {
    display: block;       /* ブロック要素にして改行 */
    margin: 10px auto;    /* 上下に余白、左右中央揃え */
    width: 120px;         /* ロゴの幅（お好みで調整してください） */
    height: auto;         /* 高さは自動調整 */
    object-fit: contain;  /* 縦横比を維持 */
    /* background-color: #fff; ロゴが透明背景で黒文字の場合、白背景をつけると見やすくなります */
    padding: 5px;         /* 背景色をつける場合の余白 */
    border-radius: 4px;   /* 角を少し丸くする */
}

