/* Main Content */
.main-content {
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Section Title */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.section-title h1,
.section-title h2 {
    font-family: var(--homepage-heading-font), sans-serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: var(--homepage-letter-spacing);
    color: #000000;
    font-weight: 400;
    white-space: nowrap;
}

.title-underline {
    width: 340px;
    height: 6px;
    background: url('images/d07f7f4d2f0b0e8d4e3add6dba9ecb85307110e3.svg') no-repeat center;
    background-size: contain;
}

.title-underline.small {
    width: 160px;
    height: 4px;
}

/* Concept Section */
.concept-section {
    width: 100%;
    padding: 40px 0;
    text-align: center;
}

html[lang="ja"] .concept-section .section-title h1 {
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Concept Description */
.concept-desc {
    width: 100%;
    padding: 0 0 40px;
}

.concept-desc-container {
    padding: 0 20px;
    margin: 40px auto;
    max-width: 720px;
}

.desc-text {
    min-width: 0;
    font-size: var(--homepage-desc-text-font-size);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

html[lang="ja"] .concept-desc-container .desc-text {
    line-height: 24px;
}

.concept-copy-section + .concept-copy-section {
    margin-top: 24px;
}

.concept-copy-heading {
    margin-bottom: 24px;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.desc-sequence {
    width: 100%;
    padding: 0 20px;
}

.concept-stage {
    padding: 16px 0;
}

.concept-lead {
    max-width: 680px;
    margin: 0 auto 24px;
    font-family: var(--homepage-heading-font), sans-serif;
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

.concept-scene {
    position: relative;
}

.desc-image {
    width: 100%;
    max-width: var(--desc-image-width, 320px);
    aspect-ratio: 48 / 73;
    margin: 0 auto;
    position: relative;
}

.concept-summary {
    max-width: 600px;
    margin: 24px auto 0;
    overflow-wrap: anywhere;
}

.concept-summary h2 {
    font-family: var(--homepage-heading-font), sans-serif;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 16px;
}

.concept-summary-body {
    font-size: 16px;
    line-height: 1.9;
}

.desc-sequence.is-scroll-enabled {
    height: var(--desc-track-height);
}

.is-scroll-enabled .concept-stage {
    position: sticky;
    top: var(--desc-sticky-top, 24px);
}

.is-desktop-story .concept-scene {
    --desc-gap: 56px;
    max-width: 840px;
    margin: 0 auto;
    min-height: var(--desc-scene-height);
    display: flex;
    align-items: center;
}

.is-desktop-story .desc-image {
    flex: 0 0 var(--desc-image-width);
    transform: translateX(var(--desc-shift, 0px)) scale(var(--desc-scale, 1));
    will-change: transform;
}

.is-desktop-story .concept-summary {
    position: absolute;
    left: 0;
    width: calc(100% - var(--desc-image-width) * 0.82 - var(--desc-gap));
    max-width: none;
    margin: 0;
    opacity: var(--desc-copy-opacity, 0);
    transform: translateY(var(--desc-copy-offset, 16px));
}

@media (prefers-reduced-motion: reduce) {
    .desc-sequence.is-scroll-enabled {
        height: auto;
    }

    .is-scroll-enabled .concept-stage {
        position: static;
    }
}

.desc-image img,
.desc-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.desc-image .static-image {
    z-index: 2;
}

.desc-canvas {
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

.desc-image.has-frame .static-image {
    opacity: 0;
}

.desc-image.has-frame .desc-canvas {
    opacity: 1;
}

/* Action Button */
.action-button {
    width: 100%;
    max-width: 380px;
    height: 100px;
    background: url('images/50b77620a45b79a2a33a69767853e524852abade.webp') no-repeat center;
    background-size: contain;
    border: none;
    font-family: var(--homepage-heading-font), sans-serif;
    font-size: var(--homepage-action-button-font-size);
    line-height: 29px;
    color: #000000;
    cursor: pointer;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.action-button:hover {
    opacity: 0.8;
}

/* Point Section */
.point-section {
    width: 100%;
    padding: 40px 10px;
}

.point-title {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
}

.neko-icon {
    width: 66px;
    height: 100px;
    object-fit: cover;
}

/* Point Description */
.point-desc {
    width: 100%;
    padding: 40px 0;
    background-color: #ffffff;
}

.panel-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.panel-row-reverse {
    flex-direction: row-reverse;
}

.panel-left,
.panel-right {
    flex: 1 1 380px;
    max-width: 380px;
    min-width: 380px;
    padding: 10px;
}

.panel-text-box {
    background: url('images/39282d3db4788bef610cbe2936176027b7ccde98.webp') no-repeat center;
    background-size: contain;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 20px 20px;
    margin-bottom: 20px;
}

.panel-text-box p {
    font-family: var(--homepage-heading-font), sans-serif;
    font-size: var(--homepage-panel-text-box-font-size);
    line-height: 29px;
    color: #000000;
    text-align: center;
}

.panel-image {
    width: 360px;
    height: 300px;
    margin: 0 auto;
}

.panel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 0;
}

.panel-title h3 {
    font-family: var(--homepage-heading-font), sans-serif;
    font-size: var(--homepage-panel-title-font-size);
    line-height: 1;
    letter-spacing: var(--homepage-panel-title-letter-spacing);
    color: #000000;
    font-weight: 400;
    white-space: nowrap;
}

.panel-underline {
    width: 196px;
    height: 4px;
    background: url('images/05e2cd41eb79d122cbcbd3bbcd62d105c9dcb0a7.svg') no-repeat center;
    background-size: contain;
}

.panel-content {
    padding: 0 10px;
}

.panel-desc {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 10px;
}

.panel-list {
    padding: 32px 10px;
    min-height: 190px;
}

.panel-list p {
    font-size: var(--homepage-panel-list-font-size);
    line-height: 24px;
    color: #424242;
}

/* Case Section */
.case-section {
    width: 100%;
    padding: 40px 10px;
    text-align: center;
}

.case-subtitle {
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    margin-top: 20px;
}

/* Case Examples */
.case-examples {
    width: 100%;
    padding: 40px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 40px;
    justify-content: center;
    padding: 0 10px;
    margin-bottom: 40px;
}

.case-item {
    width: 300px;
    height: 188px;
    position: relative;
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25);
}

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

.case-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(230, 174, 187, 0.8);
    color: #ffffff;
    font-size: 12px;
    line-height: 24px;
    padding: 4px 10px;
    text-align: center;
}


/* Responsive Design - Tablet */
@media screen and (max-width: 768px) {
    /* Point Section */
    .point-section {
    width: 100%;
    padding: 0px 10px;
    }
    .desc-text {
        max-width: 100%;
    }

    .panel-row,
    .panel-row-reverse {
        flex-direction: column;
    }

    .panel-left,
    .panel-right {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        flex: 1 1 auto;
    }

    .panel-list {
        padding: 32px 10px;
        min-height: auto;
    }
        .case-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 80px;
    }
}

@media screen and (max-width: 480px) {
    html[lang="ja"] .desc-text,
    html[lang="ja"] .panel-list p {
        font-size: 14px;
    }

    .concept-summary h2,
    .concept-copy-heading,
    .panel-title h3 {
        font-weight: 700;
    }

    .case-label {
        font-size: 13px;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 400px) {
    .section-title h1,
    .section-title h2 {
        font-size: 28px;
        letter-spacing: var(--homepage-mobile-letter-spacing);
    }

    .title-underline {
        width: 260px;
    }

    .desc-text {
        font-size: 14px;
    }

    .panel-text-box p {
        font-size: 18px;
    }

    .panel-title h3 {
        font-size: 24px;
        letter-spacing: var(--homepage-mobile-letter-spacing);
    }

    .panel-image {
        width: 100%;
        max-width: 360px;
    }

    .panel-row-reverse {
        flex-direction: column;
    }

    .action-button {
        height: 80px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.concept-section,
.point-section,
.case-section,
.contact-section {
    animation: fadeIn 0.6s ease-out;
}

/* 모바일 본문은 부모의 여백을 제외한 너비 안에서 줄바꿈한다. */
@media (max-width: 768px) {
    .section-title,
    .panel-title {
        min-width: 0;
        max-width: 100%;
    }

    .section-title h1,
    .section-title h2,
    .panel-title h3 {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
        text-align: center;
    }

    .panel-left,
    .panel-right {
        min-width: 0;
    }

    .panel-image {
        width: 100%;
        max-width: 360px;
        height: auto;
        aspect-ratio: 360 / 300;
    }

    .panel-text-box {
        height: auto;
        min-height: 200px;
    }

    .case-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .case-item {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 300 / 188;
    }
}

/* 문장 구분 없이 흐르는 본문과 제목의 자연 줄바꿈. */
.section-title h1,
.section-title h2,
.concept-summary h2,
.concept-copy-heading,
.panel-title h3,
.concept-lead {
    text-wrap: balance;
}

.concept-copy-body,
.concept-summary-body,
.panel-desc,
.case-subtitle {
    text-wrap: pretty;
}
