/* =========================================================
   訪問介護 ひだまりの手 — 共通スタイル
   モバイルファースト。ブレークポイント 640 / 1024 / 1200
   ========================================================= */

:root {
  /* color */
  --c-paper: #FDFBF7;      /* 和紙：ページ地 */
  --c-white: #FFFFFF;
  --c-blush: #F6ECE5;      /* 薄桜：サービスの面 */
  --c-sage: #E6EEE9;       /* 青磁：一週間の面 */
  --c-ink: #2B2622;        /* 墨：本文 */
  --c-ink-soft: #5E554D;   /* 補足文 */
  --c-pine: #2D5A4A;       /* 常磐：ブランド・見出し */
  --c-pine-deep: #234839;  /* フッター地 */
  --c-mikan: #CC5F24;      /* 蜜柑：行動色（ボタンのみ） */
  --c-mikan-hover: #AE4E1B;
  --c-sun: #FFF7E0;        /* 菜の花：流れの面 */
  /* イラスト用パステル */
  --c-leaf: #8CC56F;
  --c-peach: #F08E6E;
  --c-peach-tint: #FDE3D8;
  --c-yellow: #E9A23A;
  --c-yellow-tint: #FFF1C9;
  --c-sky-tint: #DDEFF7;
  --c-leaf-tint: #E3F2D6;
  --c-light: #F6DCBF;      /* 扉の灯り */
  --c-line: #E7DED4;
  --c-sage-line: #B9C9BF;
  --focus-color: var(--c-mikan);

  /* type */
  --ff-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --ff-hand: "Klee One", "Zen Maru Gothic", cursive;
  --ff-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --fs-hero: 27px;
  --fs-h1: 30px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-lead: 24px;
  --fs-word: 32px;
  --fs-phone: 30px;
  --fs-phone-lg: 34px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-step: 16px;

  /* space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --gutter: 20px;
  --section-pad: 72px;
  --container: 1200px;
  --header-h: 64px;

  /* radius：階層で使い分け */
  --r-door: 999px 999px 0 0;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 6px;
  --r-pill: 999px;

  /* 波形のマスク（file:// でも読めるよう埋め込み） */
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 40%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 40V22C120 6 240 6 360 18s240 18 360 6 240-20 360-10 240 18 360 4V40z%22/%3E%3C/svg%3E");

  /* z-index scale */
  --z-base: 0;
  --z-raised: 1;
  --z-header: 10;
  --z-skip: 20;

  /* motion */
  --dur-enter: 700ms;
  --delay-enter: 200ms;
}

@media (min-width: 640px) {
  :root {
    --fs-hero: 40px;
    --fs-h1: 38px;
    --fs-h2: 34px;
    --fs-h3: 22px;
    --fs-lead: 30px;
    --fs-word: 40px;
    --fs-phone: 32px;
    --fs-phone-lg: 40px;
    --fs-body: 18px;
    --fs-small: 16px;
    --fs-step: 17px;
    --gutter: 32px;
    --section-pad: 96px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-hero: 54px;
    --fs-h1: 46px;
    --fs-h2: 44px;
    --fs-h3: 24px;
    --fs-lead: 36px;
    --fs-word: 52px;
    --fs-body: 19px;
    --fs-small: 17px;
    --header-h: 84px;
    --section-pad: 112px;
  }
}

/* ---------- reset（特異性 0） ---------- */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body, h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(img) { display: block; max-width: 100%; height: auto; }
:where(a) { color: var(--c-pine); }
:where(button) { font: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  text-wrap: balance;
  word-break: auto-phrase;
}

p { text-wrap: pretty; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: var(--z-skip);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-pine);
  color: var(--c-white);
  border-radius: var(--r-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- 共通パーツ ---------- */
.section { padding-block: var(--section-pad); }
.section--blush { background: var(--c-blush); }
.section--sage { background: var(--c-sage); }
.section--sun { background: var(--c-sun); }

/* 面の上下を波形にする（地色は --wave-bg） */
.section--blush { --wave-bg: var(--c-blush); }
.section--sage { --wave-bg: var(--c-sage); }
.section--sun { --wave-bg: var(--c-sun); }
.section--wave-top,
.section--wave-bottom { position: relative; }
.section--wave-top::before,
.section--wave-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: var(--z-raised);
  height: 32px;
  background: var(--wave-bg);
  -webkit-mask: var(--wave-mask) center / 100% 100% no-repeat;
  mask: var(--wave-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}
.section--wave-top::before { top: -31px; }
.section--wave-bottom::after { bottom: -31px; transform: scaleY(-1); }

/* 見出しに添える小枝 */
.section-title--leaf::before {
  content: "";
  display: block;
  width: 52px;
  height: 32px;
  margin-bottom: var(--sp-2);
  background: url("../img/illust/sprig.svg") left bottom / contain no-repeat;
}
.section-head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}
.section-head--center p { text-wrap: balance; }
.section-head--center .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}
.section-head--center .section-title::before,
.section-head--center .section-title::after {
  content: "";
  flex: none;
  width: 48px;
  height: 30px;
  background: url("../img/illust/sprig.svg") center / contain no-repeat;
}
.section-head--center .section-title::before { transform: scaleX(-1); }
@media (max-width: 639px) {
  .section-head--center .section-title { display: block; }
  .section-head--center .section-title::before {
    display: block;
    margin: 0 auto var(--sp-2);
    transform: none;
  }
  .section-head--center .section-title::after { content: none; }
}

