/* ==========================================
 * 1. Base Structure & Global
 * ========================================== */
body {
  background-color: #050505; 
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .3);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, .3);
  position: relative;
  overflow-x: hidden;
}

.btn-light,
.btn-light:hover,
.btn-light:focus {
  color: #333;
  text-shadow: none; 
}

.cover-container {
  max-width: 42em;
  padding-top: 6rem; 
}


/* ==========================================
 * 2. Header & Top Navigation (White / Expanded)
 * ========================================== */
.brand-evastyle {
  font-size: 1.85rem !important;            
  font-weight: 900;             
  color: #fff;
  font-family: "Source Han Serif JP", "Source Han Serif", "Noto Serif JP", "MS Mincho", "MS 明朝", serif;
  letter-spacing: -0.1em;
  display: inline-block;
  transform: scaleX(0.85);      
  transform-origin: left center; 
  margin-left: -0.65rem !important; 
}

.brand-address {
  font-size: 1.15rem !important;           
  font-weight: 900 !important;            
  color: rgba(255, 255, 255, 0.9) !important; 
  letter-spacing: -0.05em;     
  margin-top: 0.25rem;
}

.nav-masthead .nav-link {
  font-size: 1.4rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: .25rem solid transparent;
  font-family: "Source Han Serif JP", "Source Han Serif", "Noto Serif JP", "MS Mincho", "MS 明朝", serif;
  font-weight: 900;
  letter-spacing: -0.1em;
  display: inline-block;
  transform: scaleX(0.85);
  transform-origin: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95) !important;
  transition: all 0.2s ease; 
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus,
.nav-masthead .active {
  color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

@media (min-width: 768px) {
  .brand-address {
    margin-top: 0;
    transform-origin: center center; 
  }
}


/* ==========================================
 * 3. 🌫️ 浮かびあがった背景の半透明効果
 * ========================================== */
.modal-backdrop.show {
  opacity: 1 !important; 
  background-color: rgba(235, 240, 245, 0.45) !important; 
}

.modal.show {
  backdrop-filter: blur(6px) contrast(85%) !important;
  -webkit-backdrop-filter: blur(6px) contrast(85%) !important;
}


/* ==========================================
 * 4. 📊 全モーダルの背景（A案：グリッド）と枠線設定
 * ========================================== */
.animated-eva-modal .modal-dialog {
  max-width: 1140px;
  width: 92%;
}

.animated-eva-modal .modal-content,
#philosophyModal .modal-content,
#accessMapModal .modal-content,
#contactFormModal .modal-content {
  background-color: #0d0d0d !important;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
  background-size: 25px 20px !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 3rem rgba(0, 0, 0, 0.9), inset 0 0 2rem rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
}

/* 内側のモーダルボディを安全に透過 */
.animated-eva-modal .modal-body {
  background-color: transparent !important;
}

.modal-dialog-scrollable .modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(5, 5, 5, 0.98) !important;
}


/* ==========================================
 * 5. About US (企業情報テーブル - 黒い溝完全消滅版)
 * ========================================== */
.eva-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important; 
  font-family: "Source Han Serif JP", "Source Han Serif", serif;
  box-shadow: 0 0 1rem rgba(255, 255, 255, 0.05);
  background-color: transparent !important;
  width: 100% !important;
  margin: 0 !important;
}

.eva-table th, .eva-table td {
  padding: 0.9rem 1.0rem !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important; 
  margin: 0 !important;
}

.eva-th {
  font-weight: 900;
  width: 25%;
  background-color: rgba(255, 255, 255, 0.08) !important; 
  margin: 0 !important;
  padding: 0 !important; 
}

/* 文字だけを安全にエヴァ風の長体（縦長）にして黒い溝の発生を完全に防御 */
.eva-th span, 
.eva-th div {
  display: block;
  padding: 0.9rem 1.0rem !important; 
  letter-spacing: -0.05em;
  transform: scaleX(0.85) !important; 
  transform-origin: left center;
  white-space: nowrap;
}

.eva-td {
  font-weight: 500;
  background-color: transparent !important;
}

.eva-table tr, .eva-table th, .eva-table td {
  margin: 0 !important;
  outline: none !important;
}


