@charset "utf-8";
/*
 * ======================================
 * あおいFPサポート サイト固有CSS
 * 追加クラス一覧（共通SCSS取り込み検討用）
 * ======================================
 *
 * -- 共通パーツ
 * .aoi-container      - max-width:1400px + 左右padding 24px の共通コンテナ
 * .aoi-fade           - スクロールで下から20pxフェードイン（.is-in で発火）
 * .aoi-head           - 英字＋日本語ラベル＋大コピーの見出しブロック（flex column / gap:8px）
 * .aoi-en             - 英字見出し（Quicksand 600 / clamp(28,3.4vw,44) / ls.06em / #c8ab7b）
 * .aoi-ttl            - 日本語ラベル（19px / 700 / ls.08em）
 * .aoi-lead           - 大コピー（clamp(24,3vw,34) / 700 / lh1.6）
 * .aoi-sub            - 小見出し（clamp(22,2.7vw,30) / 700 / lh1.6）
 * .aoi-txt            - 本文（17px / lh2.05 / #4a4239 / text-wrap:pretty）
 * .aoi-note           - 補記（16px / lh1.95 / #7a5310）
 * .aoi-bar-ttl        - 縦バー付き見出し（9x30px の2色グラデpill + 下罫線）
 * .aoi-btn            - グラデpillボタン（padding 7px 8px 7px 30px / 円40px / hoverでグラデ反転）
 * .aoi-btn-cta        - 濃いグラデの小ボタン（記事下・フォーム周り）
 * .aoi-btn-ghost      - 白地＋2px枠のpillボタン
 * .aoi-leaf           - 葉のシルエットSVG装飾（opacity:.5 / はみ出しごと再現）
 * .aoi-dot-list       - ●付きリスト（7px の丸 / gap:14px）

 *
 * -- ヘッダー / SPナビ
 * .aoi-header         - 透過ヘッダー（中の3ブロックが個別に fixed）
 * .aoi-header__logo   - 左上固定の白タイル（radius:0 0 26px 0 / img 120px）
 * .aoi-header__navwrap / .aoi-header__nav - 中央寄せの白pillナビ（1200px以下で非表示）
 * .aoi-hcta           - 右上固定のご予約カード（214px / 電話・LINE・メール）
 * .aoi-header__sptel  - SP用の電話ボタン（50x50 / radius:14px）
 * .aoi-nav-toggle     - SPハンバーガー（50x50 / radius:14px / 3本線 #ed6f00）
 * .aoi-sp-nav         - SPドロップダウンパネル（top:166px / 左右12px / radius:20px）
 * .is-header-hidden   - 下スクロール中にヘッダー3ブロック（＋SPボタン）を上へ隠す状態。
 *                       付与は js/common.js。元データに仕込まれていた
 *                       transform+opacity トランジションの終点にあたる
 *
 * -- フッター
 * .aoi-footer         - ベージュ地フッター（3カラム / 2・3列目 padding-top:124px）
 *
 * -- TOP
 * .aoi-mv             - メインビュー（1fr / 1.15fr / padding 172px 0 96px）
 * .aoi-mv__en         - MV英字コピー（Quicksand 600 / 14px / ls.16em）
 * .aoi-mv__track / __slide / __dots / __dot
 *                     - MVスライダー（gap:24px / スライド min(620px,44.3vw) 16:11 /
 *                       transform 0.85s cubic-bezier(.22,.61,.36,1) /
 *                       ドットは枠外 bottom:-30px・activeは幅34pxのpill）
 *                       ※Swiperは読み込まない。制御は js/top.js（#mvTrack が無ければ何もしない）
 * .aoi-arc            - ヒーローに食い込む弧型ディバイダー（負margin）
 * .aoi-greeting       - ごあいさつ（ベージュ帯 / 中央揃え）
 * .aoi-approach       - はじめに（背景イラスト＋ライフプラン円図）
 * .aoi-circles        - 重なり合う5つの円（住まい・保障・投資・教育資金・老後資金）
 * .aoi-svc-card       - サービスカード4枚（枠線＋丸アイコン＋写真）
 * .aoi-news           - おしらせ（260px + 1fr / 矢印円44px）
 *
 * -- 下層共通
 * .aoi-hero           - ページヒーロー（padding 172px 24px 60px / 葉装飾）
 * .aoi-dl             - 定義テーブル（dt 200px / 罫線のみ）
 * .aoi-price / .aoi-price-wrap - 料金表（角丸枠 / dt 220px / 地色 #fdf8ee）
 *                       ※角丸は table 直付けでは cell 背景が角からはみ出すため wrap 側で clip する
 * .aoi-faq            - FAQアコーディオン（Q/Aバッジ＋高さアニメーション）
 * .aoi-cols           - 元データの各カラム比率（rep / stance / story / office / svcPhoto）
 * .aoi-works          - 実績リスト（dt:媒体名・主催者 / dd:タイトルを1段下げ）
 *
 * -- lifeplan
 * .aoi-life           - 30% / 66% の sticky ラベル付き2カラム
 * .aoi-qlist          - 番号付き問いかけリスト（現在5件）
 * .aoi-sheets         - ヒアリングシート3枚（lightbox）※2026-09-16にブロック削除、CSSのみ残置
 * .aoi-mandala        - マンダラチャート3×3（中央はリンクなし / SPは縦1列で中央が5番目）
 * .aoi-sec--topics    - マンダラチャートのセクション余白（上148px / 下56px + spacer）
 *
 * -- カテゴリ別一覧（読み物8ページ / includes/topics-list.php）
 * .aoi-blog__empty    - category_id 未登録時の「記事の準備中です。」
 * .aoi-topics__back   - ライフプランへ戻る導線（中央寄せ）
 *
 * -- service
 * .aoi-flow-bar       - 初回相談→個別相談の導線バー
 * .aoi-svc-block      - サービス各ブロック（番号＋見出し＋アイコン / gap:112px）
 *
 * -- contact
 * .aoi-tel-card       - 電話カード
 * .aoi-form-cms       - CMSお問い合わせフォーム(cms_id=7 / design_pattern=1)の見た目上書き
 *                       CMSは表示エリア内で mail-form.css を後読みするため、
 *                       全セレクタを .aoi-form-cms で1段深くして詳細度で勝たせている
 * .aoi-privacy        - 個人情報保護方針
 *
 * -- おしらせ
 * .aoi-blog__list     - おしらせ一覧（右サイドなし・行はTOPと同一 / max-width 1200px）
 * .aoi-blog__pager    - CMSの <%page_link%> 出力（.pages / .page_prev / .page_next）
 * .aoi-article__body  - 記事本文（CMS c=entry_body）。<p>無し出力にも耐える体裁をコンテナ側に持たせる
 * .aoi-article        - 記事詳細本文
 *
 * ======================================
 * 共通SCSSに不足していたもの（5分類）
 * ======================================
 *
 * ・値の粒度不足
 *   - font-size / margin の clamp() 指定（.fz-* / .mb-* は固定値のみ）
 *   - 余白 22 / 26 / 34 / 38 / 44 / 48 / 56 / 88 / 92 / 96 / 112 / 124 / 172px が utility に無い
 *   - line-height 1.15 / 1.25 / 1.95 / 2.05、letter-spacing 0.02 / 0.06 / 0.08 / 0.14 / 0.16em
 *   - 要素の固定幅 104 / 130 / 180 / 200 / 214 / 220 / 260 / 320px
 * ・指定方向不足
 *   - grid-template-columns の非等分指定（1fr/1.15fr・0.62fr/1.38fr・1.25fr/0.85fr・20%/66%・260px/1fr）
 *   - position:fixed を top/left/right の実数値で置く「浮きパーツ」（ロゴタイル・予約カード）
 *   - sticky の top を実数（118px）で指定するラベル列
 * ・状態不足
 *   - hover でグラデーションの向きだけを反転させる状態
 *   - アコーディオンの max-height トランジション（--smooth は padding も0にするため内側ラッパーが必要）
 * ・構造不足
 *   - 弧型（border-radius 50% 50% 0 0 / 100% 100% 0 0）でセクションに食い込むディバイダー
 *   - 負のmarginとz-indexで重ね合わせる円グループ（ライフプラン図）
 *   - ヘッダーが「ロゴ・ナビ・CTA」の3ブロックに分かれて個別に fixed される型
 * ・装飾パターン不足
 *   - 2色縦グラデーションの縦バー付き見出し（linear-gradient(#e5a63a 0 50%,#f2d94e 50% 100%)）
 *   - 暖色シャドウ rgba(150,115,60,*) / rgba(226,120,0,*) の各段階
 *
 * ======================================
 * 元データに無かったため実測から決めた値（要レビュー箇所）
 * ======================================
 *
 * claude-design-output/ には site.css / js/site.js が同梱されていないため、
 * 下記の3点だけは元データから読み取れず、実測にもとづいて決めています。
 *
 * 1. PC / SP の切り替え幅 = 1200px
 *    ナビ5項目（トップページ〜お問い合わせ）の実幅が約742px、
 *    左のロゴタイル172px＋右の予約カード228pxを避けると1190px以上必要なため。
 * 2. メインビューを縦積みにする幅 = 818px
 *    左右2カラムは819pxまで維持する。元データの写真幅 min(620px,78vw) では
 *    1191px以下でカラムから溢れて section の overflow:hidden に切られるため、
 *    幅を min(620px,44.3vw) に変更した（1400pxで元データどおり620px、
 *    819pxで約363px＝1.15frカラム約395pxの内側に収まる）。
 * 3. その他 data-rc グループ（svcCols / newsCols / lifeCols / repCols / stanceCols /
 *    storyCols / officeCols / svcPhotoCols / footPad）の折り返し幅
 *    = 共通SCSSのブレイクポイント（1100px / 896px / 639px）に合わせています。
 *
 */

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
  --aoi-ink: #404040;
  --aoi-body: #4a4239;
  --aoi-muted: #6e6558;
  --aoi-muted2: #7c7266;
  --aoi-muted3: #8a7f70;
  --aoi-main: #ffa400;
  --aoi-deep: #ed6f00;
  --aoi-en: #c8ab7b;
  --aoi-brown: #a85400;
  --aoi-brown2: #8a5a1c;
  --aoi-brown3: #7a5310;
  --aoi-beige: #f7f1e6;
  --aoi-cream: #fffdf8;
  --aoi-line: #e6dcc9;
  --aoi-line2: #f0e2c8;
  --aoi-dash: #eadfca;
  --aoi-grad: linear-gradient(135deg, #ffb62e, #ed6f00);
  --aoi-grad-r: linear-gradient(315deg, #ffb62e, #ed6f00);
  --aoi-grad-cta: linear-gradient(135deg, #e06a00, #c25700);
  --aoi-font-en: "Quicksand", sans-serif;
}

/* ==========================================================================
   1. Base
   ========================================================================== */
/* 元データは本文17pxのまま（SP縮小なし）。60代の閲覧を想定した字送りを維持する */
html,
body {
  overflow-x: clip;
}

body {
  font-weight: 500;
}

@media (max-width: 896px) {
  body { font-size: 1.7rem; }
}

@media (max-width: 639px) {
  body { font-size: 1.7rem; }
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.75;
}

/* ==========================================================================
   2. 共通パーツ
   ========================================================================== */
.aoi-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- スクロールフェードイン（移動量20px／過度な動きは不要という方針に合わせる） */
.aoi-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.aoi-fade.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .aoi-fade { opacity: 1; transform: none; transition: none; }
}

/* -- 見出しブロック */
.aoi-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.aoi-head--left {
  align-items: flex-start;
  text-align: left;
}

.aoi-en {
  display: block;
  margin: 0;
  font-family: var(--aoi-font-en);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--aoi-en);
}

