@import './reset.css';
@import './fonts.css';
@import './asset/fontawesome/css/all.css';

:root {
    --fontText: 'S-CoreDream', sans-serif;
    --fontTitle: 'KorailRoundGothic', sans-serif;
    --cBg: #f3f4f7f3;
    --cDark: #404042;
    --cNavy: #1253b2;
    --cBlue: #4287e1;
    --cSky: #1bbae3;
    --cText: #445;
    --cTextB: #4f4e4a;
    --cTextNavy: #141534;
    --cTextL: #70757a;
    --cBrown: #847b6a;
    --cBrownBg: #d5cfc5;
    --pxWidth: 1100px;
    --pxPaddingSide: max(2rem,(calc(100vw - var(--pxWidth)) / 2));
    --pxPaddingSideX: calc(var(--pxPaddingSide) * -1);
    --sdwGnb: 0 0 10px rgb(2 26 73 / .1);
    --pxHeaderHeight: 4rem;
    font: 300 16px/2em var(--fontText);
    /*background: var(--cBg);*/
    overflow-wrap: anywhere;
}

::-webkit-scrollbar { width: .5rem; height: 0; background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 0; background: #cccbc8; }

@media (hover: none) {
    ::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
}
html { overflow-x: hidden; overflow-y: auto; opacity: 0; transition: opacity .5s; }
html.on { opacity: 1; scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100%; }

a,
button { transition: .2s; -webkit-tap-highlight-color: transparent; cursor: pointer; pointer-events: auto; }
a[href^=tel]~span { display: none; }
.mobile { display: none !important; }

@media not (hover: none) {
    a[href^=tel] { display: none; }
    a[href^=tel]~span { display: unset; }
    .desktop { display: none; }
    .mobile { display: unset; }
}
.ww { display: inline-block; }

.popup {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; overflow: hidden; 
    background: #000d; visibility: hidden; transition: .5s; opacity: 0; 
    overscroll-behavior: none; }
.popup>section{
    position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto;
    width: fit-content; height: fit-content; max-width: 90vw; max-height: 90vh; padding: 2rem 2rem 0;
    border: 5px solid var(--cNavy); border-radius: 1rem; box-sizing: border-box;
    background: #fff; filter: drop-shadow(10px 10px 60px #0002); transform: translateY(4rem); transition: .5s; overscroll-behavior: none; }
.popup header button.close {
    position: absolute; right: 0; top: 0; bottom: 0;
    display: block; width: 1.6rem; height: 1.6rem; margin: auto 0; border-radius: 3px; 
    color: transparent; font-size: 0;
    transition: .2s; }
.popup header button.close::before,
.popup header button.close::after { content: '';
    position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto;
    display: block; width: 80%; height: 2px; background: var(--cNavy);
    transform: rotate(45deg); }
.popup header button.close::after { transform: rotate(-45deg); }
.popup header button.close:hover { background: var(--cBg); }
.popup>section::after { content: '';
    position: sticky; bottom: 0; z-index: 1;
    display: block; width: 100%; height: 2rem; 
    background: linear-gradient(transparent 0%, #fffd 40%, #fffe 60%, #ffff 80%); }
.popup.on { visibility: visible; opacity: 1; }
.popup.on>section { transform: none; }

table.info {
    table-layout: fixed; border-collapse: separate;
    border-top: 2px solid var(--cNavy); border-bottom: 2px solid var(--cSky);
    color: var(--cNavy); font: 500 1rem/1.2em var(--fontText); text-align: center; }
table.info :where(th,td) { padding: .75em; }
table.info th { background: var(--cBg); }
table.info thead+tbody tr:first-child th,
table.info tbody tr+tr th { border-top: 2px solid #edecf5; }
table.info :where(th,td):last-child{ border-right: 1px solid #fff; }
table.info :where(th,td):first-child{ border-left: 1px solid #fff; }

ul.hyphen li::before { content: '- '; }
ul.hyphen li { text-indent: -.8em; line-height: 1.5em; padding-left: .8em; }
/* layout */
header.common {
    position: sticky; top: 0; z-index: 100; transition: .5s;
    display: flex; justify-content: flex-end; 
    padding-left: var(--pxPaddingSide); padding-right: var(--pxPaddingSide); 
    background: linear-gradient(0, rgb(255 255 255 / .96), var(--cBg));
    box-shadow: var(--sdwGnb); }
header.common h1 {
    position: absolute; left: var(--pxPaddingSide); top: 0; overflow: hidden; 
    width: 50%; height: 4rem; font-size: 0; color: transparent; }
header.common h1 a { 
    display: block; width: 300px; height: 100%; margin-top: 4rem;
    background: url('./asset/logo-h.svg') center no-repeat; background-size: auto 50%;
    transform: scale(.9); transition: .5s; transform-origin: left center; }
/*.scrolled*/ header.common h1 a { transform: scale(.9); margin-top: 0; }

nav.gnb { flex: 0 0 100%;
    color: #858993; font: 500 1.2rem/1rem var(--fontTitle); transition: .5s; }
nav.gnb ul { display: flex; gap: 2em; justify-content: center; align-items: center; gap: 1.5em; }
nav.gnb li { position: relative; }
nav.gnb a { position: relative; display: block; padding: 1.45rem 0 1.55rem; mix-blend-mode: normal; white-space: nowrap; }
body:has(main>section.on:nth-of-type(1)) nav.gnb>ul>li:nth-child(1)>a,
body:has(main>section.on:nth-of-type(2)) nav.gnb>ul>li:nth-child(2)>a,
body:has(main>section.on:nth-of-type(3)) nav.gnb>ul>li:nth-child(3)>a,
body:has(main>section.on:nth-of-type(4)) nav.gnb>ul>li:nth-child(4)>a,
body:has(main>section.on:nth-of-type(5)) nav.gnb>ul>li:nth-child(5)>a { color: #233b7b; }
body:has(main>section.on:nth-of-type(2)) nav.gnb>ul>li:nth-child(1)>a,
body:has(main>section.on:nth-of-type(3)) nav.gnb>ul>li:nth-child(2)>a,
body:has(main>section.on:nth-of-type(4)) nav.gnb>ul>li:nth-child(3)>a,
body:has(main>section.on:nth-of-type(5)) nav.gnb>ul>li:nth-child(4)>a { color: inherit; }
nav.gnb:hover a { color: inherit !important; }
nav.gnb:hover a:hover { color: #233b7b !important; }

nav.gnb button~ul {
    position: absolute; top: 3.6rem; z-index: 1;
    display: block; min-width: 100%; height: 0; margin-left: 50%; padding: 0 1rem; border-radius: 6px; 
    background: #fff; box-shadow: var(--sdwGnb); transform: translateX(-50%);
    overflow: hidden; opacity: 0; transition: .2s; }
nav.gnb button~ul li { display: block; margin: 0; white-space: nowrap; }
nav.gnb button~ul :is(a,button) {
    display: block; width: 100%; padding: .65rem; box-sizing: border-box;
    font: 500 1.1rem/1.2rem var(--fontTitle); text-align: center; }
nav.gnb :is(a,button):hover~ul,
nav.gnb :is(a,button)~ul:hover { z-index: 2; padding: .5rem; padding-bottom: .5rem; opacity: 1; }
nav.gnb :is(a,button):hover~ul:has(>li:nth-child(1):last-child),
nav.gnb :is(a,button)~ul:hover:has(>li:nth-child(1):last-child) { height: calc(2.5rem * 1); }
nav.gnb :is(a,button):hover~ul:has(>li:nth-child(2):last-child),
nav.gnb :is(a,button)~ul:hover:has(>li:nth-child(2):last-child) { height: calc(2.5rem * 2); }
nav.gnb :is(a,button):hover~ul:has(>li:nth-child(3):last-child),
nav.gnb :is(a,button)~ul:hover:has(>li:nth-child(3):last-child) { height: calc(2.5rem * 3); }
nav.gnb :is(a,button):hover~ul:has(>li:nth-child(4):last-child),
nav.gnb :is(a,button)~ul:hover:has(>li:nth-child(4):last-child) { height: calc(2.5rem * 4); }
nav.gnb :is(a,button):hover~ul:has(>li:nth-child(5):last-child),
nav.gnb :is(a,button)~ul:hover:has(>li:nth-child(5):last-child) { height: calc(2.5rem * 5); }
nav.gnb :is(a,button):hover~ul:has(>li:nth-child(6):last-child),
nav.gnb :is(a,button)~ul:hover:has(>li:nth-child(6):last-child) { height: calc(2.5rem * 6); }
/*.scrolled*/ nav.gnb { flex-basis: 50%; }
@media (hover: none) {
    nav.gnb button~ul { display: none; }
}

figure.hi {
    position: absolute; left: 0; right: 0; z-index: 1; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    height: 100vh; pointer-events: none; }
figure.hi img {
    width: 37.5rem; max-width: 90vw; filter: drop-shadow(0 .1rem .5rem #0003);
    transform-origin: center top; transform: scale(.9); transition: .5s; }
figure.hi figcaption {
    display: grid; grid-template-columns: repeat(4, 1fr); justify-content: center; align-items: stretch; gap: 3rem; margin: 6rem 0 0; }
figure.hi figcaption dl {
    border-radius: 6px; border: 1px solid #fff9; padding: 1rem; text-align: center; 
    box-shadow: 0 .5rem 1rem .5rem #fff2; text-shadow: 0 1px 2px #fff3; white-space: nowrap;
    color: var(--cNavy); font: 400 1.2rem/1.2em var(--fontText); transition: .5s; }
figure.hi figcaption dl:nth-child(2) { transition-delay: .1s; }
figure.hi figcaption dl:nth-child(3) { transition-delay: .2s; }
figure.hi figcaption dl:nth-child(4) { transition-delay: .3s; }
figure.hi figcaption dt {
    border-bottom: 1px solid #fff9; padding-bottom: 1rem; margin-bottom: 1rem;
    color: var(--cBlue); font-weight: 900; font-size: 1.25rem; font-family: var(--fontTitle); }
figure.hi figcaption dd li { margin: .5em 1em; font-size: 1rem; }
html.on figure.hi img { transform: none; opacity: 1; background: #fffe; padding: 2rem; border-radius: 1rem; }
figure.hi img,
html.scrolled figure.hi img { transform: scale(.5) translateY(-3rem); opacity: 0; }
html.on figure.hi figcaption dl { transform: none; opacity: 1; background: linear-gradient(45deg,#fff3, #fff5); }
figure.hi figcaption dl,
html.scrolled figure.hi figcaption dl { transform: scale(.9) translateY(-20%); opacity: 0; }
video.visual { display: block; width: 100%; height: calc(100vh - var(--pxHeaderHeight) - 4rem); object-fit: cover; }
figure.visual {
    height: calc(100vh - var(--pxHeaderHeight)); margin-bottom: -4rem;
    background: url('./asset/visual.jpg') center no-repeat; background-size: cover; }
html.on figure.hi figcaption dl:hover { transform: scale(1.1); }

aside.info {
    position: relative; z-index: 9; text-align: center; 
    display: flex; justify-content: center; align-items: center; gap: 1rem;
    margin-top: 0; padding: 1rem var(--pxPaddingSide);
    background: /*#858993*/#233b7b; 
    color: #fff; font: 500 1.2rem/2rem var(--fontText); letter-spacing: -.04em; }
aside.info ul { display: flex; align-items: center; gap: 1rem; }
aside.info dl { display: flex; align-items: center; }
aside.info dt { font-size: 1rem; margin-right: .5rem }
aside.info dd { font-weight: 300; }
aside.info dd+dd { margin-left: .5rem; }
aside.info button.tel { display: none; }
aside.info .location a {
    display: block; width: max-content; height: 31px; padding: 1px 10px 0;
    border: 1px solid #fff; border-radius: 6px; font-size: 1rem; }
aside.info .location a:hover { background: #fff; color: var(--cTextB); }
aside.info :is(.blog,.instagram) a {
    position: relative; top: 0;
    display: block; height: 32px;
    background: center top no-repeat; background-size: contain;
    color: transparent; font-size: 0; }
aside.info .blog a { width: 35px; background-image: url('./asset/icon-blog.svg'); }
aside.info .instagram a { width: 31px; background-image: url('./asset/icon-instagram.svg'); }
aside.info :is(.blog,.instagram) a:hover { top: -4px; }

footer.common {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    padding: 20px var(--pxPaddingSide);
    background: /*#616671*/#233b7b; color: #fff; font: 300 14px/1.2em var(--fontText); }
footer.common { display: grid; align-items: stretch; grid-template-columns: 20vw 1fr; gap: 0 2em; }
footer.common h2 { grid-row: span 2; padding: 0; background: url('./asset/logo-h.svg') center no-repeat; font-size: 0; color: transparent; filter: brightness(9) grayscale(1); background-size: auto; }
footer.common ul { display: flex; flex-wrap: wrap; padding-top: .2em; }
footer.common ul li { padding-top: .2rem; }
footer.common ul li+li::before { content: '|'; margin: 0 .5em; }
footer.common .copyright { padding-top: .2rem; font-weight: 300; font-size: 12px; }

main>* { padding-top: var(--pxHeaderHeight); margin-top: calc(var(--pxHeaderHeight) * -1); overflow: hidden; }
main>section {
    position: relative;
    padding-left: var(--pxPaddingSide); padding-right: var(--pxPaddingSide); }
main>section:first-of-type {
    position: relative; 
    padding-top: calc(var(--pxHeaderHeight) + 4rem); margin-top: calc(var(--pxHeaderHeight) * -1 - 4rem); }
main>*::before { position: absolute; top:   var(--pxHeaderHeight); bottom: 0; left: 0; right: 0; z-index: -1; }
main>*:last-child { padding-bottom: 1rem; }
main>*>* { position: relative; z-index: 1; }

/* contents */
h2 { padding: 8rem 0 4rem; color: #858993; font: 700 2.2rem/1em var(--fontTitle); }
h2 i { position: relative; top: .02em; font-size: .85em; }

#intro {
    display: flex; flex-direction: column; justify-content: center;
    /*min-height: calc(100vh - var(--pxHeaderHeight) - 4rem);*/
    background: linear-gradient(transparent,#fff); }
#intro h2 { padding-top: 5rem; }
#intro .slogan {
    position: relative; display: flex; flex-direction: column;
    width: fit-content; padding-bottom: .4em; margin-top: auto;
    color: #1253b2; font: 400 2rem/1.4em var(--fontText); word-break: keep-all; }
#intro .slogan strong { display: inline-block; font-weight: 700; }
#intro .slogan::after { content: '';
    position: absolute; right: 0; bottom: calc(.2em - 4px);
    display: block; width: 100vw; min-width: 100%; height: 4px; background: var(--cNavy); }
#intro .feature {
    display: flex; flex-direction: column; gap: .6rem; margin-top: .8rem; margin-bottom: auto;
    color: var(--cNavy); font: 400 1rem/1.4em var(--fontText); }
#intro .feature li { position: relative; padding-left: .6em; }
#intro .feature li::before { content: '';
    position: absolute; top: 0; bottom: calc(.11em + 2px); left: 0;
    display: block; width: 3px; height: 3px;  margin: auto 0; border-radius: 50%;
    background: var(--cNavy); }
#intro .doctor {
    display: flex; flex-flow: row-reverse; align-items: flex-end; pointer-events: none;
    min-height: 0; margin-top: -16rem; }
#intro .doctor img {
    position: relative; z-index: 1; height: 100%; max-height: 40rem; transition: .2s; }
#intro .doctor figcaption dl {
    padding: 0 1em 4rem 0; color: var(--cTextL); line-height: 1.2em;
    color: var(--cNavy); }
#intro .doctor figcaption dt {
    position: relative;
    padding-bottom: .4em; margin-bottom: .4em;
    font: 400 1.2em/1.2em var(--fontTitle); }
#intro .doctor figcaption dt::before { content: '';
    position: absolute; bottom: 0; left: 0; 
    display: block; width: 100vw; height: 2px; margin-top: -1px;
    background: var(--cNavy); }
#intro .doctor figcaption dt strong { font-weight: 600; }
#intro .doctor figcaption button {
    position: relative; top: -2px;
    background: var(--cNavy); padding: .4em .5em .29em; border-radius: .2em; color: #fff; font: 400 .8rem/1rem var(--fontText); }
#intro .doctor figcaption button:hover { background: var(--cSky); }
#intro .doctor figcaption dd { margin-top: .2em; }
#intro .resume { display: flex; flex-direction: column; height: 800px; gap: 0 2rem; overflow: auto; overscroll-behavior: none; }
#intro .resume header {
    position: sticky; top: -2rem; z-index: 1; margin-top: -2rem; padding: 2rem 0 2rem;
    grid-column: 1 / -1; background: #fff; }
#intro .resume .wrap {
    flex: 1;
    display: flex; gap: 0 1.5rem; overflow: auto; width: 800px; max-width: 100%;
    overscroll-behavior: none; }
#intro .resume figure { flex: 0 0 260px; position: sticky; top: 0; grid-row: 2 / 5; }
#intro .resume figure img { width: 100%; height: 100%; object-fit: cover; }
#intro .resume h3 { color: var(--cNavy); }
#intro .resume h3 strong { font: 700 1.6rem/1em var(--fontTitle); }
#intro .resume h4 { font: 500 1.1rem/1.3rem var(--fontText); margin-bottom: 1rem; padding-top: .2rem; }
#intro .resume article {
    position: relative; overscroll-behavior: none; padding-right: .5rem; }
#intro .resume article::before,
#intro .resume article::after { content: '';
    position: sticky; top: 0; bottom: 0; z-index: 1;  display: block; height: 2rem;
    background: linear-gradient(transparent 0%, #fffd 40%, #fffe 60%, #ffff 80%); }
#intro .resume article::before {
    height: 2px; background: var(--cBg); margin-bottom: 2rem; }
#intro .resume *+h4 { padding-top: 3rem; }
#intro .resume ul { display: flex; flex-direction: column; gap: 1rem; max-width: 600px; font-weight: 400; }
#intro .resume ul[lang=en] { font: 500 .9rem/1.2rem var(--fontTitle); }
#intro .resume li { position: relative; padding-left: 1rem; transition: .2s; line-height: 1.3rem; }
#intro .resume li:hover { color: var(--cNavy); }
#intro .resume li::before { content: '';
    position: absolute; left: .3rem; top: 0.45rem;
    display: block; width: .25rem; height: .25rem; background: var(--cTextL); border-radius: 50%; }

#space { --cText: #fff;
    display: flex; flex-direction: column; justify-content: center; min-height: 0;
    box-sizing: border-box; min-height: 100vh; }
#space header { position: relative; z-index: 2; }
#space h2 { padding: 0 0 2rem; color: #fff; text-align: center; margin-top: -2rem; }
#space::before { content: ''; background: #c6c6c6; }
#space .controller {
    position: absolute; top: 0; bottom: 0; margin: auto 0;
    display: block; width: 4rem; height: 8rem;
    color: transparent; font-size: 0; }
#space .controller::before { content: '';
    position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; margin: auto;
    display: block; width: 1.5rem; aspect-ratio: 1 / 1;
    border: 2px solid; border-color: #fff #fff transparent transparent; }
#space .controller.prev { left: 0; }
#space .controller.prev::before { transform: rotate(225deg); }
#space .controller.next { right: 0; }
#space .controller.next::before { transform: rotate(45deg); }

#space nav {
    position: absolute; left: 0; right: 0; bottom: 0; 
    display: flex; margin-bottom: 0; overflow: hidden; justify-content: space-evenly; 
    font: 500 18px/1em var(--fontText); color: var(--cText); z-index: 3; padding: .5rem; }
#space nav button {
    position: relative; cursor: default;
    flex: 1; min-width: max-content; height: 2rem; white-space: nowrap; font: 500 0/1.1em var(--fontText); 
    border-radius: 6px; transition: .2s linear; }
#space nav button::after { content: '';
    position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto;
    display: block; width: .4rem; height: .4rem; border-radius: 50%; background: #fff6;
    transition: .2s; }
#space nav button.on::after/*,
#space nav button:hover::after*/ { background: #ffff; }
#space .gallery { position: relative; border-radius: 6px; overflow: hidden; }
#space .gallery ul { display: flex; width: 300%; margin-left: -100%; will-change: transition; }
#space.on .gallery ul { box-shadow: 0 0 16rem 4rem #ffffff66; }
#space .gallery.ready ul { transition: .5s; }
#space .gallery ul.items{
    &:has(li.current:nth-child(1))+nav button:nth-child(1),
    &:has(li.current:nth-child(2))+nav button:nth-child(2),
    &:has(li.current:nth-child(3))+nav button:nth-child(3),
    &:has(li.current:nth-child(4))+nav button:nth-child(4),
    &:has(li.current:nth-child(5))+nav button:nth-child(5),
    &:has(li.current:nth-child(6))+nav button:nth-child(6),
    &:has(li.current:nth-child(7))+nav button:nth-child(7),
    &:has(li.current:nth-child(8))+nav button:nth-child(8),
    &:has(li.current:nth-child(9))+nav button:nth-child(9),
    &:has(li.current:nth-child(10))+nav button:nth-child(10),
    &:has(li.current:nth-child(11))+nav button:nth-child(11),
    &:has(li.current:nth-child(12))+nav button:nth-child(12),
    &:has(li.current:nth-child(13))+nav button:nth-child(13),
    &:has(li.current:nth-child(14))+nav button:nth-child(14) { font-size: 1rem; }
    
    &:has(li.current:nth-child(1))+nav button:nth-child(1)::after,
    &:has(li.current:nth-child(2))+nav button:nth-child(2)::after,
    &:has(li.current:nth-child(3))+nav button:nth-child(3)::after,
    &:has(li.current:nth-child(4))+nav button:nth-child(4)::after,
    &:has(li.current:nth-child(5))+nav button:nth-child(5)::after,
    &:has(li.current:nth-child(6))+nav button:nth-child(6)::after,
    &:has(li.current:nth-child(7))+nav button:nth-child(7)::after,
    &:has(li.current:nth-child(8))+nav button:nth-child(8)::after,
    &:has(li.current:nth-child(9))+nav button:nth-child(9)::after,
    &:has(li.current:nth-child(10))+nav button:nth-child(10)::after,
    &:has(li.current:nth-child(11))+nav button:nth-child(11)::after,
    &:has(li.current:nth-child(12))+nav button:nth-child(12)::after,
    &:has(li.current:nth-child(13))+nav button:nth-child(13)::after,
    &:has(li.current:nth-child(14))+nav button:nth-child(14)::after { transform: scale(0); }
}
#space .gallery li { flex: 0 0 1; display: none; }
#space .gallery li.prev,
#space .gallery li.next,
#space .gallery li.current { display: block; }
#space .gallery li.prev { order: 0; }
#space .gallery li.next { order: 2; }
#space .gallery li.current { order: 1; }
#space .gallery img { width: 100%; }

:is(#subject,#info) { min-height: 0; }

#subject { overflow: visible; }
#subject>header {
    margin: 0 var(--pxPaddingSideX); padding: 0 var(--pxPaddingSide);
    background: linear-gradient(var(--cBg), #fff); }
#subject h2 { padding-top: 4rem; }
#subject>nav { position: relative; display: flex; }
#subject>nav::after { content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cNavy); }
#subject>nav button { flex: 1; 
    position: relative; padding: 1rem; border-radius: .5rem .5rem 0 0;
    display: flex; justify-content: center; align-items: center; gap: .5rem;
    color: var(--cNavy); font: 700 1.5rem var(--fontTitle); transition: .2s;
    background: linear-gradient(#f0f1f4,#fff 50%, transparent); background-position: 0 -4.5rem; background-size: 100% 200%; }
#subject>nav button i { display: block; /*margin-bottom: .8rem;*/ font-size: 2.5rem; pointer-events: none; }
#subject>nav button:hover i { animation: subjectIcon 3s infinite alternate; transform-origin: center bottom; }
@keyframes subjectIcon {
    0% { transform: none; }
    25% { transform: scale(1.1) translateX(-10%); }
    50% { transform: none; }
    75% { transform: scale(1.1) translateX(-10%); }
    0% { transform: none; }
}
#subject>nav button.on { z-index: 2; background-position: 0 0; }
#subject>section,
#subject>section>article { display: none; }
#subject>section.on,
#subject>section>article.on { display: block; }
#subject>section>nav {
    position: sticky; top: calc(var(--pxHeaderHeight) - 4rem); z-index: 2; background: rgb(255 255 255 / .96);
    margin: 0 var(--pxPaddingSideX); padding: 0 var(--pxPaddingSide);
    color: var(--cNavy); font: 400 1.3rem/1.5em var(--fontText); transition: .5s; }
.scrolled #subject>section>nav { top: var(--pxHeaderHeight); }
#subject>section>nav ul {
    display: flex; justify-content: center;
    padding: 1rem 0 .8rem; margin: 0 auto; width: max-content; min-width: 33.33%; }
#subject>section:first-of-type>nav ul { margin-left: 0; }
#subject>section:last-of-type>nav ul { margin-right: 0; }
#subject>section>nav li+li::before { content: '·'; margin: 0 .5rem; }
#subject>section>nav button { position: relative; margin-bottom: -2px; }
#subject>section>nav button::after { content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    display: block; width: 0; height: 2px; margin: 0 auto; background: var(--cNavy); transition: .3s; }
#subject>section>nav button.on::after { width: 100%; }
@media (hover: hover) {
    #subject>section>nav button:hover::after { width: 100%; }
}
#subject>section>article>section { padding: 6rem 0; }
#subject>section>article>section+section { padding-top: 0; }
#subject>section>article>section:last-child { margin-bottom: 10rem; padding-bottom: 0; }
#subject>section>article>.bg>section+section { padding-top: 6rem; }
@media (max-width: 509px) {
    #subject>nav button { flex-direction: column; font-size: 1rem; }
    #subject>section>nav { font-size: 1.25rem; }
    @keyframes subjectIcon {
        0% { transform: none; }
        25% { transform: scale(1.1) translateY(-10%); }
        50% { transform: none; }
        75% { transform: scale(1.1) translateY(-10%); }
        0% { transform: none; }
    }
}
@media (max-width: 504px) {
    #subject>section>nav { padding: 0; }
    #subject>section>nav ul { padding-left: 2rem; padding-right: 2rem; font-size: 1rem; white-space: nowrap; overflow: auto; }
}
#subject header.title {
    width: max-content; margin: 0 auto 3rem;
    color: var(--cNavy); font: 700 1.5rem/1.5em var(--fontTitle); text-align: center; }
#subject header.title::after { content: '';
    display: block; height: .2rem; background: var(--cSky); opacity: .2; }
#subject .bg {
    margin: 0 var(--pxPaddingSideX); padding: 8rem var(--pxPaddingSide); background: #f5f6fa; }
#subject p.text {
    margin: 0 auto; 
    color: var(--cText); font: 500 1rem/1.5em var(--fontText); text-align: center; word-break: keep-all; }
#subject p.text+p.text { margin-top: 1.5em; }
#subject p.text strong { font-weight: 700; color: var(--cNavy); }
#subject p.note { 
    color: var(--cNavy); font-size: .9rem; line-height: 1.2rem; margin-bottom: .2rem; text-indent: -.8rem;
    padding-left: .8rem; word-break: keep-all; letter-spacing: -.025em; }