/* 散らした葉っぱ */
.deco {
  position: absolute;
  z-index: var(--z-raised);
  width: 110px;
  height: auto;
  pointer-events: none;
}

.section-title {
  color: var(--c-pine);
  font-size: var(--fs-h2);
  line-height: 1.4;
}

.section-head {
  display: grid;
  gap: var(--sp-4);
  max-width: 44em;
  margin-bottom: var(--sp-8);
}
.section-head--row {
  max-width: none;
  align-items: end;
}
.section-head--row > div { display: grid; gap: var(--sp-3); }
.section-foot { margin-top: var(--sp-7); }

.note {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.8;
}

.text-link {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--r-pill);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.btn__icon { flex: none; }
.btn--primary {
  background: var(--c-mikan);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-mikan-hover); }
.btn--primary:focus-visible { outline-color: var(--c-ink); }
.btn--block { width: 100%; padding-inline: var(--sp-4); white-space: nowrap; }
@media (max-width: 639px) {
  .btn--block { font-size: 18px; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: calc(1360px + var(--gutter) * 2);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
  color: var(--c-ink);
  text-decoration: none;
}
.brand__mark { flex: none; width: 40px; height: 40px; }
.brand__text { display: grid; line-height: 1.2; }
.brand__kind {
  color: var(--c-pine);
  font-size: 12px;
  font-weight: 700;
}
.brand__name {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.menu-toggle__label { white-space: nowrap; }

/* 幅の狭いスマホ（iPhone SE など）：ロゴと「メニュー」を折り返さない */
@media (max-width: 359px) {
  .site-header__inner { gap: 0; }
  .brand { gap: var(--sp-2); }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 19px; }
  .menu-toggle { flex-direction: column; gap: 0; padding: 0 var(--sp-1); font-size: 12px; line-height: 1.2; }
  .call-card__number--large { font-size: 30px; }
  .btn--block { font-size: 16px; }
}

.header-call,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-width: 44px;
  min-height: 44px;
  color: var(--c-pine);
}
.menu-toggle {
  padding: 0 var(--sp-2);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle__icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close { display: block; }

/* モバイルのナビパネル */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--sp-2) max(var(--gutter), env(safe-area-inset-right)) calc(var(--sp-6) + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}
.site-nav[data-open="true"] { display: block; }
.no-js .site-nav { position: static; display: block; }
.no-js .menu-toggle { display: none; }

.site-nav__links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: 18px;
  text-decoration: none;
}
.site-nav__links a[aria-current="page"] { color: var(--c-pine); font-weight: 700; }

.site-nav__contact {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.header-phone { display: grid; line-height: 1.3; }
.header-phone__number {
  color: var(--c-pine);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.header-phone__hours { color: var(--c-ink-soft); font-size: 14px; }

@media (min-width: 1024px) {
  .header-call,
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
  }
  .site-nav__links ul { display: flex; gap: var(--sp-5); }
  .site-nav__links a {
    position: relative;
    min-height: 44px;
    border: 0;
    font-size: 16px;
  }
  .site-nav__links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--c-pine);
  }
  .site-nav__contact {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    margin: 0;
  }
  .header-phone { display: none; }
  .site-nav__contact .btn { min-height: 48px; padding-inline: var(--sp-5); font-size: 16px; }
}

@media (min-width: 1200px) {
  .header-phone { display: grid; text-align: right; }
}

/* ---------- 1 ヒーロー ---------- */
.hero__stage {
  position: relative;
}
/* 写真の下端を波形にして地へつなぐ */
.hero__stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32px;
  background: var(--c-paper);
  -webkit-mask: var(--wave-mask) center / 100% 100% no-repeat;
  mask: var(--wave-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 56% 30%;
}

/* 扉の形の短冊：ロゴと同じ形。縦書きの見出しを入れる */
/* 下端は写真の波形より下まで伸ばし、波と枠のあいだに写真がのぞかないようにする */
.hero__door {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--sp-6) * -1);
  z-index: var(--z-raised);
  padding: var(--sp-7) var(--sp-4) calc(var(--sp-5) + var(--sp-6));
  background: var(--c-paper);
  border-radius: var(--r-door);
}
.hero__sprig {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 60px;
  transform: translateX(-30%);
}
.hero__note { display: none; }
.hero__title {
  writing-mode: vertical-rl;
  color: var(--c-ink);
  font-size: var(--fs-hero);
  line-height: 1.7;
  text-wrap: nowrap;
  word-break: keep-all;
}

