:root {
    --page-bg: #d9d5c7;
    --shell-bg: #f2efe4;
    --paper-bg: #f8f5eb;
    --soft-bg: #e8e4d6;
    --ink: #17291e;
    --text: #2b2b25;
    --muted: #777267;
    --line: rgba(23, 41, 30, 0.15);
    --green: #173f26;
    --green-soft: #dce8d7;
    --apricot: #e4ad83;
    --shadow: 0 28px 80px rgba(23, 41, 30, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    word-break: keep-all;
    overflow-wrap: break-word;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-meta {
    width: min(1680px, calc(100% - 96px));
    margin: 0 auto;
    color: #1b221c;
    font-size: 21px;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-meta-top {
    padding: 54px 0 48px;
}

.page-meta-bottom {
    padding: 42px 0 58px;
    justify-content: center;
    gap: 18px;
    color: rgba(23, 41, 30, 0.55);
}

.site-shell {
    width: min(1440px, calc(100% - 96px));
    margin: 0 auto;
    overflow: hidden;
    background: var(--shell-bg);
    border: 1px solid rgba(23, 41, 30, 0.14);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.site-header {
    height: 86px;
    padding: 0 52px;
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    align-items: center;
    gap: 24px;
}

.brand-logo {
    width: 162px;
    height: auto;
}

.gnb {
    display: flex;
    justify-content: center;
    gap: 44px;
    color: rgba(23, 41, 30, 0.78);
    font-size: 15px;
    letter-spacing: -0.02em;
}

.gnb a,
.header-button,
.text-link {
    position: relative;
}

.gnb a::after,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.gnb a:hover::after,
.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    background: var(--green);
    color: #fffdf5;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-section {
    padding: 54px 52px 44px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 34px 70px;
}

.hero-title-wrap h1 {
    margin: 8px 0 0;
    color: var(--green);
    font-size: clamp(78px, 9vw, 126px);
    line-height: 0.96;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.eyebrow,
.section-label {
    margin: 0;
    color: rgba(23, 41, 30, 0.62);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy-wrap {
    align-self: end;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.hero-lead {
    margin: 0;
    color: #203126;
    font-size: 26px;
    line-height: 1.48;
    letter-spacing: -0.04em;
}

.text-link {
    width: fit-content;
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-visual {
    position: relative;
    grid-column: 1 / -1;
}

.hero-image-card {
    height: 432px;
    overflow: hidden;
    background: #ece5d1;
    border-radius: 15px;
}

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

.hero-floating {
    position: absolute;
    width: 232px;
    padding: 21px 22px;
    background: rgba(248, 245, 235, 0.88);
    border: 1px solid rgba(23, 41, 30, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(23, 41, 30, 0.12);
}

.hero-floating span {
    display: block;
    margin-bottom: 6px;
    color: rgba(23, 41, 30, 0.58);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-floating strong {
    display: block;
    color: var(--green);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.hero-floating-ebook {
    left: 44px;
    bottom: 34px;
}

.hero-floating-ai {
    right: 44px;
    top: 34px;
}

.intro-grid,
.theme-section,
.episode-section,
.daon-section,
.memory-card-section {
    padding: 112px 52px;
    border-top: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 48px 68px;
}

.intro-copy h2,
.section-head h2,
.episode-copy h2,
.chat-preview h2,
.memory-card-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(43px, 4vw, 64px);
    line-height: 1.12;
    letter-spacing: -0.06em;
    font-weight: 760;
}

.intro-copy p,
.episode-copy > p,
.card-side-copy p {
    max-width: 760px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: -0.03em;
}

.flow-list {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.flow-list article {
    min-height: 240px;
    padding: 28px 30px;
    border-right: 1px solid var(--line);
}

.flow-list article:last-child {
    border-right: 0;
}

.flow-list span {
    color: rgba(23, 41, 30, 0.45);
    font-size: 14px;
    font-weight: 800;
}

.flow-list strong {
    display: block;
    margin-top: 44px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.flow-list p,
.theme-card p,
.message p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.03em;
}

.section-head {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 68px;
    align-items: start;
    margin-bottom: 54px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.theme-card {
    min-height: 244px;
    padding: 32px;
    background: rgba(248, 245, 235, 0.56);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.theme-card:hover {
    transform: translateY(-6px);
    background: #fbf8ee;
    border-color: rgba(23, 63, 38, 0.28);
}

.theme-card.active {
    background: var(--green);
    color: #fffdf5;
}

.theme-card span {
    display: inline-flex;
    color: inherit;
    opacity: 0.62;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.theme-card strong {
    display: block;
    margin-top: 42px;
    color: inherit;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.05em;
}

.theme-card.active p {
    color: rgba(255, 253, 245, 0.72);
}

.episode-section {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 72px;
    align-items: center;
    background: rgba(232, 228, 214, 0.55);
}

.episode-photo-stack {
    position: relative;
    min-height: 600px;
}

.episode-main-image,
.episode-sub-image {
    margin: 0;
    overflow: hidden;
    background: var(--paper-bg);
    border: 1px solid rgba(23, 41, 30, 0.12);
    box-shadow: 0 18px 55px rgba(23, 41, 30, 0.12);
}

.episode-main-image {
    width: 66%;
    border-radius: 16px;
}

.episode-sub-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58%;
    border-radius: 14px;
}

.episode-info {
    width: min(100%, 520px);
    margin: 36px 0;
    display: grid;
    grid-template-columns: 112px 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.episode-info span,
.episode-info strong {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    letter-spacing: -0.03em;
}

.episode-info span:nth-last-child(2),
.episode-info strong:last-child {
    border-bottom: 0;
}

.episode-info span {
    color: rgba(23, 41, 30, 0.55);
    font-weight: 800;
}

.episode-info strong {
    color: var(--green);
}

.daon-section {
    background: var(--shell-bg);
}

.daon-card {
    display: grid;
    grid-template-columns: 0.84fr 1.16fr;
    min-height: 640px;
    overflow: hidden;
    background: #f8f5eb;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.daon-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e8e5d7 0%, #d9dfcf 100%);
}

.daon-image {
    width: min(52%, 300px);
}

.chat-preview {
    padding: 72px 76px;
}

.message-list {
    margin-top: 54px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.message {
    width: min(100%, 540px);
    padding: 22px 26px;
    border-radius: 14px;
}

.message span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.message-ai {
    background: var(--green-soft);
    color: var(--green);
}

.message-user {
    margin-left: auto;
    background: var(--green);
    color: #fffdf5;
}

.message-user p {
    color: rgba(255, 253, 245, 0.82);
}

.memory-card-section {
    background: rgba(232, 228, 214, 0.5);
}

.section-head.narrow {
    margin-bottom: 64px;
}

.memory-card-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 72px;
    align-items: center;
}

.memory-note-card {
    min-height: 520px;
    padding: 56px;
    background: #fffaf0;
    border: 1px solid rgba(23, 41, 30, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 70px rgba(23, 41, 30, 0.1);
}

.note-kicker {
    color: rgba(23, 41, 30, 0.48);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.memory-note-card h3,
.card-side-copy h3 {
    margin: 72px 0 0;
    color: var(--green);
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.memory-note-card p {
    margin: 36px 0 0;
    color: #514c43;
    font-size: 22px;
    line-height: 1.85;
    letter-spacing: -0.04em;
}

.memory-note-card small {
    display: block;
    margin-top: 72px;
    color: rgba(23, 41, 30, 0.5);
    font-size: 13px;
    line-height: 1.6;
}

.card-side-copy h3 {
    margin: 0;
}

.progress-row {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 20px;
    align-items: center;
}

.progress-row span {
    color: var(--green);
    font-weight: 800;
}

.progress-row div {
    height: 9px;
    overflow: hidden;
    background: rgba(23, 41, 30, 0.13);
    border-radius: 999px;
}

.progress-row i {
    display: block;
    width: 4.16%;
    height: 100%;
    background: var(--green);
    border-radius: inherit;
}

@media (max-width: 1200px) {
    .page-meta,
    .site-shell {
        width: min(100% - 40px, 960px);
    }

    .page-meta {
        font-size: 15px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        height: auto;
        padding: 28px 30px;
    }

    .gnb {
        display: none;
    }

    .hero-section,
    .intro-grid,
    .section-head,
    .episode-section,
    .daon-card,
    .memory-card-layout {
        grid-template-columns: 1fr;
    }

    .hero-section,
    .intro-grid,
    .theme-section,
    .episode-section,
    .daon-section,
    .memory-card-section {
        padding: 68px 30px;
    }

    .hero-title-wrap h1 {
        font-size: clamp(62px, 16vw, 104px);
    }

    .hero-lead {
        font-size: 22px;
    }

    .hero-image-card {
        height: 300px;
    }

    .flow-list,
    .theme-grid {
        grid-template-columns: 1fr 1fr;
    }

    .flow-list {
        grid-column: auto;
    }

    .flow-list article:nth-child(2n) {
        border-right: 0;
    }

    .episode-photo-stack {
        min-height: 500px;
    }

    .chat-preview {
        padding: 54px 42px;
    }
}

@media (max-width: 720px) {
    .page-meta {
        width: calc(100% - 28px);
        font-size: 12px;
    }

    .page-meta span:nth-child(2) {
        display: none;
    }

    .site-shell {
        width: calc(100% - 20px);
        border-radius: 14px;
    }

    .site-header {
        grid-template-columns: 1fr;
    }

    .header-button {
        width: 100%;
    }

    .brand-logo {
        width: 140px;
    }

    .hero-section,
    .intro-grid,
    .theme-section,
    .episode-section,
    .daon-section,
    .memory-card-section {
        padding: 50px 22px;
    }

    .hero-title-wrap h1 {
        letter-spacing: 0.02em;
    }

    .intro-copy h2,
    .section-head h2,
    .episode-copy h2,
    .chat-preview h2,
    .memory-card-section h2 {
        font-size: 38px;
    }

    .hero-floating {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .flow-list,
    .theme-grid {
        grid-template-columns: 1fr;
    }

    .flow-list article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .flow-list article:last-child {
        border-bottom: 0;
    }

    .episode-photo-stack {
        min-height: auto;
    }

    .episode-main-image,
    .episode-sub-image {
        position: static;
        width: 100%;
    }

    .episode-sub-image {
        margin-top: 18px;
    }

    .episode-info {
        grid-template-columns: 90px 1fr;
    }

    .daon-card {
        min-height: auto;
    }

    .daon-image {
        width: 240px;
    }

    .chat-preview {
        padding: 42px 22px;
    }

    .memory-note-card {
        padding: 36px 26px;
    }

    .memory-note-card h3,
    .card-side-copy h3 {
        font-size: 34px;
    }

    .memory-note-card p {
        font-size: 18px;
    }
}
.reveal-ready {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2026-05-31 수정: 상단 메타 영역 제거, 전체 브라우저 폭 사용, 메인 비주얼 16:9 적용 */
body {
    background: var(--shell-bg);
}

.site-shell {
    width: 100% !important;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    background: var(--shell-bg);
}

.site-header {
    width: min(1720px, calc(100% - 96px));
    height: 104px;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: 240px 1fr 190px;
}

.hero-section {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 820px;
    padding: 72px max(48px, calc((100% - 1720px) / 2)) 90px;
    grid-template-columns: 1.12fr 0.88fr;
    grid-template-rows: auto 1fr;
    gap: 42px 82px;
    align-items: start;
    background: var(--shell-bg);
}

.hero-title-wrap {
    align-self: end;
}

.hero-copy-wrap {
    align-self: end;
    padding-bottom: 34px;
}

.hero-visual {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.hero-image-card {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
}

.intro-grid,
.theme-section,
.episode-section,
.daon-section,
.memory-card-section {
    padding-left: max(48px, calc((100% - 1720px) / 2));
    padding-right: max(48px, calc((100% - 1720px) / 2));
}

@media (max-width: 1200px) {
    .site-header {
        width: calc(100% - 40px);
        height: auto;
        padding: 28px 0;
    }

    .hero-section {
        aspect-ratio: auto;
        min-height: auto;
        padding: 68px 30px;
    }

    .hero-visual,
    .hero-image-card {
        aspect-ratio: 16 / 9;
    }

    .intro-grid,
    .theme-section,
    .episode-section,
    .daon-section,
    .memory-card-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 720px) {
    .site-header {
        width: calc(100% - 28px);
    }

    .hero-section,
    .intro-grid,
    .theme-section,
    .episode-section,
    .daon-section,
    .memory-card-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-image-card {
        border-radius: 8px;
    }
}

/* 2026-05-31 수정: 메인 비주얼과 다음 섹션 겹침 해결 */
.hero-section {
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 120px !important;
    overflow: visible;
}

.hero-visual {
    display: block;
    position: relative;
    height: auto !important;
    margin-top: 10px;
}

.hero-image-card {
    height: auto !important;
    min-height: 0 !important;
}

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

.intro-grid {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .hero-section {
        padding-bottom: 76px !important;
    }
}

@media (max-width: 720px) {
    .hero-section {
        padding-bottom: 56px !important;
    }
}


/* 2026-05-31 fix: full browser-width layout and non-overlapping hero */
body {
    background: var(--shell-bg);
    overflow-x: hidden;
}

.site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    background: var(--shell-bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-header {
    width: min(1720px, calc(100% - 120px));
    max-width: none;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.hero-section {
    width: min(1720px, calc(100% - 120px));
    max-width: none;
    margin: 0 auto;
    padding: 76px 0 104px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 46px 70px;
    overflow: visible;
}

.hero-visual {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 18px;
}

.hero-image-card {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
}

.intro-grid,
.theme-section,
.episode-section,
.daon-section,
.memory-card-section {
    position: relative;
    z-index: 2;
    width: min(1720px, calc(100% - 120px));
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    clear: both;
}

.intro-grid {
    padding-top: 112px;
}

.theme-section,
.episode-section,
.daon-section,
.memory-card-section {
    padding-top: 112px;
    padding-bottom: 112px;
}

@media (max-width: 1200px) {
    .site-shell {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

    .site-header,
    .hero-section,
    .intro-grid,
    .theme-section,
    .episode-section,
    .daon-section,
    .memory-card-section {
        width: calc(100% - 60px);
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 64px 0 78px;
    }

    .hero-image-card {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: 100%;
        border-radius: 0;
    }

    .site-header,
    .hero-section,
    .intro-grid,
    .theme-section,
    .episode-section,
    .daon-section,
    .memory-card-section {
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section {
        padding: 46px 0 58px;
    }

    .hero-image-card {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

/* 2026-05-31 final hero visual revision */
.main-visual-section {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 clamp(88px, 8vw, 160px) !important;
    padding: 0 !important;
    display: block !important;
    aspect-ratio: 16 / 9 !important;
    min-height: clamp(560px, 52vw, 980px) !important;
    overflow: visible !important;
    background: #17291e !important;
}

.main-visual-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.main-visual-section .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.main-visual-section .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 16, 10, 0.82) 0%, rgba(5, 16, 10, 0.58) 32%, rgba(5, 16, 10, 0.2) 62%, rgba(5, 16, 10, 0.1) 100%),
        linear-gradient(180deg, rgba(5, 16, 10, 0.12) 0%, rgba(5, 16, 10, 0.08) 55%, rgba(5, 16, 10, 0.34) 100%);
}

.main-visual-section .hero-inner {
    position: relative;
    z-index: 3;
    width: min(1720px, calc(100% - 120px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.main-visual-section .hero-title-wrap {
    width: min(760px, 48%);
    align-self: auto;
    color: #fff;
    text-align: left;
}

.main-visual-section .eyebrow {
    margin: 0 0 clamp(22px, 2vw, 38px);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 1.4vw, 28px);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.main-visual-section .hero-title-wrap h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(88px, 9.2vw, 178px);
    line-height: 1.04;
    letter-spacing: -0.08em;
    font-weight: 760;
}

.main-visual-section .hero-lead {
    margin: clamp(28px, 2.5vw, 48px) 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(21px, 1.75vw, 34px);
    line-height: 1.65;
    letter-spacing: -0.045em;
    font-weight: 500;
}

.main-visual-section .hero-grandma {
    position: absolute;
    z-index: 4;
    right: max(42px, calc((100vw - 1720px) / 2 + 42px));
    bottom: clamp(-190px, -10vw, -96px);
    width: clamp(234px, 19.8vw, 414px);
    max-width: none;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.28));
}

.main-visual-section + .intro-grid {
    margin-top: 0 !important;
}

@media (max-width: 1200px) {
    .main-visual-section {
        min-height: 720px !important;
        margin-bottom: 140px !important;
    }

    .main-visual-section .hero-inner {
        width: calc(100% - 60px);
        align-items: flex-start;
        padding-top: 86px;
    }

    .main-visual-section .hero-title-wrap {
        width: min(680px, 70%);
    }

    .main-visual-section .hero-grandma {
        right: 24px;
        bottom: -112px;
        width: min(258px, 25.8vw);
    }
}

@media (max-width: 720px) {
    .main-visual-section {
        aspect-ratio: auto !important;
        min-height: 720px !important;
        margin-bottom: 116px !important;
    }

    .main-visual-section .hero-bg img {
        object-position: center center;
    }

    .main-visual-section .hero-overlay {
        background:
            linear-gradient(180deg, rgba(5, 16, 10, 0.86) 0%, rgba(5, 16, 10, 0.58) 52%, rgba(5, 16, 10, 0.22) 100%);
    }

    .main-visual-section .hero-inner {
        width: calc(100% - 40px);
        padding-top: 62px;
        align-items: flex-start;
    }

    .main-visual-section .hero-title-wrap {
        width: 100%;
    }

    .main-visual-section .hero-title-wrap h1 {
        font-size: clamp(72px, 23vw, 116px);
    }

    .main-visual-section .hero-lead {
        font-size: 19px;
        line-height: 1.72;
    }

    .main-visual-section .hero-grandma {
        right: -32px;
        bottom: -96px;
        width: min(216px, 45.6vw);
    }
}


/* 20260531 full browser layout correction */
body {
    background: var(--shell-bg);
}

.page-meta {
    display: none !important;
}

.site-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    background: var(--shell-bg) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid rgba(23, 41, 30, 0.1);
    background: rgba(242, 239, 228, 0.92);
    backdrop-filter: blur(14px);
}

.main-visual-section {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 0 clamp(96px, 7vw, 160px) !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: #17291e;
}

.main-visual-section .hero-bg,
.main-visual-section .hero-overlay {
    position: absolute;
    inset: 0;
    border-radius: 0 !important;
    overflow: hidden;
}

.main-visual-section .hero-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.main-visual-section .hero-inner {
    width: min(1720px, calc(100% - 120px)) !important;
    height: 100% !important;
}

.main-visual-section + .intro-grid {
    margin-top: 0 !important;
}

@media (max-width: 900px) {
    .site-header {
        height: auto;
        min-height: 76px;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .gnb {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 22px;
        padding-bottom: 6px;
    }

    .main-visual-section {
        aspect-ratio: auto !important;
        min-height: 720px !important;
        margin-bottom: 120px !important;
    }
}

/* 20260531 logged-in user menu */
.site-header {
    grid-template-columns: 200px minmax(0, 1fr) auto !important;
}

.gnb {
    gap: clamp(18px, 2.1vw, 36px) !important;
}

.user-menu {
    position: relative;
    justify-self: end;
}

.user-menu-toggle {
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 5px;
    border: 1px solid rgba(23, 41, 30, 0.14);
    background: rgba(255, 253, 245, 0.74);
    color: var(--green);
    font: inherit;
    cursor: pointer;
}

.user-avatar {
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7dfcb;
    border: 1px solid rgba(23, 41, 30, 0.1);
    flex: 0 0 auto;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transform: scale(1.7);
}

.user-name {
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.user-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.user-menu.is-open .user-arrow {
    transform: translateY(2px) rotate(225deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 100;
    width: 174px;
    padding: 8px;
    background: #fffdf5;
    border: 1px solid rgba(23, 41, 30, 0.14);
    box-shadow: 0 24px 50px rgba(23, 41, 30, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.user-menu.is-open .user-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 28px;
    width: 12px;
    height: 12px;
    background: #fffdf5;
    border-left: 1px solid rgba(23, 41, 30, 0.14);
    border-top: 1px solid rgba(23, 41, 30, 0.14);
    transform: rotate(45deg);
}

.user-menu-panel button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: rgba(23, 41, 30, 0.82);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-align: left;
    cursor: pointer;
}

.user-menu-panel button:hover {
    background: rgba(23, 63, 38, 0.08);
    color: var(--green);
}

.demo-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 999;
    min-width: 280px;
    max-width: calc(100% - 40px);
    padding: 16px 22px;
    background: rgba(23, 41, 30, 0.94);
    color: #fffdf5;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.04em;
    transform: translate(-50%, 18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.demo-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
    .site-header {
        grid-template-columns: 170px minmax(0, 1fr) auto !important;
        padding-left: 30px;
        padding-right: 30px;
    }

    .gnb {
        gap: 18px !important;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto !important;
    }

    .brand {
        grid-column: 1 / 2;
    }

    .user-menu {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .gnb {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }
}

/* 20260531 header tweaks (user) — side padding + larger menu + de-boxed user toggle */
.site-header {
    padding-left: clamp(32px, 4vw, 72px) !important;
    padding-right: clamp(32px, 4vw, 72px) !important;
}

.gnb {
    font-size: 20px !important;
}

.user-menu-toggle {
    border: 0 !important;
    background: transparent !important;
    padding: 4px 0 4px 4px !important;
}

/* 20260531 mobile hamburger nav (user) */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    justify-self: end;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(92px, 18vw, 140px) clamp(24px, 6vw, 56px) clamp(36px, 8vw, 64px);
    background: rgba(252, 244, 231, 0.98);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid rgba(23, 41, 30, 0.1);
    color: rgba(23, 41, 30, 0.88);
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.mobile-nav a:hover { color: var(--green); }
.mobile-nav a.active { color: var(--green); }

.mobile-nav .mobile-nav-user {
    margin-top: 28px;
    padding: 20px 4px 0;
    border-top: 2px solid rgba(23, 41, 30, 0.12);
    color: var(--green);
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* 풀스크린 모바일 메뉴 자체의 닫기(X) 버튼 — 오버레이 내부에 있으므로
   헤더의 햄버거 버튼 z-index 와 무관하게 항상 보임. */
.mobile-nav-close {
    position: absolute;
    top: clamp(20px, 5vw, 32px);
    right: clamp(20px, 5vw, 32px);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close span {
    position: absolute;
    display: block;
    width: 26px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.mobile-nav-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-close span:nth-child(2) { transform: rotate(-45deg); }

/* body 스크롤 잠금 — main.js 에서 토글 */
body.is-mobile-nav-open { overflow: hidden; }

@media (min-width: 1025px) {
    .gnb { display: flex !important; }
    .nav-toggle { display: none !important; }
    .mobile-nav { display: none !important; }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .gnb {
        font-size: 16px !important;
        gap: clamp(14px, 1.6vw, 26px) !important;
    }
}

@media (max-width: 1024px) {
    .site-header {
        position: relative;
        grid-template-columns: 1fr auto !important;
        gap: 16px !important;
        align-items: center;
    }

    .brand { grid-column: auto !important; grid-row: auto !important; }
    .gnb { display: none !important; }
    .user-menu { display: none !important; }
    .nav-toggle { display: inline-flex; }
}
