.layout {
    width: min(1340px, calc(100% - 80px));
    margin: 0 auto;
}

.content-number span,
.detail-index span,
.profile-points b,
[lang="en"] {
    font-size: 14px !important;
}

.sub-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(ellipse at 8% 8%, rgba(203, 247, 235, .9) 0%, rgba(203, 247, 235, 0) 38%),
        radial-gradient(ellipse at 77% 105%, rgba(255, 221, 235, .78) 0%, rgba(255, 221, 235, 0) 38%),
        radial-gradient(ellipse at 55% 78%, rgba(255, 248, 195, .68) 0%, rgba(255, 248, 195, 0) 34%),
        linear-gradient(110deg, #f8fbec 0%, #eaf8f3 48%, #e9f5f7 100%);
}

.sub-hero::before {
    content: "";
    position: absolute;
    right: 8%;
    top: -12px;
    width: 520px;
    height: 105px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .56);
    filter: blur(18px);
    opacity: .9;
    transform: rotate(19deg);
}

.sub-hero::after {
    content: "";
    position: absolute;
    right: 4%;
    bottom: -20px;
    width: 380px;
    height: 115px;
    border-radius: 50%;
    background: linear-gradient(100deg, rgba(114, 217, 227, .12), rgba(242, 63, 148, .18), rgba(255, 230, 106, .24));
    filter: blur(24px);
    opacity: .72;
    transform: rotate(-14deg);
}

.sub-hero .layout {
    position: relative;
    z-index: 2;
    width: min(1340px, calc(100% - 80px));
}

.sub-hero .layout::after {
    display: none;
}

.sub-hero span {
    font-size:16px;
    font-weight:600;
    letter-spacing: .16em;
}

.sub-hero h1 {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.045em;
}

.sub-hero p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.intro-sub-hero,
.profile-sub-hero,
.compact-sub-hero {
    background:
        radial-gradient(ellipse at 5% 0%, rgba(219, 246, 205, .88) 0%, rgba(219, 246, 205, 0) 38%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 220, 234, .7) 0%, rgba(255, 220, 234, 0) 38%),
        radial-gradient(ellipse at 58% 72%, rgba(255, 247, 190, .64) 0%, rgba(255, 247, 190, 0) 35%),
        linear-gradient(110deg, #fafbea 0%, #ecf8ee 48%, #e8f5f5 100%);
}

.program-sub-hero,
.yomi-sub-hero,
.cooking-sub-hero,
.oneday-sub-hero {
    background:
        radial-gradient(ellipse at 4% 0%, rgba(196, 243, 220, .88) 0%, rgba(196, 243, 220, 0) 38%),
        radial-gradient(ellipse at 82% 105%, rgba(255, 218, 234, .68) 0%, rgba(255, 218, 234, 0) 39%),
        radial-gradient(ellipse at 56% 76%, rgba(229, 246, 176, .58) 0%, rgba(229, 246, 176, 0) 34%),
        linear-gradient(110deg, #f1faee 0%, #e5f7f3 48%, #e8f3f9 100%);
}

.content-section {
    padding: 110px 0;
    scroll-margin-top: 130px;
}

.content-section.muted {
    background: var(--gray-100);
}

.content-grid,
.detail-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 820px);
    justify-content: center;
    gap: 80px;
}

.content-number,
.detail-index {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 7px;
}

.content-number b,
.detail-index b {
    color: var(--pink);
    font-size: 33px;
    line-height: 1;
}

.content-number span,
.detail-index span {
    font-size:16px;
    font-weight:600;
    letter-spacing: .14em;
}

.content-kicker {
    display: inline-block;
    color: var(--pink);
    font-size:16px;
    font-weight:600;
    letter-spacing: .08em;
}

.visual-detail,
.visual-detail-page .detail-layout {
    display: block;
}

