@charset "utf-8";
/* ==========================================================================
   有限会社アシストエージェンシー コーポレートサイト
   共通スタイル
   - 構造・原稿は ワイヤー案_260826.pptx に完全準拠
   - 装飾はロゴ（楕円マーク／ASSIST・AGENCYを分ける横罫）から展開
   ========================================================================== */

/* --------------------------------------------------
   1. デザイントークン
   -------------------------------------------------- */
:root {
  /* ブランドカラー */
  --navy: #04255a;          /* Primary：ロゴタイプ実測値 */
  --blue: #2e75b6;          /* Accent：封筒ロゴの青 */
  --blue-soft: #6d9fcd;
  --tint: #eaf2f8;          /* 背景ティント */
  --tint-pale: #f5f9fc;

  /* テキスト */
  --text: #333333;
  --text-sub: #666666;

  /* 罫線：ネイビーを薄めたものだけを使い、灰色を混ぜない */
  --rule: rgba(4, 37, 90, .16);
  --rule-light: rgba(4, 37, 90, .09);
  --rule-onnavy: rgba(255, 255, 255, .2);

  /* レイアウト（ワイヤー: 540pt中468pt = 86.7%） */
  --container: 1120px;
  --header-h: 92px;
  --header-h-min: 72px;

  /* 書体 */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "游明朝",
           YuMincho, "MS PMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Yu Gothic Medium", "游ゴシック Medium", YuGothic, Meiryo, sans-serif;

  /* イージング */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------
   2. リセット / ベース
   -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-min) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  background: #fff;
  font-feature-settings: "palt" 1;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 600; line-height: 1.7; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

a { color: var(--navy); text-decoration: none; transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease); }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* 日本語の折り返し制御
   balance … 見出しの行長を均等に割る（2行目に1〜2文字だけ残るのを防ぐ）
   pretty  … 本文の最終行が極端に短くならないよう調整する
   いずれも未対応ブラウザでは通常の折り返しになる */
h1, h2, h3,
.page-head__title, .sec__title, .article__title,
.value__title, .numbered__title, .hero__catch, .credo {
  text-wrap: balance;
}
p, li, dd, td {
  text-wrap: wrap;
}

/* PC専用の改行。狭い幅では自然な折り返しに任せる */
.br-pc { display: none; }
@media (min-width: 901px) {
  .br-pc { display: inline; }
}

.icon {
  width: 1em; height: 1em;
  display: inline-block; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}

/* --------------------------------------------------
   3. レイアウト共通
   -------------------------------------------------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.sec { position: relative; padding-block: 104px; }
.sec--tint { background: var(--tint-pale); }

/* セクション見出し
   下の短い横罫は、ロゴマーク内で ASSIST と AGENCY を分ける罫からの引用 */
.sec__title {
  font-family: var(--serif);
  font-size: clamp(21px, 2.7vw, 30px);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.85;
  text-align: center;
}
.sec__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 28px auto 0;
  background: var(--blue);
}

/* 中央寄せ本文 */
.prose {
  max-width: 95%;
  margin: 44px auto 0;
  text-align: center;
  font-size: 15.5px;
  line-height: 2.3;
  letter-spacing: .07em;
}
.prose p + p { margin-top: 1.7em; }

/* ボタン：左から塗りが入るホバー */
.btn-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  min-width: 290px;
  min-height: 66px;
  padding: 0 34px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .18em;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: translateX(-101%);
  transition: transform .5s var(--ease);
}
.btn::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .4s var(--ease);
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: none; }
.btn:hover::after { transform: rotate(45deg) translate(3px, -3px); }

/* スクロール表示 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .14s; }
.reveal[data-delay="2"] { transition-delay: .28s; }
.reveal[data-delay="3"] { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------
   4. ヘッダー
   -------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-light);
  transition: box-shadow .4s var(--ease);
}
.header.is-scrolled { box-shadow: 0 1px 20px rgba(4, 37, 90, .07); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height .4s var(--ease);
}
.header.is-scrolled .header__inner { height: var(--header-h-min); }

/* HOMEではタイトルロゴが h1。見出し既定のサイズ・余白を打ち消す
   （ロゴ画像が読めない場合に alt テキストが巨大化しないようにする） */
