/* ============================================================
   Page-specific styles
   ============================================================ */

/* Top page : worry list ------------------------------------- */
.worry-grid {
  display: grid;
  gap: 1.25rem 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .worry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .worry-grid { grid-template-columns: repeat(3, 1fr); } }

/* About : philosophy quote ---------------------------------- */
.philosophy {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--color-line-soft);
  text-align: center;
  position: relative;
  margin: 0 auto;
}
.philosophy::before {
  content: "“";
  position: absolute;
  top: -0.1em; left: 0.4em;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-accent-50);
  line-height: 1;
}
.philosophy__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.5;
  margin-bottom: 1rem;
  position: relative;
}
.philosophy__sub {
  color: var(--color-ink-soft);
  position: relative;
}

/* Work page detail ------------------------------------------ */
.work-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .work-detail { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: center; }
}
.work-detail--reverse > :first-child { order: 2; }
@media (min-width: 880px) {
  .work-detail--reverse > :first-child { order: 0; }
}
.work-detail__title {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  margin-bottom: 0.75rem;
}
.work-detail__lead {
  color: var(--color-warm-d);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.work-detail__desc { margin-bottom: 1rem; }
.work-detail__meta dl {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}
.work-detail__meta dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: var(--fs-sm);
}
@media (max-width: 520px) {
  .work-detail__meta dl > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
.work-detail__meta dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent-d);
}
.work-detail__meta dd { margin: 0; color: var(--color-ink); }

.work-list {
  display: grid;
  gap: 3.5rem;
}

/* Guide : check list ---------------------------------------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Family : info table --------------------------------------- */
.info-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .info-cards { grid-template-columns: 1fr 1fr; } }
.info-card {
  background: #fff;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}
.info-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--color-warm-d);
}
.info-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  margin: 0.4em 0 0.6em;
}
.info-card__body {
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  margin: 0;
}

/* Contact form layout --------------------------------------- */
.contact-frame {
  background: #fff;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.contact-options {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 720px) { .contact-options { grid-template-columns: repeat(2, 1fr); } }
.contact-option {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--color-line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-option h3 {
  font-size: var(--fs-md);
  margin: 0;
}
.contact-option p {
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  margin: 0 0 0.25rem;
}
.contact-option .btn { margin-top: auto; }

/* Access info ----------------------------------------------- */
.access-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .access-grid { grid-template-columns: 1.1fr 1fr; } }

/* 404 page --------------------------------------------------- */
.error-hero {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}
.error-hero__num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--color-accent-d);
  line-height: 1;
  margin-bottom: 1rem;
}

/* =============================================================
   2026-11 改修: 立場別の入口・締めの案内・写真の注記 ほか
   ============================================================= */

/* 立場別の入口（ヒーローのすぐ下） ---------------------------- */
.audience-entry {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--color-bg);
  border-top: 1px solid var(--color-line-soft);
}
.audience-entry__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  font-size: clamp(1.3rem, 3.2vw, 1.6rem);
  margin-bottom: 1.25rem;
}
.audience-entry__title small {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-ink-soft);
  letter-spacing: 0.02em;
}
.audience-entry__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .audience-entry__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .audience-entry__list { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.aud-card {
  --aud: var(--color-accent-d);
  --aud-bg: var(--color-bg-cool);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.35rem;
  height: 100%;
  padding: 1.1rem 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background: var(--color-card);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform var(--duration-1) var(--ease), box-shadow var(--duration-1) var(--ease), border-color var(--duration-1) var(--ease);
}
.aud-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
}
.aud-card--family { --aud: var(--color-warm-d); }
.aud-card--prof   { --aud: #4A6A77; }
.aud-card--biz    { --aud: var(--color-brown); }
.aud-card__who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--aud);
  letter-spacing: 0.02em;
}
.aud-card__who::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--aud);
  flex-shrink: 0;
}
.aud-card:hover { border-color: var(--aud); }
.aud-card__text {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-ink-soft);
}
.aud-card__go {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--color-line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-ink);
}
.aud-card__go::after {
  content: "";
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--aud) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* 締めの案内（共通部品） ------------------------------------- */
.cta-block .u-eyebrow { margin-bottom: 0.5rem; }
.cta-block__title { font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.5; }
.cta-block__lead { max-width: 38em; margin-inline: auto; }
.cta-block__links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}
.cta-block__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.cta-block__hours {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
}