.hero__intro {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-7) var(--sp-4);
}
.hero__text { max-width: 36em; }
.hero__house { display: none; }
.hero__lead {
  color: var(--c-pine);
  font-family: var(--ff-display);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.6;
}

.call-card {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.call-card__label { font-size: var(--fs-small); font-weight: 700; }
.call-card__number {
  font-size: var(--fs-phone);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.call-card__number a { color: var(--c-pine); text-decoration: none; }
.call-card__number--large { font-size: var(--fs-phone-lg); }
.call-card__hours {
  margin-bottom: var(--sp-3);
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .hero__photo { aspect-ratio: 16 / 10; object-position: 50% 30%; }
  .hero__note {
    position: absolute;
    top: var(--sp-6);
    right: calc(var(--gutter) + var(--sp-6));
    z-index: var(--z-raised);
    display: block;
    padding: var(--sp-4) var(--sp-6);
    background: var(--c-white);
    border-radius: var(--r-lg);
    color: var(--c-pine);
    font-family: var(--ff-hand);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    transform: rotate(-4deg);
  }
  .hero__sparkle {
    position: absolute;
    top: -22px;
    right: -26px;
    width: 36px;
  }
  .hero__door {
    left: calc(var(--gutter) + var(--sp-5));
    padding: var(--sp-9) var(--sp-6) calc(var(--sp-7) + var(--sp-6));
  }
}

@media (min-width: 1024px) {
  .hero__photo {
    aspect-ratio: auto;
    height: clamp(560px, calc(100dvh - var(--header-h) - 40px), 860px);
  }
  /* 短冊と吹き出しは本文の左右端にそろえる */
  .hero__door {
    left: max(var(--gutter), calc((100% - var(--container)) / 2));
    padding: var(--sp-10) var(--sp-7) calc(var(--sp-8) + var(--sp-6));
  }
  .hero__note {
    top: var(--sp-7);
    right: max(calc(var(--gutter) + var(--sp-5)), calc((100% - var(--container)) / 2 + var(--sp-5)));
  }
  .hero__intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
    align-items: center;
    gap: var(--sp-8);
    padding-top: var(--sp-8);
  }
  .hero__house { display: block; width: 150px; }
}

/* 動きは一か所：見出しが静かに現れる */
@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: hero-title-in var(--dur-enter) ease-out var(--delay-enter) both;
  }
  @keyframes hero-title-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- 2 訪問介護とは ---------- */
.about {
  display: grid;
  gap: var(--sp-8);
}
.about__text {
  display: grid;
  gap: var(--sp-5);
  max-width: 36em;
}
.about__text .section-title { margin-bottom: var(--sp-2); }

.facts {
  display: grid;
  margin-block: var(--sp-3);
  border-top: 1px solid var(--c-line);
}
.facts__item {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}
.facts dt { color: var(--c-ink-soft); font-size: var(--fs-small); }
.facts dd { font-weight: 700; }

.deco--about { top: -48px; left: 0; }
.about__media {
  position: relative;
  padding-bottom: var(--sp-9);
}
.about__photo { object-fit: cover; }
.about__photo--main {
  width: 84%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
}
.about__photo--sub {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  border: 8px solid var(--c-paper);
  border-radius: var(--r-lg);
}

@media (min-width: 1024px) {
  .about {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--sp-9);
    align-items: center;
  }
}

/* ---------- 3 お手伝いできること ---------- */
.service {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.service__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.service__body {
  display: grid;
  gap: var(--sp-3);
  align-content: center;
}
.service__icon { width: 64px; }
.service__title {
  color: var(--c-pine);
  font-size: var(--fs-word);
  line-height: 1.3;
}
.service__sub {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.checklist {
  display: grid;
  gap: 0 var(--sp-6);
  margin-block: var(--sp-3);
  border-top: 1px solid var(--c-line);
}
.checklist li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-leaf);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .checklist { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .service {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-9);
    align-items: center;
  }
  .service--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .service--reverse .service__photo { order: 2; }
  .service .checklist { grid-template-columns: 1fr; }
}

