/* ==========================================================
   結の樹天白 — トップページ
   ファーストビュー：若葉色の舞台に「写真の窓」、
   その前にイラストの人物が座っている構成。
   ========================================================== */

/* ---------- ファーストビュー ---------- */
.hero { padding: 12px 12px 0; }
.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 32px;
  background: var(--tint);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* スマホでは絵を先に見せる */
.hero__stage { order: -1; }

.hero__title {
  margin-top: 16px;
  font-size: clamp(24px, 6.5vw, 34px);
  line-height: 1.55;
  letter-spacing: 0.05em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__lead {
  margin-top: 16px;
  max-width: 30em;
  font-size: 16px;
  color: var(--ink);
}
.hero__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.hero__note { margin-top: 10px; font-size: 13px; color: var(--ink-sub); }

/* 舞台：窓＋人物 */
.hero__stage {
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 18%;
}
.hero__window {
  position: relative;
  width: 74%;
  margin-left: auto;
  aspect-ratio: 5 / 6;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  overflow: hidden;
  background: #DCE4D8;
  box-shadow: 0 0 0 8px var(--card);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide .photo-ph { padding-top: 30%; }

.hero__person { position: absolute; margin: 0; pointer-events: none; }
.hero__person--pair { left: -2%; bottom: 0; width: 66%; }
.hero__person--woman { display: none; }

.hero__balloon--pair {
  position: absolute;
  left: 38%;
  bottom: 52%;
  font-size: 14px;
  padding: 8px 14px;
}

/* ---------- 大切にしていること ---------- */
.values__list { display: grid; gap: 40px; }
.value__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: 50% 100%;
  padding: 20px 20px 0;
  border-radius: var(--radius-md);
  background: var(--tint);
}
.value__body { margin-top: 16px; }
.value__title { font-size: 20px; margin-bottom: 8px; }
.value__body p { color: var(--ink); }

/* ---------- 暮らしとお部屋 ---------- */
.life__facts {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.life__facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 4px;
  background: var(--card);
  border-radius: var(--radius-md);
  text-align: center;
}
.life__fact-num { font-family: var(--font-round); font-weight: 700; font-size: clamp(20px, 6vw, 34px); line-height: 1.3; color: var(--tree-dark); }
.life__fact-label { font-size: 13px; line-height: 1.5; }

.life__scenes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.life__scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 14px;
  background: var(--card);
  border-radius: var(--radius-md);
}
.life__scene img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.life__scene span { font-family: var(--font-round); font-weight: 700; font-size: 15px; }