.aoi-ttl {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--aoi-ink);
}

.aoi-lead {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--aoi-ink);
}

.aoi-head__note {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--aoi-muted);
}

.aoi-sub {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--aoi-ink);
}

.aoi-txt {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 2.05;
  color: var(--aoi-body);
  text-wrap: pretty;
}

.aoi-note {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.95;
  color: var(--aoi-brown3);
  text-wrap: pretty;
}

/* -- 縦バー付き見出し */
.aoi-bar-ttl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--aoi-line);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--aoi-ink);
}

.aoi-bar-ttl--20 { font-size: 20px; }

.aoi-bar-ttl::before {
  content: "";
  flex: none;
  width: 9px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(#e5a63a 0 50%, #f2d94e 50% 100%);
}

/* -- ボタン（共通 btn-circle-arrow をこのサイトの見た目に合わせる） */
.aoi-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  width: auto;
  max-width: none;
  padding: 7px 8px 7px 30px;
  border-radius: 999px;
  background: var(--aoi-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(226, 120, 0, 0.24);
}

.aoi-btn .btn__label {
  padding: 0;
  color: #fff;
}

.aoi-btn .btn__circle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.aoi-btn:hover {
  background: var(--aoi-grad-r);
  opacity: 1;
}

.aoi-btn:hover .btn__label { color: #fff; }

.aoi-btn:hover .btn__circle {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.aoi-btn--start { align-self: flex-start; }

.aoi-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--aoi-grad-cta);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.aoi-btn-cta:hover { opacity: 0.85; }

.aoi-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  padding: 14px 26px;
  border: 2px solid #f0d9ae;
  border-radius: 999px;
  background: #fff;
  color: var(--aoi-brown);
  font-size: 15px;
  font-weight: 700;
}

.aoi-btn-ghost:hover {
  background: #fff6e2;
  color: var(--aoi-brown);
  opacity: 1;
}

/* -- 葉のシルエット装飾（元データ opacity:0.5／枠外へのはみ出しごと再現） */
.aoi-leaf {
  position: absolute;
  width: 280px;
  height: 280px;
  opacity: 0.5;
  pointer-events: none;
}

.aoi-leaf--tr { right: -60px; top: -60px; }

.aoi-leaf--bl {
  left: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
}

/* -- ●付きリスト */
.aoi-dot-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.aoi-dot-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0;
  padding: 2px 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--aoi-ink);
}

.aoi-dot-list li::before {
  content: "";
  position: relative;
  top: -4px;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aoi-deep);
}


/* ==========================================================================
   3. ヘッダー / SPナビ
   ========================================================================== */
.aoi-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
}

/* -- ロゴ（左上固定の白タイル。ロゴは1つだけ） */
.aoi-header__logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px 22px;
  border-radius: 0 0 26px 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(150, 115, 60, 0.1);
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.55s ease;
}

.aoi-header__logo img {
  flex: none;
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.aoi-header__logo:hover { opacity: 1; }

/* -- PCナビ（白pill／中央寄せ） */
.aoi-header__navwrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  padding: 26px 244px 14px 200px;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.55s ease;
}

.aoi-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(150, 115, 60, 0.12);
  pointer-events: auto;
}

.aoi-header__nav-item a {
  flex-direction: row;
  padding: 8px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.aoi-header__nav-item a::after { display: none; }

.aoi-header__nav-ja {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--aoi-ink);
}

.aoi-header__nav-item a:hover { background: #fff3dd; }

/* 現在ページ（共通の header__nav-item--current が付く。共通の下線アニメは無効化済み） */
.aoi-header__nav-item.header__nav-item--current a { background: #fff3dd; }

.aoi-header__nav-item.header__nav-item--current a::after { display: none; }

.aoi-header__nav-item.header__nav-item--current .aoi-header__nav-ja { color: var(--aoi-brown2); }

/* -- 右上固定のご予約カード */
.aoi-hcta {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  display: block;
  width: 214px;
  height: auto;
  gap: 0;
  overflow: hidden;
  border: 2px solid var(--aoi-deep);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(150, 115, 60, 0.14);
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.8s ease;
}

.aoi-hcta__ttl {
  margin: 0;
  padding: 8px 10px;
  background: var(--aoi-deep);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #fff;
}

.aoi-hcta__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 10px 14px;
}

.aoi-hcta__badge {
  padding: 3px 12px;
  border-radius: 999px;
  background: #f4efe6;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  color: #6b6157;
}

.aoi-hcta__tel {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--aoi-font-en);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--aoi-ink);
}

.aoi-hcta__tel::before { content: none; margin: 0; }

.aoi-hcta__tel i {
  flex: none;
  font-size: 17px;
  color: var(--aoi-deep);
}

.aoi-hcta__note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--aoi-muted3);
}

.aoi-hcta__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  background: #06c755;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.aoi-hcta__line i { font-size: 18px; }

