@charset "utf-8"; 


/* main
------------------------------------------------------ */
.wrap{position:relative; }

.full_nav{position:fixed; top: 50%; right: 0; width: 100px; text-align: center; z-index: 105; transform:translateY(-50%); }
.full_nav > ul{position:relative; }
.full_nav > ul > li{}
.full_nav > ul > li p{position:absolute; top: -75px; left: 0; width: 100%; text-align: right; display:inline-block; text-transform: uppercase; font-weight:100; font-size:10px; letter-spacing:0.02em; color: #fff; transform:rotate(90deg);}
.full_nav > ul > li > ul{margin-top: 30px;}
.full_nav > ul > li > ul > li{width: 6px; height: 6px; background: #ddd; vertical-align: top; transition:0.5s; margin: 0 auto 26px; cursor: pointer; border-radius:50%}
.full_nav > ul > li > ul > li:last-of-type{margin-bottom:0;}
.full_nav > ul > li > ul > li p{font-size:0; overflow: hidden;}
.full_nav > ul > li > ul > li.on{width: 16px; height: 16px; box-sizing:border-box; border:1px solid #ddd; background: transparent; border-radius:50%}

.full_down{position:fixed; width: 100px; height: 100px; bottom: 0; right: 0; text-align: center; cursor: pointer; z-index: 10;}
.full_down i{color: #fff; text-align: center; line-height: 100px; font-size:20px;}

.top_btn{display:none; width: 100px; height: 100px; position:fixed; bottom: 0; right: 0; text-align: center; cursor: pointer; z-index: 10;}
.top_btn .p50{display:flex; flex-direction:column; justify-content:center; align-items:center; height: 100px;}
.top_btn i{color: #fff;}
.top_btn p{color: #fff; font-weight:bold; font-size:12px; margin-top: 5px;}

/* main visual */
#main_visual{ overflow:hidden; position:relative; z-index:1; height:calc(1000rem); color:#fff; text-align:center;}
#main_visual .bx-wrapper{height:100%; margin-bottom:0; background:transparent; border:0; box-shadow:none;}
#main_visual .bx-viewport{height:100% !important;}
#main_visual .slider{height:100%;}
#main_visual .roll{position:relative; height:100%;}
#main_visual .roll:after{content:""; position:absolute; z-index:1; top:0; right:0; bottom:0; left:0; pointer-events:none; background:linear-gradient(90deg, rgba(0,0,0,.36) 0%, rgba(0,0,0,.12) 52%, rgba(0,0,0,.02) 100%);}
#main_visual .roll_txt{position:absolute; z-index:2; top:50%; left:50%; width:1400rem; max-width:calc(100% - 80rem); margin:0; transform:translate(-50%, -50%); text-align:left;}
#main_visual .roll_img{z-index:0; position:absolute; left:0; top:0; width:100%; height:100%; background-size:cover; background-position:center top; animation:imagescale 6s infinite; -webkit-animation:imagescale 6s infinite; -moz-animation:imagescale 6s infinite; -o-webkit-animation:imagescale 6s infinite;}
#main_visual .roll01{background-image:url(../img/main/visual01.jpg);}
#main_visual .roll02{background-image:url(../img/main/visual02.jpg);}
#main_visual .roll03{background-image:url(../img/main/visual03.jpg);}
#main_visual .roll04{background-image:url(../img/main/visual04.jpg);}
#main_visual span{display:block; margin:0 0 14rem; font-weight:800; font-size:20rem; color:rgba(255,255,255,.72); overflow:hidden; line-height:1.2; opacity:1;}
#main_visual h2{margin:0 0 20rem; font-weight:800; font-size:45rem; color:#fff; overflow:hidden; line-height:1.2; word-break:keep-all; text-shadow:1px 2px 5px rgba(0,0,0,.65); opacity:1;}
#main_visual p{max-width:950rem; margin:0; font-weight:800; line-height:1.35; color:#fff; font-size:33rem; letter-spacing:-.5px; word-break:keep-all; text-shadow:1px 2px 5px rgba(0,0,0,.65); opacity:1;}
#main_visual .roll.is-active .roll_txt > *{animation:down 1.1s .15s both;}
#main_visual .btn_more{margin-top:50rem}
#main_visual .roll_txt2{display:inline-block; margin-right:80rem; text-align:left;}
#main_visual .bx-controls{ z-index:100; width:100%; text-align:center;}
#main_visual .bx-controls-direction{}
#main_visual .bx-pager{display:inline-block; vertical-align:middle;}
#main_visual .bx-pager > div{display:inline-block;}
#main_visual .bx-pager a{display:inline-block; width:12rem; height:12rem; margin:0 5rem; border:2px solid #fff; font-size:0; text-indent:-9000px; border-radius:50%;}
#main_visual .bx-pager a.active{background:#fff;}
#main_visual .bx-controls-auto{display:inline-block; vertical-align:middle;}
#main_visual .bx-controls-auto > div{display:inline-block;}
#main_visual .bx-controls-auto a{display:inline-block; width:20px; height:20px; margin:0 5px; background-position:center; font-size:0; color:#fff; text-indent:-9000px; background-repeat:no-repeat;}
#main_visual .bx-controls-auto a.bx-start{background-image:url(../img/btn_play.png);}
#main_visual .bx-controls-auto a.bx-stop{background-image:url(../img/btn_pause.png);}
#main_visual .bx-controls-auto a.active{display:none;}

/* 이전다음버튼일때 */
#main_visual .bx-default-pager{display:none; position: absolute; left:0; width: 100%;bottom:30rem;z-index: 60;}
#main_visual .bx-controls-direction{position: absolute; left:0; width: 100%;top:48%;z-index: 60;}
#main_visual .bx-controls-direction a.bx-prev:After{transform:rotate(180deg); -webkit-transform:rotate(180deg);}
#main_visual .bx-controls-direction a:hover{}
#main_visual .bx-controls-direction a{display:block; position:absolute; overflow:hidden; width:28rem; height:46rem; text-indent:-9999px; transition:all 0.2s ease-out 0s;}
#main_visual .bx-controls-direction a:after{content:""; position:absolute; top:0; left:0; width:100%; height:100%; background:url(../img/layout/icon_btn_arrow.svg) no-repeat 50% 50%;}
#main_visual .bx-controls-direction a.bx-next{right:100rem;}
#main_visual .bx-controls-direction a.bx-prev{left:100rem;}

@keyframes imagescale {
  0% {
    transform: scale(1.1)  rotate(.001deg);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
  }

  100% {
    transform: scale(1)  rotate(.001deg);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
  }
}

@media (max-width:1700px){

	#main_visual .bx-controls-direction a.bx-prev{left:20rem;}
	#main_visual .bx-controls-direction a.bx-next{right:20rem;}
}

@media (max-width:1480px){
	#main_visual{height:1000rem;}
	#main_visual .roll_img{    background-position: 50%;}
}

@media (max-width:1023px) {
    #main_visual{margin-top:80rem; height:700rem;}
    #main_visual .roll_txt{width:auto; max-width:calc(100% - 64rem); text-align:center;}
    #main_visual h2{font-size:40rem;}
    #main_visual p{max-width:760rem; margin-right:auto; margin-left:auto; font-size:25rem;}
}


@media (max-width:860px){
	
	#main_visual .bx-default-pager{display:none;}
	#main_visual .bx-controls-direction{display:none;}



}

@media (max-width:540px) {
    #main_visual{height:520rem; height:calc(100svh - 80rem); min-height:480rem; max-height:620rem; margin-top:80rem;}
    #main_visual .roll:after{background:linear-gradient(180deg, rgba(0,0,0,.05) 8%, rgba(0,0,0,.16) 42%, rgba(0,0,0,.62) 100%);}
    #main_visual .roll_txt{top:auto; right:20rem; bottom:62rem; left:20rem; width:auto; max-width:none; transform:none; text-align:left;}
    #main_visual span{margin:0 0 10rem; font-size:11rem; line-height:1.3; letter-spacing:.08em;}
    #main_visual h2{margin:0; font-size:26rem; line-height:1.3;}
    #main_visual p{max-width:320rem; margin:12rem 0 0; font-size:14rem; line-height:1.55; font-weight:600;}
    #main_visual .btn_more{margin-top:25rem;}
    #main_visual .roll01{background-position:58% center;}
    #main_visual .roll02{background-position:50% center;}
    #main_visual .roll03{background-position:62% center;}
}

@media (prefers-reduced-motion:reduce) {
    #main_visual .roll_img,
    #main_visual .roll.is-active .roll_txt > *{animation:none !important;}
}

.mv{position:relative;}
.mv .slide_wrap{position:relative;}
.mv .slide_wrap .slide_ctn{}
.mv .slide_wrap .slide_ctn .item{width: 100%; height: 100vh; min-height: 600px; animation: imagescale 5s infinite; -webkit-animation: imagescale 5s infinite; -moz-animation: imagescale 5s infinite; -o-webkit-animation: imagescale 5s infinite;}
.mv .slide_wrap .slide_ctn .item .bg{background:url(../img/main/visual01.jpg) 50% 50% no-repeat; background-size:cover; height: 100vh; min-height: 600px; }
.mv .slide_wrap .slide_ctn .item .bg02{background:url(../img/main/visual02.jpg) 50% 50% no-repeat; background-size:cover;}
.mv .slide_wrap .slide_ctn .item .bg03{background:url(../img/main/visual03.jpg) 50% 50% no-repeat; background-size:cover;}

.mv .slide_wrap .slide_txt{position:absolute; top: 50%; left: 0; box-sizing:border-box; width: 100%; }
.mv .slide_wrap .slide_txt .item{display: flex; align-items: center; justify-content: center;  }

.mv .slide_wrap .slide_txt .item p{font-size:25px; font-weight:600; color: #fff; margin-top: 26px; animation:up 1.5s .8s forwards; opacity:0}
.mv .slide_wrap .slide_txt .item h2{font-weight:600; font-size:50rem; color: #fff; overflow: hidden;  line-height: 1.2em; animation:down 1.5s .5s forwards; opacity:0}

.mv .slide_wrap .slide_ui{position:absolute; bottom: 0; left: 50%; width: 100%; max-width: 1500px; transform:translateX(-50%);}
.mv .slide_wrap .slide_ui .chk_progress{display:flex; flex-wrap:wrap; position:relative;width: 100%; height: 10px;}
.mv .slide_wrap .slide_ui .chk_progress::after{content:''; position:absolute; top: 0; left: 0; width: 100%; height: 100%; background: #1b1464; opacity: 0.2;}
.mv .slide_wrap .slide_ui .chk_progress .item{position: relative; top: 0; left: 0; width: 33.33%; height: 100%;}
.mv .slide_wrap .slide_ui .chk_progress .item .txt{text-align: right; position: relative; margin-top: -28px;}
.mv .slide_wrap .slide_ui .chk_progress .item .txt p{font-weight:300; font-size:12px; color: #fff; opacity: 0.3; transition:0.2s;}
.mv .slide_wrap .slide_ui .chk_progress .item .bar{position:absolute; top: 0; left: 0; width: 0; height: 100%; background: #1b1464;}


@media screen and (max-width: 1800px){
	.mv .slide_wrap .slide_ui{margin: 0 120px; left: 0; max-width: none; width: calc(100% - 240px); transform:translateX(0);}
}

@media screen and (max-width: 1500px){
	.mv .slide_wrap .slide_txt{}	
	.mv .slide_wrap .slide_ui{margin: 0 120px 0 40px; width: calc(100% - 160px);}
	
}

@media screen and (max-width: 1200px){
	.mv .slide_wrap .slide_ui{width: 100%; margin: 0; padding: 0 16px; box-sizing:border-box;}
	.mv .slide_wrap .slide_ctn .item .bg{margin-right: 0; }
}

@media screen and (max-width: 1023px){
	.mv .slide_wrap .slide_ctn .item{height: 88vh;}
	.mv .slide_wrap .slide_txt .item{ margin-top: 46px;}
	.mv .slide_wrap .slide_txt .item h2{font-size:50px;}
	.mv .slide_wrap .slide_txt .item p{font-size:20px; margin-top:16px;}
}

@media screen and (max-width: 600px){
	.mv .slide_wrap .slide_txt .item h2{font-size:30rem;}
}



/* =====================================================
   IL YOUNG SILVER CARE / Official baseline v1.0.0
   신규 스타일은 기존 공통 스타일과 분리한다.
===================================================== */
:root {
    --ilyoung-primary: #173f38;
    --ilyoung-primary-soft: #2f6658;
    --ilyoung-sage: #91a999;
    --ilyoung-gold: #caa35b;
    --ilyoung-ivory: #f6f3eb;
    --ilyoung-text: #22302c;
}
.ilyoung-main .side_nav span { display:flex; align-items:center; gap:10px; font-size:12px; color:#fff; }
.ilyoung-main .side_nav em { width:0; overflow:hidden; opacity:0; white-space:nowrap; transition:.35s; }
.ilyoung-main .side_nav li.act em { width:90px; opacity:1; }
.ilyoung-main .side_nav.black span { color:var(--ilyoung-primary); }
.ilyoung-visual-progress { position:absolute; left:50%; bottom:42px; z-index:80; width:220px; height:2px; background:rgba(255,255,255,.35); transform:translateX(-50%); }
.ilyoung-visual-progress span { display:block; width:0; height:100%; background:var(--ilyoung-gold); }

.ilyoung-about { min-height:850px; display:flex; align-items:center; background:var(--ilyoung-ivory); }
.ilyoung-about__inner { width:min(1500px,90%); margin:0 auto; display:grid; grid-template-columns:56% 44%; align-items:center; }
.ilyoung-about__visual { position:relative; min-height:650px; }
.ilyoung-about__main { position:absolute; inset:0 16% 0 0; overflow:hidden; border-radius:0 70px 0 0; }
.ilyoung-about__main img,.ilyoung-about__sub img { width:100%; height:100%; object-fit:cover; transition:transform 1.2s ease; }
.ilyoung-about__sub { position:absolute; right:0; bottom:-5%; width:40%; height:42%; overflow:hidden; border:12px solid var(--ilyoung-ivory); }
.ilyoung-about__copy { padding-left:8vw; }
.ilyoung-about .eyebrow,.ilyoung-daily .eyebrow,.ilyoung-intro-page .eyebrow { margin-bottom:20px; color:var(--ilyoung-gold); font-size:16px; font-weight:800; letter-spacing:.18em; }
.ilyoung-about h2,.ilyoung-daily h2 { color:var(--ilyoung-primary); font-size:50px; line-height:1.25; font-weight:800; }
.ilyoung-about .desc { margin:35px 0; color:#4d5a56; font-size:18px; line-height:1.9; }
.ilyoung-about .more_btn { display:inline-flex; align-items:center; justify-content:center; min-width:190px; height:56px; color:#fff; background:var(--ilyoung-primary); }

.ilyoung-main .index_service { background:var(--ilyoung-primary); }
.ilyoung-main .index_features .features_intro { background:var(--ilyoung-primary); }
.ilyoung-main .index_features .features_box .box:nth-child(2) { background:#ab6e3e; }
.ilyoung-main .index_features .features_box .box:nth-child(3) { background:var(--ilyoung-gold); }
.ilyoung-main .index_features .features_box .box:nth-child(4) { background:var(--ilyoung-primary-soft); }
.ilyoung-main .features_box .box:hover .img { transform:scale(1.06); }
.ilyoung-main .features_box .img { transition:transform 1s ease; }

.ilyoung-daily { min-height:900px; display:flex; align-items:center; background:#fff; }
.ilyoung-daily__inner { width:min(1500px,90%); margin:0 auto; }
.ilyoung-daily__head { margin-bottom:45px; }
.ilyoung-daily__body { display:grid; grid-template-columns:60% 40%; align-items:stretch; }
.ilyoung-daily__media { min-height:540px; overflow:hidden; }
.ilyoung-daily__media img { width:100%; height:100%; object-fit:cover; transition:opacity .45s ease,transform .9s ease; }
.ilyoung-daily__timeline { padding:30px 0 30px 70px; }
.ilyoung-daily__timeline ol { position:relative; }
.ilyoung-daily__timeline ol:before { content:""; position:absolute; left:20px; top:20px; bottom:20px; width:1px; background:#d8ddd9; }
.ilyoung-daily__timeline li { position:relative; margin-bottom:12px; }
.ilyoung-daily__timeline button { width:100%; padding:14px 10px 14px 65px; text-align:left; background:none; border:0; cursor:pointer; }
.ilyoung-daily__timeline em { position:absolute; left:0; top:13px; z-index:1; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; color:var(--ilyoung-primary); background:#fff; border:1px solid #cfd7d2; font-weight:800; transition:.35s; }
.ilyoung-daily__timeline strong { display:block; color:var(--ilyoung-primary); font-size:24px; }
.ilyoung-daily__timeline span { display:block; max-height:0; margin-top:0; overflow:hidden; color:#65706c; font-size:16px; line-height:1.7; opacity:0; transition:.4s; }
.ilyoung-daily__timeline li.is-active em { color:#fff; background:var(--ilyoung-gold); border-color:var(--ilyoung-gold); }
.ilyoung-daily__timeline li.is-active span { max-height:90px; margin-top:10px; opacity:1; }

.ilyoung-main .index_review .facility-no { display:block; margin-top:15px; color:var(--ilyoung-primary); font-weight:800; letter-spacing:.12em; }
.ilyoung-main .esti_box { background-image:linear-gradient(rgba(16,52,45,.76),rgba(16,52,45,.76)),url(../img/main/customer_bg.jpg); }
.ilyoung-main .esti_box .r { display:block; }

.ilyoung-intro-page { padding:100px 0 0; }
.ilyoung-intro-lead { display:grid; grid-template-columns:46% 54%; align-items:center; gap:70px; }
.ilyoung-intro-copy .sub_tit h3 { padding-bottom:28px; color:var(--ilyoung-primary); font-size:45px; line-height:1.35; }
.ilyoung-intro-text p { margin-bottom:18px; color:#4a5551; font-size:17px; line-height:1.85; }
.ilyoung-intro-collage { position:relative; min-height:620px; }
.ilyoung-intro-collage .main { position:absolute; inset:0 12% 8% 0; overflow:hidden; border-radius:0 55px 0 0; }
.ilyoung-intro-collage .sub { position:absolute; right:0; bottom:0; width:42%; height:40%; border:10px solid #fff; overflow:hidden; }
.ilyoung-intro-collage img { width:100%; height:100%; object-fit:cover; }
.ilyoung-values { padding:120px 0; }
.ilyoung-values__head { margin-bottom:45px; text-align:center; }
.ilyoung-values__head h3 { color:var(--ilyoung-primary); font-size:36px; }
.ilyoung-values__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ilyoung-values__grid article { min-height:260px; padding:45px 38px; background:var(--ilyoung-ivory); border-top:4px solid var(--ilyoung-primary); }
.ilyoung-values__grid em { color:var(--ilyoung-gold); font-size:16px; font-weight:800; }
.ilyoung-values__grid h4 { margin:28px 0 18px; color:var(--ilyoung-primary); font-size:27px; }
.ilyoung-values__grid p { color:#596460; font-size:16px; line-height:1.75; }
.ilyoung-intro-promise { position:relative; height:650px; overflow:hidden; }
.ilyoung-intro-promise__image { position:absolute; inset:-5%; background:url(../img/sub/intro_bottom.jpg) center/cover no-repeat; animation:ilyoungZoom 12s ease-out infinite alternate; }
.ilyoung-intro-promise:after { content:""; position:absolute; inset:0; background:rgba(17,58,50,.58); }
.ilyoung-intro-promise__copy { position:relative; z-index:1; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; text-align:center; }
.ilyoung-intro-promise__copy span { width:75px; height:2px; margin-bottom:30px; background:var(--ilyoung-gold); }
.ilyoung-intro-promise__copy p { font-size:38px; line-height:1.5; font-weight:700; }
#sub_visual.sub10 { background-image:linear-gradient(rgba(13,48,41,.42),rgba(13,48,41,.42)),url(../img/sub/sub01_top.jpg); }
@keyframes ilyoungZoom { from{transform:scale(1.08)} to{transform:scale(1)} }

@media (max-width:1200px) {
    .ilyoung-about__inner,.ilyoung-daily__body,.ilyoung-intro-lead { grid-template-columns:1fr; }
    .ilyoung-about { padding:100px 0; }
    .ilyoung-about__visual { min-height:560px; }
    .ilyoung-about__copy { padding:70px 0 0; }
    .ilyoung-daily { padding:100px 0; }
    .ilyoung-daily__timeline { padding:35px 0 0; }
    .ilyoung-intro-lead { gap:45px; }
}
@media (max-width:768px) {
    .ilyoung-main .side_nav { display:none; }
    .ilyoung-about,.ilyoung-daily { min-height:auto; padding:75px 0; }
    .ilyoung-about__visual { min-height:420px; }
    .ilyoung-about__main { inset:0; border-radius:0 35px 0 0; }
    .ilyoung-about__sub { display:none; }
    .ilyoung-about h2,.ilyoung-daily h2 { font-size:34px; }
    .ilyoung-daily__body { display:block; }
    .ilyoung-daily__media { min-height:320px; }
    .ilyoung-daily__timeline ol:before { display:none; }
    .ilyoung-daily__timeline button { padding-left:56px; }
    .ilyoung-intro-page { padding-top:60px; }
    .ilyoung-intro-copy .sub_tit h3 { font-size:32px; }
    .ilyoung-intro-collage { min-height:420px; }
    .ilyoung-intro-collage .main { inset:0; border-radius:0 35px 0 0; }
    .ilyoung-intro-collage .sub { display:none; }
    .ilyoung-values { padding:75px 0; }
    .ilyoung-values__head h3 { font-size:29px; }
    .ilyoung-values__grid { grid-template-columns:1fr; }
    .ilyoung-intro-promise { height:430px; }
    .ilyoung-intro-promise__copy p { padding:0 25px; font-size:27px; }
}

/* IL YOUNG v1.1.1 - feature background depth */
.index_features {
    position: relative;
    isolation: isolate;
    background: #123e34;
}

.index_features::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('../img/main/introduction_bg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .18;
    transform: scale(1.08);
    transition: transform 1.8s ease;
}

.index_features::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(12, 55, 46, .92), rgba(24, 78, 65, .84));
    pointer-events: none;
}

.index_features.active::before,
.index_features.act::before {
    transform: scale(1);
}

.index_features > * {
    position: relative;
    z-index: 1;
}

/* IL YOUNG v1.1.1 - daily timeline progress */
.ilyoung-daily__timeline ol::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 20px;
    width: 2px;
    height: var(--daily-progress, 0%);
    max-height: calc(100% - 40px);
    background: var(--ilyoung-gold);
    transition: height .45s ease;
}

.ilyoung-daily__timeline li,
.ilyoung-daily__timeline li em {
    z-index: 2;
}


/* IL YOUNG v1.1.2 - final contact and timeline refinement */
.ilyoung-main .side_nav {
    display: none !important;
}

.ilyoung-contact {
    min-height: 620px !important;
    height: auto !important;
    padding: 65px 0 !important;
}

.ilyoung-contact .ss_container {
    min-height: 490px;
}

.ilyoung-contact .info_box_lst ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ilyoung-contact .info_box_lst li {
    width: auto !important;
}

.ilyoung-contact .info_box_lst li a {
    display: block;
    height: 100%;
    padding: 30px 22px;
    color: inherit;
}

.ilyoung-contact .info_box_lst .t2 {
    line-height: 1.55;
    word-break: keep-all;
}

.ilyoung-daily__media img {
    transition: opacity .48s ease, transform .65s ease;
}

.ilyoung-daily__timeline em {
    transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.ilyoung-daily__timeline span {
    transition: max-height .3s ease, margin .3s ease, opacity .3s ease;
}

@media all and (max-width: 767px) {
    .ilyoung-contact {
        min-height: 0 !important;
        padding: 55px 0 !important;
    }

    .ilyoung-contact .ss_container {
        min-height: 0;
    }

    .ilyoung-contact .info_box_lst ul {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   IL YOUNG SILVER CARE
   MOBILE MAIN WIDTH / CONTACT BASELINE v1.1.7
   ========================================================= */
@media all and (max-width: 767px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body #wrap,
    body .ilyoung-main,
    body .ilyoung-main.index_wrap,
    body .ilyoung-main > .sect,
    body .ilyoung-main .index_slide,
    body .ilyoung-main #main_visual,
    body .ilyoung-main #main_visual .bx-wrapper,
    body .ilyoung-main #main_visual .bx-viewport,
    body .ilyoung-main #main_visual .slider,
    body .ilyoung-main #main_visual .roll,
    body .ilyoung-main #main_visual .roll_img {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    body .ilyoung-main .container,
    body .ilyoung-main .s_container,
    body .ilyoung-main .ss_container,
    body .ilyoung-main .wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
        box-sizing: border-box;
    }

    .ilyoung-contact {
        min-height: 0 !important;
        height: auto !important;
        padding: 38px 14px 42px !important;
        background-position: center center;
    }

    .ilyoung-contact .ss_container,
    .ilyoung-contact .wrap {
        min-height: 0 !important;
    }

    .ilyoung-contact .wrap {
        display: block;
        padding: 0 !important;
    }

    .ilyoung-contact .wrap .l {
        width: 100% !important;
        margin: 0 0 24px !important;
        text-align: center;
    }

    .ilyoung-contact .wrap .l .t1 {
        font-size: 13px !important;
    }

    .ilyoung-contact .wrap .l .t2 {
        margin-top: 8px !important;
        font-size: 30px !important;
        line-height: 1.22;
    }

    .ilyoung-contact .wrap .l .t3 {
        max-width: 330px;
        margin: 14px auto 0 !important;
        font-size: 15px !important;
        line-height: 1.6;
    }

    .ilyoung-contact .wrap .r {
        width: 100% !important;
    }

    .ilyoung-contact .info_box_lst ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .ilyoung-contact .info_box_lst li {
        width: auto !important;
        min-width: 0;
        height: auto !important;
        min-height: 190px;
    }

    .ilyoung-contact .info_box_lst li a {
        display: flex;
        min-height: 190px;
        height: 100%;
        padding: 22px 10px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .ilyoung-contact .info_box_lst .ico {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 14px !important;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .ilyoung-contact .info_box_lst .t1 {
        font-size: 15px !important;
        line-height: 1.35;
    }

    .ilyoung-contact .info_box_lst .t2 {
        margin-top: 10px !important;
        font-size: 14px !important;
        line-height: 1.45;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .ilyoung-contact .info_box_lst li:first-child .t2 {
        white-space: nowrap;
    }

    .ilyoung-contact .info_box_lst li:last-child .t2 {
        max-width: 145px;
    }
}

@media all and (max-width: 390px) {
    .ilyoung-contact {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .ilyoung-contact .info_box_lst ul {
        gap: 7px !important;
    }

    .ilyoung-contact .info_box_lst li,
    .ilyoung-contact .info_box_lst li a {
        min-height: 180px;
    }

    .ilyoung-contact .info_box_lst li a {
        padding: 20px 8px;
    }

    .ilyoung-contact .info_box_lst .t2 {
        font-size: 13px !important;
    }
}

/* IL YOUNG SILVER CARE MAIN VISUAL MOBILE TEXT BASELINE v1.1.8 / 2026-07-31 */

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.1 (2026-08-05)
   - Main visual: 4 slides -> 3 slides
   - Feature photos: overlay intensity reduced
   - Contact background: photo visibility improved
   ========================================================================== */

/* Main visual image focal points */
#main_visual .roll01 {
    background-position: 58% center;
}

#main_visual .roll02 {
    background-position: 50% center;
}

#main_visual .roll03 {
    background-position: 43% center;
}

/* Feature image visibility */
.ilyoung-main .index_features .features_box .box .img {
    filter: brightness(1.04) saturate(1.03);
}

.ilyoung-main .index_features .features_box .box .img::after {
    opacity: 1;
}

.ilyoung-main .index_features .features_box .box:nth-child(1) .img::after,
.ilyoung-main .index_features .features_box .box:nth-child(4) .img::after {
    background:
        linear-gradient(
            135deg,
            rgba(5, 46, 32, .66) 0%,
            rgba(5, 46, 32, .48) 55%,
            rgba(5, 46, 32, .34) 100%
        );
}

.ilyoung-main .index_features .features_box .box:nth-child(2) .img::after {
    background:
        linear-gradient(
            135deg,
            rgba(218, 132, 0, .62) 0%,
            rgba(243, 154, 0, .46) 55%,
            rgba(243, 154, 0, .30) 100%
        );
}

.ilyoung-main .index_features .features_box .box:nth-child(3) .img::after {
    background:
        linear-gradient(
            135deg,
            rgba(222, 153, 0, .60) 0%,
            rgba(255, 186, 19, .44) 55%,
            rgba(255, 186, 19, .28) 100%
        );
}

.ilyoung-main .index_features .features_box .box .tit {
    z-index: 3;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, .36),
        0 1px 2px rgba(0, 0, 0, .24);
}

/* Admission consultation background visibility */
.ilyoung-main .esti_box {
    background-image:
        linear-gradient(
            90deg,
            rgba(10, 48, 40, .72) 0%,
            rgba(10, 48, 40, .62) 42%,
            rgba(10, 48, 40, .48) 72%,
            rgba(10, 48, 40, .42) 100%
        ),
        url(../img/main/customer_bg.jpg);
    background-position: center;
    background-size: cover;
}

.ilyoung-main .esti_box .wrap .r .info_box_lst > ul > li {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(8, 42, 35, .06);
}

@media (max-width: 767px) {
    #main_visual .roll01 {
        background-position: 63% center;
    }

    #main_visual .roll02 {
        background-position: 50% center;
    }

    #main_visual .roll03 {
        background-position: 40% center;
    }

    .ilyoung-main .index_features .features_box .box .img::after {
        filter: brightness(.96);
    }

    .ilyoung-main .esti_box {
        background-image:
            linear-gradient(
                rgba(10, 48, 40, .64),
                rgba(10, 48, 40, .64)
            ),
            url(../img/main/customer_bg.jpg);
        background-position: 57% center;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.2 (2026-08-05)
   - Main visual image ratio: original panorama 33:14
   - Desktop visual height follows viewport width
   - Tablet and mobile retain readable text height
   ========================================================================== */

/* Desktop panorama: 2640 x 1120 (33:14) */
body .ilyoung-main #main_visual {
    width: 100%;
    height: 42.4242vw;
    min-height: 580px;
    max-height: 860px;
}

body .ilyoung-main #main_visual .roll_img {
    background-repeat: no-repeat;
    background-size: cover;
}

body .ilyoung-main #main_visual .roll01 {
    background-position: 56% center;
}

body .ilyoung-main #main_visual .roll02 {
    background-position: 50% center;
}

body .ilyoung-main #main_visual .roll03 {
    background-position: 46% center;
}

/* Medium desktop */
@media all and (max-width: 1480px) and (min-width: 1024px) {
    body .ilyoung-main #main_visual {
        height: 42.4242vw;
        min-height: 580px;
        max-height: 720px;
    }

    body .ilyoung-main #main_visual h2 {
        font-size: 40rem;
    }

    body .ilyoung-main #main_visual p {
        font-size: 27rem;
    }
}

/* Tablet: preserve sufficient height for copy */
@media all and (max-width: 1023px) and (min-width: 768px) {
    body .ilyoung-main #main_visual {
        height: 60vw;
        min-height: 560px;
        max-height: 700px;
        margin-top: 80rem;
    }

    body .ilyoung-main #main_visual .roll01 {
        background-position: 58% center;
    }

    body .ilyoung-main #main_visual .roll02 {
        background-position: 50% center;
    }

    body .ilyoung-main #main_visual .roll03 {
        background-position: 48% center;
    }
}

/* Mobile: panorama image is cropped, but text remains readable */
@media all and (max-width: 767px) {
    body .ilyoung-main #main_visual {
        height: calc(100vh - 80px);
        height: calc(100svh - 80px);
        min-height: 480px;
        max-height: 620px;
        margin-top: 80px;
    }

    body .ilyoung-main #main_visual .roll01 {
        background-position: 63% center;
    }

    body .ilyoung-main #main_visual .roll02 {
        background-position: 50% center;
    }

    body .ilyoung-main #main_visual .roll03 {
        background-position: 40% center;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.3 (2026-08-05)
   - Remove legacy fixed height from the first slide section
   - Attach the second section directly below the panorama
   - Move tablet/mobile header spacing from child margin to parent padding
   ========================================================================== */

/* Main visual section: follow the actual panorama height */
body .ilyoung-main > .index_slide {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove bottom gaps created by slider wrappers */
body .ilyoung-main #main_visual,
body .ilyoung-main #main_visual .bx-wrapper,
body .ilyoung-main #main_visual .bx-viewport,
body .ilyoung-main #main_visual .slider,
body .ilyoung-main #main_visual .roll {
    margin-bottom: 0 !important;
}

/* Keep the second section directly connected to the visual */
body .ilyoung-main > .ilyoung-about {
    margin-top: 0 !important;
}

/* Tablet: reserve header space on the parent section */
@media all and (max-width: 1023px) and (min-width: 768px) {
    body .ilyoung-main > .index_slide {
        padding-top: 80rem !important;
    }

    body .ilyoung-main #main_visual {
        margin-top: 0 !important;
    }
}

/* Mobile: reserve header space on the parent section */
@media all and (max-width: 767px) {
    body .ilyoung-main > .index_slide {
        padding-top: 80px !important;
    }

    body .ilyoung-main #main_visual {
        margin-top: 0 !important;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.4 (2026-08-05)
   - Replace feature 03 copy with Seoul accessibility message
   - Add the unique certification number to main/sub footer information
   - Keep long Korean copy and footer information readable responsively
   ========================================================================== */

/* Feature 03: accessibility copy */
.ilyoung-main .index_features .features_box .feature-access .tit {
    width: 92%;
    font-size: 40rem;
    line-height: 1.35;
    word-break: keep-all;
}

.ilyoung-main .index_features_slide .txt .t1 {
    word-break: keep-all;
}

/* Footer company information */
#footer .foo_b .info .line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 34px;
}

#footer .foo_b .info .line > span {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

#footer .foo_b .info .line > span em {
    margin-right: 12px;
}

@media all and (max-width: 1500px) and (min-width: 1024px) {
    .ilyoung-main .index_features .features_box .feature-access .tit {
        font-size: 34rem;
    }

    #footer .foo_b .info .line {
        gap: 8px 24px;
    }
}

@media all and (max-width: 767px) {
    .ilyoung-main .index_features .features_box .box .tit,
    .ilyoung-main .index_features .features_box .feature-access .tit {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 92%;
        min-height: 2.64em;
        font-size: 23rem !important;
        line-height: 1.32;
        letter-spacing: -0.03em;
        text-align: center;
        word-break: keep-all;
    }

    #footer .foo_b .info .line {
        justify-content: center;
        gap: 7px 18px;
    }

    #footer .foo_b .info .line > span {
        font-size: 13px !important;
    }

    #footer .foo_b .info .line:first-child > span:last-child {
        width: 100%;
        justify-content: center;
    }
}



/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.5 (2026-08-05)
   - Unify all four mobile feature-title sizes
   - Keep the longer accessibility title balanced in two lines
   - Reduce only the long title on extra-small mobile screens
   ========================================================================== */

@media all and (max-width: 360px) {
    .ilyoung-main .index_features .features_box .feature-access .tit {
        width: 94%;
        font-size: 21rem !important;
        letter-spacing: -0.045em;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.6 (2026-08-06)
   - Align the PC menu and representative phone number on one vertical center
   - Normalize the phone icon and number baseline
   - Add a consistent ADMIN link to the main and sub-page footers
   ========================================================================== */

/* PC header: menu and representative phone share the same center line */
@media all and (min-width: 1024px) {
    #header .header-inner {
        position: relative;
        display: flex;
        align-items: center;
        height: 100rem;
    }

    #header .gnb {
        display: flex;
        align-items: center;
        height: 100%;
        margin-left: auto;
        float: none;
    }

    #header .gnb > ul {
        display: flex;
        align-items: center;
        height: 100%;
        margin-top: 0;
    }

    #header .gnb .depth1 {
        display: flex;
        align-items: center;
        height: 100%;
    }

    #header .gnb .depth1 > a {
        display: inline-flex;
        align-items: center;
        height: 100%;
        line-height: 1.2;
    }

    #header .user {
        position: relative;
        right: auto;
        display: flex;
        align-items: center;
        height: 100%;
        margin-top: 0;
        margin-left: 20rem;
        float: none;
    }

    #header .user > ul,
    #header .user li {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
    }

    #header .user li {
        gap: 10rem;
    }

    #header .user i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 30rem;
        height: 30rem;
        line-height: 1;
    }

    #header .user i img {
        display: block;
        width: 30rem;
        height: 30rem;
        object-fit: contain;
    }

    #header .user .header-call {
        display: inline-flex;
        align-items: center;
        height: 30rem;
        line-height: 1;
        white-space: nowrap;
    }
}

