@charset "UTF-8";


/* =========================================
   ファーストビュー（fv）
========================================= */
/* FV全体のベース（背景固定用） */
.fv-section {
  position: relative;
  width: 100%;
  min-height: 850px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 120px;
}

.fv-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.fv-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* 左右2カラムのコンテナ */
.fv-container {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* 左側コンテンツ */
.fv-content {
  flex: 1;
  color: #ffffff;
  width: 60%;
}

.fv-date-badge {
  display: inline-block;
  color: #ffffff; /* 文字色は白 */
  font-size: clamp(22px, 2.5vw, 32px); /* 緑バッジとのバランスを見てサイズ調整 */
  font-weight: 700;
  /* 点線の下線を引く */
  border-bottom: 4px dotted #ffffff;
  padding: 0 0 6px 0; /* 文字と点線の間の隙間（下のみ） */
  margin-bottom: 40px; /* 下の緑バッジとの間隔 */
  letter-spacing: 2px;
  line-height: 1.2;
}

.fv-badge {
  display: inline-block;
  padding: 12px 24px;
  background-color: #19bdb2;
  border-radius: 8px;
  font-size: 24px;
  margin-bottom: 24px;
}
.fv-badge {
    /* デフォルトの緑色の変数 */
    --bubble-gradient: linear-gradient(110deg, #19bdb2 19.08%, #a3fecf 178.42%);
    --tail-width: 20px;
    --tail-height: 9px;
    --tail-color: #3dceb9;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
    color: #fff;
    font-size: clamp(14px, 2.5vw, 24px);
    font-weight: bold;
    padding: 10px 20px 9px;
    border-radius: 8px;
    margin-bottom: 24px;
    white-space: nowrap;
    background: transparent; /* 背景は::beforeで塗るので透明にする */
    line-height: 1;
}
/* 吹き出しの背景（グラデーション） */
.fv-badge::before {
    content: "";
    position: absolute;
    z-index: -1; /* テキストより後ろにする */
    inset: 0;
    border-radius: inherit;
    background: var(--bubble-gradient);
}
/* 吹き出しのなめらかな「しっぽ」 */
.fv-badge::after {
    content: "";
    position: absolute;
    z-index: -2; /* 背景よりさらに後ろにする */
    left: 50%;
    bottom: calc((var(--tail-height) - 1px) * -1);
    width: var(--tail-width);
    height: var(--tail-height);
    background: var(--tail-color);
    transform: translateX(-50%);
    /* SVGのパスデータを使って美しい曲線を描画 */
    clip-path: path("M0 0H20C16.5 0 14.1 1.4 12.2 3.9L11.05 5.35Q10 6.65 8.95 5.35L7.8 3.9C5.9 1.4 3.5 0 0 0Z");
}
.fv-badge span {
    font-size: clamp(18px, 3.2vw, 32px);
    color: #fff;
}

/* --- 見出し全体のラッパー --- */
.fv-title-wrapper {
  color: #ffffff;
  margin: 0 0 60px 0;
  /* H1内での不要な隙間をリセット */
  line-height: 1.2;
  font-weight: 700;
}

/* 「被災した土地を」部分（上の行） */
.fv-title-top {
  display: block; /* 改行させるためにブロック要素化 */
  font-size: clamp(32px, 5vw, 80px);
  margin-bottom: 20px; /* 下の行との間隔 */
}

/* 「県が補助 します！」部分（下の行・横並び） */
.fv-highlight-group {
  display: flex; /* 横並びにする */
  align-items: center;
  gap: 16px; /* 箱と文字の間隔 */
}

/* 「県が補助」の白背景ボックス */
.fv-box {
  background: #ffffff;
  color: #19bdb2;
  font-size: clamp(32px, 5vw, 80px);
  padding: 10px 24px;
  border-radius: 12px;
}

/* 「します！」テキスト */
.fv-suffix {
  font-size: clamp(24px, 4vw, 64px);
}

.fv-description {
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.6;
  font-weight: 700;
}

/* 右側チラシ画像（縦横比保持） */
.fv-media {
  flex-shrink: 0;
  width: 40%;
  max-width: 420px;
}

.fv-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0px 8px 24px rgba(0,0,0,0.15));
}