.aoi-hcta__mail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: auto;
  padding: 11px;
  background: #5c3a10;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.aoi-hcta__mail:hover {
  background: #4a2d0c;
  opacity: 1;
}

.aoi-hcta__arrow { font-size: 12px; }

/* -- SP用電話ボタン */
.aoi-header__sptel {
  display: none;
  position: fixed;
  top: 14px;
  right: 72px;
  z-index: 60;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--aoi-deep);
  color: #fff;
  box-shadow: 0 6px 14px rgba(226, 120, 0, 0.3);
}

.aoi-header__sptel i { font-size: 22px; }

.aoi-header__sptel:hover { opacity: 0.85; }

/* SPの電話・メニューボタンも元データと同じトランジションで上に隠す */
.aoi-header__sptel,
.aoi-nav-toggle {
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.55s ease;
}

/* -- ハンバーガー */
.aoi-nav-toggle {
  display: none;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 50px;
  height: 50px;
  border: 1px solid #f0e0c4;
  border-radius: 14px;
  background: #fff;
  backdrop-filter: none;
  box-shadow: 0 6px 14px rgba(150, 115, 60, 0.14);
}

.aoi-nav-toggle .nav-toggle__line {
  position: static;
  left: auto;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--aoi-deep);
  transform: none;
}

.aoi-nav-toggle.is-active .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aoi-nav-toggle.is-active .nav-toggle__line:nth-child(2) { opacity: 0; }
.aoi-nav-toggle.is-active .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -- SPドロップダウンパネル */
.aoi-sp-nav {
  top: 166px;
  right: 12px;
  bottom: auto;
  left: 12px;
  z-index: 59;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  max-height: calc(100vh - 190px);
  padding: 14px 20px 22px;
  border: 1px solid #f0e6d4;
  border-radius: 20px;
  background: var(--aoi-cream);
  box-shadow: 0 14px 30px rgba(150, 115, 60, 0.18);
}

.aoi-sp-nav__list {
  width: auto;
  max-width: none;
  text-align: left;
}

.aoi-sp-nav__item {
  border-top: 0;
  border-bottom: 1px dashed var(--aoi-dash);
}

.aoi-sp-nav__item:first-child { border-top: 0; }

.aoi-sp-nav__link {
  display: block;
  padding: 14px 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--aoi-ink);
}

.aoi-sp-nav__link::after { display: none; }

.aoi-sp-nav__link:hover {
  background: #fff3dd;
  opacity: 1;
}

.aoi-sp-nav__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
  max-width: none;
  margin-top: 14px;
}

.aoi-sp-nav__line,
.aoi-sp-nav__tel {
  display: block;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

.aoi-sp-nav__line {
  background: #06c755;
  font-size: 17px;
}

.aoi-sp-nav__tel {
  background: var(--aoi-grad-cta);
  font-size: 18px;
}

/* -- PC / SP の出し分け（ナビ幅の実測から 1200px で切り替える） */
@media (max-width: 1200px) {
  .aoi-header__navwrap,
  .aoi-hcta { display: none; }
  .aoi-header__sptel { display: flex; }
  .aoi-nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
}

@media (min-width: 1201px) {
  .aoi-header__nav { display: flex; }
  .aoi-sp-nav { display: none; }
}

/* --------------------------------------------------------------------------
   スクロール連動：下へスクロール中は上へ隠す／上へスクロールで戻す
   元データの各ブロックに transform + opacity のトランジションが仕込まれている
   （ロゴ・ナビ・SPボタン 0.65s/0.55s、予約カード 0.9s/0.8s）ため、
   その終点となる状態をここで定義する。付与は js/common.js。
   -------------------------------------------------------------------------- */
.is-header-hidden .aoi-header__logo,
.is-header-hidden .aoi-header__navwrap {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.is-header-hidden .aoi-hcta,
.is-header-hidden .aoi-header__sptel,
.is-header-hidden .aoi-nav-toggle {
  transform: translateY(calc(-100% - 20px));
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .aoi-header__logo,
  .aoi-header__navwrap,
  .aoi-hcta,
  .aoi-header__sptel,
  .aoi-nav-toggle { transition: none; }
}

/* ==========================================================================
   4. フッター
   ========================================================================== */
.aoi-footer {
  background: var(--aoi-beige);
  border-top: 1px solid #eee0c6;
}

.aoi-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 32px;
}

.aoi-footer__lead {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.aoi-footer__copy {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--aoi-ink);
}

.aoi-footer__chara {
  flex: none;
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.aoi-footer__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

.aoi-footer__col {
  display: flex;
  flex-direction: column;
}

.aoi-footer__col--info { gap: 12px; }
.aoi-footer__col--map { gap: 8px; padding-top: 124px; }
.aoi-footer__col--sns { gap: 14px; padding-top: 124px; }

.aoi-footer__logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.aoi-footer__txt {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--aoi-body);
}

.aoi-footer__tel {
  font-family: var(--aoi-font-en);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--aoi-brown);
}

.aoi-footer__label {
  font-family: var(--aoi-font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--aoi-en);
}

.aoi-footer__link {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--aoi-body);
}

.aoi-footer__sns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aoi-footer__snslink {
  padding: 11px 20px;
  border: 1px solid #eee0c6;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--aoi-brown);
}

.aoi-footer__map { border-radius: 18px; }

.aoi-footer__map iframe {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
  border-radius: 18px;
}

.aoi-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 0;
  border-top: 1px solid var(--aoi-dash);
}

.aoi-footer__privacy {
  font-size: 15px;
  font-weight: 500;
  color: var(--aoi-muted2);
}

.aoi-footer__cr {
  font-family: var(--aoi-font-en);
  font-size: 15px;
  font-weight: 500;
  color: var(--aoi-muted3);
}

/* -- ページトップ（サイトトーンに合わせる） */
.page-top__link {
  background: var(--aoi-grad);
  box-shadow: 0 6px 16px rgba(226, 120, 0, 0.24);
}

.page-top__link:hover {
  background: var(--aoi-grad-r);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. TOP — メインビュー
   ========================================================================== */
.aoi-mv {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.aoi-mv__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 32px;
  padding: 172px 0 96px;
}

.aoi-mv__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 24px 0 max(24px, calc((100vw - 1400px) / 2 + 24px));
}

.aoi-mv__catch {
  margin: 0;
  font-size: clamp(26px, 5.6vw, 46px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--aoi-ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.aoi-mv__catch em {
  font-style: normal;
  color: var(--aoi-main);
}

.aoi-mv__en {
  display: block;
  font-family: var(--aoi-font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--aoi-en);
}

.aoi-mv__lead {
  margin: 0;
  max-width: 26em;
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  color: var(--aoi-body);
  text-wrap: pretty;
}

.aoi-mv__illust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  max-width: 560px;
  margin-top: 6px;
}

.aoi-mv__illust img {
  display: block;
  min-width: 0;
  height: auto;
}

.aoi-mv__illust img:nth-child(1) { flex: 1 1 110px; max-width: 148px; }
.aoi-mv__illust img:nth-child(2) { flex: 1 1 95px; max-width: 126px; }

.aoi-mv__visual {
  position: relative;
  min-width: 0;
}

/* CMSスライダー差し替え前提の外枠（ビューポート）。
   高さはレスポンシブで明示指定する（CMSスライダーは height:100% で外枠に追従する仕様のため）。
   幅はカラムいっぱい。スライド1枚は620pxなので、次のスライドの左端が覗く元データの見え方になる。 */
#slideshow {
  position: relative;
  width: 100%;
  height: calc(min(620px, 44.3vw) * 11 / 16);
  overflow: hidden;
}

