/* ============================================================
   page-sub.css
   サブページ共通スタイル
   base.css の後に読み込む
   ============================================================ */

/* ===== PAGE HERO（サブページ上部の帯） ===== */
.page-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}

/* グラデーション背景（CTAと同系統） */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #020c1b 0%, #041e3a 40%, #0a3f74 100%);
  background-size: 300% 300%;
  animation: gradFlow 18s ease infinite;
}

/* ネットワーク模様 Canvas（全面） */
.page-hero-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.page-hero-network canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* テキスト可読性のためのオーバーレイ */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right, rgba(2,12,27,0.75) 0%, rgba(2,12,27,0.35) 65%, transparent 100%),
    linear-gradient(to top,   rgba(2,12,27,0.55) 0%, transparent 60%);
}

/* グリッドテクスチャ */
.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(123,191,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,191,239,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content {
  position: relative;
  z-index: 10;
  padding: 0 64px 52px;
  max-width: 900px;
}
.page-hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}
.page-hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 0.5px;
  background: rgba(123,191,239,.6);
}
.page-hero-label span {
  font-size: 10px;
  color: rgba(123,191,239,.75);
  letter-spacing: .22em;
  font-weight: 300;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp .8s .35s forwards;
}
.page-hero-title em {
  color: var(--blue-bright);
  font-style: normal;
}
.page-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 0.5px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb-item {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb-item:hover { color: var(--blue-accent); }
.breadcrumb-sep {
  font-size: 11px;
  color: var(--text-muted);
  opacity: .5;
}
.breadcrumb-item.current {
  color: var(--text-mid);
  pointer-events: none;
}

/* ===== サブページ 本文レイアウト ===== */
.subpage-body {
  flex: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 52px 120px;
  box-sizing: border-box;
}

/* ===== サブページ 内部アンカーナビ（業務領域ジャンプ） ===== */
.anchor-nav {
  position: sticky;
  top: 64px; /* navの高さ分 */
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
}
.anchor-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-nav-inner::-webkit-scrollbar { display: none; }
.anchor-nav-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 16px 20px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.anchor-nav-link:hover { color: var(--blue-accent); }
.anchor-nav-link.active {
  color: var(--blue-accent);
  border-bottom-color: var(--blue-accent);
}

/* ===== 業務領域セクション ===== */
.business-section {
  padding: 100px 0;
  border-bottom: 0.5px solid var(--border);
}
.business-section:first-child { padding-top: 80px; }
.business-section:last-of-type { border-bottom: none; }

.business-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
/* 偶数番目は画像を左に */
.business-inner.reverse { direction: rtl; }
.business-inner.reverse > * { direction: ltr; }

.business-image {
  position: relative;
}
.business-img-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--blue-pale);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.business-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.business-img-frame:hover img { transform: scale(1.04); }
/* 画像の代わりのPlaceholder */
.business-img-frame .img-placeholder {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-align: center;
}
/* 画像右下の番号バッジ */
.business-num {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 72px;
  height: 72px;
  background: var(--navy-mid);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
}
.business-num-digit {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  font-family: var(--serif);
}
.business-num-label {
  font-size: 8px;
  color: var(--blue-bright);
  letter-spacing: .1em;
  font-weight: 300;
}

/* テキスト側 */
.business-text {}
.business-tag {
  font-size: 10px;
  color: var(--blue-accent);
  letter-spacing: .2em;
  font-weight: 400;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.business-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 0.5px;
  background: var(--blue-accent);
}
.business-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 15px;
}
.business-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: .06em;
  margin-bottom: 24px;
  font-style: italic;
}
.business-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2;
  font-weight: 300;
  margin-bottom: 32px;
}
.business-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--white);
  background: var(--blue-accent);
  padding: 13px 28px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: .06em;
  transition: background .2s, gap .2s;
}
.business-link:hover {
  background: #1a6cc0;
  gap: 16px;
}
.business-link::after { content: '→'; }

