/* ============================================================
   笠井整形外科 訪問リハビリテーション HP
   共通スタイルシート(全ページ共通・1ファイル)
   ============================================================ */

/* ---------- 1. デザイントークン ---------- */
:root {
  --color-primary: #1a6bb0;        /* メイン青(信頼感) */
  --color-primary-dark: #0f4c80;   /* 濃青(見出し・フッター) */
  --color-primary-pale: #e8f2fa;   /* 淡青(セクション背景) */
  --color-accent: #e8863a;         /* 暖色アクセント(CTA・電話) */
  --color-text: #333333;
  --color-text-sub: #666666;
  --color-bg: #ffffff;
  --color-border: #dde5ec;
  /* 受入状況 */
  --color-status-ok: #2e8b57;      /* ◯ 受入可能 */
  --color-status-limited: #d99000; /* △ 要相談 */
  --color-status-full: #c0392b;    /* ✕ 受入停止中 */

  --font-body: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --fs-base: 16px;                 /* 本文最小サイズ */
  --width-wide: 1200px;            /* コンテンツ幅: ワイド */
  --width-normal: 960px;           /* コンテンツ幅: 標準 */
  --width-narrow: 720px;           /* コンテンツ幅: 狭幅 */

  --radius: 8px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0 0 0.75em;
}

h1,
h2,
h3,
h4 {
  color: var(--color-primary-dark);
  line-height: 1.5;
  font-weight: 700;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container-wide,
.container-normal,
.container-narrow {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.container-wide   { max-width: var(--width-wide); }
.container-normal { max-width: var(--width-normal); }
.container-narrow { max-width: var(--width-narrow); }

@media (max-width: 767px) {
  .container-wide,
  .container-normal,
  .container-narrow {
    padding: 0 16px;
  }
}

/* PC/SPの出し分け(基準: 767px) */
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

/* ---------- 3. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.4;
}
.site-name:hover,
.site-name:focus-visible {
  text-decoration: none;
  opacity: 0.85;
}
.site-name__logo {
  display: block;
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
/* ロゴ(黒い専用書体)と喧嘩しないよう、サービス名は近い色・控えめな級数で添える */
.site-name__text {
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.3;
  border-left: 1px solid var(--color-border);
  padding-left: 12px;
}

.header-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
  text-align: right;
}

.header-contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  /* アクセント橙地に白文字はAAコントラスト未達のため濃色文字を使用 */
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-contact__phone:hover,
.header-contact__phone:focus-visible {
  filter: brightness(1.08);
  text-decoration: none;
}
.header-contact__phone .icon {
  font-size: 1.1em;
}

.header-contact__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-sub);
  line-height: 1.5;
  text-align: right;
}

/* ハンバーガーボタン(モバイルのみ表示) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* グローバルナビ */
.global-nav {
  background: var(--color-primary-dark);
}
.global-nav ul {
  max-width: var(--width-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 0 20px;
}
.global-nav a {
  display: block;
  padding: 16px;
  color: #ffffff;
  font-size: 0.95rem;
  white-space: nowrap;
}
.global-nav a:hover,
.global-nav a:focus-visible {
  background: var(--color-primary);
  text-decoration: none;
}

/* ---------- 4. メインコンテンツ共通の余白 ---------- */
main {
  display: block;
}

section {
  padding: 64px 0;
}
section + section {
  border-top: 1px solid var(--color-border);
}
.section--pale {
  background: var(--color-primary-pale);
}

.section-heading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.2em;
}
.section-heading__lead {
  margin: 0 auto 2em;
  text-align: center;
  color: var(--color-text-sub);
}
/* ヒーロー内は h1・CTAが左揃えのため、リードも左揃えを維持 */
.hero .section-heading__lead {
  text-align: left;
}

h1 {
  font-size: 1.8rem;
}

/* ---------- 5. 受入状況表 ---------- */
.status-table-wrap {
  margin: 0 auto 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
}
.status-table__heading {
  margin: 0 0 16px;
  font-size: 1.15rem;
  text-align: center;
}
.status-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}
.status-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: center;
}
.status-table th,
.status-table td {
  border: 1px solid var(--color-border);
  padding: 8px;
}
.status-table thead th {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
.status-table tbody th {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.status-cell__symbol {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
/* 色だけに依存しないよう記号(◯/△/✕/−)そのもので判別可能にしたうえで色を補助的に付与 */
.status-cell--ok .status-cell__symbol {
  color: var(--color-status-ok);
}
.status-cell--limited .status-cell__symbol {
  color: var(--color-status-limited);
}
.status-cell--full .status-cell__symbol {
  color: var(--color-status-full);
}
.status-cell--closed .status-cell__symbol {
  color: var(--color-text-sub);
}

.status-table__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-text);
}
.status-table__legend li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-table__legend .status-cell__symbol {
  font-size: 1rem;
}

.status-table__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-sub);
  text-align: center;
}