/* ==========================================
 * 6. Organization Chart (体制図 - 100%完全自動追従仕様)
 * ========================================== */
.eva-chart-container {
  background-color: #050505 !important; 
  border: 1px solid #ffffff !important; 
  box-shadow: inset 0 0 2rem rgba(0, 0, 0, 1), 0 0 1rem rgba(255, 255, 255, 0.1) !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1rem !important;
}

.eva-pure-chart-table {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 600px !important;
  min-width: 560px !important; 
  border-collapse: collapse !important;
  table-layout: fixed !important; 
}

.eva-pure-chart-table tr, .eva-pure-chart-table td {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

.eva-pure-chart-table td:nth-child(1) { width: 35% !important; } 
.eva-pure-chart-table td:nth-child(2) { width: 30% !important; } 
.eva-pure-chart-table td:nth-child(3) { width: 35% !important; } 

.chart-box-cell { vertical-align: middle; text-align: center !important; }
.vertical-align-top { vertical-align: top !important; }

/* 縦横の接続線の「ホワイトネオン発光」 */
.chart-h-line, .chart-v-line {
  height: 2px !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
}
.chart-v-line { width: 2px !important; margin: 0 auto !important; height: 100% !important; }

/* 💡 PC用自動計算：画面幅が変わっても隙間を作らず、はみ出さずに自動追従してジャスト結合 */
.connect-to-audit {
  position: absolute;
  top: 50%;
  left: 50%; 
  width: calc(100% + 2px) !important; 
  height: 2px;
  background-color: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
  z-index: 1 !important;
}

/* 監査役ボックスの左受け線 */
.audit-v-sub {
  position: absolute;
  top: 50%;
  left: -2px; 
  height: 2px;
  width: 20px !important; 
  background-color: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
  margin: 0 !important;
  z-index: 1 !important;
}

.line-height-30 { height: 30px !important; }

.branch-line-left { width: 50% !important; margin-left: 50% !important; }
.branch-line-center { width: 100% !important; }
.branch-line-right { width: 50% !important; margin-right: 50% !important; }
.branch-down-left, .branch-down-center, .branch-down-right { height: 15px !important; }

/* 組織ボックス（不透明な黒背景を死守して線をマスク） */
.eva-chart-node {
  display: inline-block !important;
  color: #ffffff !important; 
  background-color: #050505 !important; 
  border: 2px solid #ffffff !important; 
  padding: 0.65rem 1.2rem !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6) !important;
  transform: scaleX(0.85);
  transform-origin: center center;
  position: relative;
  z-index: 5 !important; 
}
.font-leader { padding: 0.85rem 2.2rem !important; font-size: 1.35rem !important; white-space: nowrap !important; }
.font-dept {
  font-size: 1.25rem !important;
  min-height: 140px !important;
  writing-mode: vertical-rl !important;
  -ms-writing-mode: tb-rl !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem 0.65rem !important;
}


/* ==========================================
 * 7. Corporate Philosophy & Access (Cards & Form Inputs)
 * ========================================== */
.eva-philosophy-section,
.eva-concept-card {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
  background-color: rgba(10, 10, 10, 0.6) !important;
}
.eva-concept-card:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 255, 255, 0.2) !important;
}

#accessMapModal .eva-map-container {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* 問い合わせフォーム入力ボックス */
.eva-form-input {
  border: 1px solid rgba(255, 255, 255, 0.3) !important; 
  border-radius: 0 !important;                          
  font-family: "Source Han Serif JP", "Source Han Serif", serif;
  font-weight: 500;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
  background-color: rgba(15, 15, 15, 0.95) !important;
  color: #ffffff !important;
}
.eva-form-input::placeholder { color: rgba(255, 255, 255, 0.25) !important; }
.eva-form-input:focus {
  border-color: #ffffff !important;
  background-color: rgba(25, 25, 25, 0.95) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.2) !important;
  outline: none !important;
}

/* 💡 復活・完全同期：「送信 / TRANSMIT ↗」システムボタンのホワイトサイバー化 */
.btn-outline-orange,
#contactFormModal .btn-outline-orange {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  background-color: rgba(20, 20, 20, 0.8) !important;
  border: 2px solid #ffffff !important;
  font-weight: 900 !important;
  padding: 0.6rem 2.5rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1) !important;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.15), 0 4px 15px rgba(0, 0, 0, 0.6) !important;