/* ---------- 4 大切にしていること ---------- */
.values {
  display: grid;
  gap: var(--sp-7);
}
.values__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.values__list { margin-top: var(--sp-6); }
.value {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-areas: "icon word" "title title" "body body";
  align-items: center;
  column-gap: var(--sp-4);
  row-gap: var(--sp-3);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--c-line);
}
.value:first-child { border-top: 1px solid var(--c-line); }
.value__icon { grid-area: icon; width: 56px; }
.value__word {
  grid-area: word;
  color: var(--c-pine);
  font-family: var(--ff-display);
  font-size: var(--fs-word);
  font-weight: 700;
  line-height: 1.2;
}
.value__title { grid-area: title; font-size: var(--fs-h3); line-height: 1.6; }
.value > p:last-child { grid-area: body; }

@media (min-width: 1024px) {
  .values {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-8);
    align-items: start;
  }
  .values__media { align-self: stretch; }
  .values__photo { height: 100%; min-height: 560px; aspect-ratio: auto; }
  .value {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "icon word" "icon title" "icon body";
    align-items: start;
    column-gap: var(--sp-5);
  }
  .value__icon { width: 64px; }
  .value__word { font-size: 34px; }
}

/* ---------- 5 ご利用までの流れ ---------- */
.flow {
  display: grid;
  gap: 0;
}
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--sp-4);
  padding-bottom: var(--sp-6);
}
/* 番号どうしをつなぐ線 */
.flow__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--c-leaf);
}
.flow__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--c-pine);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-pine);
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
}
.flow__step:nth-child(1) .flow__num { background: var(--c-leaf-tint); }
.flow__step:nth-child(2) .flow__num { background: var(--c-yellow-tint); }
.flow__step:nth-child(3) .flow__num { background: var(--c-peach-tint); }
.flow__step:nth-child(4) .flow__num { background: var(--c-sky-tint); }
.flow__step:nth-child(5) .flow__num { background: var(--c-leaf-tint); }
.flow__title {
  font-size: var(--fs-h3);
  line-height: 1.5;
  padding-top: var(--sp-2);
}
.flow__step p { font-size: var(--fs-step); line-height: 1.8; }
.flow__note { margin-top: var(--sp-5); }

@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sp-5);
  }
  .flow__step {
    grid-template-columns: 1fr;
    align-content: start;
    row-gap: var(--sp-3);
    padding: 0;
  }
  .flow__step:not(:last-child)::before {
    left: 56px;
    right: calc(var(--sp-5) * -1);
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .flow__num { grid-row: auto; }
  .flow__title { padding-top: var(--sp-2); }
}

/* ---------- 6 ある一週間の例 ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: var(--fs-small);
  font-weight: 700;
}
.legend__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.legend__item::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: var(--r-sm);
}
.legend__item--body::before { background: var(--c-peach-tint); border: 2px solid var(--c-peach); }
.legend__item--life::before { background: var(--c-yellow-tint); border: 2px solid var(--c-yellow); }

.week {
  display: grid;
  gap: var(--sp-2);
}
.day {
  display: grid;
  grid-template-columns: 2.5em 1fr;
  align-items: center;
  gap: var(--sp-4);
  min-height: 72px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-white);
  border-radius: var(--r-md);
}
.day__name {
  color: var(--c-pine);
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.day__rest {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.day--off { background: transparent; border: 1px dashed var(--c-sage-line); }

.visit {
  display: grid;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  line-height: 1.5;
}
.visit--body { background: var(--c-peach-tint); color: var(--c-ink); border: 2px solid var(--c-peach); }
.visit--life { background: var(--c-yellow-tint); color: var(--c-ink); border: 2px solid var(--c-yellow); }
.visit__time {
  font-size: var(--fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.visit__what { font-size: var(--fs-small); }
.week + .note { margin-top: var(--sp-5); }

@media (min-width: 640px) {
  .section-head--row {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1024px) {
  .week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--sp-3);
  }
  .day {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: var(--sp-4);
    min-height: 190px;
    padding: var(--sp-5) var(--sp-3) var(--sp-3);
  }
  .day__rest { text-align: center; padding-top: var(--sp-4); }
  .visit { align-self: stretch; align-content: start; padding: var(--sp-3); }
}

/* ---------- 7 声 ---------- */
.voices {
  display: grid;
  gap: var(--sp-7);
}
.voices__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.voices__body { position: relative; display: grid; gap: var(--sp-6); }
.deco--voices { top: -40px; right: 0; }
.voice {
  position: relative;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: var(--c-white);
  border: 2px solid var(--c-leaf-tint);
  border-radius: var(--r-lg);
}
.voice__quote {
  font-family: var(--ff-hand);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.8;
}
.voice__who {
  margin-top: var(--sp-2);
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
}

@media (min-width: 1024px) {
  .voices {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--sp-8);
    align-items: center;
  }
  .voice__quote { font-size: 24px; }
}

/* ---------- 8 相談帯 ---------- */
.consult { padding-bottom: var(--sp-8); }
.consult__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 50%;
}
.consult__card {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  gap: var(--sp-6);
  margin-top: calc(var(--sp-8) * -1);
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-paper);
  border-radius: var(--r-lg);
}
.consult__text { display: grid; gap: var(--sp-4); }
.consult__actions { display: grid; gap: var(--sp-2); align-content: start; }