#subject p.note::before { content: '* '; font-weight: 500; }
#subject ul.feature {
    display: flex; justify-content: space-between; max-width: 66rem; margin: 0 auto; 
    color: var(--cText); font: 300 1rem/1.5em var(--fontText); word-break: keep-all; }
#subject ul.feature dl { width: max-content; padding: 0 .2rem; }
#subject ul.feature dt {
    display: flex; flex-direction: column; justify-content: center; 
    font-weight: 500; font-size: 1.25rem; line-height: 1.4em; }
#subject ul.feature dd { font-size: .95rem; }
#subject ul.feature dd::before { content: '';
    display: block; height: 2px; margin: .75rem -.2rem; background: var(--cText); opacity: .2; }
#subject ul.feature dd .info {
    display: block; margin-top: .25rem; padding-left: .9em;
    font-weight: 700; font-size: .9em; text-indent: -.9em; }
#subject ul.feature dd .info::before { content: '* '; }
@media (max-width: 930px) {
    #subject ul.feature {
        flex-direction: column; gap: 3rem; align-items: center; 
        width: max-content; max-width: min(100%, 24rem); margin: 0 auto; }
    #subject ul.feature li,
    #subject ul.feature dl { width: 100%; }
    #subject ul.feature .ww { display: inline; }
}
#subject ul.tag {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; 
    max-width: 60rem; margin: 0 auto; }