/* Main/sub footer ADMIN link */
#footer .footer-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54rem;
    height: 24rem;
    margin-left: 10rem;
    padding: 0 10rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11rem;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

#footer .footer-admin-link:hover,
#footer .footer-admin-link:focus {
    border-color: rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media all and (max-width: 767px) {
    #footer .footer-admin-link {
        min-width: 48px;
        height: 22px;
        margin-left: 7px;
        padding: 0 8px;
        font-size: 10px;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.7 (2026-08-06)
   - Fix the PC header into three stable zones: logo / centered menu / phone
   - Pin the representative phone number to the far right of the header wrap
   - Keep the phone number and menu on the same vertical center line
   ========================================================================== */

@media all and (min-width: 1024px) {
    #header .header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100rem;
    }

    /* Left zone: logo does not participate in flex ordering. */
    #header h1 {
        position: absolute;
        top: 50%;
        left: 0;
        z-index: 3;
        margin: 0;
        transform: translateY(-50%);
    }

    /* Center zone: navigation remains centered in the header wrap. */
    #header .gnb {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: 100%;
        margin: 0 auto;
        float: none;
    }

    #header .gnb > ul {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        margin: 0;
    }

    #header .gnb .depth1,
    #header .gnb .depth1 > a {
        display: flex;
        align-items: center;
        height: 100%;
    }

    /* Right zone: phone number is anchored to the far right. */
    #header .user {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
        float: none;
    }

    #header .user > ul,
    #header .user li {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
    }

    #header .user li {
        gap: 10rem;
    }

    #header .user i,
    #header .user i img {
        width: 30rem;
        height: 30rem;
    }

    #header .user i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30rem;
        line-height: 1;
    }

    #header .user i img {
        display: block;
        object-fit: contain;
    }

    #header .user .header-call {
        display: inline-flex;
        align-items: center;
        height: 30rem;
        line-height: 1;
        white-space: nowrap;
    }
}