.visual-detail > article,
.visual-detail-page .detail-layout > article {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.program-single .detail-layout {
    display: block;
}

.program-single .detail-layout > article {
    width: 100%;
    max-width: none;
}

.program-single .detail-layout > article::after,
.location-info::after {
    display: table;
    clear: both;
    content: "";
}

.program-single .button {
    float: right;
}

.director-profile-visual {
    display: grid;
    grid-template-columns: minmax(240px, 266px) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
    margin: 42px 0 60px;
}

.director-photo {
    position: relative;
    overflow: hidden;
    min-height: 0;
    width: 100%;
    aspect-ratio: 1256 / 1085;
    margin: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .86), transparent 32%),
        radial-gradient(circle at 80% 82%, rgba(255, 221, 235, .62), transparent 38%),
        linear-gradient(145deg, #eef7df, #e1f2ef);
}

.director-photo img {
    width: 110%;
    height: 112%;
    max-width: none;
    margin: -6% -5%;
    object-fit: cover;
    object-position: center;
}

.director-photo-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    color: var(--gray-500);
    text-align: center;
}

.director-photo-placeholder[hidden] {
    display: none !important;
}

.director-photo-placeholder::before {
    content: "";
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 105px 0 42px rgba(255, 255, 255, .75);
}

.director-photo-placeholder span {
    position: relative;
    margin-top: 65px;
    font-size:16px;
    letter-spacing: .08em;
}

.director-profile-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    padding: 4px 0 0;
    background: transparent;
}

.director-profile-copy h3 {
    margin: 0 0 25px;
    font-size: 30px;
    line-height: 1.4;
}

.director-profile-copy > p:not(.director-signature) {
    margin: 0 0 17px;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.85;
}

.director-profile-copy .profile-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0 22px;
}

.director-history {
    width: 100%;
    margin: 0;
}

.director-profile-copy .profile-points > div {
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: center;
    padding: 15px 18px;
}

.director-profile-copy .profile-points b {
    margin: 0;
}

.director-signature {
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
    margin: 2px 8px 0 0;
    color: #414843;
    line-height: 1;
}

.director-signature span {
    font-family: "Pretendard", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.director-signature img {
    width: 166px;
    height: auto;
    display: block;
}

.detail-feature-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 7;
    margin: 0 0 42px;
    border-radius: 24px;
    background: var(--gray-100);
}

.detail-feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(35, 43, 37, .16));
    pointer-events: none;
}

.detail-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-feature-media.portrait-tone img {
    object-position: center 42%;
}

.detail-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 42px 0 0;
}

.detail-image-row img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.prose-card h2,
.program-detail h2,
.location-info h2 {
    margin: 17px 0 31px;
    font-size: 42px;
    line-height: 1.28;
    font-weight:600;
    letter-spacing: -.055em;
}

.prose-card p,
.program-detail article > p {
    margin: 0 0 20px;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.95;
}

.prose-card blockquote {
    margin: 42px 0 0;
    padding: 28px 30px;
    border-left: 5px solid var(--pink);
    background: var(--lime-soft);
    font-size: 21px;
    line-height: 1.65;
    font-weight:600;
}

.prose-card blockquote small {
    display: block;
    margin-top: 7px;
    color: var(--gray-700);
    font-size:16px;
    font-weight: 500;
}

.program-detail h3 {
    margin: -12px 0 27px;
    font-size: 20px;
}

.program-detail h3 small {
    color: var(--pink);
}

.highlight-box {
    margin-top: 35px;
    padding: 25px 28px;
    border-radius: 16px;
    background: var(--lime);
    font-size: 17px;
    line-height: 1.75;
    font-weight:600;
}

.greeting-philosophy strong,
.greeting-philosophy span {
    display: block;
}

.greeting-philosophy strong {
    font-size: 21px;
}

.greeting-philosophy span {
    margin-top: 6px;
    color: var(--gray-700);
    font-size: 16px;
    font-weight: 500;
}

.profile-points,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 36px;
}

.profile-points > div,
.feature-grid > div {
    padding: 25px 22px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
}

.profile-points b,
.feature-grid b {
    display: block;
    margin-bottom: 10px;
    color: var(--pink);
    font-size:16px;
}

.profile-points span,
.feature-grid p {
    margin: 0;
    color: var(--gray-700);
    font-size:16px;
    line-height: 1.65;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 36px;
}

.process-list > div {
    padding: 26px 22px;
    border-radius: 16px;
    background: var(--gray-100);
}

.process-list span,
.process-list b {
    display: block;
}