.status-badge-noscript {
  margin: 0 auto 24px;
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 2px dashed var(--color-border);
  text-align: center;
  color: var(--color-text-sub);
}

@media (max-width: 767px) {
  .status-table-wrap {
    padding: 16px 8px;
  }
  .status-table th,
  .status-table td {
    padding: 8px 4px;
  }
}

/* ---------- 6. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
}
.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn--phone {
  background: var(--color-accent);
  /* アクセント橙地に白文字はAAコントラスト未達のため濃色文字を使用 */
  color: var(--color-text);
  font-size: 1.25rem;
  padding: 24px 48px;
}
.btn--phone:hover,
.btn--phone:focus-visible {
  filter: brightness(1.08);
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-primary-pale);
}

/* ---------- 7. カード(3枚横並び→モバイル縦積み) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6em;
}
.card p {
  margin: 0;
  color: var(--color-text);
}

/* ---------- 8. 概要テーブル ---------- */
/* 淡青セクション上でも輪郭が出るよう、白背景+外枠で面を立てる。
   border-collapse:collapse だと外枠がセル罫線に吸収されるため separate + 濃色の枠を使う */
.overview-table {
  background: var(--color-bg);
  border: 1px solid #b9cbdb;
  border-radius: var(--radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.overview-table th,
.overview-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}
.overview-table th {
  width: 30%;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-weight: 700;
  border-right: 1px solid var(--color-border);
}

/* ---------- 9. FAQ(details/summary) ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-pale);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "Q.";
  color: var(--color-primary);
  font-weight: 700;
}
.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--color-text-sub);
}
.faq-item[open] summary::after {
  content: "－";
}
.faq-item__body {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
}

/* ---------- 10. CTAセクション ---------- */
.cta-section {
  background: var(--color-primary-dark);
  color: #ffffff;
  text-align: center;
  padding: 64px 0;
}
.cta-section h2 {
  color: #ffffff;
  font-size: 1.5rem;
}
.cta-section p {
  color: #eaf2fa;
}
.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 1.5em;
}
.cta-section .btn--outline {
  border-color: #ffffff;
  color: #ffffff;
}
.cta-section .btn--outline:hover,
.cta-section .btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- 11. フッター ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #eaf2fa;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.site-footer a {
  color: #ffffff;
}
/* フッターは常に メニュー → 事業所情報 の順で表示する。
   PC/タブレットでは 左=メニュー / 右=事業所情報、スマホでは上=メニュー / 下=事業所情報。
   HTMLの順序(事業所情報→メニュー)は変えず、order で表示順だけ入れ替えている。 */
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  margin-bottom: 24px;
}
.site-footer__nav {
  order: -1;
}
.site-footer address {
  font-style: normal;
  line-height: 1.9;
}
.site-footer__license {
  font-size: 0.8rem;
  font-weight: 400;
  color: #cfe0ee;
}
.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: #cfe0ee;
}