/* Compact desktop: prevent the center menu and right phone from colliding. */
@media all and (min-width: 1024px) and (max-width: 1350px) {
    #header .gnb .depth1 {
        margin-right: 18rem;
        margin-left: 18rem;
    }

    #header .gnb .depth1 > a {
        font-size: 16rem;
    }

    #header .user li {
        gap: 7rem;
    }

    #header .user i,
    #header .user i img {
        width: 26rem;
        height: 26rem;
    }

    #header .user i {
        flex-basis: 26rem;
    }

    #header .user .header-call {
        height: 26rem;
        font-size: 17rem;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.8 (2026-08-06)
   - Move the desktop navigation group closer to the right-side phone area
   - Remove unintended movement, scaling and position shifts on menu hover
   - Preserve the existing color-only hover state and submenu functionality
   ========================================================================== */

@media all and (min-width: 1024px) {
    /* Keep each top-level item fixed in place in every interaction state. */
    #header .gnb .depth1,
    #header .gnb .depth1:hover,
    #header .gnb .depth1:focus-within,
    #header .gnb .depth1 > a,
    #header .gnb .depth1 > a:hover,
    #header .gnb .depth1 > a:focus,
    #header .gnb .depth1 > a:active {
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    /* Do not animate position, size or transforms on top-level menu links. */
    #header .gnb .depth1 > a {
        transition: color 0.2s ease, opacity 0.2s ease !important;
    }

    #header .gnb .depth1 > a::before,
    #header .gnb .depth1 > a::after {
        transition: none !important;
    }
}

/* Compact desktop: use only a small rightward adjustment to avoid collision. */
@media all and (min-width: 1024px) and (max-width: 1359px) {
    #header .gnb {
        position: relative;
        left: 20rem;
    }
}

/* Standard/wide desktop: bring the menu group closer to the phone area. */
@media all and (min-width: 1360px) {
    #header .gnb {
        position: relative;
        left: 60rem;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.9 (2026-08-06)
   - Completely lock the top-level PC menu text position in all header states
   - Cancel legacy down/on margin changes that caused a slight vertical shift
   - Remove animated underline pseudo-elements while preserving submenu opening
   ========================================================================== */

@media all and (min-width: 1024px) {
    /* Limit header animation to the properties that actually need it. */
    #header {
        transition:
            height 0.3s ease,
            background-color 0.3s ease !important;
    }

    /* Keep the top-level list item fixed in every interaction/header state. */
    #header .gnb .depth1,
    #header.down .gnb .depth1,
    #header.on .gnb .depth1,
    #header .gnb .depth1:hover,
    #header .gnb .depth1:focus-within {
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transform: none !important;
    }

    /* Cancel legacy margin/padding changes applied when #header gets down/on. */
    #header .gnb .depth1 > a,
    #header.down .gnb .depth1 > a,
    #header.on .gnb .depth1 > a,
    #header .gnb .depth1:hover > a,
    #header .gnb .depth1:focus-within > a,
    #header .gnb .depth1 > a:hover,
    #header .gnb .depth1 > a:focus,
    #header .gnb .depth1 > a:active {
        display: flex;
        align-items: center;
        height: 100%;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1 !important;
        transform: none !important;
        transition: color 0.2s ease !important;
    }

    /* Remove the animated underline/marker that made the item look as if it moved. */
    #header .gnb .depth1 > a::before,
    #header .gnb .depth1 > a::after,
    #header.down .gnb .depth1 > a::before,
    #header.down .gnb .depth1 > a::after,
    #header.on .gnb .depth1 > a::before,
    #header.on .gnb .depth1 > a::after {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.12 (2026-08-06)
   - Raise the top-level gold indicator further for clearer submenu separation
   - Keep the brighter gold tone with a tighter, softer glow
   - Keep the top-level menu text fully fixed during hover/focus
   ========================================================================== */

@media all and (min-width: 1024px) {
    /* The top-level menu item remains the positioning box for the gold line. */
    #header .gnb .depth1 {
        position: relative;
    }

    /*
     * Gold line is positioned above the submenu starting point.
     * Absolute positioning prevents any menu text or submenu layout shift.
     */
    #header .gnb .depth1::after {
        position: absolute;
        right: 0;
        bottom: 20rem;
        left: 0;
        z-index: 5;

        display: block;
        width: 0;
        height: 2rem;
        margin: 0 auto;

        background-color: #e2bd68;
        box-shadow: 0 0 3rem rgba(226, 189, 104, 0.22);

        content: "";
        pointer-events: none;
        transition: width 0.25s ease;
    }

    /* Show the line only for the active hovered/focused top-level menu item. */
    #header .gnb .depth1:hover::after,
    #header .gnb .depth1:focus-within::after {
        width: 100%;
    }
}

/* Compact desktop needs slightly more clearance above the first submenu row. */
@media all and (min-width: 1024px) and (max-width: 1359px) {
    #header .gnb .depth1::after {
        bottom: 22rem;
    }
}


/* ========================================================================== 
   IL YOUNG SILVER CARE BASELINE v1.2.14 QA FINAL (2026-08-18)
   - Desktop first-view fit: remove the ivory exposure below the main visual
   - Keep the current 100% horizontal visual width
   - Reserve the fixed 100px header in the parent section instead of shrinking width
   - Preserve tablet/mobile visual-height rules
   - Add dedicated focus positions for roll04
   ========================================================================== */

/* Desktop only: fixed header occupies the first 100px of the viewport. */
@media all and (min-width: 1024px) {
    body .ilyoung-main > .index_slide {
        padding-top: 100px !important;
        box-sizing: border-box;
    }

    body .ilyoung-main #main_visual {
        width: 100% !important;
        height: max(42.4242vw, calc(100vh - 100px));
        min-height: 580px;
        max-height: none;
        margin-top: 0 !important;
    }

    body .ilyoung-main #main_visual .roll_img {
        width: 100%;
        height: 100%;
        background-size: cover;
    }

    /* roll04: keep the residents and terrace as the visual focus. */
    body .ilyoung-main #main_visual .roll04 {
        background-position: 58% center;
    }
}

/* Tablet keeps the established v1.2.3 responsive height policy. */
@media all and (max-width: 1023px) and (min-width: 768px) {
    body .ilyoung-main #main_visual .roll04 {
        background-position: 60% center;
    }
}

/* Mobile keeps the established 100svh-based height policy. */
@media all and (max-width: 767px) {
    body .ilyoung-main #main_visual .roll04 {
        background-position: 66% center;
    }
}