@media (min-width: 640px) {
  .consult__photo { aspect-ratio: 21 / 9; }
  .consult__card { padding: var(--sp-7); margin-top: calc(var(--sp-9) * -1); }
}

@media (min-width: 1024px) {
  .consult__card {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--sp-9);
    padding: var(--sp-8);
    margin-top: calc(var(--sp-10) * -1);
  }
}

/* ---------- 町並みのイラスト（フッターの上） ---------- */
.town-band {
  height: 150px;
  background: url("../img/illust/town.svg") center bottom / 100% 150px no-repeat;
}

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

/* 箇条書き・表・質問の改行を文節単位にし、1〜2文字だけの行を防ぐ */
:where(li, dd, summary, figcaption, caption, th, td) { text-wrap: pretty; }
/* 長音「ー」や小書きの仮名が行頭に来ないようにする */
:where(p, li, dd, summary, td) { line-break: strict; }
.facts dd,
.faq__item summary,
.price-table caption,
.album figcaption { word-break: auto-phrase; }

button.btn { border: 0; cursor: pointer; }

/* ページヘッダー帯：写真の下端を波形で地につなぎ、和紙色のカードを重ねる */
.page-head__stage { position: relative; }
.page-head__stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32px;
  background: var(--c-paper);
  -webkit-mask: var(--wave-mask) center / 100% 100% no-repeat;
  mask: var(--wave-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}
.page-head__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-head--service .page-head__photo { object-position: 40% 30%; }
.page-head--care .page-head__photo { object-position: 55% 35%; }
.page-head--company .page-head__photo { object-position: 50% 40%; }
.page-head--contact .page-head__photo { object-position: 50% 50%; }

.page-head__card {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  gap: var(--sp-3);
  max-width: 680px;
  margin-top: calc(var(--sp-2) * -5);
  padding: var(--sp-5);
  background: var(--c-paper);
  border-radius: var(--r-lg);
}
.page-head__title {
  color: var(--c-ink);
  font-size: var(--fs-h1);
  line-height: 1.3;
}
.page-head__lead {
  color: var(--c-pine);
  font-family: var(--ff-hand);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

/* パンくず */
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.crumb li { display: flex; align-items: center; gap: var(--sp-2); }
.crumb li + li::before { content: "〉"; color: var(--c-ink-soft); }
.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-pine);
}
.crumb [aria-current] { color: var(--c-ink); font-weight: 700; }

@media (min-width: 640px) {
  .page-head__photo { aspect-ratio: 16 / 7; }
  .page-head__card {
    margin-top: calc((var(--sp-7) + var(--sp-5)) * -1);
    padding: var(--sp-6) var(--sp-7);
  }
  .page-head__lead { font-size: 20px; }
  .page-head--company .page-head__card { margin-top: calc(var(--sp-6) * -1); }
}

@media (min-width: 1024px) {
  .page-head__photo {
    aspect-ratio: auto;
    height: clamp(300px, 32vw, 440px);
  }
  .page-head--service .page-head__photo { object-position: 42% 35%; }
  .page-head--care .page-head__photo { object-position: 55% 40%; }
  /* 3人の顔が縦に広がる写真のため、会社概要だけ 16:7 のまま見せる */
  .page-head--company .page-head__photo {
    height: auto;
    max-height: 640px;
    aspect-ratio: 16 / 7;
    object-position: 50% 30%;
  }
  .page-head--contact .page-head__photo { object-position: 50% 55%; }
}

/* ヘッダー帯の直後は、カードとの間を詰める */
.page-head + .section { padding-top: var(--sp-7); }
.section--intro { padding-bottom: 0; }
.section--flush-top { padding-top: 0; }

.page-intro {
  display: grid;
  gap: var(--sp-6);
}
.page-intro > p { max-width: 46em; }

/* ページ内ジャンプ */
.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-pine);
  border-radius: var(--r-pill);
  color: var(--c-pine);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.jump a:hover { background: var(--c-leaf-tint); }

/* アイコンつきの見出し */
.icon-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.icon-head img { flex: none; width: 56px; }
.section-head__icon { width: 64px; }
@media (max-width: 639px) {
  .section-head__icon + .section-title::before { content: none; }
}

/* サービスのくわしい説明 */
.service--detail { margin-top: 0; }
.service--detail .service__body { gap: var(--sp-4); }
.detail-groups {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
}
.detail-groups + .note { max-width: 46em; margin-top: var(--sp-5); }
.detail-group {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}
.detail-group h3 {
  color: var(--c-pine);
  font-size: var(--fs-h3);
  line-height: 1.5;
}
.detail-group .checklist { margin-block: 0; }