.header__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
.header__logo { display: flex; align-items: center; gap: 5px; }
.header__logo-mark { height: 80px; width: auto; transition: height .4s var(--ease); }
.header__logo-type { height: 40px; width: auto; transition: height .4s var(--ease); }
.header.is-scrolled .header__logo-mark { height: 70px; }
.header.is-scrolled .header__logo-type { height: 35px; }

.gnav > ul { display: flex; align-items: center; gap: 44px; }
.gnav a {
  position: relative;
  display: block;
  padding-block: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width .4s var(--ease);
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { width: 100%; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; padding: 0;
  cursor: pointer; color: var(--navy);
}
.hamburger span {
  display: block; width: 24px; height: 1px;
  margin-inline: auto; background: currentColor;
  transition: transform .35s var(--ease), opacity .25s;
}
.hamburger span + span { margin-top: 8px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ドロワーは <header> の外に置く。
   .header は backdrop-filter を持つため、内側に入れると position:fixed の
   基準がビューポートではなくヘッダーの矩形になり、高さが潰れる。

   画面全体を覆い、上部はヘッダー（不透明・z-index 100）が重なる。
   ヘッダーはスクロールで縮むので、上余白は --header-h 基準で固定しておく。

   閉じている間も画面外へ逃がさない。translateX(100%) で外に出すと
   文書幅が広がり、全ブレークポイントで横スクロールが発生するため */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #fff;
  padding: calc(var(--header-h) + 12px) 28px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .45s var(--ease);
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--rule-light);
}
.drawer__nav .icon { font-size: 14px; color: var(--blue-soft); }
.drawer__nav a[aria-current="page"] { color: var(--blue); }
.drawer__nav a[aria-current="page"] .icon { color: var(--blue); }
.drawer__tel {
  margin-top: 40px;
  padding: 24px;
  background: var(--tint-pale);
  text-align: center;
}
.drawer__tel .label { font-size: 12px; letter-spacing: .16em; color: var(--text-sub); }
.drawer__tel .num {
  display: block;
  margin-top: 6px;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--navy);
}
.drawer__tel .hours { display: block; margin-top: 4px; font-size: 12px; color: var(--text-sub); }

/* --------------------------------------------------
   5. ヒーロー
   ワイヤー: キャッチ → リード → 画像2点横並び
   PCは左右分割。左＝白地にテキスト／右＝背景写真。
   写真同士が重ならないため、3点すべてを鮮明なまま置ける。
   -------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 0 52px;
  overflow: hidden;
}

/* 背景写真：右半分に配置し、下端は白へ抜いて画像2点の領域へ干渉させない */
.hero__bg {
  position: absolute;
  inset: 0 0 42% 47%;
  background-image: url("../img/img_background.webp");
  background-position: center 34%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.94);
}
/* 左端と下端を白へ溶かし、矩形の断ち切り感を消す */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #ffffff 0%,
      rgba(255, 255, 255, .55) 12%,
      rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg,
      rgba(255, 255, 255, .18) 0%,
      rgba(234, 242, 248, .22) 70%,
      rgba(255, 255, 255, .90) 94%,
      #ffffff 100%);
}

.hero__catch {
  padding-top: 132px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .14em;
  color: var(--navy);
  max-width: 46%;
}
/* 意味の切れ目でのみ折り返す（「これか／らも。」のような分断を防ぐ） */
.hero__catch span { display: inline-block; }

.hero__lead {
  margin-top: 36px;
  max-width: 46%;
  font-size: 15.5px;
  line-height: 2.4;
  letter-spacing: .09em;
}

