@charset "UTF-8";

/* ==========================================================================
   AcsiomA Technology Section Style [ tech.css ] (完全版)
   ========================================================================== */

/* --- 1. Technology系 変数定義 --- */
:root {
    /* --color-tech: #B86B25; */                /* 琥珀色（メインテーマ） */
    --color-tech: #D0883C;                 /* ★修正: アクセシブルなブライトアンバー */
    --color-tech-new: #50E3C2;             /* 新要素・安全（エメラルド） */
    --color-tech-meta: #85C1E9;            /* Meta層（ライトブルー） */
    --color-tech-axiom: #E2B93B;           /* Axiom層（ゴールド） */
    --color-tech-actor: #FF6347;           /* Actor層（トマトレッド） */
    --color-tech-actor-kindling: #FF2020;  /* Actor発火用（アラートレッド） */
    /* --color-tech-danger: #D84339; */         /* 危険・爆発（ディープレッド） */
    --color-tech-danger: #EF665A;          /* ★修正: アクセシブルなブライトクリムゾン */
    --color-tech-safe: #50E3C2;            /* 安全・O(N)（エメラルド） */
    /* --line-color: rgba(184, 107, 37, 0.3); *//* 図解用ベースライン色 */
    --line-color: rgba(208, 136, 60, 0.3); /* 図解用ベースライン色 */
    
    /* 階層図の座標（ページ内で使う可能性があるので保持） */
    --meta-cx: 240px; --meta-cy: 160px;
    --edge-cx: 560px; --edge-cy: 420px;
    --offset: 80px; 
}

/* --- 2. Hero Banner --- */
.hero-banner {
    margin-top: 60px; height: 200px; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end; 
    padding-right: 10%; overflow: hidden;
    background-color: var(--color-tech);
    background-image: url('../images/HeroBanner_SRX_Orange.svg'), url('../images/HeroBanner_Bg_Orange.svg');
    background-position: left center, center center;
    background-size: auto 100%, cover; background-repeat: no-repeat, no-repeat;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    transition: transform 0.8s ease, filter 0.8s ease; 
}
.banner-title {
    font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 3.5rem; letter-spacing: 8px; color: #fff; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3); margin-bottom: 5px;
}
.banner-subtitle {
    font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif;
    font-size: 1.5rem; letter-spacing: 4px; color: rgba(255,255,255,0.8);
}

/* --- 3. Technology Top Page 固有コンポーネント --- */
.tech-top-main { max-width: 1000px; margin: 80px auto; padding: 0 40px; display: flex; flex-direction: column; align-items: center; }
.page-header { text-align: center; margin-bottom: 50px; }
.page-title-btn {
    display: inline-block; font-size: 2.2rem; color: var(--color-tech); letter-spacing: 4px; 
    font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; cursor: pointer; padding: 15px 30px; 
    border: 1px solid transparent; border-radius: 8px; transition: all 0.4s ease;
}
.page-title-btn:hover {
    border-color: rgba(184, 107, 37, 0.5); background: rgba(184, 107, 37, 0.1);
    box-shadow: 0 0 30px rgba(184, 107, 37, 0.3); transform: scale(1.03); text-shadow: 0 0 10px rgba(184, 107, 37, 0.8);
}