/* =========================================
   ファーストビュー（fv） スマホ・タブレット用調整
========================================= */
@media (max-width: 768px) {
  /* FVの最小高さを解除し、中身に合わせて伸縮するように変更 */
  .fv-section {
    min-height: auto;
    padding-bottom: 40px; /* 下部に少し余白を設ける */
    margin-bottom: 60px;
  }

  /* 左右カラムのコンテナを「縦並び」に変更 */
  .fv-container {
    flex-direction: column; /* 横並び（row）から縦並び（column）へ */
    gap: 32px; /* テキストと画像の間隔 */
    padding: 100px 0 0 0; /* スマホ時の上下余白を調整 */
  }

  /* テキストエリアの幅を100%にする */
  .fv-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* スマホ時はテキストを中央寄せにする場合（不要なら外す） */
    text-align: center;  /* 同上 */
  }

  .fv-date-badge {
    font-size: 18px; /* 緑バッジとのバランスを見てサイズ調整 */
    border-bottom: 2px dotted #ffffff;
    padding: 0 0 4px 0; /* 文字と点線の間の隙間（下のみ） */
    margin-bottom: 24px; /* 下の緑バッジとの間隔 */
  }


  /* 見出しの「します！」を綺麗に中央に持っていく調整 */
  .fv-highlight-group {
    justify-content: center;
  }
  /* 吹き出しのしっぽの中央寄せ対応 */
  .fv-badge {
    margin-bottom: 24px;
  }

  .fv-title-wrapper {
    margin-bottom: 20px;
  }

  .fv-title-top,
  .fv-box {
    font-size: clamp(32px, 8vw, 80px); /* 画面幅に応じて縮小 */
  }
  .fv-suffix {
    font-size: clamp(24px, 6vw, 64px);
  }
  .fv-box {
    padding: 6px 16px;
  }

  /* チラシ画像のエリア幅を広げ、中央に配置する */
  .fv-media {
    width: 60%; /* スマホ画面の90%の幅にする */
    max-width: 400px; /* 大きくなりすぎないように制限 */
    margin: 0 auto; /* 中央寄せ */
  }

  /* 背景画像の表示位置を微調整（スマホ画像の縦横比に合わせる） */
  .fv-bg img {
    object-position: center; /* 底辺合わせから中央合わせに変更 */
  }
}

/* =========================================
   事業概要セクション（about）
========================================= */
.about-section {
  width: 100%;
  background-color: #F6FBFF; /* 背景の薄い水色 */
  padding: 80px 20px;
  box-sizing: border-box;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* セクション見出し */
.about-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 24px 0;
}

/* 本文エリア */
.about-lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  line-height: 1.8;
}

/* 1行目：通常テキスト */
.about-lead .lead-sub {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
}

/* 2行目：強調テキストを含む行 */
.about-lead .lead-main {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
}

/* オレンジ色の強調部分 */
.about-lead .text-orange {
  color: #F19729;
  font-size: clamp(18px, 2.2vw, 28px);
}

/* --- スマホ・タブレット対応 (768px以下) --- */
@media (max-width: 768px) {
  .about-section {
    padding: 48px 16px;
  }

  .about-title {
    margin-bottom: 16px;
  }

  .about-lead {
    gap: 8px;
    line-height: 1.6;
    /* スマホで不自然な途切れ方を防ぐ */
    word-break: break-word;
  }
}

/* =========================================
   対象セクション（target）
========================================= */
.target-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 0 100px;
  box-sizing: border-box;
}

/* --- セクション大見出し（タブ装飾） --- */
.target-header {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 48px;
}

