@import url("common.css");

/* =========================================
   TONE:FIT Main Page Styles (index.css)
========================================= */

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

/* =========================================
   1. HERO SECTION
========================================= */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    min-height: 37.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero .inner {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    color: #fff;
}

.hero-title {
    font-family: 'jalnan gothic ttf', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.hero-subtitle {
    line-height: 1.6;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero .scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 1;
    display: block;
    width: clamp(3rem, 10vw, 6.25rem);
    height: clamp(3rem, 10vw, 6.25rem);
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}



/* =========================================
3. ABOUT SECTION
========================================= */
.about-section {
    position: relative;
    z-index: 2;
    padding-top: 8.125rem;
    overflow: visible;
}

.about-section > .inner {
    overflow: visible;
}

.identity-header{
    text-align: center;
    margin-bottom: 5rem;
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
    min-width: 0;
}

.about-circle-wrap {
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    justify-self: center;
}

.about-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.identity-texts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: center;
    align-content: center;
    min-width: 0;
}

.identity-texts p {
    overflow-wrap: break-word;
}

.identity-texts p:nth-child(2) {
    padding-bottom: 20px;
}


/* =========================================
   FRANCHISE PROMOTION SECTION
========================================= */


.franchise-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    grid-template-rows: auto 188px auto;
    align-items: stretch;
    margin-top: 8.125rem;
    min-width: 0;
    overflow: visible;
}

.franchise-texts {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 5rem;
}

.franchise-promo-title span {
    display: inline-block;
    width: fit-content;
    text-align: center;
    transform-origin: center center;
    animation: franchise-promo-pulse 1s ease-in-out infinite;
}

@keyframes franchise-promo-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.franchise-side-label {
    grid-column: 3;
    grid-row: 2;
    margin: 1.25rem;
    font-size: 1.25rem;
    font-weight: 400;
    color: #4C4948;
    align-self: flex-end;
}

.franchise-benefits {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    height: 188px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.franchise-benefit-item {
    flex: 0 0 auto;
}

.franchise-benefit-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 188px;
    height: 188px;
    padding: 1rem;
    border: 1px solid #4C4948;
    border-radius: 50%;
    background-color: #fff;
    box-sizing: border-box;
    transform-origin: center center;
    will-change: transform;
}

.franchise-benefit-circle .franchise-benefit-plus,
.franchise-benefit-circle .franchise-benefit-line {
    opacity: 0;
}

.franchise-benefit-plus {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: #4C4948;
}

.franchise-benefit-line {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    color: #4C4948;
}

.franchise-benefit-line strong {
    font-weight: 700;
}

.franchise-divider-v {
    grid-column: 2;
    grid-row: 1 / -1;
    width: 1px;
    background-color: #4C4948;
    justify-self: center;
}

.franchise-right-row {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    height: 188px;
}

.franchise-divider-h {
    width: 100%;
    height: 1px;
    background-color: #4C4948;
}

.franchise-mega {
    grid-column: 3;
    grid-row: 3;
    position: relative;
    width: 100%;
    height: 188px;
    overflow: visible;
}

.franchise-mega .round {
    position: absolute;
    right: -100px;
    top: 50%;
    z-index: 3;
    width: 35vw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #F8F5F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transform: translateY(-70%);
}

.franchise-mega-content {
    width: 70%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    justify-content: center;
    gap: 0.25rem;
    box-sizing: border-box;
}

.franchise-mega-label {
    font-weight: 400;
    margin: 0;
    color: #4C4948;
    align-self: flex-start;
    text-align: left;
}

.franchise-mega-value {
    margin: 0;
    font-size: 6.25rem;
    font-weight: 900;
    color: #4C4948;
    line-height: 90%;
    align-self: center;
    text-align: center;
}

.franchise-mega-unit {
    font-weight: 700;
    margin: 0;
    align-self: flex-end;
    text-align: right;
}



