/* =============================================================
   匠司法書士法人 サイト スタイルシート
   ※画像パスはこのファイル(css/)基準のため ../image/ で参照
   ============================================================= */

/* ==========================================================
   基本設定 / Reset & Variables
   ========================================================== */
:root {
  --color-black: #000000;
  --color-red: #a81616;
  --color-red-dark: #8a1212;
  --color-gold: #ad8b43;
  --color-text: #222222;
  --color-text-sub: #595959;
  --color-border: #e2e2e2;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --container-width: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(15vh + 8vh); /* 固定ヘッダー（黒帯15vh＋nav8vh）の高さに合わせてアンカー位置を調整 */
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* スマホのみ改行させる<br>（PCでは非表示） */
.br-sp {
  display: none;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* ▼ ここから追加：スムーズな変化の設定 ▼ */
  transition: box-shadow 0.3s ease-out; 
  box-shadow: 0 0 0 rgba(0, 0, 0, 0); 
  /* ▲ ここまで追加 ▲ */
}

/* ▼ ここから追加：スクロール時に付与される影の設定 ▼ */
.header.is-scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
}
/* ▲ ここまで追加 ▲ */


/* ---- 上段バー（黒） ---- */
.top-bar {
  background: #131313;
  color: #fff;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 15vh;
}

.logo a {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tel-block {
  text-align: right;
  line-height: 1.4;
}

.tel-block__label {
  font-size: 11px;
  color: #cfcfcf;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.icon-tel {
  color: var(--color-red);
  flex-shrink: 0;
}

.tel-block__number {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* 電話番号のリンクは見た目を変えず（色を継承・下線なし）タップで発信できるように */
.tel-block__number a,
.drawer__tel-number a {
  color: inherit;
  text-decoration: none;
}

/* 電話発信（tel:リンク）はSP版のみ有効にする。
   PC（961px以上）ではクリックしても発信せず、番号は表示のみとする */
@media (min-width: 961px) {
  a[href^="tel:"] {
    pointer-events: none;
    cursor: default;
  }
  /* PCでは電話番号のみ表示するため、電話ボタン末尾の「>」矢印は隠す
     （CTAの電話アイコンは先頭svgなので残る） */
  a[href^="tel:"] svg:last-child {
    display: none;
  }
}

/* 電話ボタンの表示テキスト切り替え
   SP：「お電話でのお問い合わせ」／PC：電話番号「06-6809-7625」 */
.tel-txt-pc {
  display: none;
}

@media (min-width: 961px) {
  .tel-txt-sp {
    display: none;
  }
  .tel-txt-pc {
    display: inline;
  }
}

.tel-block__hours {
  font-size: 11px;
  color: #cfcfcf;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 0 28px;
  height: 52px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-cta:hover {
  background: var(--color-red-dark);
}

.btn-cta__arrow {
  flex-shrink: 0;
}

/* ---- ハンバーガーボタン（モバイルのみ表示） ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger__line {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---- ナビゲーション（白） ---- */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: 8vh;
}

.main-nav .container {
  height: 100%;
}

.main-nav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
}

.main-nav__list li {
  position: relative;
  display: flex;
}

.main-nav__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--color-border);
}

.main-nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
}

/* ホバー時に下線がスライドして表示される */
.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  margin-top: 11px;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.main-nav__list a:hover {
  color: var(--color-red);
}

.main-nav__list a:hover::after {
  transform: scaleX(1);
}

/* ==========================================================
   DRAWER（モバイル用フルスクリーンメニュー）
   ========================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #131313;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer.is-open {
  transform: translateY(0);
  visibility: visible;
}

.drawer__close {
  position: absolute;
  top: 16px; /* 24pxから少し上に調整 */
  right: 16px; /* 24pxから少し右に調整 */
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer__nav {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px; /* 上下の余白を縮小 (元: 100px 24px 60px) */
}

.drawer__list {
  width: 100%;
  text-align: center;
}

.drawer__list li {
  margin: 12px 0; /* 項目間の余白を縮小 (元: 28px) */
}

.drawer__list a {
  font-size: 18px; /* 文字サイズを縮小 (元: 22px) */
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-top: 24px; /* 上の余白を縮小 (元: 40px) */
  padding: 16px 20px; /* ボタン内の余白を縮小 (元: 22px 24px) */
  background: var(--color-red);
  color: #fff;
  font-size: 16px; /* 文字サイズを縮小 (元: 20px) */
  font-weight: 700;
  letter-spacing: 0.1em;
}