/* ---------- 12. レスポンシブ(〜767px) ---------- */
@media (max-width: 767px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }

  /* ヘッダーは「ロゴ+ハンバーガー」「電話ボタン全幅」の2段(ハンバーガーを使う全幅で共通)。

     スクロール追従の方式(モバイル):
     - ページ上部ではヘッダーは通常フロー(2段のフル表示のままスクロールで流れる)
     - フルヘッダーが画面外に出たら、js/main.js が .is-stuck を付与し
       コンパクトな1段ヘッダーを position:fixed で画面上部に出す
       (bodyのpadding-topはJSが補償するため、コンテンツは一切飛ばない) */
  .site-header {
    position: static;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 1px 8px rgba(15, 76, 128, 0.12);
  }
  .site-header.is-stuck .site-header__inner {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .site-header.is-stuck .header-contact {
    order: 0;
    width: auto;
    margin-left: auto;
  }
  .site-header.is-stuck .header-contact__phone {
    width: auto;
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  .site-header.is-stuck .site-name__text {
    display: none;
  }
  .site-header.is-stuck .global-nav {
    display: none;
  }
  .site-header.is-stuck.has-open-nav .global-nav {
    display: block;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .header-contact {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }
  .header-contact__phone {
    width: 100%;
    justify-content: center;
    margin: 0;
  }
  .header-contact__note {
    display: none;
  }

  .global-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .global-nav.is-open {
    max-height: 400px;
  }
  .global-nav ul {
    flex-direction: column;
    padding: 8px 16px;
  }
  .global-nav a {
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .btn--phone {
    width: 100%;
  }

  /* 表は見出し列を狭めて値の折返しを減らす */
  .overview-table th,
  .overview-table td {
    padding: 12px 10px;
    font-size: 0.95rem;
  }
  .overview-table th {
    width: 32%;
    word-break: keep-all;
  }

  section {
    padding: 32px 0;
  }
}

/* スマホ(〜599px): ヘッダーは「ロゴ+メニュー」「電話ボタン」の2段に圧縮 */
@media (max-width: 599px) {
  .site-header__inner {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .site-name {
    gap: 8px;
  }
  .site-name__logo {
    height: 22px;
  }
  .site-name__text {
    font-size: 0.78rem;
    padding-left: 8px;
  }
  .hamburger {
    margin-left: auto;
  }

  /* 電話ボタンは2段目に全幅で。受付時間の小書きは非表示(フッター・事業所概要に記載あり) */
  .header-contact {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }
  .header-contact__phone {
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 10px 12px;
    font-size: 1rem;
  }
  .header-contact__note {
    display: none;
  }

  /* 見出し・ヒーローの文字サイズを縮小 */
  h1 {
    font-size: 1.4rem;
  }
  .section-heading {
    font-size: 1.3rem;
  }

  /* ボタンはすべて全幅・中央揃えで統一(折返し崩れ対策) */
  .cta-section__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    padding: 14px 16px;
  }
  .btn--phone {
    font-size: 1.05rem;
    padding: 16px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* PC/タブレット(768px〜) ではハンバーガーメニューは常に非表示・ナビは常に表示 */
@media (min-width: 768px) {
  .global-nav {
    max-height: none !important;
  }
}

/* ---------- 13. 各種様式ダウンロード(partner/contact共通) ---------- */
.download-list {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.download-list__item {
  padding: 16px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}
.download-list__title {
  margin: 0 0 8px;
  font-weight: 700;
}
.download-list__title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.download-list__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.download-list__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

/* ---------- 14. 画像配置(index/partner/service/guide/about共通) ---------- */

/* index: ヒーロー(右側に写真を背景として敷き、左のテキスト側へフェードさせる) */
.hero--home {
  position: relative;
  overflow: hidden;
}
.hero--home .hero__bg {
  position: absolute;
  inset: 0 0 0 44%;
}
.hero--home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
.hero--home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-primary-pale) 0%, rgba(232, 242, 250, 0.6) 32%, rgba(232, 242, 250, 0) 65%);
}
.hero--home .container-wide {
  position: relative;
}
.hero--home .hero__text {
  max-width: 55%;
}
@media (max-width: 767px) {
  .hero--home .hero__bg {
    inset: 0;
  }
  .hero--home .hero__bg::after {
    background: rgba(238, 245, 251, 0.9);
  }
  .hero--home .hero__text {
    max-width: 100%;
  }
}

/* 下層ページヒーロー: 写真を背景に敷き、淡色オーバーレイで見出しの可読性を確保 */
.hero--photo {
  position: relative;
  overflow: hidden;
}
.hero--photo .hero__bg {
  position: absolute;
  inset: 0;
}
.hero--photo .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero--photo .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(232, 242, 250, 0.88), rgba(232, 242, 250, 0.74));
}
.hero--photo .container-wide {
  position: relative;
}
.hero--photo h1 {
  text-align: center;
  margin-bottom: 0.4em;
}
.hero--photo .hero__subtext {
  text-align: center;
  margin: 0;
  color: var(--color-text-sub);
}

/* テキスト+写真の2カラム(対応エリアなどの帯) */
.media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
}
.media-row__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 767px) {
  .media-row {
    grid-template-columns: 1fr;
  }
}

/* カード上部の写真(3つの強みカードの一部などに使用) */
.card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--photo .card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card--photo h3 {
  margin: 20px 24px 0.6em;
}
.card--photo p {
  margin: 0 24px 24px;
}

/* セクション内の単体写真(帯状・中央寄せ) */
.section-photo {
  margin: 0 auto 32px;
}
.section-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.section-photo--narrow {
  max-width: 360px;
}

/* 写真+リード文の横並び(partner/guideで使用) */
.section-photo-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto 24px;
  text-align: left;
}
.section-photo-intro__img {
  flex: 0 0 200px;
  width: 200px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
}
.section-photo-intro p {
  margin: 0;
}
@media (max-width: 767px) {
  .section-photo-intro {
    flex-direction: column;
    text-align: center;
  }
  .section-photo-intro__img {
    width: 200px;
  }
}

/* about.html: アクセス写真3枚(外観/入口/駐車場) */
.access-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.access-photo {
  margin: 0;
}
.access-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 630;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.access-photo figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}
@media (max-width: 767px) {
  .access-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 15. 小型スマホ(〜374px: iPhone SE 第1世代など) ---------- */
@media (max-width: 374px) {
  /* ヘッダー: サービス名を隠してロゴのみに(ロゴに社名が入っているため情報は失われない) */
  .site-name__text {
    display: none;
  }
  .site-name__logo {
    height: 24px;
  }

  /* CTAの電話ボタンは番号を優先し、文字を詰めて1行に収める */
  .btn--phone {
    font-size: 0.95rem;
    padding: 14px 8px;
    gap: 4px;
  }
  .btn {
    font-size: 0.9rem;
    padding: 12px 8px;
    line-height: 1.4;
  }

  h1 {
    font-size: 1.25rem;
  }
  .section-heading {
    font-size: 1.2rem;
  }
  body {
    line-height: 1.8;
  }
}
