@charset "UTF-8";

* {
  box-sizing: border-box;
}


/* セクション全体 */
.layout-sample {
  width: 100%;
  padding: 40px 20px;
}

/* レイアウト本体 */
.cards {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* 各バナー */
.card {
  display: block;
  width: 100%;
  text-decoration: none;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  line-height: 0;
}

/* 画像をきれいに表示 */
.card img {
  width: 100%;
  height: auto;
  display: block;
}

/* PCレイアウト */
@media screen and (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a b"
      "c c";
    gap: 28px 28px;
    align-items: start;
  }

  .card-a {
    grid-area: a;
  }

  .card-b {
    grid-area: b;
  }

  .card-c {
    grid-area: c;
    width: calc(50% - 14px);
    margin: 0 auto;
  }
}

/* 無料相談はこちらボタン */
.mv__btn01 {
  top: 600px;
  left: calc(52% + 400px);
  width: 260px;
  margin: 0;
  padding: 0;
  z-index: 4;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .mv__btn01 {
    left: 0;
    width: 100%;
  }
}

/* キービジュアル */
.ufb-kv {
  text-align: center;
}

.ufb-kv__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ufb-kv__note {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.8;
  color: #666;
  text-align: left;
}

/* メンテ不要テキスト */
.mv-subtext {
  width: 100%;
  background: #ffffff;
  padding: 16px 20px;
}

.mv-subtext p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.2em 0.35em;

  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #111;
  text-align: center;
}

.mv-subtext .text-black {
  color: #111;
}

.mv-subtext .is-blue {
  color: #2f6fb7;
}

@media screen and (max-width: 767px) {
  .mv-subtext {
    padding: 12px 14px;
  }

  .mv-subtext p {
    font-size: clamp(18px, 4.8vw, 24px);
    gap: 0.1em 0.25em;
    line-height: 1.5;
  }
}

/* =========================================
   セクション全体（どっしり）
========================================= */
.top-copy {
  width: 100%;
  padding: 48px 20px 44px; /* ← 上下詰め */
}