/* =========================================
   4. AI TONE FINDER SECTION
========================================= */
.ai-tone-finder {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ai-tone-finder-visual {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.ai-tone-finder-grid {
    display: grid;
    grid-template-columns: 45% minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 2.5rem;
    align-items: center;
}

.ai-tone-finder-aside {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    overflow: visible;
    z-index: 0;
}

.ai-tone-finder-circle {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    line-height: 0;
}

.ai-tone-finder-circle-shape {
    display: block;
    width: min(30.875rem, 100%);
    max-width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center right;
    opacity: 0;
}

.ai-tone-finder-header {
    grid-column: 2;
    grid-row: 1;
}

.ai-tone-finder-divider {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 1px;
    margin: 0;
    border: none;
    background-color: #4C4948;
}

.ai-tone-finder-lower {
    grid-column: 2;
    grid-row: 3;
    position: relative;
    z-index: 1;
    align-self: end;
}

.ai-tone-finder-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    opacity: 0;
}

.ai-tone-finder .inner {
    position: relative;
    z-index: 1;
}

.ai-tone-finder-grid .ai-tone-finder-header {
    text-align: end;
    margin-top: 5.625rem;
}

.ai-tone-finder-header:not(.is-header-visible) > * {
    opacity: 0;
}

.ai-tone-finder-content {
    text-align: end;
}

.ai-tone-finder-system {
    width: 16.125rem;
    aspect-ratio: 1;
    border: 1px solid #4C4948;
    border-radius: 50%;
    text-align: center;
    align-content: center;
}

.ai-tone-finder-system p {
    color: #4C4948;
}


.ai-tone-finder-sec-tag strong {
    font-size: 6.25rem;
    font-weight: 900;
}

/* =========================================
   5. SECTION HEADER
========================================= */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

.section-header h3 {
    font-size: 3rem;
}

.section-header hr {
    margin-top: 1.875rem;
    margin-bottom: 5rem;
    width: min(33.75rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   6. AI PERSONAL BG MATCHING SECTION
========================================= */

.ai-personal-bg-content:not(.is-content-visible) > * {
    opacity: 0;
}

.ai-personal-bg-content {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1.5rem;
    min-width: 0;
}

.ai-personal-bg-content img {
    width: 100%;
}

.ai-personal-bg-content p {
    color: #4C4948;
    font-size: 1rem;
    text-align: center;
    align-content: center;
}

.page-home .ai-pet-section {
    margin-top: 8.125rem;
}

.page-home .ai-pet-content:not(.is-pet-content-visible) > * {
    opacity: 0;
}

.page-home .ai-pet-content {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    height: 20rem;
    min-width: 0;
}

.page-home .pet-img {
    flex: 0 1 29rem;
    width: auto;
    min-width: 0;
    max-width: 29rem;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.page-home .pet-8img {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 59.5rem;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* =========================================
   7. FRAME SECTION
========================================= */
.frame-section .section-header h3,
p {
    color: #fff;
}

.frame-content {
    width: 100%;
    max-width: 100%;
    margin-top: 5rem;
    overflow: hidden;
}

.frame-swiper {
    width: 100%;
}

.frame-section .frame.fade-up {
    will-change: transform, opacity;
}

.frame-swiper .swiper-wrapper {
    align-items: stretch;
}

.frame-swiper .swiper-slide {
    height: auto;
}

.frame {
    width: 100%;
    height: clamp(16rem, 32vw, 39.125rem);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    overflow: hidden;
}

.frame p,
.frame .topage-btn {
    position: relative;
    z-index: 2;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.frame-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 0;
}

.frame::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.frame:hover::before {
    opacity: 0.6;
}

.frame:hover p,
.frame:hover .topage-btn {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.frame p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.frame .topage-btn {
    margin: 0;
}

.frame:hover .topage-btn {
    color: #fff;
    border-color: #fff;
}

.frame:hover .topage-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* =========================================
   8. REVIEW SECTION
========================================= */
.review-content {
    padding: 5rem 0;
}



.review-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    cursor: default;
}

.review-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: review-marquee-left 50s linear infinite;
    will-change: transform;
}

.review-marquee--controlled .review-track {
    animation: none;
}

.review-feed {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    border-radius: 0;
    flex: 0 0 auto;
    pointer-events: none;
    user-select: none;
}

@keyframes review-marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-track {
        animation: none;
    }

    .franchise-promo-title span {
        animation: none;
    }
}

.review-notice {
    text-align: center;
}


/* =========================================
   9.   VIRAL SECTION
========================================= */
.viral-content {
    padding: 5rem 0;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.viral-content > img {
    flex: 0 0 auto;
    width: clamp(1.5rem, 4vw, 2.75rem);
    height: auto;
    align-self: center;
}

.viral-content.fade-up {
    will-change: transform, opacity;
}

.viral-userflow {
    flex: 1 1 8.5rem;
    min-width: 0;
    max-width: 12.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.userflow-img {
    background-color: #fff;
    width: 8.875rem;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.userflow-img img{
    width: 50%;
}


.viral-userflow>h4 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #1e2022;
}

.viral-userflow p {
    font-size: 1.25rem;
    font-weight: 400;
    word-break: keep-all;
    color: #4C4948;
}

.viral-userflow>.userflow-label {
    padding: 10px 20px;
    background: #fff;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    border-radius: 50px;
    color: #1e2022;
}



/* =========================================
   10. 24HOUR SECTION
========================================= */
.ai-24hour-section{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    height: 41.875rem;
    box-sizing: border-box;
    overflow: hidden;
}

.ai-24hour-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.2);
    transform-origin: center center;
    will-change: transform;
}

.ai-24hour-section .section-header{
    position: relative;
    z-index: 1;
    margin: 0;
    width: 100%;
    color: #fff;
}

.ai-24hour-section .fade-up{
    will-change: transform, opacity;
}

.ai-24hour-section .section-header h3,
.ai-24hour-section .section-header p,
.ai-24hour-section .section-header .title,
.ai-24hour-section .color-main{
    color: #fff;
}

/* =========================================
   INDEX RESPONSIVE (769px ~ : horizontal scroll prevention)
   Tablet layout: max-width 768px (applied separately)
========================================= */

@media (max-width: 1280px) {
    .ai-personal-bg-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .ai-tone-finder-circle-shape {
        width: min(22rem, 40vw);
    }

    .ai-tone-finder-sec-tag strong {
        font-size: clamp(3rem, 8vw, 6.25rem);
    }
}

@media (max-width: 1024px) {
    .identity-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .identity-texts {
        min-width: 0;
    }

    .franchise-layout {
        column-gap: 1.5rem;
        min-width: 0;
    }

    .franchise-benefits {
        justify-content: center;
    }

    .franchise-benefit-circle {
        width: min(160px, 26vw);
        height: min(160px, 26vw);
    }

    .franchise-benefits,
    .franchise-right-row {
        height: auto;
        min-height: 160px;
    }

    .ai-personal-bg-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-home .ai-pet-content {
        height: auto;
        min-height: 16rem;
    }

    .page-home .pet-img {
        flex: 0 1 42%;
        max-width: 22rem;
    }

    .page-home .pet-8img {
        flex: 1 1 0;
        max-width: none;
    }

    .ai-tone-finder-grid {
        row-gap: 2rem;
    }

    .ai-tone-finder-grid .ai-tone-finder-header {
        margin-top: clamp(2rem, 6vw, 5.625rem);
    }

    .ai-tone-finder-content {
        flex-wrap: wrap;
        row-gap: 2rem;
    }

    .ai-tone-finder-system {
        width: min(16.125rem, 70vw);
    }

    .viral-userflow {
        flex: 1 1 calc(33.333% - 1.5rem);
        max-width: 11rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.375rem);
    }

    .section-header h3 {
        font-size: clamp(1.75rem, 4vw, 3rem);
    }

    .feature-highlight {
        grid-template-columns: 1fr;
        gap: 40px;
    }



    .profile-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-showcase:nth-child(odd) {
        direction: ltr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}

@media (min-width: 769px) and (max-width: 960px) {
    .franchise-benefit-circle {
        width: min(140px, 24vw);
        height: min(140px, 24vw);
    }

    .franchise-benefit-line,
    .franchise-benefit-plus {
        font-size: 1rem;
    }

    .franchise-mega-value {
        font-size: clamp(3.5rem, 10vw, 6.25rem);
    }

    .ai-personal-bg-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .viral-userflow {
        flex: 1 1 calc(50% - 1rem);
        max-width: 10rem;
    }

    .viral-userflow > h4 {
        font-size: 1.25rem;
    }

    .viral-userflow p {
        font-size: 1rem;
    }

    .userflow-img {
        width: min(8.875rem, 18vw);
    }

    .frame {
        height: clamp(14rem, 36vw, 28rem);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
    }

    .hero .scroll-indicator {
        width: clamp(2.5rem, 14vw, 4.5rem);
        height: clamp(2.5rem, 14vw, 4.5rem);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-header h3 {
        font-size: 1.75rem;
    }

    .identity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .franchise-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 2rem;
    }

    .franchise-texts,
    .franchise-side-label,
    .franchise-benefits,
    .franchise-divider-v,
    .franchise-right-row,
    .franchise-mega {
        grid-column: 1;
        grid-row: auto;
    }

    .franchise-mega .round {
        width: min(35vw, 85vw);
        right: -100px;
    }

    .franchise-divider-v {
        display: none;
    }

    .franchise-texts {
        margin-bottom: 3.125rem;
        text-align: center;
        align-items: center;
    }

    .franchise-benefits {
        justify-content: center;
        height: auto;
    }

    .franchise-benefit-circle {
        width: 188px;
        height: 188px;
    }

    .franchise-right-row {
        height: auto;
        padding-top: 1.25rem;
    }

    .franchise-divider-h {
        display: block;
    }

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

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

    .cta-section>.inner {
        gap: 3.125rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 402px) {
    .hero .scroll-indicator {
        width: clamp(2rem, 18vw, 3.25rem);
        height: clamp(2rem, 18vw, 3.25rem);
    }
}

/* =========================================
   INDEX MOBILE HEADER CTA
========================================= */
@media (max-width: 768px) {
    .page-home .header-mobile-cta .gnb-btn {
        color: #fff;
    }
}