/* ミチシルベ 触れる試作（案4「ことばと手ざわり」）2026-09-25
   ★JavaScript は使わない。動きは CSS だけ（対応しないブラウザでは最初から表示・動きを減らす設定では止める） */
:root {
  --ground: #F7F3EA;
  --paper: #FFFDF8;
  --ink: #2B3027;
  --muted: #5A6053;
  --line: #E2DACA;
  --primary: #4A7431;
  --on-primary: #FFFFFF;
  --leaf: #E4ECD9;
  --sun: #EFD48A;
  --clay: #E3A27F;
  --moss: #9DBB84;
  --radius: 18px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
  --max: 1180px;
  --bar: 0px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.85 var(--sans);
  overflow-x: hidden;
  padding-bottom: var(--bar);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
h1, h2, h3 { text-wrap: balance; line-break: strict; margin: 0; }
p { margin: 0 0 1em; }
.proto-note {
  background: #2B3027; color: #F7F3EA; font-size: 13px; text-align: center; padding: 6px 12px;
}

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  /* ★不透明にする（透過だと文字の読みやすさが下の写真次第になる。参考サイト調査 提案9） */
  background: var(--ground);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: .06em; line-height: 1.3; }
.brand small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 999px; transition: background-color .2s; }
.nav a:hover { background: var(--leaf); }
.header-tel { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.header-tel svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 30%, transparent); color: var(--on-primary); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--leaf); color: var(--primary); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  white-space: nowrap; list-style: none; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--ink); display: flex; align-items: center; font-weight: 700; font-size: 14px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--ground); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 320px);
  background: var(--paper); border-radius: var(--radius); padding: 10px;
  box-shadow: 0 20px 40px rgba(43,48,39,.16);
}
.menu nav a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.menu nav a:hover { background: var(--leaf); }

/* ── ファーストビュー ── */
.hero { position: relative; padding-block: 56px 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 40px; align-items: center; }
.hero-words { display: grid; grid-template-columns: auto minmax(250px, 1fr); gap: 36px; align-items: end; }
.catch {
  writing-mode: vertical-rl; font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 4.2vw, 60px); line-height: 1.5; letter-spacing: .12em; margin: 0;
}
/* ★1つの句を1列に収める（途中で折り返さない） */
.catch span { display: block; white-space: nowrap; }
.catch span + span { padding-top: 3em; }
.hero-info { padding-bottom: 8px; }
.hero-info .btn, .hero-info .tel, .hero-info .name { white-space: nowrap; }
.hero-info .name { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; line-height: 1.5; margin-bottom: 2px; }
.hero-info .kind { display: inline-block; font-size: 14px; color: var(--muted); letter-spacing: .1em; margin-bottom: 24px; }
.hero-info .tel { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.hero-info .tel svg { width: 20px; height: 20px; }
.hero-info .hours { font-size: 13px; color: var(--muted); margin: 2px 0 0 28px; }
.hero-info .sub { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--serif); color: var(--muted); letter-spacing: .12em; line-height: 2; font-size: 15px; }