/* 内側 */
.top-copy__inner {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* テキスト */
.top-copy__text {
  flex: 1;
  text-align: center;
}

/* 青テキスト */
.top-copy__lead {
  margin: 0 0 14px; /* ← 詰める */
  color: #2f6fae;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* メイン */
.top-copy__title {
  margin: 0;
  color: #000;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.32; /* ← 重心下げ */
  letter-spacing: 0.03em;
}

.top-copy__title-line1,
.top-copy__title-line2 {
  display: block;
}

.top-copy__title-line1 {
  margin-bottom: 6px; /* ← 詰め */
}

.top-copy__title-line2 {
  white-space: nowrap;
}

/* ロゴ */
.top-copy__award img {
  width: 110px;
  height: auto;
  filter:
    drop-shadow(0 0 6px rgba(255,255,255,0.9))
    drop-shadow(0 0 14px rgba(255,255,255,0.8));
}

/* =========================================
   タブレット
========================================= */
@media (max-width: 1024px) {
  .top-copy {
    padding: 40px 16px 36px;
  }

  .top-copy__award img {
    width: 88px;
  }
}

/* =========================================
   スマホ（ここが重要）
========================================= */
@media (max-width: 767px) {

  .top-copy {
    padding: 24px 14px 26px; /* ← かなり詰める */
  }

  .top-copy__inner {
    gap: 10px;
  }

  .top-copy__lead {
    font-size: 14px;
    margin-bottom: 8px; /* ← 詰め */
    line-height: 1.35;
  }

  .top-copy__title {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.28; /* ← どっしり感 */
    letter-spacing: 0.02em;
  }

  .top-copy__title-line1 {
    margin-bottom: 4px;
  }

  .top-copy__award img {
    width: 64px;
  }
}

/* 極小 */
@media (max-width: 480px) {

  .top-copy {
    padding: 20px 12px 22px;
  }

  .top-copy__title {
    font-size: 20px;
    line-height: 1.25;
  }

  .top-copy__lead {
    font-size: 13px;
  }

  .top-copy__award img {
    width: 56px;
  }
}

/* =========================================
   極小スマホ（崩れ防止）
========================================= */
@media (max-width: 480px) {

  .top-copy__title {
    font-size: 20px;
    font-weight: 900;
  }

  .top-copy__lead {
    font-size: 12px;
  }

  .top-copy__award img {
    width: 60px;
  }
}


/* =========================
   全体（中央配置）
========================= */
.ufb-hero {
  width: 100%;
  padding: 30px 20px;
  box-sizing: border-box;
}

/* 中央寄せコンテナ */
.ufb-hero__inner {
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center; /* ← 中央寄せ */
  gap: 30px;
}

/* =========================
   金属画像（少し小さく）
========================= */
.ufb-hero__image {
  flex: 0 0 auto;
}

.ufb-hero__image img {
  width: 120px; /* ← 少し小さく */
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   テキスト（中央寄せ）
========================= */
.ufb-hero__content {
  text-align: center; /* ← ここ重要 */
}

/* ラベル＋テキスト */
.ufb-hero__subline {
  display: flex;
  align-items: center;
  justify-content: center; /* ← 中央 */
  gap: 14px;
  flex-wrap: wrap;
}

/* 青ラベル */
.ufb-hero__label {
  background: #5d8fc2;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 8px 14px;
  white-space: nowrap;
}

/* ナノバブルシステム */
.ufb-hero__subtext {
  font-size: 28px;
  font-weight: 600;
  color: #2a1a16;
  white-space: nowrap;
}

/* 下のキャッチ */
.ufb-hero__catch {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  color: #2a1a16;
}

/* =========================
   スマホ（完全中央）
========================= */
@media screen and (max-width: 640px) {

  .ufb-hero__inner {
    flex-direction: column; /* ← 縦並び */
    gap: 16px;
  }

  .ufb-hero__image img {
    width: 90px; /* スマホはさらに小さく */
  }

  .ufb-hero__label {
    font-size: 14px;
    padding: 6px 10px;
  }

  .ufb-hero__subtext {
    font-size: 18px;
  }

  .ufb-hero__catch {
    font-size: 18px;
    line-height: 1.5;
  }
}

/* ===============================
   CTAセクション（青帯）
=============================== */
.cta-section {
  background: #4f7fae;
  padding: 40px 16px 30px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* 中央寄せ */
.cta-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* ===============================
   黄色の帯
=============================== */
.cta-ribbon {
  position: absolute;
  top: -16px;
  left: 24px;

  background: #f4ee8d;
  color: #4d7fa9;

  font-weight: 700;
  font-size: 15px;
  padding: 8px 18px;

  border-radius: 999px;
  border: 3px solid #4d7fa9;

  box-shadow: 0 3px 0 #1f4f88;
  z-index: 2;
}

/* ===============================
   メインボタン
=============================== */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 74px;
  background: #f3f3f3;
  color: #4d7fa9;

  font-size: 22px;
  font-weight: 700;

  border-radius: 999px;
  text-decoration: none;

  box-shadow: 0 10px 0 #1f4f88;
}

/* ===============================
   注釈
=============================== */
.cta-note {
  margin-top: 14px;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
}

/* ===============================
   レスポンシブ
=============================== */
@media (max-width: 768px) {

  .cta-section {
    padding: 34px 12px 24px;
  }

  .cta-ribbon {
    font-size: 12px;
    padding: 3px 14px;
    top: -20px;   /* ← 少し上に上げる */
    left: 50%;    /* ← 中央寄せにする */
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 260px;
    text-align: center;
  }

  .cta-button {
    height: 78px;          /* ← 高さを増やす */
    font-size: 18px;
    padding-top: 18px;     /* ← 文字を少し下げる */
    box-sizing: border-box;
  }

  .cta-note {
    font-size: 10px;
  }
}


/* =========================
   アンカーリンク全体
========================= */
.anchor-nav {
  background: #f3f3f3;
  padding: 40px 20px;
}

.anchor-nav__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

/* =========================
   各リンク
========================= */
.anchor-link {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #111;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 18px 20px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* hover */
.anchor-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(18, 58, 143, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* キーボード操作対応 */
.anchor-link:focus-visible {
  outline: 3px solid rgba(18, 58, 143, 0.22);
  outline-offset: 2px;
}

/* =========================
   番号
========================= */
.anchor-link__num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #123a8f;
  background:
    linear-gradient(135deg, #eef5ff 0%, #dcecff 100%);
  border: 1px solid rgba(18, 58, 143, 0.12);
  flex-shrink: 0;
}

/* =========================
   テキスト
========================= */
.anchor-link__text {
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =========================
   右矢印
========================= */
.anchor-link__icon {
  width: 12px;
  height: 12px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
  transform: rotate(135deg);
  justify-self: end;
  transition: transform 0.25s ease;
  opacity: 0.75;
}

.anchor-link:hover .anchor-link__icon {
  transform: rotate(135deg) translate(-3px, 3px);
  opacity: 1;
}

/* =========================
   スマホ調整
========================= */
@media (max-width: 767px) {
  .anchor-nav {
    padding: 24px 14px;
  }

  .anchor-nav__inner {
    gap: 10px;
  }

  .anchor-link {
    grid-template-columns: 42px 1fr 18px;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
  }

  .anchor-link__num {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .anchor-link__text {
    font-size: 0.98rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
  }

  .anchor-link__icon {
    width: 10px;
    height: 10px;
  }
}


/* ===============================
   UFB DUAL メリット帯
   崩れにくい・レスポンシブ対応
=============================== */
.ufb-merit-band {
  width: 100%;
  background: #4aa2da;
  padding: 22px 16px;
  box-sizing: border-box;
}

.ufb-merit-band__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.ufb-merit-band__small {
  display: block;
  font-size: clamp(16px, 2.2vw, 28px);
  white-space: normal;
}

.ufb-merit-band__main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ufb-merit-band__circle {
  width: clamp(52px, 6vw, 70px);
  height: clamp(52px, 6vw, 70px);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  border-radius: 50%;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.ufb-merit-band__text {
  display: inline-block;
  font-size: clamp(24px, 4vw, 48px);
  white-space: normal;
}

/* ===============================
   タブレット以下
=============================== */
@media (max-width: 768px) {
  .ufb-merit-band {
    padding: 18px 14px;
  }

  .ufb-merit-band__title {
    gap: 8px;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }

  .ufb-merit-band__small {
    font-size: 18px;
  }

  .ufb-merit-band__main {
    gap: 8px;
  }

  .ufb-merit-band__circle {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .ufb-merit-band__text {
    font-size: 20px;
  }
}

/* ===============================
   スマホ
=============================== */
@media (max-width: 480px) {
  .ufb-merit-band {
    padding: 16px 12px;
  }

  .ufb-merit-band__small {
    font-size: 15px;
  }

  .ufb-merit-band__circle {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .ufb-merit-band__text {
    font-size: 17px;
  }
}