/* 1. ブラウザのカラースキームをライトモードに固定する */
:root {
  color-scheme: light;
}

/* 2. 背景色と文字色を明示的に指定する */
/* これにより、ブラウザ側による勝手な色の反転を防ぎます */
html, body {
  background-color: #ffffff !important;
  color: #333333 !important;
}

/* 3. ダークモード用のメディアクエリを無効化（上書き）する */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #ffffff !important;
    color: #333333 !important;
  }
  /* その他、ダークモードで消えてしまう要素があれば個別に白背景を指定 */
}

/* 経営理念セクション全体のコンテナ */
.philosophy-v2 {
  display: flex;
  flex-wrap: wrap; /* スマホで縦並びにするため */
  background-color: #fff;
  width: 100%;
  margin-bottom: 80px;
}

/* 左側：画像エリア */
.philosophy-v2-img {
  width: 50%; /* PCでは半分 */
  line-height: 0;
}

.philosophy-v2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせて綺麗にトリミング */
}

/* 1. 外側のボックス（全体を縦並びにして整列） */
.philosophy-v2-box {
  width: 50%;
  padding: 60px; /* 四方の余白を統一 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上・中・下で均等に配置 */
  box-sizing: border-box;
  background-color: #fff;
}

.philosophy-v2-header {
  margin-bottom: 30px;
}

/* 2. 図解エリア（ここが重要） */
.philosophy-v2-diagram-area {
  width: 100%; /* 横幅いっぱいにして */
  display: flex;
  justify-content: center; /* 中身を左右中央に */
  margin: 40px 0; /* 上下の余白 */
}

/* 3. 画像を包むdiv */
.diagram-img {
  width: 100%;
  max-width: 400px; /* 画像を小さくしたい場合はここで調整 */
  text-align: center; /* 万が一のための保険 */
}

/* 4. 画像自体 */
.diagram-img img {
  width: 100%; /* .diagram-imgの幅に合わせる */
  height: auto;
  display: block;
  margin: 0 auto; /* 左右中央寄せ */
}

/* 下部テキストエリア */
.philosophy-v2-text-area {
  width: 100%;
}

.main-copy {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* 英語テキストを表示するための設定 */
.sub-text-group .english {
  display: block !important; /* 強制的に表示 */
  margin-top: 20px;
  font-size: 14px;
  color: #989898; /* グレー系の色 */
  line-height: 1.6;
  font-style: italic; /* 斜体にする場合 */
}

/* 英語テキスト内のspanタグをリセット */
.sub-text-group .english .is-pc-inline,
.sub-text-group .english .is-sp-block {
  display: inline !important; /* 子要素も強制表示 */
  color: inherit;
  font-size: inherit;
}

/* スマホ・タブレット対応 (1024px以下) */
@media screen and (max-width: 1024px) {
  .philosophy-v2-img,
  .philosophy-v2-box {
    width: 100%; /* 縦並びに変更 */
  }
  
  .philosophy-v2-img {
    height: 300px; /* スマホ時の画像高さ */
  }

  .philosophy-v2-box {
    padding: 40px 20px;
  }
  
  .philosophy-v2-text-area .main-copy {
    font-size: 22px;
  }
}

/* 共通パーツ（もし既存になければ） */
.is-sp-block {
  display: none;
}
@media screen and (max-width: 768px) {
  .is-sp-block {
    display: block;
  }
}

/* モーダル背景 */
.modal-overlay {
    display: none; /* 最初は隠す */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* モーダル本体 */
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 5px;
}

/* 閉じるボタン */
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* 中身のスタイル */
.modal-body img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 20px;
    color: #004098;
    margin-bottom: 15px;
}

.modal-body p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

/* クリックできることを示す */
.thumb.js-modal-open {
    cursor: pointer;
    transition: opacity 0.3s;
}

.partnership-declaration {
  width: 100%;
  padding: 80px 0;
  background: #fff;

  /* 見出し：左側120pxの位置（既存の.innerに依存） */
  .headline-area.inner {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 30px;
  }

  /* 中央寄せボックス：1440px時に左右255pxの余白 = 幅930px */
  .declaration-center-box {
    max-width: 930px; 
    margin: 0 auto; /* これで930pxの箱が画面中央に来ます */
    padding: 0 20px; 
    text-align: left; /* テキストは左揃え */

    @media screen and (max-width: 1024px) {
      padding: 6.944vw;
  }

  }

  /* 画像をセンターにするための最重要設定 */
  .partnership-img-wrap {
    width: 100%;
    margin-bottom: 50px;
    text-align: center; /* 行内要素としての中央寄せ */
    
    img {
      display: inline-block; /* text-align:centerを効かせる */
      width: 328px;
      height: 168px;
      object-fit: contain;
      vertical-align: bottom;
    }
  }

  /* テキスト設定 */
  .declaration-content {
    font-size: 16px;
    line-height: 1.8;
    
    .declaration-lead { margin-bottom: 30px; }

    .declaration-items {
      margin-bottom: 40px;
      dt { font-weight: bold; margin-bottom: 5px; }
      dd { margin-bottom: 25px; }
      
      .sub-items {
        display: block;
        margin-top: 15px;
      }
    }

    .signature {
      margin-top: 40px;
      font-weight: bold;
    }
  }
}

.slider-list li a h3 {
    color: #000;
}

[id^="interview-"] {
    scroll-margin-top: 100px;
}