#subject ul.tag li {
    position: relative; padding: .6rem 1rem .6rem 1.75rem; border-radius: 1.2rem;
    background: #fff; font: 300 1rem/1.2em var(--fontText); color: var(--cText); }
#subject ul.tag li::before { content: '#'; position: absolute; left: 1rem; }
@media (max-width: 629px) {
    #subject ul.tag .ww { display: block; }
}
@media (max-width: 519px) {
    #subject #subjectSleep ul.tag { flex-direction: column; white-space: nowrap; }
}
#subject ol.process { --circleR: 15.625rem; display: flex; justify-content: space-between; align-items: center; }
#subject ol.process li { position: relative; display: contents; }
#subject ol.process li+li::before { content: '';
    display: block; width: 0; height: 0;
    border: 0 solid transparent; border-width: .45rem 0 .45rem .7rem; border-left-color: var(--cNavy); }
#subject ol.process dl {
    display: flex; flex-direction: column; 
    width: var(--circleR); height: var(--circleR); border-radius: 50%; box-sizing: border-box;
    background: #fff; text-align: center; }
#subject ol.process dt { flex: 0 0 3.7em;
    display: flex; flex-direction: column; justify-content: flex-end; padding-top: 2rem;
    font-weight: 500; font-size: 1.25rem; line-height: 1.2em; }
