/* =============================================
   インプラス 共通コンポーネント  css/components.css
   全ページ共通 UI パーツ
   ============================================= */

/* ── ページコンテンツラッパー ── */
.page-content {
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── コンテンツエリア共通ラッパー ── */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px 32px;
}

/* ── セクションタイトル（h2相当） ── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── 見出し（旧デザインページとの互換） ── */
.content-wrapper h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.5em 0 1em;
  padding: 0.4em 0.8em;
  border-left: 5px solid var(--accent);
  border-bottom: 1px solid var(--border);
  background: var(--light);
  color: var(--navy);
}

.content-wrapper h3 {
  font-size: 0.95rem;
  padding: 0.3em 0.8em;
  border: 1px solid var(--border);
  color: var(--navy);
  margin: 1em 0 0.5em;
}

.content-wrapper h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1.2em 0 0.4em;
  padding: 0.2em 0.6em;
  border-left: 4px solid var(--blue);
  background: var(--light);
  color: var(--navy);
}

/* ── テキスト段落 ── */
.content-wrapper p {
  line-height: 1.8;
  margin: 0.6em 1em;
}

/* ── 沿革・取り組みリスト ── */
.enkaku {
  display: flex;
  gap: 1em;
  margin: 0.3em 0 0.3em 2em;
}
.enkaku .year {
  font-weight: 700;
  width: 5em;
  flex-shrink: 0;
  color: var(--blue);
}
.enkaku .content {
  line-height: 1.7;
}

.torikumi {
  display: flex;
  gap: 1em;
  margin: 0.3em 0 0.3em 2em;
}
.torikumi .l-item {
  font-weight: 700;
  width: 7em;
  flex-shrink: 0;
  color: var(--navy);
}
.torikumi .r-item {
  line-height: 1.7;
}

/* ── カード・ボックス ── */
.bbox {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
  margin-bottom: 16px;
}

/* ── テーブル（共通） ── */
.content-wrapper table {
  border-collapse: collapse;
  width: 90%;
  margin: 0.5em auto;
  line-height: 1.6;
}
.content-wrapper th,
.content-wrapper td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  line-height: 1.5;
}
.content-wrapper th {
  background: var(--light);
  font-weight: 700;
  color: var(--navy);
}

/* ── フェードアップアニメーション ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ヒーロー共通パーツ ── */
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 255, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.8;
}

/* ── ヒーロー グリッドオーバーレイ ── */
.recruit-hero::before,
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── ヒーロー見出し ── */
.recruit-hero h1,
.contact-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}

/* ── フェードアニメーション（ヒーロー内） ── */
.hero-inner > * {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.55s; }
