/* =========================================================
   あいあいグループホーム 紹介ページ
   ※このCSSはこのページ専用（単独のページとして置く前提）。既存ページに混ぜて読み込まないこと。
   画面幅の切り替え：901px以上（PC）／900px以下（タブレット）／680px以下（スマートフォン）
   見た目は組み込み先のあいきクラブのサイト（https://www.nisimino.com/aiki/）の部品に合わせる：
   浮いた白い角丸のヘッダー・見出しの形（1文字目の色＋下の棒）・
   淡い色の札と双葉・白い角丸の箱・点々の模様の地・手紙をくわえた鳥
   （画像は img/aiki/ ＝既存サイトの物）。最初の画面は css/firstview.css で上書きしている
   ========================================================= */

:root {
  /* 色（既存サイトの色を、文字が読める濃さに合わせて使う） */
  --c-bg: #fefaf7;           /* ページの下地（既存サイトと同じ） */
  --c-bg-fv: #fff7f1;        /* 最初の画面の下地（既存サイトと同じ） */
  --c-white: #ffffff;
  --c-text: #4a4a4a;
  --c-head: #3d3a35;
  --c-sub: #6a6359;
  --c-orange: #eb9b23;       /* 既存サイトのオレンジ（帯・飾り）。帯の白文字は既存サイトと同じ色を優先 */
  --c-orange-light: #ffa925; /* 既存サイトの見出しの1文字目と下の棒 */
  --c-orange-date: #c87400;  /* 開設日・手順の数字（大きい太字・下地の上 3.3:1／白の上 3.5:1） */
  --c-green: #72bd0e;        /* 既存サイトの緑（見出しの1文字目・下の棒） */
  --c-btn: #5ea10b;          /* 大きいボタン（白文字 3.2:1＝19px 以上の太字） */
  --c-btn-hover: #4e8c0c;
  --c-btn-small: #467f0b;    /* 文字の小さいボタン（白文字 4.9:1） */
  --c-link: #3d750b;         /* 文字リンク（下地の上 5.3:1） */
  --c-dash: #bcd49a;         /* 緑の点線（既存サイトの点線の色に近い淡い緑） */
  --c-dot: #c9c2b6;          /* 表の区切りの灰色の点線（既存のお知らせ一覧と同じ考え方） */
  --c-line: #e6dfd3;         /* 白い箱の枠 */
  --c-placeholder: #ece6db;

  /* 書体（既存サイトと同じ丸ゴシック・本文も） */
  --f-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;

  /* 余白 */
  --gutter: 48px;
  --container: 1120px;
  --header-gap: 14px;        /* ヘッダーの箱の上の空き */
  --header-box: 68px;        /* ヘッダーの箱の高さ */
  --header-total: calc(var(--header-gap) + var(--header-box));
  --side: max(var(--gutter), calc((100% - var(--container)) / 2)); /* grid-template-columns の中で使う */

  /* 文字 */
  --fs-body: 17px;
  --fs-h2: 32px;
  --fs-catch: 23px;
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-base);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.95;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  line-break: strict;
  word-break: auto-phrase; /* 日本語の文節で折り返す（対応ブラウザのみ） */
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
table { border-collapse: collapse; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nowrap { white-space: nowrap; }
.pc-only { display: inline; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* キーボード操作時の枠 */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-link);
  outline-offset: 3px;
}

/* ---------- 共通の部品 ---------- */