#subject ol.process dt::after { content: '';
    display: block; height: 2px; margin: .75rem 2rem; background: var(--cText); opacity: .2; }
#subject ol.process dd { flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    line-height: 1.4em; word-spacing: -.1em; }
#subject ol.process dd::after { content: ''; flex: 0 1 3.8rem; }
#subject .keyword {
    display: block; width: max-content; padding: .5em .6em .4em; border-radius: .95em;
    background: var(--cBg); color: var(--cNavy); font-weight: 400; line-height: 1em; }
#subject dl.price {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 1rem min(10rem,10vw);
    width: max-content; text-align: center; margin: 0 auto 3rem; white-space: nowrap; }
#subject dl.price dt {
    color: var(--cDark); font: 500 1.25rem/ 1.5em var(--fontText); }
#subject dl.price dt .keyword { font-size: .8rem; margin: 0 auto; }
#subject dl.price dd.price { color: var(--cNavy); font-weight: 700; font-size: 3rem; }
#subject dl.price dd.price::before { content: '₩'; font-weight: 900; font-size: .66em; }
#subject dl.price dd.price .unit { font-size: .5em; font-weight: 600; }
#subject dl.price dd.price .note { font-weight: 400; }

#subject #sleep1 p.text { max-width: 28rem; }
#subject #sleep1 .definite dl {
    max-width: 50rem; margin: 4rem auto 0; padding: 0 1rem; 
    border: 3px solid var(--cNavy); border-radius: .5rem; color: var(--cNavy); }