@media (min-width: 1024px) {
  .detail-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-7);
    margin-top: var(--sp-8);
  }
  .detail-groups .checklist { grid-template-columns: 1fr; }
}

/* 文章と写真の2カラム */
.split {
  display: grid;
  gap: var(--sp-7);
}
.split__text {
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}
.split__text .section-title { margin-bottom: var(--sp-2); }
.split__media { position: relative; }
.split__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.deco--split { top: -48px; right: 0; }

@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-9);
    align-items: center;
  }
  .split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--reverse .split__media { order: -1; }
}

/* 1列のチェックリスト・できないこと */
@media (min-width: 640px) {
  .checklist--single { grid-template-columns: 1fr; }
}
.checklist--no li::before {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: var(--c-peach);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22%3E%3Cpath d=%22M2 2l8 8M10 2l-8 8%22 stroke=%22black%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22%3E%3Cpath d=%22M2 2l8 8M10 2l-8 8%22 stroke=%22black%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(0);
}

/* できること・できないこと */
.cando {
  display: grid;
  gap: var(--sp-5);
}
.cando__card {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-white);
  border: 2px solid var(--c-leaf-tint);
  border-radius: var(--r-lg);
}
.cando__card--no { border-color: var(--c-peach-tint); }
.cando__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-h3);
  line-height: 1.4;
}
.cando__title img { flex: none; width: 40px; }
.cando .checklist { grid-template-columns: 1fr; }
.cando + .note { margin-top: var(--sp-5); }

@media (min-width: 1024px) {
  .cando { grid-template-columns: 1fr 1fr; }
  .cando__card { padding: var(--sp-6); }
}

/* 費用の目安 */
.cost {
  display: grid;
  gap: var(--sp-6);
  max-width: 920px;
  margin-inline: auto;
}
.price {
  display: grid;
  gap: var(--sp-4);
}
.price__item {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-5);
  background: var(--c-white);
  border-top: 8px solid var(--c-leaf-tint);
  border-radius: var(--r-lg);
  text-align: center;
}
.price__item:nth-child(2) { border-top-color: var(--c-yellow-tint); }
.price__item:nth-child(3) { border-top-color: var(--c-peach-tint); }
.price__word {
  color: var(--c-pine);
  font-family: var(--ff-display);
  font-size: var(--fs-word);
  font-weight: 700;
  line-height: 1.3;
}
.price__who { font-weight: 700; line-height: 1.6; }
.cost__notes { display: grid; gap: var(--sp-2); }

@media (min-width: 640px) {
  .price { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 表（費用・会社情報） */
.price-table,
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  line-height: 1.7;
}
.price-table caption {
  padding-bottom: var(--sp-3);
  text-wrap: balance;
  word-break: auto-phrase;
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
.price-table th,
.price-table td,
.info-table th,
.info-table td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.price-table tr:last-child > *,
.info-table tr:last-child > * { border-bottom: 0; }
.price-table thead th {
  background: var(--c-sage);
  color: var(--c-pine);
  font-size: var(--fs-small);
}
.price-table tbody th { color: var(--c-pine); }
.price-table .price-table__yen { font-weight: 700; font-variant-numeric: tabular-nums; }
.info-table th {
  width: 9em;
  background: var(--c-paper);
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  font-weight: 700;
}
.info-table td { font-weight: 500; }
@media (min-width: 640px) {
  .info-table th { white-space: nowrap; }
}

@media (max-width: 639px) {
  .info-table th,
  .info-table td { display: block; width: auto; }
  .info-table th { padding-block: var(--sp-3); border-bottom: 0; }

  .price-table thead { display: none; }
  .price-table tbody tr { display: grid; border-bottom: 1px solid var(--c-line); padding-block: var(--sp-2); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th,
  .price-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: var(--sp-1);
    border-bottom: 0;
  }
  .price-table tbody th { font-size: var(--fs-h3); }
  .price-table tbody td::before {
    content: attr(data-label);
    color: var(--c-ink-soft);
    font-size: var(--fs-small);
    font-weight: 500;
  }
}

/* 伺う地域 */
.area {
  display: grid;
  gap: var(--sp-6);
}
.area__text {
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}
.area__map {
  width: 100%;
  max-width: 360px;
  justify-self: center;
  background: var(--c-white);
  border-radius: var(--r-lg);
}
.area__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.area__house { display: none; margin-left: auto; }

@media (min-width: 1024px) {
  .area {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--sp-8);
    align-items: center;
  }
  .icon-head .area__house { display: block; width: 110px; }
}

/* 縦に並べる流れ（くわしい手順・緊急時） */
.flow--vertical {
  max-width: 820px;
  margin-inline: auto;
}
.flow--start { margin-inline: 0; }
/* 3ステップを横に並べる（緊急時） */
@media (min-width: 1024px) {
  .flow--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
  .flow--three .flow__step:not(:last-child)::before { right: calc(var(--sp-7) * -1); }
}
.flow--vertical .flow__step { padding-bottom: var(--sp-7); }
.flow--vertical .flow__step:last-child { padding-bottom: 0; }
.flow--vertical .flow__num { grid-row: span 3; }
.flow--vertical .flow__step > :not(.flow__num) { grid-column: 2; }
.flow--vertical .flow__step p { font-size: var(--fs-body); }
.flow--vertical .flow__step .flow__extra {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-white);
  border-radius: var(--r-sm);
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .flow--vertical { grid-template-columns: 1fr; gap: 0; }
  .flow--vertical .flow__step {
    grid-template-columns: 48px 1fr;
    column-gap: var(--sp-5);
    row-gap: var(--sp-1);
    padding-bottom: var(--sp-7);
  }
  .flow--vertical .flow__step:last-child { padding-bottom: 0; }
  .flow--vertical .flow__num { grid-row: span 3; }
  .flow--vertical .flow__step:not(:last-child)::before {
    left: 23px;
    right: auto;
    top: 48px;
    bottom: 0;
    width: 2px;
    height: auto;
  }
}