.aoi-mv__track {
  display: flex;
  gap: 24px;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.aoi-mv__slide {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min(620px, 44.3vw);
  aspect-ratio: 16 / 11;
  padding: 24px;
  overflow: hidden;
  border: 3px solid #ffb62e;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffeecd, #f4e2c0);
  text-align: center;
}

.aoi-mv__slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ドット（元データどおり枠外へ 30px はみ出す。overflow で clip しない） */
.aoi-mv__dots {
  position: absolute;
  right: 24px;
  bottom: -30px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.aoi-mv__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e8d9bd;
  cursor: pointer;
  transition: width 0.4s ease, background 0.4s ease;
}

.aoi-mv__dot.is-active {
  width: 34px;
  background: var(--aoi-deep);
}

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

.aoi-mv__phlabel {
  font-family: var(--aoi-font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #a1743a;
}

.aoi-mv__phttl {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  color: #7a5c2c;
}

.aoi-mv__phnote {
  font-size: 14px;
  color: #8a6b39;
}

/* -- 弧型ディバイダー（ヒーローへの食い込みごと再現） */
.aoi-arc {
  position: relative;
  z-index: 1;
  height: clamp(80px, 9vw, 140px);
  margin-top: clamp(-190px, -14vw, -110px);
  overflow: hidden;
  pointer-events: none;
}

.aoi-arc__shape {
  position: absolute;
  top: 0;
  right: -20%;
  left: -20%;
  height: 400px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--aoi-beige);
}

/* ==========================================================================
   6. TOP — ごあいさつ
   ========================================================================== */
.aoi-greeting {
  position: relative;
  padding: 48px 0 92px;
  background: var(--aoi-beige);
}

.aoi-greeting__body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 44px auto 0;
}

.aoi-greeting__profile {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.aoi-greeting__ph {
  flex: none;
  overflow: hidden;
  width: 130px;
  height: 130px;
  padding: 0;
  border-radius: 999px;
}

.aoi-greeting__ph img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: top;
}

.aoi-greeting__pname {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 32em;
  text-align: left;
}

.aoi-greeting__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--aoi-ink);
}

.aoi-greeting__lic {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--aoi-muted);
}

.aoi-greeting__btn {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ==========================================================================
   7. TOP — はじめに（ライフプランが土台）
   ========================================================================== */
.aoi-approach {
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
  background: #f7f4f0 var(--aoi-approach-bg) center 22% / auto 70% no-repeat;
}

.aoi-approach__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 1400px;
  margin: 0 auto;
}

.aoi-approach__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.aoi-approach__figure {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 8px;
}

.aoi-approach__person {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.aoi-approach__person img {
  flex: none;
  display: block;
  width: clamp(88px, 11vw, 132px);
  height: auto;
  margin-right: -14px;
}

.aoi-approach__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.aoi-approach__balloon {
  position: relative;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--aoi-main);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}

.aoi-approach__balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--aoi-main);
  transform: rotate(45deg);
}

.aoi-approach__word {
  margin-top: 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--aoi-deep);
}

.aoi-circles {
  /* 円の直径。5つ並べると幅は 直径 × 4.56（重なり 0.11 × 4か所）。SPは画面幅から逆算して縮める */
  --aoi-circle: clamp(76px, 9vw, 116px);
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  max-width: 100%;
}

.aoi-circles span {
  position: relative;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: var(--aoi-circle);
  aspect-ratio: 1;
  border: 2px solid var(--aoi-main);
  border-radius: 50%;
  background: #fff;
  text-align: center;
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--aoi-main);
}

.aoi-circles span:nth-child(1) { z-index: 5; transform: translateY(-12%); }
.aoi-circles span:nth-child(2) { z-index: 4; transform: translateY(12%); }
.aoi-circles span:nth-child(3) { z-index: 3; transform: translateY(-12%); }
.aoi-circles span:nth-child(4) { z-index: 2; transform: translateY(12%); }
.aoi-circles span:nth-child(5) { z-index: 1; transform: translateY(-12%); }

.aoi-circles span + span { margin-left: calc(var(--aoi-circle) * -0.11); }

.aoi-approach__btn {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   8. TOP — サービスのご案内
   ========================================================================== */
.aoi-svc {
  max-width: 1400px;
  margin: 0 auto;
  padding: 88px 24px 0;
}

.aoi-svc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 26px;
  align-items: stretch;
  margin-top: 52px;
}

.aoi-svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 26px 22px 24px;
  border: 1px solid var(--aoi-main);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  color: var(--aoi-ink);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.aoi-svc-card:hover {
  background: #fffbee;
  box-shadow: 0 10px 24px rgba(180, 140, 80, 0.16);
  opacity: 1;
}

.aoi-svc-card__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.aoi-svc-card__ttl {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.aoi-svc-card__icon {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff3dd;
}

.aoi-svc-card__icon img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.aoi-svc-card__txt {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--aoi-muted);
}

.aoi-svc-card__img {
  display: block;
  width: 100%;
  margin-top: auto;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

/* ==========================================================================
   9. TOP — おしらせ
   ========================================================================== */
.aoi-news {
  max-width: 1400px;
  margin: 0 auto;
  /* 下は元データのページ末尾の余白（lifeplan / contact の height:120px スペーサー）に合わせる。
     元データのTOPは padding-bottom:0 でフッターに詰まっていたため 120px を足している */
  padding: 88px 24px 120px;
}

.aoi-news__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
}

.aoi-news__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.aoi-news__en {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1;
}

.aoi-news__ttl { margin: 0 0 8px; }

.aoi-news__list {
  min-width: 0;
}

/* 行のスタイルは TOP と おしらせ一覧の両方で使うため、共通の外枠 .aoi-news__items に付ける
   （以前は TOP専用の .aoi-news__list で囲っていたため、一覧ページで共通CSSの
     .news-list__date 0.9rem=9px に落ちていた） */
.aoi-news__items {
  border-top: 1px solid var(--aoi-line);
}

/* CMSは <span id="…-area"> の innerHTML に記事を書き出す。
   その span がインラインのままだと行が横に並ぶため block にしておく */
.aoi-news__items > span[id^="cms-blog-entry-list"] { display: block; }

.aoi-news__items .news-list__item { border-bottom: 1px solid var(--aoi-line); }

.aoi-news__items .news-list__link {
  gap: 8px 32px;
  padding: 26px 4px;
  color: var(--aoi-ink);
}

.aoi-news__items .news-list__link:hover {
  background: #fffbf2;
  opacity: 1;
}

.aoi-news__items .news-list__date {
  font-family: var(--aoi-font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--aoi-muted3);
}

.aoi-news__items .news-list__title {
  flex: 1;
  min-width: 200px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
}

.aoi-news__arrow {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #4a3b2c;
  font-size: 16px;
  color: #fff;
}

.aoi-news__sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.aoi-news__snsttl {
  margin: 0 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--aoi-muted2);
}

/* 下線リンクだとアイコンと文字が別リンクに見えるため、白地のpillボタンにする
   （枠の太さ・角丸はフッターのSNSボタン／.aoi-btn-ghost と揃え、枠線は文字と同じ茶色） */
.aoi-news__snslink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--aoi-brown2);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--aoi-brown2);
}

.aoi-news__snslink:hover {
  background: #fff6e2;
  opacity: 1;
}

.aoi-news__snslink i {
  font-size: 18px;
}

/* ==========================================================================
   10. 下層共通 — ページヒーロー
   ========================================================================== */
.aoi-hero {
  position: relative;
  overflow: hidden;
  padding: 172px 24px 60px;
  background: var(--aoi-beige);
}

.aoi-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.aoi-hero__ttl {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--aoi-ink);
}

.aoi-hero__lead {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  color: var(--aoi-body);
  text-wrap: pretty;
}

.aoi-hero__lead--narrow { max-width: 820px; }

.aoi-hero--list { padding: 168px 24px 56px; }

