
.heading-section {
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 16px;
}
.heading-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 2px;
}
.heading-section h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.company-name-sub {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 300;
}
/* トップページの .header_logo h1 と同じ扱い */
.header_logo_wrap {
  display: flex;
  width: 200px;
  height: auto;
  margin: 0;
  padding: 0;
}
/* ===== 下層ページ タイトル h1 ===== */
.page-section__title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: bold;
  color: #222;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #b7cdda;
}
/* ===== company.css より ===== */
.company_txt {
  line-break: anywhere;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.company_txt p {
  margin-bottom: 15px;
}
.company_txt p:last-child {
  margin-bottom: 0px;
}
@media only screen and (max-width: 1024px) {
  .company_txt p {
    font-size: 14px;
    margin-bottom: 10px;
  }
}
/* ===== contents.css より ===== */
p {
  line-height: 170%; /* フォントサイズの170% */
}
hr {
  margin: 20px 0;
  border: none;
  border-top: 2px dashed #999; /* 点線に変更 */
  border-top: 1px dashed #999; /* 1pxの細い点線に変更 */
}
ul.cp_list {
  padding: 0.5em;
  list-style-type: none;
}
ul.cp_list li {
  position: relative;
  padding: 0em 0.3em 0.3em 1.3em;
}
ul.cp_list li::before {
  position: absolute;
  content: '';
  display: block;
  top: 0.5em;
  left: 0;
  width: 6px;
  height: 6px;
  border-right: 3px solid #00BCD4;
  border-bottom: 3px solid #00BCD4;
  transform: rotate(-45deg);
}
/* 小見出し */
.ttl_line9 {
  background-image: linear-gradient(#84dfef 50%, #3a7c9d 50%);
  background-size: 8px 100%;
  background-repeat: no-repeat;
  padding-left: 18px;
  font-family: 'Kosugi Maru', sans-serif;
}
/* 空のdivに高さを指定して余白を作成 */
.spacer {
  height: 20px;
}

/* 会社概要テーブル */
:root {
  --navy: #1a3a5c;
  --blue: #1e6fa8;
  --accent: #2d9cdb;
  --border: #c8daea;
  --text: #2c3e50;
  --label-bg: #e8f1f9;
}
.table-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(30, 111, 168, 0.08);
}
.table-card .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  animation: tcFadeInUp 0.4s ease both;
}
.table-card .row:last-child {
  border-bottom: none;
}
.table-card .row:hover {
  background: #fafcff;
}
.table-card .row:nth-child(1) {
  animation-delay: 0.05s;
}
.table-card .row:nth-child(2) {
  animation-delay: 0.10s;
}
.table-card .row:nth-child(3) {
  animation-delay: 0.15s;
}
.table-card .row:nth-child(4) {
  animation-delay: 0.20s;
}
.table-card .row:nth-child(5) {
  animation-delay: 0.25s;
}
.table-card .row:nth-child(6) {
  animation-delay: 0.30s;
}
.table-card .row:nth-child(7) {
  animation-delay: 0.35s;
}
.table-card .row:nth-child(8) {
  animation-delay: 0.40s;
}
.table-card .row:nth-child(9) {
  animation-delay: 0.45s;
}
.table-card .row:nth-child(10) {
  animation-delay: 0.50s;
}
@keyframes tcFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.table-card .label {
  background: var(--label-bg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.1em;
  border-right: 3px solid var(--accent);
}
.table-card .value {
  padding: 20px 28px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
  display: flex;
  align-items: center;
}
.table-card .value.top {
  align-items: flex-start;
  padding-top: 22px;
}
.table-card .value-inner {
  width: 100%;
}
.table-card .row.highlight .label {
  background: #ddeef8;
}
.table-card .row.highlight .value {
  background: #f5faff;
}
.table-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.table-card .tag {
  background: var(--label-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.6;
}
.table-card .reg-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
}
.table-card .reg-badge {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.table-card .area-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
}
.table-card .area-badge::before {
  content: '寮';
  font-size: 15px;
}
@media (max-width: 600px) {
  .table-card .row {
    grid-template-columns: 1fr;   /* 2列 → 1列：縦積みに */
  }
  .table-card .label {
    font-size: 12px;
    padding: 10px 16px;
    justify-content: flex-start; /* 左寄せ */
    border-right: none;          /* 縦区切り線を消す */
    border-bottom: 3px solid var(--accent); /* 代わりに下線 */
  }
  .table-card .value {
    padding: 14px 16px 18px;
    font-size: 13.5px;
  }
  /* highlight行はラベル・バリュー両方に背景を維持 */
  .table-card .row.highlight .label {
    background: #ddeef8;
  }
  .table-card .row.highlight .value {
    background: #f5faff;
  }
}
 /* ========== 下層ページ共通スタイル ========== */
/* 固定ヘッダー分の余白 */
main {
  padding-top: 0;
}
/* ページ上部ヒーロー（パララックス対応） */
.page-hero {
  width: 100%;
  margin-top: 0;
  position: relative;
  overflow: hidden; /* 背景がはみ出さないようクリップ */
  padding: 80px 20px;
  text-align: center;
}
/* 背景画像レイヤー */
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('./img/top2.webp'); /* ★画像パスを変更 */
  background-size: cover;
  background-position: center;
}
/* オーバーレイ */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
/* テキストを最前面に */
.page-hero__title, .page-hero__sub {
  position: relative;
  z-index: 1;
}
.page-hero__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.08em;
}
.page-hero__sub {
  font-size: clamp(13px, 1.3vw, 15px);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  letter-spacing: 0.1em;
}
/* コンテンツの余白 */
.page-section {
  width: 100%;
  padding: 60px 20px;
}
/* 本文テキスト */
.page-section p {
  font-size: clamp(15px, 1.3vw, 15px);
  color: #444;
  line-height: 1.85;
}
@media (max-width: 768px) {
  .page-hero {
    padding: 36px 16px;
  }
  .page-section {
    padding: 40px 16px;
  }
}
/* ========== 音声読み上げボタン（TTS） ========== */
.tts-bar {
  margin: 1.5rem 0 2rem;
  text-align: right;
}

.tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1.3em;
  border: 1.5px solid var(--blue);
  border-radius: 2em;
  background: transparent;
  color: var(--blue);
  font-size: 0.875rem;
  font-family: 'Montserrat', 'IBM Plex Sans JP', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-transition: background 0.2s, color 0.2s;
}

.tts-btn:hover {
  background: var(--blue);
  color: #fff;
}

.tts-btn.is-playing {
  background: var(--blue);
  color: #fff;
}

.tts-btn svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tts-btn {
    font-size: 0.8125rem;
    padding: 0.4em 1.1em;
  }
}

/* ========================================================
   タブ＆アコーディオン（スマホ時）
   PC: .tab-group でタブ表示
   SP (max-width: 768px): アコーディオンに切り替え
======================================================== */

/* ---------- 共通変数（style.cssと整合） ---------- */
:root {
  --tab-active:   #b7cdda;  /* c-btn と同じブルーグレー */
  --tab-hover:    #8aaec0;  /* c-btn hover と同じ */
  --tab-idle:     #e8eef2;  /* 非選択：薄いグレー */
  --tab-idle-hov: #cdd8df;  /* 非選択 hover：少し濃いグレー */
  --tab-radius:   6px;
  --tab-dur:      0.22s;
}

/* ========== PC: タブ ========== */
.tab-group {}

/* タブボタン列 */
.tab-group__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 3px solid var(--tab-active);
}

/* タブボタン */
.tab-group__btn {
  position: relative;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5a7080;
  background: var(--tab-idle);
  border: none;
  border-radius: var(--tab-radius) var(--tab-radius) 0 0;
  cursor: pointer;
  transition:
    background var(--tab-dur) ease,
    color      var(--tab-dur) ease;
  font-family: 'Montserrat', 'IBM Plex Sans JP', sans-serif;
  -webkit-appearance: none;
}

.tab-group__btn:hover {
  background: var(--tab-idle-hov);
  color: #2c3e50;
}

/* 選択中 */
.tab-group__btn.is-active {
  background: var(--tab-active);
  color: #fff;
  /* ボタン下の境界線と面一にする */
  margin-bottom: -3px;
  padding-bottom: 14px;
}
.tab-group__btn.is-active:hover {
  background: var(--tab-hover);
}

/* タブパネル */
.tab-group__panels {
  /* タブ切り替えアニメーション用 */
}

.tab-group__panel {
  display: none;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #dde8ef;
  border-top: none;
  border-radius: 0 0 var(--tab-radius) var(--tab-radius);
  animation: tabFadeIn var(--tab-dur) ease both;
}

.tab-group__panel.is-active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SP用アコーディオントリガーはPC時に非表示 */
.tab-group__acc-trigger {
  display: none;
}