/* よくある質問 */
.faq {
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 1024px) {
  .faq { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--sp-4); }
}
.faq__item {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.faq__item summary {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 56px;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-leaf-tint);
  color: var(--c-pine);
  font-size: var(--fs-small);
}
.faq__item summary::after {
  content: "+";
  flex: none;
  margin-left: auto;
  color: var(--c-pine);
  font-size: var(--fs-h3);
  line-height: 1;
}
.faq__item[open] summary::after { content: "−"; }
@media (max-width: 639px) {
  .faq__item summary { padding-inline: var(--sp-4); font-size: 18px; }
  .faq__answer { padding: 0 var(--sp-4) var(--sp-5); }
}
.faq__answer {
  padding: 0 var(--sp-5) var(--sp-5) calc(var(--sp-5) + 32px + var(--sp-3));
}

/* ごあいさつ */
.greeting {
  display: grid;
  gap: var(--sp-7);
}
.greeting__media {
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
}
.portrait {
  display: grid;
  place-items: center;
  width: min(60%, 320px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-sage);
  border-radius: var(--r-door);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.greeting__body {
  display: grid;
  gap: var(--sp-5);
  max-width: 40em;
}
.greeting__sign {
  margin-top: var(--sp-3);
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.8;
}
.greeting__name {
  display: block;
  color: var(--c-pine);
  font-family: var(--ff-hand);
  font-size: var(--fs-h3);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .greeting {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--sp-9);
    align-items: start;
  }
  .portrait { width: min(100%, 320px); }
}

/* 事業所の歩み */
.history { border-top: 1px solid var(--c-line); }
.history__item {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}
.history__date {
  color: var(--c-pine);
  font-family: var(--ff-display);
  font-weight: 700;
}
.history + .note { margin-top: var(--sp-5); }
.section-head__house { display: none; }

@media (min-width: 1024px) {
  .section-head__house { display: block; width: 220px; }
  .section-head--row .section-head__house--sm { width: 160px; }
}

/* アクセス */
.access {
  display: grid;
  gap: var(--sp-6);
}
.access__text {
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}
.map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 640px) {
  .map { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .access {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-8);
  }
}

/* お問い合わせ：お電話 */
.contact-call {
  max-width: 720px;
  margin-inline: auto;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
}
.contact-call__icon { width: 64px; }
.contact-call__title {
  color: var(--c-pine);
  font-size: var(--fs-h2);
  line-height: 1.4;
}
.contact-call .call-card__hours { margin-bottom: 0; }
.contact-call__text { max-width: 32em; }
.contact-call__sub {
  justify-self: stretch;
  margin-top: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  text-align: left;
}
.contact-call__sub h3 {
  color: var(--c-pine);
  font-size: var(--fs-h3);
  line-height: 1.5;
}
.contact-call__sub .checklist { margin-bottom: 0; }

@media (max-width: 639px) {
  .contact-call__number { justify-self: stretch; }
  .contact-call__number a {
    display: block;
    padding: var(--sp-3);
    background: var(--c-leaf-tint);
    border-radius: var(--r-md);
  }
}
@media (min-width: 640px) {
  .contact-call { padding: var(--sp-7); }
}

