.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  position: relative;
  z-index: 2;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
}
.logo small {
  display: block;
  font-size: 10px;
}
.logo img {
  width: 42px;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.menu {
  display: none;
}
.hero {
  padding: 0 3% 80px;
}
.hero__shell {
  /* 角ごとに縦横の半径を変えて、手でこねたような不揃いの角丸にする */
  --shell-r: 150px 118px 128px 104px / 126px 150px 108px 158px;
  min-height: 690px;
  position: relative;
  isolation: isolate;
  /* 塔やマーキーのはみ出しは切る。ゆらいだ縁（最大9px）までは切らない */
  overflow: clip;
  overflow-clip-margin: 12px;
  padding: 92px max(7%, 70px);
}
/* 紙の面だけを揺らす。文字とマーキーは歪ませない */
.hero__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--shell-r);
  background-color: var(--c-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  filter: url(#hero-wobble);
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* B9: 英字マーキーはカプセルの中・見出しの背後に大きく薄く流す */
.hero__marquee {
  position: absolute;
  /* 外枠のゆらぎ（最大9px）より内側で切る */
  inset: 38% 12px 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--ff-en);
  color: var(--c-accent);
  font-size: clamp(70px, 11vw, 150px);
  font-weight: 500;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.band {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--ff-en);
  color: var(--c-accent);
  font-size: 45px;
  opacity: 0.2;
}
.marquee__track {
  display: inline-block;
  min-width: 200%;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.25;
  margin: 22px 0;
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.hero__lead {
  max-width: 540px;
  /* 幅が狭まる帯で「理学療法／士」のように語の途中で折れないようにする */
  word-break: auto-phrase;
  position: relative;
  z-index: 1;
}
/* B10: 手描きの吹き出し枠（三角の尻尾つき）。塔の横に置く */
.hero__bubble {
  position: absolute;
  top: 118px;
  right: max(6%, 60px);
  z-index: 2;
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: 26px;
  padding: 10px 24px;
  font-family: var(--ff-en);
  font-size: 17px;
  transform: rotate(-4deg);
}
/* 尻尾: 黒の三角を枠線の外縁に接し、白の三角を枠線（2px）ごと重ねて口を開ける。
   bottom は「三角の高さ + 枠線 2px」。ずらすと尻尾が本体から離れて浮く */
.hero__bubble::after,
.hero__bubble::before {
  content: "";
  position: absolute;
  border-style: solid;
  border-color: transparent;
  border-bottom: 0;
}
.hero__bubble::after {
  left: 30px;
  bottom: -14px;
  border-width: 12px 10px 0;
  border-top-color: var(--c-ink);
}
.hero__bubble::before {
  left: 32px;
  bottom: -10px;
  border-width: 10px 8px 0;
  border-top-color: var(--c-white);
  z-index: 1;
}
/* B10: 左下の Scroll ＋ 手描き矢印 */
.hero__scroll {
  position: absolute;
  left: max(7%, 70px);
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.hero__scroll svg {
  width: 28px;
  height: 34px;
  stroke: var(--c-ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.tower {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 595px;
  height: 800px;
  z-index: 1;
}
.tower .hero-piece {
  position: absolute;
}
.tower img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* B5: 土台の屋根に 青・橙・赤 を並べ、橙の上に 緑の屋根 → 星、青の上に 黄 を積む。
   bottom は土台の下端からの距離。画像の四辺には 3% の透明な余白がある */
.tower__arch {
  width: 340px;
  bottom: 0;
  left: 127px;
}
.tower__orange {
  width: 150px;
  bottom: 300px;
  left: 222px;
}
.tower__green {
  width: 100px;
  bottom: 416px;
  left: 245px;
}
.tower__blue {
  width: 62px;
  bottom: 298px;
  left: 152px;
}
.tower__red {
  width: 46px;
  bottom: 298px;
  left: 378px;
}
.tower__yellow {
  width: 46px;
  bottom: 341px;
  left: 160px;
}
.tower__pink {
  width: 48px;
  bottom: 496px;
  left: 272px;
}
.worry {
  background-color: var(--c-base);
  position: relative;
}
.worry .panel {
  padding: 70px;
}
/* C12: お悩み → 解決の間の手描き矢印。中央に置き、先端を次の見出しへ差し込む */
.worry__arrow {
  position: absolute;
  left: 50%;
  bottom: -48px;
  width: 60px;
  height: 120px;
  margin-left: -30px;
  stroke: var(--c-ink);
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  z-index: 1;
}
.worry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.worry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: rotate(var(--r, 0deg));
}
/* C11: 手描きの吹き出し枠（波線の横長パネル）。inline SVG を背景に敷く */
.voice {
  border: 0;
  border-radius: 0;
  padding: 30px 22px 26px;
  min-height: 190px;
  background: var(--img-voice-frame) center/100% 100% no-repeat;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}
.worry-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
/* C13: 見出しは中央ぞろえの大きな見出し。キャラ5体は見出しの下に大きく寄せ集める */
.solution {
  background: var(--c-white);
  overflow: hidden;
}
.solution__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}
.solution__text {
  max-width: none;
}
.solution__lead {
  font-size: clamp(20px, 5.6vw, 52px);
  line-height: 1.4;
  font-weight: 900;
}
.solution__text p {
  margin: 0 auto;
  max-width: 560px;
  text-align: left;
}
.solution-chars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 56px;
  width: min(100%, 980px);
}
.solution-char {
  margin: 0 -26px;
}
.solution-char img {
  width: 100%;
  display: block;
}
.solution-char:nth-child(1) {
  width: 24%;
  z-index: 1;
}
.solution-char:nth-child(2) {
  width: 15%;
  z-index: 2;
  margin-bottom: 10%;
}
.solution-char:nth-child(3) {
  width: 30%;
  z-index: 3;
}
.solution-char:nth-child(4) {
  width: 16%;
  z-index: 2;
  margin-bottom: 8%;
}
.solution-char:nth-child(5) {
  width: 20%;
  z-index: 1;
}
.features-grid,
.program-grid,
.day-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.features-grid .card:nth-child(4) {
  grid-column: 1/2;
}
.number {
  font-family: var(--ff-en);
  color: var(--c-accent-2);
  font-size: 22px;
}
.card h3 {
  font-size: 21px;
  line-height: 1.45;
}
.feature-extra {
  margin-top: 30px;
  padding: 42px;
}
.rounds {
  display: flex;
  gap: 15px;
  margin-top: 35px;
}
.round {
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  width: 155px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
}
.program {
  background: var(--c-white);
}
.program-grid {
  grid-template-columns: repeat(3, 1fr);
}
.program-card {
  padding: 0;
  overflow: hidden;
}
.program-card img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}
.program-card div {
  padding: 20px;
}
.program-card:nth-child(4) {
  grid-column: 1/2;
}
.day,
.contact {
  background-color: var(--c-base);
}
.day-grid {
  grid-template-columns: repeat(3, 1fr);
}
.schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}
.schedule li {
  padding: 11px 0;
  border-bottom: 1px solid var(--c-paper);
}
.schedule b {
  font-family: var(--ff-en);
  font-size: 13px;
  margin-right: 8px;
}
.button-row {
  margin-top: 38px;
  display: flex;
  gap: 15px;
}
.price-grid .card {
  border: 1px solid var(--c-ink);
}
.price-grid strong {
  font-size: 33px;
  font-family: var(--ff-en);
  display: block;
}
.price-lines,
.fee-table {
  margin-top: 28px;
  background: var(--c-white);
  border-radius: 20px;
  padding: 25px;
}
.price-lines p {
  border-bottom: 1px solid var(--c-paper);
  padding-bottom: 18px;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
}
.fee-table td {
  padding: 13px;
  border-bottom: 1px solid var(--c-paper);
}
.flow {
  background: var(--c-white);
}
.steps {
  display: grid;
  gap: 10px;
}
/* D15: Step番号と見出しを縦に積む。カードの間に▼を入れる */
.step {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--c-ink);
  border-radius: 18px;
  padding: 23px;
}
.step b {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
  font-weight: 900;
}
.step b .step-no {
  font-family: var(--ff-en);
  color: var(--c-accent-2);
  font-size: 13px;
}
.step-arrow {
  display: flex;
  justify-content: center;
  color: var(--c-accent-2);
  font-size: 18px;
  margin: 2px 0;
}
.band {
  background: var(--c-ink);
  color: var(--c-white);
  opacity: 1;
  font-size: 65px;
  padding: 17px 0;
}
.contact .panel {
  padding: 60px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 55px;
}
.tel {
  font-family: var(--ff-en);
  font-size: 22px;
}
.field {
  margin-bottom: 18px;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.field label,
.field legend {
  font-weight: 900;
  display: block;
}
.field legend {
  padding: 0;
}
/* D16: ラジオ・チェックボックスのラベルは丸とラベルを横並びにし、タップ領域を44px以上にする */
.field label:has(input[type="radio"]),
.field label:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  margin-right: 6px;
}
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--c-ink);
  border-radius: 8px;
  background: var(--c-white);
}
.field input[type="radio"],
.field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.field textarea {
  min-height: 110px;
}
/* D16: 送信を押すまで「入力してください」を出さない（hidden属性をCSSで潰していた） */
.error {
  color: var(--c-accent-2);
  font-size: 13px;
}
.error:not([hidden]) {
  display: block;
  margin-top: 4px;
}
.office {
  background: var(--c-white);
}
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.office img {
  width: 300px;
  margin: auto;
}
.office dl {
  margin: 0;
}
.office dt,
.office dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-paper);
}
.office dt {
  font-weight: 900;
}
.site-footer {
  background: var(--c-ink);
  color: var(--c-white);
  padding: 75px 4%;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
/* フッターのリンクは文字だけだと高さ20px。上下に余白を足してタップ領域を44pxにする */
.footer-inner nav a {
  display: inline-block;
  padding: 12px 0;
}
.fixed-cta {
  position: fixed;
  right: 25px;
  bottom: 28px;
  z-index: var(--z-fixed);
  width: 240px;
  height: 142px;
}
.fixed-cta img {
  position: absolute;
  /* ホバーで .button に transform が付くと、後ろの兄弟が手前に来る。積み木を常に上に置く */
  z-index: 1;
  width: 70px;
  top: -35px;
  left: 24px;
  pointer-events: none;
}
.fixed-cta .button {
  width: 100%;
  height: 100%;
  font-size: 18px;
}
.top {
  position: fixed;
  right: 25px;
  bottom: 185px;
  z-index: var(--z-fixed);
  border: 0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  background: var(--c-white);
  box-shadow: 0 4px 12px var(--c-dot);
}
/* D18: JS無効時は出す。非表示制御は html.js の下だけに限定する */
html.js .top {
  opacity: 0;
  pointer-events: none;
}
html.js .top.is-show {
  opacity: 1;
  pointer-events: auto;
}
/* 塔の左端（アーチ）がリード文に重ならない幅まで、塔を縮めて右へ寄せる。
   リード幅の差し引き分は、塔の見かけ幅（595px × scale）からアーチ左の余白を引いた値 */
@media (max-width: 1320px) {
  .tower {
    right: 2%;
    transform: scale(0.8);
    transform-origin: bottom right;
  }
  .hero__lead {
    max-width: min(540px, calc(100% - 350px));
  }
}
/* 6項目のナビが1行に収まらなくなる幅（実測 900px 以下で折り返し）からメニューボタンに切り替える */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .menu {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    background: none;
    border: 0;
    font-family: var(--ff-en);
    font-size: 12px;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--c-white);
    flex-direction: column;
  }
}
@media (max-width: 840px) {
  .tower {
    right: -80px;
    transform: scale(0.72);
  }
  .hero__lead {
    max-width: calc(100% - 220px);
  }
  .worry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 3列のまま「保育所等訪問支援」を1行に収める */
  .price-grid .card {
    padding-left: 22px;
    padding-right: 22px;
  }
  .price-grid .card h3 {
    font-size: 19px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .office-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .site-header {
    height: 65px;
    padding: 0 18px;
  }
  .hero {
    padding: 0 12px 50px;
  }
  .hero__shell {
    --shell-r: 84px 64px 74px 58px / 70px 88px 62px 94px;
    min-height: 760px;
    padding: 55px 26px;
  }
  .hero h1 {
    font-size: min(40px, 8.4vw);
  }
  .hero__lead {
    max-width: none;
    font-size: 15px;
  }
  /* B5: 幅/高さは上書きしない。子要素の bottom/left は 595×800 基準の px 指定なので、
     箱の寸法を変えると積み木がずれる。縮小は scale だけで行う */
  .tower {
    right: 50%;
    transform: translateX(50%) scale(0.5);
    transform-origin: bottom center;
  }
  /* B7/B10: 絶対配置だと見出し/リードに被るので、リード直後の通常フローに戻す。
     position:relative のまま（吹き出しの尻尾 ::before/::after の基準を維持） */
  .hero__bubble {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    margin: 16px 0 0;
  }
  .hero__marquee {
    font-size: 28px;
  }
  .worry .panel,
  .contact .panel {
    padding: 35px 20px;
  }
  .worry-grid,
  .features-grid,
  .program-grid,
  .day-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .program-card:nth-child(4),
  .features-grid .card:nth-child(4) {
    grid-column: auto;
  }
  .voice {
    min-height: 0;
  }
  .solution__lead {
    font-size: 29px;
  }
  .solution-chars {
    margin-top: 32px;
  }
  .solution-char {
    margin: 0 -14px;
  }
  .rounds {
    flex-wrap: wrap;
  }
  .round {
    width: calc(50% - 8px);
  }
  .step {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .button-row {
    flex-direction: column;
  }
  .band {
    font-size: 35px;
  }
  .footer-inner {
    flex-direction: column;
  }
  .fixed-cta {
    width: 148px;
    height: 86px;
    right: 12px;
    bottom: 14px;
  }
  .fixed-cta img {
    width: 45px;
    top: -22px;
  }
  .fixed-cta .button {
    font-size: 13px;
    padding: 0 10px;
    white-space: nowrap;
  }
  .top {
    right: 14px;
    bottom: 112px;
    width: 44px;
    height: 44px;
  }
  .office img {
    width: 200px;
  }
}
.site-header a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 680px) {
  .tower {
    width: 350px;
  }
}