/* 作業カードの「詳しく」 */
.work-card__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: var(--fs-sm);
}

/* 上へ戻るボタンは、下部固定バーのある幅では出さない */
@media (max-width: 1023px) { .back-top { display: none; } }

/* お知らせが無い時 */
.news-card--empty { display: block; color: var(--color-ink-soft); }

/* 写真はすべて AI で作ったイメージ。写真の入れ物の隅に小さく添える */
.section-photo, .story__media, .family-letter__visual, .mosaic-rich, .mosaic { position: relative; }
.section-photo::after,
.story__media::after,
.family-letter__visual > img + .chip-row::before,
.mosaic-rich::after,
.mosaic::after,
.persona-gateway__cover::before,
.family-hero-quote__visual::before {
  content: "写真はイメージです";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(44, 42, 38, 0.62);
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.persona-gateway__cover::before { bottom: auto; top: 10px; }
.family-letter__visual > img + .chip-row::before { display: none; }
.family-letter__visual .img-note { text-align: right; }

/* 締めの4枚カード: 見学の申し込みを主にする */
.final-cta-card__icon svg { width: 20px; height: 20px; }
.final-cta-card--primary {
  background: var(--color-warm-d);
  border-color: var(--color-warm-d);
  color: #fff;
}
.final-cta-card--primary:hover { color: #fff; background: #B8642F; }
.final-cta-card--primary .final-cta-card__icon { background: #fff; color: var(--color-warm-d); }
.final-cta-card--primary .final-cta-card__sub { color: rgba(255, 255, 255, 0.92); }
.final-cta-card__sub { font-size: 0.85rem; }
.story__media::after { bottom: auto; top: 10px; }

/* 写真と文の組の見出しを、本文と釣り合う大きさに */
.story__copy h2 { font-size: clamp(1.4rem, 2.7vw, 1.95rem); line-height: 1.5; }

/* トップの作業内容: 写真と名前の小さな札（スマホは横に流す・パソコンは5列×2段） */
.work-rail { grid-auto-columns: minmax(62%, 1fr); gap: 0.85rem; padding-bottom: 1rem; }
@media (min-width: 640px) {
  .work-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
@media (min-width: 1024px) {
  .work-rail { grid-template-columns: repeat(5, 1fr); }
}
.work-tile { min-width: 0; }
.work-tile__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-2) var(--ease), box-shadow var(--duration-2) var(--ease);
}
.work-tile__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); color: var(--color-ink); }
.work-tile__link img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; border-radius: 0; }
.work-tile__body { display: grid; gap: 0.3rem; padding: 0.85rem 1rem 1rem; }
.work-tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.work-tile__title::after { content: "›"; color: var(--color-accent-d); font-size: 1.3em; line-height: 1; }
.work-tile__lead { font-size: 0.88rem; line-height: 1.65; color: var(--color-ink-soft); }

/* 数字の帯: スマホでも2列にして縦に長くしない */
.proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .proof-strip { grid-template-columns: repeat(3, 1fr); } }
.proof-cell { background: var(--color-card); }
@media (max-width: 599px) {
  .proof-cell { padding: 1rem 0.9rem 1.1rem; gap: 0.3rem; }
  .proof-cell__num { font-size: 1.75rem; }
  .proof-cell__label { font-size: 0.95rem; line-height: 1.45; }
  .proof-cell__meaning { font-size: 0.85rem; line-height: 1.6; }
  .proof-cell__meaning br { display: none; }
}

/* 手続きの段: 左の字下げをなくす */
.direct-band__steps { padding-left: 0; margin: 0; }