/* フォーム */
.form-intro {
  display: grid;
  gap: var(--sp-4);
  max-width: 680px;
  margin: 0 auto var(--sp-6);
}
.form__note {
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-sun);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  line-height: 1.8;
}
.form {
  display: grid;
  gap: var(--sp-6);
  max-width: 680px;
  margin-inline: auto;
}
.field {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field legend { padding: 0; margin-bottom: var(--sp-2); }
.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  line-height: 1.6;
}
.req,
.opt {
  padding: 0 var(--sp-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.req { background: var(--c-peach-tint); color: var(--c-mikan-hover); }
.opt { background: var(--c-sage); color: var(--c-pine); }
.field__help {
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.field input:not([type="radio"], [type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-white);
  border: 2px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font: inherit;
  line-height: 1.6;
}
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--c-pine); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--c-mikan); }
.field input[type="radio"],
.field input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--c-pine);
}
.radio-list {
  display: grid;
  gap: var(--sp-2);
}
.radio-list label,
.field--check label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  cursor: pointer;
}
.field--check label { align-items: flex-start; padding-top: var(--sp-2); font-weight: 700; }
.field--check input[type="checkbox"] { margin-top: var(--sp-1); }
.field__error { display: none; color: var(--c-mikan-hover); font-weight: 700; }
.field--error .field__error { display: block; }
.form__status:empty { display: none; }

@media (min-width: 640px) {
  .radio-list { display: flex; flex-wrap: wrap; column-gap: var(--sp-5); row-gap: 0; }
}

/* お問い合わせ：末尾 */
.contact-foot {
  display: grid;
  gap: var(--sp-7);
}
.contact-foot__block {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}
.contact-foot__title {
  color: var(--c-pine);
  font-size: var(--fs-h3);
  line-height: 1.5;
}
.contact-foot .checklist { margin-block: 0; }

@media (min-width: 1024px) {
  .contact-foot { grid-template-columns: 1fr 1fr; gap: var(--sp-9); }
  .contact-foot__title { font-size: 28px; }
}

/* トップ：ある日の訪問から */
.album {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
}
.album__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.album figcaption {
  margin-top: var(--sp-2);
  color: var(--c-pine);
  font-family: var(--ff-hand);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.6;
}
.album + .note { margin-top: var(--sp-5); text-align: center; }

@media (min-width: 1024px) {
  .album {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5);
  }
  .album li:nth-child(odd) figure { transform: rotate(-1.5deg); }
  .album li:nth-child(even) figure { transform: rotate(1deg); }
}

/* ---------- フッター ---------- */
.site-footer {
  --focus-color: var(--c-paper);
  padding-block: var(--sp-6) calc(var(--sp-6) + env(safe-area-inset-bottom));
  background: var(--c-pine-deep);
  color: var(--c-paper);
}
.site-footer a { color: var(--c-paper); }
.site-footer__inner {
  display: grid;
  gap: var(--sp-7);
}
.site-footer__info { display: grid; gap: var(--sp-4); }
.brand--inverse { color: var(--c-paper); margin-right: 0; justify-self: start; }
.brand--inverse .brand__kind { color: var(--c-light); }
.site-footer__tagline { font-family: var(--ff-hand); font-size: 18px; font-weight: 600; }
.site-footer__address {
  display: grid;
  gap: var(--sp-1);
  font-size: var(--fs-small);
  font-style: normal;
  line-height: 1.8;
}
.site-footer__address span { text-wrap: pretty; }
.site-footer__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copy {
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(253 251 247 / 0.2);
  font-size: 14px;
}

@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr auto; }
  .site-footer__nav ul { display: grid; grid-template-columns: repeat(2, auto); column-gap: var(--sp-7); }
  .site-footer__copy { grid-column: 1 / -1; }
}

/* ---------- デモサンプル表記（YGDRASIL 制作サンプル共通） ---------- */
.demo-bar {
  background: var(--c-sage);
  border-bottom: 1px solid var(--c-sage-line);
  color: var(--c-ink-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.demo-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px var(--sp-4);
  max-width: calc(1360px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 6px max(var(--gutter), env(safe-area-inset-right)) 6px max(var(--gutter), env(safe-area-inset-left));
  text-align: center;
}
.demo-bar__link {
  font-weight: 700;
  white-space: nowrap;
  text-underline-offset: 0.25em;
}
/* スマホはリンクを文末に続けて、帯を低く保つ */
@media (max-width: 639px) {
  .demo-bar__inner { display: block; padding-block: 5px; text-align: left; }
  .demo-bar__link { margin-left: var(--sp-2); }
}
@media (min-width: 640px) {
  .demo-bar { font-size: 13px; }
}

.price-table__demo {
  display: inline-block;
  margin-left: var(--sp-2);
  padding: 0 var(--sp-2);
  border: 1px solid var(--c-sage-line);
  border-radius: var(--r-pill);
  color: var(--c-ink-soft);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: middle;
}

.site-footer__copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
}
.site-footer__demo { display: inline-flex; flex-wrap: wrap; gap: 0 var(--sp-3); }
.site-footer__demo a { white-space: nowrap; }
