/* ベストスマイル HP — 看板の「黄色い丸い笑顔」を、写真の枠・ボタン・印にくり返す */
:root {
  --bg: #ffffff;
  --surface: #f1f2f4;
  --ink: #1d1e20;
  --soft: #4b4e54;
  --yellow: #ffd53d;
  --pink: #cc2d64;
  --pink-ink: #ffffff;
  --r: 32px;
  --line: #06c755;
  --m: clamp(20px, 5vw, 72px);
  --gap: clamp(112px, 13vw, 200px);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem);
  --step-display: clamp(2.125rem, 7.6vw, 4.75rem);
  --step-statement: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: var(--step-body); line-height: 1.75; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ボタン(丸=看板の丸) */
.btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 900; font-size: var(--step-body); line-height: 1.3; padding: 18px 36px 18px 32px; border-radius: 999px; transition: transform .2s var(--ease), background-color .2s; }
.btn .tel { font-size: var(--step-lead); letter-spacing: .02em; }
.btn:hover { background: #ffcb0f; transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-small { padding: 10px 22px; font-size: var(--step-small); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn.btn-line { background: var(--line); color: var(--ink); }
.btn.btn-line:hover { background: #05b34c; }

/* 上の帯 */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px var(--m); background: var(--bg); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.25rem; }
.mark .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); }
.bar nav { display: flex; gap: 22px; margin-left: auto; font-size: var(--step-small); font-weight: 700; }
.bar nav a { text-decoration: none; padding: 6px 2px; transition: color .2s; }
.bar nav a:hover { color: var(--pink); }

/* 最初の画面 */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4vw; min-height: calc(100svh - 64px); padding: 4vh var(--m) 8vh; overflow: hidden; }
.hero-sun { position: absolute; z-index: 0; width: 118vh; height: 118vh; border-radius: 50%; background: var(--yellow); right: -46vh; top: 50%; transform: translateY(-50%); }
.hero-text { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.125rem, 4.2vw, 4.5rem); line-height: 1.22; letter-spacing: -0.02em; }
.hero-lead { margin-top: 40px; font-size: var(--step-lead); line-height: 1.7; max-width: 24em; }
.hero-act { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-act .btn:not(.btn-line) { background: var(--ink); color: #fff; }
.hero-act .btn:not(.btn-line):hover { background: #000; }
.hero-note { font-size: var(--step-small); color: var(--soft); }
.hero-photo { position: relative; z-index: 1; margin: 0; justify-self: center; width: min(40vw, 70vh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }

/* はじめの一文 */
.intro { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 6vw; align-items: end; }
.statement { font-size: var(--step-statement); font-weight: 700; line-height: 1.7; max-width: 26em; }
.pip { display: inline-block; vertical-align: -0.18em; width: 1.25em; height: 1.25em; margin: 0 .14em; border-radius: 50%; overflow: hidden; background: var(--surface); }
.pip img { width: 100%; height: 100%; object-fit: cover; }
.who { display: grid; gap: 18px; font-size: var(--step-body); font-weight: 700; }
.who li, .points li { display: grid; grid-template-columns: 0.9em 1fr; gap: 14px; align-items: baseline; }
.b { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--yellow); }
.who li:nth-child(2) .b { background: var(--pink); }
.who li:nth-child(3) .b { background: var(--ink); }

/* お仕事(見出しを指すと左の丸に写真) */
.work { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--surface); }
.work-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: end; }
.work-head p { max-width: 30em; }
.work-body { margin-top: 72px; display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: start; }
.work-preview { position: sticky; top: 96px; margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--yellow); }
.work-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .24s ease; }
.work-preview img.swap { opacity: 0; }
.work-list li { position: relative; padding: 28px 32px; border-radius: var(--r); transition: background-color .24s, opacity .24s; cursor: default; }
.work-list li + li { margin-top: 8px; }
.work-list h3 { font-size: var(--step-statement); font-weight: 900; }
.work-list p { margin-top: 10px; max-width: 34em; }
.work-list li.on { background: var(--bg); }
.work-list:hover li:not(.on) { opacity: .55; }
.row-pic { display: none; margin: 0; }