transition: all 0.25s ease;
border-radius: 0 !important;
}
/* 送信ボタンのホバー（マウス乗せ時）演出 */
.btn-outline-orange:hover,
#contactFormModal .btn-outline-orange:hover {
background-color: #ffffff !important;
color: #050505 !important;
text-shadow: none !important;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.9) !important;
}
/* ==========================================
• 
	8. Media Locking (Photos & Background)
• ========================================== */
.eva-photo-frame {
border: none !important;
box-shadow: none !important;
overflow: hidden !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0 !important;
width: 50% !important;
}
.eva-photo-frame .eva-img-lock {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
margin: 0 auto !important;
}
.eva-philosophy-hero-img {
width: 100% !important;
height: auto !important;
max-height: 380px !important;
overflow: hidden !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
padding: 6px !important;
background-color: #050505 !important;
}
.eva-philosophy-hero-img img {
width: 85% !important;
height: auto !important;
object-fit: contain !important;
margin: 0 auto !important;
display: block !important;
}
.eva-card-hero-img {
width: 100% !important;
height: auto !important;
max-height: 300px !important;
overflow: hidden !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
padding: 10px 6px !important;
background-color: #050505 !important;
}
.eva-card-hero-img .eva-img-lock {
width: 90% !important;
height: auto !important;
object-fit: contain !important;
margin: 0 auto !important;
display: block !important;
}
.eva-zoom-bg {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;
overflow: hidden;
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("images/iStock-2155123849.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
animation: evaSlowZoomLoop 30s ease-in-out 0s infinite alternate;
}
@keyframes evaSlowZoomLoop {
0% { transform: scale(1.0); }
100% { transform: scale(1.08); }
}
/* ==========================================
 * 9. Top Page Text Switching (A案調整版: じっくりタイピング)
 * ========================================== */
.message-container {
  position: absolute;       
  bottom: 8rem;             
  left: 5rem;               
  right: 5rem;              
  z-index: 10;
}
.message-evastyle {
  position: absolute;
  bottom: 0;                
  opacity: 0;
  overflow: hidden;         /* PC用のタイピング演出に必須 */
  white-space: nowrap;      /* PC用のタイピング演出に必須 */
  border-right: 2px solid transparent; /* 入力カーソル */
  font-family: "Source Han Serif JP", "Source Han Serif", serif;
  font-size: clamp(2.0rem, 2.8vw, 2.65rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.06em;  
  display: inline-block;
  transform: scaleX(0.85);
  transform-origin: left center; 
}

/* 💡 変更：1つ目と2つ目のメッセージの出現順（アニメーション割り当て）を完全に入れ替え */
.msg-first { animation: evaTypeTwoSlow 18s infinite; }  /* 先に出現（日本語長文用） */
.msg-second { animation: evaTypeOneSlow 18s infinite; } /* 後に出現（英語用） */

/* PC用：【後半のタイミング】（PHILOSOPHY WILL NOT CHANGE .） */
@keyframes evaTypeOneSlow {
  0%, 48% { opacity: 0; width: 0; border-right-color: #fff; }
  49.5% { opacity: 1; width: 0; border-right-color: #fff; }
  62%, 92% { opacity: 1; width: 23.5em; border-right-color: transparent; transform: scaleX(0.85) skewX(0deg); filter: blur(0); }
  /* 切り替わる瞬間のグリッチ（ノイズ） */
  93% { opacity: 0.3; width: 23.5em; transform: scaleX(0.95) skewX(15deg); filter: blur(2px); text-shadow: -2px 0 #fff, 2px 0 #000; }
  94%, 100% { opacity: 0; width: 0; }
}

/* PC用：【前半のタイミング】（私たちは生保システムの〜） */
@keyframes evaTypeTwoSlow {
  0%, 100% { opacity: 0; width: 0; border-right-color: #fff; }
  1.5% { opacity: 1; width: 0; border-right-color: #fff; }
  12%, 42% { opacity: 1; width: 38.5em; border-right-color: transparent; transform: scaleX(0.85) skewX(0deg); filter: blur(0); }
  /* 切り替わる瞬間のグリッチ（ノイズ） */
  43% { opacity: 0.3; width: 38.5em; transform: scaleX(0.95) skewX(-15deg); filter: blur(2px); text-shadow: 2px 0 #fff, -2px 0 #000; }
  44%, 99% { opacity: 0; width: 0; }
}

/* タブレット・中画面向けのレスポンシブ微調整 */
@media (max-width: 991.98px) {
  .message-container { left: 3rem !important; right: 3rem !important; }
  .message-evastyle { font-size: clamp(1.6rem, 3.5vw, 2.0rem) !important; }
}

/* ==========================================
 * 📱 スマホ表示時専用のメッセージ表示ルール（エフェクトなし・順番表示）
 * ========================================== */
@media (max-width: 767.98px) {
  .message-container { 
    bottom: 5.5rem !important; 
    left: 1.5rem !important; 
    right: 1.5rem !important; 
    width: calc(100vw - 3rem) !important; 
    height: 4.5rem !important; 
  }
  
  .message-evastyle { 
    font-size: clamp(1.15rem, 4.8vw, 1.4rem) !important; 
    white-space: normal !important;        
    overflow: visible !important;          
    border-right: none !important;         
    line-height: 1.4 !important;           
    width: 100% !important;                
    max-width: 100% !important;
  }

  /* 💡 変更：スマホ用アニメーションも出現順（割り当て）を完全に入れ替え */
  .msg-first { animation: evaMobileFadeTwo 18s infinite !important; }  /* 先に出現（日本語長文用） */
  .msg-second { animation: evaMobileFadeOne 18s infinite !important; } /* 後に出現（英語用） */

  /* スマホ用：【後半のタイミング】出現ループ */
  @keyframes evaMobileFadeOne {
    0%, 48% { opacity: 0; }
    49.5% { opacity: 1; }
    62%, 92% { opacity: 1; transform: scaleX(0.85) skewX(0deg); filter: blur(0); }
    93% { opacity: 0.3; transform: scaleX(0.95) skewX(15deg); filter: blur(2px); text-shadow: -2px 0 #fff, 2px 0 #000; }
    94%, 100% { opacity: 0; }
  }

  /* スマホ用：【前半のタイミング】出現ループ */
  @keyframes evaMobileFadeTwo {
    0%, 100% { opacity: 0; }
    1.5% { opacity: 1; }
    12%, 42% { opacity: 1; transform: scaleX(0.85) skewX(0deg); filter: blur(0); }
    43% { opacity: 0.3; transform: scaleX(0.95) skewX(-15deg); filter: blur(2px); text-shadow: 2px 0 #fff, -2px 0 #000; }
    44%, 99% { opacity: 0; }
  }
}


/* ==========================================
 * 10. PC Layout Responsive Tuning (min-width: 768px)
 * ========================================== */
@media (min-width: 768px) {
.col-md-4 { padding-bottom: 0.5rem !important; }
.eva-photo-frame { height: 220px !important; max-height: 220px !important; }
.eva-building-photos .eva-photo-frame img { object-position: center center !important; }
.animated-eva-modal .fs-5 { font-size: 1.4rem !important; }
.animated-eva-modal .small { font-size: 0.95rem !important; }
}

/* ==========================================
 * 11. Mobile Responsive Rules (max-width: 767.98px)
 * ========================================== */
@media (max-width: 767.98px) {
.cover-container {
padding-top: 5.5rem !important;
padding-left: 1.25rem !important;
padding-right: 1.25rem !important;
}

/* 会社名をスマホ表示で上部中央寄せにし、長体の起点もセンターに変更 */
.brand-evastyle { 
  font-size: 1.6rem !important; 
  margin: 0 auto !important; 
  display: block !important;
  text-align: center !important;
  transform-origin: center center !important;
}

/* 💡 変更：住所全体の折り返しを防ぐため、コンテナ幅いっぱいに収まるよう微調整 */
.brand-address { 
  font-size: 0.95rem !important; /* 1.0remからわずかに縮小 */
  color: rgba(255, 255, 255, 0.85) !important; 
  text-align: center !important;
  margin-top: 0.35rem !important;
  display: block !important;
  white-space: nowrap !important; /* 意図しない改行を完全に禁止 */
}

/* 💡 追加：郵便番号（〒108-0073）部分だけを自動的に小さくして視覚的バランスをとり、1行に収める */
.brand-address::first-letter,
.brand-address {
  word-spacing: -0.1em;
}

/* 💡 変更：問い合わせが改行されないよう、ナビバー全体の余白とフォントサイズを最適化 */
.nav-masthead { 
  display: flex !important; 
  justify-content: center !important; 
  margin-top: 1rem !important; 
  gap: 0.35rem !important; /* ボタン同士の間隔を均等に */
}

/* 💡 変更：メニューが1列に収まるようサイズ（1.15rem → 1.05rem）と左右パディングを縮小 */
.nav-masthead .nav-link { 
  font-size: 1.05rem !important; 
  padding: 0.35rem 0.45rem !important; 
  letter-spacing: -0.12em !important; /* エヴァ風の文字詰めで1列に収める */
}

.message-container { bottom: 6rem !important; padding: 0 1.5rem !important; }

.message-evastyle {
font-size: clamp(1.1rem, 4.8vw, 1.45rem) !important;
letter-spacing: -0.05em !important;
left: 1.5rem !important;
width: calc(100vw - 3rem) !important;
text-shadow: 0 0 12px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 1), 0 2px 4px rgba(0, 0, 0, 1), -1px -1px 0 rgba(0,0,0,0.8), 1px -1px 0 rgba(0,0,0,0.8), -1px 1px 0 rgba(0,0,0,0.8), 1px 1px 0 rgba(0,0,0,0.8) !important;
}

.eva-zoom-bg {
background-size: 165% auto !important;
background-position: center 42% !important;
background-color: #050505 !important;
background-image: linear-gradient(rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.15)), url("images/iStock-2155123849.jpg") !important;
animation: evaMobileZoomLoop 20s ease-in-out 0s infinite alternate !important;
transform-origin: center 42% !important;
}

/* スマホ用自動追従線にアップデート */
.eva-pure-chart-table td { position: relative !important; overflow: visible !important; }
.connect-to-audit {
top: 50% !important;
left: 50% !important;
width: calc(100% + 2px) !important;
transform: translateY(-50%);
z-index: 1 !important;
}
.audit-v-sub { display: none !important; }
.eva-chart-node { font-size: 0.95rem !important; padding: 0.4rem 0.6rem !important; white-space: nowrap !important; z-index: 5 !important; }
.font-leader { font-size: 1.05rem !important; padding: 0.6rem 1rem !important; white-space: nowrap !important; }
.font-dept { min-height: 120px !important; padding: 1rem 0.5rem !important; white-space: normal !important; }
.eva-photo-frame { height: auto !important; max-height: 200px !important; }
.eva-photo-frame .eva-img-lock { object-fit: cover !important; }
}

@media (max-width: 375px) {
.brand-evastyle { font-size: 1.4rem !important; }
/* 💡 変更：iPhone SEなどの極小画面でも絶対に改行させないための安全マージン */
.brand-address { font-size: 0.8rem !important; letter-spacing: -0.08em !important; }
.nav-masthead .nav-link { font-size: 0.9rem !important; padding: 0.25rem 0.35rem !important; }
.message-evastyle { font-size: 1.25rem !important; }
}

/* ==========================================
 * 11. Mobile Responsive Rules (max-width: 767.98px) 内に追加
 * ========================================== */

/* 💡 企業情報テーブルのスマホ最適化 */
.eva-table {
  display: table !important;
  width: 100% !important;
  table-layout: fixed !important; /* 各列の横幅を固定してガタつきを防止 */
}

/* 左列（項目名：会社名、代表者など）の調整 */
.eva-th {
  width: 32% !important; 
  vertical-align: middle !important;
  padding: 0 !important; 
}

.eva-th span, 
.eva-th div {
  display: block !important;
  transform: scaleX(0.85) !important; /* 美しい長体（85%）を維持 */
  transform-origin: center center !important; /* 2行の文字のセンターを揃える */
  white-space: normal !important; /* 改行を許可 */
  padding: 0.4rem 0.2rem !important; /* 上下の余白をタイトに調整 */
  font-size: 0.85rem !important; /* スマホ画面に合わせたフォントサイズ */
  letter-spacing: -0.05em !important;
  line-height: 1.1 !important; /* 💡【重要】2行の上下の隙間をギュッと詰めてエヴァの緊迫感を演出 */
  text-align: center !important;
}

/* 独自のスマホ用brタグを使用する場合の保険 */
.eva-mobile-br {
  display: block !important;
}
@media (min-width: 768px) {
  .eva-mobile-br { display: none !important; }
}




/* 右列（具体的な情報内容）の調整 */
.eva-td {
  width: 68% !important;
  font-size: 0.95rem !important;
  padding: 0.7rem 0.6rem !important;
  vertical-align: middle !important;
  /* 💡 単語の途中で不自然にブツ切り改行されるのを防ぐ設定 */
  word-break: normal !important; 
  overflow-wrap: anywhere !important; 
  line-height: 1.4 !important;
}




/* ==========================================
 * 🚨 【最終絶対領域】すべての文字の安全な強制白化
 * ========================================== */

.animated-eva-modal h1, .animated-eva-modal h2, .animated-eva-modal h3,
.animated-eva-modal h4, .animated-eva-modal h5, .animated-eva-modal h6,
.animated-eva-modal p,  .animated-eva-modal span, .animated-eva-modal a,
.animated-eva-modal th, .animated-eva-modal td {
color: #ffffff !important;
text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}
/* インラインスタイルの強制白化 */
.animated-eva-modal [style="color"] {
color: #ffffff !important;
}

/* ==========================================
 * 🤍 モーダル開閉に伴うナビバーの選択状態・フォーカス完全消去
 * ========================================== */

/* 1. 【解決】モーダルを開いている時（body.modal-open）は、選択中の下線も発光も強制的に消します */
body.modal-open .nav-masthead .nav-link.active,
body.modal-open .nav-masthead .nav-link:focus,
body.modal-open .nav-masthead .nav-link:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom-color: transparent !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95) !important;
}

/* 2. 【超重要】モーダルを「閉じた後」もブラウザに残り続けるフォーカス（白光り）を強制解除 */
.nav-masthead .nav-link:focus:not(:hover) {
  /* クリックした後の残留光を消し、未選択時のおとなしい透過白（0.85）に引き戻します */
  color: rgba(255, 255, 255, 0.85) !important;
  /* 残留した白い下線を透明にして消去 */
  border-bottom-color: transparent !important;
  /* 発光を通常時の黒い影にリセット */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95) !important;
}

/* ==========================================
 * 12. Footer Social Icons (SNSアイコン設定)
 * ========================================== */
.eva-footer-sns {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.5rem !important;      /* アイコン同士の間隔 */
  margin-top: 2rem !important; /* フッター内の上部余白 */
  margin-bottom: 1.5rem !important;
}

.eva-sns-link {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 2.8rem !important;
  height: 2.8rem !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important; /* 白い極細の枠線 */
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: rgba(5, 5, 5, 0.6) !important;
  transition: all 0.25s ease-in-out !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* アイコン内のロゴのサイズ調整 */
.eva-sns-link svg,
.eva-sns-link i {
  width: 1.35rem !important;
  height: 1.35rem !important;
  font-size: 1.35rem !important;
  fill: currentColor !important; /* SVGの色をCSSで制御 */
}

/* 💡 ホバー時（マウスを乗せた際）のエヴァ風ホワイト発光演出 */
.eva-sns-link:hover,
.eva-sns-link:focus {
  color: #050505 !important;
  background-color: #ffffff !important; /* 背景がパッと白に反転 */
  border-color: #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9) !important; /* ホワイトネオン発光 */
  transform: translateY(-2px) !important; /* わずかに浮き上がる */
}

/* スマホ表示時の微調整 */
@media (max-width: 767.98px) {
  .eva-footer-sns {
    gap: 1.25rem !important;
    margin-top: 1.5rem !important;
  }
  .eva-sns-link {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  .eva-sns-link svg,
  .eva-sns-link i {
    width: 1.15rem !important;
    height: 1.15rem !important;
    font-size: 1.15rem !important;
  }
}