.drawer__tel {
  margin-top: 32px; /* 上の余白を縮小 (元: 56px) */
  text-align: center;
  color: #fff;
}

.drawer__tel-label {
  font-size: 14px; /* 文字サイズを縮小 (元: 18px) */
  letter-spacing: 0.06em;
}

.drawer__tel-number {
  font-size: 28px; /* 文字サイズを縮小 (元: 40px) */
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.drawer__tel-hours {
  font-size: 14px; /* 文字サイズを縮小 (元: 16px) */
  color: #d0d0d0;
  letter-spacing: 0.04em;
}

/* スクロール抑制（メニュー展開時に body に付与） */
body.drawer-open {
  overflow: hidden;
}

/* ==========================================================
   追加：ドロワーメニュー展開時の処理
   ========================================================== */
/* メニューを開いている間は、下部固定のCTAバーを隠す */
body.drawer-open .mobile-cta {
  display: none;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 77vh;
  background-color: #eef1f3;
  /* 人物(hero_staff)・写真・グラデーションを重ねる。固定は解除し、FVと一緒にスクロールさせる */
  background-image:
    url("../image/hero_staff.webp"),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.55) 34%,
      rgba(255, 255, 255, 0) 60%),
    url("../image/takumi_fv_bg.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: right 90px top 40px, center, center; /* ★ top 0 を top 40px に変更 */
  background-size: auto 682px, cover, cover;
  background-attachment: scroll, scroll, scroll;
}

/* 前景：人物写真（右寄せ・上部に壁の余白を残し、下部は見切れる）
   金色の区切り線より前面に出して、線が顔にかからないようにする */
.hero__people {
  position: absolute;
  right: 7%;
  top: 8%;
  height: 128%;
  width: auto;
  z-index: 3;
  pointer-events: none;
  object-fit: contain;
  object-position: top;
  display: none; /* PCでは人物を固定背景レイヤーで表示するため<img>は非表示 */
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 70px 0 80px;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.hero__title-em {
  position: relative;
  display: inline-block;
  color: var(--color-red);
}

/* 圏点（●）を手動描画して文字との距離を詰める（1文字ごとに1点） */
.hero__title-em::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.32em;
  height: 0.22em;
  background-image: radial-gradient(circle at center, var(--color-red) 0, var(--color-red) 0.11em, transparent 0.12em);
  background-size: 25% 100%;
  background-repeat: repeat-x;
  background-position: left center;
  pointer-events: none;
}

.hero__divider {
  display: block;
  width: 100%;
  /* 幅が狭いときは線を短くして、右側の人物に線がかからないようにする */
  max-width: min(560px, 36vw);
  height: 2px;
  margin: 26px 0 22px;
  background: #131313;
}

.hero__lead {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.hero__nobr {
  white-space: nowrap;
}

/* 汎用：意味のまとまりを途中で改行させない（見出し等の読みやすい改行制御に使用） */
.nobr {
  white-space: nowrap;
}

/* 汎用：意味のまとまりを途中で改行させない（インラインブロック化） */
.ib {
  display: inline-block;
}

.hero__text {
  margin-top: 14px;
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.9;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 16px 34px;
  background: var(--color-red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease;
}

.hero__btn:hover {
  background: var(--color-red-dark);
}

/* ==========================================================
   HERO テキストアニメーション
   ========================================================== */
/* ▼ 1. 下から浮かび上がるアニメーションの定義 ▼ */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px); /* 最初は少し下に配置 */
  }
  100% {
    opacity: 1;
    transform: translateY(0);    /* 元の位置に戻る */
  }
}

