/* 初診の流れ：このページだけに読み込むスタイル。 */
body.first-visit-page { min-width: 0; }
body.first-visit-page > main.first-visit { width: 100%; margin: 0; min-height: 0; }
.first-visit-page .site-header { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; }
.first-visit__steps { width: min(1216px, calc(100% - 64px)); margin: 69px auto 0; padding: 0 0 110px; list-style: none; }
.first-visit__step { position: relative; display: grid; grid-template-columns: minmax(0, 559fr) minmax(0, 597fr); align-items: end; gap: 54px; padding-bottom: 35px; margin-bottom: 35px; }
.first-visit__step::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 1px; background: url('../images/visit-divider.svg') center / 100% 100% no-repeat; }
.first-visit__step:last-child { margin-bottom: 0; }
.first-visit__visual { position: relative; aspect-ratio: 559 / 312; }
.first-visit__photo { position: absolute; top: 7.6923%; left: 5.3667%; right: 0; bottom: 0; overflow: hidden; mask: url('../images/visit-photo-mask.svg') center / 100% 100% no-repeat; }
.first-visit__photo img { position: absolute; max-width: none; width: var(--photo-width); height: auto; left: var(--photo-left); top: var(--photo-top); }
.first-visit__step--01 { --photo-width: 103.97%; --photo-left: .189%; --photo-top: -3.125%; }
.first-visit__step--02 { --photo-width: 138.37%; --photo-left: -21.361%; --photo-top: -41.667%; }
.first-visit__step--03 { --photo-width: 136.862%; --photo-left: -22.495%; --photo-top: -9.028%; }
.first-visit__step--04 { --photo-width: 115.312%; --photo-left: -2.836%; --photo-top: -19.792%; }
.first-visit__step--05 { --photo-width: 129.868%; --photo-left: -16.635%; --photo-top: -36.458%; }
.first-visit__step--06 { --photo-width: 100%; --photo-left: 0%; --photo-top: -4.167%; }
.first-visit__badge { position: absolute; top: -2px; left: -2px; width: 137.626px; height: 137.626px; background: url('../images/visit-step-badge.svg') center / contain no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--color-orange); font-weight: 700; }
.first-visit__badge span { font-size: 17.348px; line-height: 1; letter-spacing: 2.4287px; }
.first-visit__badge strong { margin-top: 3.47px; font-size: 46.261px; line-height: 1; letter-spacing: 6.4765px; padding-left: 6.4765px; }
body.first-visit-page .first-visit__text h2 { margin: 0 0 18px; font-size: 35px; line-height: 35px; letter-spacing: 1.05px; font-weight: var(--font-weight-heading); }
body.first-visit-page .first-visit__text p { margin: 0; min-height: 193px; font-size: 20px; line-height: 40px; letter-spacing: .6px; text-wrap: pretty; }
@media (min-width: 768px) and (max-width: 1439px) {
 .first-visit-page .design-container { width: 100%; }
 .first-visit-page .site-header__inner { width: calc(100% - 32px); gap: 12px; }
 .first-visit-page .primary-nav { flex: 1; width: auto; justify-content: space-between; gap: 8px; font-size: clamp(12px, 1.38vw, 20px); }
 .first-visit-page .brand--header { transform: scale(.8); width: 145px; }
 .first-visit-page .header-contact__phone { display: none; }
 .first-visit-page .reservation-header { width: 140px; }
 .first-visit-page .contact__inner { width: calc(100% - 64px); }
 .first-visit-page .contact__columns { flex-wrap: wrap; justify-content: center; gap: 32px; }
 .first-visit-page .contact { padding-bottom: 65px; }
 .first-visit-page .footer-navigation__columns { padding-inline: 32px; justify-content: space-around; gap: 32px; }
 .first-visit-page .footer-navigation a { font-size: 16px; }
 .first-visit-page .footer-navigation ul { column-gap: 24px; }
 .first-visit__step { gap: 32px; align-items: center; }
 .first-visit__badge { transform: scale(.8); transform-origin: top left; }
 body.first-visit-page .first-visit__text h2 { font-size: clamp(23px, 2.43vw, 35px); }
 body.first-visit-page .first-visit__text p { min-height: 0; font-size: clamp(16px, 1.39vw, 20px); line-height: 1.9; }
}
.first-visit-page .design-container { max-width: 100%; }
.first-visit-page .site-header__inner { max-width: calc(100% - 28px); }
@media (max-width: 767px) {
 .first-visit-page .site-header { position: relative; }
 .first-visit-page .site-header__inner { max-width: 100%; }
 .first-visit__steps { width: calc(100% - 40px); max-width: 520px; margin-top: 40px; padding-bottom: 50px; }
 .first-visit__step { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 30px; margin-bottom: 30px; }
 .first-visit__step::after { left: 0; right: 0; }
 .first-visit__badge { width: 64px; height: 64px; }
 .first-visit__text { margin-left: 5.3667%; min-width: 0; }
 .first-visit__badge span { font-size: 9px; letter-spacing: 1.2px; }
 .first-visit__badge strong { font-size: 23px; letter-spacing: 3px; padding-left: 3px; margin-top: 2px; }
 body.first-visit-page .first-visit__text h2 { margin-bottom: 12px; font-size: 23px; line-height: 1.5; letter-spacing: .5px; text-wrap: balance; }
 body.first-visit-page .first-visit__text p { min-height: 0; font-size: 16px; line-height: 1.9; letter-spacing: .3px; }
}

.first-visit__step:nth-child(even) { padding-bottom: 26px; }
@media (max-width: 1439px) { .first-visit__desktop-break { display: none; } }
@media (min-width: 768px) and (max-width: 1244px) {
 .first-visit-page .contact__columns { grid-template-columns: minmax(0, 634px); }
 .first-visit-page .contact__details { max-width: 454.324px; margin-inline: auto; }
}
@media (min-width: 768px) and (max-width: 1000px) {
 .first-visit-page .primary-nav { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 10px; font-size: 13px; }
}