/* ========================================================================== 
   HERITAGE SILVER CARE PAJU - GOLD BRAND RENEWAL v1.0.0 (2026-08-27)
   - Preserve existing head / slider JS and DOM structure
   - Re-skin the current main layout with Heritage gold, ivory and charcoal
   - Improve readable typography and responsive spacing without new libraries
   ========================================================================== */
.ilyoung-main {
    --ilyoung-primary: #3a3022;
    --ilyoung-primary-soft: #6f5730;
    --ilyoung-sage: #cbb98f;
    --ilyoung-gold: #c89a32;
    --ilyoung-ivory: #faf7f0;
    --ilyoung-text: #332f29;
}

.ilyoung-main #main_visual .roll:after {
    background: linear-gradient(90deg, rgba(26, 20, 12, .52) 0%, rgba(26, 20, 12, .18) 54%, rgba(26, 20, 12, .04) 100%);
}
.ilyoung-main #main_visual span {
    color: #e9cf91;
    letter-spacing: .14em;
}
.ilyoung-main #main_visual h2,
.ilyoung-main #main_visual p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.ilyoung-main .ilyoung-about {
    background: #faf7f0;
}
.ilyoung-main .ilyoung-about__sub {
    border-color: #faf7f0;
}
.ilyoung-main .ilyoung-about h2,
.ilyoung-main .ilyoung-daily h2,
.ilyoung-main .ilyoung-daily__timeline strong,
.ilyoung-main .index_review .t2,
.ilyoung-main .index_review .facility-no {
    color: #3a3022;
}
.ilyoung-main .ilyoung-about .more_btn {
    background: #9c7222;
    box-shadow: 0 12px 28px rgba(83, 58, 19, .14);
}
.ilyoung-main .ilyoung-about .more_btn:hover,
.ilyoung-main .ilyoung-about .more_btn:focus {
    background: #7f5b1a;
}
.ilyoung-main .index_service,
.ilyoung-main .index_features .features_intro {
    background: #342b20;
}
.ilyoung-main .index_features .features_box .box:nth-child(3) {
    background: #b98929;
}
.ilyoung-main .index_features .features_box .box:nth-child(4) {
    background: #59452b;
}
.ilyoung-main .ilyoung-daily {
    background: #fff;
}
.ilyoung-main .ilyoung-daily__timeline em {
    color: #9c7222;
    border-color: #e0d4bc;
}
.ilyoung-main .ilyoung-daily__timeline li.is-active em {
    background: #c89a32;
    border-color: #c89a32;
}
.ilyoung-main .index_review {
    background: #fbf9f4;
}
.ilyoung-main .ilyoung-contact {
    background-color: #332a20;
}
.ilyoung-main .ilyoung-contact:before {
    background: rgba(42, 32, 21, .78);
}
.ilyoung-main #footer {
    background: #2c241b;
}
.ilyoung-main #footer .copy,
.ilyoung-main #footer .info span {
    color: rgba(255, 255, 255, .74) !important;
}

/* Main visual focus positions for the supplied 001-004 photography. */
@media all and (min-width: 1024px) {
    body .ilyoung-main #main_visual .roll01 { background-position: 50% center; }
    body .ilyoung-main #main_visual .roll02 { background-position: 52% center; }
    body .ilyoung-main #main_visual .roll03 { background-position: 50% center; }
    body .ilyoung-main #main_visual .roll04 { background-position: 54% center; }
}

@media all and (max-width: 1023px) {
    .ilyoung-main #main_visual .roll:after {
        background: linear-gradient(180deg, rgba(25, 19, 11, .08) 10%, rgba(25, 19, 11, .20) 48%, rgba(25, 19, 11, .68) 100%);
    }
    .ilyoung-main .ilyoung-about .desc,
    .ilyoung-main .index_service_txt .t3,
    .ilyoung-main .ilyoung-daily__timeline span {
        font-size: 16px;
        line-height: 1.7;
    }
}

@media all and (max-width: 767px) {
    .ilyoung-main #main_visual span {
        font-size: 12rem;
        color: #efd69a;
    }
    .ilyoung-main #main_visual h2 {
        font-size: 28rem;
        line-height: 1.28;
    }
    .ilyoung-main #main_visual p {
        max-width: 340rem;
        font-size: 15rem;
        line-height: 1.55;
    }
    body .ilyoung-main #main_visual .roll01 { background-position: 55% center; }
    body .ilyoung-main #main_visual .roll02 { background-position: 57% center; }
    body .ilyoung-main #main_visual .roll03 { background-position: 52% center; }
    body .ilyoung-main #main_visual .roll04 { background-position: 60% center; }
}


/* ========================================================================== 
   HERITAGE SILVER CARE PAJU - MAIN DESIGN QA POLISH v1.0.1 (2026-08-27)
   Gold/Ivory tone refinement and readable responsive typography.
   ========================================================================== */
.ilyoung-main .index_service_txt .t1,
.ilyoung-main .features_intro .t1,
.ilyoung-main .index_review .t1,
.ilyoung-main .ilyoung-about .eyebrow,
.ilyoung-main .ilyoung-daily .eyebrow {
    color: #d9b766 !important;
}
.ilyoung-main .index_service_txt .t3 {
    font-size: 17rem;
    line-height: 1.72;
    font-weight: 500;
}
.ilyoung-main .index_features .features_box .box:nth-child(1) .img::after,
.ilyoung-main .index_features .features_box .box:nth-child(4) .img::after {
    background: linear-gradient(135deg, rgba(58, 48, 34, .66) 0%, rgba(58, 48, 34, .48) 55%, rgba(58, 48, 34, .32) 100%);
}
.ilyoung-main .index_features .features_box .box:nth-child(2) .img::after {
    background: linear-gradient(135deg, rgba(126, 92, 30, .62) 0%, rgba(173, 126, 39, .44) 55%, rgba(200, 154, 50, .28) 100%);
}
.ilyoung-main .index_features .features_box .box:nth-child(3) .img::after {
    background: linear-gradient(135deg, rgba(151, 107, 30, .60) 0%, rgba(190, 143, 48, .42) 55%, rgba(216, 177, 91, .26) 100%);
}
.ilyoung-main .esti_box {
    background-image: linear-gradient(90deg, rgba(49, 39, 26, .78) 0%, rgba(49, 39, 26, .66) 44%, rgba(49, 39, 26, .48) 74%, rgba(49, 39, 26, .40) 100%), url(../img/main/customer_bg.jpg);
}
.ilyoung-main .esti_box .wrap .r .info_box_lst > ul > li {
    background: rgba(72, 55, 31, .10);
    border-color: rgba(229, 202, 142, .22);
}
.ilyoung-main .esti_box .wrap .r .info_box_lst > ul > li:hover {
    border-color: rgba(229, 202, 142, .52);
    background: rgba(156, 114, 34, .20);
}
.ilyoung-main #footer .info span,
.ilyoung-main #footer .copy {
    font-size: 16px;
    line-height: 1.65;
}

@media all and (max-width: 1023px) {
    .ilyoung-main .index_service_txt .t3 {
        font-size: 16px;
        line-height: 1.72;
    }
}

@media all and (max-width: 767px) {
    .ilyoung-main .ilyoung-about .desc,
    .ilyoung-main .index_service_txt .t3,
    .ilyoung-main .ilyoung-daily__timeline span,
    .ilyoung-main .index_review .t3,
    .ilyoung-main .esti_box .t3 {
        font-size: 16px !important;
        line-height: 1.7;
    }
    .ilyoung-main .index_features .features_box .box .tit {
        font-size: 28rem !important;
        line-height: 1.35;
    }
    .ilyoung-main .esti_box {
        background-image: linear-gradient(rgba(49, 39, 26, .66), rgba(49, 39, 26, .66)), url(../img/main/customer_bg.jpg);
    }
}

/* ========================================================================== 
   HERITAGE SILVER CARE PAJU
   MAIN IDENTITY REBUILD v1.0.4 (2026-08-27)
   Existing head / DB menu / visual slider JS are preserved.
   ========================================================================== */
:root {
    --heritage-gold: #c89a32;
    --heritage-deep-gold: #9c7222;
    --heritage-champagne: #e7cf96;
    --heritage-ivory: #faf7f0;
    --heritage-cream: #f2ecdf;
    --heritage-charcoal: #25231f;
    --heritage-brown: #332b20;
    --heritage-gray: #6a655d;
    --heritage-line: #e7dfd1;
}

.heritage-main {
    color: var(--heritage-charcoal);
    background: #fff;
    font-family: 'Pretendard', sans-serif;
}

.heritage-main *,
.heritage-main *::before,
.heritage-main *::after {
    box-sizing: border-box;
}

.heritage-container {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
}

.heritage-eyebrow {
    margin: 0 0 18px;
    color: var(--heritage-deep-gold);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .14em;
}

.heritage-display,
.heritage-section-head h2,
.heritage-space__head h2,
.heritage-why__copy > h2,
.heritage-contact h2 {
    color: var(--heritage-charcoal);
    font-size: clamp(42px, 4.2vw, 66px);
    line-height: 1.13;
    letter-spacing: -.045em;
    font-weight: 700;
}

.heritage-gold-line {
    display: block;
    width: 64px;
    height: 2px;
    margin: 38px auto 0;
    background: var(--heritage-gold);
}

.heritage-text-link {
    position: relative;
    display: inline-block;
    margin-top: 34px;
    padding: 0 30px 8px 0;
    color: var(--heritage-charcoal) !important;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--heritage-charcoal);
}

.heritage-text-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: -1px;
    color: var(--heritage-deep-gold);
    transition: transform .25s ease;
}

.heritage-text-link:hover::after,
.heritage-text-link:focus::after {
    transform: translateX(5px);
}

/* Visual - existing bxSlider structure preserved */
.heritage-main #main_visual .roll_txt {
    width: min(1240px, calc(100% - 80px));
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
}

.heritage-main #main_visual .roll_txt span {
    color: #f0d38d;
    font-weight: 700;
    letter-spacing: .14em;
}

.heritage-main #main_visual .roll_txt h2 {
    max-width: 760px;
    margin-top: 18px;
    font-size: clamp(48px, 4.6vw, 72px);
    line-height: 1.13;
    letter-spacing: -.045em;
}

.heritage-main #main_visual .roll_txt p {
    max-width: 620px;
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 500;
}

.heritage-main #main_visual .roll::after {
    background: linear-gradient(90deg, rgba(32, 25, 16, .54) 0%, rgba(32, 25, 16, .23) 48%, rgba(32, 25, 16, .06) 72%);
}

.heritage-visual-progress {
    position: absolute;
    z-index: 8;
    right: max(40px, calc((100vw - 1240px) / 2));
    bottom: 42px;
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,.34);
    overflow: hidden;
}

.heritage-visual-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--heritage-champagne);
}

/* 02 Brand statement */
.heritage-statement {
    padding: 120px 0 110px;
    background: #fff;
    text-align: center;
}

.heritage-statement__inner {
    max-width: 1160px;
}

.heritage-statement__lead {
    margin-top: 34px;
    color: var(--heritage-charcoal);
    font-size: 26px;
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: -.025em;
}

.heritage-statement__desc {
    margin-top: 22px;
    color: var(--heritage-gray);
    font-size: 18px;
    line-height: 1.85;
    font-weight: 450;
}

.heritage-statement__photo {
    position: relative;
    width: 78%;
    margin: 62px auto 0;
    overflow: hidden;
}

.heritage-statement__photo::before {
    content: '';
    display: block;
    padding-top: 48%;
}

.heritage-statement__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    transform: scale(1.001);
}

/* 03 Space story */
.heritage-space {
    padding: 110px 0;
    background: var(--heritage-ivory);
}

.heritage-space__inner {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(560px, 1.55fr);
    gap: 80px;
    align-items: center;
}

.heritage-space__head h2 {
    max-width: 480px;
    font-size: clamp(38px, 3.4vw, 54px);
}

.heritage-space__head > p:last-of-type {
    margin-top: 28px;
    color: var(--heritage-gray);
    font-size: 17px;
    line-height: 1.8;
}

.heritage-space__gallery {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 18px;
    min-height: 610px;
}

.heritage-space__gallery figure {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #ddd;
}

.heritage-space__gallery .heritage-space__large {
    grid-row: 1 / 3;
}

.heritage-space__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.heritage-space__gallery figure:hover img {
    transform: scale(1.025);
}

.heritage-space__gallery figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px 24px 20px;
    background: linear-gradient(0deg, rgba(29,23,16,.72), rgba(29,23,16,0));
    color: #fff;
}

.heritage-space__gallery figcaption strong,
.heritage-space__gallery figcaption span {
    display: block;
}

.heritage-space__gallery figcaption strong {
    color: #edd39a;
    font-size: 12px;
    letter-spacing: .12em;
}

.heritage-space__gallery figcaption span {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 600;
}

/* 04 Care */
.heritage-care {
    padding: 115px 0;
    background: #fff;
}

.heritage-section-head {
    max-width: 670px;
}

.heritage-section-head--center {
    margin: 0 auto;
    text-align: center;
}

.heritage-section-head h2 {
    font-size: clamp(38px, 3.4vw, 54px);
}

.heritage-section-head > p:last-child {
    margin-top: 24px;
    color: var(--heritage-gray);
    font-size: 17px;
    line-height: 1.8;
}

.heritage-care__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 68px;
    border-top: 1px solid var(--heritage-line);
    border-bottom: 1px solid var(--heritage-line);
}

.heritage-care-card {
    min-height: 330px;
    padding: 52px 44px;
    border-right: 1px solid var(--heritage-line);
    transition: background .25s ease, transform .25s ease;
}

.heritage-care-card:first-child {
    border-left: 1px solid var(--heritage-line);
}

.heritage-care-card:hover {
    background: var(--heritage-ivory);
    transform: translateY(-4px);
}

.heritage-card-num {
    display: block;
    color: var(--heritage-gold);
    font-size: 52px;
    line-height: 1;
    font-weight: 300;
}

.heritage-care-card h3 {
    margin-top: 42px;
    color: var(--heritage-charcoal);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
}

.heritage-care-card p {
    margin-top: 18px;
    color: var(--heritage-gray);
    font-size: 16.5px;
    line-height: 1.8;
}

.heritage-center-link {
    margin-top: 46px;
    text-align: center;
}

.heritage-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    height: 54px;
    padding: 0 34px;
    color: var(--heritage-deep-gold) !important;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid var(--heritage-gold);
    transition: background .25s ease, color .25s ease;
}

.heritage-outline-btn:hover,
.heritage-outline-btn:focus {
    color: #fff !important;
    background: var(--heritage-deep-gold);
}

/* 05 Why Heritage */
.heritage-why {
    padding: 110px 0;
    background: var(--heritage-brown);
}

.heritage-why__inner {
    display: grid;
    grid-template-columns: 1fr .88fr;
    gap: 86px;
    align-items: stretch;
}

.heritage-why .heritage-eyebrow {
    color: #e3c783;
}

.heritage-why__copy > h2 {
    color: #fff;
    font-size: clamp(40px, 3.6vw, 58px);
}

.heritage-why__intro {
    max-width: 500px;
    margin-top: 26px;
    color: rgba(255,255,255,.72);
    font-size: 17px;
    line-height: 1.8;
}