/* 特許アピール領域 (Global Core Patents) */
.patent-section {
    width: 100%; max-width: 800px; margin: 0 auto 80px auto;
    background: linear-gradient(135deg, rgba(184, 107, 37, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(184, 107, 37, 0.3); border-left: 4px solid var(--color-tech);
    padding: 40px; border-radius: 4px; box-sizing: border-box; position: relative; overflow: hidden;
}
.patent-section::after {
    content: ''; position: absolute; top: 0; right: 0; width: 150px; height: 100%;
    background: radial-gradient(circle at right, rgba(184, 107, 37, 0.1) 0%, transparent 70%); pointer-events: none;
}
.patent-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.patent-title { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.8rem; color: #fff; letter-spacing: 3px; margin: 0; }
.patent-subtitle { font-family: 'Kyokasho Set', 'Klee One', serif; font-size: 1rem; color: var(--color-tech); letter-spacing: 1px; }
.patent-text { font-family: 'Kyokasho Set', 'Klee One', serif; font-size: 1.05rem; color: #D1D8E0; line-height: 2.0; text-align: justify; margin-bottom: 30px; }

.patent-status-list { display: flex; gap: 20px; flex-wrap: wrap; }
.patent-badge {
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px; border-radius: 4px; display: flex; flex-direction: column; min-width: 140px;
}
.badge-country { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.2rem; color: #fff; letter-spacing: 2px; margin-bottom: 5px; }
.badge-status { font-family: 'Kyokasho Set', 'Klee One', serif; font-size: 0.85rem; color: var(--text-muted); }
.badge-status.registered { color: var(--color-tech-safe); }
.badge-status.allowance { color: var(--color-tech); }

/* 目次リンク (Index Menu) */
.index-menu { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 20px; }
.index-link { 
    display: flex; align-items: baseline; padding: 20px 30px; border: 1px solid var(--line-color); 
    background: rgba(255, 255, 255, 0.01); transition: all 0.4s ease; position: relative; overflow: hidden; text-decoration: none; 
}
.index-link::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; 
    background-color: var(--color-tech); transform: scaleY(0); transition: transform 0.4s ease; transform-origin: bottom; 
}
.index-link:hover { background: rgba(184, 107, 37, 0.05); border-color: rgba(184, 107, 37, 0.6); transform: translateX(10px); }
.index-link:hover::before { transform: scaleY(1); }
.index-num { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.2rem; color: var(--color-tech); width: 100px; letter-spacing: 2px; }
.index-desc { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.15rem; letter-spacing: 1px; color: #E2E8F0; }
.index-role { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; margin-left: auto; font-size: 1rem; color: var(--text-muted); opacity: 0.6; }

/* --- 4. 共通要素 (Axiom Layer & Proof Modal) --- */
#axiom-layer { max-width: 1000px; margin: 60px auto; padding: 0 40px; display: flex; flex-direction: column; align-items: center; }
.axiom-statement { text-align: center; max-width: 850px; margin-bottom: 60px; }
.axiom-title { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 2.2rem; color: var(--color-tech); margin-bottom: 30px; letter-spacing: 3px; }
.axiom-text { font-family: 'Kyokasho Set', 'Klee One', serif; font-size: 1.15rem; color: var(--text-muted); line-height: 2.2; text-align: center; letter-spacing: 1px; }
.axiom-text strong { color: #D1D8E0; font-weight: 600; }

.page-nav { width: 100%; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; margin-bottom: 60px; }
.nav-btn { font-family: 'Kyokasho Set', 'Klee One', serif; font-size: 1.2rem; color: var(--text-muted); letter-spacing: 2px; transition: color 0.3s ease; }
.nav-btn:hover { color: var(--color-tech); }

/* モーダル呼び出しボタン */
.proof-trigger-btn { 
    background: none; border: 1px solid var(--color-tech); color: var(--color-tech); 
    padding: 15px 40px; font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.2rem; 
    letter-spacing: 3px; cursor: pointer; transition: all 0.4s ease; display: flex; align-items: center; gap: 15px; margin-bottom: 80px; 
}
.proof-trigger-btn:hover { background: rgba(184, 107, 37, 0.1); box-shadow: 0 0 20px rgba(184, 107, 37, 0.2); transform: translateY(-2px); }

/* Proof Modal & Graph Modal Overlay 共通 */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(17, 26, 36, 0.96); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 2000; display: none; justify-content: center; align-items: center; /* 初期状態は none。jsで flex にする */
    opacity: 0; transition: opacity 0.5s ease;
}
.modal-overlay.active { opacity: 1; }
/* #proof-overlay は flex-start (上寄せ) にする */
#proof-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(17, 26, 36, 0.85); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 2000; 
    display: none; /* ★ flex から none に変更（通常時は存在ごと完全に消す） */
    justify-content: center; align-items: flex-start; overflow-y: auto; 
    opacity: 0; transition: opacity 0.6s ease; 
}
#proof-overlay.active { 
    display: flex; /* ★ active になったら初めて出現させる */
    opacity: 1; 
}
#graphModal.active { display: flex; }

body.proof-open .hero-banner, body.proof-open #axiom-layer, body.proof-open footer { transform: scale(0.96) translateY(20px); filter: blur(4px) brightness(0.6); }

.proof-container { width: 100%; max-width: 900px; padding: 100px 40px; transform: translateY(50px); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s; }
#proof-overlay.active .proof-container { transform: translateY(0); }

/* 閉じるボタン */
.close-btn { 
    position: fixed; top: 30px; right: 40px; background: none; border: none; color: var(--text-muted); 
    font-size: 3rem; font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; cursor: pointer; transition: all 0.3s; z-index: 2100; 
}
.close-btn:hover, .modal-close:hover { color: #fff; transform: rotate(90deg); }

.proof-section { border-left: 3px solid var(--color-tech); padding: 10px 0 10px 40px; margin-bottom: 80px; }
.proof-title { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.6rem; color: var(--color-tech); margin-bottom: 30px; letter-spacing: 2px; }
.proof-text { font-family: 'Kyokasho Set', 'Klee One', serif; font-size: 1.15rem; color: #D1D8E0; line-height: 2.2; text-align: justify; }
.proof-text p { margin-bottom: 1.5em; }

.corollary-container { display: flex; flex-direction: column; gap: 30px; }
.corollary-box { border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.3); padding: 40px; transition: border-color 0.4s ease, background 0.4s ease; }
.corollary-box:hover { border-color: var(--line-color); background: rgba(184, 107, 37, 0.05); }
.corollary-title { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.25rem; color: #fff; margin-bottom: 20px; letter-spacing: 1.5px; display: flex; align-items: center; gap: 15px; }
.corollary-title::before { content: '+'; color: var(--color-tech); font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 1.8rem; }
.corollary-text { font-family: 'Kyokasho Set', 'Klee One', serif; font-size: 1.1rem; color: var(--text-muted); line-height: 2.0; text-align: justify; padding-left: 35px; }
.math { font-family: 'Times New Roman', serif; font-style: italic; letter-spacing: 1px; }

/* --- 5. 共通アニメーション・図形定義 --- */
@keyframes runLightningAnim {
    0% { stroke-dashoffset: var(--len); opacity: 1; filter: drop-shadow(0 0 15px currentColor) brightness(2.5); stroke-width: 6; }
    20% { opacity: 0.6; filter: drop-shadow(0 0 5px currentColor) brightness(1); stroke-width: 2; }
    40% { opacity: 1; filter: drop-shadow(0 0 25px currentColor) brightness(3); stroke-width: 7; }
    60% { opacity: 0.5; filter: drop-shadow(0 0 5px currentColor) brightness(1); stroke-width: 2; }
    80% { opacity: 1; filter: drop-shadow(0 0 15px currentColor) brightness(2.5); stroke-width: 5; }
    100% { stroke-dashoffset: -100; opacity: 0; stroke-width: 2; }
}
@keyframes rippleEffect { 
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; border-width: 3px; } 
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; border-width: 0; } 
}

.node-active-glow { filter: drop-shadow(0 0 10px var(--glow-color)); transform: scale(1.15) !important; transition: all 0.05s ease-out; }
.shape.circle.node-active-glow, .shape.square.node-active-glow, .ext-node.node-active-glow { border-color: #fff !important; box-shadow: 0 0 25px var(--glow-color), inset 0 0 15px var(--glow-color) !important; }
.ext-node.node-active-glow { color: #fff !important; }
.shape.triangle-left.node-active-glow { border-right-color: #fff !important; }
.shape.triangle-down.node-active-glow { border-top-color: #fff !important; }
.node-vtm-fire { border-color: #fff !important; background: var(--glow-color) !important; box-shadow: 0 0 40px var(--glow-color) !important; transform: scale(1.2) !important; }

/* SRX 基本ノードとラベル */
.srx-node { position: absolute; width: 0; height: 0; display: flex; justify-content: center; align-items: center; z-index: 2; }
.shape { transition: all 0.1s ease; flex-shrink: 0; }
.shape.circle { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; }
.shape.square { border: 2px solid; }

.label { position: absolute; font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; color: #fff; font-size: 1rem; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 2px 4px rgba(0,0,0,0.8); z-index: 10; }
.label small { font-family: 'Poiret One', 'Kyokasho Set', 'Klee One', serif; font-size: 0.85rem; color: var(--text-muted); letter-spacing: 1px; display: block; margin-top: 5px; }
.top-label { bottom: calc(100% + 15px); text-align: center; }       
.bottom-label { top: calc(100% + 15px); text-align: center; }       
.left-label { right: calc(100% + 20px); text-align: right; }        
.right-label { left: calc(100% + 20px); text-align: left; }         
.center-label { position: static; text-align: center; text-shadow: none; font-size: 1.2rem;} 
.center-label small { color: rgba(255,255,255,0.9); }

/* --- 6. スマホ対応 (UI系) --- */
@media screen and (max-width: 768px) {
    .hero-banner { height: 150px; }
    .banner-title { right: 5%; font-size: 1.8rem; letter-spacing: 2px; }
    .banner-subtitle { right: 5%; font-size: 1.0rem; }
    .tech-top-main, #axiom-layer, .proof-container { padding: 0 20px; }
    .page-title-btn { font-size: 1.4rem; padding: 10px 20px; }
    .patent-section { padding: 30px 20px; }
    .patent-title { font-size: 1.5rem; }
    .patent-status-list { flex-direction: column; gap: 10px; }
    .patent-badge { width: 100%; }
    .axiom-title { font-size: 1.6rem; text-align: left; }
    .axiom-text { text-align: left; text-align-last: left; }
    .proof-section { padding-left: 20px; }
    .corollary-box { padding: 30px 20px; }
    .corollary-text { padding-left: 0; }
    .close-btn, .modal-close { top: 15px; right: 20px; font-size: 2.5rem; }
    .nav-btn { font-size: 0.9rem; }
}
