/* =============================================================
   0. 変数・共通ユーティリティ
   ============================================================ */
:root {
    --brand: rgb(37, 56, 100); /* ボタンなど基調色  */
    --brand-hover: rgb(4, 26, 79);
    --radius-card: 16px;
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.05);
    --text-body: 0.9rem;
}

/* =============================================================
   1. HERO
   ============================================================ */
.verification-hero {
    position: relative;
    text-align: center;
    color: #fff;
}

/* 背景画像 */
.verification-hero picture,
.verification-hero img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
}

/* 半透明マスク（画像の上／文字の下） */
.verification-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 1;
}

/* ---------- テキストブロック ---------- */
.service-hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 画面中央寄せ */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(1.2rem, 2.5vw, 2.4rem); /* h1 と p の間隔を画面幅で調整 */
    z-index: 2; /* マスクより前面 */
    max-width: 90%;
}

/* 見出し */
.service-hero-text h1 {
    margin: 0; /* gap に余白を任せる */
    font-size: clamp(2rem, 4vw, 3rem);
}

/* サブコピー */
.service-hero-text .tagline {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    position: static !important; /* 古い absolute 指定を無効化 */
    transform: none !important;
}

/* =============================================================
   2. CARDS – グリッドレイアウト
   ============================================================ */
.verification-cards {
    display: grid;
    gap: 32px;
    margin-block: 64px;
}
@media (min-width: 1024px) {
    .verification-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .verification-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 639px) {
    .verification-cards {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   3. CARD 本体
   ============================================================ */
.verification-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.verification-card .thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.verification-card .body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.verification-card .body h2 {
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.verification-card .body p {
    flex: 1;
    font-size: var(--text-body);
    line-height: 1.6;
    margin: 0 0 12px;
}

/* =============================================================
   4. “詳しく見る” ボタン
   ============================================================ */
.btn {
    align-self: flex-start;
    background: var(--brand);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: var(--text-body);
    text-decoration: none;
    transition: background 0.2s;
}
.btn:hover {
    background: var(--brand-hover);
}

.make-bold {
    font-weight: bold;
}

/* ---------- 横棒アクセント付き h2 ---------- */
.section-band {
    /* ラッパー */
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: clamp(48px, 6vw, 72px) 0 24px;
}
.section-band::before {
    /* 横棒 */
    content: "";
    flex: 0 0 56px;
    height: 4px;
    background: rgb(37, 56, 100);
}
.section-band h2 {
    /* 本文見出し */
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}


/* =============================================================
   全ての h2 左側にブランドカラーの縦線を付与
   ============================================================= */
h2 {
  position: relative;
  /* 左側に線分のスペースを確保 */
  padding-left: 1.2rem;
}

h2::before {
  content: "";
  position: absolute;
  /* 見出しテキストの中央に縦線を合わせる */
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  /* 線の太さ・長さ */
  width: 8px;
  height: 1.2em;
  background-color: var(--brand);
  /* お好みで角を丸めても可 */
  border-radius: 2px;
}


/* ===== Contact CTA（カードリンク：ライトテーマを明るく） ===== */
.contact-cta{
  --ink: #253864;
  --ink-sub: #44536a;

  /* 以前: #eef3fa → さらに明るい紙色へ */
  --bg: #f6f9ff;             /* #f6f9ff は非常に淡いブルー系の紙色 */
  --bd: #e9eef7;             /* 境界線も明るく */

  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;

  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--bd);
  border-radius: 14px;

  /* 白の被せを少し薄く → 透明感を上げて軽やかに */
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.92)),
    var(--bg);

  /* 影を軽く・広げすぎない（重さを抑制） */
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  color: var(--ink);

  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background-color .15s ease;
}

.contact-cta:hover{
  transform: translateY(-1px);
  border-color: #dbe5f3;  /* ほんの少しだけ濃く */
  /* 白の被せをさらに薄くして “ふわっ” と見せる */
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.88)),
    var(--bg);
  box-shadow: 0 8px 22px rgba(0,0,0,.09);
}

.contact-cta:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(37,56,100,.45);
}

.contact-cta:visited{ color: inherit; }

.contact-cta__body{ min-width: 0; }
.contact-cta__eyebrow{
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #8aa0b8;
  margin: 0 0 4px 0;
}
.contact-cta__title{
  margin: 0 0 4px 0;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.35;
  font-weight: 800;
  color: var(--ink);
}
.contact-cta__desc{
  margin: 0;
  font-size: .92rem;
  color: var(--ink-sub);
}

@media (max-width: 640px){
  .contact-cta{
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 16px;
  }
}

/* ダークテーマは従来設定のまま（暗い下地で良好なコントラストを維持） */
@media (prefers-color-scheme: dark){
  .contact-cta{
    --ink: #e7eefc;
    --ink-sub: #c8d5ea;
    --bg: #0f172a;
    --bd: #334155;

    background:
      linear-gradient(180deg, rgba(15,23,42,.80), rgba(15,23,42,.80)),
      var(--bg);
    border-color: var(--bd);
    box-shadow: 0 6px 20px rgba(0,0,0,.5);
  }
  .contact-cta:hover{
    background:
      linear-gradient(180deg, rgba(15,23,42,.85), rgba(15,23,42,.85)),
      var(--bg);
    border-color: #475569;
    box-shadow: 0 10px 24px rgba(0,0,0,.55);
  }
}

@media (prefers-reduced-motion: reduce){
  .contact-cta{ transition: none; }
}