#subject #sleep1 .definite dt {
    width: max-content; margin: -.75rem auto 0; padding: 0 .5em; 
    font: 700 1.5rem/1em var(--fontTitle); background: #fff; }
#subject #sleep1 .definite dd { padding: 1.05rem 0 1.8rem; font: 400 1.2rem/1em var(--fontTitle); }
#subject #sleep1 .definite dd ul {
    display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 2rem 1rem; }
#subject #sleep1 .definite dd li { text-align: center; }
#subject #sleep1 .facility figure { position: relative; margin-bottom: 3rem; }
#subject #sleep1 .facility figure img { border-radius: 1rem; }
#subject #sleep1 .facility figure figcaption {
    position: absolute; bottom: 0; left: 0; right: 0; background: #0001; padding: 1.2rem 1.5rem;
    color: #fff; font: 400 1rem/1.2em var(--fontText); }
#subject #sleep1 .factor p { margin: 0 auto 2rem; text-align: center; max-width: 50rem; }
#subject #sleep1 .factor .hi { font-weight: 700; color: var(--cNavy); }
#subject #sleep1 .factor ul {
    position: relative; min-height: 19.1875rem;
    display: grid; grid-auto-flow: column; grid-column-gap: 2rem;
    grid-template-columns: 1fr 19.1875rem 1fr; grid-template-rows: repeat(5, auto); }
#subject #sleep1 .factor ul::before { content: '';
    display: block; margin: auto; width: 19.1875rem; aspect-ratio: 1 / 1; border-radius: 50%; 
    background: url('./asset/subject1-factor.png') center no-repeat; background-size: contain;
    grid-column: 2 / 3; grid-row: 1 / 6; }
#subject #sleep1 .factor li {
    position: relative; z-index: 1; text-align: right; grid-column: 1 / 2; }
#subject #sleep1 .factor li:nth-child(3)~li { text-align: left; grid-column: 3 / 4; }
#subject #sleep1 .factor li:nth-child(1) { grid-row: 1 / 2; }
#subject #sleep1 .factor li:nth-child(2) { grid-row: 3 / 4; }
#subject #sleep1 .factor li:nth-child(3) { grid-row: 5 / 6; }
#subject #sleep1 .factor li:nth-child(4) { grid-row: 2 / 3; }
#subject #sleep1 .factor li:nth-child(5) { grid-row: 4 / 5; }
#subject #sleep1 .factor dl { position: relative; --lineWidth: calc(19.1875rem / 2); }
#subject #sleep1 .factor dl::before { content: ''; 
    position: absolute; top: calc(1.68rem / 2 - 1px); right: calc((var(--lineWidth) + 1rem) * -1);
    display: block; width: var(--lineWidth); height: 1px;
    background: var(--cSky);  }
#subject #sleep1 .factor dl::after { content: '';
    position: absolute; right: calc((var(--lineWidth) + 1rem) * -1); top: calc(1.68rem / 2 - 5px);
    display: block; width: 9px; height: 9px; background: var(--cSky); border-radius: 50%; }
#subject #sleep1 .factor dt { font: 700 1.4rem/1.2em var(--fontTitle); color: var(--cNavy); }
#subject #sleep1 .factor dt::after { content: '';
    position: absolute; right: -1rem; top: calc(1.68rem / 2 - 5px);
    display: block; width: 9px; height: 9px; background: var(--cSky); border-radius: 50%; }
#subject #sleep1 .factor dd { height: 1.5em; line-height: 1.5em; word-break: keep-all; }
#subject #sleep1 .factor li:nth-child(3)~li dl::before {
    left: calc((var(--lineWidth) + 1rem) * -1); right: auto; }