.heritage-why .features_box.heritage-why__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 52px;
}

.heritage-why__grid article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    min-height: 170px;
    padding: 30px 24px 30px 0;
    border-top: 1px solid rgba(255,255,255,.16);
}

.heritage-why__grid article:nth-child(odd) {
    padding-right: 30px;
}

.heritage-why__grid article:nth-child(even) {
    padding-left: 30px;
    border-left: 1px solid rgba(255,255,255,.16);
}

.heritage-why__grid article > span {
    color: #d7b766;
    font-size: 17px;
    font-weight: 700;
}

.heritage-why__grid h3 {
    color: #fff;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.heritage-why__grid p {
    margin-top: 10px;
    color: rgba(255,255,255,.66);
    font-size: 15.5px;
    line-height: 1.72;
}

.heritage-why__photo {
    position: relative;
    min-height: 660px;
    overflow: hidden;
}

.heritage-why__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heritage-why__photo figcaption {
    position: absolute;
    left: 28px;
    bottom: 26px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
}

/* 06 Life editorial + Facility preview */
.heritage-life {
    padding: 115px 0 100px;
    background: #fff;
}

.heritage-life .heritage-section-head h2 {
    font-size: clamp(40px, 3.5vw, 56px);
}

.heritage-life__editorial {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    grid-template-rows: 250px 410px;
    gap: 28px 34px;
    margin-top: 64px;
}

.heritage-life__item {
    position: relative;
    overflow: hidden;
}

.heritage-life__item--a {
    grid-row: 1 / 3;
}

.heritage-life__item--b {
    grid-column: 2;
    grid-row: 2;
}

.heritage-life__item--c {
    display: none;
}

.heritage-life__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heritage-life__item figcaption {
    position: absolute;
    right: 24px;
    bottom: 22px;
    left: 24px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    color: #fff;
}

.heritage-life__item figcaption strong {
    color: #ead097;
    font-size: 14px;
}

.heritage-life__item figcaption span {
    font-size: 17px;
    font-weight: 650;
    text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.heritage-life__quote {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: var(--heritage-ivory);
}

.heritage-life__quote p {
    color: var(--heritage-charcoal);
    font-size: 27px;
    line-height: 1.55;
    font-weight: 650;
    letter-spacing: -.025em;
}

.heritage-facility-preview {
    display: grid;
    grid-template-columns: 1.45fr .55fr;
    gap: 48px;
    align-items: center;
    margin-top: 92px;
    padding-top: 68px;
    border-top: 1px solid var(--heritage-line);
}

.heritage-facility-preview__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.heritage-facility-preview__photos img {
    width: 100%;
    aspect-ratio: 1 / 1.04;
    object-fit: cover;
}

.heritage-facility-preview__copy h3 {
    color: var(--heritage-charcoal);
    font-size: 32px;
    line-height: 1.35;
    letter-spacing: -.03em;
    font-weight: 700;
}

/* 07 Contact */
.heritage-contact {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 680px;
    padding: 100px 0;
    overflow: hidden;
    background: #2d261e;
}

.heritage-contact__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(38,30,21,.89) 0%, rgba(38,30,21,.74) 50%, rgba(38,30,21,.40) 100%),
        url('../img/sub/heritage/facility13.jpg') center 48% / cover no-repeat;
}

.heritage-contact__inner {
    position: relative;
    z-index: 2;
}

.heritage-contact .heritage-eyebrow {
    color: #e4c985;
}

.heritage-contact h2 {
    color: #fff;
    font-size: clamp(44px, 4vw, 62px);
}

.heritage-contact__inner > p:not(.heritage-eyebrow) {
    margin-top: 26px;
    color: rgba(255,255,255,.75);
    font-size: 17px;
    line-height: 1.75;
}

.heritage-contact__phone {
    display: block;
    width: fit-content;
    margin-top: 32px;
    color: #f0d28c !important;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.035em;
}

.heritage-contact__buttons {
    display: flex;
    gap: 10px;
    margin-top: 42px;
}

.heritage-contact__buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    height: 52px;
    padding: 0 26px;
    color: #fff !important;
    font-size: 15.5px;
    font-weight: 650;
    border: 1px solid rgba(255,255,255,.42);
    transition: border-color .25s ease, background .25s ease;
}

.heritage-contact__buttons a:first-child,
.heritage-contact__buttons a:hover,
.heritage-contact__buttons a:focus {
    border-color: var(--heritage-gold);
    background: rgba(200,154,50,.22);
}

/* Keep footer compact and visually independent from the former main layout. */
.heritage-main #footer {
    background: #211c16;
}

/* Tablet */
@media all and (max-width: 1180px) {
    .heritage-container,
    .heritage-main #main_visual .roll_txt {
        width: calc(100% - 56px);
    }

    .heritage-space__inner {
        grid-template-columns: .82fr 1.35fr;
        gap: 48px;
    }

    .heritage-space__gallery {
        min-height: 520px;
    }

    .heritage-why__inner {
        gap: 52px;
    }

    .heritage-why__photo {
        min-height: 600px;
    }
}

@media all and (max-width: 960px) {
    .heritage-statement,
    .heritage-space,
    .heritage-care,
    .heritage-why,
    .heritage-life {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .heritage-space__inner,
    .heritage-why__inner {
        grid-template-columns: 1fr;
    }

    .heritage-space__head {
        max-width: 650px;
    }

    .heritage-space__gallery {
        min-height: 580px;
    }

    .heritage-care-card {
        min-height: 300px;
        padding: 42px 30px;
    }

    .heritage-why__photo {
        min-height: 480px;
        max-height: 620px;
    }

    .heritage-life__editorial {
        grid-template-rows: 220px 340px;
    }

    .heritage-facility-preview {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .heritage-facility-preview__copy {
        max-width: 500px;
    }
}

/* Mobile */
@media all and (max-width: 767px) {
    .heritage-container,
    .heritage-main #main_visual .roll_txt {
        width: calc(100% - 36px);
    }

    .heritage-main #main_visual .roll_txt {
        bottom: 100px;
    }

    .heritage-main #main_visual .roll_txt h2 {
        margin-top: 12px;
        font-size: 31px;
        line-height: 1.2;
    }

    .heritage-main #main_visual .roll_txt p {
        margin-top: 16px;
        font-size: 15.5px;
        line-height: 1.62;
    }

    .heritage-main #main_visual .roll::after {
        background: linear-gradient(180deg, rgba(32,25,16,.08) 8%, rgba(32,25,16,.23) 48%, rgba(32,25,16,.72) 100%);
    }

    .heritage-visual-progress {
        right: 18px;
        bottom: 62px;
        width: 120px;
    }

    .heritage-statement,
    .heritage-space,
    .heritage-care,
    .heritage-why,
    .heritage-life {
        padding: 64px 0;
    }

    .heritage-eyebrow {
        margin-bottom: 13px;
        font-size: 12px;
    }

    .heritage-display,
    .heritage-section-head h2,
    .heritage-space__head h2,
    .heritage-why__copy > h2,
    .heritage-contact h2 {
        font-size: 31px;
        line-height: 1.22;
    }

    .heritage-statement__lead {
        margin-top: 25px;
        font-size: 21px;
        line-height: 1.58;
    }

    .heritage-statement__desc,
    .heritage-space__head > p:last-of-type,
    .heritage-section-head > p:last-child,
    .heritage-why__intro,
    .heritage-contact__inner > p:not(.heritage-eyebrow) {
        font-size: 16px;
        line-height: 1.75;
    }

    .heritage-gold-line {
        margin-top: 28px;
    }

    .heritage-statement__photo {
        width: 100%;
        margin-top: 40px;
    }

    .heritage-statement__photo::before {
        padding-top: 66%;
    }

    .heritage-space__inner {
        gap: 38px;
    }

    .heritage-space__gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 310px 180px;
        gap: 9px;
        min-height: 0;
    }

    .heritage-space__gallery .heritage-space__large {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .heritage-space__gallery figure:nth-child(2),
    .heritage-space__gallery figure:nth-child(3) {
        grid-row: 2;
    }

    .heritage-space__gallery figcaption {
        padding: 18px 16px 14px;
    }

    .heritage-space__gallery figcaption span {
        font-size: 14px;
    }

    .heritage-care__grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
        border-bottom: 0;
    }

    .heritage-care-card,
    .heritage-care-card:first-child {
        min-height: 0;
        padding: 34px 8px 34px;
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid var(--heritage-line);
    }

    .heritage-card-num {
        font-size: 42px;
    }

    .heritage-care-card h3 {
        margin-top: 22px;
        font-size: 21px;
    }

    .heritage-care-card p {
        font-size: 16px;
    }

    .heritage-why .features_box.heritage-why__grid {
        grid-template-columns: 1fr;
        margin-top: 38px;
    }

    .heritage-why__grid article,
    .heritage-why__grid article:nth-child(odd),
    .heritage-why__grid article:nth-child(even) {
        grid-template-columns: 42px 1fr;
        min-height: 0;
        padding: 24px 0;
        border-left: 0;
    }

    .heritage-why__grid h3 {
        font-size: 18px;
    }

    .heritage-why__grid p {
        font-size: 15.5px;
    }

    .heritage-why__photo {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .heritage-life__editorial {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
    }

    .heritage-life__item,
    .heritage-life__item--a,
    .heritage-life__item--b,
    .heritage-life__item--c {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .heritage-life__quote {
        min-height: 170px;
    }

    .heritage-life__quote p {
        font-size: 22px;
    }

    .heritage-life__item figcaption {
        right: 16px;
        bottom: 15px;
        left: 16px;
    }

    .heritage-life__item figcaption span {
        font-size: 15px;
    }

    .heritage-facility-preview {
        margin-top: 58px;
        padding-top: 46px;
    }

    .heritage-facility-preview__photos {
        gap: 6px;
    }

    .heritage-facility-preview__copy h3 {
        font-size: 26px;
    }

    .heritage-contact {
        min-height: 600px;
        padding: 80px 0;
    }

    .heritage-contact__bg {
        background:
            linear-gradient(rgba(38,30,21,.78), rgba(38,30,21,.78)),
            url('../img/sub/heritage/facility13.jpg') center / cover no-repeat;
    }

    .heritage-contact__phone {
        margin-top: 26px;
        font-size: 36px;
    }

    .heritage-contact__buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 34px;
    }

    .heritage-contact__buttons a {
        min-width: 0;
        height: 48px;
        padding: 0 8px;
        font-size: 14px;
    }
}

@media all and (max-width: 420px) {
    .heritage-container,
    .heritage-main #main_visual .roll_txt {
        width: calc(100% - 28px);
    }

    .heritage-main #main_visual .roll_txt h2 {
        font-size: 28px;
    }

    .heritage-space__gallery {
        grid-template-rows: 270px 150px;
    }

    .heritage-contact__phone {
        font-size: 32px;
    }
}

/* v1.0.4 compatibility: remove the former IL YOUNG feature background layer. */
.heritage-why.index_features::before,
.heritage-why.index_features::after {
    display: none;
}

/* ========================================================================== 
   HERITAGE SILVER CARE PAJU - FINAL RESPONSIVE QA v1.0.5 (2026-08-27)
   Long editorial sections use normal document scrolling while retaining the
   original reveal effects and side navigation. Existing JS files are untouched.
   ========================================================================== */
.heritage-main .heritage-statement,
.heritage-main .heritage-space,
.heritage-main .heritage-care,
.heritage-main .heritage-why,
.heritage-main .heritage-life,
.heritage-main .heritage-contact {
    scroll-margin-top: 100px;
}

@media all and (max-width: 767px) {
    .heritage-main .side_nav {
        display: none !important;
    }

    .heritage-main .heritage-space__gallery img,
    .heritage-main .heritage-life__item img,
    .heritage-main .heritage-facility-preview__photos img {
        object-position: center center;
    }
}

@media all and (max-width: 520px) {
    .heritage-main .heritage-facility-preview__photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .heritage-main .heritage-facility-preview__photos img:first-child {
        grid-column: 1 / 3;
        aspect-ratio: 16 / 9;
    }

    .heritage-main .heritage-facility-preview__photos img:nth-child(2),
    .heritage-main .heritage-facility-preview__photos img:nth-child(3) {
        aspect-ratio: 1 / 1;
    }
}

/* =========================================================
   v1.0.6 MAIN SECTION POLISH
   Space / Care / Why Heritage / Consultation
   ========================================================= */

/* SPACE: add breathing room and a stronger editorial composition. */
.heritage-space {
    padding: 122px 0 132px;
}

.heritage-space__inner {
    align-items: start;
}

.heritage-space__head {
    padding-top: 36px;
}

.heritage-space__visual {
    min-width: 0;
}

.heritage-space__gallery {
    min-height: 630px;
    padding-bottom: 0;
    box-shadow: 0 24px 60px rgba(72,54,27,.10);
}

.heritage-space__gallery figure {
    border-radius: 2px;
}

.heritage-space__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 28px;
    padding: 24px 0 4px;
    border-top: 1px solid rgba(156,114,34,.26);
}

.heritage-space__points span {
    position: relative;
    padding: 0 24px 0 20px;
    color: var(--heritage-charcoal);
    font-size: 15.5px;
    line-height: 1.55;
    font-weight: 700;
}

.heritage-space__points span::before {
    content: '';
    position: absolute;
    top: .58em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--heritage-gold);
    box-shadow: 0 0 0 4px rgba(200,154,50,.12);
}

/* CARE: turn the plain columns into premium independent cards. */
.heritage-care {
    padding: 122px 0;
    background:
        linear-gradient(180deg, #fff 0%, #fff 58%, #fbf8f2 100%);
}

.heritage-care__grid {
    gap: 20px;
    margin-top: 64px;
    border: 0;
}

.heritage-care-card,
.heritage-care-card:first-child {
    position: relative;
    min-height: 356px;
    padding: 42px 38px 38px;
    overflow: hidden;
    border: 1px solid #e9e1d2;
    border-top: 3px solid var(--heritage-gold);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 40px rgba(70,53,31,.07);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.heritage-care-card::after {
    content: '';
    position: absolute;
    right: -38px;
    bottom: -52px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(200,154,50,.15);
    border-radius: 50%;
}

.heritage-care-card:hover {
    background: #fff;
    border-color: rgba(200,154,50,.55);
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(70,53,31,.13);
}

.heritage-care-card__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.heritage-care-card__eng {
    padding-bottom: 5px;
    color: #9b8664;
    font-size: 11.5px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .13em;
}

.heritage-care-card h3 {
    margin-top: 34px;
}

.heritage-care-card__tag {
    display: inline-block;
    margin-top: 28px;
    padding: 8px 12px;
    color: var(--heritage-deep-gold);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    border-radius: 999px;
    background: #faf4e7;
}

/* WHY: remove legacy feature-box coupling and stabilize text/image columns. */
.heritage-why {
    padding: 116px 0;
}

.heritage-why__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .82fr);
    gap: 72px;
    align-items: center;
}

.heritage-why__copy,
.heritage-why__photo {
    min-width: 0;
}

.heritage-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 46px;
}