/* 1日の流れ(濃い面) */
.day { padding: var(--gap) var(--m); background: var(--ink); color: #fff; }
.day-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: end; }
.day-head p { max-width: 28em; }
.day-grid { margin-top: 72px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px 6vw; }
.day-col h3 { color: var(--yellow); }
.clock { margin-top: 28px; display: grid; gap: 10px; }
.clock { gap: 18px; }
.clock li { display: grid; grid-template-columns: 7.5em minmax(0,1fr); gap: 16px; align-items: baseline; }
.clock b { font-weight: 900; font-size: var(--step-lead); line-height: 1.3; color: var(--yellow); }
.facts { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3vw; }
.facts > div { aspect-ratio: 1; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 340px; width: 100%; justify-self: center; }
.facts > div:nth-child(2) { background: var(--pink); color: var(--pink-ink); }
.facts > div:nth-child(3) { background: #fff; }
.facts dt { font-weight: 700; font-size: var(--step-small); margin-top: 8px; padding: 0 12%; }
.facts dd { margin: 0; font-weight: 900; font-size: var(--step-display); line-height: 1.05; letter-spacing: -0.03em; }
.facts dd small { font-size: .4em; margin-left: .1em; letter-spacing: 0; }

/* 通う場所 */
.place { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; overflow: hidden; }
.place-photo { margin: 0 0 0 calc(var(--m) * -1 - 12%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface); max-height: 82svh; }
.place-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.points { margin-top: 48px; display: grid; gap: 32px; }
.points h3 { font-size: var(--step-lead); }
.points p { margin-top: 6px; }
.points li:nth-child(2) .b { background: var(--pink); }
.points li:nth-child(3) .b { background: var(--ink); }
.reach { margin-top: 56px; padding: 32px; background: var(--surface); border-radius: var(--r); }
.reach h3 { font-size: var(--step-body); font-weight: 900; }
.reach select { margin-top: 16px; width: 100%; height: 60px; padding: 0 20px; font: inherit; font-weight: 700; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; }
.reach-out { margin-top: 16px; font-weight: 700; min-height: 3.5em; }
.reach-out.yes { color: var(--ink); }
.reach-out .hit { display: inline-block; padding: 2px 14px; margin-right: 8px; border-radius: 999px; background: var(--yellow); }
.reach-out .miss { display: inline-block; padding: 2px 14px; margin-right: 8px; border-radius: 999px; background: var(--pink); color: #fff; }

/* ご利用までの流れ(黄色い面) */
.flow { margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--yellow); }
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.steps li { display: grid; gap: 18px; align-content: start; }
.ring { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); }
.steps li:nth-child(2) .ring { background: var(--pink); }
.steps li:nth-child(3) .ring { background: #fff; }
.steps h3 { font-size: var(--step-statement); font-weight: 900; }
.steps p { max-width: 22em; }

/* 職員の声 */
.voice { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 7fr 5fr; gap: 0 6vw; align-items: start; }
.voice h2 { grid-column: 1; }
.voice-row { grid-column: 1; margin-top: 48px; display: grid; gap: 14px; }
.voice blockquote { margin: 0; padding: 32px 36px; background: var(--surface); border-radius: var(--r); }
.voice blockquote p { font-size: var(--step-lead); font-weight: 700; line-height: 1.6; }
.voice blockquote footer { margin-top: 12px; font-size: var(--step-small); color: var(--soft); }
.voice-photo { grid-column: 2; grid-row: 1 / span 2; margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; align-self: center; background: var(--yellow); }
.voice-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* 活動のようす(丸の壁) */
.wall { padding: var(--gap) var(--m) 0; }
.tiles { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.4vw, 20px); }
.t { aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; }
.t.pic { background: var(--surface); }
.t.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.t.pic:hover img { transform: scale(1.06); }
.t.word { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10%; }
.t.word b { font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.t.word span { margin-top: 10px; font-size: var(--step-small); font-weight: 700; }
.w1 { background: var(--yellow); }
.w2 { background: var(--pink); color: var(--pink-ink); }
.w3 { background: var(--ink); color: #fff; }
.w4 { background: var(--surface); }
.wall-more { margin-top: 32px; text-align: right; font-weight: 700; }
.wall-more a { text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* よくある質問 */
.faq { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 4fr 8fr; gap: 6vw; align-items: start; }
.faq h2 { position: sticky; top: 96px; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r); transition: background-color .24s; }
.faq details[open] { background: var(--yellow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; padding: 18px 28px; font-weight: 700; font-size: var(--step-lead); line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-size: 1.6em; line-height: 1; font-weight: 700; transition: transform .24s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq-more { margin-top: 20px; }
.faq-more a { font-weight: 900; text-underline-offset: 4px; }
.faq details p { padding: 0 28px 26px; max-width: 40em; }

/* お知らせ */
.news { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 4fr 8fr; gap: 6vw; align-items: start; }
.news-list { display: grid; gap: 0; background: var(--surface); border-radius: var(--r); padding: 12px 0; }
.news-list li { display: grid; grid-template-columns: 7em minmax(0,1fr); gap: 20px; padding: 16px 32px; }
.news-list time { font-weight: 700; color: var(--soft); }
.news-list a { text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.news-list a:hover { color: var(--pink); }

/* 見学の申し込み(切り取り券) */
.contact { padding: var(--gap) var(--m); }
.coupon { position: relative; display: grid; grid-template-columns: 46fr 54fr; background: var(--yellow); border-radius: var(--r); }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 46%; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: var(--bg); }
.coupon::before { top: -18px; }
.coupon::after { bottom: -18px; }
.c-left { padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.c-left h2 { font-size: var(--step-head); }
.c-right { padding: clamp(32px, 4vw, 64px); }
.c-right .btn { width: 100%; padding: 24px 36px; }
.c-right .btn .tel { font-size: var(--step-head); }
.c-hours { margin-top: 12px; font-weight: 700; }
.c-line { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 24px; align-items: center; }
.c-line .qr { width: 132px; height: 132px; border-radius: 16px; background: #fff; padding: 8px; }
.c-line .btn { width: 100%; }
.c-info { margin: 28px 0 0; display: grid; gap: 10px; }
.c-info div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; }
.c-info dt { font-weight: 900; }
.c-info dd { margin: 0; overflow-wrap: anywhere; }
.c-info a { font-weight: 700; text-underline-offset: 4px; }

/* 下 */
.foot { background: var(--ink); color: #fff; padding: 96px var(--m) 120px; }
.foot-mark { display: flex; gap: 4px; }
.fm { flex: 1; aspect-ratio: 1; border-radius: 50%; max-width: 30svh; }
.c1 { background: var(--yellow); } .c2 { background: var(--pink); } .c3 { background: #fff; }
.foot-name { margin-top: 32px; font-size: clamp(2.75rem, 10vw, 9rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.foot-cols { margin-top: 56px; display: grid; grid-template-columns: 5fr 5fr 2fr; gap: 32px 4vw; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: var(--step-small); }
.foot nav a, .foot-sns a { text-decoration: none; }
.foot nav a:hover, .foot-sns a:hover { color: var(--yellow); }
.foot address { font-style: normal; font-size: var(--step-small); line-height: 1.9; }
.foot-sns { font-size: var(--step-small); font-weight: 700; }
.copy { margin-top: 48px; font-size: var(--step-small); color: #b9bcc2; }

/* スマホの下に固定する電話 */
.sticky { display: none; }

/* 動き */
.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-r].in { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; gap: 48px; }
  .hero h1 { font-size: clamp(2rem, 7.4vw, 3.75rem); }
  .hero-sun { width: 112vw; height: 112vw; right: -40vw; top: auto; bottom: -24vw; transform: none; }
  .hero-photo { width: min(78vw, 520px); }
  .intro, .work-head, .day-head, .place, .voice, .faq, .news, .coupon { grid-template-columns: minmax(0,1fr); }
  .coupon::before, .coupon::after { left: auto; top: calc(50% - 18px); bottom: auto; margin-left: 0; }
  .coupon::before { left: -18px; }
  .coupon::after { right: -18px; }
  .intro { gap: 48px; }
  .work-body { grid-template-columns: minmax(0,1fr); margin-top: 48px; }
  .work-preview { display: none; }
  .work-list li { padding: 0; background: none; }
  .work-list li + li { margin-top: 56px; }
  .work-list li .row-pic { display: block; width: 62vw; max-width: 360px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 20px; background: var(--yellow); }
  .work-list li:nth-child(even) .row-pic { margin-left: auto; }
  .row-pic img { width: 100%; height: 100%; object-fit: cover; }
  .work-list li.on { background: none; }
  .work-list:hover li:not(.on) { opacity: 1; }
  .day-grid { grid-template-columns: minmax(0,1fr); }
  .place-photo { margin-left: calc(var(--m) * -1 - 10%); width: 92vw; max-height: none; }
  .voice-photo { grid-column: 1; grid-row: auto; width: 72vw; max-width: 480px; margin-top: 40px; justify-self: end; }
  .faq h2 { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .bar nav { display: none; }
  .bar .btn-small { margin-left: auto; }
  .hero-lead { margin-top: 28px; }
  .hero-act .btn { width: 100%; }
  .statement { font-size: 1.4rem; }
  .steps { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .steps li { grid-template-columns: 72px 1fr; gap: 6px 20px; }
  .steps .ring { width: 72px; height: 72px; grid-row: 1 / span 2; }
  .facts { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .facts > div:first-child { grid-column: 1 / -1; max-width: 300px; }
  .clock li { grid-template-columns: 1fr; gap: 2px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .t.word b { font-size: 15vw; }
  .t.word span { font-size: 0.8125rem; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; padding: 18px 22px; }
  .c-left, .c-right { padding: 32px 24px; }
  .c-right .btn { padding: 20px 26px; }
  .foot-cols { grid-template-columns: 1fr; }
  .fm { max-width: none; }
  .sticky { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; transition: transform .2s var(--ease); }
  .sticky a { padding: 16px 8px; text-align: center; background: var(--ink); color: #fff; font-weight: 900; text-decoration: none; border-radius: 999px; transition: transform .2s var(--ease); }
  .sticky a.s-line { background: var(--line); color: var(--ink); }
  .sticky a:active { transform: scale(.97); }
  .sticky.away { transform: translateY(140%); }
  .c-line { grid-template-columns: minmax(0,1fr); }
  .c-line .qr { display: none; }
  body { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img { animation: none; }
  .js [data-r] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