#subject #sleep1 .factor li:nth-child(3)~li dl::after { left: calc((var(--lineWidth) + 1rem) * -1); right: auto; }
#subject #sleep1 .factor li:nth-child(3)~li dt::after { left: -1rem; }
#subject #sleep1 .factor li:nth-child(1) dl { margin-top: 3.5rem; }
#subject #sleep1 .factor li:nth-child(2) dl { margin-top: -3.5rem; --lineWidth: calc(19.1875rem / 2 + 1rem); }
#subject #sleep1 .factor li:nth-child(3) dl { margin-top: -4rem; --lineWidth: calc(19.1875rem / 2 - 1rem); }
#subject #sleep1 .factor li:nth-child(4) dl { margin-top: -1.5rem; }
#subject #sleep1 .factor li:nth-child(5) dl { margin-top: -1rem; --lineWidth: calc(19.1875rem / 2 - .5rem); }
#subject #sleep1 .price+section .feature dt { min-height: 2.8em; }
@media (max-width: 519px) {
    #subject #sleep1 .factor p.text .ww { display: inline; }
}
@media (max-width: 739px) {
    #subject #sleep1 .factor ul {
        display: block; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
    #subject #sleep1 .factor li { position: static; text-align: left; margin-top: 1.5rem; }
    #subject #sleep1 .factor dl { position: static; margin: 0 auto !important; }
    #subject #sleep1 .factor dl::before,
    #subject #sleep1 .factor dl::after { content: none; }
    #subject #sleep1 .factor dt::after { top: auto; bottom: auto; left: 0; right: 0; margin: 0 auto; }
    #subject #sleep1 .factor li:hover dt::after { animation: factorBubble .5s infinite alternate; }
    #subject #sleep1 .factor li:nth-child(1) dt::after { top: 4rem; right: 3rem; }
    #subject #sleep1 .factor li:nth-child(2) dt::after { top: 8.5rem; right: .4rem; }
    #subject #sleep1 .factor li:nth-child(3) dt::after { top: 13.8rem; right: 4.8rem; }
    #subject #sleep1 .factor li:nth-child(4) dt::after { top: 7.25rem; right: -3.5rem; }
    #subject #sleep1 .factor li:nth-child(5) dt::after { top: 13rem; right: -4.5rem; }
    #subject #sleep1 .factor dd { height: auto; }
    @keyframes factorBubble {
        0% { transform: scale(1); }
        100% { transform: scale(1.5); opacity: .5; }
    }
}
@media (max-width: 979px) and (min-width: 540px) {
    #subject #sleep1 .process { position: relative; flex-wrap: wrap; width: 33rem; margin: 0 auto; gap: 2rem 0; }
    #subject #sleep1 .process li dl { margin: 0; }
    #subject #sleep1 .process li:nth-child(2n) dl { margin-top: 0; }
    #subject #sleep1 .process li+li::before,
    #subject #sleep1 .process li+li:nth-child(2n)::before { margin-top: 0; transform: rotate(0); }
    #subject #sleep1 .process li+li:nth-child(3)::before {
        position: absolute; right: 0; transform: rotate(90deg); right: calc(var(--circleR) / 2 - .45rem); }
    #subject #sleep1 .process li+li:nth-child(4)::before { order: 6; transform: rotate(180deg); }
    #subject #sleep1 .process li:nth-child(3) dl { order: 7; }
    #subject #sleep1 .process li:nth-child(4) dl { order: 5; }
}
@media (max-width: 539px) {
    #subject #sleep1 .process { flex-direction: column; gap: 1rem 0; width: auto; }
    #subject #sleep1 .process li+li::before { transform: rotate(90deg); }
}
#subject #sleep1 .insurance {
    display: grid; grid-template-columns: repeat(2,1fr); max-width: max-content; margin: 0 auto; }
#subject #sleep1 .insurance p.note { grid-column: 1 / 3; }
@media (max-width: 579px) {
    #subject dl.price { display: block; }
    #subject dl.price dd.price { margin-top: 1rem; }
    #subject dl.price dd.price+dt { margin-top: 3rem; }
    #subject #sleep1 .insurance { display: block; max-width: 40rem; margin-left: auto; margin-right: auto; }
    #subject #sleep1 .insurance table { width: 100%; margin-top: 2rem; }
    #subject ul.feature { text-align: left; }
}

#subject #sleep2 article.text { max-width: max-content; margin-left: auto; margin-right: auto; }
#subject #sleep2 p.text { margin-bottom: .2rem; }
#subject #sleep2 p.text .ww { display: block; }
@media (max-width: 630px) {
    #subject #sleep2 p.text .ww { display: inline; }
}
#subject #sleep2 .process { align-items: flex-start; }
#subject #sleep2 .process dl { margin: 0 -25rem; }
#subject #sleep2 .process li+li::before { margin-top: 13rem; transform: rotate(-45deg); }
#subject #sleep2 .process li:first-child dl { margin-left: 0; }
#subject #sleep2 .process li:last-child dl { margin-right: 0; }
#subject #sleep2 .process li:nth-child(2n)::before { transform: rotate(45deg); }
#subject #sleep2 .process li:nth-child(2n) dl { margin-top: 11.3rem; }
#subject #sleep2 .process li:nth-child(5) dt{ padding-top: 1.3rem; }
@media (max-width: 999px) and (min-width: 540px) {
    #subject #sleep2 .process {
        position: relative; flex-wrap: wrap; align-items: center; width: 33rem; margin: 0 auto; gap: 2rem 0; }
    #subject #sleep2 .process li dl { margin: 0; }
    #subject #sleep2 .process li:nth-child(2n) dl { margin-top: 0; }
    #subject #sleep2 .process li+li::before,
    #subject #sleep2 .process li+li:nth-child(2n)::before { margin-top: 0; transform: rotate(0); }
    #subject #sleep2 .process li+li:nth-child(3)::before {
        position: absolute; transform: rotate(90deg); 
        top: calc(var(--circleR) * 1 + .45rem); right: calc(var(--circleR) / 2 - .45rem); }
    #subject #sleep2 .process li+li:nth-child(4)::before { order: 6; transform: rotate(180deg); }
    #subject #sleep2 .process li:nth-child(3) dl { order: 7; }
    #subject #sleep2 .process li:nth-child(4) dl { order: 5; }
    #subject #sleep2 .process li+li:nth-child(5)::before { order: 8; 
        position: absolute; transform: rotate(90deg); 
        top: calc(var(--circleR) * 2 + 2.55rem); left: calc(var(--circleR) / 2 - .45rem); }
    #subject #sleep2 .process li:nth-child(5) dl { order: 9; }
}
@media (max-width: 539px) {
    #subject #sleep2 .process { flex-direction: column; align-items: center; gap: 1rem 0; width: auto; }
    #subject #sleep2 .process dl { margin: 0 !important; }
    #subject #sleep2 .process li+li::before { transform: rotate(90deg) !important; margin: 0 !important; }
}
#subject #sleep2 section.price p.text  { text-align: left; }
#subject #sleep2 article.price { display: flex; padding: 3rem 0 0; max-width: 65rem; margin: 0 auto 3rem; }
#subject #sleep2 article.price>dl+dl { border-left: 2px solid var(--cNavy); }
#subject #sleep2 dl.price { flex: 1; display: block; width: auto; white-space: normal; padding: 2rem 2rem 0; }
#subject #sleep2 dl.price dt { margin-bottom: 1rem; }
#subject #sleep2 table.info { margin: 2rem auto; }
#subject #sleep2 .more { text-align: left; margin-top: 3rem; }
#subject #sleep2 .more dt { display: flex; column-gap: .5rem; align-items: center; }
#subject #sleep2 .more dt .icon { color: #fff; font-weight: 700; font-size: .75rem; background: center no-repeat; background-size: contain; display: flex; align-items: center; justify-content: center; box-sizing: border-box; margin-top: -1rem; }
#subject #sleep2 .more dt .calendar { width: 2.34375rem; height: 2.65625rem; background-image: url('./asset/subject-calendar.svg'); padding-top: 1rem; }
#subject #sleep2 .more dt .stopwatch { width: 2.15625rem; height: 2.65625rem; background-image: url('./asset/subject-stopwatch.svg'); padding-top: .66rem; }
#subject #sleep2 .more dd { margin-top: 1em; }
#subject #sleep2 .more .condition { line-height: 1.5em; }
#subject #sleep2 .more .condition strong { font-weight: 700; color: var(--cNavy); }
#subject #sleep2 .more .case dl { margin-top: 1.5rem; }
#subject #sleep2 .more .case dt {
    width: max-content; padding: .5em 1em .4em; background: #c0bfc3;
    color: #fff; font: 400 1rem/1.5em var(--fontText); border-radius: 1.2rem; }