/* 2枚を段差をつけて重ね、ひとつの塊として見せる。
   縦の継ぎ目が線として出ないよう、突き合わせではなく前後に重ねる */
.hero__figures {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  margin-top: 84px;
  padding-bottom: 44px;
}
.hero__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 16px;
  background: var(--tint);
}
/* 左は下げて手前に、右は上げて奥に置く */
.hero__figure:nth-child(1) {
  margin-top: 52px;
  z-index: 2;
  box-shadow: 0 28px 60px -30px rgba(4, 37, 90, .40);
}
.hero__figure:nth-child(2) {
  margin-left: -52px;
  z-index: 1;
  box-shadow: 0 28px 60px -34px rgba(4, 37, 90, .30);
}
.hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------
   6. 私たちが大切にしていること
   3カラム。縦のヘアラインで仕切り、カードは使わない
   -------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 64px auto 0;
}
.value { padding-inline: 40px; text-align: center; }
.value + .value { border-left: 1px solid var(--rule-light); }

.value__icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
}
/* 3点の原寸比率が揃っていないため、高さを基準に光学的な大きさを合わせる */
.value__icon img {
  height: 78%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.value__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.85;
  margin-bottom: 18px;
}
.value__text {
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .05em;
  color: var(--text-sub);
  text-align: center;
}

/* --------------------------------------------------
   7. 事故に遭われた際のご連絡
   -------------------------------------------------- */
.accident__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 52px auto 0;
}
.accident__links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  border: 1px solid var(--rule);
  background: #fff;
}
.accident__links a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.accident__links a:hover { border-color: var(--blue); }
.accident__links a:hover::before { transform: none; }
.accident__links .name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  letter-spacing: .07em;
}
.accident__links .url {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-sub);
  letter-spacing: .01em;
  line-height: 1.6;
  /* 単語途中で改行されるのを避け、収まらない場合は省略する */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.accident__links .icon { font-size: 18px; color: var(--blue-soft); }

/* --------------------------------------------------
   8. フッター
   ワイヤー: ロゴ左／ナビ右 → 住所・TEL/FAX・営業時間 → 罫 → コピーライト中央
   -------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .86);
  padding-block: 72px 36px;
}
.footer a { color: #fff; }
.footer a:hover { color: var(--tint); }

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-onnavy);
}
.footer__logo { display: flex; align-items: center; gap: 16px; }
.footer__logo-mark { height: 70px; width: auto; }
/* logo-type-white.png はネイビー背景用に生成した白文字・透過版 */
.footer__logo-type { height: 35px; width: auto; }

.footer__nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 22px;
  font-size: 14px;
  letter-spacing: .1em;
}
.footer__nav li { display: flex; align-items: center; }
.footer__nav li + li::before { content: "|"; margin-right: 22px; color: var(--rule-onnavy); }

.footer__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
  font-size: 14.5px;
  line-height: 2.1;
  letter-spacing: .06em;
}
.footer__info .hours { color: rgba(255, 255, 255, .74); font-size: 13.5px; }

/* 電話番号はサイト唯一の問い合わせ導線のため、視覚的な優先度を上げる */
.footer__tel { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.footer__tel .tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.3;
  color: #fff;
}
.footer__tel .tel .icon { font-size: 22px; color: var(--blue-soft); }
.footer__tel .fax { font-size: 15px; color: rgba(255, 255, 255, .78); letter-spacing: .06em; }

.footer__copy {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-onnavy);
  text-align: center;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------
   9. ページトップボタン（全ページ）
   -------------------------------------------------- */
.pagetop {
  position: fixed;
  right: 30px; bottom: 30px;
  z-index: 90;
  width: 58px; height: 58px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), visibility .4s var(--ease),
              transform .4s var(--ease), background-color .3s, color .3s;
}
.pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: var(--navy); color: #fff; }

/* --------------------------------------------------
   10. 下層ページ
   -------------------------------------------------- */