/* ===== 業務実績セクション ===== */
.record-section {
  padding: 80px 0 100px;
  background: var(--off-white);
}
.record-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 52px;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.record-card {
  background: var(--white);
  padding: 32px 36px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-left: 2px solid transparent;
  transition: border-color .2s, background .2s, transform .2s;
}
.record-card:hover {
  border-left-color: var(--blue-accent);
  background: var(--blue-pale);
  transform: translateX(4px);
}
.record-year {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.record-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .08em;
  margin-top: 4px;
  font-weight: 300;
}
.record-arrow {
  font-size: 18px;
  color: var(--blue-accent);
  opacity: 0;
  transition: opacity .2s;
}
.record-card:hover .record-arrow { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .page-hero-content { padding: 0 28px 40px; }
  .page-hero-title { font-size: 36px; }
  .breadcrumb-inner { padding: 12px 24px; }
  .anchor-nav-inner { padding: 0 24px; }
  .subpage-body { padding: 60px 24px 80px; }
  .business-inner { grid-template-columns: 1fr; gap: 40px; }
  .business-inner.reverse { direction: ltr; }
  .record-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .page-hero-title { font-size: 28px; }
  .record-grid { grid-template-columns: 1fr; }
  .business-title { font-size: 28px; }
}

/* ===== 会社概要セクション ===== */

.about-section {
  padding: 40px 0;
  border-bottom: 0.5px solid var(--border);
}
.about-section:first-child { padding-top: 0px; }
.about-section:last-of-type { 
  padding: 40px 0 0 0;
  border-bottom: none;
}

.fact_sheet_table {
  border-collapse: collapse;
  border: 0.5px solid var(--border);
  width: 100%;
}
.fact_sheet_table td, th {
  border: 0.5px solid var(--border);
  padding: 20px;
}
.fact_sheet_table th {
  background-color: #F2F2F2;
  text-align: left;
}

.access_table {
  border-collapse: separate;
  border-spacing: 10px;
  width: 100%;
}
.access_table td {
  border-right: 1px solid var(--border);
}
.access_table td:first-child { padding-right: 10px; }
.access_table td:last-of-type { 
  border-right: none;
}

/* ===== 研究実績セクション ===== */
.paper_list li, .meeting_list li{
  margin-bottom: 10px;
}
.paper_list li:last-of-type, .meeting_list li:last-of-type{
  margin-bottom: 0;
}
.paper_list li, .meeting_list li, .award_list li {
  margin-left: 20px;
}

/* ===== 採用情報セクション ===== */
.recruit_table {
  border-collapse: collapse;
  border: 0.5px solid var(--border);
  width: 100%;
}
.recruit_table td, th {
  border: 0.5px solid var(--border);
  padding: 20px;
}
.recruit_table th {
  width: 200px;
  background-color: #F2F2F2;
  text-align: left;
}

/* ===== 業務実績セクション ===== */
/* 各年度ブロック */
    .archive-item {
      border-top: 0.5px solid var(--border);
    }
    .archive-item:last-child {
      border-bottom: 0.5px solid var(--border);
    }
    /* アコーディオンのトリガー（年度ヘッダー） */
    .archive-trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 24px 0;
      background: none;
      border: none;
      cursor: pointer;
      text-align: left;
      transition: background .15s;
    }
    .archive-era {
      font-family: var(--serif);
      font-size: 22px;
      font-weight: 700;
      color: var(--text-dark);
      line-height: 1;
      white-space: nowrap;
    }
    .archive-year-sub {
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: .06em;
      font-weight: 300;
    }

    /* 実績リスト */
    .archive-works {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .archive-work-item {
      display: flex;
      align-items: baseline;
      gap: 14px;
      padding: 13px 0;
      border-bottom: 0.5px solid var(--border);
      font-size: 16px;
      color: var(--text-dark);
      line-height: 1.7;
    }
    .archive-work-item:last-child {
      border-bottom: none;
    }
    .archive-work-item::before {
      content: '';
      display: block;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--blue-bright);
      flex-shrink: 0;
      margin-top: 8px;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 600px) {
      .archive-era {
        font-size: 18px;
      }

      .archive-work-item {
        font-size: 13px;
      }
    }