/* ▼ 2. 線が横に伸びるアニメーションの定義 ▼ */
@keyframes expandLine {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ▼ 3. 各要素にアニメーションを適用 ▼ */
.hero__title,
.hero__lead,
.hero__text,
.hero__btn {
  opacity: 0; /* 初期状態は透明にする */
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero__divider {
  opacity: 0;
  transform-origin: left center; /* PC版は左から右へ線を伸ばす */
  animation: expandLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ▼ 4. 要素ごとに表示されるタイミング（遅延）をずらす ▼ */
.hero__title   { animation-delay: 0.2s; }
.hero__divider { animation-delay: 0.5s; }
.hero__lead    { animation-delay: 0.7s; }
.hero__text    { animation-delay: 0.9s; }
.hero__btn     { animation-delay: 1.1s; }


/* ==========================================================
   スクロール連動アニメーション
   ========================================================== */
/* スクロールする前の初期状態（透明＆少し下に配置） */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 画面内に入ったときの状態（不透明＆元の位置へ） */
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   カードを時間差で順番に表示させる設定
   ========================================================== */
.reason-card:nth-child(1) { transition-delay: 0s; }
.reason-card:nth-child(2) { transition-delay: 0.15s; }
.reason-card:nth-child(3) { transition-delay: 0.3s; }

/* ※スマホ（縦並び）のときは同時に表示させた方が自然な場合は、以下のメディアクエリを追加 */
@media screen and (max-width: 768px) {
  .reason-card:nth-child(1),
  .reason-card:nth-child(2),
  .reason-card:nth-child(3) { 
    transition-delay: 0s; 
  }
}

/* サポートカード（4枚）・相談カード（2枚）も時間差で順番に浮き出す */
.support-card:nth-child(1) { transition-delay: 0s; }
.support-card:nth-child(2) { transition-delay: 0.12s; }
.support-card:nth-child(3) { transition-delay: 0.24s; }
.support-card:nth-child(4) { transition-delay: 0.36s; }

.consult-card:nth-child(1) { transition-delay: 0s; }
.consult-card:nth-child(2) { transition-delay: 0.15s; }

/* スマホ（縦積み）では各カードが個別に入るため、遅延はリセットして自然に */
@media screen and (max-width: 960px) {
  .support-card:nth-child(1),
  .support-card:nth-child(2),
  .support-card:nth-child(3),
  .support-card:nth-child(4),
  .consult-card:nth-child(1),
  .consult-card:nth-child(2) {
    transition-delay: 0s;
  }
}

/* ==========================================================
   順次表示（親が画面内に入ると、子要素を時間差で順番に表示）
   ========================================================== */
/* ---- 代表セクション：写真 → 肩書 → 氏名 → 引用 → 略歴… の順で表示 ---- */
.representative__body.stagger .representative__photo,
.representative__body.stagger .representative__info > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.representative__body.stagger.is-visible .representative__photo,
.representative__body.stagger.is-visible .representative__info > * {
  opacity: 1;
  transform: translateY(0);
}

/* 表示順（写真を先頭に、以降は上から順番に0.15秒ずつ遅延） */
.representative__body.stagger.is-visible .representative__photo              { transition-delay: 0s; }
.representative__body.stagger.is-visible .representative__info > *:nth-child(1) { transition-delay: 0.15s; }
.representative__body.stagger.is-visible .representative__info > *:nth-child(2) { transition-delay: 0.30s; }
.representative__body.stagger.is-visible .representative__info > *:nth-child(3) { transition-delay: 0.45s; }
.representative__body.stagger.is-visible .representative__info > *:nth-child(4) { transition-delay: 0.60s; }
.representative__body.stagger.is-visible .representative__info > *:nth-child(5) { transition-delay: 0.75s; }
.representative__body.stagger.is-visible .representative__info > *:nth-child(6) { transition-delay: 0.90s; }
.representative__body.stagger.is-visible .representative__info > *:nth-child(7) { transition-delay: 1.05s; }

/* ---- 法人概要：各行を上から順番に表示 ---- */
.company__table.stagger .company__row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.company__table.stagger.is-visible .company__row {
  opacity: 1;
  transform: translateY(0);
}

.company__table.stagger.is-visible .company__row:nth-child(1) { transition-delay: 0s; }
.company__table.stagger.is-visible .company__row:nth-child(2) { transition-delay: 0.12s; }
.company__table.stagger.is-visible .company__row:nth-child(3) { transition-delay: 0.24s; }
.company__table.stagger.is-visible .company__row:nth-child(4) { transition-delay: 0.36s; }
.company__table.stagger.is-visible .company__row:nth-child(5) { transition-delay: 0.48s; }

/* ==========================================================
   REASON（選ばれる3つの理由）
   ========================================================== */
.reason {
  position: relative;
  overflow: hidden;
  /* 斜めカット部分の背景：以前は共通写真が透けていたが、単色 #131313 に変更 */
  background: #131313;
  padding: 80px 0 110px;
  z-index: 1;
}

/* 2セクション（理由・サポート）共通の背景。写真から単色 #131313 に変更し連続して見せる */
.dark-bg-wrap {
  position: relative;
}

.dark-bg-wrap__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #131313;
}

/* 「選ばれる理由」の白い部分（見出し・カード側）を白シェイプで覆い、
   斜めの装飾部分だけ背後の共通写真を透けさせる（＝上記dark-bgの逆形） */
.reason::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 62.5% 36.6%, 0 80%);
  z-index: -1;
}