.target-tag-wrapper {
  position: relative;
  z-index: 2;
  background-color: #19bdb2;
  padding: 10px 48px 10px 32px;
  /* 左上・右下を少し傾けるタグ形状 */
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.target-tag {
  color: #ffffff;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 2px;
}

/* 見出し右側の薄い水色の帯 */
.target-header-bar {
  flex: 1;
  height: 52px;
  background-color: #d8f5f3;
  margin-left: -60px; /* タグと少し重ねる */
  z-index: 1;
}

/* --- 各ブロック共通設定 --- */
.target-block {
  margin-bottom: 56px;
}
.target-block:last-child {
  margin-bottom: 0;
}

/* 中見出し（左に縦棒アクセント） */
.target-subheading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: #131213;
  margin: 0 0 24px 0;
}

.target-subheading::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.2em;
  background-color: #19bdb2;
  border-radius: 3px;
}

/* --- 1. 対象となる宅地（水色の角丸ボックス） --- */
.target-box {
  background-color: #f0fbff;
  border-radius: 16px;
  padding: 40px 48px;
  box-sizing: border-box;
}

.target-highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.target-highlight-list li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  color: #131213;
  line-height: 1.6;
}

/* ドット（丸）アイコン */
.target-highlight-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: #555555;
  border-radius: 50%;
}

/* テキスト装飾カラー */
.text-orange {
  color: #f19729;
}
.text-teal {
  color: #19bdb2;
}

/* --- 2. 補助対象者（通常リスト） --- */
.target-lead {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #131213;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.target-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.target-check-list li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(14px, 1.4vw, 16px);
  color: #131213;
  line-height: 1.6;
}

.target-check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background-color: #666666;
  border-radius: 50%;
}

/* --- アドバイスエリア（女性＋吹き出し） --- */
.target-advice {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
}

.advice-avatar {
  display: block; /* pictureタグをブロック要素化 */
  flex-shrink: 0;
  width: 120px;
}

.advice-avatar img {
  width: 100%;
  height: auto;
  display: block;
}

/* 吹き出し枠 */
.advice-bubble {
  position: relative;
  background-color: #ebfaf8;
  border-radius: 16px;
  padding: 24px 32px;
  flex: 1;
}

/* 吹き出しのしっぽ（左向き） */
.advice-bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 14px solid #ebfaf8;
}

.advice-bubble p {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.7;
  color: #131213;
}

/* --- スマホ・タブレット対応 (768px以下) --- */
@media (max-width: 768px) {
  .target-section {
    padding: 48px 0 64px;
  }

  .target-header {
    margin-bottom: 32px;
  }

  .target-header-bar {
    height: 44px;
  }

  .target-box {
    padding: 24px 20px;
  }

  .target-highlight-list {
    gap: 16px;
  }

  .target-highlight-list li {
    padding-left: 18px;
  }

  .target-highlight-list li::before {
    left: 0;
  }

  /* 女性イラストと吹き出しの配置調整（SP版） */
  .target-advice {
    align-items: flex-end; /* 女性を下揃えに */
    gap: 12px;
  }

  .advice-avatar {
    width: 85px;
  }

  .advice-bubble {
    padding: 16px 18px;
    border-radius: 12px;
  }

  .advice-bubble::before {
    top: auto;
    bottom: 24px; /* 女性の顔の高さにしっぽを合わせる */
    transform: none;
  }
}

/* =========================================
   補助の金額セクション（subsidy）
========================================= */
.subsidy-section {
  width: 100%;
  background-color: #f6faff; /* 全体背景：薄い水色 */
  padding: 80px 0 100px;
  box-sizing: border-box;
}

/* --- セクション大見出し（タブ装飾） --- */
.subsidy-header {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 48px;
}

.subsidy-tag-wrapper {
  position: relative;
  z-index: 2;
  background-color: #19bdb2;
  padding: 10px 48px 10px 32px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.subsidy-tag {
  color: #ffffff;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 2px;
}

.subsidy-header-bar {
  flex: 1;
  height: 52px;
  background-color: #d8f5f3;
  margin-left: -60px;
  z-index: 1;
}

/* --- 白いカード枠共通 --- */
.subsidy-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 56px 64px;
  box-shadow: 0px 4px 16px rgba(214, 231, 244, 0.4);
  box-sizing: border-box;
  margin-bottom: 40px;
}
.subsidy-card:last-child {
  margin-bottom: 0;
}

