/* =========================================
   作成者：S p03
   作成日：20260615
   ========================================= */

@charset "utf-8";

/* =========================================
   オープニング（スプラッシュ）画面の設定
   ========================================= */
.splash-screen {
    /* 画面全体を覆い隠すためにfixed（固定）にする */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* メイン画面への繋がりを意識して、背景色は「白」 */
    background-color: #ffffff;
    /* Flexboxで中の文字を画面のど真ん中に配置する */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 他のどの要素よりも上に表示させる（z-indexの数値を極端に高くする） */
    z-index: 9999;
    /* 4.5秒かけてゆっくりフェードアウトさせるアニメーションを呼び出す */
    animation: fadeOutSplash 4.5s forwards;
}

.splash-text {
    /* スマホでもPCでも画面幅に合わせて文字サイズが変わるようにvw単位を使う */
    font-size: 6vw;
    /* 文字色はメニュー帯と同じ「濃い青」にして統一感を出す */
    color: #004085;
    /* タイプライター風の等幅フォントを指定 */
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    /* 文字がはみ出た部分は隠す（タイピングアニメーションの必須設定） */
    overflow: hidden;
    /* 勝手に改行させない */
    white-space: nowrap;
    
    /* 【重要】「中央サイバー防護隊」は9文字なので、最終的な幅を9emに設定する */
    width: 9em;
    
    /* タイピングのカーソル（右側の縦線）も文字と同じ濃い青にする */
    border-right: 0.15em solid #004085;
    /* 1.5秒かけて9段階（9文字分）で幅を広げ、カーソルは無限に点滅させる */
    animation: typingSplash 1.5s steps(9, end) forwards, blink-caret 0.75s step-end infinite;
}

/* スマホ向けの微調整（スプラッシュ画面の文字サイズ） */
@media screen and (max-width: 768px) {
    .splash-text {
        /* スマホ画面だと6vwでは小さすぎるので、9vwに大きくしておく */
        font-size: 9vw;
    }
}

/* =========================================
   スプラッシュ用アニメーションの動き（キーフレーム）
   ========================================= */
/* 文字が打ち込まれる動き（幅が0から9emにカチャカチャ広がる） */
@keyframes typingSplash {
    from { width: 0; }
    to { width: 9em; } 
}

/* カーソルの点滅（透明と濃い青を交互に繰り返す） */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #004085; }
}