/* -- 下層セクションの標準余白 */
.aoi-sec {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.aoi-sec--64 { padding: 64px 24px 0; }
.aoi-sec--56 { padding: 56px 24px 0; }
.aoi-sec--88 { padding: 88px 24px 0; }
.aoi-sec--44 { padding: 44px 24px 0; }
.aoi-sec--narrow { max-width: 1000px; }

/* ページ末尾のセクションに付ける。元データのページ末尾余白（lifeplan / contact の
   height:120px スペーサー）と同じ量をフッター手前に確保する */
.aoi-sec--last { padding-bottom: 120px; }

.aoi-spacer { height: 120px; }

/* -- 元データのカラム比率 */
.aoi-cols {
  display: grid;
  min-width: 0;
}

.aoi-cols--rep {
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 38px;
  align-items: stretch;
  margin-top: 34px;
}

.aoi-cols--stance {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: stretch;
}

.aoi-cols--story {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
}

.aoi-cols--office {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 28px;
}

.aoi-cols--photo {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.aoi-cols--auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.aoi-cols--gap20 { gap: 20px; }

.aoi-cols__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.aoi-cols__body--16 { gap: 16px; }

.aoi-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.aoi-photo--rep { min-height: 280px; }
.aoi-photo--stance { min-height: 320px; }
.aoi-photo--story { min-height: 420px; }

.aoi-photo--43 {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.aoi-photo--169 {
  width: 100%;
  height: auto;
  margin-top: 8px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  object-fit: cover;
}

/* -- 定義テーブル（事務所概要） */
.aoi-dl { border-collapse: collapse; }

.aoi-dl th,
.aoi-dl td {
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--aoi-line);
  background: none;
  vertical-align: top;
}

.aoi-dl th {
  width: 200px;
  font-size: 15px;
  font-weight: 700;
  color: var(--aoi-brown2);
  white-space: nowrap;
}

.aoi-dl td {
  font-size: 16px;
  line-height: 1.9;
}

.aoi-dl td a {
  font-family: var(--aoi-font-en);
  font-weight: 600;
  color: var(--aoi-brown);
}

/* 電話番号以外の文中リンク（ご相談 → お問い合わせフォーム）。英字フォントにせず、下線で押せることを示す */
.aoi-dl td a.aoi-dl__textlink {
  font-family: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -- 料金表 */
.aoi-price-wrap {
  max-width: 900px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--aoi-line2);
  border-radius: 24px;
}

.aoi-price {
  border-collapse: collapse;
}

.aoi-price th,
.aoi-price td {
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid #f5ebd9;
  vertical-align: top;
}

.aoi-price tr:last-child th,
.aoi-price tr:last-child td { border-bottom: 0; }

.aoi-price th {
  width: 220px;
  background: #fdf8ee;
  font-size: 16px;
  font-weight: 700;
  color: var(--aoi-brown2);
  white-space: nowrap;
}

.aoi-price td {
  font-size: 16px;
  line-height: 1.9;
}

.aoi-price td.is-blank {
  font-size: 15px;
  color: #9a8f80;
}

/* -- 経歴（dl-timeline のこのサイト用調整） */
.aoi-career .dl-timeline__row {
  gap: 16px;
  padding: 12px 0;
  border-top: 0;
  border-bottom: 1px dashed var(--aoi-dash);
}

.aoi-career .dl-timeline__row:first-child { border-top: 0; }
.aoi-career .dl-timeline__row:last-child { border-bottom: 0; }

.aoi-career .dl-timeline__year {
  min-width: 104px;
  font-family: var(--aoi-font-en);
  font-size: 15px;
  font-weight: 600;
  color: var(--aoi-brown);
}

.aoi-career .dl-timeline__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--aoi-ink);
}

.aoi-defs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aoi-defs span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--aoi-ink);
}

.aoi-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aoi-block--18 { gap: 18px; }
.aoi-block--26 { gap: 26px; }

/* -- 実績リスト（媒体名・主催者 dt ＋ タイトル dd）
      .aoi-defs と同じ 16px/1.8 の行送りに合わせ、dd だけ1段下げて並べる */
.aoi-works {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.aoi-works__row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.aoi-works dt {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--aoi-ink);
}

.aoi-works dd {
  margin: 0;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--aoi-body);
  text-wrap: pretty;
}

/* -- FAQ アコーディオン */
.aoi-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.aoi-faq {
  overflow: hidden;
  border: 1px solid var(--aoi-line2);
  border-radius: 20px;
  background: #fff;
}

.aoi-faq__head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  background: var(--aoi-cream);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.aoi-faq__head:hover { background: #fff6e2; }

.aoi-faq__head::after {
  content: "＋";
  margin-left: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--aoi-brown);
}

.aoi-faq.is-open .aoi-faq__head::after { content: "−"; }

.aoi-faq__q {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdd819;
  font-family: var(--aoi-font-en);
  font-size: 16px;
  font-weight: 600;
  color: #5c4200;
}

.aoi-faq__ttl {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--aoi-ink);
}

.aoi-faq__body {
  padding: 0;
  border-top: 0;
  background: #fff;
}

.aoi-faq.is-open .aoi-faq__body {
  padding-top: 0;
  padding-bottom: 0;
}

.aoi-faq__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px 26px;
  border-top: 1px dashed var(--aoi-dash);
}

.aoi-faq__a {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff2d6;
  font-family: var(--aoi-font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--aoi-brown);
}

.aoi-faq__txt {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: var(--aoi-body);
  text-wrap: pretty;
}

/* -- 地図（下層） */
.aoi-map--col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.aoi-map--col > .embed {
  flex: 1;
  min-height: 380px;
  border-radius: 24px;
}

.aoi-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 24px;
}

/* ==========================================================================
   11. about — こだわり帯
   ========================================================================== */
.aoi-policy {
  margin-top: 64px;
  padding: 72px 24px;
  background: var(--aoi-beige);
}

.aoi-policy__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.aoi-policy__en { margin-bottom: -12px; }

.aoi-policy__img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-top: 12px;
}

.aoi-stance__en { margin-bottom: -12px; }

/* ==========================================================================
   12. lifeplan
   ========================================================================== */
.aoi-life {
  display: grid;
  grid-template-columns: 30% 66%;
  justify-content: space-between;
  gap: 0;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.aoi-life--76 { padding: 76px 24px 0; }

.aoi-life--band {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-top: 80px;
  padding: 76px 24px;
  background: var(--aoi-beige);
}

.aoi-life--band .aoi-life__label { position: static; }

.aoi-life__label {
  position: sticky;
  top: 118px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.aoi-life__en {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.25;
}

.aoi-life__main { min-width: 0; }

.aoi-life__main--stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.aoi-life__band-inner {
  position: relative;
  display: grid;
  grid-template-columns: 30% 66%;
  justify-content: space-between;
  gap: 0;
  align-items: start;
  max-width: 1352px;
  margin: 0 auto;
}

.aoi-qlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--aoi-line);
}

.aoi-qlist li {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 20px 4px;
  border-bottom: 1px solid var(--aoi-line);
}

.aoi-qlist__num {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fdd819;
  font-family: var(--aoi-font-en);
  font-size: 15px;
  font-weight: 600;
  color: #5c4200;
}

.aoi-qlist__txt {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--aoi-ink);
}

.aoi-life__after {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.aoi-life__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.aoi-life__sub {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 44px;
  text-align: left;
}

.aoi-life__sub .aoi-bar-ttl { align-self: stretch; }

.aoi-cols--mt32 { margin-top: 32px; }

.aoi-btn--mt10 { margin-top: 10px; }

.aoi-photo--insurance {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 24px;
  object-fit: cover;
}

.aoi-sheets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.aoi-sheets__ttl {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--aoi-brown2);
}

.aoi-sheets__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.aoi-sheets__item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--aoi-dash);
  border-radius: 12px;
  background: #fff;
}

.aoi-sheets__item img {
  display: block;
  width: 100%;
  height: auto;
}

.aoi-sheets__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 59, 44, 0.82);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* -- マンダラチャート（3×3・記事カテゴリへの入口8マス＋中央ラベル）
      lifeplan.php の他セクション（左に見出し／右に本文の2カラム）とは別扱いで、
      .aoi-sec + .aoi-head の「見出しが上・中央寄せ」の独立セクションに置く。
      配置は lifeplan.php の DOM順で固定。grid の自動配置に任せているため
      SPで1カラムにすると中央マスがそのまま5番目に来る（追記ラフの指定どおり）。
      マスの高さは grid の行ストレッチで揃う。長いラベルは2行に折り返させ、
      フォントサイズは個別に縮小しない。動きはホバーの背景変化のみ。 */
/* マンダラチャートのセクション。上の HOUSING（左右2カラム）と構造が変わるので、
   標準の .aoi-sec（72px）より上下の余白を広く取って区切りを付ける。
   ページ末尾の余白は他ページと同じ .aoi-spacer（120px）を併用する。 */
.aoi-sec--topics {
  padding-top: 148px;
  padding-bottom: 56px;
}

.aoi-mandala {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 44px auto 0;
}

.aoi-mandala__cell,
.aoi-mandala__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 152px;
  padding: 22px 18px;
  border-radius: 16px;
  text-align: center;
  text-wrap: balance;
}

.aoi-mandala__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.aoi-mandala__desc {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--aoi-muted2);
}

.aoi-mandala__cell {
  border: 2px solid var(--aoi-line2);
  background: #fff;
  color: var(--aoi-ink);
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease;
}