/* 区画の見出し（既存サイトと同じ形＝中央・1文字目だけ色・文字の下に色の棒） */
.section-title {
  color: var(--c-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;
}
.section-title span { display: inline-block; }
.section-title span::first-letter { color: var(--c-orange-light); }
.section-title span::after {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  margin: 12px auto 0;
  background: var(--c-orange-light);
}
.section-title--green span::first-letter { color: var(--c-green); }
.section-title--green span::after { background: var(--c-green); }

/* 見出しの下の一言（既存サイトと同じく左ぞろえ） */
.section-catch {
  margin-top: 44px;
  color: var(--c-head);
  font-size: var(--fs-catch);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

/* 開設日（数字だけ大きく・オレンジ） */
.date {
  color: var(--c-orange-date);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.date__num { line-height: 1; margin: 0 0.06em; }
.date__num:first-child { margin-left: 0; }
.date__week { letter-spacing: 0; }

/* 文字リンク */
.text-link {
  color: var(--c-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
@media (hover: hover) { .text-link:hover { text-decoration-thickness: 2px; } }

/* ボタン（既存サイトの黄緑に寄せた緑・角を少し丸め、右に「＞」） */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 36px;
  border: 0;
  border-radius: 6px;
  font-family: var(--f-base);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn--primary { background: var(--c-btn); color: var(--c-white); }
.btn--go { padding-right: 60px; }
.btn--go::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 9px; height: 9px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn--small { min-height: 46px; padding: 0 22px; font-size: 16px; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--c-btn-hover); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}

/* 写真（読み込み中は淡い地の色） */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--c-placeholder);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-note {
  color: var(--c-sub);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* =========================================================
   ローディング
   ========================================================= */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f4;
  transition: opacity 0.5s ease;
  /* フェード 0.5秒は main.js の FADE_MS（550ms で非表示）と対。
     スクリプトが動かなかったときの退避用フェード（3.8秒）。 */
  animation: loader-fallback 0.5s ease 3.8s forwards;
}
.loader.is-leaving { opacity: 0; pointer-events: none; }
.loader[hidden] { display: none !important; }
.loader__inner { text-align: center; }
.loader__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px; height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--c-white);
}
.loader__sway {
  width: 67px; height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 85%;
  animation: futaba-sway 2.4s ease-in-out 1.1s infinite both;
}
.loader__futaba {
  width: 67px; height: auto;
  transform-origin: 50% 100%;
  animation: futaba-sprout 1.1s ease-out both;
}
.loader__name {
  margin-top: 18px;
  color: #555;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.loader__text {
  margin-top: 4px;
  color: #555;
  font-size: 14px;
  letter-spacing: 0.08em;
}
@keyframes futaba-sprout {
  0%   { opacity: 0; transform: translateY(15px) scale(0.45); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes futaba-sway {
  0%   { transform: rotate(-3deg); }
  50%  { transform: rotate(4deg); }
  100% { transform: rotate(-3deg); }
}
@keyframes loader-fallback {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =========================================================
   最初の画面の出現（ローディング終了の判定後）
   ========================================================= */
.anim .fv-anim { opacity: 0; transform: translateY(18px); }
.anim.is-loaded .fv-anim { opacity: 1; transform: none; }
.anim.is-loaded .fv-anim--copy {
  transition: opacity 0.85s ease-out 0.1s, transform 0.85s ease-out 0.1s;
}
.anim.is-loaded .fv-anim--photo {
  transition: opacity 0.9s ease-out 0.25s, transform 0.9s ease-out 0.25s;
}

/* スクロールでの出現（初回だけ） */
.anim.io .reveal {
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.anim.io .reveal:not(.is-shown) { opacity: 0; transform: translateY(22px); }
.anim.io .reveal--d1 { transition-delay: 0.1s; }
.anim.io .reveal--d2 { transition-delay: 0.2s; }
.anim.io .reveal--d3 { transition-delay: 0.3s; }

/* =========================================================
   01 ヘッダー（既存サイトと同じ、上から少し浮いた白い角丸の箱）
   ========================================================= */
.site-header {
  position: sticky; top: 0;
  z-index: 50;
  height: var(--header-total);
  padding: var(--header-gap) var(--gutter) 0;
  pointer-events: none; /* 箱の外の空きは下の画面を押せるように */
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: calc(var(--container) + 40px);
  height: var(--header-box);
  margin: 0 auto;
  padding: 0 14px 0 26px;
  border-radius: 12px;
  background: var(--c-white);
  box-shadow: 0 2px 14px rgba(90, 70, 40, 0.12);
  pointer-events: auto;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
  min-width: 0;
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: auto; height: 34px; }
.site-header__page {
  padding-left: 16px;
  border-left: 1px solid var(--c-line);
  color: var(--c-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.site-header__nav { display: flex; align-items: center; }
.site-header__link {
  position: relative;
  padding: 0 24px;
  color: var(--c-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__link + .site-header__link { border-left: 1px solid var(--c-line); }
.site-header__link::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 3px;
  background: var(--c-orange);
}
@media (hover: hover) { .site-header__link:hover { color: var(--c-link); } }
.site-header__cta { flex: none; white-space: nowrap; }
.site-header .btn--small { font-size: 19px; background: var(--c-btn); }
@media (hover: hover) { .site-header .btn--small:hover { background: var(--c-btn-hover); } }

/* =========================================================
   02 ファーストビュー（PC：左に文字・右に写真）
   ヘッダーの箱は、この画面の上に浮かせる（既存サイトと同じ）
   ========================================================= */
.fv {
  position: relative;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr) 50%;
  min-height: 860px;
  margin-top: calc(-1 * var(--header-total));
  padding-bottom: 72px;
  background: var(--c-bg-fv);
  overflow: hidden;      /* clip に対応していない古い Safari（iPadOS 15 以前）用 */
  overflow: clip visible; /* 横だけ切る（帯の左の伸び） */
}
.fv__body {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: center;
  padding: calc(var(--header-total) + 48px) 56px 32px 0;
}
.fv__name {
  color: var(--c-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.fv__open {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.3;
}
.fv__open .date__num { font-size: 36px; } /* 帯の言葉（46px）より小さく＝最初の画面の主役は帯 */
.fv__open-label { color: var(--c-head); font-size: 20px; font-weight: 700; letter-spacing: 0.1em; }

/* 既存サイトと同じ、左端から出るオレンジの帯（右側の角だけ丸い・写真の幅の約4分の1まで写真にかかる） */
.fv__catch {
  position: relative;
  width: calc(100% + 56px + 12.5vw);
  margin-top: 30px;
  padding: 20px 28px 22px 0;
  border-radius: 0 12px 12px 0;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.fv__catch::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 100%;
  width: 100vw;
  background: var(--c-orange);
}
.fv__catch-line { display: block; white-space: nowrap; }
.fv__lead { margin-top: 30px; max-width: 25em; }
/* ボタン2つ。PC は文字の段が狭いので縦2段・2つとも長いほうの幅にそろえる */
.fv__btns {
  display: inline-grid;
  grid-template-columns: max-content;
  gap: 14px;
  margin-top: 34px;
}

.fv__photo {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.photo--fv {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 0 0 0 64px;
}
/* 写真の見せる範囲：2人の顔が、左からかかるオレンジの帯（写真の左25%・高さ37〜61%）と上のヘッダーに隠れない位置。
   縦に細長い枠（1200〜1520px）でも、職員さんの顔が帯の右に・ご本人の顔が枠の中に収まる横の位置＝25%。
   901〜1199px は下の指定（帯を短くして 50%）。 */
.photo--fv img { object-position: 25% 50%; }
.fv__photo .photo-note { padding: 8px var(--gutter) 0 0; text-align: right; }

/* =========================================================
   03 ページ内ナビゲーション（白い角丸の箱・最初の画面に少し重ねる）
   ========================================================= */
.page-nav {
  position: relative;
  z-index: 3;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: -40px auto 0;
  padding: 0 var(--gutter);
}
.page-nav__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--c-white);
  box-shadow: 0 2px 14px rgba(90, 70, 40, 0.1);
}
.page-nav__list li { position: relative; }
.page-nav__list li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 30%; bottom: 30%;
  border-left: 1px solid var(--c-line);
}
.page-nav__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 12px;
  color: var(--c-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-nav__list a span { padding-bottom: 3px; border-bottom: 3px solid var(--c-orange); }
@media (hover: hover) { .page-nav__list a:hover { color: var(--c-link); } }

.about[id], .care[id], .facility[id], .contact[id], .facility__block[id] { scroll-margin-top: calc(var(--header-total) + 8px); }

/* =========================================================
   04 グループホームとは（点々の模様の地・白い角丸の箱）
   ========================================================= */
.about {
  margin-top: -32px;
  padding: 120px 0 104px;
  background: url("../img/aiki/aiki_bg.jpg") repeat;
}
.about__box {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 44px 60px 50px;
  border-radius: 16px;
  background: var(--c-white);
}
.about__catch {
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--c-dash);
  color: var(--c-head);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.about__text { margin-top: 24px; line-height: 2.05; }

/* =========================================================
   05 大切にすること（既存サイトの淡い色の札・見出しの左に双葉）
   ========================================================= */
.care { padding: 100px 0 100px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 64px;
}
.card {
  --card-bg: #fff5e3;
  --card-line: #f0c27c;
  position: relative;
  padding: 44px 28px 32px;
  border: 2px solid var(--card-line);
  border-radius: 12px;
  background: var(--card-bg);
}
.card--green { --card-bg: #f1f8e7; --card-line: #b2d987; }
.card--blue { --card-bg: #e9f6fa; --card-line: #94d2e2; }
.card--pink { --card-bg: #fdeeec; --card-line: #f2aea7; } /* 既存サイトの桃色の札（#fbe6e3・双葉 leaf_icon02）に合わせた淡さ */
/* 耳（上半分の丸）：札の上の辺から出る。下半分を作らないので、出現の動きの途中でも丸ごと見えない */
.card::before {
  content: "";
  position: absolute;
  left: 50%; top: -32px;
  width: 64px; height: 32px;
  margin-left: -32px;
  border: 2px solid var(--card-line);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  background: var(--card-bg);
}
/* 耳の付け根の枠線を消す */
.card::after {
  content: "";
  position: absolute;
  left: 50%; top: -2px;
  width: 60px; height: 2px;
  margin-left: -30px;
  background: var(--card-bg);
}
.card__icon {
  position: absolute;
  z-index: 1;
  left: 50%; top: -16px;
  width: 33px; height: 23px;
  margin-left: -16.5px;
}
.card__title {
  color: var(--c-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  text-wrap: balance;
}
.card__text { margin-top: 14px; font-size: 16px; line-height: 1.95; }

/* 4つの特徴：2列×2段・全体の幅は 04 の白い箱と同じ・上下の段の間は耳がぶつからない広さ */
.care .container { max-width: calc(900px + var(--gutter) * 2); }
.cards--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px 28px;
}
.cards--four .card { padding: 44px 36px 32px; }
.cards--four .card__text { text-align: center; }

/* =========================================================
   06 施設のご案内
   ========================================================= */
.facility { padding: 16px 0 100px; }
/* 施設紹介の中の見たい所へ（文字リンクの1行） */
.facility__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 32px;
  margin-top: 40px;
  font-size: 16px;
}
.facility__links .text-link { display: inline-block; padding: 6px 0; }

.aiai { margin-top: 60px; }
/* 白い角丸の箱（椿の箱と同じ枠・角丸・地） */
.box {
  position: relative;
  padding: 40px 44px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-white);
}
.box + .box { margin-top: 32px; }
/* 箱1は左上に家の札（既存サイトの運営会社の箱と同じ形） */
.home { padding-top: 48px; }
.home::before {
  content: "";
  position: absolute;
  left: 36px; top: -26px;
  width: 58px; height: 50px;
  border-radius: 8px;
  background: #fff1d4 url("../img/aiki/company_icon.png") center / 40px auto no-repeat;
}
.home__name {
  color: var(--c-head);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.home__text { margin-top: 10px; font-size: 16px; }

/* 箱の中の左右2列（間に緑の点線の縦線＝ご相談の流れの区切りと同じ） */
.box__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 72px;
  align-items: start;
}
.box__split > :nth-child(2) { position: relative; }
.box__split > :nth-child(2)::before {
  content: "";
  position: absolute;
  left: -37px; top: 0; bottom: 0;
  border-left: 2px dashed var(--c-dash);
}
/* 箱1：左に概要の表・右に外観の写真の枠（縦線なし） */
.box__split--home {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  column-gap: 40px;
  align-items: stretch;
  margin-top: 22px;
}
.box__split--home > :nth-child(2)::before { display: none; }
.box__split--home .info-table { margin-top: 0; }
/* 箱の中の区切り（緑の点線の横線） */
.box__sep {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px dashed var(--c-dash);
}

/* 小見出し（椿の名前と同じ形＝双葉＋太字） */
.sub-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.sub-title::before {
  content: "";
  flex: none;
  width: 33px; height: 23px;
  background: url("../img/aiki/leaf_icon03.png") no-repeat;
}
.box__text { margin-top: 12px; font-size: 16px; }
.box__note { margin-top: 16px; color: var(--c-head); font-size: 16px; }

.info-table { width: 100%; margin-top: 22px; }
.facility__block .info-table { margin-top: 14px; }
.info-table th, .info-table td {
  padding: 14px 0;
  border-bottom: 1px dotted var(--c-dot);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.75;
}
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 1px dotted var(--c-dot); }
.info-table th {
  width: 7em;
  padding-right: 16px;
  color: var(--c-head);
  font-weight: 700;
}
.info-table .text-link { display: inline-block; padding: 6px 0; margin: -6px 0; }
.info-table .date__num { font-size: 22px; }
.info-table--service th { width: 10.5em; } /* 「レクリエーション」が1行に入る幅 */
/* 1日の流れ：時刻の列を細く・行を少し詰める（スマホでも横並びのまま） */
.info-table--time th { width: 5em; font-variant-numeric: tabular-nums; }
.info-table--time th, .info-table--time td { padding: 8px 0; }
.info-table--time th { padding-right: 16px; }

/* 施設の写真の枠 */
.photo-frame { margin: 0; }
.photo--frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}
.photo-name {
  margin-top: 8px;
  color: var(--c-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.photo-frame--front { display: flex; flex-direction: column; }
.photo-frame--front .photo--frame { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; }
.photo-frame--front img { object-position: 42% 40%; } /* 外観：枠が正方形でも横長でも看板と入口が入る位置 */
.rooms__note { margin-top: 10px; text-align: right; }
.photo-name__note { display: block; margin-top: 2px; font-weight: 500; text-align: right; } /* 外観の写真にも「イメージ」の注記（スマホでは4部屋の注記から遠いため） */
.rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 上3枚・下3枚 */
  gap: 24px 20px;
  margin-top: 22px;
}

/* 年間行事：春夏秋冬を横に4つ・間は緑の点線 */
.seasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}
.season {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  text-align: center;
}
.season + .season { border-left: 2px dashed var(--c-dash); }
.season__name {
  color: var(--c-orange-date);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}
.season__event {
  color: var(--c-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.facility__cta { margin-top: 40px; text-align: center; }

.tsubaki {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 28px;
  row-gap: 2px;
  margin-top: 48px;
  padding: 20px 32px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-white);
}
.tsubaki__name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.tsubaki__name::before {
  content: "";
  flex: none;
  width: 33px; height: 23px;
  background: url("../img/aiki/leaf_icon03.png") no-repeat;
}
.tsubaki__address { font-size: 16px; }
.tsubaki__map { font-size: 16px; }

/* =========================================================
   07 ご相談の流れ（白い角丸の箱・見出しの頭にオレンジの数字）
   ========================================================= */
.flow { padding: 16px 0 100px; }
/* 3つの手順と注記（入居条件・費用など）を1つの白い箱に */
.flow__box {
  margin-top: 28px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-white);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 34px 0 30px;
}
.step { position: relative; padding: 0 36px; }
.step + .step { border-left: 2px dashed var(--c-dash); }
.step__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--c-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.step__no {
  flex: none;
  color: var(--c-orange-date);
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
}
.step__text { margin-top: 12px; font-size: 16px; }

/* =========================================================
   08 お問い合わせ（手紙をくわえた鳥・既存サイトのお問い合わせの箱の並び）
   ========================================================= */
.contact {
  position: relative;
  padding: 88px 0 100px;
  background: #f2f8e8;
  overflow: hidden;       /* clip に対応していない古い Safari（iPadOS 15 以前）用 */
  overflow: clip visible; /* 横だけ切る（鳥の点線） */
}
.contact .container { position: relative; }
.contact::before {
  content: "";
  position: absolute;
  right: -40px; top: 34px;
  width: 450px; height: 250px;
  background: url("../img/aiki/news_bg01.png") no-repeat left top;
  pointer-events: none;
}
.contact .section-title,
.contact .section-catch { position: relative; }
.contact__text { position: relative; margin-top: 10px; }
.contact__box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 24px 48px;
  align-items: center;
  margin-top: 32px;
  padding: 34px 44px 36px;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-white);
}
.contact__tel-label {
  color: var(--c-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
/* 電話の帯（既存サイトの「あいきクラブとは」の帯の形：白い電話の印と番号。窓口の名前は下の行） */
.tel-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px; /* 右の「Webでお問い合わせ」（.btn＝60px）と同じ高さ */
  margin-top: 8px;
  padding: 6px 24px 6px 22px;
  border-radius: 6px;
  background: var(--c-btn); /* ほかの大きいボタンと同じ緑（白文字 3.2:1＝文字はすべて 19px 以上の太字） */
  color: var(--c-white);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.tel-band__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tel-band__num::before {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  background: url("../img/aiki/tel_icon_w.png") no-repeat center / contain;
}
@media (hover: hover) {
  .tel-band:hover { background: var(--c-btn-hover); }
}
.contact__desk { margin-top: 8px; font-size: 15px; line-height: 1.8; }
.contact__web { width: 100%; }
/* 2列のとき：Web のボタンを左の電話の帯と同じ高さの段にそろえる（上の空き＝「電話で相談する」の1行 17px×1.5＋帯の上の 8px） */
@media (min-width: 901px) {
  .contact__web { align-self: start; margin-top: calc(17px * 1.5 + 8px); }
}

/* 職員募集の案内（入居相談の箱の下・椿と同じ細い枠の白い箱で控えめに） */
.recruit {
  position: relative;
  margin-top: 40px;
  padding: 30px 44px 32px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-white);
}
.recruit__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 56px;
  align-items: center;
  margin-top: 14px;
}
.recruit__catch {
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--c-dash);
  color: var(--c-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.recruit .info-table { margin-top: 4px; }
.recruit .info-table tr:first-child th, .recruit .info-table tr:first-child td { border-top: 0; } /* 上は一言の下の点線で区切る（線を二重にしない） */
.recruit__tel { text-align: center; }
.recruit__tel-label {
  display: block;
  color: var(--c-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
/* 既存サイトの緑の丸い電話の印と番号（押すと電話がかかる） */
.recruit__tel-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--c-link);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.recruit__tel-num::before {
  content: "";
  flex: none;
  width: 30px; height: 29px;
  background: url("../img/aiki/icon-tel.png") no-repeat center / contain;
}
@media (hover: hover) { .recruit__tel-num:hover { text-decoration: underline; text-underline-offset: 5px; } }

/* =========================================================
   09 フッター（白い角丸の箱・コピーライトは箱の外）
   ========================================================= */
.site-footer {
  padding: 56px 0 28px;
  font-size: 14px;
  line-height: 1.7;
}
.site-footer__box {
  padding: 34px 40px 20px;
  border-radius: 16px;
  background: var(--c-white);
  text-align: center;
}
.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: auto; height: 34px; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 36px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 2px dashed var(--c-line);
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (hover: hover) { .site-footer__links a:hover { color: var(--c-link); } }
.site-footer__copy { margin-top: 20px; color: var(--c-sub); text-align: center; }
.site-footer__copy small { font-size: 13px; }

/* 本文はパソコン・タブレットでも右の端まで詰めて並べる。
   文節で区切るのは見出し・キャッチ・住所・電話窓口だけ（本文は行末まで詰めるのが日本語の標準）。
   最後の行が1〜2字だけになるのを防ぐため、Chrome・Edge は text-wrap: pretty。
   Safari の pretty は全部の行を短くそろえるので wrap のまま（auto-phrase に対応するのは Chrome 系だけ＝それで見分ける）。
   表の中の住所の番地・会社名・受付時間などの .nowrap は今までどおり切らない（スマホと同じ）。
   スマホ（680px以下）は下の 680px の決まりが今までどおり wrap にする */
.fv__lead, .about__text, .card__text, .home__text, .box__text, .box__note, .info-table td, .step__text, .contact__text, .recruit__catch { text-wrap: wrap; word-break: normal; hanging-punctuation: allow-end; }
.fv__lead .nowrap, .about__text .nowrap, .card__text .nowrap, .home__text .nowrap, .step__text .nowrap, .contact__text .nowrap { white-space: normal; }
@supports (word-break: auto-phrase) {
  .fv__lead, .about__text, .card__text, .home__text, .box__text, .box__note, .info-table td, .step__text, .contact__text, .recruit__catch { text-wrap: pretty; }
}

/* =========================================================
   901〜1199px
   ========================================================= */
@media (max-width: 1199px) {
  .fv { grid-template-columns: var(--side) minmax(0, 1fr) 46%; background-position: left calc(54vw - 730px) top 20px; }
  .fv__body { padding-right: 40px; }
  .fv__catch { width: calc(100% + 40px + 11.5vw); font-size: 40px; }
  .fv__open .date__num { font-size: 34px; }
  .site-header__link { padding: 0 16px; }
  .site-header__inner { gap: 16px; }
  .contact__box { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px 32px; }
  .contact::before { right: -150px; }
  .page-nav__list a { font-size: 15px; letter-spacing: 0.02em; padding: 8px 6px; gap: 8px; }
  .box__split { column-gap: 56px; }
  .box__split > :nth-child(2)::before { left: -29px; }
}

/* 901〜1199px：写真の枠が縦に細長い幅。帯が写真にかかる長さを短くし（11.5vw→3vw）、2人の顔を帯の右・枠の中に余裕をもって収める */
@media (min-width: 901px) and (max-width: 1199px) {
  .fv__catch { width: calc(100% + 40px + 3vw); }
  .photo--fv img { object-position: 50% 50%; }
}
/* 901〜949px：文が長くなり写真の枠がさらに縦長＝職員さんの顔が左へ寄る。帯は写真の手前で止める */
@media (min-width: 901px) and (max-width: 949px) {
  .fv__catch { width: calc(100% + 40px); }
}

/* 901〜1099px：ロゴ・ページ名・ナビ・相談ボタンを全部出す（文字と間隔を詰めて収める） */
@media (min-width: 901px) and (max-width: 1099px) {
  .site-header { padding-left: 28px; padding-right: 28px; }
  .site-header__inner { gap: 12px; padding: 0 10px 0 18px; }
  .site-header__brand { gap: 12px; }
  .site-header__logo img { height: 28px; }
  .site-header__page { padding-left: 12px; font-size: 14px; letter-spacing: 0.06em; }
  .site-header__link { padding: 0 10px; font-size: 14px; letter-spacing: 0.04em; }
  .site-header .site-header__cta { padding: 0 16px; font-size: 16px; letter-spacing: 0.04em; }
}
/* 900px以下：ロゴと相談ボタンだけ（ページ内ナビは下にある） */
@media (max-width: 900px) {
  .site-header__page, .site-header__nav { display: none; }
}

/* =========================================================
   681〜900px（タブレット）：写真を上段へ
   ========================================================= */
@media (max-width: 900px) {
  :root {
    --gutter: 32px;
    --header-gap: 10px;
    --header-box: 60px;
    --fs-h2: 28px;
    --fs-catch: 21px;
  }
  .site-header { position: relative; }
  .site-header .btn--small { font-size: 16px; background: var(--c-btn-small); }
  @media (hover: hover) { .site-header .btn--small:hover { background: #3d700a; } }
  .about[id], .care[id], .facility[id], .contact[id], .facility__block[id] { scroll-margin-top: 8px; }

  .fv {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 64px;
    background-image: none;
  }
  .fv__photo { order: -1; min-height: 0; }
  .photo--fv { flex: none; aspect-ratio: 3 / 2; border-radius: 0 0 0 48px; }
  /* 900px以下：写真は上段・横長。顔をヘッダーの箱（写真の上から最大29%）より下に */
  .photo--fv img { object-position: 50% 30%; }
  .fv__photo .photo-note { padding: 6px var(--gutter) 0; line-height: 20px; }
  .fv__body { position: relative; z-index: 1; align-self: stretch; padding: 20px var(--gutter) 24px; }
  /* 900px以下：帯は既存サイトのスマホと同じく、写真の左下に重ねる（帯の下の端＝写真の下の端）。
     本文の箱の上の端から、写真注記の高さ（上の余白 6px＋行 20px＝26px）だけ上に置く */
  .fv__catch { position: absolute; left: var(--gutter); bottom: calc(100% + 26px); margin-top: 0; width: fit-content; max-width: calc(100% - var(--gutter) * 2); font-size: 34px; padding-right: 32px; border-radius: 0 12px 0 0; } /* 右下は角ばらせる（写真の下の端にそろえるため・既存サイトの帯と同じ） */
  .fv__open .date__num { font-size: 30px; }

  .page-nav { margin-top: -36px; }

  .about { padding: 96px 0 88px; }
  .about__box { padding: 38px 40px 42px; }
  .about__catch { font-size: 22px; }

  .care { padding: 88px 0 88px; }
  .cards { gap: 16px; }
  .card { padding: 40px 18px 26px; }
  .card__title { font-size: 17px; letter-spacing: 0.02em; }
  .card__text { font-size: 15px; letter-spacing: 0.06em; }

  .facility { padding-bottom: 88px; }
  .aiai { margin-top: 56px; }
  .box { padding: 34px 28px; }
  .home { padding-top: 44px; }
  .home::before { left: 24px; }
  .home__name { font-size: 22px; }
  /* 箱の中の左右2列は1列に（表が細くなりすぎるため）。2つ目の上に緑の点線 */
  .box__split { grid-template-columns: 1fr; }
  .box__split > :nth-child(2) { margin-top: 28px; padding-top: 26px; border-top: 2px dashed var(--c-dash); }
  .box__split > :nth-child(2)::before { display: none; }
  /* 箱1：外観の枠は紹介文の下・表の上に横長で */
  .box__split--home > :nth-child(2) { order: -1; margin-top: 0; margin-bottom: 22px; padding-top: 0; border-top: 0; }
  .photo-frame--front .photo--frame { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .cards--four { gap: 60px 16px; } /* 上下の段の間はパソコンと同じ（耳が上の札にくっつかない） */
  .rooms { gap: 18px 14px; }
  .season { padding: 6px 8px; }
  .photo-frame--front { width: 100%; max-width: 420px; margin: 0 auto; } /* 外観の枠を幅いっぱいの大きな空き箱にしない */
  .tsubaki { padding: 18px 24px; }

  .flow { padding-bottom: 88px; }
  .steps { padding: 26px 0 22px; }
  .step { padding: 0 20px; }
  .step__title { font-size: 17px; gap: 10px; letter-spacing: 0.04em; }
  .step__no { font-size: 34px; }
  .step__text { font-size: 15px; letter-spacing: 0.06em; }

  .contact { padding: 80px 0 88px; }
  .contact::before { right: auto; left: calc(50% + 130px); top: 32px; width: 147px; height: 93px; background-image: url("../img/aiki/news_bg02.png"); }
  .contact__box { grid-template-columns: 1fr; padding: 30px 32px 32px; }
  .recruit { padding: 28px 32px 30px; }
  .recruit__body { grid-template-columns: 1fr; }
  .recruit__tel { text-align: left; }
}

/* 681〜900px（タブレット）：最初の画面の文字の段（施設名・開設予定・紹介文・ボタン）を真ん中にそろえる
   ＝下のページ内ナビと「グループホームとは」の見出しと同じ軸。
   ボタンは文字の長さに合った幅のまま（幅いっぱいにしない） */
@media (min-width: 681px) and (max-width: 900px) {
  .fv__body { text-align: center; }
  .fv__open { justify-content: center; }
  .fv__lead { margin-left: auto; margin-right: auto; }
  .fv__catch { text-align: left; }
  .fv__btns { grid-template-columns: repeat(2, max-content); } /* 横に2つ・幅は文字に合った長さ */
}

/* 760px以下：ページ内ナビを 2列×2段 */
@media (max-width: 760px) {
  .page-nav__list { grid-template-columns: 1fr 1fr; padding: 4px 8px; }
  .page-nav__list li + li::before { display: none; }
  .page-nav__list li:nth-child(even)::before {
    content: ""; display: block; position: absolute; left: 0; top: 24%; bottom: 24%;
    border-left: 1px solid var(--c-line);
  }
  .page-nav__list li:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}

/* =========================================================
   680px以下（スマートフォン）：1列
   ========================================================= */
@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --header-gap: 8px;
    --header-box: 56px;
    --fs-body: 16px;
    --fs-h2: 25px;
    --fs-catch: 19px;
  }
  body { letter-spacing: 0.06em; }
  /* スマホの本文は右の端まで詰めて並べる。
     iPhone では text-wrap: pretty が全部の行を短くそろえ、Android では word-break: auto-phrase と .nowrap が手前で改行させていた。
     見出し・キャッチ・住所・電話窓口は今のまま（言葉の途中で改行しない）。
     行末の「。」「、」は入りきらないときだけ行の外にぶら下げる（iPhone のみ効く）＝「い。」だけの最後の行と、その前の行の空きが減る。
     両端そろえは iPhone では字の間隔（letter-spacing）があると効かないので使わない */
  .fv__lead, .about__text, .card__text, .home__text, .box__text, .box__note, .info-table td, .step__text, .contact__text, .recruit__catch { text-wrap: wrap; word-break: normal; hanging-punctuation: allow-end; }
  .fv__lead .nowrap, .about__text .nowrap, .card__text .nowrap, .home__text .nowrap, .step__text .nowrap, .contact__text .nowrap { white-space: normal; }
  .site-header { padding-left: 10px; padding-right: 10px; }
  .site-header__inner { gap: 10px; padding: 0 8px 0 14px; border-radius: 10px; }
  .site-header__logo img { height: 26px; }
  .site-header .site-header__cta { min-height: 42px; padding: 0 14px; font-size: 14px; letter-spacing: 0.04em; }

  .fv { padding-bottom: 56px; }
  /* スマホは写真を縦に大きく（4:3・480px以下は正方形）＝写真の左下に重ねた帯が2人の顔にかからない高さ（既存サイトのスマホも写真を縦に大きく見せる）。
     */
  .photo--fv { aspect-ratio: 4 / 3; border-radius: 0 0 0 36px; }
  .photo--fv img { object-position: 50% 50%; }
  .fv__photo .photo-note { font-size: 12px; }
  .fv__body { padding: 16px var(--gutter) 12px; }
  .fv__name { font-size: 22px; }
  .fv__open { margin-top: 2px; font-size: 18px; gap: 0 10px; }
  .fv__open .date__num { font-size: clamp(22px, 6.4vw, 26px); }
  .fv__open-label { font-size: 17px; }
  .fv__catch { padding: 12px 22px 14px 0; font-size: clamp(24px, 7.2vw, 29px); border-radius: 0 10px 0 0; letter-spacing: 0.06em; }
  .fv__lead { margin-top: 16px; }
  .fv__btns { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; } /* 画面幅いっぱいのボタンを縦2段 */

  .page-nav { margin-top: -32px; }
  .pc-only { display: none; }
  .page-nav__list a { min-height: 56px; padding: 6px 4px; gap: 6px; font-size: 14px; letter-spacing: 0.02em; }

  .about { padding: 80px 0 68px; }
  .about__box { margin-top: 32px; padding: 26px 20px 28px; }
  .about__catch { font-size: 19px; padding-bottom: 12px; }
  .about__text { margin-top: 16px; }

  .section-catch { margin-top: 32px; }

  .care { padding: 68px 0 72px; }
  .cards { grid-template-columns: 1fr; gap: 52px; margin-top: 56px; }
  .card, .cards--four .card { padding: 40px 20px 24px; }
  .cards--four .card__text { text-align: left; }
  .card__title { font-size: 18px; }
  .card__text { margin-top: 10px; }

  .facility { padding-bottom: 72px; }
  .facility__links { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 0 28px; margin-top: 28px; } /* 2つずつ2段（3つと1つにしない） */
  .aiai { margin-top: 52px; }
  .box { padding: 28px 20px; }
  .box + .box { margin-top: 24px; }
  .home { padding-top: 42px; }
  .home::before { left: 20px; }
  .home__name { font-size: 21px; }
  .sub-title { font-size: 18px; }
  .info-table th, .info-table td { display: block; width: auto; border: 0; }
  .info-table tr:first-child th { border-top: 1px dotted var(--c-dot); }
  .info-table tr:first-child td { border-top: 0; }
  .info-table th { padding: 12px 0 0; }
  .info-table td { padding: 0 0 12px; border-bottom: 1px dotted var(--c-dot); }
  /* 1日の流れだけは「時刻｜内容」の横並びのまま（縦に積むと長さが倍になる） */
  .info-table--time th, .info-table--time td { display: table-cell; padding: 8px 0; border-bottom: 1px dotted var(--c-dot); }
  .info-table--time th { width: 4.5em; padding-right: 12px; }
  .info-table--time tr:first-child td { border-top: 1px dotted var(--c-dot); }
  .photo-frame--front .photo--frame { aspect-ratio: 4 / 3; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  /* 年間行事：2列×2段（縦の点線は右の列だけ・下の段の上に横の点線） */
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season { padding: 10px 8px; }
  .season:nth-child(3) { border-left: 0; }
  .season:nth-child(n+3) { border-top: 2px dashed var(--c-dash); }
  .facility__cta .btn { display: flex; width: 100%; padding: 0 44px 0 18px; letter-spacing: 0.02em; } /* 13文字を1行に */
  .facility__cta .btn::after { right: 20px; }
  .tsubaki { display: block; margin-top: 32px; padding: 18px 20px; }
  .tsubaki__address { margin-top: 4px; }

  .flow { padding-bottom: 72px; }
  .flow__box { margin-top: 20px; }
  .steps { grid-template-columns: 1fr; padding: 4px 0 0; }
  .step { padding: 20px 20px 22px; }
  .step + .step { border-left: 0; border-top: 2px dashed var(--c-dash); }
  .step__title { font-size: 18px; }
  .step__text { margin-top: 8px; }

  .contact { padding: 72px 0 76px; }
  .contact::before { left: auto; right: 14px; top: 12px; width: 88px; height: 56px; background-size: contain; }
  .contact__box { margin-top: 24px; padding: 24px 18px 24px; gap: 18px; }
  .tel-band { padding: 12px 16px; }
  .tel-band__num { font-size: clamp(26px, 7.6vw, 30px); letter-spacing: 0.03em; }
  .recruit { margin-top: 32px; padding: 24px 18px 24px; }
  .recruit__catch { font-size: 18px; }
  .recruit__tel-num { font-size: clamp(24px, 7vw, 28px); }

  .site-footer__box { padding: 26px 16px 12px; }
  .site-footer__logo img { height: 28px; }
  .site-footer__links { flex-direction: column; gap: 0; }
}

/* 480px以下：最初の画面の写真を正方形（元の写真をそのまま全部）に＝帯が顔にかからない */
@media (max-width: 480px) {
  .photo--fv { aspect-ratio: 1 / 1; }
}

/* 374px以下：大きいボタンの文字が折れないように余白を詰める */
@media (max-width: 374px) {
  .btn { letter-spacing: 0; padding-left: 14px; }
  .btn--go { padding-right: 40px; }
  .btn--go::after { right: 16px; }
}

/* 360px以下（小さいスマートフォン） */
@media (max-width: 360px) {
  .site-header__logo img { height: 22px; }
  .site-header .site-header__cta { padding: 0 10px; font-size: 13px; letter-spacing: 0.02em; }
  .page-nav__list a { padding: 6px 2px; font-size: 13px; letter-spacing: 0; }
  .card__title, .step__title { letter-spacing: 0.02em; }
  .facility__cta .btn { padding: 0 36px 0 12px; font-size: 17px; letter-spacing: 0; }
  .facility__cta .btn::after { right: 14px; }
  .contact__box { padding-left: 12px; padding-right: 12px; }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .btn, .page-nav__list a { transition: none; }
}

/* 印刷するときは、出現の動きを待たずに全部を表示する（背景は印刷されないので、色の面に頼る文字は墨色に） */
@media print {
  .anim .fv-anim, .anim.io .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .loader { display: none !important; }
  .site-header { position: static; }
  .site-header__inner { box-shadow: none; border: 1px solid var(--c-line); }
  .fv { margin-top: 0; }
  .fv__body { padding-top: 32px; }
  .fv__catch { position: static; max-width: none; width: fit-content; color: var(--c-head); background: none; border: 2px solid var(--c-orange); padding-left: 16px; border-radius: 12px; }
  .fv__catch::before { display: none; }
  .btn--primary, .site-header .site-header__cta { color: var(--c-link); background: none; border: 2px solid var(--c-link); }
  .tel-band { color: var(--c-head); background: none; border: 2px solid var(--c-link); }
  .tel-band__num::before { display: none; }
}