.reason .container {
  position: relative;
  z-index: 1;
}

.reason__head {
  max-width: 1000px;
}

.reason__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 0.04em;
  color: var(--color-text);
  display: inline-block;
}

/* 見出し下の赤いアクセントライン：全セクション共通で短く統一（文字幅いっぱいの下線から変更） */
.reason__title::after,
.support__title::after,
.representative__title::after,
.group__title::after,
.contact__title::after,
.company__title::after,
.consult__title::after,
.service__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: var(--color-red);
}

/* 中央寄せの見出し（consult）はラインも中央に */
.consult__title::after,
.contact__title::after {
  margin-left: auto;
  margin-right: auto;
}

.reason__title-num {
  font-size: 1.35em;
  margin: 0 0.1em;
}

.reason__lead {
  margin-top: 22px;
  font-size: clamp(14px, 1.3vw, 16px);
  color: #404040;
  letter-spacing: 0.02em;
  /* 黒い装飾に重なっても読めるよう、白いフチを付与 */
  text-shadow:
    0 0 4px #fff,
    1px 1px 2px #fff, -1px 1px 2px #fff,
    1px -1px 2px #fff, -1px -1px 2px #fff,
    2px 0 2px #fff, -2px 0 2px #fff,
    0 2px 2px #fff, 0 -2px 2px #fff;
}

.reason__cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.reason-card {
  position: relative;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-left: 0;
  padding: 34px 30px 36px;
}

/* カード左の赤いバー（カードの上下端にぴったり合わせる） */
.reason-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 8px;
  background: var(--color-red);
}

.reason-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.reason-card__num {
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: #b3b3b3;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.reason-card__title {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

.reason-card__body {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* ==========================================================
   SUPPORT（人生の節目を、グループでサポート）
   ========================================================== */
.support {
  background: transparent;
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  z-index: 1;
}

.support__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-block;
}

.support__lead {
  margin-top: 22px;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.9;
  color: #e6e6e6;
  letter-spacing: 0.02em;
}

.support__cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 48px;
}

.support-card {
  background: #fff;
  overflow: hidden;
}

.support-card__photo {
  aspect-ratio: 561 / 188;
  overflow: hidden;
}

.support-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* グレーの見出し帯（赤い四角＋タイトル） */
.support-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #d9d9d9;
  padding: 16px 24px 16px 40px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.support-card__mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--color-red);
}

/* 白の本文エリア */
.support-card__content {
  background: #fff;
  padding: 22px 40px 30px;
}

.support-card__body {
  font-size: 15px;
  line-height: 1.9;
  color: #5a5a5a;
  text-align: left;
}

/* 赤マーカーラインの「提携連携」表示（本文幅で中央配置） */
.support-card__tie {
  margin: 18px 0 0;
  padding: 0 4px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.01em;
  text-align: center;
}

.support-card__tie > span {
  display: inline;
  /* テキストの下部だけに赤マーカーで線を引いたような見た目 */
  background: linear-gradient(transparent 65%, rgba(168, 22, 22, 0.28) 65%, rgba(168, 22, 22, 0.28) 88%, transparent 88%);
  padding: 0 2px;
}

/* ==========================================================
   CTA（このような場面でお困りではありませんか？）
   ========================================================== */
