﻿@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --clio-orange: #FF5E00;
    --black: #000000;
    --white: #FFFFFF;
    --gray-bg: #F5F5F5;
    --beige-bg: #E5DFD6;
    --text-gray: #666666;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 가로 클립은 html에만 두고 body는 visible — Safari에서 자식 overflow-x:auto(푸터 브랜드 바)가 막히는 경우 완화 */
html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', 'Noto Sans KR', sans-serif;
    background-color: var(--white);
    color: var(--black);
    overflow-x: visible;
    max-width: 100%;
}

/* 본문: 가로 넘침은 html overflow-x로만 막음. main에 overflow-x:hidden을 두면
   CSS 규칙상 overflow-y가 auto로 바뀌어(WebKit) 푸터 형제까지 그리기/스크롤이 꼬일 수 있음 */
body > main {
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.main-hero {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.main-hero__slider {
    position: absolute;
    inset: 0;
}

.main-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.main-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: main-hero-slide 15s infinite;
}

.main-hero__slide:nth-child(1) {
    animation-delay: 0s;
}

.main-hero__slide:nth-child(2) {
    animation-delay: 5s;
}

.main-hero__slide:nth-child(3) {
    animation-delay: 10s;
}

.main-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

.main-hero__indicators {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.main-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    opacity: 0.6;
    animation: main-hero-dot 15s infinite;
}

.main-hero__dot:nth-child(1) {
    animation-delay: 0s;
}

.main-hero__dot:nth-child(2) {
    animation-delay: 5s;
}

.main-hero__dot:nth-child(3) {
    animation-delay: 10s;
}

@keyframes main-hero-dot {
    0% {
        opacity: 0.45;
        transform: scale(1);
        background: rgba(255, 255, 255, 0.2);
    }
    6% {
        opacity: 1;
        transform: scale(1.2);
        background: rgba(255, 255, 255, 0.95);
    }
    33% {
        opacity: 1;
        transform: scale(1.2);
        background: rgba(255, 255, 255, 0.95);
    }
    39% {
        opacity: 0.45;
        transform: scale(1);
        background: rgba(255, 255, 255, 0.2);
    }
    100% {
        opacity: 0.45;
        transform: scale(1);
        background: rgba(255, 255, 255, 0.2);
    }
}

@keyframes main-hero-slide {
    0% {
        opacity: 0;
    }
    6% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    39% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.main-hero__content {
    position: relative;
    z-index: 3;
    flex: 1 1 auto;
    min-height: 0;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 60px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.main-hero__tagline {
    color: white;
    font-size: 17px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0.04em;
}

.main-hero__logo-text {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: -320px;
    margin-top: 0;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px 0;
    box-sizing: border-box;
    text-align: center;
    transform: none;
}

.main-hero__logo-text span {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(80px, 10vw, 150px);
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.main-hero__logo-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* ======================================================
   GLOBAL MARKET LEADER (ABOUT) SECTION
   ====================================================== */
.main-about {
    background: var(--beige-bg);
    padding: 120px 0 60px;
    text-align: center;
}

.main-about__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.main-about__title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #666666;
    line-height: 39px;
    letter-spacing: 0;
    margin-bottom: 40px;
}

.main-about__desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    line-height: 34px;
    letter-spacing: 0;
    max-width: 830px;
    margin: 0 auto 50px;
    word-break: keep-all;
}

.main-about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    height: 35px;
    padding: 0;
    background: var(--white);
    border-radius: 200px;
    color: #666666;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    line-height: 34px;
    word-wrap: break-word;
    transition: var(--transition);
}

.main-about__btn:hover {
    background: var(--black);
    color: var(--white);
}

/* ======================================================
   BRANDS SECTION
   ====================================================== */
.main-brands {
    background: var(--white);
    padding: 60px 0 80px;
}

.main-brands__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.main-brands__title {
    font-family: 'Roboto', sans-serif;
    font-size: calc(40px + 2pt);
    font-weight: 400;
    color: var(--text-gray);
    text-align: center;
    margin: 0 0 50px;
    line-height: 39px;
    letter-spacing: 0;
}

.main-brands__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
    max-width: 1148px;
    margin: 0 auto;
}

