@charset "UTF-8";
/* ==========================================================================
   株式会社FEA ホームページ
   header ほかの指定
   --------------------------------------------------------------------------
   もとは personal.html の <head> に直接書かれていたスタイルです。
   CSP から style-src 'unsafe-inline' を外すため、2026-09 に外部ファイル化しました。
   修正するときは、HTML ではなくこのファイルを編集してください。
   ========================================================================== */
header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
header.scrolled {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
header:not(.scrolled) nav ul li a {
  color: #ffffff;
  text-shadow: none;
}
header:not(.scrolled) nav ul li > a::after {
  background: #ffffff;
}
header:not(.scrolled) .logo img {
  filter: none;
}
header:not(.scrolled) .hamburger span {
  background: #ffffff;
}
header:has(nav ul li.has-dropdown:hover) {
  background: #ffffff;
}
header:has(nav ul li.has-dropdown:hover) nav ul li a {
  color: rgba(0,0,0,0.88);
  text-shadow: none;
}
header:has(nav ul li.has-dropdown:hover) .logo img {
  filter: none;
}
:root {
      --c-navy:  #1c1c1c;
      --c-blue:  #3a3a3a;
      --c-dark:  #0a0a0a;
      --c-bg:    #f2f2f0;
      --c-border: rgba(0,0,0,0.10);
      --c-gold:  #9a8a6a;
      --c-mid:   #555555;
      /* ===== 個人のお客さまページ 配色（モスグリーン・ビリジアン×クリーム・グレージュ×ゴールド・銅） ===== */
      --c2-ivory:      #fdfbf7;
      --c2-beige:      #e5e1d8;
      --c2-cream:      #fefdfb;
      --c2-orange:     #a05f28;
      --c2-orange-dk:  #8f5322;
      --c2-brown:      #b87333;
      --c2-brown-dk:   #8a5626;
      --c2-green:      #4a6b53;
      --c2-green-dk:   #0e4c3a;
      --c2-text:       #3d3a30;
    }
body { font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: #222; background: #f2f2f0; overflow-x: hidden; }
.page-hero {
      position: relative;
      width: 100%;
      aspect-ratio: 8795 / 3522;
      max-height: 760px;
      overflow: hidden;
      margin-top: 0;
    }
.page-hero .bg-image {
      position: absolute;
      inset: 0;
      background: url("../image/personal-top.webp") center center / cover no-repeat;
    }
.page-hero .overlay {
      position: absolute;
      inset: 0;
      background:linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.10) 40%,
        rgba(0, 0, 0, 0.30) 100%
      );
    }
.page-hero .hero-text {
      position: absolute;
      z-index: 10;
      top: 50%;
      left: 8vw;
      transform: translateY(-50%);
      color: #fff;
    }
.page-hero .breadcrumb { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: 0.15em; margin-bottom: 12px; font-weight: 300; }
.page-hero .page-hero-sub { font-size: 0.78rem; opacity: 0.8; letter-spacing: 0.15em; text-shadow: 1px 1px 6px rgba(0,0,0,0.45); }
@media (max-width: 900px) {
  .page-hero .hero-text { left: 50%; top: auto; bottom: 28px; transform: translateX(-50%); text-align: center; width: 90vw; }
  .page-hero .scroll-down { display: none; }
}
.page-content { max-width: 1000px; margin: 0 auto; padding: 80px 8vw; }

.section-title { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 700; color: var(--c-gold); letter-spacing: 0.06em; margin-bottom: 36px; padding-left: 16px; border-left: 3px solid var(--c-gold); white-space: nowrap; }