/* 画面全体のフェードアウト（白背景のままフワッと消えてメイン画面へ） */
@keyframes fadeOutSplash {
    0%   { opacity: 1; visibility: visible; }
    /* 3秒経過するくらいまでは、そのまましっかり表示しておく */
    70%  { opacity: 1; visibility: visible; }
    /* 最後は透明にして、裏側のリンクを押せるようにクリック判定を消す（pointer-events: none; がミソ） */
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =========================================
   全体設定：白背景のシンプルなベース（メイン画面）
   ========================================= */
body {
    /* 白背景 */
    background-color: #ffffff;
    /*濃いダークグレー*/
    color: #333333;
    /* フォント指定 */
    font-family: "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    /* ブラウザが勝手につける余白をリセットする */
    margin: 0;
    padding: 0;
    /* スマホで読んだ時に窮屈にならないよう、行間は少し広めの1.6 */
    line-height: 1.6;

    /* 20260619add */
    display: flex;           /* Flexboxを使用 */
    flex-direction: column;  /* 中身を上から下へ縦に並べる */
    min-height: 100vh;       /* 最低でも画面の高さ(100%)分は確保する */
}

a {
    /* リンクは標準的で分かりやすい青色にする */
    color: #0056b3;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* =========================================
   ヘッダー：ロゴと部隊名を横並びに
   ========================================= */
.common-header {
    /* Flexboxを使ってロゴとテキストを横に並べる */
    display: flex;
    /* 縦方向の中心をピタッと揃える */
    align-items: center;
    padding: 15px;
    /* ヘッダーの下に薄いグレーの線を引いて区切る */
    border-bottom: 1px solid #e0e0e0;
}

.header-logo {
    /* ロゴの高さを固定。横幅は自動で比率を保つ */
    height: 60px;
    width: auto;
    /* 右のテキストとくっつきすぎないように隙間をあける */
    margin-right: 15px;
}

.header-text {
    /* テキストの箱の中は縦並びにする */
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-text h1 {
    margin: 0;
    /* スマホでも大きすぎないサイズ感 */
    font-size: 1.2rem;
    font-weight: bold;
    color: #333333;
}

.header-text p {
    margin: 0;
    /* 英語表記は小さくして階層をつける（副題扱い） */
    font-size: 0.75rem;
    color: #666666;
}

/* =========================================
   ナビゲーション：青い帯のメニュー
   ========================================= */
.main-nav {
    /* 要件の「水平にブルーの帯」を作る */
    background-color: #004085;
    width: 100%;
    /* 帯の下に薄い影をつけて少し浮かせる */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* 画面幅が狭いスマホの時は、自動で折り返して複数行になるようにする（flex-wrap） */
    flex-wrap: wrap;
    justify-content: flex-start;
}

.main-nav li {
    /* メニュー項目を均等に配置しつつ、押しやすい幅を確保する */
    flex: 1 1 auto;
    text-align: center;
    /* 項目の間に薄い区切り線を入れる */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav a {
    /* リンクをブロック状にして、タップの当たり判定を広げる */
    display: block;
    padding: 12px 10px;
    /* 青い帯の上なので文字色は「白」 */
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: bold;
}

.main-nav a:hover {
    /* 押した時に少し暗くして反応を返す */
    background-color: #002752;
}

/* =========================================
   メインコンテンツ領域
   ========================================= */
.container {
    /* スマホ画面で端が切れないよう、左右に少し余白を持たせる */
    width: 92%;
    /* PCで見た時に横に伸びすぎないようストッパーをかける */
    max-width: 800px;
    /* 中央寄せの定番テクニックらしいByAI */
    margin: 20px auto;
    padding-bottom: 40px;

    /* 20260619add */
    flex: 1; /* 余ったスペースをすべてこの要素が占有 */
}

.container h2 {
    font-size: 1.4rem;
    /* 見出しの色もメニュー帯と同じ青色にして統一感を出す */
    color: #004085;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 画像がスマホ画面からはみ出さないようにするおまじないクラス */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

/* =========================================
   あゆみに利用する画像のスタイル設定
   ========================================= */
/* =========================================
   タイムライン用のスタイル追加
   ========================================= */
.cyber-timeline {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* ==============================
合併前（2列レイアウト）
============================== */
.timeline-split {
    display: flex;
    justify-content: space-between;
}

.timeline-col {
    width: 45%;
    position: relative;
}

/* 背景の細いライン（各部隊の歴史線） */
.timeline-col::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #004085;
    transform: translateX(-50%);
    z-index: 1;
}

.col-header {
    text-align: center;
    color: #004085; /* 文字色を濃い青に */
    border: 1px solid #004085;
    padding: 0.8rem;
    margin-bottom: 2rem;
    background: #ffffff; /* 背景色を白に */
    font-weight: bold;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 10px rgba(0, 64, 133, 0.2);
}

/* 沿革カードのデザイン */
.card {
    background: #ffffff; /* 完全に不透明に */
    border-left: 3px solid #004085;
    padding: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 0 15px rgba(0, 64, 133, 0.3);
}

.year {
    color: #004085;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* ==============================
合流地点の線（回路基板風 Y字）
============================== */
.timeline-merge-lines {
    position: relative;
    height: 50px;
}

/* 左右カラムの中央を結ぶ横線 */
.line-horizontal {
    position: absolute;
    top: 0;
    left: 22.5%; /* 左カラム(45%)の中央 */
    right: 22.5%; /* 右カラムの中央 */
    height: 2px;
    background-color: #004085;
    box-shadow: 0 0 10px #004085;
}

/* 中央から合併イベントへ降りる縦線 */
.line-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #004085;
    box-shadow: 0 0 10px #004085;
    transform: translateX(-50%);
}

/* ==============================
合併後（1列レイアウト）
============================== */
.timeline-single {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 中央の一本線 */
.timeline-single::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #004085;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.7;
}

.timeline-single .card {
    width: 80%;
    text-align: center;
    border-left: none;
    border-top: 3px solid #004085;
}

/* 合併のハイライト強調（パルス発光） */
.merge-event {
    border: 2px solid #004085 !important;
    background: #ffffff !important; /* 完全に不透明に */
    box-shadow: 0 0 20px rgba(0, 64, 133, 0.4) !important;
    animation: pulse 2s infinite;
}

.glitch-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004085; 
    text-shadow: 0 0 8px #004085;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

/* ロゴマーク用のスタイル */
.queue-logo {
    height: 40px; /* ロゴの高さを調整 */
    width: auto; /* 幅は自動調整 */
    margin-right: 10px; /* テキストとの間隔 */
    vertical-align: middle; /* テキストとの垂直位置を揃える */
}

/* .merge-event内のロゴ用スタイル */
.merge-event .queue-logo {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(0, 64, 133, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 64, 133, 0.7); }
    100% { box-shadow: 0 0 10px rgba(0, 64, 133, 0.2); }
}

/* ==============================
スマホ対応（1カラムへ自動切り替え）
============================== */
@media (max-width: 768px) {
    .timeline-split {
        flex-direction: column;
    }
    .timeline-col {
        width: 100%;
        margin-bottom: 1rem;
    }
    /* スマホ時は線を左端に寄せる */
    .timeline-col::before,
    .timeline-single::before {
        left: 15px;
    }
    .timeline-merge-lines {
        display: none; /* Y字線は非表示 */
    }
    .card {
        margin-left: 35px; /* 左線の分の余白 */
    }
    .timeline-single .card {
        width: calc(100% - 35px);
        text-align: left;
        border-top: none;
        border-left: 3px solid #004085;
    }
    .merge-event {
        margin-top: 2rem;
    }
    .queue-logo {
        height: 30px; /* スマホでは少し小さく */
    }
    .merge-event .queue-logo {
        height: 30px;
    }
}
/* =========================================
   部隊編成専用スタイル 20260624add
   ========================================= */
.organization-wrapper {
    margin: 30px auto;
    max-width: 500px; /* 中央に寄せてスマートに見せる */
}

/* 親組織（中央サイバー防護隊）のスタイル */
.main-unit {
    background-color: #004085;
    color: #ffffff;
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 64, 133, 0.2);
}

/* リスト全体のスタイル */
.org-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* 垂直のライン（組織の繋がりを表現） */
.org-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px; /* 中央揃えにするための調整 */
    width: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

/* 各科・所のアイテムスタイル */
.org-item {
    position: relative;
    padding-left: 50px; /* ラインの右側に配置 */
    margin-bottom: 12px;
    z-index: 2;
}

/* 接続点（ドット）のデザイン */
.org-item::before {
    content: '';
    position: absolute;
    left: 18px; /* ラインの真上に配置 */
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border: 2px solid #004085;
    border-radius: 50%;
}

/* テキスト部分のスタイル */
.org-name {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px; /* 丸みを持たせてモダンに */
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
}

/* ホバー時の演出（サイバー感） */
.org-item:hover .org-name {
    background-color: #004085;
    color: #ffffff;
    transform: translateX(5px); /* 少し右に動く動き */
    box-shadow: 0 2px 8px rgba(0, 64, 133, 0.3);
}

/* スマホ対応：中央のラインを少し左へ寄せる調整 */
@media (max-width: 768px) {
    .organization-wrapper {
        max-width: 90%;
    }
    .org-list::before {
        left: 20px;
    }
    .org-item {
        padding-left: 40px;
    }
    .org-item::before {
        left: 13px;
    }
}


/* =========================================
   PR スマホ表示 20260625add
   ========================================= */

.rhythm-text {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 各行をブロック化して、改行位置を絶対的に守る */
.rhythm-text span {
    display: block;
}

/* --- 文字サイズのレスポンシブ制御 --- */

/* 1. 基本のサイズ（PC向け） */
.rhythm-text {
    font-size: 1rem; /* もしくは現在の設定値 */
}

/* 2. タブレット・大きめのスマホ向け */
@media screen and (max-width: 768px) {
    .rhythm-text {
        font-size: 0.85rem; /* 少しだけ小さく */
    }
}

/* 3. 【重要】iPhone 13 mini等の極狭画面向け */
@media screen and (max-width: 390px) {
    .rhythm-text {
        /* clamp関数で、最小値・推奨値・最大値を指定 */
        /* font-size: clamp(0.85rem, 4vw, 1rem); /* サンプル */
        font-size: 0.8rem; /* 文字サイズを「一回り小さく」設定 */
        line-height: 1.6;   /* 文字が小さくなったので行間も少し詰める */
    }
}



/* =========================================
   お知らせページ専用スタイル 20260624add
   ========================================= */

/* お知らせ全体の枠組み（カードデザイン） */
.notice-card {
    background-color: #ffffff;
    border: 2px solid #004085; /* 部隊カラーの太い枠線 */
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 要件1: リード文の太字（HTML側でstrongを使用） */
.notice-lead {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* お知らせの中身のレイアウト */
.notice-content {
    margin-bottom: 30px;
}

.notice-subtext {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

/* 各項目のセクション */
.notice-item {
    margin-bottom: 25px;
}

/* 要件2: 下線のスタイル（insタグを使用） */
.notice-item ins {
    text-decoration: underline;
    font-weight: bold;
    color: #004085; /* 下線部分は部隊カラーにして見やすく */
}

/* 比較ボックス（改正前・後の対比を分かりやすく） */
.comparison-box {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 3px solid #e0e0e0; /* 左側に薄いグレーの線を入れて構造化 */
}

/* 要件3 & 4: 赤字の設定 */
.red-text {
    color: #d9534f; /* 警告として適切な、少し落ち着いた赤色 */
    font-weight: bold;
}

/* 要件5: 注意喚起エリア（左揃えに修正） */
.notice-warning {
    margin-top: 30px;
    padding: 20px 20px 20px 40px; /* 左側の余白を多めにとって、インデント感を出す */
    background-color: #f8f9fa;   /* 薄いグレーの背景で強調 */
    border: 1px dashed #333;     /* 点線にして注意を引く */
    text-align: left;            /* ★ここを center から left に変更 */
    font-size: 1.2rem;           /* 大文字（大きく） */
    font-weight: bold;           /* 太字 */
    color: #000000;              /* 黒色 */
    line-height: 1.6;            /* 行間を少し広げて読みやすく */
}

/* スマホ対応：余白の調整 */
@media (max-width: 768px) {
    .notice-card {
        padding: 20px;
    }
    .notice-lead {
        font-size: 1rem;
    }
    .notice-warning {
        font-size: 1rem;
    }
}

/* =========================================
   フッター用のスタイル
   ========================================= */
.main-footer {
    width: 100%;
    background-color: #004085; /* ナビゲーションと同じ色 */
    padding: 10px 0;
    margin-top: 40px;
}

.footer-line {
    height: 1px;
    background-color: #004085; /* ナビゲーションと同じ色 */
    margin-bottom: 10px;
}

.footer-content {
    text-align: center;
    color: #ffffff; /* 白文字 */
    font-size: 0.8rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 15px;
    }
}