/* 押す所を 44px 以上に（表や情報欄の中のリンク） */
.site-logo { min-height: 44px; }
.prof-table a, .dl-info a[href^="tel:"], .footer-info a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* トップのお知らせ（1行の帯） */
.news-inline {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-card);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius);
}
@media (min-width: 720px) { .news-inline { grid-template-columns: auto 1fr auto; } }
.news-inline__title { font-size: 1rem; margin: 0; color: var(--color-accent-d); }
.news-inline .news-list { margin: 0; padding: 0; list-style: none; }
.news-inline .news-card { padding: 0; border: 0; background: none; box-shadow: none; }
.news-inline .news-card p { margin: 0; font-size: var(--fs-sm); color: var(--color-ink-soft); }
.news-inline__more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }

/* 下層ページの見出し帯: ボタンの並びと受付時間 */
.page-hero__actions { margin-top: 1.5rem; }
.page-hero__hours {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
}
@media (max-width: 640px) {
  .page-hero__actions .btn[href^="tel:"] { display: none; }
  .page-hero { padding-block: 2rem 2.5rem; }
}

/* 線だけのボタンは、細く柔らかい線に */
.btn--ghost { border-width: 1.5px; border-color: var(--color-ink-soft); }

/* 1日の流れ: 時刻と見出しを1行に並べ、縦に長くしない */
.timeline { gap: 1rem; }
.timeline__item {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  column-gap: 0.5rem;
  align-items: baseline;
}
.timeline__time { grid-column: 1; margin: 0; }
.timeline__title { grid-column: 2; margin: 0 0 0.15em; font-size: 1.05rem; }
.timeline__desc { grid-column: 2; }

/* 写真の寄せ集め（トップ）: 8枚で欠けが出ないよう3段に詰める */
@media (min-width: 720px) {
  .mosaic-rich { grid-auto-rows: 150px; }
  .mosaic-rich > :nth-child(6) { grid-column: span 4; grid-row: span 1; }
}
.mosaic-rich img, .mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) {
  .mosaic-rich img, .mosaic img { aspect-ratio: 4 / 3; height: auto; }
}

/* 支援者向けの表（スマホ）: 見出しを左の細い列にして縦に長くしない */
@media (max-width: 720px) {
  .prof-table tr { display: grid; grid-template-columns: 6.5em 1fr; }
  .prof-table th, .prof-table td { width: auto; }
  .prof-table th { padding: 0.75rem 0.6rem 0.75rem 0.85rem; font-size: 0.85rem; line-height: 1.5; }
  .prof-table td { padding: 0.75rem 0.85rem 0.75rem 0.6rem; }
}

/* 大切にしていること（スマホ）: 番号と英字の札を1行にまとめる */
@media (max-width: 719px) {
  .value-quote { gap: 0.4rem; }
  .value-quote > div:first-child { display: flex; align-items: baseline; gap: 0.75rem; }
  .value-quote__num { font-size: 1.6rem; margin: 0; order: -1; }
  .value-quote__body { font-size: 1rem; line-height: 1.85; }
}

/* ご家族・支援者ページのページ内ナビ（ヘッダーの高さに合わせる） */
.in-page-nav { top: 68px; }
.in-page-nav a { min-height: 44px; border-color: var(--color-line); background: var(--color-card); color: var(--color-ink); }
.in-page-nav ~ section[id] { scroll-margin-top: 136px; }