.collage { position: relative; min-height: 560px; isolation: isolate; }
.collage .ph { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px rgba(43,48,39,.14); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { left: 0; top: 60px; width: 52%; height: 60%; }
.collage .p2 { right: 4%; top: 0; width: 40%; height: 46%; }
.collage .p3 { right: 0; bottom: 0; width: 56%; height: 42%; }
.blob { position: absolute; border-radius: 50%; z-index: -1; }
.collage .b1 { width: 260px; height: 260px; background: var(--moss); left: 30%; top: 0; border-radius: 58% 42% 50% 50%; }
.collage .b2 { width: 170px; height: 220px; background: var(--sun); right: -40px; top: 26%; border-radius: 50% 50% 46% 54%; }
.collage .b3 { width: 240px; height: 240px; background: var(--clay); right: -60px; bottom: 16%; opacity: .85; }
.leaf { position: absolute; width: 70px; color: var(--moss); }
.collage .l1 { left: 44%; bottom: 8%; transform: rotate(-20deg); }
.dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.collage .d1 { left: 38%; bottom: 20%; }
.collage .d2 { right: 44%; top: 6%; width: 7px; height: 7px; background: var(--moss); }
.collage .words { position: absolute; left: 3%; bottom: 0; writing-mode: horizontal-tb; font-family: var(--serif); font-size: 14px; letter-spacing: .14em; line-height: 2.1; color: var(--muted); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; color: var(--paper); }
.hero-wave svg { width: 100%; height: 100%; display: block; }

/* ── 区画の共通 ── */
.section { padding-block: 96px; position: relative; }
.section.paper { background: var(--paper); }
.eyebrow { display: block; font-family: var(--serif); color: var(--primary); font-size: 14px; letter-spacing: .2em; margin-bottom: 6px; }
.section-title { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); letter-spacing: .08em; line-height: 1.45; margin-bottom: 14px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .rule { width: 36px; height: 2px; background: var(--primary); margin: 14px auto 0; border-radius: 2px; }
.section-lead { color: var(--muted); max-width: 36em; margin: 14px auto 0; }

/* 基本情報のタイル */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fact {
  background: var(--ground); border-radius: var(--radius); padding: 22px 24px 20px;
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: start;
  transition: transform .3s, box-shadow .3s;
}
.fact:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(43,48,39,.08); }
.fact .ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; color: var(--primary); }
.fact .ic svg { width: 24px; height: 24px; }
.fact dt { font-weight: 700; color: var(--primary); font-size: 14px; letter-spacing: .06em; }
.fact dd { margin: 0; font-size: 16px; line-height: 1.7; }

/* ここですること */
.works { display: grid; gap: 96px; }
.work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.work:nth-child(even) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.work:nth-child(even) .work-ph { order: 2; }
.work-ph { position: relative; }
.work-ph .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 48px rgba(43,48,39,.12); }
.work-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.work-ph:hover img { transform: scale(1.05); }
.work-ph .blob { width: 46%; aspect-ratio: 1; left: -6%; bottom: -10%; background: var(--leaf); }
.work:nth-child(even) .work-ph .blob { left: auto; right: -6%; background: var(--sun); opacity: .7; }
.work:nth-child(3) .work-ph .blob { background: var(--clay); opacity: .45; }
.work-no { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--moss); letter-spacing: .04em; }
.work h3 { font-family: var(--serif); font-size: 28px; letter-spacing: .06em; line-height: 1.5; margin: 10px 0 14px; }
.work p { color: var(--muted); }

/* 一日の流れ（縦の時間軸） */
.day { max-width: 720px; margin-inline: auto; list-style: none; padding: 0; position: relative; }
.day::before { content: ""; position: absolute; left: 118px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(var(--moss) 0 6px, transparent 6px 12px); }
.day li { display: grid; grid-template-columns: 96px 44px 1fr; align-items: center; min-height: 72px; }
.day time { font-family: var(--serif); font-size: 26px; text-align: right; letter-spacing: .04em; }
.day .pin { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--primary); justify-self: center; position: relative; z-index: 1; }
.day li:nth-child(3) .pin { background: var(--sun); border-color: var(--sun); }
.day .what { background: var(--ground); border-radius: 14px; padding: 12px 18px; }
.day .what small { display: block; color: var(--muted); font-size: 13px; }

/* ご利用までの流れ（横の流れ図） */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 36px; height: 2px; background: var(--moss); }
.steps li { text-align: center; position: relative; }
.steps .circle {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--primary); color: var(--primary);
  font-family: var(--serif); font-size: 26px; position: relative; z-index: 1; transition: background-color .3s, color .3s;
}
.steps li:hover .circle { background: var(--primary); color: var(--on-primary); }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span.note { color: var(--muted); font-size: 14px; line-height: 1.6; display: block; }