#subject #sleep2 .more .case .success dt { background: var(--cNavy); }
#subject #sleep2 .more .conversation dl { display: flex; flex-direction: column; margin-top: 1.5rem; gap: 1.5rem; }
#subject #sleep2 .more .conversation :where(dt,dd) {
    padding: .5em 1em .4em; font: 400 1rem/1.5em var(--fontText); border-radius: 1.2rem 1.2rem 1.2rem 0;
    background: #ddf5fb; max-width: max-content; }
#subject #sleep2 .more .conversation dd { background: var(--cNavy); color: #fff; border-radius: 1.2rem 1.2rem 0 1.2rem; align-self: flex-end; margin: 0; }
#subject #sleep2 .more .conversation dd .ww { display: block; }
#subject #sleep2 dl.price.mask { border-top: 2px solid var(--cNavy); max-width: 23rem; }
@media (max-width: 842px) {
    #subject #sleep2 article.price strong { display: inline-block; }
    #subject #sleep2 dl.price { max-width: 23rem; }
    #subject #sleep2 .more .conversation dd .ww { display: inline; }
}
@media (max-width: 642px) {
    #subject #sleep2 article.price { display: block; }
    #subject #sleep2 article.price>dl+dl { border-left: 0 none; border-top: 2px solid var(--cNavy); }
}
#subject #sleep3 figure::before /*img*/ { content: ''; 
    display: block; width: 34.375rem; height: 34.375rem; box-sizing: border-box; margin: 0 auto;
    border: 1rem solid var(--cNavy); border-radius: 50%;
    background: url('./asset/subject3-photo.jpg') 84% center no-repeat; background-size: cover; }
#subject #sleep3 figcaption { padding-top: 1.5rem; }
#subject #sleep3 figcaption p.text { margin-top: 1.5rem; }
#subject #sleep3 figcaption p.text+p.text::before { content: '';
    display: block; width: 10rem; height: 2px; margin: 0 auto 1.5rem;
    background: var(--cText); opacity: .2; }
#subject :is(#subjectBreath,#subjectHearing) .definite { padding-bottom: 4rem; }
#subject :is(#subjectBreath,#subjectHearing) .bg { padding-top: 4rem; }
#subject :is(#sleep1,#subjectBreath,#subjectHearing) ul.feature {
    flex-wrap: wrap; gap: 2rem; margin-top: 6rem; justify-content: center; }
#subject :is(#sleep1,#subjectBreath,#subjectHearing) ul.feature li { flex: 0 1 30%; }
#subject :is(#sleep1,#subjectBreath,#subjectHearing) ul.feature dl { width: auto; }
#subject #breath1 .tag { max-width: 40rem; }
#subject #breath2 p.text { max-width: 40rem; }
#subject #breath3 .tag { max-width: 45rem; }
@media (max-width: 699px) {
#subject #breath2 .tag { max-width: 23rem; }
#subject #breath4 .tag { max-width: 26rem; }
    #subject #hearing1 .tag { max-width: 26rem; }
    #subject #hearing2 .tag { max-width: 26rem; }
    #subject #hearing3 .tag { max-width: 26rem; }
    #subject #hearing4 .tag { max-width: 25rem; }
}
#subject #hearing4 .feature { flex-wrap: nowrap !important; }
#subject #hearing4 p.text { max-width: 40rem; }
@media (max-width: 930px) {
    #subject :is(#subjectBreath,#subjectHearing) p.text { width: max-content; max-width: min(100%,28rem); text-align: left; }
    #subject :is(#subjectBreath,#subjectHearing) ul.feature { max-width: min(100%, 28rem); }
}
figure.photo img {
    width: 100%; height: calc(100vh - var(--pxHeaderHeight)); max-height: 800px;
    object-fit: cover; object-position: center top; }

#info {
    display: grid; grid-template-columns: 1fr 1fr; justify-content: center; gap: 0 4rem;
    padding-bottom: 5rem; align-items: flex-start; background: var(--cBg); }
#info header { grid-column: 1 / -1; }
#info article {
    display: grid; grid-template-columns: repeat(2, minmax(100px,calc(50% - .5rem)));
    gap: 1rem; }
#info h3 { grid-column: 1 / -1;
    display: flex; align-items: center; gap: .5em; 
    color: var(--cNavy); font: 600 1.5rem/1.5em var(--fontText); }
#info h3::before,
#info h3::after { content: ''; flex: 1; height: 2px; background: #fff; }
#info dl {
    color: var(--cTextL); font: 400 1rem/1.5em var(--fontText); text-align: center;
    background: #fff; border-radius: 4px; padding: 1rem; }
#info dt { font-weight: 700; margin-bottom: .3em; color: var(--cText); }

#visit {
    padding-left: var(--pxPaddingSide); padding-right: var(--pxPaddingSide);
    font: 200 19px/1.5em var(--fontText); color: var(--cTextB); }
#visit::before { content: ''; background: /*#858993*/#fafafa; }
#visit header { font-weight: 500; }
#visit h2 { color: /*#fff*/var(--cNavy); text-align: center; /*padding-bottom: 0;*/ }
#visit article { border-radius: 6px; padding: 3em 0; overflow: hidden; /*color: #fff;*/ }
#visit .info { display: flex; justify-content: space-evenly; z-index: 1; padding-top: 2rem; }
#visit .info dl { display: flex; align-items: center; gap: 1em; color: var(--cNavy); }
#visit .info dt {
    padding-top: 6px;
    font-size: 0; background: center no-repeat; }
#visit .info dt i { font-size: 2rem; }
#visit .info dd { font-weight: 500; }
#visit .map { height: 580px; padding: 0; margin-left: var(--pxPaddingSideX); margin-right: var(--pxPaddingSideX); border-radius: 0; }
#visit #map { width: 100%; height: 100%; }
#visit .address header { display: flex; align-items: center; color: var(--cNavy); }
#visit .address header a { flex: 0 0 auto;
    display: inline-block; margin-left: .3em; padding: .38em .61em .28em; border-radius: 6px; 
    background: /*#616671*/ var(--cNavy); color: #fff; }
@media (hover: hover) {
    #visit .address header a:hover { background: var(--cNavy); }
}
#visit .address dl { margin-top: 2em; }
#visit .address :is(dt,dd) { margin-top: .5em; }
#visit .address dt { font-weight: 600; color: var(--cNavy); }
#visit .address dt i { font-size: 1.5em; margin-right: .2em; }
#visit .address dd { padding-left: 1.5rem; position: relative; font-weight: 400; }
#visit .address dd::before { content: '•';
    position: absolute; left: 0; top: 0; display: block; }