/* 押す所を 44px 以上に（パンくず・質問の絞り込み・作業へのとび先） */
.breadcrumb { padding: 0.15rem 0; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb [aria-current="page"] { display: inline-flex; align-items: center; min-height: 44px; }
.faq-tabs button { min-height: 44px; }
.chip-row--links li { padding: 0; }
.chip-row--links li::before { display: none; }
.chip-row--links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 0 1em;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.chip-row--links a:hover { color: var(--color-accent-d); }

/* 見出しと説明の横並び: 見出しの列を広げて「って、」で割れないように */
@media (min-width: 880px) {
  .section-split-head { grid-template-columns: 1.65fr 1fr; }
  .section-split-head h2 { font-size: 2rem; }
}

/* 事業所概要の表（スマホ）: 行の余白を詰める */
@media (max-width: 719px) {
  .dl-info > div { padding: 0.7rem 0; gap: 0.1rem; }
  .dl-info dt { font-size: 0.9rem; }
}

/* 質問の見出しも文節で折り返す */
.faq-item summary, .faq-mini summary { word-break: auto-phrase; line-height: 1.6; }
@media (max-width: 599px) {
  .faq-item summary { font-size: 1.02rem; padding: 0.95rem 1rem; gap: 0.7rem; }
}

/* 1行の長さ: 本文の段落は 36字前後で折り返す */
.container-narrow > p:not([class]),
.honest p,
.contact-frame .section-head p { max-width: 36em; }
.section-head__lead, .page-hero__lead { max-width: 36em; }

/* 利用までの流れ: 番号の重複（1. 2.）を出さない・注記を文節で */
.journey, .flow-steps, .timeline { list-style: none; padding-left: 0; }
.journey-stop__hint, .journey-stop__body { word-break: auto-phrase; }

/* 作業の札の名前も文節で折り返す */
.work-tile__title, .aud-card__who, .final-cta-card__label { word-break: auto-phrase; }

/* グループホームへの案内: ボタンを1行のまま */
.gh-inline .btn { flex-shrink: 0; white-space: nowrap; }

/* アクセスの小さな札（電車・車・家）: 2文字でもはみ出さない */
.route__icon { width: auto; min-width: 36px; padding: 0 0.55em; border-radius: 999px; }

/* スマホでは1行ずつの短い札にする（4枚で画面を埋めない） */
@media (max-width: 639px) {
  .audience-entry .aud-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    padding: 0.85rem 1rem;
    align-items: center;
  }
  .audience-entry .aud-card__who { grid-column: 1; font-size: 1.05rem; }
  .audience-entry .aud-card__text { grid-column: 1; font-size: 0.9rem; line-height: 1.6; }
  .audience-entry .aud-card__go {
    grid-column: 2; grid-row: 1 / span 2;
    margin: 0; padding: 0; border: 0;
    font-size: 0;
  }
}

.breadcrumb a { min-width: 44px; justify-content: center; }
.note a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
/* ボタンの文字も文節で折り返す */
.btn, button, .chip-row li, .persona-gateway__lead { word-break: auto-phrase; }
.dl-info small a { display: inline-flex; align-items: center; min-height: 44px; }
/* 強調の語を途中で割らない */
.family-hero-quote h2 em, .persona-card__title em, .value-quote__title em { display: inline-block; }
@media (min-width: 1100px) and (max-width: 1399px) {
  .aud-card { padding-inline: 1rem; }
  .aud-card__who { font-size: 1rem; gap: 0.4rem; }
}

/* 利用までの流れ（スマホ）: 番号を左に小さく置き、縦に長くしない */
@media (max-width: 879px) {
  .journey { gap: 0.9rem; padding: 0; }
  .journey-stop {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 0.9rem;
    text-align: left;
    padding: 0;
    align-items: start;
  }
  .journey-stop__pin { grid-row: 1 / span 3; width: 52px; height: 52px; margin: 0; font-size: 1.05rem; border-width: 3px; }
  .journey-stop__pin::before { display: none; }
  .journey-stop__title { margin: 0.2rem 0 0.15rem; }
  .journey-stop__body { margin: 0 0 0.35rem; }
  .journey-stop__hint { justify-self: start; }
}
.page-hero__hours, .cta-block__hours, .mobile-drawer__hours, .hero-album__sub, .utility-bar, .note, .chip-row li, .img-note { word-break: auto-phrase; }

/* =============================================================
   トップのヒーロー（2026-11-20 作り直し）
   中央の見出しの周りに、作業の写真を丸や角丸で散らしたアルバム。
   - 1200px 以上: 見出しの塊（stage）の外側に、写真を絶対配置で散らす（見出しの文字に重ねない）
   - 640〜1199px: 見出しの上に3枚、下に4枚を並べる
   - 639px 以下: 見出しの上に小さな丸を3枚、下に横に流せる写真の帯
   動きは「写真がふわっと順に現れる」の1つだけ。動きを減らす設定では最初から見える
   ============================================================= */