.service-card { background: #f5f4f1; border-radius: 16px; padding: 36px 28px; border-top: 2px solid var(--c-gold); transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(26,58,110,0.12); }
.service-card .s-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1rem; color: var(--c-gold); margin-bottom: 12px; letter-spacing: 0.08em; }
.service-card p { font-size: 0.88rem; color: #555; line-height: 1.9; }

.flow-carousel { position: relative; margin-bottom: 20px; }
.flow-steps {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding: 6px 6px 20px;
      scrollbar-width: none;
    }
.flow-steps::-webkit-scrollbar { display: none; }
.flow-step-img-wrap {
      position: relative;
      flex: 0 0 auto;
      width: min(680px, 82vw);
      aspect-ratio: 1536 / 1024;
      scroll-snap-align: center;
    }
.flow-step-img-wrap img {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 16px;
      box-shadow: 0 14px 32px rgba(0,0,0,0.14), 0 3px 8px rgba(0,0,0,0.08);
      transition: transform 0.35s ease, box-shadow 0.35s ease;
      user-select: none;
      cursor: zoom-in;
      object-fit: contain;
    }
.flow-carousel-btn {
      position: absolute;
      top: 45%;
      transform: translateY(-50%);
      width: 48px; height: 48px;
      border-radius: 50%;
      background: #fff;
      border: 1px solid rgba(204,166,98,0.5);
      box-shadow: 0 6px 18px rgba(0,0,0,0.16);
      color: #1c1c1c;
      font-size: 1.3rem;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      z-index: 3;
      transition: background 0.2s, opacity 0.2s;
    }
.flow-carousel-btn:hover { background: var(--c-gold); color: #fff; }
.flow-carousel-btn:disabled { opacity: 0.3; cursor: default; }
.flow-carousel-btn:disabled:hover { background: #fff; color: #1c1c1c; }
.flow-carousel-prev { left: -8px; }
.flow-carousel-next { right: -8px; }
.flow-dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 12px;
    }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(204,166,98,0.35); border: none; padding: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.flow-dot.is-active { background: var(--c-gold); transform: scale(1.3); }
.step-body-btns-step1 {
      position: absolute;
      top: 91%;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      flex-wrap: nowrap;
      justify-content: center;
      z-index: 2;
    }
.step-body-btns-step7 {
      position: absolute;
      top: 84%;
      right: 6%;
      display: flex;
      z-index: 2;
    }
.step-body-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1.5px solid #1c1c1c; border-radius: 50px; background: rgba(255,255,255,0.92); color: #1c1c1c; font-size: 0.76rem; font-weight: bold; letter-spacing: 0.02em; text-decoration: none; transition: background 0.25s, color 0.25s; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.step-body-btn:hover { background: #1c1c1c; color: #fff; }

@media (max-width: 700px) {
  .flow-carousel-btn { display: none; }
  .step-body-btns-step1 { gap: 4px; width: 92%; }
  .step-body-btn { padding: 5px 8px; font-size: 0.58rem; }
  
}
.scroll-down {
      position: absolute;
      bottom: 36px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.8);
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      animation: scrollBounce 2.2s ease-in-out infinite;
    }
.scroll-down .arrow {
      width: 20px;
      height: 20px;
      border-right: 2px solid rgba(255,255,255,0.8);
      border-bottom: 2px solid rgba(255,255,255,0.8);
      transform: rotate(45deg);
    }
@keyframes scrollBounce {
      0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
      50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
    }
@media (max-width: 480px) {
  
  body { overflow-x: hidden; }
}
@media (max-width: 480px) {
  .page-hero {
        padding: 44px 6vw 36px;
      }
  .page-hero h1 {
        font-size: 1.5rem;
        line-height: 1.5;
      }
  .page-hero .hero-sub {
        font-size: 0.68rem;
        letter-spacing: 0.2em;
      }
}
.cta-title-sp-br { display: none; }
@media (max-width: 640px) {
  .page-hero { min-height: 320px; }
  .worry-cta-section { padding: 40px 6vw; }
  .worry-cta-btn { padding: 15px 20px; font-size: clamp(0.8rem, 4.2vw, 1.05rem); letter-spacing: 0.08em; }
  .cta-title-sp-br { display: block; }
  .worry-cta-title { margin-bottom: 28px; }
  .worry-cta-desc { display: none; }
}
.worry-cta-section {
      padding: 80px 8vw;
      background:linear-gradient(135deg, rgba(26,92,176,0.257) 0%, rgba(34,114,216,0.238) 50%, rgba(26,92,176,0.257) 100%),
        url("../image/personal-top.webp") center center / cover no-repeat;
      position: relative;
      overflow: hidden;
    }
.worry-cta-section::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background:linear-gradient(90deg, transparent, #fff, #e8c050, #fff, transparent);
      z-index: 2;
    }
.worry-cta-section::after {
      content: "";
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 3px;
      background:linear-gradient(90deg, transparent, #fff, #e8c050, #fff, transparent);
      z-index: 2;
    }
.worry-cta-inner {
      max-width: 860px;
      margin: 0 auto;
      text-align: center;
      position: relative;
      z-index: 1;
    }
.worry-cta-title {
      font-size: clamp(1.4rem, 2.8vw, 2.2rem);
      font-weight: 600;
      letter-spacing: 0.1em;
      color: #fff;
      line-height: 1.5;
      margin-bottom: 24px;
      text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
.worry-cta-desc {
      font-size: clamp(0.88rem, 1.4vw, 1rem);
      color: rgba(255,255,255,0.88);
      line-height: 2;
      letter-spacing: 0.06em;
      margin-bottom: 40px;
    }
.worry-cta-btn {
      display: inline-block;
      padding: 20px 64px;
      background:linear-gradient(135deg, #c8962a, #e8c050);
      color: #1a1a1a;
      font-size: clamp(1.1rem, 2vw, 1.4rem);
      font-weight: 800;
      letter-spacing: 0.14em;
      border-radius: 50px;
      text-decoration: none;
      white-space: nowrap;
      box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.3);
      transition: transform 0.25s, box-shadow 0.25s;
    }
.worry-cta-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 32px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,255,255,0.5);
    }
/* ===== 追加セクション（ヒーローと「保険のお悩み」の間） ===== */
.info-section {
      position: relative;
      padding: 88px 8vw;
      background: #ffffff;
      box-shadow: inset 0 12px 24px -18px rgba(0,0,0,0.15), inset 0 -12px 24px -18px rgba(0,0,0,0.15);
      overflow: hidden;
    }
.flow-marquee {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 140px;
      display: flex;
      align-items: center;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }
@media (max-width: 700px) {
  .flow-marquee { bottom: 60px; height: 100px; }
}
.flow-marquee-track {
      display: flex;
      align-items: center;
      white-space: nowrap;
      animation: flowMarqueeLoop 26s linear infinite;
    }
.flow-marquee-track span {
      font-size: clamp(3rem, 9vw, 7rem);
      font-weight: 800;
      letter-spacing: 0.06em;
      color: rgba(184,115,51,0.08);
      white-space: nowrap;
    }
@keyframes flowMarqueeLoop {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }
.info-section::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background:linear-gradient(90deg, transparent, #b87333, #cca662, #b87333, transparent);
      z-index: 2;
    }
.info-section.bg-flow { background: #ffffff; padding-top: 40px; padding-bottom: 180px; }
@media (max-width: 700px) {
  .info-section.bg-flow { padding-bottom: 170px; }
}
.info-section.bg-agency { background: #ffffff; }
.info-section.bg-benefit { background: #ffffff; }
.info-section.bg-voice { background: #ffffff; }
.info-section.bg-faq { background: #ffffff; }
.info-section .page-content { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 0; }
.info-section .section-title { font-weight: 700; color: #1c1c1c; border-left: 2px solid var(--c2-orange); }

/* --- 乗合代理店と専属代理店（比較表・保険会社一覧） --- */
.agency-logo-wall { margin-top: 20px; }
.agency-logo-group { margin-bottom: 22px; }
.agency-logo-group:last-of-type { margin-bottom: 0; }
.agency-logo-group-title {
      font-size: 0.88rem;
      color: #000;
      font-weight: bold;
      letter-spacing: 0.04em;
      margin-bottom: 12px;
      background: none;
      border: none;
      padding: 0;
      display: block;
      width: 100%;
      text-align: left;
      font-family: inherit;
      cursor: default;
    }
.agency-logo-group-arrow { display: none; }
.agency-logo-group-count { display: none; }
.agency-logo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agency-logo-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; height: 120px; background: #fff; border: 1px solid #d8cfa8; border-radius: 4px; padding: 28px 24px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.agency-logo-item:hover { border-color: var(--c2-orange-dk); box-shadow: 0 8px 16px rgba(0,0,0,0.18); transform: translateY(-2px); }
/* ロゴ画像は使用許可取得まで一時非表示（許可後はこの1行を削除してください） */
.agency-logo-item .agency-logo-img { display: none; }
/* 各社サイトへのリンクは使用許可取得まで一時停止（許可後はこの2行を削除してください） */
.agency-logo-item { pointer-events: none; cursor: default; }
.agency-logo-item:hover { border-color: #d8cfa8; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: none; }
.agency-logo-item .agency-logo-name { font-size: 1.08rem; color: #333; text-align: center; letter-spacing: 0.02em; line-height: 1.4; }
.agency-logo-total { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(204,166,98,0.4); text-align: right; font-size: 0.94rem; color: #000; font-weight: bold; letter-spacing: 0.04em; }
.agency-logo-total span { color: var(--c2-orange); font-size: 1.2rem; margin: 0 2px; }

.agency-feature-wrap { margin: 0 0 44px; text-align: center; }
.agency-feature-title { font-size: 1.2rem; color: #000; letter-spacing: 0.06em; margin-bottom: 24px; text-align: center; }

.agency-insurer-wrap { border-top: 1px solid rgba(204,166,98,0.3); padding-top: 36px; }

.img-lightbox-overlay {
      display: none;
      position: fixed; inset: 0; z-index: 2000;
      background: rgba(0,0,0,0.82);
      align-items: center; justify-content: center;
      padding: 30px;
      cursor: zoom-out;
    }
.img-lightbox-overlay.open { display: flex; }
.img-lightbox-overlay img {
      max-width: 92vw; max-height: 88vh;
      border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
      /* STEPを送るときに、横へ滑って入れ替わるように見せる */
      transition: transform 0.16s ease, opacity 0.16s ease;
      user-select: none;
      -webkit-user-drag: none;
    }
.img-lightbox-overlay.sliding-next img { transform: translateX(-28px); opacity: 0; }
.img-lightbox-overlay.sliding-prev img { transform: translateX(28px);  opacity: 0; }
.img-lightbox-close {
      position: absolute; top: 20px; right: 28px;
      color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
      background: none; border: none;
      z-index: 2;
    }

/* ── 拡大表示中に、前後のSTEPへ送るボタン ── */
.img-lightbox-nav {
      position: absolute; top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 48px; height: 48px; border-radius: 50%;
      background: rgba(255,255,255,0.90); color: #1a3a6e;
      border: none; cursor: pointer;
      font-size: 1.6rem; line-height: 1;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.35);
      transition: background 0.2s, transform 0.2s;
    }
.img-lightbox-nav:hover { background: #ffffff; transform: translateY(-50%) scale(1.08); }
.img-lightbox-nav[hidden] { display: none; }
.img-lightbox-nav.prev { left: 16px; }
.img-lightbox-nav.next { right: 16px; }

/* ── いま何枚目かの表示（1 / 7 など）と、操作の案内 ── */
.img-lightbox-counter {
      position: absolute; left: 50%; bottom: 20px;
      transform: translateX(-50%);
      color: #ffffff; font-size: 0.82rem; font-weight: 700;
      letter-spacing: 0.08em;
      background: rgba(0,0,0,0.45);
      padding: 5px 14px; border-radius: 14px;
      pointer-events: none;
    }
.img-lightbox-counter[hidden] { display: none; }
.img-lightbox-hint {
      position: absolute; left: 50%; bottom: 54px;
      transform: translateX(-50%);
      color: rgba(255,255,255,0.75); font-size: 0.68rem;
      letter-spacing: 0.06em; white-space: nowrap;
      pointer-events: none;
      display: none;
    }
/* 案内はスワイプで操作する画面（タッチ端末）にだけ出します */
@media (hover: none) and (pointer: coarse) {
  .img-lightbox-overlay.open .img-lightbox-hint { display: block; }
  /* 指で送れるので、画面が狭いときはボタンを小さめに */
  .img-lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .img-lightbox-nav.prev { left: 8px; }
  .img-lightbox-nav.next { right: 8px; }
}

/* --- お客様の声 --- */
.voice-grid { display: flex; flex-direction: column; gap: 24px; }
.voice-card { background: #ffffff; border: 1px solid rgba(204,166,98,0.4); border-radius: 4px; position: relative; box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 3px 8px rgba(0,0,0,0.06); overflow: hidden; padding: 28px 30px; }
.voice-card .voice-photo {
      float: right;
      width: 84px;
      height: 84px;
      border-radius: 50%;
      object-fit: cover;
      margin: 0 0 16px 20px;
      border: 2px solid rgba(204,166,98,0.5);
      box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
.voice-card .voice-body { display: block; }
.voice-card p { font-size: 1rem; color: #000; line-height: 1.9; margin-bottom: 18px; }
.voice-card .voice-name { font-size: 0.92rem; color: #000; font-weight: bold; letter-spacing: 0.04em; text-align: right; clear: both; }
@media (max-width: 700px) {
  .voice-card .voice-photo { width: 64px; height: 64px; margin: 0 0 12px 14px; }
  /* スマートフォンでは、文中の改行（<br class="sp-br">）を無効にして
     画面幅なりに自然に折り返させます。
     狭い画面では1行に入る文字数が少なく、途中で改行すると
     短い行が増えて読みにくくなるためです。
     ※ <br> はHTMLに残したままです。表示しないだけなので、
        元に戻したいときはこの指定を削除してください。 */
  .voice-card .sp-br { display: none; }
}

/* --- よくあるご質問 --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #ffffff; border: 1px solid rgba(204,166,98,0.4); border-radius: 2px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.05); transition: border-color 0.25s, box-shadow 0.25s; }
.faq-item[open] { border-color: var(--c2-orange-dk); box-shadow: 0 12px 28px rgba(0,0,0,0.14), 0 3px 8px rgba(0,0,0,0.07); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: flex-start; gap: 14px; font-size: 1.05rem; color: #000; font-weight: bold; letter-spacing: 0.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-mark { flex-shrink: 0; color: var(--c2-orange); font-weight: 800; }
.faq-item summary .faq-toggle { margin-left: auto; flex-shrink: 0; color: #999; transition: transform 0.25s; }
.faq-item[open] summary .faq-toggle { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 24px 22px 54px; font-size: 1rem; color: #000; line-height: 1.9; }
@media (max-width: 700px) {
  .info-section { padding: 60px 6vw; }
  .agency-logo-group-title {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 16px;
        background: rgba(0,0,0,0.05);
        border-radius: 6px;
        margin-bottom: 0;
      }
  .agency-logo-group-count { display: inline; font-weight: normal; color: rgba(0,0,0,0.6); font-size: 0.82em; }
  .agency-logo-group-arrow {
        display: inline-block;
        font-size: 0.7rem;
        transition: transform 0.25s ease;
        flex: 0 0 auto;
      }
  .agency-logo-group.open .agency-logo-group-arrow { transform: rotate(180deg); }
  .agency-logo-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow: hidden;
        max-height: 0;
        margin-top: 0;
        transition: max-height 0.35s ease, margin-top 0.35s ease;
      }
  .agency-logo-group.open .agency-logo-row { max-height: 4000px; margin-top: 12px; }
  .agency-logo-item { height: 90px; padding: 12px 10px; border-radius: 2px; gap: 8px; }
  .agency-logo-item .agency-logo-name { font-size: 0.6rem; }
}
@media (max-width: 340px) {
  .agency-logo-item { padding: 8px 6px; }
  .agency-logo-item .agency-logo-name { font-size: 0.58rem; }
}

    /* ==============================================================
       背景画像のレスポンシブ対応（2026年 改版②で追加）
       CSS の背景画像は <img> の srcset が使えないため、
       画面幅に応じて小さい画像へ切り替えています。
       画像そのものは同じで、表示結果は変わりません。
         〜480px      … 1024px幅（スマホ。DPR2でも十分な解像度）
         481〜1023px  … 1280px幅（タブレット・小型ノート）
         1024px〜     … 元画像
       画像を差し替えたときは image/rs/ の各サイズも作り直してください。
       ============================================================== */
    @media (max-width: 480px) {
      .page-hero .bg-image {
        background-image: url("../image/rs/personal-top-1024.webp");
      }
      .worry-cta-section {
        background-image: linear-gradient(135deg, rgba(26,92,176,0.257) 0%, rgba(34,114,216,0.238) 50%, rgba(26,92,176,0.257) 100%),
          url("../image/rs/personal-top-1024.webp");
      }
    }
    @media (min-width: 481px) and (max-width: 1023px) {
      .page-hero .bg-image {
        background-image: url("../image/rs/personal-top-1280.webp");
      }
      .worry-cta-section {
        background-image: linear-gradient(135deg, rgba(26,92,176,0.257) 0%, rgba(34,114,216,0.238) 50%, rgba(26,92,176,0.257) 100%),
          url("../image/rs/personal-top-1280.webp");
      }
    }

/* ==============================================================
   乗合代理店と専属代理店の比較（2026年 改版②）
   画像(hikaku.webp)からHTMLへ置き換え。
   理由：横長の比較表をスマホ幅に縮めると本文が約5pxとなり判読できなかったため。
   HTMLにしたことで、どの画面幅でも鮮明に表示され、文字の拡大・コピー・
   読み上げ・翻訳にも対応します。配色は元の画像に合わせています。
   ============================================================== */
.ag-cmp { --ag-navy:#16386d; --ag-navy-lt:#1a4a8a; --ag-teal:#1f7d6b; text-align: left; }

/* 上部：2種類の代理店の説明 */
.ag-def {
      display: flex; gap: 16px; align-items: flex-start;
      border: 1px solid #cfe0f5; background: #f2f7fd;
      border-radius: 14px; padding: 18px 20px; margin-bottom: 14px;
    }
.ag-def.is-sen { border-color: #c9e4dd; background: #f0f8f5; }
.ag-def-icon {
      flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
      background: var(--ag-navy-lt); display: flex; align-items: center; justify-content: center;
    }
.ag-def.is-sen .ag-def-icon { background: var(--ag-teal); }
.ag-def-icon svg { width: 26px; height: 26px; fill: #fff; }
.ag-def-ttl { margin: 0 0 6px; font-size: 1.14rem; font-weight: 700; color: var(--ag-navy-lt); letter-spacing: .02em; }
.ag-def.is-sen .ag-def-ttl { color: var(--ag-teal); }
.ag-def-ttl .ag-sub { font-size: .8rem; font-weight: 500; color: #5a6b85; letter-spacing: 0; }
.ag-def-tx { margin: 0; font-size: .95rem; line-height: 1.85; color: #1c2b45; }

/* 比較表（PC・タブレット） */
.ag-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 26px;
      border: 1px solid #d4dded; border-radius: 14px; overflow: hidden; }
.ag-table th, .ag-table td { padding: 16px 14px; text-align: center; vertical-align: middle;
      border-bottom: 1px solid #e4ebf5; line-height: 1.7; font-size: .95rem; }
.ag-table tr:last-child th, .ag-table tr:last-child td { border-bottom: 0; }
.ag-table thead th { background: var(--ag-navy); color: #fff; font-weight: 600; font-size: .92rem; }
.ag-table thead th svg { width: 20px; height: 20px; fill: #fff; vertical-align: -4px; margin-right: 6px; }
.ag-table tbody th { background: #eef4fc; color: var(--ag-navy-lt); font-weight: 700; width: 24%; font-size: 1rem; }
.ag-table tbody tr.is-sen th { background: #eef7f4; color: var(--ag-teal); }
.ag-table tbody th .ag-sub { display: block; font-size: .76rem; font-weight: 500; color: #5a6b85; margin-top: 2px; }
.ag-hl { font-weight: 700; color: var(--ag-navy-lt); }
.ag-table tr.is-sen .ag-hl { color: var(--ag-teal); }
.ag-num { font-size: 1.24rem; font-weight: 700; color: var(--ag-navy-lt); }
.ag-table tr.is-sen .ag-num { color: var(--ag-teal); }

/* アイコンの窓抜き色（背景に合わせる） */
.ag-def-icon { --ico-bg: #1a4a8a; }
.ag-def.is-sen .ag-def-icon { --ico-bg: #1f7d6b; }
.ag-table thead th { --ico-bg: #16386d; }
.ag-card-hd { --ico-bg: #16386d; }
.ag-card.is-sen .ag-card-hd { --ico-bg: #1f7d6b; }
.ag-cmp svg .w rect { fill: var(--ico-bg, #16386d); }

/* スマホ：表をやめ、代理店ごとのカードに積み替える */
.ag-cards { display: none; }
@media (max-width: 767px) {
  .ag-table { display: none; }
  .ag-cards { display: block; margin-top: 20px; }
  .ag-card { border: 1px solid #d4dded; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
  .ag-card-hd { display: flex; align-items: center; gap: 9px;
        padding: 12px 15px; background: var(--ag-navy); color: #fff; font-size: 1rem; font-weight: 700; }
  .ag-card.is-sen .ag-card-hd { background: var(--ag-teal); }
  .ag-card-hd svg { width: 20px; height: 20px; fill: #fff; flex: 0 0 auto; }
  .ag-card-hd .ag-sub { font-size: .76rem; font-weight: 500; opacity: .88; }
  .ag-card dl { margin: 0; }
  .ag-item { display: grid; grid-template-columns: 7.4em 1fr; gap: 12px;
        padding: 13px 15px; border-top: 1px solid #e8eef7; align-items: start; }
  .ag-item:first-child { border-top: 0; }
  .ag-item dt { margin: 0; font-size: .8rem; font-weight: 600; color: #5a6b85; line-height: 1.55; }
  .ag-item dd { margin: 0; font-size: .93rem; line-height: 1.75; color: #1c2b45; }
  .ag-def { padding: 15px 16px; gap: 13px; }
  .ag-def-icon { width: 44px; height: 44px; }
  .ag-def-icon svg { width: 22px; height: 22px; }
  .ag-def-ttl { font-size: 1.04rem; }
  .ag-def-tx { font-size: .9rem; line-height: 1.8; }
}