.heritage-why__grid article,
.heritage-why__grid article:nth-child(odd),
.heritage-why__grid article:nth-child(even) {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    gap: 18px;
    min-height: 0;
    padding: 23px 10px 23px 0;
    border-top: 1px solid rgba(255,255,255,.16);
    border-left: 0;
    transition: padding-left .28s ease, background .28s ease;
}

.heritage-why__grid article:last-child {
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.heritage-why__grid article:hover {
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(200,154,50,.10), rgba(200,154,50,0));
}

.heritage-why__grid article > span {
    padding-top: 2px;
    font-size: 16px;
}

.heritage-why__grid article > div {
    min-width: 0;
}

.heritage-why__grid h3 {
    font-size: 20px;
    word-break: keep-all;
}

.heritage-why__grid p {
    max-width: 580px;
    margin-top: 6px;
    word-break: keep-all;
}

.heritage-why__grid article > em {
    align-self: center;
    color: rgba(239,211,151,.72);
    font-size: 18px;
    font-style: normal;
    transition: color .25s ease, transform .25s ease;
}

.heritage-why__grid article:hover > em {
    color: #f0d28c;
    transform: translate(3px,-3px);
}

.heritage-why__photo {
    min-height: 600px;
    border-radius: 2px;
    box-shadow: 0 28px 60px rgba(15,11,7,.24);
}

.heritage-why__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(25,18,11,.02) 45%, rgba(25,18,11,.48) 100%);
    pointer-events: none;
}

.heritage-why__photo img {
    transition: transform .75s ease;
}

.heritage-why__photo:hover img {
    transform: scale(1.035);
}

.heritage-why__photo figcaption {
    z-index: 2;
}

/* CONSULTATION: compact horizontal CTA instead of a tall hero block. */
.heritage-contact {
    min-height: 0;
    padding: 72px 0;
}

.heritage-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 70px;
    align-items: center;
}

.heritage-contact__copy {
    min-width: 0;
}

.heritage-contact h2 {
    font-size: clamp(36px, 3.2vw, 50px);
    line-height: 1.22;
}

.heritage-contact__copy > p:not(.heritage-eyebrow) {
    margin-top: 17px;
    color: rgba(255,255,255,.76);
    font-size: 16.5px;
    line-height: 1.7;
}

.heritage-contact__action {
    min-width: 450px;
}

.heritage-contact__phone {
    margin-top: 0;
    margin-left: auto;
    font-size: clamp(34px, 3.3vw, 48px);
}

.heritage-contact__buttons {
    justify-content: flex-end;
    margin-top: 24px;
}

.heritage-contact__buttons a {
    min-width: 128px;
    height: 48px;
}

@media all and (max-width: 1180px) {
    .heritage-space__head {
        padding-top: 18px;
    }

    .heritage-space__gallery {
        min-height: 550px;
    }

    .heritage-why__inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
        gap: 48px;
    }

    .heritage-contact__inner {
        gap: 42px;
    }

    .heritage-contact__action {
        min-width: 390px;
    }
}

@media all and (max-width: 960px) {
    .heritage-space__head {
        padding-top: 0;
    }

    .heritage-space__points {
        margin-top: 22px;
    }

    .heritage-care__grid {
        gap: 14px;
    }

    .heritage-care-card,
    .heritage-care-card:first-child {
        min-height: 320px;
        padding: 34px 26px;
    }

    .heritage-why__inner {
        grid-template-columns: 1fr;
    }

    .heritage-why__photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .heritage-contact__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .heritage-contact__action {
        min-width: 0;
    }

    .heritage-contact__phone {
        margin-left: 0;
    }

    .heritage-contact__buttons {
        justify-content: flex-start;
    }
}

@media all and (max-width: 767px) {
    .heritage-space {
        padding-top: 68px;
        padding-bottom: 76px;
    }

    .heritage-space__gallery {
        min-height: 0;
        box-shadow: 0 14px 34px rgba(72,54,27,.09);
    }

    .heritage-space__points {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 22px;
        padding-top: 20px;
    }

    .heritage-space__points span {
        padding-left: 18px;
        font-size: 15px;
    }

    .heritage-care {
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .heritage-care__grid {
        gap: 14px;
        border: 0;
    }

    .heritage-care-card,
    .heritage-care-card:first-child {
        min-height: 0;
        padding: 30px 25px 28px;
        border: 1px solid #e9e1d2;
        border-top: 3px solid var(--heritage-gold);
        border-radius: 12px;
    }

    .heritage-care-card__eng {
        font-size: 10.5px;
    }

    .heritage-care-card h3 {
        margin-top: 22px;
    }

    .heritage-care-card__tag {
        margin-top: 21px;
    }

    .heritage-why {
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .heritage-why__grid {
        margin-top: 34px;
    }

    .heritage-why__grid article,
    .heritage-why__grid article:nth-child(odd),
    .heritage-why__grid article:nth-child(even) {
        grid-template-columns: 38px minmax(0, 1fr) 22px;
        gap: 12px;
        padding: 21px 0;
    }

    .heritage-why__grid article:hover {
        padding-left: 0;
    }

    .heritage-why__grid h3 {
        font-size: 18px;
    }

    .heritage-why__photo {
        aspect-ratio: 4 / 3;
        margin-top: 6px;
    }

    .heritage-contact {
        padding: 54px 0 58px;
    }

    .heritage-contact__inner {
        gap: 24px;
    }

    .heritage-contact h2 {
        font-size: 30px;
    }

    .heritage-contact__phone {
        font-size: 34px;
    }

    .heritage-contact__buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 20px;
    }

    .heritage-contact__buttons a {
        min-width: 0;
        height: 46px;
        padding: 0 8px;
        font-size: 14px;
    }
}

/* ========================================================================== */
/* v1.0.7 BRAND / LIFE / CONTACT FINAL POLISH                                */
/* ========================================================================== */

/* Brand statement: horizontal editorial composition on desktop. */
.heritage-statement {
    padding: 108px 0;
}

.heritage-statement__inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 74px;
    align-items: center;
}

.heritage-statement__inner--split .heritage-statement__photo {
    position: relative;
    width: 100%;
    margin: 0;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(75, 55, 25, .11);
}

.heritage-statement__inner--split .heritage-statement__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    transition: transform .7s ease;
}

.heritage-statement__inner--split .heritage-statement__photo:hover img {
    transform: scale(1.02);
}

.heritage-statement__photo figcaption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 9px 13px;
    color: #fff;
    background: rgba(42, 32, 21, .64);
    backdrop-filter: blur(4px);
}

.heritage-statement__photo figcaption strong {
    color: #ead097;
    font-size: 13px;
    font-weight: 700;
}

.heritage-statement__photo figcaption span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
}

.heritage-statement__copy {
    min-width: 0;
}

.heritage-statement__copy .heritage-display {
    margin-top: 17px;
}

.heritage-statement__copy .heritage-statement__lead {
    margin-top: 27px;
}

.heritage-statement__copy .heritage-gold-line {
    display: block;
    width: 58px;
    height: 2px;
    margin: 30px 0 25px;
    background: var(--heritage-gold);
}

.heritage-statement__copy .heritage-statement__desc {
    max-width: 610px;
    margin: 0;
}

/* LIFE AT HERITAGE: four image-led benefit cards with hover disclosure. */
.heritage-life__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 58px;
}

.heritage-life-card {
    position: relative;
    min-width: 0;
    aspect-ratio: .72 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #332a21;
}

.heritage-life-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .58s ease;
}

.heritage-life-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27,21,15,.04) 24%, rgba(27,21,15,.79) 100%);
    transition: background .45s ease;
}

.heritage-life-card__content {
    position: absolute;
    right: 25px;
    bottom: 24px;
    left: 25px;
    color: #fff;
    transform: translateY(58px);
    transition: transform .45s ease;
}

.heritage-life-card__content strong {
    display: block;
    color: #e7c979;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
}

.heritage-life-card__content h3 {
    margin-top: 9px;
    color: #fff;
    font-size: 22px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: -.025em;
}

.heritage-life-card__content p {
    min-height: 50px;
    margin-top: 13px;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.65;
    opacity: 0;
    transition: opacity .35s ease;
}

.heritage-life-card__content span {
    display: inline-block;
    margin-top: 15px;
    padding-top: 12px;
    color: #edcf83;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    border-top: 1px solid rgba(231,201,121,.58);
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .35s ease, transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .heritage-life-card:hover img {
        transform: scale(1.045);
    }

    .heritage-life-card:hover .heritage-life-card__shade {
        background: linear-gradient(180deg, rgba(27,21,15,.16) 10%, rgba(27,21,15,.88) 100%);
    }

    .heritage-life-card:hover .heritage-life-card__content {
        transform: translateY(0);
    }

    .heritage-life-card:hover .heritage-life-card__content p,
    .heritage-life-card:hover .heritage-life-card__content span {
        opacity: 1;
    }

    .heritage-life-card:hover .heritage-life-card__content span {
        transform: translateX(0);
    }
}

/* Facility preview: retain original 3:2 photo ratio and avoid unnecessary crop. */
.heritage-facility-preview {
    margin-top: 78px;
    padding-top: 58px;
}

.heritage-facility-preview__photos {
    gap: 14px;
}

.heritage-facility-preview__photos img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 7px;
    transition: transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .heritage-facility-preview__photos img:hover {
        transform: scale(1.015);
    }
}

/* Compact consultation strip: roughly one third of the old visual height. */
.heritage-contact--compact {
    min-height: 0;
    padding: 30px 0;
}

.heritage-contact--compact .heritage-contact__bg {
    background:
        linear-gradient(90deg, rgba(40,31,22,.96), rgba(48,37,26,.92)),
        url('../img/sub/heritage/facility13.jpg') center 50% / cover no-repeat;
}

.heritage-contact--compact .heritage-contact__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
}

.heritage-contact--compact .heritage-contact__copy {
    display: flex;
    align-items: center;
    gap: 24px;
}

.heritage-contact--compact .heritage-eyebrow {
    flex: 0 0 auto;
    margin: 0;
}

.heritage-contact--compact h2 {
    margin: 0;
    font-size: clamp(24px, 2vw, 31px);
    line-height: 1.25;
    white-space: nowrap;
}

.heritage-contact--compact .heritage-contact__action {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.heritage-contact--compact .heritage-contact__phone {
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(27px, 2.4vw, 36px);
    white-space: nowrap;
}

.heritage-contact--compact .heritage-contact__buttons {
    display: flex;
    gap: 7px;
    margin: 0;
}

.heritage-contact--compact .heritage-contact__buttons a {
    min-width: 92px;
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
}

/* The legacy section side navigation / scroll text is intentionally removed. */
.heritage-main .side_nav {
    display: none !important;
}

@media all and (max-width: 1180px) {
    .heritage-statement__inner--split {
        gap: 48px;
    }

    .heritage-life__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .heritage-life-card {
        aspect-ratio: 1.18 / 1;
    }

    .heritage-life-card__content {
        transform: translateY(0);
    }

    .heritage-life-card__content p,
    .heritage-life-card__content span {
        opacity: 1;
    }

    .heritage-contact--compact .heritage-contact__inner {
        gap: 28px;
    }

    .heritage-contact--compact .heritage-contact__copy {
        gap: 16px;
    }

    .heritage-contact--compact .heritage-contact__buttons a {
        min-width: 82px;
    }
}

@media all and (max-width: 960px) {
    .heritage-statement {
        padding: 82px 0;
    }

    .heritage-statement__inner--split {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .heritage-statement__inner--split .heritage-statement__photo {
        aspect-ratio: 16 / 10;
    }

    .heritage-contact--compact {
        padding: 28px 0 30px;
    }

    .heritage-contact--compact .heritage-contact__inner {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .heritage-contact--compact .heritage-contact__copy {
        justify-content: space-between;
    }

    .heritage-contact--compact .heritage-contact__action {
        justify-content: space-between;
    }
}

@media all and (max-width: 767px) {
    .heritage-statement {
        padding: 66px 0 72px;
    }

    .heritage-statement__inner--split {
        gap: 32px;
    }

    .heritage-statement__inner--split .heritage-statement__photo {
        aspect-ratio: 4 / 3;
        border-radius: 7px;
    }

    .heritage-statement__copy .heritage-display {
        margin-top: 13px;
    }

    .heritage-statement__copy .heritage-statement__lead {
        margin-top: 20px;
    }

    .heritage-statement__copy .heritage-gold-line {
        margin: 24px 0 20px;
    }

    .heritage-life__cards {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 38px;
    }

    .heritage-life-card {
        aspect-ratio: 4 / 3;
    }

    .heritage-life-card__content {
        right: 21px;
        bottom: 20px;
        left: 21px;
        transform: none;
    }

    .heritage-life-card__content h3 {
        font-size: 20px;
    }

    .heritage-life-card__content p {
        min-height: 0;
        margin-top: 8px;
        font-size: 15.5px;
        opacity: 1;
    }

    .heritage-life-card__content span {
        display: none;
    }

    .heritage-facility-preview {
        margin-top: 58px;
        padding-top: 44px;
    }

    .heritage-facility-preview__photos {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .heritage-facility-preview__photos img,
    .heritage-main .heritage-facility-preview__photos img:first-child,
    .heritage-main .heritage-facility-preview__photos img:nth-child(2),
    .heritage-main .heritage-facility-preview__photos img:nth-child(3) {
        width: 100%;
        aspect-ratio: 3 / 2;
        height: auto;
        object-fit: cover;
        grid-column: auto;
        grid-row: auto;
    }

    .heritage-contact--compact {
        padding: 24px 0 26px;
    }

    .heritage-contact--compact .heritage-contact__copy,
    .heritage-contact--compact .heritage-contact__action {
        display: block;
    }

    .heritage-contact--compact h2 {
        margin-top: 7px;
        font-size: 23px;
        white-space: normal;
    }

    .heritage-contact--compact .heritage-contact__phone {
        font-size: 29px;
    }

    .heritage-contact--compact .heritage-contact__buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 13px;
    }

    .heritage-contact--compact .heritage-contact__buttons a {
        min-width: 0;
        height: 40px;
        padding: 0 7px;
        font-size: 13.5px;
    }
}

/* ========================================================================== 
   v1.0.8 FINAL DENSITY / WHY / CONTACT POLISH
   - Heritage content sections release legacy 100vh fixed height
   - Brand story vertical density and title hierarchy refined
   - WHY HERITAGE changed to compact 2 x 2 cards + balanced photo
   - Facility Tour removed from the main page
   - Consultation converted to a true compact strip
   ========================================================================== */

/* Release the legacy `.index_wrap .sect { height:100vh; }` only for the
   redesigned Heritage content sections. The main visual keeps its original
   slider height/behavior. */
.heritage-main .heritage-statement,
.heritage-main .heritage-space,
.heritage-main .heritage-care,
.heritage-main .heritage-why,
.heritage-main .heritage-life,
.heritage-main .heritage-contact {
    height: auto !important;
    min-height: 0 !important;
}

/* Main visual typography: preserve hierarchy without overwhelming images. */
.heritage-main #main_visual .roll_txt h2 {
    max-width: 720px;
    font-size: clamp(44px, 3.6vw, 54px);
    line-height: 1.16;
    letter-spacing: -.04em;
}

.heritage-main #main_visual .roll_txt p {
    max-width: 600px;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.7;
}

/* Brand story: remove the empty lower field seen on wide PC screens. */
.heritage-statement {
    padding: 78px 0 82px;
}

.heritage-statement__inner--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 64px;
    align-items: center;
}