.cta {
  /* 背景はオーバーレイ加工なし。差し替え画像をそのまま表示 */
  background-image: url("../image/contact.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #fff;
  padding: 64px 0 72px;
  text-align: center;
}

.cta__title {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 16px auto 0;
  background: #fff;
}

.cta__lead {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: clamp(13px, 1.2vw, 15px);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

/* ▼ 変更：白背景のボックスにする ▼ */
.cta__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  background: #fff;          /* 白背景を追加 */
  border-radius: 8px;        /* 角を少し丸くする */
  padding: 48px 40px;        /* 内側の余白を追加 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 少し影をつけて浮かせる */
}

.cta__item {
  width: 400px;
  max-width: 100%;
}

/* ▼ 変更：赤ボタンのデザインにする ▼ */
.cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-red); /* 背景を赤に */
  color: #fff;                  /* 文字を白に */
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 22px 24px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2); /* 影を調整 */
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta__btn:hover {
  background: var(--color-red-dark); /* ホバーで暗い赤に */
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.cta__btn svg {
  flex-shrink: 0;
}

/* ▼ 変更：白背景に合わせて文字色を黒系にする ▼ */
.cta__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text); /* #f2dcdc から黒系の文字色に変更 */
  letter-spacing: 0.02em;
}

/* ==========================================================
   SERVICE（サービス内容）
   ========================================================== */
.service {
  background: #f1f1f1;
  padding: 64px 0 80px;
  color: var(--color-text);
}

.service__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.04em;
  color: var(--color-text);
  display: inline-block;
}

.service__intro {
  margin-top: 22px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: #333;
  margin-bottom: 40px;
}

.service-block {
  margin-bottom: 40px;
}

.service-block:last-child {
  margin-bottom: 0;
}

/* ヘッダー（黒→グレーのグラデーション） */
.service-block__head {
  background: linear-gradient(90deg, #131313 0%, #6b6b6b 100%);
  color: #fff;
  padding: 22px 48px;
}

.service-block__title {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.service-block__sub {
  margin-top: 4px;
  font-size: clamp(12px, 1.2vw, 15px);
  color: #d9d9d9;
  letter-spacing: 0.02em;
}

/* 本文エリア（白） */
.service-block__body {
  background: #fff;
  padding: 34px 48px 40px;
}

.service-block__text {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.95;
  color: #333;
}

.service-block__divider {
  border: none;
  border-top: 1px solid #d5d5d5;
  margin: 28px 0;
}

/* 黒タグ群 */
.service-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.service-block__tags li {
  background: #131313;
  color: #fff;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  white-space: nowrap;
}


/* 白背景・黒枠のCTAボタン */
.service-block__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  background: #fff;                     /* 背景を白色に変更 */
  color: var(--color-black);            /* 文字色を黒色に変更 */
  border: 1px solid var(--color-black); /* 黒い枠線を追加 */
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  transition: background-color 0.2s ease, color 0.2s ease; /* 色の変化を滑らかにする設定を追加 */
}

.service-block__cta:hover {
  background: #131313;                  /* ホバー時の背景を#131313に変更 */
  color: #fff;                          /* ホバー時の文字色を白色に変更 */
}


.service-block__cta svg {
  flex-shrink: 0;
}

/* ==========================================================
   REPRESENTATIVE（代表司法書士より）
   ========================================================== */
.representative {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 70px 0 90px;
}

/* 右下の薄いグレー斜め装飾 */
.representative::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f1f1f1;
  clip-path: polygon(100% 28.6%, 100% 100%, 0 100%);
  z-index: 0;
}

.representative .container {
  position: relative;
  z-index: 1;
}

.representative__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.04em;
  color: var(--color-text);
  display: inline-block;
}