/* ---------- 料金 ---------- */
.price__cards { display: grid; gap: 16px; }
.price-card {
  padding: 24px 20px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
.price-card__label { font-size: 16px; color: var(--ink-sub); font-family: var(--font-body); font-weight: 500; }
.price-card__amount { margin-top: 4px; font-size: 18px; font-weight: 500; }
.price-card__num { font-family: var(--font-round); font-weight: 700; font-size: clamp(36px, 10vw, 48px); letter-spacing: 0.02em; color: var(--ink); margin-right: 2px; }
.price-card__tax { display: block; font-size: 14px; color: var(--ink-sub); }
.price-card__detail { margin: 16px 0 0; border-top: 1px dashed var(--line); }
.price-card__detail div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.price-card__detail dt { color: var(--ink-sub); }
.price-card__detail dd { margin: 0; text-align: right; }
.price-card__detail small { display: block; color: var(--ink-sub); }
.price__note { margin-top: 20px; font-size: 14px; color: var(--ink-sub); max-width: 46em; }

/* ---------- 受け入れ体制 ---------- */
.support__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.support__list li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--card);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}
.support__list li::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 16px; height: 9px;
  border-left: 3px solid var(--tree);
  border-bottom: 3px solid var(--tree);
  transform: translateY(-70%) rotate(-45deg);
}
.support__list strong { font-weight: 500; color: var(--tree-dark); }
.support__subtitle { margin-top: 32px; font-size: 18px; }
.care-table { width: 100%; margin-top: 12px; border-collapse: collapse; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; }
.care-table th, .care-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; line-height: 1.5; }
.care-table th { font-weight: 400; }
.care-table td { text-align: right; white-space: nowrap; }
.care-table tr:last-child th, .care-table tr:last-child td { border-bottom: 0; }
.mark { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.mark--ok { background: var(--tree-pale); color: var(--tree-dark); }
.mark--ask { background: #F6E7D9; color: #7A4B22; }
.support__note { margin-top: 16px; font-size: 14px; color: var(--ink-sub); }
.support__illust { margin: 32px auto 0; max-width: 360px; }

/* ---------- ご入居までの流れ（順番がある内容なので番号を付ける） ---------- */
.flow__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.flow__step {
  position: relative;
  counter-increment: step;
  padding: 0 0 28px 64px;
}
.flow__step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tint);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 18px;
  color: var(--tree-dark);
}
.flow__step::after {
  content: "";
  position: absolute;
  left: 21px; top: 48px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.flow__step:last-child { padding-bottom: 0; }
.flow__step:last-child::after { display: none; }
.flow__title { font-size: 18px; line-height: 44px; }
.flow__step p { font-size: 15px; color: var(--ink-sub); }

/* ---------- 地域とメディアから ---------- */
.trust__cols { display: grid; gap: 32px; }
.trust__subtitle { font-size: 18px; margin-bottom: 12px; }
.trust__list { list-style: none; margin: 0; padding: 0; }
.trust__list li { display: grid; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.trust__list time { font-size: 13px; color: var(--ink-sub); }
.trust__media { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust__media li { padding: 6px 14px; background: var(--card); border-radius: 999px; font-size: 14px; line-height: 1.6; }

/* ---------- よくある質問 ---------- */
.faq__list { display: grid; gap: 10px; }
.faq__item { background: var(--card); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-family: var(--font-round);
  font-weight: 700;
  line-height: 1.6;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--tree);
  border-bottom: 2px solid var(--tree);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: 0 20px 20px; font-size: 16px; }

/* ---------- アクセス ---------- */
.access__inner { display: grid; gap: 24px; }
.access__dl { margin: 0; }
.access__dl div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.access__dl dt { color: var(--ink-sub); font-size: 15px; }
.access__dl dd { margin: 0; }
.access__note { margin-top: 16px; font-size: 15px; }
.access__map { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); }
.access__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 見学のご案内 ---------- */
.invite__inner {
  display: grid;
  gap: 8px;
  padding-top: 32px;
  background: var(--tint);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.invite__body { order: -1; padding: 0 20px; }
.invite__title { font-size: clamp(24px, 6.4vw, 36px); }
.invite__body > p { margin-top: 16px; }
.invite__actions { display: grid; gap: 10px; margin-top: 24px; }
.invite__sub { margin-top: 12px; }
.invite__guide { position: relative; margin: 16px 0 0; display: flex; justify-content: flex-end; padding-right: 8%; padding-bottom: 0; }
.invite__guide img { width: 46%; max-width: 260px; }
.invite__balloon { position: absolute; left: 8%; top: 18%; }
.invite__caption { position: absolute; right: 8%; bottom: 12px; padding: 2px 12px; background: var(--card); border-radius: 999px; font-size: 13px; }
.invite__balloon::after { left: auto; right: 24px; clip-path: polygon(0 0, 100% 0, 80% 100%); }

/* ---------- タブレット ---------- */
@media (min-width: 600px) {
  .hero__inner { padding: 40px 40px 40px; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__stage { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
  .values__list { grid-template-columns: 1fr 1fr; }
  .price__cards { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .trust__cols { grid-template-columns: 1fr 1fr; }
  .invite__actions { display: flex; flex-wrap: wrap; }
}

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  .hero { padding: 16px 24px 0; }
  .hero__title { font-size: clamp(36px, 3.3vw, 48px); margin-top: 24px; }
  .hero__inner {
    display: grid;
    grid-template-columns: 5fr 6fr;
    align-items: center;
    gap: 24px;
    min-height: min(calc(100svh - var(--header-h) - 16px), 820px);
    padding: 48px 56px 0 64px;
  }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__copy { padding-bottom: 56px; }
  .hero__stage {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    max-width: none;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    height: 100%;
    min-height: 600px;
  }
  .hero__window {
    position: absolute;
    right: 8%;
    bottom: 0;
    width: 64%;
    aspect-ratio: auto;
    height: 92%;
    border-radius: 999px 999px 0 0;
  }
  .hero__person--pair { left: 0; width: 58%; max-width: 420px; }
  .hero__person--woman { display: block; right: -2%; bottom: 0; width: 26%; max-width: 200px; }
  .hero__balloon--pair { left: 2%; bottom: 40%; font-size: 15px; }

  .values__list { grid-template-columns: repeat(3, 1fr); gap: 32px; }

  .life__scenes { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  .support__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
  .support__illust { margin: 0; max-width: none; }

  .flow__steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .flow__step { padding: 60px 0 0; }
  .flow__step::after { left: 52px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .flow__step:last-child { padding-top: 60px; }
  .flow__title { line-height: 1.5; margin-bottom: 8px; }

  .access__inner { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }

  .invite__inner {
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    padding: 56px 64px 0 0;
  }
  .invite__body { order: 0; padding: 0 0 56px; }
  .invite__guide { align-self: end; margin: 0; justify-content: center; padding-right: 0; }
  .invite__guide img { width: 70%; max-width: 280px; }
  .invite__balloon { left: auto; right: 4%; top: 10%; }
}
.trust__subtitle--sub { margin-top: 24px; font-size: 16px; }
.trust__note { margin-top: 10px; font-size: 13px; color: var(--ink-sub); }

/* ---------- 採用情報への導線 ---------- */
.recruit-band { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-lg); background: var(--tint); color: var(--ink); text-decoration: none; }
.recruit-band img { width: 96px; }
.recruit-band__body { display: grid; gap: 4px; }
.recruit-band__title { font-family: var(--font-round); font-weight: 700; font-size: 19px; }
.recruit-band__text { font-size: 15px; color: var(--ink-sub); }
.recruit-band__link { font-weight: 500; color: var(--tree-dark); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 600px) { .recruit-band { grid-template-columns: 140px 1fr; padding: 24px 40px; } .recruit-band img { width: 140px; } }

/* ---------- 空室表示（ファーストビュー） ---------- */
.vacancy {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 10px 20px 10px 10px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px var(--tree);
  color: var(--ink);
  text-decoration: none;
}
.vacancy:hover { background: var(--tree-pale); }
.vacancy__label {
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--tree);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}
.vacancy__count {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--tree-dark);
  white-space: nowrap;
}
.vacancy__num { margin-right: 2px; font-size: 52px; color: #B8492F; }
.vacancy__meta { display: grid; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-sub); }
.vacancy__cta { color: var(--tree-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.vacancy__cta::after { content: " →"; }

/* ---------- お知らせ（トップ） ---------- */
.news { padding: 32px 0 8px; }
.news__card {
  position: relative;
  padding: 24px 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 2px var(--tree-pale), 0 12px 32px rgba(47, 82, 64, 0.08);
}
.news__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.news__title { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 22px; }
.news__en { font-size: 13px; letter-spacing: 0.2em; color: var(--tree); }
.news__list { list-style: none; margin: 12px 0 0; padding: 0; }
.news__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.news__list li > :first-child { font-size: 13px; color: var(--ink-sub); letter-spacing: 0.06em; }
.news__list .news-tag { justify-self: start; }
.news__list a { grid-column: 1 / -1; color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.news__more { margin-top: 20px; text-align: center; }
.news__guide { display: none; }

/* トップのお知らせ：大切なお知らせ（一覧）と結の樹の日常（横にスクロールする写真カード） */
.news { position: relative; overflow: hidden; }
/* 背景の飾り：左上に葉っぱ、右下に水玉（読みやすさを優先して薄く） */
.news::before,
.news::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.news::before {
  top: 4px; left: max(0px, calc(50% - 640px));
  width: 150px; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 120'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M22 92C30 52 58 30 96 26C88 62 62 86 22 92Z' fill='%23E3EDE6'/%3E%3Cpath d='M22 92C46 70 66 52 96 26' stroke='%23C9DCCD' stroke-width='3'/%3E%3Cpath d='M98 98C104 76 120 64 142 62C136 82 122 96 98 98Z' fill='%23F2CFC6' opacity='.7'/%3E%3Ccircle cx='70' cy='104' r='5' fill='%23F6E7D9'/%3E%3Ccircle cx='120' cy='22' r='4' fill='%23E3EDE6'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}
.news::after {
  right: max(-20px, calc(50% - 680px)); bottom: -10px;
  width: 260px; height: 180px;
  background-image: radial-gradient(circle, #DCEAE0 0 6px, transparent 7px);
  background-size: 36px 36px;
  mask-image: linear-gradient(135deg, transparent 15%, #000 85%);
  -webkit-mask-image: linear-gradient(135deg, transparent 15%, #000 85%);
}
.news .container { position: relative; z-index: 1; }
.news__cols { display: grid; gap: 28px; margin-top: 16px; }
.news__sub {
  display: flex; align-items: center; gap: 8px;
  margin: 0; font-family: var(--font-round); font-size: 17px; color: var(--tree-dark);
}
.news__sub::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--tree); }
.news__sub-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.news__block .news__list { margin-top: 4px; }
.news-daily__hint { margin: 0; font-size: 13px; color: var(--ink-sub); }

.news-daily {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 264px); gap: 16px;
  list-style: none; margin: 14px 0 0; padding: 4px 4px 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  scrollbar-width: thin; scrollbar-color: var(--tree) var(--tree-pale);
}
.news-daily::-webkit-scrollbar { height: 8px; }
.news-daily::-webkit-scrollbar-track { background: var(--tree-pale); border-radius: 999px; }
.news-daily::-webkit-scrollbar-thumb { background: var(--tree); border-radius: 999px; }
.news-daily:focus-visible { outline: 3px solid var(--tree); outline-offset: 2px; border-radius: var(--radius-sm); }
.news-daily__item { scroll-snap-align: start; }
.news-daily__link { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.news-daily__thumb {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--tint);
}
.news-daily__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-daily__thumb--illust img { object-fit: contain; padding: 14px 14px 10px 38%; }
.news-daily__link:hover .news-daily__thumb img { transform: scale(1.04); }
.news-daily__date {
  position: absolute; top: 0; left: 10px;
  display: grid; justify-items: center; min-width: 76px; padding: 8px 10px 9px;
  border-radius: 0 0 12px 12px; background: var(--card);
  box-shadow: 0 4px 12px rgba(47, 82, 64, 0.12);
  font-family: var(--font-round); line-height: 1.2; color: var(--ink);
}
.news-daily__year { font-size: 12px; letter-spacing: 0.12em; }
.news-daily__md { font-size: 24px; font-weight: 700; color: var(--tree); letter-spacing: 0.02em; }
.news-daily__wd { font-size: 11px; color: var(--ink-sub); }
.news-daily__cat {
  justify-self: start; margin-top: 4px; padding: 0 12px; border-radius: 999px;
  background: var(--tree); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.9;
}
.news-daily__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-weight: 500; line-height: 1.6;
}
.news-daily__link:hover .news-daily__title { color: var(--tree-dark); text-decoration: underline; text-underline-offset: 4px; }
.news-daily__lead {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  padding-top: 8px; border-top: 1.5px solid var(--tree-pale);
  font-size: 14px; line-height: 1.75; color: var(--ink-sub);
}
@media (prefers-reduced-motion: reduce) {
  .news-daily__thumb img { transition: none; }
  .news-daily__link:hover .news-daily__thumb img { transform: none; }
}

/* 絞り込みボタンとラベル（トップ・お知らせページ共通） */
.news-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.news-filter__btn {
  min-height: 40px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px var(--tree-pale);
  color: var(--tree-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.news-filter__btn:hover { background: var(--tree-pale); }
.news-filter__btn[aria-pressed="true"] { background: var(--tree); box-shadow: none; color: #fff; }
.news-tag {
  display: inline-block;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tree-pale);
  color: var(--tree-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.9;
  white-space: nowrap;
}
.news-tag--related { background: #F6E7D9; color: #7A4B22; }

/* ---------- 医療との連携 ---------- */
.medical { display: grid; gap: 8px; margin: 12px 0 0; }
.medical__item { display: grid; gap: 4px; padding: 14px 16px; background: var(--card); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.medical dt { font-family: var(--font-round); font-weight: 700; font-size: 16px; color: var(--tree-dark); }
.medical dd { margin: 0; font-size: 15px; line-height: 1.7; }
.medical__clinics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.medical__clinics span { padding: 2px 12px; border-radius: 999px; background: var(--tree-pale); color: var(--tree-dark); font-weight: 500; }

/* ---------- 暮らしの場面（6枚） ---------- */
.life__scene--framed img { object-fit: cover; border-radius: var(--radius-sm); }

@media (min-width: 600px) {
  .news__card { padding: 32px 40px; }
  .news__list li { grid-template-columns: 6.5em 5.5em 1fr; gap: 16px; }
  .news__list .news-tag { justify-self: center; }
  .news__list a { grid-column: auto; }
  .life__scenes--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .news__card { padding: 36px 168px 36px 48px; }
  .news__guide { display: block; position: absolute; right: 36px; bottom: 0; width: 100px; margin: 0; }
  .life__scenes--6 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ---------- 日めくり（ファーストビューのリングと今日の日付） ---------- */
.hero__rings {
  position: relative;
  z-index: 2;
  max-width: 1232px;
  height: 34px;
  margin: 0 auto -20px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="44" height="34" viewBox="0 0 44 34"%3E%3Cellipse cx="22" cy="27" rx="5" ry="3.2" fill="%23FFFFFF" stroke="%23C9D5CC" stroke-width="1.5"/%3E%3Cpath d="M18.5 27V12a3.5 3.5 0 0 1 7 0v15" fill="none" stroke="%239FB2A5" stroke-width="3" stroke-linecap="round"/%3E%3C/svg%3E') center top / 44px 34px;
  background-repeat: space no-repeat;
  pointer-events: none;
}
.hero__inner { padding-top: 40px; }

.hero__today {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: 84px;
  margin: 0;
  padding: 10px 6px 12px;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(47, 82, 64, 0.12);
  font-family: var(--font-round);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.hero__today-label { font-size: 11px; letter-spacing: 0.14em; color: #B5562A; }
.hero__today-month { margin-top: 6px; font-size: 16px; }
.hero__today-day { margin-top: 2px; font-size: 42px; letter-spacing: -0.02em; }
.hero__today-week { margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--tint); font-size: 12px; color: var(--tree-dark); }
.hero__today-week.is-sun { background: #F6E2DC; color: #A33A28; }
.hero__today-week.is-sat { background: #E1EAF3; color: #2E5B86; }

@media (min-width: 600px) {
  .hero__inner { padding-top: 48px; }
}
@media (min-width: 1024px) {
  .hero__inner { padding-top: 64px; }
  .hero__today { top: 24px; left: 4%; width: 112px; padding: 14px 8px 16px; border-radius: var(--radius-md); }
  .hero__today-label { font-size: 13px; }
  .hero__today-month { font-size: 20px; margin-top: 8px; }
  .hero__today-day { font-size: 60px; }
  .hero__today-week { font-size: 14px; margin-top: 6px; }
}
@media (max-width: 379px) {
  .vacancy { gap: 10px; padding-right: 14px; }
  .vacancy__label { padding: 8px 10px; font-size: 13px; }
  .vacancy__num { font-size: 44px; }
}

/* 日めくり：六曜と、今日の話題の吹き出し */
.hero__today-rokuyo { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); width: 70%; text-align: center; font-size: 13px; color: var(--ink-sub); }
.hero__balloon { max-width: 17em; border-radius: 22px; text-align: center; }
/* スマホ・タブレットでは写真の窓に重なるので、ふわっと出て数秒で消える */
@media (max-width: 1023px) {
  .hero__balloon--pair { opacity: 0; animation: balloon-hello 5s ease 0.6s forwards; }
}
@keyframes balloon-hello {
  0% { opacity: 0; transform: translateY(8px) scale(.9); }
  10% { opacity: 1; transform: none; }
  80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); visibility: hidden; }
}
@media (min-width: 1024px) {
  .hero__today-rokuyo { font-size: 15px; margin-top: 8px; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1023px) {
  .hero__balloon--pair { display: none; }
}
.hero__balloon span { display: inline-block; white-space: nowrap; }

/* ---------- PC：ファーストビューを1画面に収める ----------
   拡大表示や低い画面でもはみ出さないよう、文字・余白・人物を画面の高さ（vh）に合わせて縮める */
@media (min-width: 1024px) {
  .hero { padding-top: 10px; }
  .hero__inner {
    min-height: calc(100svh - var(--header-h) - 34px);
    padding-top: clamp(28px, 5vh, 64px);
  }
  .hero__copy { padding-bottom: clamp(20px, 4vh, 56px); }
  .vacancy { padding-block: clamp(6px, 1vh, 10px); }
  .vacancy__num { font-size: clamp(36px, 6vh, 52px); }
  .hero__title { font-size: clamp(28px, min(3.3vw, 5.4vh), 48px); margin-top: clamp(10px, 2.4vh, 24px); line-height: 1.5; }
  .hero__lead { margin-top: clamp(8px, 1.6vh, 16px); font-size: clamp(14px, 2vh, 16px); line-height: 1.8; }
  .hero__actions { margin-top: clamp(12px, 2.6vh, 24px); }
  .hero__actions .btn--lg { min-height: clamp(44px, 6.5vh, 56px); padding-block: 8px; }
  .hero__note { margin-top: 8px; }
  .hero__stage { min-height: 0; }
  .hero__today { top: clamp(8px, 2.5vh, 24px); width: clamp(88px, 13vh, 112px); padding: clamp(8px, 1.5vh, 14px) 8px; }
  .hero__today-month { font-size: clamp(16px, 2.4vh, 20px); margin-top: 4px; }
  .hero__today-day { font-size: clamp(36px, 7vh, 60px); }
  .hero__person--pair { width: min(54%, 50vh); }
  .hero__person--woman { right: 0; width: min(19%, 21vh); max-width: 160px; }
}

/* 吹き出しは人物のイラストに付けて、頭の上に出す（画面の大きさが変わっても重ならない） */
.hero__person--pair .hero__balloon {
  position: absolute;
  left: 8%;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 17em;
}
@media (max-width: 1023px) {
  /* スマホ・タブレット：吹き出しは日付カードより手前に出し、数秒で消えたあとカレンダー全体が見える */
  .hero__person--pair .hero__balloon { left: 4%; bottom: calc(100% + 4px); max-width: 15em; z-index: 5; }
}

/* 料金の目安 → 料金シミュレーターへの案内 */
.price__sim {
  display: grid; gap: 14px; justify-items: center; margin-top: 24px; padding: 20px;
  border-radius: var(--radius-md); background: var(--tint); box-shadow: inset 0 0 0 2px var(--tree-pale); text-align: center;
}
.price__sim-text { margin: 0; line-height: 1.8; }
.price__sim-example { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-sub); }
@media (min-width: 720px) {
  .price__sim { grid-template-columns: 1fr auto; justify-items: start; align-items: center; padding: 20px 28px; text-align: left; }
}

/* ---------- オープニング（js/opening.js） ----------
   トップを開いたとき（3日に1回）だけ「自分らしく、あなたらしく。」を見せる。
   ファーストビューと同じ若葉色の地に、お知らせ欄と同じ葉っぱと水玉の飾り。
   文字がぼかしから浮かび、樹の緑の線が引かれて、線の先に葉っぱがひらく。約3秒見せて、1秒かけて本編へ。
   タップ・クリック・キー操作・スクロールですぐ消せる。動きを減らす設定では動かさず、短く見せて消す。 */
.opening { display: none; }
.opening.is-on {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--tint);
  cursor: pointer; transition: opacity 1s cubic-bezier(.45, .05, .55, .95);
}
.opening.is-out { opacity: 0; pointer-events: none; }
html.is-opening { overflow: hidden; }
/* 飾り：左上に葉っぱ、右下に水玉（.news と同じ絵柄） */
.opening::before,
.opening::after { content: ""; position: absolute; pointer-events: none; animation: opening-fade 1.2s .2s ease both; }
.opening::before {
  top: 6%; left: 4%; width: 150px; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 120'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M22 92C30 52 58 30 96 26C88 62 62 86 22 92Z' fill='%23E3EDE6'/%3E%3Cpath d='M22 92C46 70 66 52 96 26' stroke='%23C9DCCD' stroke-width='3'/%3E%3Cpath d='M98 98C104 76 120 64 142 62C136 82 122 96 98 98Z' fill='%23F2CFC6' opacity='.7'/%3E%3Ccircle cx='70' cy='104' r='5' fill='%23F6E7D9'/%3E%3Ccircle cx='120' cy='22' r='4' fill='%23E3EDE6'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}
.opening::after {
  right: -20px; bottom: -10px; width: 260px; height: 180px;
  background-image: radial-gradient(circle, #DCEAE0 0 6px, transparent 7px);
  background-size: 36px 36px;
  mask-image: linear-gradient(135deg, transparent 15%, #000 85%);
  -webkit-mask-image: linear-gradient(135deg, transparent 15%, #000 85%);
}
.opening__text {
  position: relative; margin: -4vh 0 0;
  font-family: var(--font-round); font-weight: 700; color: var(--tree-dark);
  font-size: clamp(22px, 6vw, 30px); line-height: 1.9; letter-spacing: .1em;
  animation: opening-in 1s .4s cubic-bezier(.37, 0, .63, 1) both;
}
.opening__text span { display: block; }
.opening__text span + span { padding-left: 1.2em; }
.opening__stroke { position: relative; width: min(240px, 62vw); height: auto; margin-top: 14px; overflow: visible; }
.opening__stroke path {
  fill: none; stroke: var(--tree); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .55;
  animation: opening-draw 1s .4s cubic-bezier(.37, 0, .63, 1) both;
}
.opening__stroke .opening__leaf {
  fill: #C9DCCD; stroke: none; opacity: 1; transform-box: fill-box; transform-origin: 0% 100%;
  animation: opening-leaf .5s 1.3s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes opening-in { from { opacity: 0; filter: blur(8px); } }
@keyframes opening-fade { from { opacity: 0; } }
@keyframes opening-draw { from { stroke-dasharray: 270; stroke-dashoffset: 270; } to { stroke-dasharray: 270; stroke-dashoffset: 0; } }
@keyframes opening-leaf { from { opacity: 0; transform: scale(.2) rotate(-25deg); } }