.heritage-statement__copy .heritage-display {
    max-width: 560px;
    margin-top: 14px;
    font-size: clamp(39px, 3.15vw, 46px);
    line-height: 1.16;
    letter-spacing: -.045em;
}

.heritage-statement__copy .heritage-statement__lead {
    margin-top: 23px;
    font-size: clamp(19px, 1.55vw, 22px);
    line-height: 1.65;
}

.heritage-statement__copy .heritage-gold-line {
    margin: 26px 0 21px;
}

.heritage-statement__copy .heritage-statement__desc {
    font-size: 17px;
    line-height: 1.75;
}

/* WHY HERITAGE: equalize the text and image columns by compressing the four
   benefits into a 2 x 2 grid. */
.heritage-why {
    padding: 88px 0 92px;
}

.heritage-why__inner {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .96fr);
    gap: 60px;
    align-items: stretch;
}

.heritage-why__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heritage-why__copy > h2 {
    font-size: clamp(36px, 3vw, 44px);
    line-height: 1.18;
}

.heritage-why__intro {
    max-width: 520px;
    margin-top: 22px;
    font-size: 16.5px;
    line-height: 1.7;
}

.heritage-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.heritage-why__grid article,
.heritage-why__grid article:nth-child(odd),
.heritage-why__grid article:nth-child(even) {
    display: block;
    min-height: 154px;
    padding: 20px 42px 19px 20px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.heritage-why__grid article:last-child {
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.heritage-why__grid article:hover {
    padding-left: 20px;
    transform: translateY(-3px);
    border-color: rgba(222,181,91,.5);
    background: rgba(255,255,255,.055);
    box-shadow: 0 14px 30px rgba(10,7,4,.12);
}

.heritage-why__grid article > span {
    display: block;
    margin-bottom: 13px;
    padding: 0;
    color: #e0b85e;
    font-size: 14px;
    font-weight: 800;
}

.heritage-why__grid article > div {
    min-width: 0;
}

.heritage-why__grid h3 {
    font-size: 19px;
    line-height: 1.35;
}

.heritage-why__grid p {
    max-width: none;
    margin-top: 7px;
    font-size: 14.5px;
    line-height: 1.62;
}

.heritage-why__grid article > em {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 16px;
}

.heritage-why__photo {
    min-height: 0;
    height: 100%;
    aspect-ratio: 4 / 3;
    align-self: center;
    border-radius: 8px;
    overflow: hidden;
}

.heritage-why__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heritage-why__photo figcaption {
    right: auto;
    bottom: 22px;
    left: 24px;
    padding: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

/* LIFE is the final image-led section. Facility Preview / Facility Tour has
   been removed from HTML; keep the lower spacing concise before contact. */
.heritage-life {
    padding-bottom: 86px;
}

.heritage-facility-preview {
    display: none !important;
}

/* True compact consultation strip. Remove the old photo backdrop and override
   the legacy full-screen section height. */
.heritage-contact--compact {
    height: auto !important;
    min-height: 0 !important;
    padding: 27px 0 !important;
    background: #2f261d;
}

.heritage-contact--compact .heritage-contact__bg {
    display: none !important;
}

.heritage-contact--compact .heritage-contact__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
}

.heritage-contact--compact .heritage-contact__copy {
    gap: 17px;
}

.heritage-contact--compact h2 {
    font-size: clamp(22px, 1.75vw, 27px);
    line-height: 1.28;
}

.heritage-contact--compact .heritage-contact__phone {
    font-size: clamp(26px, 2.1vw, 31px);
}

.heritage-contact--compact .heritage-contact__action {
    gap: 16px;
}

.heritage-contact--compact .heritage-contact__buttons a {
    min-width: 84px;
    height: 38px;
    padding: 0 13px;
    font-size: 13px;
}

@media all and (max-width: 1180px) {
    .heritage-statement {
        padding: 72px 0 76px;
    }

    .heritage-statement__inner--split {
        gap: 46px;
    }

    .heritage-why__inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
        gap: 42px;
    }

    .heritage-why__grid article,
    .heritage-why__grid article:nth-child(odd),
    .heritage-why__grid article:nth-child(even) {
        min-height: 150px;
        padding-right: 36px;
    }
}

@media all and (max-width: 960px) {
    .heritage-main #main_visual .roll_txt h2 {
        font-size: clamp(40px, 5.1vw, 48px);
    }

    .heritage-statement {
        padding: 68px 0 72px;
    }

    .heritage-why {
        padding: 76px 0 80px;
    }

    .heritage-why__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .heritage-why__photo {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .heritage-contact--compact {
        padding: 25px 0 27px !important;
    }

    .heritage-contact--compact .heritage-contact__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media all and (max-width: 767px) {
    .heritage-main #main_visual .roll_txt h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .heritage-main #main_visual .roll_txt p {
        margin-top: 14px;
        font-size: 15.5px;
        line-height: 1.6;
    }

    .heritage-statement {
        padding: 56px 0 62px;
    }

    .heritage-statement__copy .heritage-display {
        font-size: 31px;
    }

    .heritage-statement__copy .heritage-statement__lead {
        font-size: 18px;
    }

    .heritage-statement__copy .heritage-statement__desc {
        font-size: 16px;
    }

    .heritage-why {
        padding: 64px 0 68px;
    }

    .heritage-why__copy > h2 {
        font-size: 31px;
    }

    .heritage-why__grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 28px;
    }

    .heritage-why__grid article,
    .heritage-why__grid article:nth-child(odd),
    .heritage-why__grid article:nth-child(even) {
        min-height: 0;
        padding: 19px 42px 19px 19px;
    }

    .heritage-why__grid article:hover {
        padding-left: 19px;
        transform: none;
    }

    .heritage-why__grid h3 {
        font-size: 18px;
    }

    .heritage-why__grid p {
        font-size: 15px;
    }

    .heritage-why__photo {
        aspect-ratio: 4 / 3;
    }

    .heritage-life {
        padding-bottom: 62px;
    }

    .heritage-contact--compact {
        padding: 22px 0 24px !important;
    }

    .heritage-contact--compact h2 {
        font-size: 21px;
    }

    .heritage-contact--compact .heritage-contact__phone {
        font-size: 27px;
    }
}

/* ========================================================================== 
   v1.0.9 HERITAGE MOMENTS COLLAGE FINAL
   - Replace the single cropped strip below the hero with an editorial 3-photo collage
   - Soft ivory background layer, restrained overlap, rounded photos and warm shadows
   - Keep the lower LIFE photo cards visually distinct
   ========================================================================== */

.heritage-main .heritage-moments {
    height: auto !important;
    min-height: 0 !important;
    position: relative;
    overflow: hidden;
    padding: 64px 0 76px;
    background: #fff;
}

.heritage-moments__inner {
    position: relative;
}

