/* 국모닝 세부 페이지 공통 스타일 — 메인(index.html)과 같은 색·글꼴 */
:root {
  --bg: #F4EEE4;
  --paper: #FBF8F3;
  --ink: #1E1712;
  --muted: #6B5F55;
  --line: #E3D8C9;
  --accent: #B8532A;
  --accent-deep: #8E3D1C;
  --badge: #F0DCCB;
  --sans: "Pretendard", -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  --hand: "Nanum Pen Script", cursive;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 헤더 */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244, 238, 228, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.site-head .logo img { height: 50px; width: auto; }
.gnav { display: flex; gap: 30px; margin-right: auto; }
.gnav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.gnav a:hover { color: var(--ink); }
.gnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.head-tel { text-decoration: none; font-weight: 700; font-size: 17px; color: var(--ink); }
.head-tel small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); text-align: right; }

/* 페이지 머리 */
.page-hero { padding: 64px 0 0; }
.eyebrow { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--badge); color: var(--accent-deep); font-weight: 600; font-size: 14px; }
.page-hero h1 { margin: 18px 0 0; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.page-hero .lead { margin: 18px 0 0; max-width: 640px; color: var(--muted); font-size: 18px; }
.page-hero .photo { margin-top: 40px; border-radius: 22px; overflow: hidden; aspect-ratio: 1100 / 405; background: #E6DACB; }
.page-hero .photo img { width: 100%; height: 100%; object-fit: cover; }

/* 페이지 안 이동 탭 */
.tabs { position: sticky; top: 76px; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 40px; }
.tabs .wrap { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a { flex: none; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 16px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.tabs a:hover { background: #EBE1D3; color: var(--ink); }
.tabs a.is-on { background: var(--ink); color: var(--bg); }

/* 본문 구역 */
.sec { padding: 88px 0 0; }
.sec + .sec { border-top: 0; }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.sec-head .num { font-family: var(--hand); font-size: 44px; line-height: 1; color: var(--accent); }
.sec h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; }
.sec .intro { margin: 14px 0 0; color: var(--muted); max-width: 680px; }
.sec-body { margin-top: 40px; margin-left: 260px; }
.mark { background: linear-gradient(transparent 58%, #F0DCCB 58%); color: var(--ink); font-weight: 600; }

/* 강조 안내 상자 */
.callout { border-radius: 20px; background: var(--ink); color: var(--bg); padding: 30px 34px; }
.callout strong { display: block; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.4; letter-spacing: -0.02em; }
.callout strong em { font-style: normal; color: #F3B48F; }
.callout p { margin: 10px 0 0; color: #CDBFAF; font-size: 15px; }

/* 일정 흐름 */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: t; }
.timeline li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; position: relative; }
.timeline li::before { counter-increment: t; content: "0" counter(t); font-family: var(--hand); font-size: 30px; color: var(--accent); line-height: 1; }
.timeline b { display: block; margin-top: 8px; font-size: 18px; }
.timeline span { display: block; color: var(--muted); font-size: 15px; }

/* 단계 목록 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.steps .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps h3 { margin: 6px 0 4px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.steps .eg { display: block; margin-top: 6px; color: var(--accent-deep); font-size: 15px; }

/* 카드 묶음 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .k { font-family: var(--hand); font-size: 28px; color: var(--accent); line-height: 1; display: block; margin-bottom: 10px; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { width: 100%; aspect-ratio: 348 / 268; object-fit: cover; }
.card.photo div { padding: 18px 20px 22px; }

/* 표 */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15.5px; }
.table th, .table td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: #EBE1D3; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 700; }
.table .no { color: var(--accent-deep); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: 18px; }
.note-sm { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
ul.dash { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
ul.dash li { padding-left: 18px; position: relative; color: var(--muted); }
ul.dash li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--accent); }
ul.dash b { color: var(--ink); }

/* 사진 + 글 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 18px; width: 100%; height: auto; }
.split h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.split p { margin: 0; color: var(--muted); }

/* 식단 구성 */
.parts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.parts figure { margin: 0; text-align: center; width: 170px; }
.parts img { width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.parts figcaption b { display: block; margin-top: 12px; font-size: 17px; }
.parts figcaption span { color: var(--muted); font-size: 14px; }
.parts .plus { font-size: 28px; color: var(--accent); font-weight: 300; }

/* 하나뿐인 행동 요청 */
.cta-band { margin: 110px 0 0; background: var(--ink); color: var(--bg); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -0.025em; }
.cta-band p { margin: 10px 0 0; color: #CDBFAF; }
.cta-btn { flex: none; display: inline-flex; padding: 7px; border: 1.5px dashed #E39A72; border-radius: 999px; }
.cta-btn a { display: flex; align-items: center; height: 58px; padding: 0 32px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.cta-btn a:hover { background: var(--accent-deep); }
.cta-btn a:active { transform: scale(.97); }

/* 푸터 */
.footer { color: var(--muted); font-size: 13px; line-height: 1.8; padding: 28px 16px calc(36px + env(safe-area-inset-bottom)); }
.footer-in { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 28px; align-items: flex-start; padding: 0 8px; }
.footer-in img { height: 48px; width: auto; opacity: .85; flex: none; }
.footer p { margin: 0; }
.footer b { color: var(--ink); font-weight: 600; }
.footer b + span::before, .footer span + span::before { content: '·'; margin: 0 8px; color: #C9BBA9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px !important; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-deep); }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .4s ease; }
}

@media (max-width: 960px) {
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .sec-body { margin-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 150px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-head .wrap { flex-wrap: wrap; height: auto; gap: 0; padding-top: 10px; }
  .site-head .logo img { height: 38px; }
  .head-tel { margin-left: auto; font-size: 15px; }
  .head-tel small { font-size: 11px; }
  .gnav { order: 3; width: 100%; justify-content: space-between; gap: 0; margin: 6px 0 0; }
  .gnav a { font-size: 15px; padding: 8px 0 10px; }
  .page-hero { padding-top: 36px; }
  .page-hero .lead { font-size: 16px; }
  .page-hero .photo { margin-top: 26px; border-radius: 16px; aspect-ratio: 4 / 3; }
  .tabs { top: 98px; margin-top: 28px; }
  .tabs a { font-size: 14px; padding: 7px 13px; }
  .sec { padding-top: 64px; }
  .sec-head .num { font-size: 36px; }
  .sec-body { margin-top: 26px; }
  .cards, .cards.three, .cards.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .callout { padding: 24px 22px; }
  .parts { justify-content: center; gap: 6px; }
  .parts figure { width: 100px; }
  .parts img { width: 92px; height: 92px; }
  .parts figcaption b { font-size: 14.5px; }
  .parts figcaption span { font-size: 12px; }
  .parts .plus { font-size: 20px; }
  .table { font-size: 14px; }
  .table th, .table td { padding: 12px 12px; }
  .cta-band { margin-top: 80px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; padding-top: 44px; padding-bottom: 44px; }
  .cta-btn a { height: 54px; font-size: 17px; padding: 0 28px; }
  .footer-in { flex-direction: column; gap: 14px; }
  .footer { font-size: 12px; }
}

/* 자주 묻는 질문 */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 700; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 300; color: var(--accent); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 22px; color: var(--muted); }
.faq a, .steps a { color: var(--accent-deep); font-weight: 600; }
.card h3 a { color: var(--ink); }