.hero-album {
  --hf: clamp(1.85rem, 8.4vw, 3.15rem);   /* 見出しの文字の大きさ */
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0 1.25rem;
  background:
    radial-gradient(42% 46% at 6% 22%, rgba(107, 163, 104, 0.13) 0%, transparent 72%),
    radial-gradient(40% 48% at 96% 78%, rgba(224, 138, 75, 0.12) 0%, transparent 72%),
    var(--color-bg);
}
.hero-album__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.hero-album__copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-album__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.1em;
  margin: 0 0 0.9rem;
  padding: 0.35em 1.05em;
  border-radius: var(--radius-pill);
  background: rgba(219, 232, 214, 0.75);
  color: var(--color-accent-d);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  line-height: 1.55;
}
.hero-album__title {
  font-size: var(--hf);
  line-height: 1.34;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
  text-wrap: initial;
}
.hero-album__title .accent {
  position: relative;
  display: inline-block;
  color: var(--color-accent-d);
  z-index: 0;
}
.hero-album__title .accent::after {
  content: "";
  position: absolute;
  inset: auto -0.05em 0.05em -0.05em;
  height: 0.3em;
  background: linear-gradient(90deg, var(--color-accent-50), rgba(219, 232, 214, 0.2));
  z-index: -1;
  border-radius: 4px;
}
.hero-album__lead {
  font-size: var(--fs-md);
  color: var(--color-ink-soft);
  margin: 0 0 1.4rem;
  line-height: 1.8;
  max-width: 33em;
  text-wrap: pretty;
}
.hero-album__lead strong { color: var(--color-ink); }
.hero-album__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero-album__actions .btn--lg { min-height: 60px; font-size: 1.15rem; }
.hero-album__tel { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.hero-album__sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  margin: 1rem 0 0;
  line-height: 1.7;
}
@media (min-width: 1300px) { .hero-album__sub .status-pill { display: none; } }
.hero-album__note {
  margin: 0;
  padding: 0.6rem var(--container-pad) 0;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
  text-align: right;
  letter-spacing: 0.04em;
}

/* 写真1枚: 枠（丸・角丸）＋名前 */
.ha-photo {
  --r: 0deg;
  position: relative;
  margin: 0;
  rotate: var(--r);
}
.ha-photo__frame {
  display: block;
  aspect-ratio: 1;
  padding: 5px;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ha-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.ha-photo--circle .ha-photo__frame { border-radius: 50%; }
.ha-photo--circle .ha-photo__frame img { border-radius: 50%; }
.ha-photo--card .ha-photo__frame { border-radius: 26px; }
.ha-photo--card .ha-photo__frame img { border-radius: 21px; }
.ha-photo__cap {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--color-ink-soft);
  text-align: center;
  letter-spacing: 0.02em;
  word-break: auto-phrase;
  text-wrap: balance;
}
/* 写真の上に貼った小さな札（いまある2つの言葉） */
.ha-sticker {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.9em;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--color-ink);
  white-space: nowrap;
}
.ha-sticker::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.ha-p7 .ha-sticker::before { background: var(--color-warm); }

/* 写真の写る位置（丸く切っても手元が真ん中に来るように） */
.ha-p1 img { object-position: 40% 50%; }
.ha-p2 img { object-position: 52% 45%; }
.ha-p3 img { object-position: 52% 55%; }
.ha-p4 img { object-position: 50% 60%; }
.ha-p5 img { object-position: 42% 55%; }
.ha-p6 img { object-position: 55% 55%; }
.ha-p7 img { object-position: 38% 45%; }