/* --- 上部カード：2カラムグリッド --- */
.subsidy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.subsidy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ラベルボタン */
.subsidy-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  height: 60px;
  border-radius: 8px;
  color: #ffffff;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  margin-bottom: 24px;
}

.bg-teal   { background-color: #19bdb2; }
.bg-blue   { background-color: #00aad4; }
.bg-orange { background-color: #f19729; }

/* 金額の表示 */
.subsidy-amount {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  border-bottom: 2px solid #333333;
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: #f09628;
  font-weight: 700;
}

.amount-prefix {
  color: #131213;
  font-size: clamp(18px, 1.8vw, 24px);
  margin-right: 12px;
  font-weight: 700;
}

.amount-num {
  font-size: clamp(48px, 4.5vw, 64px);
  line-height: 1;
}

.amount-unit {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1;
}

/* 金額直下の説明文 */
.subsidy-desc {
  max-width: 440px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #131213;
  text-align: left;
}

.text-bold {
  font-weight: 700;
}

/* --- 注意点ボックス --- */
.subsidy-notice {
  background-color: #effbff;
  border-radius: 12px;
  padding: 24px 32px;
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #131213;
  margin-bottom: 12px;
}

.notice-icon {
  width: 22px;
  height: 22px;
  color: #f19729; /* 電球のオレンジ */
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #131213;
  line-height: 1.6;
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background-color: #555555;
  border-radius: 50%;
}

/* --- 下部カード（司法書士報酬） --- */
.additional-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: #131213;
  line-height: 1.7;
  margin: 0 0 32px 0;
}

.additional-body {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.additional-item {
  flex: 0 0 auto;
  width: 45%;
  max-width: 440px;
}

.additional-desc {
  flex: 1;
}

.additional-desc p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #131213;
}

/* --- スマホ・タブレット対応 (768px以下) --- */
@media (max-width: 768px) {
  .subsidy-section {
    padding: 48px 0 64px;
  }

  .subsidy-header {
    margin-bottom: 32px;
  }

  .subsidy-header-bar {
    height: 44px;
  }

  .subsidy-card {
    padding: 32px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
  }

  /* 上部カードを縦並びに切り替え */
  .subsidy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 32px;
  }

  .subsidy-notice {
    padding: 20px 16px;
  }

  .subsidy-notice .notice-title {
    font-size: 16px;
  }

  /* 下部カードを縦並びに切り替え */
  .additional-body {
    flex-direction: column;
    gap: 24px;
  }

  .additional-item {
    width: 100%;
    max-width: 100%;
  }

  .additional-desc p {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* =========================================
   申請についてセクション（apply）
========================================= */
.apply-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 0 100px;
  box-sizing: border-box;
}

/* --- セクション大見出しタブ --- */
.apply-header {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 48px;
}

.apply-tag-wrapper {
  position: relative;
  z-index: 2;
  background-color: #19bdb2;
  padding: 10px 48px 10px 32px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.apply-tag {
  color: #ffffff;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 2px;
}

.apply-header-bar {
  flex: 1;
  height: 52px;
  background-color: #d8f5f3;
  margin-left: -60px;
  z-index: 1;
}

/* --- 各ブロック共通 --- */
.apply-block {
  margin-bottom: 64px;
}
.apply-block:last-child {
  margin-bottom: 0;
}

.apply-subheading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: #131213;
  margin: 0 0 24px 0;
}

.apply-subheading::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.2em;
  background-color: #19bdb2;
  border-radius: 3px;
}

/* --- 1. 申請の流れ（Step 01〜04） --- */
.step-flow {
  display: flex;
  background-color: transparent;
  border-radius: 20px;
  overflow: hidden; /* 両端の角丸をきれいに保つ */
  box-shadow: 0px 4px 20px rgba(144, 212, 249, 0.25); /* 全体の外枠シャドウ */
}

.step-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 270px;
  box-sizing: border-box;
}

/* カードの背景色とシェブロン（くの字）形状を担う疑似要素 */
.step-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ecfbff; /* カード背景色 */
  z-index: -1;
}