/* ページタイトル帯 */
.page-head {
  padding-block: 76px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--tint-pale) 0%, #fff 100%);
}
.page-head__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: .18em;
  text-indent: .18em;
  line-height: 1.6;
}
.page-head__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 26px auto 0;
  background: var(--blue);
}

/* ページ内リンク（アンカーナビ） */
.anchor-nav {
  margin-top: 48px;
  padding-block: 20px;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.anchor-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-size: 14px;
  letter-spacing: .1em;
}
.anchor-nav li { display: flex; align-items: center; }
.anchor-nav li + li::before { content: "|"; margin-right: 26px; color: var(--rule); }
.anchor-nav a { display: inline-flex; align-items: center; gap: 8px; }
.anchor-nav .icon { font-size: 11px; color: var(--blue); }

/* 記事セクション */
.article { padding-block: 92px; }
.article + .article { border-top: 1px solid var(--rule-light); }
.article--tint {
  background: var(--tint-pale);
  border-top: 0 !important;
}
.article--tint + .article { border-top: 0; }

.article__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.8;
  text-align: center;
}
.article__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 24px auto 0;
  background: var(--blue);
}
.article__body {
  max-width: 880px;
  margin: 44px auto 0;
}
.article__body--wide { max-width: 1000px; }

/* 本文 */
.rich { font-size: 15.5px; line-height: 2.2; letter-spacing: .06em; }
.rich p + p { margin-top: 1.5em; }
.rich h3 {
  margin-top: 2.4em;
  margin-bottom: .6em;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--navy);
}
.rich h3:first-child { margin-top: 0; }
.rich h3::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--blue);
}
.rich ul { margin-top: .6em; }
.rich ul li {
  position: relative;
  padding-left: 1.2em;
  font-size: 15px;
}
.rich ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .95em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
}

/* 経営理念・経営方針は段落が短いので中央揃えにする。
   行動指針（番号付きリスト）と会社概要の表は、性質上そのまま左揃え。 */
#philosophy .article__body,
#policy .article__body { text-align: center; }

/* 経営理念の一文 */
.credo {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .1em;
  color: var(--navy);
  text-align: center;
  margin-bottom: 36px;
}

/* 番号付きリスト（行動指針） */
.numbered { counter-reset: item; }
.numbered > li {
  position: relative;
  counter-increment: item;
  padding: 26px 0 26px 66px;
  border-top: 1px solid var(--rule-light);
}
.numbered > li:last-child { border-bottom: 1px solid var(--rule-light); }
.numbered > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 4px; top: 28px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--blue);
}
.numbered__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.7;
}
.numbered__text { font-size: 14.5px; line-height: 2; color: var(--text-sub); }

/* 会社概要テーブル */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td {
  text-align: left;
  padding: 20px 4px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 15px;
  line-height: 1.95;
  vertical-align: top;
}
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--rule-light); }
.spec th {
  width: 170px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--navy);
  white-space: nowrap;
}
.spec td { color: var(--text); }

/* 会社概要：イメージ写真と店舗外観を並列に置く
   2枚は原寸比率が違う（3:2 と 約4:3）。トリミングせずに高さだけを揃えるため、
   列幅を比率そのもの（1.5 : 1.329）で分ける。 */
.figure-pair {
  display: grid;
  grid-template-columns: 1.5fr 1.329fr;
  gap: 20px;
  margin-top: 52px;
}
.figure-pair figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tint);
  box-shadow: 0 22px 50px -32px rgba(4, 37, 90, .30);
}
.figure-pair img {
  width: 100%;
  height: auto;
  display: block;
}

/* MAP：店舗外観・地図・所在情報をひとつの塊にする */
.access-grid {
  display: grid;
  gap: 24px;
  max-width: 1060px;
  margin-inline: auto;
}
.access-grid .map { aspect-ratio: 16 / 7; }