/* 現れる順番 */
.ha-p4 { --i: 0; } .ha-p3 { --i: 1; } .ha-p1 { --i: 2; } .ha-p2 { --i: 3; }
.ha-p6 { --i: 4; } .ha-p7 { --i: 5; } .ha-p5 { --i: 6; }
@media (prefers-reduced-motion: no-preference) {
  .ha-photo {
    animation: ha-in 900ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 110ms + 120ms);
  }
}
/* 置き場所のずらし（translate）と傾き（rotate）を消さないよう、動きは transform で付ける */
@keyframes ha-in {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

/* ---- 639px 以下（スマホ） ---- */
@media (max-width: 639px) {
  .hero-album__photos--a {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.25rem 0 0.6rem;
  }
  .hero-album__photos--a .ha-photo__cap,
  .hero-album__photos--a .ha-sticker { display: none; }
  .hero-album__photos--a .ha-photo__frame { padding: 3px; border-radius: 50%; }
  .hero-album__photos--a .ha-photo__frame img { border-radius: 50%; }
  .hero-album__photos--a .ha-p1 { width: 74px; order: 1; translate: 0 8px; --r: -5deg; margin-right: -8px; }
  .hero-album__photos--a .ha-p3 { width: 92px; order: 2; z-index: 1; }
  .hero-album__photos--a .ha-p2 { width: 66px; order: 3; translate: 0 -6px; --r: 6deg; margin-left: -8px; }
  .ha-p1 { --i: 0; } .ha-p3 { --i: 1; } .ha-p2 { --i: 2; }
  .ha-p4 { --i: 3; } .ha-p5 { --i: 4; } .ha-p6 { --i: 5; } .ha-p7 { --i: 6; }

  .hero-album__lead { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1.15rem; }
  .hero-album__actions { width: 100%; }
  .hero-album__actions .btn { width: 100%; }
  .hero-album__tel { display: none; }

  /* 横に流せる写真の帯（画面の端から端まで） */
  .hero-album__photos--b {
    align-self: stretch;
    display: flex;
    gap: 14px;
    margin: 1.4rem calc(-1 * var(--container-pad)) 0;
    padding: 14px var(--container-pad) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-pad);
    scrollbar-width: none;
  }
  .hero-album__photos--b::-webkit-scrollbar { display: none; }
  .hero-album__photos--b .ha-photo {
    flex: 0 0 auto;
    width: 42vw;
    max-width: 200px;
    scroll-snap-align: start;
  }
  .hero-album__photos--b .ha-photo--card { --r: -2deg; }
  .hero-album__photos--b .ha-p6 { --r: 2deg; }
  .hero-album__photos--b .ha-sticker { top: -6px; left: -2px; }
  .hero-album__photos--b::after { content: ""; flex: 0 0 1px; }
}
@media (max-width: 374px) {
  .hero-album__lead { font-size: 1rem; }
  .hero-album__photos--a .ha-p1 { width: 62px; }
  .hero-album__photos--a .ha-p3 { width: 78px; }
  .hero-album__photos--a .ha-p2 { width: 56px; }
}

/* ---- 640〜1199px（タブレット・小さいノート） ---- */
@media (min-width: 640px) and (max-width: 1199px) {
  .hero-album { --hf: clamp(2.3rem, 5.2vw, 3.15rem); padding: 1.5rem 0 1.5rem; }
  .hero-album__photos--a,
  .hero-album__photos--b {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(0.75rem, 2.4vw, 1.5rem);
  }
  .hero-album__photos--a { order: -1; align-items: center; margin-bottom: 1.25rem; }
  .hero-album__photos--a .ha-photo__cap,
  .hero-album__photos--a .ha-sticker { display: none; }
  .hero-album__photos--a .ha-p1 { width: clamp(96px, 14vw, 140px); order: 1; --r: -5deg; translate: 0 10px; }
  .hero-album__photos--a .ha-p3 { width: clamp(118px, 17vw, 170px); order: 2; }
  .hero-album__photos--a .ha-p2 { width: clamp(88px, 12.5vw, 128px); order: 3; --r: 6deg; translate: 0 -8px; }
  .hero-album__photos--b { margin-top: 2rem; }
  .hero-album__photos--b .ha-photo { width: clamp(118px, 18vw, 180px); }
  .hero-album__photos--b .ha-photo--card { --r: -3deg; }
  .hero-album__photos--b .ha-p6 { --r: 3deg; translate: 0 14px; }
  .hero-album__photos--b .ha-p4 { translate: 0 10px; }
  .hero-album__photos--b .ha-sticker { top: -8px; left: -6px; }
  .hero-album__photos--b .ha-p7 .ha-sticker { left: auto; right: -10px; }
}