/* --- 重ね順（z-index）とドロップシャドウ --- */
/* Step 01：最前面、右側のみ凸 */
.step-item:nth-child(1) {
  z-index: 4;
  filter: drop-shadow(6px 0 10px rgba(0, 160, 210, 0.18));
  padding: 36px 40px 32px 16px; /* 右側の凸の分、余白を調整して中央揃え */
}
.step-item:nth-child(1)::before {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}

/* Step 02 & Step 03：左が凹、右が凸 */
.step-item:nth-child(2),
.step-item:nth-child(3) {
  margin-left: -24px; /* 隙間なくぴったり噛み合わせる */
  filter: drop-shadow(6px 0 10px rgba(0, 160, 210, 0.18));
  padding: 36px 28px 32px 28px;
}
.step-item:nth-child(2) { z-index: 3; }
.step-item:nth-child(3) { z-index: 2; }
.step-item:nth-child(2)::before,
.step-item:nth-child(3)::before {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 24px 50%);
}

/* Step 04：最背面、左が凹、右端は直線 */
.step-item:nth-child(4) {
  z-index: 1;
  margin-left: -24px;
  filter: none; /* 次のカードがないため影なし */
  padding: 36px 16px 32px 40px;
}
.step-item:nth-child(4)::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 24px 50%);
}

/* バッジ・アイコン・テキスト */
.step-badge {
  display: inline-block;
  background-color: #00abd5;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.step-icon {
  width: 72px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.step-text {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  color: #131213;
  line-height: 1.5;
}

/* --- 2. 申請に必要な書類 --- */
.apply-docs-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.apply-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  width: 60%;
}

.apply-docs-list li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(14px, 1.4vw, 16px);
  color: #131213;
  line-height: 1.6;
}

.apply-docs-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background-color: #666666;
  border-radius: 50%;
}

/* 男性アドバイス（吹き出し＋イラスト） */
.docs-advice {
  display: flex;
  flex-direction: column; /* 縦並びに変更 */
  align-items: flex-end;  /* 右寄せ（男性イラストを右下に配置） */
  gap: 30px;
  flex-shrink: 0;
  width: 40%;
}

.docs-bubble {
  position: relative;
  background-color: #ebfaf8;
  border-radius: 16px;
  padding: 24px 32px;
  /* イラストの上に重なるように下へ少し移動させる（ネガティブマージン） */
  margin-bottom: -16px;
  z-index: 2; /* イラストより前面に出す */
}

/* 吹き出しのしっぽ（下向き） */
.docs-bubble::before {
  content: "";
  position: absolute;
  /* しっぽの位置を右側に寄せる（男性の頭のあたり） */
  right: 48px;
  bottom: -12px; /* 枠の下に突き出させる */
  width: 0;
  height: 0;
  /* 下向きの三角形を作る */
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid #ebfaf8;
}

.docs-bubble p {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 700;
  line-height: 1.6;
  color: #131213;
}

.docs-avatar {
  display: block;
  width: 140px; /* PCでのイラストサイズを少し大きく */
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* 吹き出しの裏側に回す */
  margin-right: 16px; /* 右端から少し内側へ */
}

.docs-avatar img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 3. 申請書類の提出先 --- */
.submission-card {
  background-color: #f0fbff;
  border-radius: 16px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto; /* 左：可変、右：イラスト幅固定 */
  align-items: center;
  gap: 0 40px; /* 左右の余白 */
}