.access-info {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin: 8px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule-light);
  font-size: 15px;
  letter-spacing: .06em;
}
.access-info dt {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.access-info dd {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.8;
}

/* Google Map */
.map {
  border-radius: 18px;
  overflow: hidden;
  background: var(--tint);
  box-shadow: 0 24px 54px -32px rgba(4, 37, 90, .30);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 取扱商品：リード＋画像＋商品リスト */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}
/* 写真は原寸比率のまま表示する（トリミングしない） */
.product__figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tint);
  box-shadow: 0 22px 50px -32px rgba(4, 37, 90, .30);
}
.product__figure img { width: 100%; height: auto; display: block; }

.check-list li {
  position: relative;
  padding: 15px 0 15px 34px;
  font-size: 15.5px;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--rule-light);
}
.check-list li:first-child { border-top: 1px solid var(--rule-light); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
}

/* 補足文 */
.note {
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--tint-pale);
  border-left: 3px solid var(--blue);
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-sub);
}

/* 取扱保険会社 */
.partners__group + .partners__group { margin-top: 40px; }
.partners__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--navy);
  margin-bottom: 16px;
}
.partners__label::before {
  content: "";
  width: 3px; height: 18px;
  background: var(--blue);
}
.partner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.partner-list--3 { grid-template-columns: repeat(3, 1fr); }
.partner-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 84px;
  padding: 18px 22px;
  border: 1px solid var(--rule);
  background: #fff;
}
.partner-list a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.partner-list a:hover { border-color: var(--blue); }
.partner-list a:hover::before { transform: none; }
.partner-list .name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  letter-spacing: .06em;
}
.partner-list .url {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-list .icon { font-size: 17px; color: var(--blue-soft); flex: none; }

/* PDFリンク */
.pdf-row { margin-top: 40px; text-align: center; }
.pdf-note { font-size: 14px; color: var(--text-sub); margin-bottom: 16px; }
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 32px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
}
.pdf-link:hover { background: var(--navy); color: #fff; }
.pdf-link .icon { font-size: 20px; }

/* アコーディオン（各種方針・SPのみ折りたたむ） */
.acc__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: default;
  text-align: inherit;
}
.acc__mark { display: none; }