.aoi-mandala__cell:hover,
.aoi-mandala__cell:focus-visible {
  border-color: var(--aoi-main);
  background: #fffbf2;
}

/* 中央は土台。リンクにしない（span で組んである）ので、押せる見た目を与えない */
.aoi-mandala__center {
  border: 2px solid transparent;
  background: var(--aoi-grad);
  color: #fff;
  cursor: default;
}

.aoi-mandala__center .aoi-mandala__desc { color: rgba(255, 255, 255, 0.9); }

/* 丸矢印は他のリンクボタンと同じ共通パーツ（main.css の .btn__circle）。
   マスに収まるよう 44px → 36px に縮めるところだけこちらで指定する。
   中央マスはリンクではないので矢印を置かない（lifeplan.php 側に無い）。 */
.aoi-mandala__cell .btn__circle {
  width: 36px;
  height: 36px;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1;
}

.aoi-mandala__cell:hover .btn__circle,
.aoi-mandala__cell:focus-visible .btn__circle { background: var(--aoi-deep); }

/* 四隅（夢のマイホーム／後悔のない人生／家族との暮らし／経済的自由を手に入れる）は
   中央と同じグラデーションで塗る。丸矢印は背景に溶けないよう白地×オレンジ矢印に反転。 */
.aoi-mandala__cell--accent {
  border-color: transparent;
  background: var(--aoi-grad);
  color: #fff;
  transition: opacity .25s ease;
}

.aoi-mandala__cell--accent .aoi-mandala__desc { color: rgba(255, 255, 255, 0.9); }

.aoi-mandala__cell--accent .btn__circle {
  background: #fff;
  color: var(--aoi-deep);
}

.aoi-mandala__cell--accent:hover,
.aoi-mandala__cell--accent:focus-visible {
  border-color: transparent;
  background: var(--aoi-grad);
  opacity: .85;
}

.aoi-mandala__cell--accent:hover .btn__circle,
.aoi-mandala__cell--accent:focus-visible .btn__circle {
  background: #fff;
  color: var(--aoi-deep);
}

/* -- カテゴリ別一覧：記事0件（category_id 未登録）のときの文言 */
.aoi-blog__empty {
  margin: 0;
  padding: 40px 4px;
  text-align: center;
}

/* -- カテゴリ別一覧：ライフプランへ戻る導線 */
.aoi-topics__back {
  display: flex;
  justify-content: center;
}

.aoi-life__fig {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   13. service
   ========================================================================== */
.aoi-flow-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px solid var(--aoi-line2);
  border-radius: 24px;
  background: var(--aoi-cream);
}

.aoi-flow-bar__on {
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--aoi-grad);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.aoi-flow-bar__off {
  padding: 14px 26px;
  border: 1px solid #f2ddb0;
  border-radius: 999px;
  background: #fff2d6;
  font-size: 17px;
  font-weight: 700;
  color: var(--aoi-brown2);
}

.aoi-flow-bar__arrow {
  font-size: 22px;
  color: #c08a3a;
}

.aoi-flow-bar__note {
  font-size: 15px;
  font-weight: 500;
  color: var(--aoi-muted2);
}

.aoi-svc-blocks {
  display: flex;
  flex-direction: column;
  gap: 112px;
}

.aoi-svc-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.aoi-svc-block__head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.aoi-svc-block__num {
  font-family: var(--aoi-font-en);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: #f0b64a;
}

.aoi-svc-block__ttl {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--aoi-ink);
}

.aoi-svc-block__icon {
  flex: none;
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.aoi-svc-block .aoi-bar-ttl { margin: 12px 0 0; }
.aoi-svc-block .aoi-bar-ttl--tight { margin: 0 0 10px; }

.aoi-svc-block__note {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--aoi-muted);
  text-wrap: pretty;
}

.aoi-svc-block__note--lead { margin: 0 0 6px; }

.aoi-btn--mt6 { margin-top: 6px; }

/* ==========================================================================
   14. contact
   ========================================================================== */
.aoi-tel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 26px;
  border: 1px solid var(--aoi-line2);
  border-radius: 24px;
  background: #fff;
}

.aoi-tel-card__label {
  font-family: var(--aoi-font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #c08a3a;
}

.aoi-tel-card__num {
  font-family: var(--aoi-font-en);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--aoi-brown);
}

.aoi-tel-card__note {
  font-size: 15px;
  font-weight: 500;
  color: var(--aoi-muted);
}

/* --------------------------------------------------------------------------
   お問い合わせフォーム（CMS: cms_id=7 / design_pattern=1）

   CMSは表示エリア内で mail-form.css を後から読み込むため、同一詳細度では
   CMS側が勝つ。そのため全セレクタを .aoi-form-cms で1段深くして上書きする。
   入力欄へ書き込まれるインラインの色指定の除去は js/contact.js。

   CMSの出力構造:
     #cms-contact-1-1-area > .form-contents.form-pattern-1
       > .form-thanks-msg / .form-err-msg
       > form > dl > dt(span.required) + dd(.textarea / .textarea-serect / label>input.radio)
       > button.submit-btn
   -------------------------------------------------------------------------- */
.aoi-form-cms {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  border: 1px solid var(--aoi-line2);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(180, 140, 80, 0.08);
}

/* -- CMS既定の内側余白・背景を消す */
.aoi-form-cms .form-contents {
  padding: 0;
  margin: 0;
  background: transparent;
}

.aoi-form-cms .form-contents form dl { margin: 0; }

/* -- dt/dd：既定の「左280pxのラベル列（float）」をやめ、ラベルを入力の上に置く */
.aoi-form-cms .form-contents form dl dt:not(.pattern-exclusion) {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 0 12px;
  text-align: left;
}

.aoi-form-cms .form-contents form dl dd:not(.pattern-exclusion) {
  margin: 0;
  padding: 0 0 32px;   /* 元データの行間 gap:32px にあたる */
  line-height: 1.9;
}

.aoi-form-cms .form-pattern-1 dl dd:not(.pattern-exclusion) { border-bottom: none; }

.aoi-form-cms .form-contents form dl dd:not(.pattern-exclusion):last-of-type { padding-bottom: 0; }

/* -- ラベル。CMSは「必須」を ::before で前に出すため、
      inline-flex + row-reverse でラベルの後ろへ回す（元データは末尾配置） */
.aoi-form-cms .form-contents form dl dt:not(.pattern-exclusion) span {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--aoi-ink);
}

/* CMSの `span.required::before` は (0,3,4) なので、こちらも .required / .optional まで
   含めて (0,4,4) にしないと背景色（赤チップ）を落とせない */
.aoi-form-cms .form-pattern-1 dl dt:not(.pattern-exclusion) span.required::before,
.aoi-form-cms .form-pattern-1 dl dt:not(.pattern-exclusion) span.optional::before {
  position: static;
  top: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.aoi-form-cms .form-pattern-1 dl dt:not(.pattern-exclusion) span.required::before { color: #c25700; }
.aoi-form-cms .form-pattern-1 dl dt:not(.pattern-exclusion) span.optional::before { color: var(--aoi-muted3); }

/* -- 入力欄 / セレクト / テキストエリア */
.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) .textarea,
.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) .textarea-serect {
  width: 100%;
  height: auto;
  padding: 16px 18px;
  border: 1px solid #e6d9c0;
  border-radius: 16px;
  background: var(--aoi-cream);
  color: var(--aoi-ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.9;
  transition: border-color 0.3s ease;
}

.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) textarea.textarea { resize: vertical; }

/* -- セレクトの矢印。ネイティブ矢印は右端に寄って padding-right が効かないため、
      appearance:none + SVG矢印にして位置を実数（右から20px）で指定する */
.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) .textarea-serect {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a85400' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
  cursor: pointer;
}

.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) .textarea:focus,
.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) .textarea-serect:focus {
  border-color: var(--aoi-deep);
  outline: none;
}

.aoi-form-cms .form-contents dd:not(.pattern-exclusion) .textarea::placeholder { color: #9a8f80; }

/* -- エラー時の入力欄（js/contact.js が .is-error を付ける） */
.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) .textarea.is-error,
.aoi-form-cms .form-pattern-1 dd:not(.pattern-exclusion) .textarea-serect.is-error {
  border-color: #c25700;
  background: #fff6e2;
}