/* よくある質問 */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 24px; gap: 14px;
  align-items: center; padding: 20px 22px; font-weight: 700; min-height: 64px;
}
.faq summary::-webkit-details-marker { display: none; }
.qa { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; }
.qa.q { background: var(--primary); color: var(--on-primary); }
.qa.a { background: var(--sun); color: var(--ink); }
.faq .plus { width: 20px; height: 20px; position: relative; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq .answer { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 0 22px 22px; }
.faq .answer p { margin: 6px 0 0; color: var(--muted); }
.faq details[open] .answer { animation: open .35s ease both; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 見学・お問い合わせ */
.cta { position: relative; overflow: hidden; background: var(--leaf); border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; isolation: isolate; }
.cta .blob.c1 { width: 320px; height: 320px; background: var(--sun); right: -80px; top: -120px; opacity: .6; z-index: -1; }
.cta .blob.c2 { width: 180px; height: 180px; background: var(--moss); left: -60px; bottom: -80px; opacity: .5; z-index: -1; }
.cta h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); letter-spacing: .08em; margin-bottom: 14px; line-height: 1.5; }
.cta p { color: var(--ink); }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta .big-tel { font-size: 34px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.cta .big-tel svg { width: 28px; height: 28px; color: var(--primary); }
.cta small { color: var(--muted); font-size: 14px; }

/* フッター */
.site-footer { background: var(--paper); padding-block: 64px 32px; margin-top: 96px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-size: 14px; color: var(--primary); letter-spacing: .1em; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* スマートフォン画面下の帯 */
.mobile-bar { display: none; }

/* ── お問い合わせフォーム ── */
.page-head { padding-block: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.page-head .blob.h1 { width: 220px; height: 220px; background: var(--leaf); left: 8%; top: -60px; }
.page-head .blob.h2 { width: 140px; height: 140px; background: var(--sun); right: 10%; bottom: -40px; opacity: .6; }
.form-card { max-width: 760px; margin: 0 auto 40px; background: var(--paper); border-radius: 28px; padding: 48px; box-shadow: 0 24px 48px rgba(43,48,39,.08); }
.field { display: grid; gap: 8px; margin-bottom: 26px; }
.field > label, .field legend { font-weight: 700; }
.req { font-size: 12px; color: var(--on-primary); background: var(--primary); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; }
.opt { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-left: 8px; vertical-align: 2px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: grid; place-items: center; min-height: 56px; padding: 8px; border-radius: 14px; text-align: center;
  border: 2px solid var(--line); background: var(--ground); font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.choice input:checked + span { border-color: var(--primary); background: var(--leaf); color: var(--primary); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--ground); font: inherit; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); background: var(--paper); }
.field textarea { min-height: 160px; resize: vertical; }
.form-actions { display: grid; justify-items: center; gap: 12px; margin-top: 10px; }
.form-actions .btn { min-width: 280px; }
.privacy { font-size: 14px; color: var(--muted); text-align: center; }
.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--paper); border-radius: 28px; padding: 56px 40px; }
.check { width: 72px; height: 72px; border-radius: 50%; background: var(--leaf); color: var(--primary); display: grid; place-items: center; margin: 0 auto 20px; }
.check svg { width: 36px; height: 36px; }

