/* ==========================================================
   cobol.css
   COBOL保守・移行対応 専用ページのスタイル
   既存サイト（reset.css / parts.css / layout.css）の後に読み込む前提
   既存の .btn / .btnlinestretches3 等のボタンスタイルはそのまま流用
========================================================== */

.cobol-hero,
.cobol-block,
.cobol-cta {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* ---------- ヒーロー ---------- */
.cobol-hero {
  text-align: center;
  padding-top: 120px;
}

.cobol-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #4fc3f7;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.cobol-hero__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}

.cobol-hero__lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 48px;
}

.cobol-hero__banner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.cobol-hero__banner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cobol-hero__num {
  font-size: 2.8rem;
  font-weight: 700;
  color: #0f3460;
  line-height: 1;
}

.cobol-hero__num small {
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 2px;
}

.cobol-hero__label {
  font-size: 0.8rem;
  color: #777;
  letter-spacing: 0.06em;
}

/* ---------- 共通ブロック ---------- */
.cobol-block--alt {
  background: #f7f9fc;
  max-width: none;
  padding-left: max(20px, calc((100% - 960px) / 2));
  padding-right: max(20px, calc((100% - 960px) / 2));
}

.cobol-block__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin: 0 0 28px;
}

.cobol-block__text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- 移行フロー（4ステップ） ---------- */
.cobol-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.cobol-flow__step {
  background: #ffffff;
  border-radius: 6px;
  padding: 26px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
}

.cobol-flow__num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4fc3f7;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.cobol-flow__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.cobol-flow__text {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ---------- 選ばれる理由 ---------- */
.cobol-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.cobol-reason {
  background: #ffffff;
  border-left: 3px solid #4fc3f7;
  border-radius: 0 6px 6px 0;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cobol-reason__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}

.cobol-reason__text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* ---------- CTA ---------- */
.cobol-cta {
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  max-width: none;
  padding-left: max(20px, calc((100% - 960px) / 2));
  padding-right: max(20px, calc((100% - 960px) / 2));
  color: #fff;
}

.cobol-cta__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.cobol-cta__text {
  font-size: 0.9rem;
  color: #cfd8e3;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cobol-cta .btn a {
  display: inline-block;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .cobol-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .cobol-reasons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cobol-hero {
    padding-top: 90px;
  }
  .cobol-hero__title {
    font-size: 1.7rem;
  }
  .cobol-hero__banner {
    gap: 36px;
  }
  .cobol-flow {
    grid-template-columns: 1fr;
  }
  .cobol-block,
  .cobol-block--alt,
  .cobol-cta {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