/* -- ラジオ / チェックボックスは label で包まれて出力される → 元データのpill型に */
.aoi-form-cms .form-contents dd:not(.pattern-exclusion) label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 12px 12px 0;
  padding: 14px 22px;
  border: 1px solid var(--aoi-line2);
  border-radius: 999px;
  background: var(--aoi-cream);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--aoi-ink);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.aoi-form-cms .form-contents dd:not(.pattern-exclusion) label:hover {
  border-color: var(--aoi-main);
  background: #fff6e2;
}

.aoi-form-cms .form-contents dd:not(.pattern-exclusion) label input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--aoi-deep);
}

/* -- 送信ボタン。CMS既定（幅300px・グレー・封筒アイコン）を元データのグラデpillに */
.aoi-form-cms .form-contents .submit-btn,
.aoi-form-cms .form-contents :not(.pattern-exclusion) button.submit-btn {
  display: block;
  width: auto;
  margin: 32px auto 0;
  padding: 20px 56px;
  border: 0;
  border-radius: 999px;
  background: var(--aoi-grad-cta);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(226, 120, 0, 0.3);
  transition: opacity 0.3s ease;
}

.aoi-form-cms .form-pattern-1 .submit-btn:hover,
.aoi-form-cms .form-pattern-1 :not(.pattern-exclusion) button:hover {
  background: var(--aoi-grad-cta);
  opacity: 0.88;
}

.aoi-form-cms .form-contents .submit-btn::before,
.aoi-form-cms .form-pattern-1 .submit-btn::before { content: none; }

/* -- エラーメッセージ */
.aoi-form-cms .form-contents .form-err-msg {
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 1px solid #f3dfb2;
  border-radius: 20px;
  background: #fff6e2;
  color: #c25700;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}

.aoi-form-cms .form-contents .form-err-msg ul { list-style: none; margin: 0; padding: 0; }
.aoi-form-cms .form-contents .form-err-msg li { padding: 2px 0; }

/* -- 送信完了メッセージ */
.aoi-form-cms .form-pattern-1 .form-thanks-msg {
  padding: 36px 28px;
  border: 1px solid #f3dfb2;
  border-radius: 24px;
  background: #fff6e2;
  text-align: center;
}

.aoi-form-cms .form-contents .form-thanks-msg p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  color: var(--aoi-body);
}

.aoi-form-cms .form-contents .form-thanks-msg .back-home-btn {
  width: auto;
  margin-top: 24px;
}

.aoi-form-cms .form-pattern-1 .form-thanks-msg .back-home-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 14px 26px;
  border: 2px solid #f0d9ae;
  border-radius: 999px;
  background: #fff;
  color: var(--aoi-brown);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.aoi-form-cms .form-pattern-1 .form-thanks-msg .back-home-btn a:hover {
  background: #fff6e2;
  color: var(--aoi-brown);
}


.aoi-form__note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--aoi-muted3);
}

.aoi-privacy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.aoi-privacy__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 6px;
}

.aoi-privacy__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   15. おしらせ（一覧 / 詳細）
   ========================================================================== */
/* -- 記事詳細（本文＋サイドバーの2カラム） */
.aoi-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

/* 記事詳細は上にヒーローもパンくずも無いため、固定ヘッダーを避ける余白を
   このセクション自身で確保する（削除した .aoi-sec--entry の 152px ＋ 28px） */
.aoi-blog--detail { padding: 180px 24px 0; }

/* -- おしらせ一覧はサイドバーが無い1カラムなので grid をやめる。
      grid のままだと auto-fit のトラック幅（約694px）が
      .aoi-blog__list の max-width より狭く、幅指定が効かない */
.aoi-blog--single {
  display: block;
}

/* -- おしらせ一覧（右サイドなし・行はTOPのおしらせと同一）
      幅は中央寄せの1カラム。コンテナの内寸は1352px（1400 − 左右padding48）なので、
      1200px は左右に76pxの余白を残した値。
      全幅にしたい場合は max-width を外す（= 1352px）。 */
.aoi-blog__list {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* -- 読み物カテゴリ一覧（サムネイルあり / cms/topics_list_template.html）
      行 = 左サムネイル（3:2）＋ 右に日付（時計アイコン）とタイトル。
      サムネイル未設定の記事は <if_image> が出力されないため、枠に敷いたロゴが見える
      （<if_no_image> はCMSで出力が壊れるので使わない。cms/_NOTES.md 参照）。 */
.aoi-tlist__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px;
  border-bottom: 1px solid var(--aoi-line);
  color: var(--aoi-ink);
  text-decoration: none;
  transition: background-color .25s ease;
}

.aoi-tlist__item:hover {
  background: #fffbf2;
  opacity: 1;
}

.aoi-tlist__thumb {
  position: relative;
  flex: none;
  width: 240px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--aoi-beige) url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28627/logo.png) center / 40% auto no-repeat;
}

.aoi-tlist__img {
  position: absolute;
  inset: 0;
  background-color: var(--aoi-beige);
  background-position: center;
  background-size: cover;
  transition: transform .4s ease;
}

.aoi-tlist__item:hover .aoi-tlist__img { transform: scale(1.04); }

.aoi-tlist__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.aoi-tlist__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--aoi-font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--aoi-muted3);
}

.aoi-tlist__clock {
  width: 14px;
  height: 14px;
  flex: none;
}

.aoi-tlist__title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* -- ページャー（CMSの <%page_link%> 出力）
      CMSは番号ページャーを出さず「前へ／次へ」の2ボタンのみ。
      1ページに収まる場合は空文字を返すため :empty で余白を消す。
      クラス .pages / .page_prev / .page_next はCMS側の名前（変更不可）。 */
.aoi-blog__pager {
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
}

.aoi-blog__pager:empty { display: none; }

.aoi-blog__pager .pages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.aoi-blog__pager .pages:empty { display: none; }

.aoi-blog__pager .page_prev a,
.aoi-blog__pager .page_next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--aoi-line2);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--aoi-brown);
}

.aoi-blog__pager .page_prev a:hover,
.aoi-blog__pager .page_next a:hover {
  border-color: transparent;
  background: var(--aoi-grad-cta);
  color: #fff;
  opacity: 1;
}

/* -- 記事詳細 */
.aoi-article {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.aoi-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}


.aoi-article__date {
  font-family: var(--aoi-font-en);
  font-size: 15px;
  font-weight: 600;
  color: var(--aoi-muted3);
}

.aoi-article__ttl {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--aoi-ink);
  text-wrap: pretty;
}

/* -- 記事本文（CMS出力 c=entry_body）
      本文は <p> を含まず <br> と <img> だけで返ることがあるため、
      文字の体裁はコンテナ側に持たせる。
      見出し・画像・リスト・引用は、記事内に入ってきた場合の受け皿。 */
.aoi-article__body {
  font-size: 17px;
  font-weight: 500;
  line-height: 2.05;
  color: var(--aoi-body);
  text-wrap: pretty;
}

/* CMSは <span id="…-area"> に本文を書き出す。インラインのままだと
   中のブロック要素が正しく積まれないため block にしておく */
.aoi-article__body > span[id^="cms-blog-entry-detail"] { display: block; }

.aoi-article__body p { margin: 0 0 1.6em; }
.aoi-article__body p:last-child { margin-bottom: 0; }

.aoi-article__body img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 20px;
}

.aoi-article__body h2 {
  margin: 1.8em 0 0.8em;
  padding-left: 16px;
  border-left: 5px solid #fdd819;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--aoi-ink);
}

.aoi-article__body h3,
.aoi-article__body h4 {
  margin: 1.6em 0 0.6em;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--aoi-ink);
}

.aoi-article__body ul,
.aoi-article__body ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

.aoi-article__body ul { list-style: disc; }
.aoi-article__body ol { list-style: decimal; }
.aoi-article__body li { margin-bottom: 0.4em; }