.main-brands__item {
    text-align: center;
    min-width: 0;
    overflow: visible;
}

.main-brands__img-wrap {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f0ece6;
    margin-bottom: 12px;
}

.main-brands__img-wrap img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (min-width: 1025px) {
    .main-brands__img-wrap:hover img {
        transform: scale(1.08);
    }
}

.main-brands__img-wrap--dark {
    background: #000;
}

/* ---- Hover Overlay ---- */
.main-brands__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72); /* Deeper gray for premium feel */
    backdrop-filter: blur(4px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10; 
    padding: 22px;
    box-sizing: border-box;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.main-brands__img-wrap:hover .main-brands__overlay,
.main-brands__img-wrap:focus-within .main-brands__overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.main-brands__overlay-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: calc(28px + 2pt);
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.05s, opacity 0.5s ease 0.05s;
}

.main-brands__img-wrap:hover .main-brands__overlay-title,
.main-brands__img-wrap:focus-within .main-brands__overlay-title {
    transform: translateY(0);
    opacity: 1 !important;
}

/* 본문·소셜·VIEW MORE — 줄 폭에 맞춘 뒤 gap으로 (텍스트들) ↔ VIEW 리듬 */
.main-brands__overlay-body {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
    vertical-align: top;
}

.main-brands__overlay-body .main-brands__overlay-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-top: 0;
}

.main-brands__overlay-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: calc(15px + 2pt);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    line-height: 1.6;
    margin: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.1s, opacity 0.5s ease 0.1s;
}

/* 붙여 쓰면 안 되는 표기(예: K-메이크업) — 가능하면 한 덩어로, 매우 좁을 때만 줄바꿈 허용 */
.main-brands__overlay-phrase {
    white-space: nowrap;
}

@media (max-width: 340px) {
    .main-brands__overlay-phrase {
        white-space: normal;
    }
}

.main-brands__img-wrap:hover .main-brands__overlay-desc,
.main-brands__img-wrap:focus-within .main-brands__overlay-desc {
    transform: translateY(0);
    opacity: 1 !important;
}

.main-brands__overlay-social {
    display: flex;
    gap: 15px;
    margin: 0;
    justify-content: center;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.15s, opacity 0.5s ease 0.15s;
}

.main-brands__img-wrap:hover .main-brands__overlay-social,
.main-brands__img-wrap:focus-within .main-brands__overlay-social {
    transform: translateY(0);
    opacity: 1 !important;
}

.main-brands__overlay-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    color: #fff;
    font-size: calc(11px + 2pt);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.2s, opacity 0.5s ease 0.2s, background 0.3s ease, color 0.3s ease;
}

.main-brands__img-wrap:hover .main-brands__overlay-more,
.main-brands__img-wrap:focus-within .main-brands__overlay-more {
    transform: translateY(0);
    opacity: 1 !important;
}

.main-brands__overlay-more:hover {
    background: #fff;
    color: #333;
    transform: translateY(0) scale(1.05);
}

.main-brands__overlay-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.main-brands__overlay-social a:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.main-brands__name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 12px;
    padding: 4px 2px 10px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 0.5px;
    overflow: visible;
}

.main-brands__name img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(9%) sepia(10%) saturate(605%) hue-rotate(314deg) brightness(97%) contrast(93%);
}

/* 브랜드 로고: 픽셀 고정 없이 원본 비율, 칸 너비만 넘지 않게 (위 .main-brands__name img) */
.main-brands__name--brand-goodal img {
    transform: translateY(2px);
}

.main-brands__name--brand-clubclio img {
    filter: none;
}

/* ======================================================
   BRAND NEWS SECTION
   ====================================================== */
.main-news {
    background: var(--beige-bg);
    padding: 120px 0;
}