/* 左上：見出し */
.submission-lead {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: #131213;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* 左下：注意点 */
.submission-notice {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  background-color: transparent;
  padding: 0;
  margin: 0;
}

/* 右側全体：イラスト */
.submission-illust {
  grid-column: 2 / 3;
  grid-row: 1 / 3; /* 1行目と2行目をまたいで右側に配置 */
  display: block;
  width: 180px;
}

.submission-illust img {
  width: 100%;
  height: auto;
  display: block;
}

.sp-only {
  display: none;
}

.submission-notice {
    margin-top: 24px;
}

/* --- 4. 申請のタイミングと期限 --- */
.timing-info {
  margin-bottom: 32px;
}

.timing-row {
  margin: 0 0 12px 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: #131213;
  line-height: 1.6;
}
.timing-row:last-child {
  margin-bottom: 0;
}

.timing-label {
  font-weight: 700;
}

/* 女性アドバイス（イラスト＋吹き出し） */
.timing-advice {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.timing-avatar {
  display: block;
  width: 100px;
  flex-shrink: 0;
}

.timing-avatar img {
  width: 100%;
  height: auto;
  display: block;
}

.timing-bubble {
  position: relative;
  background-color: #ebfaf8;
  border-radius: 16px;
  padding: 20px 28px;
  flex: 1;
}

.timing-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid #ebfaf8;
}

.timing-bubble p {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  line-height: 1.7;
  color: #131213;
}

/* --- スマホ・タブレット対応 (768px以下) --- */
@media (max-width: 768px) {
  .apply-section {
    padding: 48px 0 64px;
  }

  .apply-block {
    margin-bottom: 48px;
  }

  /* 1. 申請の流れをカード型縦並びに */
  .step-flow {
    flex-direction: column;
    background-color: transparent;
    box-shadow: none;
    overflow: visible;
    gap: 0;
  }

  .step-item {
    /* PC用の矢印設定をリセット */
    margin-left: 0 !important;
    min-height: auto;
    filter: none !important;
    z-index: 1 !important;
    /* カード本体のスタイル */
    background-color: #ecfbff; /* デザイン通りの水色背景 */
    border-radius: 16px;       /* 角丸 */
    box-shadow: 0px 4px 16px rgba(144, 212, 249, 0.35); /* 水色のやさしい影 */
    padding: 32px 20px 28px !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* PC用のくの字形状（疑似要素）を無効化 */
  .step-item::before {
    display: none !important;
  }

  .step-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  /* 2. 申請に必要な書類の縦並び調整 */
  .apply-docs-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 32px; /* リストとイラスト群の間隔 */
  }
  .apply-docs-list {
    width: 100%;
  }

  /* SP時は横並びに戻す */
  .docs-advice {
    width: 100%;
    flex-direction: row; /* 横並びに戻す */
    align-items: flex-end;
    gap: 16px;
  }

  .docs-bubble {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 0; /* ネガティブマージン解除 */
  }

  /* しっぽを右向きに戻す */
  .docs-bubble::before {
    right: -10px;
    bottom: 24px; /* 男性の顔の高さに合わせる */
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ebfaf8;
    border-right: none;
  }

  .docs-avatar {
    width: 90px;
    margin-right: 0;
  }

  /* 3. 提出先カードのSP調整 */
  .submission-card {
    padding: 24px 20px;
    gap: 20px 16px; /* 行の間隔 20px、列の間隔 16px */
    align-items: center;
  }

  /* 左上：見出し */
  .submission-lead {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
  }

  /* 右上：イラスト（見出しの横に配置） */
  .submission-illust {
    grid-column: 2 / 3;
    grid-row: 1 / 2; /* 1行目の右列に収める */
    width: 80px;    /* スマホ向けに縮小 */
  }

  /* 下段全幅：注意点 */
  .submission-notice {
    grid-column: 1 / -1; /* 左右いっぱいに広げる */
    grid-row: 2 / 3;
    margin: 0;
  }

  .sp-only {
    display: block;
  }

  .submission-illust {
    width: 80px; /* SPサイズに合わせてイラストを縮小 */
  }

  .submission-notice {
    margin-top: 16px;
  }

  /* 4. タイミングと期限のアドバイスSP調整 */
  .timing-advice {
    align-items: flex-end;
    gap: 12px;
  }

  .timing-avatar {
    width: 75px;
  }

  .timing-bubble {
    padding: 16px;
    border-radius: 12px;
  }

  .timing-bubble::before {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}

/* =========================================
   石川県公式サイトリンク導線セクション
========================================= */
.official-link-section {
  width: 100%;
  background-color: #f6faff; /* 全幅の薄い水色背景 */
  padding: 80px 20px;
  box-sizing: border-box;
}

.official-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ガイドテキスト */
.official-link-text {
  margin: 0 0 32px 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #131213;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.text-blue {
  color: #00abd5;
}

/* 公式サイト誘導ボタン */
.official-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  height: 72px;
  border-radius: 9999px;
  background: linear-gradient(166deg, #0088d7 0%, #163fc6 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 
    0px 6px 18px rgba(22, 63, 198, 0.3),
    inset 0px 2px 4px rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

/* ホバー時の挙動 */
.official-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0px 10px 24px rgba(22, 63, 198, 0.4),
    inset 0px 2px 4px rgba(255, 255, 255, 0.25);
  opacity: 0.95;
}

/* リンクアイコン（チェーン形状） */
.btn-link-icon {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  flex-shrink: 0;
}

/* --- スマホ・タブレット対応 (768px以下) --- */
@media (max-width: 768px) {
  .official-link-section {
    padding: 56px 20px;
  }

  .official-link-text {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.6;
    word-break: break-word;
  }

  .official-link-btn {
    max-width: 280px;
    height: 64px;
    font-size: 18px;
  }

  .btn-link-icon {
    width: 20px;
    height: 20px;
  }
}

/* =========================================
   まとめセクション（summary）
========================================= */
.summary-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 0 100px;
  box-sizing: border-box;
}

/* --- セクション大見出しタブ --- */
.summary-header {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 56px;
}

.summary-tag-wrapper {
  position: relative;
  z-index: 2;
  background-color: #19bdb2;
  padding: 10px 48px 10px 32px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.summary-tag {
  color: #ffffff;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 2px;
}

.summary-header-bar {
  flex: 1;
  height: 52px;
  background-color: #d8f5f3;
  margin-left: -60px;
  z-index: 1;
}

/* --- まとめリスト共通 --- */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* 各項目の緑ラベルボタン */
.summary-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 195px;
  height: 48px;
  background-color: #19bdb2;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* 右側テキストエリア */
.summary-body {
  flex: 1;
}

.summary-heading {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: #131213;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.summary-desc {
  font-size: clamp(14px, 1.3vw, 15px);
  color: #131213;
  line-height: 1.7;
  margin: 0;
}

/* オレンジ強調テキスト（既存クラスと共用可） */
.text-orange {
  color: #f19729;
}

/* --- スマホ・タブレット対応 (768px以下) --- */
@media (max-width: 768px) {
  .summary-section {
    padding: 48px 0 64px;
  }

  .summary-header {
    margin-bottom: 36px;
  }

  .summary-header-bar {
    height: 44px;
  }

  .summary-list {
    gap: 36px;
  }

  /* SP時は縦並びに切り替え */
  .summary-item {
    flex-direction: column;
    gap: 16px;
  }

  .summary-label {
    width: auto;
    min-width: 140px;
    height: 40px;
    padding: 0 24px;
    font-size: 18px;
  }

  .summary-heading {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 8px;
  }

  .summary-desc {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* =========================================
   相談・お悩みセクション（consultation）
========================================= */
.consult-section {
  width: 100%;
  background-color: #f6faff; /* 全体背景色 */
  padding: 80px 0 100px;
  box-sizing: border-box;
}

/* --- ヘッダー --- */
.consult-header {
  text-align: center;
  margin-bottom: 64px;
}

/* 吹き出し型バッジ */
.consult-badge {
  display: inline-block;
  background-color: #19bdb2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  position: relative;
  margin-bottom: 24px;
}
.consult-badge::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #19bdb2;
}

.consult-title {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  color: #131213;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.consult-lead {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #131213;
  line-height: 1.8;
  font-weight: 500;
  margin: 0;
}

.text-teal { color: #19bdb2; }
.text-orange { color: #f19729; }
.text-blue { color: #00abd5; font-weight: bold; }
.pc-only { display: block; }

/* --- お悩みマップ（PC：絶対配置で円状に配置） --- */
.trouble-map {
  position: relative;
  width: 100%;
  max-width: 1020px;
  height: 620px;
  margin: 0 auto 80px;
}

.trouble-center-illust {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  z-index: 2;
}

.trouble-center-illust img {
  width: 100%;
  height: auto;
  display: block;
}

/* 雲形吹き出し共通 */
.trouble-bubble {
  position: absolute;
  background-image: url('../../img/hisaitakuchi/cloud-bg.svg'); /* ※Figmaから書き出した雲のSVG背景を想定 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(12px, 1.4vw, 16px); /* 文字サイズを柔軟に調整 */
  font-weight: 700;
  line-height: 1.6;
  width: 320px;
  height: 200px;
  padding: 0 36px;
  box-sizing: border-box;
  z-index: 1;
}

/* --- 各吹き出しの座標配置 --- */
/* 1. 左上（外側） */
.bubble-1 {
  top: 0;
  left: 0;
}

/* 2. 右上（外側） */
.bubble-2 {
  top: 0;
  right: 0;
}

/* 3. 左中段（bubble-1より少し内側へ） */
.bubble-3 {
  top: 210px;
  left: 6%;
}

/* 4. 右中段（bubble-2より少し内側へ） */
.bubble-4 {
  top: 210px;
  right: 6%;
}

/* 5. 最下部（中央） */
.bubble-5 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* --- 企業姿勢ブロック --- */
.philosophy-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.philosophy-content {
  flex: 1;
}

.philosophy-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: #131213;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.philosophy-desc {
  font-size: clamp(14px, 1.4vw, 15px);
  color: #131213;
  line-height: 1.8;
  margin: 0;
}

.philosophy-illust {
  width: 55%;
  flex-shrink: 0;
}

.philosophy-illust img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 相談予約ボタン --- */
.consult-cta {
  text-align: center;
}

.consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  height: 76px;
  border-radius: 9999px;
  background: linear-gradient(165deg, #19bdb2 0%, #b4f1e1 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.consult-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* --- スマホ・タブレット対応 (768px以下) --- */
@media (max-width: 768px) {
  .consult-section {
    padding: 56px 0 64px;
  }

  .consult-header {
    margin-bottom: 48px;
  }

  .pc-only {
    display: none;
  }

  /* お悩みマップを縦並びに切り替え */
  .trouble-map {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 64px;
    width: 100%;
  }

  /* 中央イラスト（SPでは最上部に配置） */
  .trouble-center-illust {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    order: 0;
    margin-bottom: 16px;
    width: 120px;
  }

  /* 吹き出しの親ラッパー（幅いっぱいに広げる） */
  .trouble-bubbles {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0; /* 雲同士の上下間隔 */
  }

  /* 雲の共通スタイル（スマホ向けサイズ） */
  .trouble-bubble {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 290px;
    height: 200px;
    padding: 0 28px;
    line-height: 1.5;
    margin-bottom: -40px;
  }

  /* --- 各吹き出しの並び順（order）と左右配置（align-self） --- */

  /* 1番目：費用が気になっている（左寄り） */
  .bubble-2 {
    order: 1;
    align-self: flex-start;
    margin-left: -10px; /* 画面端に寄せる */
  }

  /* 2番目：対象になる土地なのか（右寄り） */
  .bubble-4 {
    order: 2;
    align-self: flex-end;
    margin-right: -10px;
  }

  /* 3番目：書類や手続きに不安（中央〜やや左寄り） */
  .bubble-5 {
    order: 3;
    align-self: flex-start;
    margin-left: 20px; /* 少し内側に入れる */
  }

  /* 4番目：土地の管理ができていない（右寄り） */
  .bubble-3 {
    order: 4;
    align-self: flex-end;
    margin-right: -10px;
  }

  /* 5番目：売却したいと考えている（左寄り） */
  .bubble-1 {
    order: 5;
    align-self: flex-start;
    margin-left: -10px;
  }

  /* 企業姿勢ブロックを縦並びに */
  .philosophy-block {
    flex-direction: column;
    gap: 32px;
  }

  .philosophy-title {
    font-size: 18px;
    text-align: center;
  }

  .philosophy-illust {
    width: 100%;
    max-width: 100%;
  }

  .consult-btn {
    max-width: 300px;
    height: 64px;
    font-size: 18px;
  }
}