/* --------------------------------------------------
   11. レスポンシブ
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .values { max-width: 100%; }
  .value { padding-inline: 26px; }
  .gnav > ul { gap: 30px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; --header-h-min: 62px; }

  .hamburger { display: block; }
  .gnav { display: none; }
  body.is-drawer-open { overflow: hidden; }

  .header__logo { gap: 12px; }
  .header__logo-mark { height: 65px; }
  .header__logo-type { height: 35px; }
  .header.is-scrolled .header__logo-mark { height: 60px; }

  .sec { padding-block: 68px; }
  .sec__title::after { margin-top: 22px; }
  .prose { margin-top: 32px; text-align: left; font-size: 15px; line-height: 2.15; }

  /* SPは左右に割れないため、写真を上部の帯にしてテキストは白地へ置く */
  .hero { padding-block: 0 36px; }
  .hero__bg {
    inset: 0 0 auto 0;
    height: 300px;
    background-position: center 30%;
  }
  .hero__bg::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .06) 0%,
      rgba(255, 255, 255, .22) 62%,
      rgba(255, 255, 255, .88) 90%,
      #ffffff 100%);
  }
  .hero > .container { padding-top: 322px; }
  .hero__catch { padding-top: 0; max-width: none; }
  .hero__lead { margin-top: 28px; max-width: none; }
  .hero__figures {
    grid-template-columns: 1fr;
    margin-top: 44px;
    padding-bottom: 0;
  }
  .hero__figure { border-radius: 12px; }
  .hero__figure:nth-child(1) { margin-top: 0; margin-right: 36px; }
  .hero__figure:nth-child(2) { margin-left: 36px; margin-top: -36px; }

  .btn-row { flex-direction: column; gap: 14px; }
  .btn { width: 100%; min-width: 0; min-height: 62px; }

  .values {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-top: 44px;
  }
  .value { padding-inline: 0; padding-block: 40px; }
  .value + .value {
    border-left: 0;
    border-top: 1px solid var(--rule-light);
  }
  .value:first-child { padding-top: 0; }
  .value__icon { width: 92px; height: 92px; margin-bottom: 22px; }

  .accident__links { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }

  .footer { padding-block: 56px 100px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer__nav ul { gap: 6px 26px; }
  .footer__nav li + li::before { content: none; }
  .footer__info { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__tel { flex-direction: column; gap: 4px; }
  .footer__tel .tel { font-size: 27px; }
  .footer__copy { margin-top: 36px; }

  .pagetop { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 16px; }

  /* ---- 下層ページ ---- */
  .page-head { padding-block: 48px 0; }
  .page-head__title::after { margin-top: 20px; }
  .anchor-nav { margin-top: 32px; padding-block: 16px; }
  .anchor-nav ul { gap: 2px 18px; font-size: 13.5px; }
  .anchor-nav li + li::before { margin-right: 18px; }

  .article { padding-block: 56px; }
  .article__title::after { margin-top: 20px; }
  .article__body { margin-top: 32px; }
  /* SPは1行が短くなり、中央揃えだと両端が不揃いで読みにくいため左揃えに戻す */
  #philosophy .article__body,
  #policy .article__body { text-align: left; }
  #philosophy .credo { text-align: center; }
  .rich { font-size: 15px; line-height: 2.1; }

  .numbered > li { padding: 22px 0 22px 52px; }
  .numbered > li::before { left: 0; top: 24px; font-size: 17px; }

  .spec th, .spec td { display: block; width: auto; padding: 0; border: 0; }
  .spec th { padding-top: 18px; font-size: 13px; letter-spacing: .12em; color: var(--text-sub); }
  .spec td { padding: 4px 0 18px; border-bottom: 1px solid var(--rule-light); }
  .spec tr:first-child th { border-top: 0; }
  .spec tr:first-child td { border-top: 0; }

  .figure-pair { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .figure-pair figure { border-radius: 12px; }
  .access-grid { gap: 16px; }
  .access-info { flex-direction: column; gap: 16px; padding-top: 22px; }
  .map { border-radius: 14px; aspect-ratio: 4 / 3; }

  .product { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .product__figure { border-radius: 14px; }

  .partner-list, .partner-list--3 { grid-template-columns: 1fr; }
  /* 「三井住友海上あいおい生命保険株式会社」が社名途中で切れないよう詰める */
  .partner-list .name { font-size: 13.5px; letter-spacing: .02em; }
  .pdf-link { width: 100%; padding: 0 20px; }

  /* SPでは見出しをタップで開閉できるようにする */
  .article--acc .article__title { text-align: left; }
  .article--acc .article__title::after { display: none; }
  .acc__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    padding-block: 4px;
  }
  .acc__mark {
    display: block;
    position: relative;
    flex: none;
    width: 22px; height: 22px;
  }
  .acc__mark::before, .acc__mark::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    background: var(--blue);
    transform: translate(-50%, -50%);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .acc__mark::before { width: 16px; height: 1.5px; }
  .acc__mark::after  { width: 1.5px; height: 16px; }
  .acc__btn[aria-expanded="true"] .acc__mark::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
  .article--acc .article__body { margin-top: 24px; }

  .footer__logo { display: flex; align-items: center; gap: 5px; }
  .footer__logo-mark { height: 50px; width: auto; }
  /* logo-type-white.png はネイビー背景用に生成した白文字・透過版 */
  .footer__logo-type { height: 25px; width: auto; }

}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding-inline: 20px; }
  .header__logo { gap: 5px; }
  .header__logo-mark { height: 60px; }
  .header__logo-type { height: 30px; }
  .hero__catch { letter-spacing: .1em; }
}

/* --------------------------------------------------
   12. 印刷
   -------------------------------------------------- */
@media print {
  .header, .drawer, .pagetop { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  .footer { background: #fff; color: #333; }
}