/* ---- 1200px 以上（パソコン）: 見出しの塊の外側に散らす ---- */
@media (min-width: 1200px) {
  .hero-album {
    --hf: clamp(2.5rem, 3.75vw, 3.6rem);
    display: grid;
    align-content: center;
    min-height: max(700px, calc(100svh - 70px));
    padding: 9rem 0 9.5rem;
  }
  .hero-album__stage {
    width: min(calc(var(--hf) * 16.8), 100% - 4rem);
    max-width: none;
    padding: 0;
  }
  .hero-album__photos--a,
  .hero-album__photos--b { display: contents; }
  .ha-photo { position: absolute; z-index: 0; }
  .ha-photo__cap { display: none; }
  /* 角丸の2枚はアルバムの写真のように白い縁と名前を付ける */
  .ha-photo--card {
    padding: 8px 8px 0;
    background: var(--color-card);
    border-radius: 22px;
    box-shadow: var(--shadow-pop);
  }
  .ha-photo--card .ha-photo__frame { padding: 0; box-shadow: none; border-radius: 16px; }
  .ha-photo--card .ha-photo__frame img { border-radius: 16px; }
  .ha-photo--card .ha-photo__cap { display: block; margin: 0; padding: 0.5rem 0 0.6rem; color: var(--color-ink); white-space: nowrap; }
  /* マスキングテープ */
  .ha-photo--card::before {
    content: "";
    position: absolute;
    top: -11px; left: 50%;
    width: 74px; height: 22px;
    translate: -50% 0;
    rotate: -5deg;
    border-radius: 3px;
    background: rgba(242, 201, 76, 0.42);
    z-index: 1;
  }
  .ha-p5::before { background: rgba(183, 214, 224, 0.6); rotate: 4deg; }

  /* 見出しの塊の左右の余白（--g）に収まる大きさにする */
  .hero-album__stage { --g: calc((100vw - var(--hf) * 16.8) / 2); }
  /* 上の内側: 製菓（小さな丸）・製パン（角丸の写真） */
  .ha-p3 { width: calc(var(--hf) * 2.2); left: 5%; bottom: calc(100% + 1rem); --r: -4deg; }
  .ha-p1 { width: calc(var(--hf) * 2.75); right: 2%; bottom: calc(100% - 2.1rem); --r: 5deg; }
  /* 左: 外観（大きな丸）・レーザー加工（角丸の写真） */
  .ha-p4 { width: min(calc(var(--hf) * 4.3), calc(var(--g) - 2.5rem)); right: calc(100% + 1.25rem); top: 2%; }
  .ha-p4 .ha-sticker { right: -0.75rem; bottom: 4%; }
  .ha-p5 { width: min(calc(var(--hf) * 3.1), calc(var(--g) - 3.5rem)); right: calc(100% + var(--hf) * 0.9); top: 64%; --r: -6deg; }
  /* 右: 弁当（丸）・販売（大きな丸） */
  .ha-p2 { width: min(calc(var(--hf) * 3), calc(var(--g) - 3rem)); left: calc(100% + var(--hf) * 1.1); top: -4%; --r: 4deg; }
  .ha-p6 { width: min(calc(var(--hf) * 4.1), calc(var(--g) - 2.5rem)); left: calc(100% + 1.25rem); top: 44%; }
  /* 下の内側: 箱折（丸） */
  .ha-p7 { width: calc(var(--hf) * 2.3); right: 10%; top: calc(100% + 1.3rem); --r: 3deg; }
  .ha-p7 .ha-sticker { right: calc(100% - 0.75rem); top: 24%; }

  .hero-album__note {
    position: absolute;
    right: max(1.25rem, calc(50% - 46rem));
    bottom: 1rem;
    padding: 0;
  }
}
@media (min-width: 1300px) {
  .hero-album { min-height: max(720px, calc(100svh - 112px)); }
}