/* ── 動き ── ★動きを減らす設定の方には出さない。スクロール連動に対応しないブラウザでは最初から表示 */
@media (prefers-reduced-motion: no-preference) {
  .hero .catch span { animation: rise-in 1s cubic-bezier(.2,.8,.2,1) both; }
  .hero .catch span:nth-child(2) { animation-delay: .25s; }
  .hero-info { animation: rise-in 1s .5s cubic-bezier(.2,.8,.2,1) both; }
  .collage .ph { animation: photo-in 1.4s cubic-bezier(.2,.8,.2,1) both; }
  .collage .p2 { animation-delay: .2s; }
  .collage .p3 { animation-delay: .4s; }
  .collage .blob, .collage .leaf, .collage .dot { animation: pop-in 1.2s .6s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes photo-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
  @keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
    .work-ph .frame img { animation: drift linear both; animation-timeline: view(); animation-range: cover; scale: 1.12; }
    @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
    .work-ph .blob { animation: float linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes float { from { translate: 0 30px; } to { translate: 0 -30px; } }
    .steps li { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .day li { animation: slide linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    @keyframes slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
  }
}

/* ── タブレット ── */
@media (max-width: 1100px) {
  .nav, .header-tel { display: none; }
  .header-inner > .btn { display: none; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { min-height: 420px; }
  .hero-info { padding-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work, .work:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .work:nth-child(even) .work-ph { order: 0; }
  .cta { grid-template-columns: 1fr; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ── スマートフォン ── */
@media (max-width: 640px) {
  :root { --bar: 76px; --radius: 16px; }
  body { font-size: 16px; }
  .header-inner { min-height: 64px; }
  .brand b { font-size: 15px; letter-spacing: .02em; word-break: keep-all; }
  .brand svg { width: 26px; height: 26px; }
  .header-inner { gap: 12px; }
  .hero { padding-block: 28px 72px; }
  .hero-words { gap: 18px; }
  .hero-words { grid-template-columns: auto 1fr; gap: 16px; }
  .hero-info .name { white-space: normal; }
  .catch { font-size: 34px; }
  .hero-info .name { font-size: 20px; }
  .hero-info .sub { display: none; }
  .collage { min-height: 330px; margin-top: 8px; }
  .collage .words { display: none; }
  .collage .b1 { width: 170px; height: 170px; }
  .collage .b3 { width: 150px; height: 150px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 36px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { grid-template-columns: 1fr; padding: 16px; }
  .fact .ic { grid-row: auto; width: 40px; height: 40px; margin-bottom: 4px; }
  .fact dd { font-size: 14px; }
  .works { gap: 64px; }
  .work-no { font-size: 48px; }
  .work h3 { font-size: 23px; }
  .day::before { left: 76px; }
  .day li { grid-template-columns: 62px 30px 1fr; }
  .day time { font-size: 20px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 35px; right: auto; top: 36px; bottom: 36px; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; text-align: left; align-items: center; padding-block: 8px; }
  .steps .circle { margin: 0; }
  .cta { padding: 36px 22px; border-radius: 24px; }
  .cta .big-tel { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { margin-top: 72px; }
  .form-card { padding: 28px 20px; border-radius: 22px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { min-width: 0; width: 100%; }
}

/* ── 参考サイト（たんぽぽグループ・グリーンコープ）から取り入れた動き（2026-09-25）── */
/* ページの切り替えをなめらかに（ブラウザの機能。JavaScriptなし） */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
.site-header { view-transition-name: site-header; }

/* 写真の帯（ゆっくり流れ続ける） */
.band { overflow: hidden; background: var(--paper); padding-block: 8px 0; }
.band-track { display: flex; width: max-content; }
.band-set { display: flex; gap: 16px; padding-right: 16px; }
.band img { width: 300px; height: 200px; object-fit: cover; border-radius: 14px; }
.band img:nth-child(even) { margin-top: 28px; height: 180px; }

/* 動きを止めるボタン（JavaScriptなし・チェックボックス） */
.motion-toggle { position: fixed; opacity: 0; pointer-events: none; }
.motion-btn {
  position: fixed; left: 16px; bottom: calc(16px + var(--bar)); z-index: 45;
  font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 6px 16px rgba(43,48,39,.1);
}
.motion-btn .off { display: none; }
.motion-toggle:checked + .motion-btn .on { display: none; }
.motion-toggle:checked + .motion-btn .off { display: inline; }
.motion-toggle:focus-visible + .motion-btn { outline: 3px solid var(--ink); outline-offset: 3px; }
.collage .l2 { right: 8%; top: -4%; width: 48px; transform: rotate(40deg); }

@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: band 60s linear infinite; }
  @keyframes band { to { transform: translateX(-50%); } }
  .band:hover .band-track { animation-play-state: paused; }
  /* メイン写真は覆いが外れるように現れる */
  .collage .ph { animation: unveil 1.3s cubic-bezier(.7,0,.2,1) both; }
  .collage .p2 { animation-delay: .25s; }
  .collage .p3 { animation-delay: .5s; }
  @keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  .collage .ph img { animation: settle 2.2s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes settle { from { transform: scale(1.18); } to { transform: none; } }
  /* 飾りがゆらゆら動く */
  .float { animation: sway 7s ease-in-out infinite alternate; }
  .dot.float { animation-duration: 5s; }
  @keyframes sway { from { translate: 0 0; rotate: 0deg; } to { translate: 6px -14px; rotate: 8deg; } }
  .collage .blob { animation: breathe 9s ease-in-out infinite alternate; }
  @keyframes breathe { from { scale: 1; } to { scale: 1.06; } }
  /* 止めるボタンが押されたら、動き続けるものをすべて止める */
  body:has(.motion-toggle:checked) .band-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-btn { display: none; }
  @view-transition { navigation: none; }
}
@media (max-width: 640px) {
  .band img { width: 200px; height: 136px; }
  .band img:nth-child(even) { height: 120px; margin-top: 18px; }
}

/* ── 参考サイト18件の調査から（2026-09-25・参考サイト調査_福祉介護_20260925.md）── */
.header-tel span { display: grid; line-height: 1.25; }
.header-tel small { font-size: 11px; font-weight: 400; color: var(--muted); }
/* 読んだ位置を示す細い帯（飾り） */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; display: none; }
/* スマートフォンの下の帯: 電話｜見学・相談｜メニュー（メニューは帯のすぐ上に開く・JSなし） */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .header-inner .menu { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 8px; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(43,48,39,.06);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none;
    background: var(--ground); list-style: none; cursor: pointer;
  }
  .tab svg { width: 20px; height: 20px; color: var(--primary); }
  .tab-main { background: var(--primary); color: var(--on-primary); font-size: 15px; }
  .tab-menu summary::-webkit-details-marker { display: none; }
  .tab-menu[open] summary { background: var(--ink); color: var(--ground); }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .burger { margin: 6px 0 7px; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .tab-menu nav {
    position: fixed; left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    background: var(--paper); border-radius: 20px; padding: 10px; box-shadow: 0 -12px 40px rgba(43,48,39,.18);
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  }
  .tab-menu nav a { padding: 14px 12px; border-radius: 12px; background: var(--ground); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tab-menu[open] nav { animation: sheet .3s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes sheet { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @supports (animation-timeline: scroll()) {
    .progress { display: block; animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { to { transform: scaleX(1); } }
  }
  /* 線が描かれていく（一日の流れ・ご利用までの流れ） */
  @supports (animation-timeline: view()) {
    .day { view-timeline: --day block; }
    .day::before { transform-origin: 50% 0; animation: draw-y linear both; animation-timeline: --day; animation-range: entry 0% entry 90%; }
    @keyframes draw-y { from { transform: scaleY(0); } to { transform: none; } }
    .steps { view-timeline: --steps block; }
    .steps::before { transform-origin: 0 50%; animation: draw-x linear both; animation-timeline: --steps; animation-range: entry 10% entry 100%; }
    @keyframes draw-x { from { transform: scaleX(0); } to { transform: none; } }
  }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps::before { transform-origin: 50% 0; animation-name: draw-y; }
  }
}

/* メニューを開いている間は「動きを止める」を隠す（重なるため） */
body:has(.tab-menu[open]) .motion-btn { display: none; }

/* ── 下のほうの区画にも、はっきり分かる動き（2026-09-25 杉本さん「もっと下の方も」）──
   ★どれも「画面に入りきるまで」に動き終える（途中で止まって見えないように）。スクロールを戻すと逆再生される */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation-name: reveal-big; animation-range: entry 0% entry 80%; }
    @keyframes reveal-big { from { opacity: 0; transform: translateY(64px) scale(.98); } to { opacity: 1; transform: none; } }
    /* 見出しの下線が伸びる */
    .section-head .rule { animation: rule linear both; animation-timeline: view(); animation-range: entry 40% entry 100%; }
    @keyframes rule { from { transform: scaleX(0); } to { transform: none; } }
    /* 基本情報のタイルを1枚ずつ */
    .fact.reveal:nth-child(3n+2) { animation-range: entry 15% entry 95%; }
    .fact.reveal:nth-child(3n) { animation-range: entry 30% entry 100%; }
    /* 一日の流れ: 1行ずつ左から */
    .day li { animation-name: slide-big; animation-range: entry 10% entry 90%; }
    @keyframes slide-big { from { opacity: 0; transform: translateX(-56px); } to { opacity: 1; transform: none; } }
    .day li .pin { animation: pin linear both; animation-timeline: view(); animation-range: entry 40% entry 100%; }
    @keyframes pin { from { scale: 0; } to { scale: 1; } }
    /* ご利用までの流れ: 丸が1つずつぽんと */
    .steps li { animation-name: none; }
    .steps .circle { animation: pop linear both; animation-timeline: --steps; }
    .steps li:nth-child(1) .circle { animation-range: entry 10% entry 40%; }
    .steps li:nth-child(2) .circle { animation-range: entry 25% entry 55%; }
    .steps li:nth-child(3) .circle { animation-range: entry 40% entry 70%; }
    .steps li:nth-child(4) .circle { animation-range: entry 55% entry 85%; }
    .steps li:nth-child(5) .circle { animation-range: entry 70% entry 100%; }
    @keyframes pop { 0% { opacity: 0; scale: .3; } 70% { opacity: 1; scale: 1.12; } 100% { opacity: 1; scale: 1; } }
    .steps li > span:last-child { animation: fade-up linear both; animation-timeline: --steps; animation-range: entry 40% entry 100%; }
    @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
    /* よくある質問: 1問ずつ */
    .faq details.reveal:nth-child(2) { animation-range: entry 15% entry 95%; }
    .faq details.reveal:nth-child(3) { animation-range: entry 30% entry 100%; }
    /* 見学・お問い合わせ: ふわっと大きく＋飾りがずれる */
    .cta.reveal { animation-name: grow; }
    @keyframes grow { from { opacity: 0; transform: scale(.92) translateY(40px); } to { opacity: 1; transform: none; } }
    .cta .blob.c1 { animation: drift-a linear both; animation-timeline: view(); animation-range: cover; }
    .cta .blob.c2 { animation: drift-b linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift-a { from { translate: 0 60px; } to { translate: -40px -40px; } }
    @keyframes drift-b { from { translate: 0 -30px; } to { translate: 40px 40px; } }
    /* フッター */
    .footer-grid > * { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .footer-grid > *:nth-child(2) { animation-range: entry 10% entry 80%; }
    .footer-grid > *:nth-child(3) { animation-range: entry 20% entry 90%; }
    /* お問い合わせのページ: 入力欄が順に */
    .form-card > * { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* スマートフォンでは2列なので、2枚目ごとにずらす */
    .fact.reveal:nth-child(3n+2), .fact.reveal:nth-child(3n) { animation-range: entry 0% entry 80%; }
    .fact.reveal:nth-child(even) { animation-range: entry 15% entry 95%; }
    /* 縦向きの流れ図は丸ごとに画面へ入るので、丸それぞれの見え方で動かす */
    .steps .circle { animation-timeline: view(); animation-range: entry 20% entry 80% !important; }
    .steps li > span:last-child { animation-timeline: view(); animation-range: entry 20% entry 90%; }
  }
}

/* ── 一日の流れを大きく（2026-09-25 杉本さん「サイズも小さい」）── */
.day { max-width: 900px; }
.day::before { left: 167px; top: 30px; bottom: 30px; width: 3px; background: repeating-linear-gradient(var(--moss) 0 8px, transparent 8px 16px); }
.day li { grid-template-columns: 140px 56px 1fr; min-height: 104px; }
.day time { font-size: 40px; line-height: 1; }
.day .pin { width: 24px; height: 24px; border-width: 4px; }
.day .what { font-size: 20px; font-weight: 700; padding: 20px 26px; border-radius: 18px; }
.day .what small { font-size: 15px; font-weight: 400; margin-top: 4px; }
@media (max-width: 640px) {
  .day::before { left: 89px; top: 24px; bottom: 24px; }
  .day li { grid-template-columns: 72px 36px 1fr; min-height: 84px; }
  .day time { font-size: 24px; }
  .day .pin { width: 18px; height: 18px; border-width: 3px; }
  .day .what { font-size: 17px; padding: 14px 16px; }
  .day .what small { font-size: 13px; }
}

/* ご利用までの流れも一日の流れと大きさをそろえる */
.steps::before { top: 45px; height: 3px; }
.steps .circle { width: 90px; height: 90px; font-size: 34px; border-width: 3px; }
.steps b { font-size: 20px; }
.steps span.note { font-size: 15px; }
@media (max-width: 640px) {
  .steps::before { left: 44px; top: 45px; bottom: 45px; width: 3px; height: auto; }
  .steps li { grid-template-columns: 90px 1fr; }
  .steps b { font-size: 18px; }
}
@media (max-width: 640px) {
  .steps .circle { width: 72px; height: 72px; font-size: 28px; }
  .steps li { grid-template-columns: 72px 1fr; }
  .steps::before { left: 35px; top: 36px; bottom: 36px; }
}