/* ========== SP: アコーディオン ========== */
@media (max-width: 768px) {
  /* ナビ（タブボタン列）を隠す */
  .tab-group__nav {
    display: none;
  }

  .tab-group__panels {
    border: none;
  }

  /* パネルを全表示に戻す（JSで開閉制御） */
  .tab-group__panel {
    display: block;        /* 初期状態は全部見える状態にしてJSで制御 */
    padding: 0;
    border: none;
    border-radius: 0;
    animation: none;
    background: transparent;
  }

  /* アコーディオントリガー（各パネル先頭に挿入） */
  .tab-group__acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #5a7080;
    background: var(--tab-idle);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 0;
    font-family: 'Montserrat', 'IBM Plex Sans JP', sans-serif;
    transition:
      background var(--tab-dur) ease,
      color      var(--tab-dur) ease;
    -webkit-appearance: none;
  }

  .tab-group__acc-trigger:hover {
    background: var(--tab-idle-hov);
    color: #2c3e50;
  }

  /* 開いているアコーディオン */
  .tab-group__acc-trigger.is-open {
    background: var(--tab-active);
    color: #fff;
    border-radius: 4px 4px 0 0;
  }
  .tab-group__acc-trigger.is-open:hover {
    background: var(--tab-hover);
  }

  /* 矢印アイコン */
  .tab-group__acc-trigger::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--tab-dur) ease;
    flex-shrink: 0;
    margin-left: 12px;
  }

  .tab-group__acc-trigger.is-open::after {
    transform: rotate(-135deg);
  }

  /* アコーディオン本体（コンテンツ） */
  .tab-group__acc-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.2s ease;
  }

  .tab-group__acc-body.is-open {
    max-height: 2000px; /* コンテンツが入る十分な値 */
  }

  .tab-group__acc-inner {
    padding: 20px 16px 24px;
    background: #fff;
    border: 1px solid #dde8ef;
    border-top: none;
    border-radius: 0 0 4px 4px;
  }

  /* アコーディオン間のスペース */
  .tab-group__panel + .tab-group__panel {
    margin-top: 10px;
  }
}
.page-section--slider {
  padding-top: 0;
  padding-bottom: 20px;
  padding-left: 0;
  padding-right: 0;
}
/* ========== stat カウントアップ ========== */
.stat-section {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0;
  line-height: 1;
}
.stat-counter {
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.stat-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.08em;
}
.stat-item__bar {
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 99px;
  margin: 12px auto 0;
  transition: width 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-item__bar.is-run {
  width: 60px;
}
@media (max-width: 768px) {
  .stat-section {
    padding: 28px 0 36px;
  }
}

/* ========== サービスカードグリッド ========== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 48px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
  position: relative;
  box-shadow: 0 2px 8px rgba(26, 58, 92, 0.07);
  transition:
    border-color 0.22s ease,
    box-shadow   0.22s ease,
    transform    0.22s ease;
}

.svc-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(45, 156, 219, 0.18);
  transform: translateY(-4px);
}

/* アイコンゾーン（上・flex:1 で伸縮） */
.svc-card__icon-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-card__icon {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf4fb;
  border-radius: 50%;
  transition: background 0.22s ease;
}

.svc-card:hover .svc-card__icon {
  background: #d0eaf7;
}

.svc-card__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* テキストゾーン（下・固定） */
.svc-card__foot {
  padding-top: 12px;
}

.svc-card__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* ELECTRICAL + › を同一行に */
.svc-card__bottom-row {
  display: flex;
  align-items: center;
}

.svc-card__en {
  flex: 1;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding-left: 20px;
}

.svc-card__arrow {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  width: 20px;
  text-align: right;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.svc-card:hover .svc-card__arrow {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 600px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .svc-card {
    min-height: 200px;
    padding: 12px;
  }
  .svc-card__icon {
    width: 100px;
    height: 100px;
  }
  .svc-card__icon img {
    width: 54px;
    height: 54px;
  }
  .svc-card__name {
    font-size: 13px;
  }
}

/* ========== invisible-value フェードイン ========== */
.invisible-value-img {
  opacity: 0;
  animation: ivFadeInUp 1.4s ease forwards;
  animation-delay: 0.2s;
}

@keyframes ivFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 施設実績セクション ========== */
.facility-section {
  margin-top: 40px;
}

.facility-header {
  background: var(--navy);
  border-radius: 6px;
  padding: 16px 24px;
  margin-bottom: 32px;
}

.facility-header p {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: 0;
}

.facility-grid {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.facility-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.facility-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  background: #fff;
}

.facility-note-cell {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px 24px;
  font-size: 12px;
  color: #999;
  letter-spacing: 0.04em;
  background: #fff;
}

.facility-card__img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
}

.facility-card__body {
  flex: 1;
  min-width: 0;
}

.facility-badge {
  display: inline-block;
  background: #b8934a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.facility-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facility-list li {
  font-size: 14px;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px dashed #c8d8e4;
  line-height: 1.5;
}

.facility-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 600px) {
  .facility-grid {
    flex-direction: column;
  }
  .facility-header p {
    font-size: 13.5px;
  }
}

/* ===== facility-card スクロールフェードイン ===== */
/* JS が .is-visible を付与するまで非表示 */
.facility-card {
  opacity: 0;
  transform: translateY(-22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
/* JS なし環境向けフォールバック */
@media (prefers-reduced-motion: reduce) {
  .facility-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.facility-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 資料請求ページ：Lottie＋テキスト 2カラム ===== */
.doc-lead {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}
.doc-lead__lottie {
  flex: 0 0 auto;
}
.doc-lead__text {
  flex: 1;
  min-width: 0;
}
.doc-lead__text p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: #444;
}
.doc-lead__text p:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .doc-lead {
    flex-direction: column;
    align-items: center;  /* スマホ：Lottie＋テキストをセンタリング */
    gap: 16px;
  }
  .doc-lead__text {
    text-align: left;  /* テキスト本文は左揃えを維持 */
  }
}