@media (max-width: 1099px) {
    :root { font-size: 14px; }
    main>section:first-of-type {
        padding-top: calc(var(--pxHeaderHeight) + 4.4rem);
        margin-top: calc(var(--pxHeaderHeight) * -1 - 4.4rem); }
}
@media (max-width: 1023px) {
    #space { max-height: none; padding-left: 0; padding-right: 0; padding-bottom: 2.6rem; }
    #space .controller { bottom: 3rem; width: 2rem; }
    #space .controller::before { width: .5rem; }
    #space .gallery { border-radius: 0; }
    #space .gallery ul { padding-bottom: 3rem; }
    
}
@media (max-width: 919px) {
    figure.hi img { width: 30rem; }
    figure.hi figcaption { flex-basis: calc(90vh - 25rem); align-content: center; margin: 0;
        align-content: center; padding-bottom: 4rem; padding-bottom: 0;
        grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 0; }
    #intro .doctor figure { height: calc(100% - 12rem); }
    
    #info { display: block; }
    #info h2 { text-align: center; }
    #info article { max-width: 360px; margin-left: auto; margin-right: auto; }
    #info article+article { margin-top: 4rem; }
}
@media (max-width: 859px) {
    /*#intro { height: auto; min-height: calc(100vh - var(--pxHeaderHeight) - 4rem); }*/
    #intro .doctor { height: 600px; margin-top: -4rem; }
    
    #subject>article { flex-wrap: wrap; }
}
@media (max-width: 824px) {
    figure.hi img { margin-bottom: 2rem; }
}
@media (max-width: 809px) {
    #visit .info { flex-direction: column; max-width: max-content; margin-left: auto; margin-right: auto; }
    #visit .info dl+dl { margin-top: 2rem; }
}
@media (max-width: 799px) {
    header.common { display: block; padding: 0; }
    header.common h1 { position: static; width: auto; height: 0; transition: .5s; background: linear-gradient(var(--cBg),#fff); }
    header.common h1 a { width: auto; transform-origin: center; margin-top: 0; }
    /*.scrolled*/ header.common h1 { height: 4rem; }
    /*.scrolled*/ header.common { margin-bottom: -4rem; }
    
    main>* { --pxHeaderHeight: 8rem; }
    
    figure.visual { background-position: calc(95vw - 100vh) center; }
    figure.visual { background-position: 100% center; animation: visualScroll 15s infinite alternate cubic-bezier(0.45, 0, 0.55, 1); }
    @keyframes visualScroll {
        0% { background-position: 78% center; }
        /*2% { background-position: 78% center; }
        10% { background-position: 74% center; }
        20% { background-position: 68% center; }
        80% { background-position: 40% center; }
        90% { background-position: 34% center; }
        98% { background-position: 30% center; }*/
        100% { background-position: 30% center; }
    }
}
@media (max-width: 789px) {
    footer.common { display: block; }
    footer.common h2 { height: 2rem; background-position: left center; margin-bottom: 1rem; }
}
@media (max-width: 729px) {
    aside.info dl,
    aside.info ul,
    aside.info { flex-wrap: wrap; justify-content: center; }
    aside.info ul { display: contents; }
    aside.info { display: grid; grid-template-columns: auto auto auto; margin-top: -3.4rem; padding-left: 0; padding-right: 0; }
    aside.info ul:first-child li:first-child { grid-column: 1 / -1; }
    
    main>section:first-of-type {
        padding-top: calc(var(--pxHeaderHeight));
        margin-top: calc(var(--pxHeaderHeight) * -1); }
}
@media (max-height: 819px) {
    #space { padding-top: calc(var(--pxHeaderHeight) + 2rem); padding-bottom: 2rem; }
    #space h2 { margin-top: 0; }
}
@media (max-height: 729px) {
    video.visual { height: calc(100vh + 16rem); }
    figure.hi { height: calc(100vh + 20rem); justify-content: flex-start; }
    figure.hi img { height: 100vh; flex: 0 0 100vh; box-sizing: border-box; padding-bottom: 4rem; }
    figure.hi figcaption { flex-basis: calc(100vh - 8rem); align-content: center; margin: 0; }
    
    aside.info { position: absolute; top: calc(100vh - 4rem); left: 0; right: 0; }
    figure.hi figcaption dl,
    html.scrolled figure.hi figcaption dl { transform: none; opacity: 1; }
    
    main>section:first-of-type {
        padding-top: calc(var(--pxHeaderHeight)); margin-top: calc(var(--pxHeaderHeight) * -1); }
    /*#intro { height: calc(100vh - 4rem); }*/
    #intro h2 { padding: 8rem 0 4rem; }
    #intro .doctor { max-height: 90vh; }
}
@media (max-height: 729px) and (max-width: 919px) {
    video.visual { height: calc(100vh + 28rem); }
    figure.hi figcaption { margin-top: 4rem; }
}
@media (max-width: 709px) {
    #intro .doctor figcaption button { display: block; margin-top: .4rem; }
}
@media (max-width: 679px) {
    #subject>article { flex-direction: column; }
}
@media (max-width: 629px) {
    #intro .resume .wrap { flex-direction: column; }
    #intro .resume figure { position: relative; height: 75%; }
    #intro .resume figure img { height: 100%; object-position: center bottom; }
    
    #intro .doctor {
        display: block; max-width: 22rem; width: 100%; max-height: none; height: auto;
        margin-top: 5rem; margin-left: auto; margin-right: auto;
        text-align: center;}
    #intro .doctor img { max-height: 50vh; }
    #intro .doctor figcaption dl { padding-right: 0; }
    #intro .doctor figcaption dt { padding-top: .5rem; }
    #intro .doctor figcaption dt::before { bottom: auto; top: 0; right: 0; width: auto; }
    #intro .doctor figcaption button { margin-left: auto; margin-right: auto; }
}
@media (max-width: 589px) {
    #visit article { font-size: 1.15rem; }
    footer.common ul { display: block; }
    footer.common ul li+li::before { content: none; }
    
    #intro .slogan { font-size: 1.6rem; }
}
@media (max-width: 504px) {
    nav.gnb ul {
        width: 30rem; max-width: 100vw; box-sizing: border-box; margin: 0 auto;
        gap: .5rem; font-size: 1rem; justify-content: space-between; padding: 0 1.5rem; overflow: auto; }
}
@media (max-width: 504px) and (min-height: 700px) {
    /*#space .gallery img { aspect-ratio: 1 / 1; object-fit: cover; }*/
}
@media (max-width: 409px) {
    #subject>article+article { border-top: 2px solid #fff; }
    #subject>article>dl { display: block; }
    #subject>article>dl>dd { border-top: 0 none; margin-top: 0; }
    
    #info article { grid-template-columns: auto; }
}
@media (max-width: 359px) {
    aside.info { padding-left: 0; padding-right: 0; }
}
@media (max-height: 729px) and (max-width: 709px) {
    figure.hi figcaption { margin-top: 4rem; }
}
@media (max-height: 729px) and (max-width: 529px) {
}
@media (max-height: 729px) and (max-width: 389px) {
    figure.hi figcaption { height: 100vh; }
}
@media (max-width: 469px) {
    #visit .info dl { display: block; text-align: center; }
    figure.hi figcaption { grid-template-columns: 1fr 1fr; padding-left: 1rem; padding-right: 1rem; }
    figure.hi figcaption dd li { margin-left: 0; margin-right: 0; }
}
@media (max-height: 729px) and (max-width: 359px) {
    figure.hi img { width: 80vw; }
    figure.hi figcaption { grid-template-columns: auto; margin-top: 4rem; }
    video.visual { height: calc(100vh + 51rem); }
    aside.info { margin: -3.4rem 0 calc(100vh + 5rem); }
}
@media (hover: none) {
    #visit .map::after { position: absolute; content: ''; display: block; left: 0; right: 0; top: 0; bottom: 0; }
}