.main-news__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.main-news__title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 50px;
    line-height: 39px;
    letter-spacing: 0;
}

.main-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1148px;
    margin: 0 auto;
}

.main-news__card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.main-news__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.main-news__card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.main-news__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-news__card:hover .main-news__card-img img {
    transform: scale(1.05);
}

.main-news__card-info {
    padding: 20px 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-news__card-brand {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.main-news__card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--text-gray);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.main-news__card-link:hover {
    background: var(--black);
    border-color: var(--black);
}

.main-news__card-link:hover svg {
    stroke: white;
}

/* ======================================================
   CLIO WAY SECTION
   ====================================================== */
.main-clio-way {
    background: var(--white);
    padding: 120px 0;
}

.main-clio-way__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.main-clio-way__title {
    font-family: 'Roboto', sans-serif;
    font-size: calc(40px + 2pt);
    font-weight: 400;
    color: var(--text-gray);
    text-align: center;
    line-height: 39px;
    letter-spacing: 0;
    margin: 0;
}

.main-clio-way__subtitle {
    margin: 14px 0 0;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 34px;
    color: #666666;
    letter-spacing: 0;
}

.main-clio-way__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1148px;
    margin: 50px auto 0;
}

.main-clio-way__card {
    position: relative;
    aspect-ratio: 357 / 342;
    border-radius: 12px;
    padding: 30px 27px;
    overflow: hidden;
    transition: var(--transition);
}

.main-clio-way__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.main-clio-way__card--vision {
    background: #ff5e00;
    color: #ffffff;
}

.main-clio-way__card--mission {
    background: #e5dfd6;
    color: #666666;
}

.main-clio-way__card--value {
    background: #666666;
    color: #ffffff;
}

.main-clio-way__card-title {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0;
}

.main-clio-way__card-label {
    margin: 12px 0 0;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.02em;
    font-synthesis: none;
}

.main-clio-way__card-desc {
    margin: 22px 0 0;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.02em;
    font-synthesis: none;
}

.main-clio-way__card-logo {
    position: absolute;
    right: 27px;
    bottom: 27px;
    width: 72px;
    height: auto;
}

/* ======================================================
   CONTACT IR SECTION
   ====================================================== */
.main-contact-ir {
    background: var(--white);
    padding: 120px 0;
    text-align: center;
}

.main-contact-ir__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.main-contact-ir__title {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 39px;
    letter-spacing: 0;
}

.main-contact-ir__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    height: 35px;
    padding: 0;
    box-sizing: border-box;
    background: var(--white);
    border: 1.5px solid #ccc;
    border-radius: 200px;
    color: #666666;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    line-height: 34px;
    word-wrap: break-word;
    transition: var(--transition);
}

.main-contact-ir__btn:hover {
    background: #E5DFD6;
    border-color: #ccc;
    color: #333;
}

/* ======================================================
   LEGACY (keeping for other pages that still use these)
   ====================================================== */

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 942px;
    background: #333;
}

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

#brand-bar {
    position: absolute;
    top: 791px;
    left: 50%;
    transform: translateX(-50%);
    width: 972px;
    height: 61px;
    background: rgba(3, 7, 9, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 30px;
}

.brand-bar-item { font-size: 16px; font-weight: 700; color: white; opacity: 0.8; }

/* --- About Us (Scroll Effect) --- */
#about-legacy { padding: 150px 0; text-align: center; background: white; }

.about-title { font-size: 120px; font-weight: 200; margin-bottom: 80px; }
.about-desc-box { font-size: 20px; line-height: 1.7; font-weight: 200; margin-bottom: 100px; }
.about-desc-box b { font-weight: 600; }

.about-img-full { width: 1506px; margin-left: -33px; border-radius: 20px; }

/* --- Mission & Value Grid (Figma Gradient) --- */
.mv-section {
    position: relative;
    background: radial-gradient(ellipse 62.83% 72.83% at 50% 57.7%, var(--clio-orange) 35%, white 93%);
    padding: 150px 60px;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1440px;
    margin: 0 auto;
}