.process-list span {
    margin-bottom: 15px;
    color: var(--pink);
    font-size:16px;
    font-weight:600;
    letter-spacing: .1em;
}

.process-list b {
    margin-bottom: 10px;
    font-size: 19px;
}

.process-list p {
    margin: 0;
    color: var(--gray-700);
    font-size:16px;
    line-height: 1.65;
}

.detail-cta {
    margin-top: 36px;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 36px;
}

.age-grid > div {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #fff;
}

.age-grid b {
    display: block;
    font-size: 21px;
}

.age-grid span {
    display: block;
    margin: 6px 0 18px;
    color: var(--pink);
    font-size:16px;
    font-weight:600;
    letter-spacing: .1em;
}

.age-grid p,
.special-list p {
    margin: 0;
    color: var(--gray-700);
    font-size:16px;
    line-height: 1.75;
}

.special-list {
    margin: 36px 0;
    border-top: 2px solid var(--gray-900);
}

.special-list > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
}

.special-list b {
    font-size: 18px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    padding: 0 27px;
    border-radius: 999px;
    font-size:16px;
    font-weight:600;
}

.button-pink {
    background: var(--pink);
    color: #fff;
}

.button-dark {
    background: var(--gray-700);
    color: #fff;
}

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
}

.map-embed {
    width: 100%;
    overflow: hidden;
    border-radius: 25px;
    background: #edf0ec;
}

.map-embed .root_daum_roughmap {
    width: 100% !important;
}

.map-embed .root_daum_roughmap .wrap_map {
    height: 470px !important;
}

.map-embed .root_daum_roughmap .wrap_controllers,
.map-embed .root_daum_roughmap .map_border {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.location-info dl {
    margin: 30px 0;
    border-top: 2px solid var(--gray-900);
}

.location-info dl > div {
    display: grid;
    grid-template-columns: 85px 1fr;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-200);
}

.location-info dt {
    font-size: 16px;
    font-weight:600;
}

.location-info dd {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.7;
}

.location-info dd a[href^="tel:"] {
    display: inline-block;
    color: var(--gray-700);
    font-weight:600;
}

.location-info .button {
    float: right;
}

@media (max-width: 920px) {
    .layout {
        width: calc(100% - 42px);
    }

    .content-grid,
    .detail-layout {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 45px;
    }

    .location-grid {
        gap: 40px;
    }
}

@media (max-width: 720px) {
    .layout {
        width: calc(100% - 34px);
    }

    .sub-hero .layout {
        width: calc(100% - 34px);
    }

    .sub-hero {
        min-height: 230px;
    }

    .sub-hero::after {
        right: -90px;
        bottom: -35px;
    }

    .sub-hero h1 {
        font-size: 32px;
    }

    .sub-hero p {
        font-size:16px;
    }

    .content-section {
        padding: 75px 0;
    }

    .content-grid,
    .detail-layout,
    .location-grid {
        display: block;
    }

    .content-number,
    .detail-index {
        margin-bottom: 28px;
    }

    .prose-card h2,
    .program-detail h2,
    .location-info h2 {
        font-size: 33px;
    }

    .prose-card p,
    .program-detail article > p {
        font-size: 16px;
    }

    .prose-card blockquote {
        margin-top: 30px;
        padding: 22px;
        font-size: 18px;
    }

    .age-grid {
        grid-template-columns: 1fr;
    }

    .profile-points,
    .feature-grid,
    .process-list {
        grid-template-columns: 1fr;
    }

    .detail-feature-media {
        aspect-ratio: 4 / 3;
        margin-bottom: 30px;
        border-radius: 17px;
    }

    .detail-image-row {
        grid-template-columns: 1fr;
    }

    .director-profile-visual {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .director-photo {
        width: min(70%, 266px);
        min-height: 0;
    }

    .director-profile-copy {
        padding: 8px 0 0;
    }

    .director-profile-copy .profile-points > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .director-signature {
        margin-top: 10px;
    }

    .age-grid > div {
        min-height: auto;
    }

    .special-list > div {
        display: block;
    }

    .special-list p {
        margin-top: 10px;
    }

    .map-embed .root_daum_roughmap .wrap_map {
        height: 330px !important;
    }

    .location-info {
        margin-top: 45px;
    }
}