.heritage-moments__head {
    position: relative;
    z-index: 4;
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.heritage-moments__head h2 {
    margin: 12px 0 0;
    color: #25211c;
    font-size: clamp(31px, 2.65vw, 40px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.04em;
    word-break: keep-all;
}

.heritage-moments__head > p:not(.heritage-eyebrow) {
    margin: 16px auto 0;
    color: #6b6258;
    font-size: 17px;
    line-height: 1.75;
    word-break: keep-all;
}

.heritage-moments__head .heritage-gold-line {
    display: block;
    width: 54px;
    height: 2px;
    margin: 23px auto 0;
    background: #c89a32;
}

.heritage-moments__stage {
    position: relative;
    min-height: 540px;
    max-width: 1120px;
    margin: 0 auto;
}

.heritage-moments__backdrop {
    position: absolute;
    z-index: 0;
    top: 56px;
    right: 56px;
    bottom: 40px;
    left: 92px;
    border-radius: 28px;
    background: #f7f2e8;
}

.heritage-moments__backdrop:before,
.heritage-moments__backdrop:after {
    content: '';
    position: absolute;
    border: 1px solid rgba(183,134,38,.18);
    border-radius: 50%;
    pointer-events: none;
}

.heritage-moments__backdrop:before {
    width: 150px;
    height: 150px;
    top: -34px;
    right: -26px;
}

.heritage-moments__backdrop:after {
    width: 82px;
    height: 82px;
    left: 28px;
    bottom: -24px;
}

.heritage-moments-card {
    position: absolute;
    z-index: 2;
    margin: 0;
}

.heritage-moments-card__media {
    overflow: hidden;
    border: 1px solid rgba(188,151,77,.17);
    border-radius: 18px;
    background: #eee9df;
    box-shadow: 0 24px 48px rgba(77,58,31,.13);
}

.heritage-moments-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.heritage-moments-card figcaption {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: baseline;
    gap: 11px;
    margin-top: 13px;
    color: #29241e;
}

.heritage-moments-card figcaption span {
    color: #a87819;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
}

.heritage-moments-card figcaption strong {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.heritage-moments-card--space {
    top: 16px;
    left: 0;
    width: 55%;
}

.heritage-moments-card--space .heritage-moments-card__media {
    aspect-ratio: 4 / 3;
}

.heritage-moments-card--care {
    top: 0;
    right: 2.5%;
    width: 31%;
}

.heritage-moments-card--care .heritage-moments-card__media {
    aspect-ratio: 5 / 4;
}

.heritage-moments-card--care figcaption {
    display: flex;
    justify-content: flex-end;
    margin: 0 8px 12px 0;
}

.heritage-moments-card--nature {
    right: 8.5%;
    bottom: 0;
    width: 34%;
}

.heritage-moments-card--nature .heritage-moments-card__media {
    aspect-ratio: 4 / 3;
}

.heritage-moments-card--nature figcaption {
    margin-left: 14px;
}

@media (hover:hover) and (pointer:fine) {
    .heritage-moments-card:hover .heritage-moments-card__media img {
        transform: scale(1.025);
    }
}

@media all and (max-width: 1180px) {
    .heritage-main .heritage-moments {
        padding: 58px 0 70px;
    }

    .heritage-moments__stage {
        min-height: 500px;
    }

    .heritage-moments__backdrop {
        right: 28px;
        left: 54px;
    }
}

@media all and (max-width: 960px) {
    .heritage-main .heritage-moments {
        padding: 54px 0 64px;
    }

    .heritage-moments__head {
        margin-bottom: 34px;
    }

    .heritage-moments__stage {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        min-height: 0;
        padding: 28px 24px 26px;
    }

    .heritage-moments__backdrop {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 22px;
    }

    .heritage-moments-card,
    .heritage-moments-card--space,
    .heritage-moments-card--care,
    .heritage-moments-card--nature {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
    }

    .heritage-moments-card--space {
        grid-column: 1 / -1;
    }

    .heritage-moments-card--space .heritage-moments-card__media {
        aspect-ratio: 16 / 9;
    }

    .heritage-moments-card--care .heritage-moments-card__media,
    .heritage-moments-card--nature .heritage-moments-card__media {
        aspect-ratio: 4 / 3;
    }

    .heritage-moments-card--care figcaption {
        justify-content: flex-start;
        margin: 12px 0 0;
    }

    .heritage-moments-card--nature figcaption {
        margin-left: 0;
    }
}

@media all and (max-width: 767px) {
    .heritage-main .heritage-moments {
        padding: 46px 0 54px;
    }

    .heritage-moments__head {
        margin-bottom: 28px;
        padding: 0 5px;
    }

    .heritage-moments__head h2 {
        font-size: 27px;
    }

    .heritage-moments__head > p:not(.heritage-eyebrow) {
        font-size: 16px;
        line-height: 1.7;
    }

    .heritage-moments__stage {
        gap: 12px;
        padding: 18px 14px 19px;
    }

    .heritage-moments-card__media {
        border-radius: 13px;
        box-shadow: 0 13px 26px rgba(77,58,31,.11);
    }

    .heritage-moments-card figcaption {
        display: block;
        margin-top: 9px;
        line-height: 1.4;
    }

    .heritage-moments-card figcaption span,
    .heritage-moments-card figcaption strong {
        display: block;
    }

    .heritage-moments-card figcaption strong {
        margin-top: 3px;
        font-size: 15px;
    }

    .heritage-moments-card--care figcaption {
        margin: 9px 0 0;
    }
}

@media all and (max-width: 420px) {
    .heritage-moments__stage {
        grid-template-columns: 1fr;
    }

    .heritage-moments-card--space {
        grid-column: auto;
    }

    .heritage-moments-card--space .heritage-moments-card__media,
    .heritage-moments-card--care .heritage-moments-card__media,
    .heritage-moments-card--nature .heritage-moments-card__media {
        aspect-ratio: 4 / 3;
    }
}

/* ========================================================================== */
/* v1.0.10 HERITAGE MOMENTS SPLIT COMPACT FINAL                              */
/* ========================================================================== */
.heritage-main .heritage-moments--split {
    height: auto !important;
    min-height: 0 !important;
    padding: 76px 0 82px;
    overflow: hidden;
    background: #fbfaf7;
}

.heritage-moments-split__inner {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(52px, 5.2vw, 82px);
    max-width: 1220px;
    margin: 0 auto;
}

.heritage-moments-split__copy {
    min-width: 0;
    padding-left: 10px;
}

.heritage-moments-split__copy h2 {
    margin: 13px 0 0;
    color: #25211c;
    font-size: clamp(34px, 3.15vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.045em;
    word-break: keep-all;
}

.heritage-moments-split__desc {
    margin: 24px 0 0;
    color: #655d54;
    font-size: 17px;
    line-height: 1.8;
    word-break: keep-all;
}

.heritage-moments-split__copy .heritage-gold-line {
    display: block;
    width: 52px;
    height: 2px;
    margin: 27px 0 24px;
    background: #c89a32;
}

.heritage-moments-split__keywords {
    margin: 0;
    padding: 0;
    list-style: none;
}

.heritage-moments-split__keywords li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #e7dfd3;
}

.heritage-moments-split__keywords li:last-child {
    border-bottom: 0;
}

.heritage-moments-split__keywords span {
    flex: 0 0 92px;
    color: #a87819;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
}

.heritage-moments-split__keywords strong {
    min-width: 0;
    color: #332d26;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.heritage-moments-split__visual {
    position: relative;
    min-width: 0;
    min-height: 450px;
    padding: 20px 58px 30px 30px;
}

.heritage-moments-split__backdrop {
    position: absolute;
    z-index: 0;
    top: 52px;
    right: 0;
    bottom: 8px;
    left: 76px;
    border-radius: 28px 28px 58px 28px;
    background: #f1eadc;
}

.heritage-moments-split__backdrop:after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(184, 136, 41, .22);
    border-radius: 50%;
}

.heritage-moments-split__main,
.heritage-moments-split__sub {
    position: absolute;
    z-index: 2;
    margin: 0;
    overflow: hidden;
    background: #eee8dc;
    box-shadow: 0 20px 45px rgba(66, 49, 26, .14);
}

.heritage-moments-split__main {
    top: 10px;
    left: 0;
    width: 73%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(185, 143, 58, .16);
    border-radius: 20px;
}

.heritage-moments-split__sub {
    border: 4px solid #fff;
    border-radius: 15px;
}

.heritage-moments-split__sub--care {
    top: 0;
    right: 1%;
    width: 36%;
    aspect-ratio: 5 / 4;
}

.heritage-moments-split__sub--comfort {
    right: 5.5%;
    bottom: 0;
    width: 41%;
    aspect-ratio: 4 / 3;
}

.heritage-moments-split__main img,
.heritage-moments-split__sub img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

@media (hover:hover) and (pointer:fine) {
    .heritage-moments-split__main:hover img,
    .heritage-moments-split__sub:hover img {
        transform: scale(1.025);
    }
}

@media all and (max-width: 1100px) {
    .heritage-main .heritage-moments--split {
        padding: 66px 0 72px;
    }

    .heritage-moments-split__inner {
        gap: 44px;
    }

    .heritage-moments-split__visual {
        min-height: 410px;
        padding-right: 42px;
    }
}

@media all and (max-width: 900px) {
    .heritage-main .heritage-moments--split {
        padding: 58px 0 64px;
    }

    .heritage-moments-split__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .heritage-moments-split__copy {
        max-width: 720px;
        padding: 0;
    }

    .heritage-moments-split__copy h2 br {
        display: none;
    }

    .heritage-moments-split__visual {
        min-height: 510px;
        padding: 16px 52px 28px 22px;
    }

    .heritage-moments-split__main {
        width: 71%;
    }

    .heritage-moments-split__sub--care {
        width: 34%;
    }

    .heritage-moments-split__sub--comfort {
        width: 38%;
    }
}

@media all and (max-width: 767px) {
    .heritage-main .heritage-moments--split {
        padding: 48px 0 54px;
    }

    .heritage-moments-split__inner {
        gap: 30px;
    }

    .heritage-moments-split__copy h2 {
        font-size: 29px;
    }

    .heritage-moments-split__desc {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.7;
    }

    .heritage-moments-split__copy .heritage-gold-line {
        margin: 22px 0 17px;
    }

    .heritage-moments-split__keywords li {
        padding: 8px 0;
    }

    .heritage-moments-split__keywords span {
        flex-basis: 86px;
        font-size: 11px;
    }

    .heritage-moments-split__keywords strong {
        font-size: 16px;
    }

    .heritage-moments-split__visual {
        min-height: 0;
        padding: 17px 12px 20px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .heritage-moments-split__backdrop {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 20px;
    }

    .heritage-moments-split__main,
    .heritage-moments-split__sub,
    .heritage-moments-split__sub--care,
    .heritage-moments-split__sub--comfort {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
    }

    .heritage-moments-split__main {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 10;
        border-radius: 15px;
    }

    .heritage-moments-split__sub {
        border-width: 3px;
        border-radius: 12px;
        aspect-ratio: 4 / 3;
    }
}

@media all and (max-width: 420px) {
    .heritage-moments-split__visual {
        grid-template-columns: 1fr;
    }

    .heritage-moments-split__main {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }

    .heritage-moments-split__sub {
        aspect-ratio: 4 / 3;
    }
}

/* ========================================================================== */
/* v1.0.11 MOMENTS RESPONSIVE FLOW + STATEMENT REMOVAL FINAL                  */
/* ========================================================================== */
/*
 * The legacy main used full-screen section sizing.  The Heritage moments
 * block is content-driven and must keep breathing room at intermediate widths.
 */
.heritage-main .heritage-moments--split {
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    padding-top: clamp(64px, 5.4vw, 78px);
    padding-bottom: clamp(68px, 5.8vw, 84px);
}

/* The statement block has been removed from index.php in v1.0.11.  Keep the
 * next SPACE section visually separated without recreating a blank section. */
.heritage-main .heritage-moments--split + .heritage-space {
    margin-top: 0;
    padding-top: clamp(72px, 6vw, 92px);
}

@media all and (max-width: 1080px) {
    .heritage-main .heritage-moments--split {
        padding-top: 62px;
        padding-bottom: 70px;
    }

    .heritage-moments-split__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .heritage-moments-split__copy {
        max-width: 760px;
        padding-left: 0;
    }

    .heritage-moments-split__copy h2 br {
        display: none;
    }

    .heritage-moments-split__visual {
        width: 100%;
        max-width: 820px;
        min-height: 500px;
        margin: 0 auto;
        padding: 16px 54px 28px 24px;
    }

    .heritage-main .heritage-moments--split + .heritage-space {
        padding-top: 76px;
    }
}

@media all and (max-width: 900px) {
    .heritage-main .heritage-moments--split {
        padding-top: 54px;
        padding-bottom: 62px;
    }

    .heritage-moments-split__inner {
        gap: 34px;
    }

    .heritage-moments-split__visual {
        min-height: 470px;
        padding-right: 46px;
    }

    .heritage-main .heritage-moments--split + .heritage-space {
        padding-top: 66px;
    }
}

@media all and (max-width: 767px) {
    .heritage-main .heritage-moments--split {
        padding-top: 46px;
        padding-bottom: 52px;
    }

    .heritage-moments-split__inner {
        gap: 28px;
    }

    .heritage-moments-split__visual {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
    }

    .heritage-main .heritage-moments--split + .heritage-space {
        padding-top: 56px;
    }
}

/* =========================================================
   v1.0.13 BRAND STORY REFERENCE-LIKE 2-CUT FINAL
   - Reference-like large photo + overlapping sub photo
   - Keep Heritage rounded/ivory/gold identity
   - Secure visual breathing room below main slider
   ========================================================= */
.heritage-main .heritage-moments,
.heritage-main .heritage-moments--split {
    display: none !important;
}

.heritage-main .heritage-statement--compact {
    height: auto !important;
    min-height: 0 !important;
    padding: 82px 0 76px;
    background: #fbf9f4;
    overflow: hidden;
}

.heritage-statement-compact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
    align-items: center;
    gap: 74px;
}

.heritage-statement-compact__visual {
    position: relative;
    min-width: 0;
    height: 430px;
}

.heritage-statement-compact__backdrop {
    position: absolute;
    left: 30px;
    right: 14px;
    top: 28px;
    bottom: 12px;
    border-radius: 30px 30px 68px 30px;
    background: #f1eadc;
}

.heritage-statement-compact__main,
.heritage-statement-compact__sub {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 46px rgba(75, 57, 33, .12);
}

.heritage-statement-compact__main {
    left: 0;
    top: 0;
    width: 82%;
    height: 395px;
    border-radius: 22px 56px 22px 22px;
    z-index: 2;
}

.heritage-statement-compact__main img,
.heritage-statement-compact__sub img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heritage-statement-compact__main img {
    object-position: center 48%;
}

.heritage-statement-compact__main figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    background: rgba(72, 53, 31, .78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    backdrop-filter: blur(4px);
}

.heritage-statement-compact__sub {
    right: 0;
    bottom: 0;
    width: 43%;
    height: 206px;
    border: 4px solid #fff;
    border-radius: 18px;
    z-index: 3;
}

.heritage-statement-compact__sub img {
    object-position: center 48%;
}

@media (hover:hover) and (pointer:fine) {
    .heritage-statement-compact__main img,
    .heritage-statement-compact__sub img {
        transition: transform .55s ease;
    }
    .heritage-statement-compact__main:hover img,
    .heritage-statement-compact__sub:hover img {
        transform: scale(1.018);
    }
}

.heritage-statement-compact__copy {
    min-width: 0;
}

.heritage-statement-compact__copy .heritage-eyebrow {
    margin-bottom: 18px;
}

.heritage-statement-compact__copy h2 {
    margin: 0;
    font-size: clamp(38px, 3vw, 43px);
    line-height: 1.23;
    letter-spacing: -.045em;
    color: #26231f;
    font-weight: 800;
}

.heritage-statement-compact__lead {
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.68;
    color: #332f2a;
    font-weight: 600;
}

.heritage-statement-compact__copy .heritage-gold-line {
    display: block;
    width: 54px;
    height: 2px;
    margin: 26px 0 20px;
    background: #c89a32;
}

.heritage-statement-compact__desc {
    margin: 0;
    max-width: 510px;
    font-size: 17px;
    line-height: 1.78;
    color: #665f56;
    word-break: keep-all;
}

@media (max-width: 1180px) {
    .heritage-main .heritage-statement--compact {
        padding-top: 72px;
        padding-bottom: 68px;
    }
    .heritage-statement-compact__inner {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .88fr);
        gap: 44px;
    }
    .heritage-statement-compact__visual {
        height: 390px;
    }
    .heritage-statement-compact__main {
        height: 356px;
    }
    .heritage-statement-compact__sub {
        width: 42%;
        height: 184px;
    }
}

@media (max-width: 1024px) {
    .heritage-main .heritage-statement--compact {
        padding: 66px 0 64px;
    }
    .heritage-statement-compact__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .heritage-statement-compact__copy {
        grid-row: 1;
        text-align: center;
        max-width: 720px;
        margin: 0 auto;
    }
    .heritage-statement-compact__copy .heritage-gold-line {
        margin-left: auto;
        margin-right: auto;
    }
    .heritage-statement-compact__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .heritage-statement-compact__visual {
        grid-row: 2;
        width: min(760px, 100%);
        height: 385px;
        margin: 0 auto;
    }
    .heritage-statement-compact__main {
        width: 82%;
        height: 350px;
    }
    .heritage-statement-compact__sub {
        width: 40%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .heritage-main .heritage-statement--compact {
        padding: 54px 0 56px;
    }
    .heritage-statement-compact__inner {
        gap: 28px;
    }
    .heritage-statement-compact__copy h2 {
        font-size: 31px;
    }
    .heritage-statement-compact__lead {
        margin-top: 20px;
        font-size: 17px;
    }
    .heritage-statement-compact__desc {
        font-size: 16px;
        line-height: 1.72;
    }
    .heritage-statement-compact__visual {
        height: 315px;
    }
    .heritage-statement-compact__backdrop {
        left: 14px;
        right: 8px;
        top: 20px;
        bottom: 8px;
        border-radius: 22px 22px 48px 22px;
    }
    .heritage-statement-compact__main {
        width: 86%;
        height: 282px;
        border-radius: 16px 34px 16px 16px;
    }
    .heritage-statement-compact__sub {
        width: 43%;
        height: 136px;
        border-width: 3px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .heritage-main .heritage-statement--compact {
        padding: 48px 0 50px;
    }
    .heritage-statement-compact__copy h2 {
        font-size: 28px;
    }
    .heritage-statement-compact__lead br {
        display: none;
    }
    .heritage-statement-compact__visual {
        height: 280px;
    }
    .heritage-statement-compact__main {
        width: 87%;
        height: 250px;
    }
    .heritage-statement-compact__main figcaption {
        left: 10px;
        bottom: 10px;
        padding: 7px 9px;
        font-size: 9px;
    }
    .heritage-statement-compact__sub {
        width: 44%;
        height: 118px;
    }
}


/* =========================================================
   v1.0.14 BRAND STORY GAP + VISUAL SCALE FINAL
   - Increase breathing room below main slider
   - Enlarge 2-cut visual group without making section too tall
   ========================================================= */
@media (min-width: 1181px) {
    .heritage-main .heritage-statement--compact {
        padding-top: 124px;
        padding-bottom: 82px;
    }

    .heritage-statement-compact__inner {
        grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
        gap: 72px;
    }

    .heritage-statement-compact__visual {
        height: 470px;
    }

    .heritage-statement-compact__backdrop {
        left: 34px;
        right: 8px;
        top: 32px;
        bottom: 10px;
        border-radius: 32px 32px 72px 32px;
    }

    .heritage-statement-compact__main {
        width: 88%;
        height: 435px;
    }

    .heritage-statement-compact__sub {
        right: -2px;
        width: 45%;
        height: 220px;
    }
}

@media (min-width: 1025px) and (max-width: 1180px) {
    .heritage-main .heritage-statement--compact {
        padding-top: 102px;
        padding-bottom: 74px;
    }

    .heritage-statement-compact__inner {
        grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
        gap: 48px;
    }

    .heritage-statement-compact__visual {
        height: 430px;
    }

    .heritage-statement-compact__main {
        width: 86%;
        height: 397px;
    }

    .heritage-statement-compact__sub {
        width: 44%;
        height: 198px;
    }
}

@media (max-width: 1024px) {
    .heritage-main .heritage-statement--compact {
        padding-top: 82px;
    }
}

@media (max-width: 767px) {
    .heritage-main .heritage-statement--compact {
        padding-top: 62px;
    }
}

@media (max-width: 480px) {
    .heritage-main .heritage-statement--compact {
        padding-top: 54px;
    }
}

/* ========================================================================== 
   HERITAGE SILVER CARE PAJU - MAIN VISUAL ORIGINAL LIGHT FINAL v1.0.15
   2026-08-28
   - Keep supplied photography close to original brightness.
   - Restrict shade to the copy area instead of darkening the full slide.
   - Preserve text readability on desktop/tablet/mobile.
   ========================================================================== */

/* Desktop / wide tablet: shade only the left copy zone. */
.heritage-main #main_visual .roll::after {
    right: auto;
    width: 62%;
    background: linear-gradient(
        90deg,
        rgba(28, 22, 14, .36) 0%,
        rgba(28, 22, 14, .29) 20%,
        rgba(28, 22, 14, .17) 38%,
        rgba(28, 22, 14, .07) 54%,
        rgba(28, 22, 14, 0) 100%
    );
}

.heritage-main #main_visual .roll_txt h2 {
    text-shadow:
        0 2px 7px rgba(0, 0, 0, .34),
        0 1px 2px rgba(0, 0, 0, .20);
}

.heritage-main #main_visual .roll_txt p {
    text-shadow:
        0 2px 6px rgba(0, 0, 0, .34),
        0 1px 2px rgba(0, 0, 0, .18);
}

.heritage-main #main_visual .roll_txt span {
    text-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}

/* Tablet: copy becomes centered, so use a soft localized full-width fade. */
@media all and (max-width: 1023px) and (min-width: 768px) {
    .heritage-main #main_visual .roll::after {
        right: 0;
        width: 100%;
        background: linear-gradient(
            180deg,
            rgba(28, 22, 14, .02) 0%,
            rgba(28, 22, 14, .08) 28%,
            rgba(28, 22, 14, .22) 54%,
            rgba(28, 22, 14, .40) 100%
        );
    }
}

/* Mobile: keep upper photography bright and protect only the lower copy area. */
@media all and (max-width: 767px) {
    .heritage-main #main_visual .roll::after {
        right: 0;
        width: 100%;
        background: linear-gradient(
            180deg,
            rgba(28, 22, 14, 0) 0%,
            rgba(28, 22, 14, .02) 42%,
            rgba(28, 22, 14, .16) 64%,
            rgba(28, 22, 14, .56) 100%
        );
    }

    .heritage-main #main_visual .roll_txt h2 {
        text-shadow:
            0 2px 6px rgba(0, 0, 0, .42),
            0 1px 2px rgba(0, 0, 0, .22);
    }

    .heritage-main #main_visual .roll_txt p {
        text-shadow:
            0 2px 5px rgba(0, 0, 0, .40),
            0 1px 2px rgba(0, 0, 0, .20);
    }
}