.num {
    opacity: 1;
}

.recuit-info-details {
  margin-bottom: 30px;
}

.no-wrap {
    display: inline-block;
    white-space: nowrap;
}

/* --- 親要素の基準設定 --- */
.product-point-img {
  position: relative;
}

/* --- span共通：波紋の土台 --- */
.product-point-img span {
  position: absolute;
  display: block;
  cursor: pointer;
  z-index: 10;
}

.product-point-img span img {
  position: relative;
  z-index: 5; /* 画像を波紋より上に */
  width: 100%;
  height: auto;
  display: block;
}

/* --- ビーコンエフェクト（波紋）本体 --- */
.product-point-img span::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 70, 80, 0.7) !important; /* 基本色 */
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: rippleBeam 2s infinite;
}

/* --- アクティブ時（.is-activeがついた時だけ黄色） --- */
.product-point-img span.is-active::after {
  background-color: rgba(255, 255, 0, 0.8) !important; /* 黄色に上書き */
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* --- 個別位置の微調整（PCサイズ） --- */
/* 01: 左下の丸に合わせて配置 */
.product-point-img .point01 { width: 215px; height: 92px; left: 114px; top: 59px; }
.product-point-img .point01::after { left: 183px; bottom: 1px; }

/* 02: 左下の丸に合わせて配置 */
.product-point-img .point02 { width: 151px; height: 130px; left: 276px; top: -27px; }
.product-point-img .point02::after { left: 119px; bottom: 2px; }

/* 03: 左上の丸に合わせて配置 */
.product-point-img .point03 { width: 172px; height: 120px; left: 390px; top: 244px; }
.product-point-img .point03::after { left: 2px; top: 1px; }

/* --- アニメーションの定義 --- */
@keyframes rippleBeam {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* --- スマホ用の調整 --- */
@media screen and (max-width: 768px) {
  .product-point-img {
    width: 335px;
    margin: 0 auto 30px;
  }
  .product-point-img .point01 { width: 107px; height: 46px; left: 40px; top: 32px; }
  .product-point-img .point02 { width: 75px; height: 65px; left: 126px; top: -10px; }
  .product-point-img .point03 { width: 86px; height: 60px; left: 190px; top: 115px; }
  
  /* スマホでは波紋を少し小さく */
  .product-point-img span::after {
    width: 20px;
    height: 20px;
  }
  .product-point-img .point01::after { left: 89px; bottom: -2px; }
  .product-point-img .point02::after { left: 57px; bottom: -1px; }
  .product-point-img .point03::after { left: -1px; top: -2px; }
}

/* =============================================
   MVお知らせ専用：外部影響を完全リセット版 (CSS)
   ============================================= */

/* 1. 親：基準点を絶対にここにする */
.top-mv-section {
    position: relative !important;
}

/* 2. 枠本体：左下に固定し、最前面に */
.top-mv-section .top-news-ticker-exclusive {
    position: absolute !important;
    left: 30px !important;
    bottom: 30px !important;
    top: auto !important; /* 上に飛ばない */
    z-index: 9999 !important; /* 動画の裏に隠れない */
    display: block !important;
    width: 390px !important;
    background-color: #F5F7FC !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. 親リンク：左右に分ける */
.top-mv-section .ticker-exclusive-anchor {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important; /* 高さを揃えて縦線を出す */
    text-decoration: none !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

/* 4. 左側ラベル看板 */
.top-mv-section .ticker-exclusive-label-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 25px !important;
    border-right: none !important; /* 既存の長い線を消す */
    flex-shrink: 0 !important;
    position: relative !important; /* 線の基準点にする */
}

.top-mv-section .ticker-exclusive-label-box::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 20% !important;    /* 上から20%空ける */
    bottom: 20% !important; /* 下から20%空ける */
    width: 1px !important;
    background-color: #d1d9e8 !important; /* 線の色 */
    display: block !important;
}

.top-mv-section .ticker-exclusive-label-box .label-text {
    color: #2860bc !important;
    font-weight: bold !important;
    font-size: 18px !important;
    display: block !important;
}

/* 5. 右側：コンテンツエリア */
.top-mv-section .ticker-exclusive-content-box {
    flex: 1 !important;
    padding: 12px 20px !important;
    display: flex !important;
    flex-direction: column !important; /* 確実に上下2段にする */
    justify-content: center !important;
    min-width: 0 !important;
    text-align: left !important;
}

/* 6. 右側上段（日付・カテゴリ） */
.top-mv-section .meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 5px !important;
}

.top-mv-section .exclusive-date {
    display: inline-block !important;
    font-size: 14px !important;
    color: #2860bc !important;
    font-weight: 600 !important;
}

.top-mv-section .exclusive-cat {
    display: inline-block !important;
    background-color: #fff !important;
    color: #2860bc !important;
    padding: 2px 12px !important;
    font-size: 11px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    font-weight: bold !important;
}

/* 7. 右側下段（タイトル） */
.top-mv-section .exclusive-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-color: #ccc !important;
    
    /* 1行で省略 */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.5 !important;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .top-mv-section .top-news-ticker-exclusive {
        left: 15px !important;
        right: 15px !important;
        bottom: 5px !important;
        width: auto !important;
    }

    .top-mv-section .ticker-exclusive-label-box {
        padding: 0 15px !important;
    }

    .top-mv-section .exclusive-title {
        font-size: 13px !important;
    }
}