.aoi-article__body a {
  color: var(--aoi-brown);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.aoi-article__body blockquote {
  margin: 1.6em 0;
  padding: 24px;
  border: 1px solid #f3dfb2;
  border-radius: 20px;
  background: #fff6e2;
  font-size: 16px;
  line-height: 1.95;
  color: var(--aoi-brown3);
}

.aoi-article__body table {
  width: 100%;
  margin: 0 0 1.6em;
  border-collapse: collapse;
}

.aoi-article__body th,
.aoi-article__body td {
  padding: 14px 16px;
  border: 1px solid var(--aoi-line);
  font-size: 16px;
  text-align: left;
}

.aoi-article__body th { background: #fdf8ee; font-weight: 700; }

/* -- 記事詳細の幅（お問い合わせページと同じ 1000px 中央。本文の可読幅を確保） */
.aoi-blog--detail .aoi-article {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.aoi-article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #f0e6d4;
}

/* ==========================================================================
   16. レスポンシブ（元データの data-rc グループを折り返す）
   ========================================================================== */
@media (max-width: 1200px) {
  .aoi-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* iPadなどの中間幅（MVが2カラムのまま左カラムが狭くなる帯）のキャッチ。
   元データの clamp(26px,5.6vw,46px) のままだと 1frカラムに収まらず、
   word-break:keep-all でも overflow-wrap:anywhere が働いて <br> 以外の位置で折れる。
   1frカラムの実テキスト幅は (100vw - 32px) * 0.4651 - 48px なので、長い方の行
   「提案は、したくない。」（10文字＋letter-spacing 0.02em ＝ 約10.2em）に対して
   どの幅でも約26pxの余白が残る線形補間にする。
     819px → 28.7px（行292px / 領域318px） 1200px → 46px（行469px / 領域495px）
   1200px で 46px に到達するので、1201px 以上の clamp 上限46px と段差なくつながる。 */
@media (min-width: 819px) and (max-width: 1200px) {
  .aoi-mv__catch { font-size: calc(4.54vw - 8.5px); }
  /* 実フォント（Zen Maru Gothic）の字幅差で計算が僅かに外れても
     <br> 以外で折り返さないよう、行そのものを折り返し禁止にしておく */
  .aoi-mv__catchrow { white-space: nowrap; }
}

@media (max-width: 1100px) {
  .aoi-news__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aoi-life,
  .aoi-life--76,
  .aoi-life__band-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .aoi-life__label { position: static; }
  .aoi-cols--rep,
  .aoi-cols--stance,
  .aoi-cols--story,
  .aoi-cols--office,
  .aoi-cols--photo {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .aoi-photo--rep,
  .aoi-photo--stance,
  .aoi-photo--story,
  .aoi-photo--insurance { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .aoi-map iframe { min-height: 300px; }
}

@media (max-width: 896px) {
  .aoi-footer__col--map,
  .aoi-footer__col--sns { padding-top: 0; }
  .aoi-approach { padding: 72px 24px; }
  .aoi-approach__figure { padding: 8px 0 0; }
  .aoi-policy { padding: 56px 24px; }
  .aoi-life--band { padding: 56px 24px; }
  .aoi-svc-blocks { gap: 72px; }
  .aoi-sheets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aoi-spacer { height: 72px; }
  .aoi-hero { padding: 172px 24px 48px; }
}

/* MVの縦積み切り替え = 818px 以下。
   左右2カラム（PC表示）は 819px まで維持する。スライド幅を min(620px,44.3vw) に
   抑えてあるため、819px でも写真が 1.15fr カラム内に収まり overflow:hidden に切られない。
   （旧 78vw のままだと 1191px 以下で切れるため 1200px で縦積みにしていた） */
@media (max-width: 818px) {
  .aoi-mv__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 172px 0 72px;
  }
  .aoi-mv__body { padding: 0 24px; }
  .aoi-mv__visual { padding: 0 24px; }
  /* 縦積み時はスライドをカラム幅いっぱいにする（44.3vwだと横に余る） */
  #slideshow { height: calc((100vw - 48px) * 11 / 16); }
  .aoi-mv__slide { width: calc(100vw - 48px); }
  .aoi-mv__dots { right: 24px; }
  /* 縦積みだと弧の食い込み分の余白が確保できないため食い込みを解除する */
  .aoi-arc { margin-top: 0; }
}

@media (max-width: 639px) {
  .aoi-mv__grid { padding: 160px 0 56px; }
  .aoi-greeting { padding: 40px 0 64px; }
  .aoi-greeting__body { margin-top: 32px; }
  .aoi-greeting__pname { text-align: center; align-items: center; }
  .aoi-svc { padding: 64px 24px 0; }
  .aoi-svc__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .aoi-news { padding: 64px 24px 80px; }
  /* SPは日付を記事タイトルの上に置き、右端の丸矢印は出さない
     （行全体がリンクなので矢印が無くても操作は変わらない） */
  .aoi-news__items .news-list__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 0;
  }
  .aoi-news__items .news-list__title { min-width: 0; }
  .aoi-news__items .aoi-news__arrow { display: none; }
  /* 読み物カテゴリ一覧：SPもサムネイルは左に残し、幅だけ縮める */
  .aoi-tlist__item { gap: 16px; padding: 14px 0; }
  .aoi-tlist__thumb { width: 120px; border-radius: 6px; }
  .aoi-tlist__body { gap: 4px; }
  .aoi-tlist__date { font-size: 12px; }
  .aoi-tlist__clock { width: 12px; height: 12px; }
  .aoi-tlist__title { font-size: 15px; line-height: 1.7; }
  /* SPは見出しを1行使い切らせ、SNSボタン3つを左揃えで並べる */
  .aoi-news__snsttl { flex: 0 0 100%; }
  /* 左右だけ詰める。padding ショートハンドにすると各セクションの上下余白が消えるので使わない */
  .aoi-sec,
  .aoi-sec--64,
  .aoi-sec--56,
  .aoi-sec--88,
  .aoi-sec--44 { padding-left: 20px; padding-right: 20px; }
  .aoi-sec--last { padding-bottom: 80px; }
  .aoi-container { padding: 0 20px; }
  .aoi-hero { padding: 168px 20px 40px; }
  .aoi-life,
  .aoi-life--76 { padding-left: 20px; padding-right: 20px; }
  .aoi-sheets__grid { grid-template-columns: minmax(0, 1fr); }
  /* マンダラチャートはSPで縦1列に9個。3列のままだと長いラベルが読めなくなる。
     DOM順のままなので中央「ライフプラン」は5番目に来る（上下に4つずつ） */
  .aoi-sec--topics { padding-top: 96px; padding-bottom: 32px; }
  .aoi-mandala { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .aoi-mandala__cell,
  .aoi-mandala__center { min-height: 124px; padding: 18px 16px; }
  .aoi-mandala__name { font-size: 16px; }
  .aoi-mandala__cell .btn__circle { width: 32px; height: 32px; }
  .aoi-form-cms { padding: 28px 20px; }
  .aoi-form-cms .form-contents dd:not(.pattern-exclusion) label { padding: 12px 18px; }
  .aoi-form-cms .form-contents .submit-btn,
  .aoi-form-cms .form-contents :not(.pattern-exclusion) button.submit-btn { padding: 18px 36px; }
  /* 共通の table-basic--th-side が SP で th/td を block 化するため、罫線を1本に整理する */
  .aoi-dl tr { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .aoi-dl th { width: auto; padding: 14px 4px 0; border-bottom: 0; }
  .aoi-dl td { padding: 2px 4px 14px; }
  .aoi-price tr { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .aoi-price th { width: auto; padding: 14px 18px 10px; border-bottom: 0; }
  .aoi-price td { padding: 0 18px 16px; }
  .aoi-faq__head { padding: 18px 18px; gap: 12px; }
  .aoi-faq__inner { padding: 18px 18px 22px; gap: 12px; }
  /* 5つ目（老後資金）追加で 360px 幅だと右にはみ出すため、左右余白 24px×2 を引いた幅に収める */
  .aoi-circles { --aoi-circle: min(76px, calc((100vw - 48px) / 4.56)); }
  .aoi-circles span { font-size: 12px; }
  .aoi-approach__figure { gap: 16px; }
  .aoi-flow-bar { padding: 20px; gap: 12px; }
  .aoi-flow-bar__on,
  .aoi-flow-bar__off { padding: 12px 20px; font-size: 16px; }
  .aoi-svc-block__icon { width: 56px; height: 56px; }
  .aoi-footer__inner { padding: 48px 20px 28px; }
  /* SPはハンバーガーメニューで同じ導線があるため、フッターのSITE MAPは出さない */
  .aoi-footer__col--map { display: none; }
  .aoi-leaf { width: 200px; height: 200px; }
}