.mv-text-box {
    padding: 100px 60px;
    color: white;
}

.mv-text-box h2 { font-size: 65px; font-weight: 400; margin-bottom: 40px; }
.mv-text-box p { font-size: 25px; font-weight: 500; line-height: 1.6; }

.mv-img-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* --- Brands Slider Area --- */
.brand-slider {
    padding: 100px 0;
    overflow-x: auto;
    display: flex;
    gap: 30px;
    padding-left: 60px;
}

.brand-card {
    min-width: 286px;
    height: 440px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

.brand-card img { width: 100%; height: 100%; object-fit: cover; }

/* --- News Section (Legacy) --- */
#news-legacy { background: var(--gray-bg); padding: 100px 60px; text-align: center; }
.news-header { font-size: 65px; font-weight: 400; text-transform: uppercase; margin-bottom: 60px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.news-item { background: white; border-radius: 10px; overflow: hidden; text-align: left; transition: var(--transition); }
.news-item:hover { transform: translateY(-10px); }
.news-item img { width: 100%; height: 300px; object-fit: cover; }
.news-item-tag { padding: 25px; font-size: 25px; font-weight: 500; }

/* ======================================================
   RESPONSIVE — 작은 스마트폰 ~ 갤럭시 Z Fold 펼침 ~ iPad Pro 13" 세로(~1024px)까지 모바일
   브레이크포인트 768px 이하에서 화면 폭 비율로 늘어나고 줄어드는 유동 레이아웃
   ====================================================== */

/* 히어로 로고+슬라이드 닷: 섹션 하단에 고정(닷 바로 위에 로고 붙음). 세로/가로 모두 폭 기준으로 적용 */
@media (max-width: 1024px) {
    .main-hero__logo-text {
        bottom: calc(env(safe-area-inset-bottom, 0px) - 90px);
        padding: 0 clamp(20px, 5vw, 64px);
        transform: none;
    }

    .main-hero__indicators {
        margin-top: clamp(6px, 1.8vw, 14px);
    }

    .main-hero__logo-img {
        transform: none;
    }
}

/* 폰 가로: 히어로가 850px로 남지 않게 해 로고·닷이 한 화면 안에 모이도록 */
@media (max-width: 1024px) and (orientation: landscape) {
    .main-hero {
        height: min(92svh, 520px);
        min-height: 260px;
    }

    .main-hero__content {
        padding: clamp(48px, 12vh, 100px) clamp(20px, 5vw, 64px) 0;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .main-hero {
        height: clamp(620px, 95vw, 1080px);
    }

    .main-hero__content {
        padding: clamp(88px, 14vw, 180px) clamp(20px, 5vw, 64px) 0;
    }

    .main-hero__logo-text span {
        font-size: clamp(36px, 9vw, 120px);
    }

    .main-hero__logo-img {
        width: 100%;
    }

    .main-about {
        padding: clamp(50px, 9vw, 110px) 0 clamp(40px, 7vw, 90px);
    }

    .main-about__inner {
        padding: 0 clamp(28px, 5.5vw, 80px);
    }

    .main-about__title {
        font-size: clamp(24px, 5.4vw, 56px);
    }

    .main-about__desc {
        font-size: clamp(13px, 2.6vw, 24px);
        line-height: 1.85;
    }

    .main-brands__inner {
        padding: 0 clamp(20px, 4.6vw, 60px);
    }

    .main-brands__title {
        font-size: clamp(24px, 5.4vw, 56px);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .main-brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(10px, 2.4vw, 28px);
    }

    .main-brands__name {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-brands__img-wrap:hover .main-brands__overlay,
    .main-brands__img-wrap:focus-within .main-brands__overlay {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex-direction: column;
        overflow-x: auto;
        overflow-y: auto;
        max-height: 100%;
        -webkit-overflow-scrolling: touch;
        padding: clamp(16px, 3.6vw, 32px);
        gap: clamp(8px, 1.8vw, 16px);
        line-height: 1.35;
        text-align: center;
        align-items: stretch;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-body,
    .main-brands__img-wrap:focus-within .main-brands__overlay-body {
        align-self: center;
        max-width: 100%;
    }

    .main-brands__img-wrap:hover img,
    .main-brands__img-wrap:focus-within img {
        transform: none;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-title,
    .main-brands__img-wrap:focus-within .main-brands__overlay-title {
        font-size: clamp(13px, 3.1vw, 32px);
        font-weight: 700;
        margin: 0;
        line-height: 1.28;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        text-align: center;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-desc,
    .main-brands__img-wrap:focus-within .main-brands__overlay-desc {
        font-size: clamp(9px, 2.3vw, 20px);
        font-weight: 400;
        margin: 0;
        line-height: 1.45;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        overflow: visible;
        text-overflow: clip;
        text-align: center;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-social,
    .main-brands__img-wrap:focus-within .main-brands__overlay-social {
        margin: 0;
        gap: 0.4em;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-social a,
    .main-brands__img-wrap:focus-within .main-brands__overlay-social a {
        width: clamp(26px, 5.6vw, 52px);
        height: clamp(26px, 5.6vw, 52px);
        flex-shrink: 0;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-social a svg,
    .main-brands__img-wrap:focus-within .main-brands__overlay-social a svg {
        width: clamp(14px, 3vw, 28px);
        height: clamp(14px, 3vw, 28px);
    }

    .main-brands__img-wrap:hover .main-brands__overlay-more,
    .main-brands__img-wrap:focus-within .main-brands__overlay-more {
        font-size: clamp(9px, 2vw, 18px);
        font-weight: 500;
        margin: 0 auto;
        padding: 0.45em 0.9em;
        line-height: 1.25;
        letter-spacing: 0.04em;
        flex-shrink: 0;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        align-self: center;
    }

    .main-news__inner {
        padding: 0 clamp(20px, 4.6vw, 60px);
    }

    .main-news__title {
        font-size: clamp(22px, 5vw, 48px);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .main-news__grid {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3.2vw, 36px);
        max-width: min(840px, 100%);
    }

    .main-clio-way {
        padding: clamp(50px, 9vw, 110px) 0;
    }

    .main-clio-way__inner {
        padding: 0 clamp(20px, 4.6vw, 60px);
    }

    .main-clio-way__title {
        font-size: clamp(24px, 5.4vw, 56px);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .main-clio-way__subtitle {
        margin: 13px 0 0;
        font-family: 'Noto Sans KR', sans-serif;
        font-size: clamp(11px, 2.4vw, 20px);
        font-weight: 400;
        line-height: 1.7;
        letter-spacing: 0;
    }

    .main-clio-way__cards {
        grid-template-columns: 1fr;
        gap: clamp(14px, 3vw, 32px);
        max-width: min(840px, 100%);
    }

    .main-clio-way__card {
        aspect-ratio: auto;
        min-height: clamp(240px, 45vw, 480px);
        padding: clamp(22px, 4.8vw, 56px) clamp(20px, 4.4vw, 50px);
    }

    .main-clio-way__card-title {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: clamp(20px, 4.4vw, 44px);
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .main-clio-way__card-label {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: clamp(13px, 2.8vw, 26px);
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: 0.02em;
        font-synthesis: none;
    }

    .main-clio-way__card-desc {
        margin-top: clamp(10px, 2vw, 22px);
        font-family: 'Noto Sans KR', sans-serif;
        font-size: clamp(13px, 2.8vw, 26px);
        font-weight: 400;
        line-height: 1.35;
        letter-spacing: 0.02em;
        font-synthesis: none;
    }

    .main-clio-way__card-logo {
        width: clamp(48px, 10vw, 110px);
        right: clamp(18px, 3.8vw, 44px);
        bottom: clamp(18px, 3.8vw, 44px);
    }

    .main-contact-ir {
        padding: clamp(50px, 9vw, 110px) 0 clamp(60px, 11vw, 140px);
    }

    .main-contact-ir__title {
        font-size: clamp(22px, 5vw, 48px);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .main-about {
        text-align: center;
    }

    .main-about__title {
        font-size: clamp(24px, 5.4vw, 56px);
        line-height: 1.25;
        white-space: nowrap;
        letter-spacing: 0.02em;
        text-align: center;
    }

    .main-about__desc {
        font-size: clamp(11px, 2.4vw, 22px);
        line-height: 1.95;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .main-brands__img-wrap:hover .main-brands__overlay,
    .main-brands__img-wrap:focus-within .main-brands__overlay {
        padding: clamp(16px, 3.6vw, 32px);
        align-items: flex-start;
        text-align: left;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-body,
    .main-brands__img-wrap:focus-within .main-brands__overlay-body {
        align-self: flex-start;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-title,
    .main-brands__img-wrap:focus-within .main-brands__overlay-title {
        text-align: left;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-desc,
    .main-brands__img-wrap:focus-within .main-brands__overlay-desc {
        text-align: left;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-more,
    .main-brands__img-wrap:focus-within .main-brands__overlay-more {
        margin: 0;
        text-align: center;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-social,
    .main-brands__img-wrap:focus-within .main-brands__overlay-social {
        display: none !important;
    }

    .main-hero {
        height: clamp(620px, 95vw, 1080px);
        height: min(clamp(620px, 95vw, 1080px), 92svh);
        min-height: 600px;
    }

    .main-hero__tagline {
        font-size: clamp(12px, 2.5vw, 22px);
        line-height: 1.65;
    }

    .main-brands__name {
        min-height: clamp(40px, 7vw, 76px);
        margin-top: clamp(6px, 1.6vw, 18px);
        padding-bottom: clamp(8px, 2vw, 18px);
        font-size: clamp(12px, 2.4vw, 22px);
    }
}

/* 태블릿 세로 전용(휴대폰 제외): 히어로 로고를 조금 더 아래로 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .main-hero__logo-text {
        bottom: calc(env(safe-area-inset-bottom, 0px) - 230px);
    }
}

/* 가로 400px 이하: 시안 기준 타이포(제목 17 Bold / 본문 10·행간 16 / VIEW MORE 10 / 상단 22px) */
@media (max-width: 400px) {
    .main-brands__inner {
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }

    .main-brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .main-brands__img-wrap:hover .main-brands__overlay,
    .main-brands__img-wrap:focus-within .main-brands__overlay {
        padding: 22px;
        gap: 10px;
        overflow-x: hidden;
        align-items: flex-start;
        text-align: left;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-title,
    .main-brands__img-wrap:focus-within .main-brands__overlay-title {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-desc,
    .main-brands__img-wrap:focus-within .main-brands__overlay-desc {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: 10px;
        font-weight: 400;
        line-height: 16px;
        text-align: left;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-more,
    .main-brands__img-wrap:focus-within .main-brands__overlay-more {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: 10px;
        font-weight: 400;
        line-height: 16px;
        letter-spacing: 0.04em;
        padding: 6px 12px;
        margin: 0;
        text-align: center;
        box-sizing: border-box;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-social,
    .main-brands__img-wrap:focus-within .main-brands__overlay-social {
        justify-content: flex-start;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-social a,
    .main-brands__img-wrap:focus-within .main-brands__overlay-social a {
        width: 24px;
        height: 24px;
    }

    .main-brands__img-wrap:hover .main-brands__overlay-social a svg,
    .main-brands__img-wrap:focus-within .main-brands__overlay-social a svg {
        width: 12px;
        height: 12px;
    }

    .main-brands__name {
        min-height: 36px;
        padding-left: 2px;
        padding-right: 2px;
    }
}

@media (max-width: 360px) {
    .main-brands__grid {
        gap: 6px;
    }

    .main-brands__img-wrap:hover .main-brands__overlay,
    .main-brands__img-wrap:focus-within .main-brands__overlay {
        padding: 22px;
    }
}