.representative__body {
  margin-top: 44px;
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.representative__photo {
  flex-shrink: 0;
  width: 250px;
  aspect-ratio: 2659 / 3297;
}

.representative__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.representative__info {
  flex: 1;
  min-width: 0;
}

.representative__name {
  margin-top: 6px;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.representative__role {
  font-size: clamp(13px, 1.2vw, 15px);
  color: #555;
  letter-spacing: 0.02em;
}

.representative__quote {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: #333;
  letter-spacing: 0.02em;
}

.representative__divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 28px 0;
}

.representative__subhead {
  font-size: clamp(15px, 1.4vw, 16px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.representative__group + .representative__group {
  margin-top: 26px;
}

.representative__text {
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.9;
  color: #333;
}

.representative__list {
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.85;
  color: #333;
}

.representative__list li {
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.representative__list li::before {
  content: "・";
}

/* ==========================================================
   GROUP（提携専門家とのワンストップサービス）
   ========================================================== */
.group {
  background: #f1f1f1;
  padding: 64px 0 80px;
}

.group__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.04em;
  color: var(--color-text);
  display: inline-block;
}

.group__lead {
  margin-top: 22px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: #333;
}

.group__diagram {
  margin: 48px auto 0;
  max-width: 960px;
}

.group__diagram img {
  width: 100%;
  height: auto;
  display: block;
}

.group__cta-wrap {
  margin-top: 48px;
  text-align: center;
}

.group__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fff;                     /* 相続手続きボタンと同じアウトライン型に統一 */
  color: var(--color-black);
  border: 1px solid var(--color-black);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px 40px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.group__cta:hover {
  background: var(--color-black);
  color: #fff;
}

.group__cta svg {
  flex-shrink: 0;
}

/* ==========================================================
   CONTACT（無料相談フォーム）
   ========================================================== */
.contact {
  background: #fff;
  padding: 64px 0 80px;
}

.contact__title {
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--color-text);
  display: block;
  text-align: center;
}

.contact__lead {
  margin-top: 20px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: #333;
  text-align: center;
}

/* フォーム挿入用プレースホルダー（後日フォームを挿入） */
/* お問い合わせフォーム（埋め込みiframe） */
.contact__form {
  margin-top: 40px;
}

.contact__form iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ==========================================================
   COMPANY（法人概要）
   ========================================================== */
.company {
  position: relative;
  overflow: hidden;
  /* オフィス写真（MIKATA受付）を白でフェードさせた背景 */
  background-color: #f4f1ef;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.74) 100%),
    url("../image/company_bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* スクロールしても背景を固定（パララックス）。※SPではscrollに戻す */
  padding: 64px 0 80px;
}

.company .container {
  position: relative;
  z-index: 1;
}

.company__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.04em;
  color: var(--color-text);
  display: inline-block;
}

.company__table {
  margin-top: 40px;
  max-width: 960px;
}

.company__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 15px 8px;
  border-bottom: 1px solid #b9b3ae;
}

.company__row:first-child {
  border-top: 1px solid #b9b3ae;
}

.company__label {
  flex-shrink: 0;
  width: 140px;
  font-size: clamp(13px, 1.25vw, 15px);
  color: #8a8480;
  letter-spacing: 0.04em;
}

.company__value {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.7;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* ==========================================================
   CONSULT（まずはお気軽にご相談ください／電話・Web 2カード）
   ========================================================== */
.consult {
  background: #fff;
  padding: 64px 0 80px;
}

.consult__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-align: center;
  width: fit-content;
  margin: 0 auto;
}

.consult__cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.consult-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* カード上部の画像枠 */
.consult-card__photo {
  position: relative;        /* ★追加：中の画像を絶対配置にするための基準 */
  aspect-ratio: 616 / 231;   /* 枠の縦横比を固定 */
  width: 100%;               /* ★追加：幅を100%に固定 */
  border-bottom: 1px solid #e2e2e2;
  overflow: hidden;          /* 枠からはみ出た部分（ズームした分）を隠す */
}

/* 画像本体 */
.consult-card__photo img {
  position: absolute;        /* ★追加：画像自体のサイズで枠を押し広げないようにする */
  top: 0;                    /* ★追加：上端に合わせる */
  left: 0;                   /* ★追加：左端に合わせる */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 手元をズームするためのスタイル（変更なし） */
.zoom-hands {
  transform: scale(1.6);
  transform-origin: 65% 55%;
}

.consult-card__body {
  padding: 28px 34px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.consult-card__title {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.consult-card__desc {
  margin-top: 14px;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.85;
  color: #444;
}

.consult-card__note {
  margin-top: 12px;
  margin-bottom: 24px;
  font-size: clamp(13px, 1.25vw, 15px);
  font-weight: 700;
  color: var(--color-text);
}

.consult-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  background: var(--color-red);
  color: #fff;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 18px 24px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.consult-card__btn:hover {
  background: var(--color-red-dark);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
}

.consult-card__btn svg {
  flex-shrink: 0;
}

/* ==========================================================
   FOOTER（MIKATA GROUP バナー）
   ========================================================== */
.footer {
  background: #131313;
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}

/* ▼ 新しく追加：バナーを横一列に並べる親要素 ▼ */
.footer__banners {
  display: flex;
  justify-content: center; /* 中央に寄せる */
  align-items: center;     /* 縦方向の中央で揃える */
  gap: 30px;               /* バナー同士の隙間（好みに合わせて調整） */
  margin-top: 24px;
}

/* ▼ 変更：各バナーのリンク要素（幅の制限を解除） ▼ */
.footer__banner {
  display: block;
  width: auto;             /* 100%指定を解除して、画像本来の幅を活かす */
  transition: opacity 0.2s ease;
}

.footer__banner:hover {
  opacity: 0.85;
}

/* ▼ 変更：バナー画像の高さを固定して揃える ▼ */
.footer__banner img {
  height: 88px;            /* ここで高さを揃えます（PC表示時） */
  width: auto;             /* 高さに合わせて横幅を自動調整 */
  object-fit: contain;     /* 画像の比率を維持 */
  display: block;
}

/* ==========================================================
   COPYRIGHT（著作権表示バー）
   ========================================================== */
.copyright {
  background: #585858;
  color: #fff;
  text-align: center;
  padding: 26px 20px 30px;
}

.copyright__text {
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ==========================================================
   モバイル用 固定CTAバー（PCでは非表示）
   ========================================================== */
.mobile-cta {
  display: none;
}

@media (max-width: 960px) {
  /* 画面下部に白背景の帯を敷き、赤ボタンを固定表示 */
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150; /* ヘッダー(100)より上・ドロワー(200)より下 */
    background: rgba(255, 255, 255, 0.78); /* 半透明の白で後ろを透かす */
    -webkit-backdrop-filter: blur(10px);   /* すりガラス（背後をぼかして透かす） */
    backdrop-filter: blur(10px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--color-red);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(168, 22, 22, 0.4);
    transition: background-color 0.2s ease;
  }

  .mobile-cta__btn:hover {
    background: var(--color-red-dark);
  }

  .mobile-cta__btn svg {
    flex-shrink: 0;
  }

  /* 固定バーの高さ分の余白を確保し、最下部のコンテンツが隠れないようにする */
  body {
    padding-bottom: 84px;
  }

  /* TOPのボタンは下部固定バーに集約するため、ヒーロー内のボタンは非表示 */
  .hero__btn {
    display: none;
  }
}

/* ==========================================================
   レスポンシブ（暫定：ヘッダーのみ／今後のセクションで随時拡張）
   ========================================================== */
@media (max-width: 960px) {
  html {
    scroll-padding-top: 64px;
  }
  
  .top-bar__inner {
    height: 64px;
  }

  .logo a {
    font-size: 18px;
  }

  /* モバイルでは電話番号・CTA・PCナビを隠し、ハンバーガー＋ドロワーに集約 */
  .tel-block,
  .btn-cta,
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* ハンバーガー → ✕ への変形 */
  .hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ---- HERO（モバイル：縦積み。テキストの下に人物を配置） ---- */
  /* SP：FVを最初の1画面に収める（ヘッダー分を差し引いた高さ）。
     ボタンをスクロール前に表示、人物写真は余白に合わせてカット */
  .hero {
    display: flex;
    flex-direction: column;
    /* ▼ 変更：スマホ用も指定の画像パスに差し替え ▼ */
    background-image:
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.74) 0%,
        rgba(255, 255, 255, 0.6) 45%,
        rgba(255, 255, 255, 0.42) 100%),
      url("../image/takumi_fv_bg.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: scroll; /* SPはfixedのiOS不具合回避のため通常スクロール */
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    max-height: calc(100vh - 64px);
    max-height: calc(100svh - 64px);
    overflow: hidden;
  }

  .hero .container {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero__inner {
    position: static;
    padding: 24px 0 10px;
    max-width: 100%;
    text-align: center;
  }

  /* SP：見出し・金線・リード・説明文をすべて中央寄せ（文字は大きめで目立たせる） */
  .hero__title {
    text-align: center;
    font-size: clamp(32px, 9vw, 48px);
  }

  .hero__divider {
    max-width: 280px;
    margin: 22px auto 20px;
    transform-origin: center center; /* ★追加：中央から線が伸びるようにする */
  }

  .hero__lead {
    text-align: center;
    font-size: clamp(18px, 5.2vw, 23px);
  }

  .hero__text {
    font-size: 15px;
    text-align: center;
    margin-top: 14px;
  }

  /* SP：赤ボタンは人物写真の下部に重ねて配置 */
  .hero__btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 44px;
    margin: 0 auto;   /* transform（フェードイン）と競合しないよう auto マージンで中央寄せ */
    z-index: 5;
    width: min(80%, 330px);
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }

  /* 人物：デザインに合わせて大きめに表示（画面の約44%）。下部は腰あたりでカット */
  .hero__people {
    order: 2;
    position: relative;
    z-index: 1;
    display: block; /* SPでは<img>で人物を表示（PCの非表示指定を上書き） */
    align-self: center;
    transform: none;
    top: auto;
    right: auto;
    margin-top: 0;
    flex: 0 0 auto;
    height: 44vh;
    max-height: 44svh;
    width: min(92%, 440px);
    object-fit: cover;
    object-position: top center;
  }

  /* ---- REASON（モバイル） ---- */
  .reason {
    padding: 56px 0 72px;
  }

  /* モバイルでは上部（見出し・カード）を白で覆い、下部で写真を透けさせて
     次セクションの写真へ連続させる */
  .reason::before {
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 96%);
  }

  .reason__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .reason-card {
    padding: 26px 24px 28px;
  }

  /* ---- SUPPORT（モバイル） ---- */
  .support {
    padding: 52px 0 64px;
  }

  .support__cards {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }

  .support-card__title {
    padding: 14px 20px 14px 24px;
  }

  .support-card__content {
    padding: 20px 24px 26px;
  }

  .support-card__tie {
    margin: 16px 0 0;
  }

 /* ---- CTA（モバイル） ---- */
  .cta {
    padding: 48px 0 52px;
    background-attachment: scroll; /* SPはfixedのiOS不具合回避のため通常スクロール */
  }

  .cta__actions {
    gap: 28px;
    margin-top: 32px;
    padding: 32px 20px; /* 追加：スマホ用の内側余白 */
  }

  .cta__btn {
    padding: 18px 20px;
  }

  /* ---- SERVICE（モバイル） ---- */
  .service {
    padding: 48px 0 56px;
  }

  .service-block__head {
    padding: 18px 22px;
  }

  .service-block__body {
    padding: 26px 22px 30px;
  }

  .service-block__tags {
    gap: 10px;
  }

  .service-block__tags li {
    padding: 8px 14px;
    white-space: normal;
  }

  .service-block__cta {
    display: flex;
    width: 100%;
    padding: 16px 20px;
  }

  /* ---- REPRESENTATIVE（モバイル） ---- */
  .representative {
    padding: 52px 0 64px;
  }

  .representative__body {
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
  }

  .representative__photo {
    width: 190px;
    margin: 0 auto;
  }

  .representative__info {
    width: 100%;
  }

  /* ---- GROUP（モバイル） ---- */
  .group {
    padding: 48px 0 56px;
  }

  .group__diagram {
    margin-top: 36px;
  }

  .group__cta {
    display: flex;
    width: 100%;
    padding: 16px 20px;
  }

  /* ---- CONTACT（モバイル） ---- */
  .contact {
    padding: 48px 0 56px;
  }

  .contact__form {
    margin-top: 32px;
  }

  /* ---- COMPANY（モバイル） ---- */
  .company {
    padding: 48px 0 56px;
    background-attachment: scroll; /* SPはfixedのiOS不具合回避のため通常スクロール */
  }

  /* 所在地をスマホでは指定位置で改行 */
  .br-sp {
    display: inline;
  }

  .company__table {
    margin-top: 30px;
  }

  .company__row {
    flex-direction: column;
    gap: 4px;
    padding: 14px 4px;
  }

  .company__label {
    width: auto;
  }

  /* ---- CONSULT（モバイル） ---- */
  .consult {
    padding: 48px 0 56px;
  }

  .consult__cards {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }

  .consult-card__body {
    padding: 24px 24px 28px;
  }

  /* ---- FOOTER（モバイル） ---- */
  .footer__banners {
    flex-direction: column; /* スマホでは縦並びに変更 */
    gap: 20px;              /* スマホ時のバナー間の隙間 */
  }
  
  .footer__banner img {
    height: auto;
    width: 70%;             /* ★ここを100%から70%に変更 */
    max-width: 280px;       /* ★ここを400pxから280pxに変更 */
    margin: 0 auto;
  }



}

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