/* 아이하트 가족여행 (iheartfamilytravels.com) — 허니 앰버 외곽 + 흰 읽기 면 + 호박 갈색 링크.
   모바일(360px) 먼저, 720px(태블릿)·960px(데스크톱)에서 넓힌다. 토큰은 base.html :root. DESIGN.md 참고. */

/* ── 0. 바탕 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.top :focus-visible, .intro :focus-visible, .post-head :focus-visible, .list-head :focus-visible { outline-color: var(--text); }
.foot :focus-visible { outline-color: var(--bg); }
.num, time { font-family: var(--font-number); font-weight: 500; font-variant-numeric: tabular-nums; }
.skiplink { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--text); color: #fff; border-radius: var(--radius-sm); }
.skiplink:focus { top: 8px; color: #fff; }
.stage { display: block; padding: 0 0 32px; }

/* 흰 지면 — 모바일은 앰버 가장자리 10px 만 남긴다 */
.sheet, .band__in {
  background: var(--surface); border-radius: var(--radius);
  margin: 0 10px; padding: 20px 16px;
}

/* ── 1. 헤더 (비고정) ─────────────────────────────────── */
.top { background: var(--bg); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; min-width: 0; }
.wordmark:hover { color: var(--text); }
.wordmark__mark { flex: none; }
.wordmark__name { font-family: var(--font-title); font-size: 28px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 2px solid var(--text); border-radius: 999px; background: transparent; color: var(--text);
  font: 600 15px/1 var(--font-body); cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -5px; }
.menu-btn__bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }
.topnav ul { list-style: none; margin: 0; padding: 0 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.topnav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  background: rgba(255, 255, 255, .55); border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600; text-decoration: none;
}
.topnav a:hover { background: var(--surface); color: var(--text); }
.topnav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 -3px 0 var(--primary); }
.js .topnav:not(.is-open) { display: none; }

/* ── 2. 공통 블록 ─────────────────────────────────────── */
.band { margin-top: 12px; }
.band--tight { margin-top: 10px; }
.band__h { margin: 0 0 6px; font-size: 21px; line-height: 1.4; font-weight: 600; }
.band__h--sm { font-size: 18px; }
.band__sub { margin: 0 0 14px; color: var(--text-dim); font-size: 15px; }
.band__more { margin: 12px 0 0; }
.band__more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.band__more a::after { content: "→"; margin-left: 6px; }
.empty { margin: 0; color: var(--text-dim); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--primary); color: #fff; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--primary-hover); color: #fff; }

.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; }
.trail li { display: flex; align-items: center; min-width: 0; }
.trail li + li::before { content: "›"; margin: 0 6px; color: var(--text); }
.trail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.trail li:last-child { display: none; }  /* 모바일: 현재 글 제목은 바로 아래 h1 과 같다 */

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 15px; font-weight: 600; text-decoration: none; }
.chips a:hover { background: var(--primary); color: #fff; }
.chips--nav { margin-top: 8px; }
.empty-more { margin: 16px 0 0; font-weight: 600; }

/* 여행 기록 카드 — 한 열 목록. 카드 전체가 링크 (제목 링크를 늘림) */
.records { list-style: none; margin: 0; padding: 0; }
.record { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--border); }
.record:first-child { border-top: 0; padding-top: 4px; }
.record__text { flex: 1 1 auto; min-width: 0; max-width: 38em; }
.record__cat { margin: 0 0 2px; color: var(--primary); font-size: 14px; font-weight: 600; }
.record__title { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 600; }
.record__title a { color: var(--text); text-decoration: none; }
.record__title a::after { content: ""; position: absolute; inset: 0; }
.record:hover .record__title a { color: var(--primary); text-decoration: underline; }
.record__sum { margin: 6px 0 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.record__meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--text-dim); }
.record__tag { color: var(--accent); }
.record__thumb { flex: none; width: 96px; position: relative; z-index: 1; }
.record__thumb img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }

/* 강조 링크 카드 (대표 일정·처음 읽을 글) */
.feature {
  display: block; margin-top: 16px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--primary-soft); border-left: 6px solid var(--primary); color: var(--text); text-decoration: none;
}
.feature:hover { color: var(--text); }
.feature:hover .feature__t { text-decoration: underline; color: var(--primary); }
.feature__k { display: block; color: var(--primary); font-size: 14px; font-weight: 600; }
.feature__t { display: block; margin-top: 4px; font-size: 18px; line-height: 1.45; font-weight: 600; }
.feature__s { display: block; margin-top: 6px; color: var(--text-dim); font-size: 15px; }

.mini { list-style: none; margin: 0; padding: 0; }
.mini li + li { border-top: 1px solid var(--border); }
.mini a { display: block; padding: 12px 0; min-height: 48px; color: var(--text); text-decoration: none; }
.mini a:hover .mini__t { color: var(--primary); text-decoration: underline; }
.mini__t { display: block; font-weight: 600; line-height: 1.5; }
.mini__s { display: block; margin-top: 2px; color: var(--text-dim); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ad-slot { margin: 12px 10px 0; padding: 8px; min-height: 280px; background: var(--surface); border-radius: var(--radius); text-align: center; }
.ad-label { display: block; font-size: 12px; color: var(--text-dim); letter-spacing: .04em; }
/* 광고 코드(라벨 외 자식)가 없으면 자리째 숨긴다 */
.ad-slot:not(:has(> :not(.ad-label))) { display: none; }

/* ── 3. 홈 ───────────────────────────────────────────── */
.intro__in { padding: 8px 16px 20px; }
.intro__kicker { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.intro__title { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 38px; line-height: 1.2; letter-spacing: -.01em; }
.intro__lede { margin: 12px 0 0; font-size: 17px; line-height: 1.75; }
.intro__by { margin: 12px 0 0; font-size: 15px; }
.intro__go { margin: 16px 0 0; }

.ages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ages a { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--text); text-decoration: none; }
.ages a:hover { background: var(--primary); color: #fff; }
.ages a:hover .ages li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ages__n { color: #fff; }
.ages li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ages__n { font-size: 20px; font-weight: 600; color: var(--primary); }
.ages__d { font-size: 14px; }

.day3 { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.day3__c { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--border); }
.day3__c strong { font-size: 17px; }
.day3__c > span:last-child { color: var(--text-dim); font-size: 15px; }
.day3__k { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.day3__c--rest { background: var(--primary-soft); border: 2px dashed var(--primary); }
.day3__c--rest .day3__k { background: var(--primary); }
.day3__c--rest > span:last-child { color: var(--text); }

.prep2 { display: grid; gap: 18px; }
.prep2__h { margin: 0 0 4px; font-size: 17px; }
.prep2__h a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.band--lesson .band__in { border-left: 6px solid var(--warn); }

/* ── 4. 목록 머리 (카테고리·태그) ───────────────────────── */
.list-head, .post-head { padding: 0 16px 20px; }
.list-head__title { margin: 4px 0 0; font-family: var(--font-title); font-weight: 400; font-size: 36px; line-height: 1.2; }
.list-head__desc { margin: 8px 0 0; font-size: 16px; }
.list-head__count { margin: 8px 0 0; font-size: 15px; }

/* ── 5. 글 ───────────────────────────────────────────── */
.post-head__cat { margin: 0; }
.post-head__cat a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.post-head__title { margin: 8px 0 0; font-family: var(--font-title); font-weight: 400; font-size: 32px; line-height: 1.25; letter-spacing: -.01em; }
.post-head__lede { margin: 10px 0 0; font-size: 17px; line-height: 1.7; }
.post-head__by { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; }
.post-head__author { font-weight: 600; }
.post-sheet { padding-top: 24px; }
.post-foot { margin-top: 32px; padding-top: 20px; border-top: 2px dotted var(--border); max-width: var(--read); }
.author { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 16px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.author__mark { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--text); font-family: var(--font-title); font-size: 26px; }
.author__name { margin: 0; font-weight: 600; }
.author__bio { margin: 4px 0 0; font-size: 15px; color: var(--text-dim); }

/* ── 6. 본문 (.post-body) — 작가 컴포넌트 ───────────────── */
.post-body {
  max-width: var(--read); font-size: 17px; line-height: 1.85;
  word-break: keep-all; overflow-wrap: break-word;
}
.post-body > * { margin-top: 0; margin-bottom: 1em; }
.post-body > :last-child { margin-bottom: 0; }
.post-body > :is(blockquote, table, figure, .scroll-x, .table-scroll, .stats-grid, .summary-box, .toc-box, .timeline, .pros-cons,
  .warn-box, .info-box, .success-box, .error-box, .note-box, .prep-box, .key-points, .cta-box, .step, .image-grid,
  .before-after, .video-embed, .faq, .footnote, .pull-quote, .spoiler, .tag-list) + * { margin-top: 1.4em; }
.post-body h2 {
  margin: 2.2em 0 .6em; font-size: 22px; line-height: 1.45; font-weight: 600;
  padding-left: 14px; border-left: 6px solid var(--bg); scroll-margin-top: 16px;
}
.post-body h3 { margin: 1.8em 0 .5em; font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--primary); }
.post-body h4 { margin: 1.4em 0 .4em; font-size: 17px; line-height: 1.5; font-weight: 600; }
.post-body p, .post-body li { overflow-wrap: break-word; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .35em; }
.post-body strong { font-weight: 600; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-body hr, .post-body .divider { border: 0; height: 0; border-top: 2px dotted var(--bg-deep); margin: 2em 0; }

/* 여행의 한 장면 (도입 인용) — 따옴표 장식 없이 왼쪽 선 */
.post-body blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 4px solid var(--primary); font-size: 18px; line-height: 1.8; color: var(--text); }
.post-body blockquote p { margin: 0; }
.post-body blockquote p + p { margin-top: .6em; }
.post-body blockquote cite { display: block; margin-top: 6px; font-size: 14px; font-style: normal; color: var(--text-dim); }
.post-body .lead { font-size: 18px; line-height: 1.8; }
.post-body .highlight { background: linear-gradient(transparent 55%, #F6D9A6 55%); padding: 0 .1em; }
.post-body .pull-quote { display: block; margin: 1.6em 0; padding: 18px 0; border-top: 2px solid var(--bg); border-bottom: 2px solid var(--bg); font-family: var(--font-title); font-size: 26px; line-height: 1.4; color: var(--primary); text-align: center; }
.post-body kbd, .post-body .kbd { display: inline-block; padding: 0 .4em; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 6px; background: var(--accent-soft); font-family: var(--font-number); font-size: .85em; }

/* ── 본문 컴포넌트 시각 — 레퍼런스에서 따온 모양 (DESIGN.md "본문 컴포넌트 시각" 표) ──
   warn = JR규슈 레일패스 'Notice'(지면 끝까지 닿는 평면 띠 + 적색 굵은 제목 단어)
   info = TraveLynn 'READ:' 키커(대문자 작은 라벨 + 콜론, 상자 없이 위아래 점선)
   note = japan-guide 표 아래 각주 줄(회색 평면 + 적색 점)
   success = Travels Between 체크 글리프(☑ 그린 네모 + 굵은 라벨, 얇은 녹색 테두리 카드)
   error = 굵은 적색 테두리 + 왼쪽 위 네모 탭 라벨 */
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) { font-size: 16px; line-height: 1.75; }
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) > div > :last-child { margin-bottom: 0; }
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) ul { margin: 4px 0 0; }
.post-body .badge { font-weight: 600; }

/* 주의 — JR규슈 Notice: 테두리·둥근 모서리 없는 평면 띠, 모바일은 흰 지면 가장자리까지 */
.post-body .warn-box { margin-left: -16px; margin-right: -16px; padding: 16px 16px 18px; background: var(--warn-soft); }
.post-body .warn-box .badge { display: block; margin-bottom: 4px; color: var(--warn); font-size: 15px; line-height: 1.5; letter-spacing: .01em; }
.post-body .warn-box strong { color: var(--warn); }

/* TIP — TraveLynn 'READ:' 키커: 상자 없이, 라벨은 호박색 작은 대문자 + 콜론, 본문과 한 줄로 흐른다 */
.post-body .info-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 0; border-top: 2px dotted var(--bg-deep); border-bottom: 2px dotted var(--bg-deep); }
.post-body .info-box .badge { color: var(--primary); font-family: var(--font-number); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-body .info-box .badge::after { content: ":"; }
.post-body .info-box > div { flex: 1 1 14em; min-width: 0; }

/* 참고·제휴 — japan-guide 표 아래 각주 줄: 옅은 회색 평면, 적색 점 + 굵은 라벨, 작은 글자 */
.post-body .note-box { padding: 12px 14px 12px 30px; position: relative; background: var(--accent-soft); border-radius: 4px; font-size: 15px; line-height: 1.7; }
.post-body .note-box::before { content: ""; position: absolute; left: 14px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.post-body .note-box .badge { margin-right: 6px; color: var(--text); }
.post-body .note-box > div { display: inline; }

/* 확인 — Travels Between 체크 글리프: 녹색 네모 안 흰 체크 + 굵은 녹색 라벨, 얇은 녹색 테두리 */
.post-body .success-box { padding: 14px 16px; border: 1px solid var(--ok); border-radius: var(--radius-sm); background: var(--surface); }
.post-body .success-box .badge { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-size: 15px; }
.post-body .success-box .badge::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 3px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E") center/18px no-repeat; }
.post-body .success-box > div { margin-top: 4px; }

/* 금지·오류 — 굵은 적색 테두리 + 왼쪽 위에 붙은 네모 탭 라벨 */
.post-body .error-box { padding: 0 16px 14px; border: 2px solid var(--warn); border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm); }
.post-body .error-box .badge { display: inline-block; margin: 0 0 10px -16px; padding: 4px 14px; background: var(--warn); color: #fff; font-size: 14px; line-height: 1.6; }

/* 우리 가족 여행 카드 — JR규슈 패스 머리띠(작은 대문자 키커 + 굵은 제목, 회청색 띠) + 표처럼 칸이 나뉜 승차권 */
.post-body .summary-box { border: 1px solid var(--accent); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.post-body .summary-box > :is(h4, h3) { margin: 0; padding: 12px 16px; background: var(--accent); color: #fff; font-size: 17px; line-height: 1.45; }
.post-body .summary-box > :is(h4, h3)::before { content: "FAMILY TRIP"; display: block; font-family: var(--font-number); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: #E3E1DE; }
.post-body .summary-box > ul { margin: 0; padding: 12px 16px 12px 2.2em; }
.post-body .summary-box > :last-child { margin-bottom: 0; }
.post-body .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.post-body .summary-box .stats-grid { margin: 0; }
.post-body > .stats-grid { border: 1px solid var(--border); }
.post-body .stat { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; background: var(--surface); }
.post-body .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.post-body .stat .label { font-size: 13px; line-height: 1.4; color: var(--text-dim); font-weight: 600; }
.post-body .stat .value { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--text); }

/* 읽을 순서 — japan-guide 'On this page': 두꺼운 윗띠 + 굵은 제목 + 적색 점 + 오른쪽 › */
.post-body .toc-box { padding: 14px 16px 8px; border-top: 6px solid var(--primary); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.post-body .toc-box h4 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.post-body .toc-box ol { list-style: none; margin: 0; padding: 0; }
.post-body .toc-box li { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.post-body .toc-box li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 21px; border-radius: 50%; background: var(--warn); }
.post-body .toc-box a { flex: 1 1 auto; min-width: 0; display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; min-height: 44px; line-height: 1.6; font-size: 16px; color: var(--text); text-decoration: none; }
.post-body .toc-box a::after { content: "›"; flex: none; color: var(--text-dim); font-size: 20px; line-height: 1.2; }
.post-body .toc-box a:hover { color: var(--primary); text-decoration: underline; }

/* 표 — japan-guide 요금표: 캡션은 짙은 머리띠, 열 머리는 회색 굵은 가운데 정렬, 칸 사이 흰 틈, 열마다 옅은 색 */
.post-body .scroll-x, .post-body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left/24px 100% no-repeat local,
              linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right/24px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(41,37,34,.18), transparent) left/10px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(41,37,34,.18), transparent) right/10px 100% no-repeat scroll; }
.post-body .scroll-x > table, .post-body .table-scroll > table { margin: 0; }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 15px; line-height: 1.6; }
.post-body caption { caption-side: top; text-align: left; margin: 0 3px; padding: 10px 14px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--text); color: #fff; font-size: 15px; font-weight: 600; }
.post-body th, .post-body td { padding: 10px 12px; text-align: left; vertical-align: middle; }
.post-body thead th { background: var(--accent-soft); color: var(--text); font-weight: 700; text-align: center; white-space: nowrap; }
.post-body tbody th { font-weight: 600; text-align: center; background: var(--surface); box-shadow: inset 0 -1px 0 var(--border); }
.post-body tbody td { background: var(--primary-soft); }
.post-body tbody td:nth-of-type(even) { background: #EEF1F2; }
.post-body table:not(.is-stacked) { min-width: 520px; }
/* 모바일 표는 관문 A 자동 수정(파일 끝)대로 행 카드 대신 가로 스크롤 — 같은 요금표 모양을 유지한다 */
}

/* 시간표 — 노선도 역 표시: 굵은 앰버 선 위 흰 역 동그라미, 낮잠·휴식 줄은 꽉 찬 역 + 휴식 띠 */
.post-body .timeline { list-style: none; margin-left: 0; padding: 0; }
.post-body .timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; margin: 0; padding: 0; position: relative; }
.post-body .timeline li + li { margin-top: 0; }
.post-body .timeline .time { padding: 10px 0; font-family: var(--font-number); font-weight: 700; font-size: 15px; line-height: 1.75; color: var(--text); text-align: right; }
.post-body .timeline .event { min-width: 0; position: relative; padding: 10px 8px 14px 24px; line-height: 1.75; }
.post-body .timeline .event::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 6px; background: var(--bg-deep); }
.post-body .timeline li:first-child .event::before { top: 18px; }
.post-body .timeline li:last-child .event::before { bottom: auto; height: 22px; }
.post-body .timeline .event::after { content: ""; position: absolute; left: -1px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-sizing: border-box; }
.post-body .timeline li:has(.highlight) .event { background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-body .timeline li:has(.highlight) .event::after { background: var(--primary); }
.post-body .timeline .highlight { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.7; }

/* 단계 — TraveLynn 'Day 3:' 제목 줄처럼 번호가 제목 앞에 붙는다: 작은 STEP 키커 + 큰 숫자, 단계 사이 점선 */
.post-body .step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; }
.post-body .step + .step { margin-top: 0; padding-top: 14px; border-top: 2px dotted var(--bg-deep); }
.post-body .step .num { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-number); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--primary); white-space: nowrap; }
.post-body .step .num::before { content: "STEP"; font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--text-dim); }
.post-body .step .body h4 { margin: 4px 0 4px; }
.post-body .step .body p { margin: 0; }

/* 좋았던 점 / 아쉬웠던 점 — japan-guide 요금표 열 색(옅은 호박 / 옅은 회청) 위에 ＋ / － 글머리 */
.post-body .pros-cons { display: grid; gap: 3px; }
.post-body .pros, .post-body .cons { padding: 12px 16px; min-width: 0; }
.post-body .pros { background: var(--primary-soft); }
.post-body .cons { background: #EEF1F2; }
.post-body .pros h4, .post-body .cons h4 { margin: 0 0 6px; }
.post-body .pros h4 { color: var(--primary); }
.post-body .pros ul, .post-body .cons ul { margin: 0; list-style: none; padding: 0; }
.post-body .pros li, .post-body .cons li { position: relative; padding-left: 1.4em; }
.post-body .pros li::before, .post-body .cons li::before { position: absolute; left: 0; font-weight: 700; font-family: var(--font-number); }
.post-body .pros li::before { content: "+"; color: var(--primary); }
.post-body .cons li::before { content: "−"; color: var(--accent); }

/* 아이 동반 체크리스트 — Travels Between 체크리스트: 상자 없이 □ 글리프 + 넉넉한 줄 간격, 시점은 줄 끝 작은 글자 */
.post-body .prep-box { padding: 0; }
.post-body .prep-box h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--primary); }
.post-body .prep-grid { display: grid; }
.post-body .prep-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 48px; padding: 11px 0 11px 30px; position: relative; line-height: 1.6; }
.post-body .prep-grid > div::before { content: ""; position: absolute; left: 2px; top: 16px; width: 16px; height: 16px; border: 2px solid var(--text); border-radius: 2px; background: #fff; box-sizing: border-box; }
.post-body .prep-grid > div > span:first-child { flex: 1 1 12em; min-width: 0; }
.post-body .prep-grid > div > span:last-child:not(:first-child) { flex: none; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.post-body .prep-grid > [role="checkbox"] { cursor: pointer; }
.post-body .prep-grid > [aria-checked="true"]::before { background: var(--primary); border-color: var(--primary); }
.post-body .prep-grid > [aria-checked="true"]::after { content: ""; position: absolute; left: 8px; top: 18px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.post-body .prep-grid > [aria-checked="true"] > span:first-child { color: var(--text-dim); text-decoration: line-through; }
.post-body .prep-note { font-size: 14px; color: var(--text-dim); }

/* 다시 간다면 (마치며) — japan-guide 'On this page' 와 같은 굵은 윗띠, 번호는 Ubuntu 숫자 */
.post-body .key-points { padding: 14px 16px; border-top: 6px solid var(--text); background: var(--accent-soft); }
.post-body .key-points h4, .post-body .key-points h3 { margin: 0 0 8px; font-weight: 700; }
.post-body .key-points ol, .post-body .key-points ul { margin: 0; }
.post-body .key-points ol { list-style: none; padding: 0; counter-reset: kp; }
.post-body .key-points ol li { counter-increment: kp; position: relative; padding-left: 34px; }
.post-body .key-points ol li::before { content: counter(kp, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-number); font-weight: 700; font-size: 16px; color: var(--primary); }

/* 이어 읽기·예약 확인 — JR규슈 'Purchase a Rail Pass': 옅은 평면 위 가운데 제목 + 꽉 찬 네모 버튼 */
.post-body .cta-box { padding: 22px 16px; background: var(--primary-soft); text-align: center; }
.post-body .cta-box h4 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.post-body .cta-box p { margin: 0 0 14px; font-size: 16px; }
.post-body .cta-button { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; padding: 0 22px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.post-body .cta-button:hover { background: var(--primary-hover); color: #fff; }

/* 질문과 답 (dl.faq·details) — JR규슈 아코디언: 회청색 꽉 찬 막대 + 흰 굵은 글자 + 오른쪽 가는 ＋ */
.post-body .faq dt { margin-top: 3px; padding: 12px 16px; background: var(--accent); color: #fff; font-weight: 600; }
.post-body .faq dt:first-child { margin-top: 0; }
.post-body .faq dd { margin: 0; padding: 12px 16px 16px; background: var(--accent-soft); }

/* 미디어 — 섹션 이미지(figure > img)는 본문 폭 가득 4:3, 늦게 와도 자리가 흔들리지 않게 */
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figure > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--primary-soft); }
.post-body figure:has(> img[data-img-pending]:not([src])) { display: none; }
.post-body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.post-body .post-cover > img { aspect-ratio: 16 / 9; }
.post-body .image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.post-body .image-grid figure { margin: 0; min-width: 0; }
.post-body .before-after { display: grid; gap: 10px; }
.post-body .before-after > div { position: relative; min-width: 0; }
.post-body .before-after .label { position: absolute; left: 8px; top: 8px; padding: 0 10px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; }
.post-body .before-after img { border-radius: var(--radius-sm); width: 100%; }
.post-body .video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--text); }
.post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 기타 */
.post-body .spoiler { background: var(--accent-soft); }
.post-body .spoiler summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; list-style: none; }
.post-body .spoiler summary::-webkit-details-marker { display: none; }
.post-body .spoiler summary::after { content: "+"; flex: none; font-family: var(--font-number); font-weight: 300; font-size: 26px; line-height: 1; }
.post-body .spoiler[open] summary::after { content: "−"; }
.post-body .spoiler > :not(summary) { margin: 0; padding: 12px 16px; }
.post-body .footnote { display: block; padding-left: 2.4em; text-indent: -2.4em; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.post-body .footnote + .footnote { margin-top: .4em; }
.post-body .footnote .num { display: inline-block; width: 2.4em; text-indent: 0; color: var(--primary); }
.post-body .footnote-ref { font-family: var(--font-number); font-size: .75em; }
.post-body .price-tag { white-space: nowrap; font-weight: 600; }
.post-body .price-tag .amount { font-family: var(--font-number); font-weight: 500; color: var(--primary); }
.post-body .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.post-body .tag-list .tag { padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.post-body .inline-ad { margin: 1.6em 0; padding: 8px; min-height: 280px; background: var(--accent-soft); border-radius: var(--radius-sm); text-align: center; }

/* CMS 기본 페이지 (/privacy·/about·/contact) — 흰 지면에 올린다 */
.cms-default-page { display: block; background: var(--surface); border-radius: var(--radius); margin: 8px 10px 0; padding: 24px 16px; max-width: none; }
.cms-default-page h1 { margin: 0 0 .8em; font-family: var(--font-title); font-weight: 400; font-size: 34px; line-height: 1.25; }
@media (min-width: 720px) { .cms-default-page { margin: 8px 24px 0; padding: 36px 32px; } }
@media (min-width: 960px) { .cms-default-page { max-width: calc(var(--read) + 120px); margin: 16px auto 0; padding: 44px 60px; } .cms-default-page h1 { font-size: 44px; } }

/* ── 7. 푸터 ─────────────────────────────────────────── */
.foot { margin-top: 8px; background: var(--text); color: #F5E8D6; }
.foot__in { padding: 28px 16px 36px; }
.foot__name { display: block; font-family: var(--font-title); font-weight: 400; font-size: 26px; color: #fff; }
.foot__id p { margin: 6px 0 0; font-size: 15px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 14px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; }
.foot__note { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #E6D8C6; }
.foot__copy { margin: 12px 0 0; font-size: 14px; color: #E6D8C6; }

/* ── 8. 태블릿 (720px~) ───────────────────────────────── */
@media (min-width: 720px) {
  .sheet, .band__in { margin: 0 24px; padding: 28px 32px; }
  .top__in { padding: 14px 28px; }
  .topnav ul { grid-template-columns: repeat(4, 1fr); padding: 0 24px 14px; }
  .intro__in, .list-head, .post-head { padding-left: 32px; padding-right: 32px; }
  .intro__title { font-size: 48px; }
  .post-head__title { font-size: 40px; }
  .list-head__title { font-size: 44px; }
  .trail li:last-child { display: flex; flex: 1 1 0; }
  .trail li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
  .ages { grid-template-columns: repeat(4, 1fr); }
  .prep2 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .record__thumb, .record__thumb img { width: 160px; }
  .record__thumb img { height: 120px; }
  .ad-slot { margin: 16px 24px 0; }
  .post-body { font-size: 18px; }
  .post-body h2 { font-size: 25px; }
  .post-body h3 { font-size: 20px; }
  /* 한 줄 3칸 (6열 격자에 2칸씩) — 빈 칸 없이: 3n+2 개면 마지막 둘이 반씩, 3n+1 개면 마지막이 한 줄, 4개는 2×2 */
  .post-body .stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .post-body .stats-grid > .stat, .post-body .stat:last-child:nth-child(odd) { grid-column: span 2; }
  .post-body .stats-grid > .stat:nth-child(3n+1):nth-last-child(2), .post-body .stats-grid > .stat:nth-child(3n+1):nth-last-child(2) + .stat { grid-column: span 3; }
  .post-body .stats-grid > .stat:nth-child(3n+1):last-child { grid-column: 1 / -1; }
  .post-body .stats-grid:has(> .stat:nth-child(4):last-child) > .stat { grid-column: span 3; }
  .post-body .timeline li { grid-template-columns: 88px minmax(0, 1fr); }
  .post-body .warn-box { margin-left: 0; margin-right: 0; padding: 18px 22px 20px; }
  .post-body .cta-button { display: inline-flex; width: auto; min-width: 280px; }
  .post-body .pros-cons { grid-template-columns: 1fr 1fr; }
  .post-body .before-after { grid-template-columns: 1fr 1fr; }
  .post-body .image-grid { grid-template-columns: repeat(3, 1fr); }
  .post-body .image-grid:has(> figure:nth-child(2):last-child), .post-body .image-grid:has(> figure:nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
}

/* ── 9. 데스크톱 (960px~) ─────────────────────────────── */
@media (min-width: 960px) {
  .top__in { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 6px; }
  .menu-btn { display: none; }
  .js .topnav:not(.is-open), .topnav { display: block; }
  .topnav ul { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 16px; }
  .topnav a { background: transparent; min-height: 44px; padding: 0 14px; border-radius: 999px; }
  .topnav a:hover { background: rgba(255, 255, 255, .55); }
  .topnav a[aria-current="page"] { background: var(--surface); box-shadow: none; }
  .wordmark__name { font-size: 34px; }
  .sheet, .band__in, .intro__in, .list-head, .post-head, .ad-slot { max-width: var(--sheet); margin-left: auto; margin-right: auto; }
  .intro__in, .list-head, .post-head { padding: 24px 60px 28px; }
  .sheet, .band__in { padding: 36px 60px; }
  .band { margin-top: 16px; }
  .intro__title { font-size: 56px; }
  .intro__lede { max-width: 36em; font-size: 18px; }
  .post-head__title { font-size: 44px; max-width: 18em; }
  .post-head__lede { max-width: 36em; font-size: 18px; }
  .list-head__title { font-size: 48px; }
  .day3 { grid-template-columns: repeat(3, 1fr); }
  /* 글 지면은 읽기 폭(40rem ≈ 한 줄 36~40자) + 좌우 여백 — 오른쪽 빈 띠를 남기지 않는다 */
  .post-sheet, .post-head { max-width: calc(var(--read) + 120px); }
  .post-sheet { padding-top: 44px; padding-bottom: 44px; }
  .foot__in { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px 48px; }
  .foot__links { grid-column: 2; grid-row: 1; align-self: start; margin-top: 0; justify-content: flex-end; }
  .foot__note, .foot__copy { grid-column: 1 / -1; max-width: 52em; }
}

/* ── 10. 움직임·인쇄 ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; }
  .top, .topnav, .ad-slot, .inline-ad, .foot, .post-body .cta-box, .post-body .cta-button, .chips, .band:not(:has(.post-body)) { display: none !important; }
  .sheet, .band__in { margin: 0; padding: 0; }
  .post-body { max-width: none; }
  .post-body a { color: inherit; }
}

/* QA 자동 수정 (관문 A) */
.trail a, .foot__links a { min-width: 44px; }
.trail li + li::before { flex: none; white-space: nowrap; }

/* QA 자동 수정 (관문 A) */
.trail li + li::before { flex: 0 0 auto; white-space: nowrap; word-break: keep-all; }

/* QA 자동 수정 (관문 A) */
.trail li + li::before { flex: 0 0 auto; white-space: nowrap; word-break: keep-all; }
.post-body .inline-ad:has(> .ad-label:only-child), .post-body figure:has(> img[src^="data:image/svg+xml"] + figcaption) { display: none; }

/* QA 자동 수정 (관문 A) */
.post-body p { overflow-wrap: anywhere; }
@media (max-width: 719px) {
  .post-body .scroll-x.is-stacked { overflow-x: auto; background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left/24px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right/24px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(41,37,34,.18), transparent) left/10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(41,37,34,.18), transparent) right/10px 100% no-repeat scroll; }
  .post-body .scroll-x.is-stacked table.is-stacked { display: table; min-width: 520px; }
  .post-body .scroll-x.is-stacked table.is-stacked tbody { display: table-row-group; }
  .post-body .scroll-x.is-stacked table.is-stacked tr { display: table-row; margin: 0; border: 0; border-radius: 0; overflow: visible; }
  .post-body .scroll-x.is-stacked table.is-stacked th, .post-body .scroll-x.is-stacked table.is-stacked td { display: table-cell; }
  .post-body .scroll-x.is-stacked table.is-stacked thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .post-body .scroll-x.is-stacked table.is-stacked td[data-label] { display: table-cell; }
  .post-body .scroll-x.is-stacked table.is-stacked td[data-label]::before { content: none; }
  .post-head__title { font-size: 27px; line-height: 1.2; }
}

/* QA 자동 수정 (관문 A) */
@media (max-width: 767px) { .post-body .warn-box { margin-left: 0; margin-right: 0; } .post-body .prep-grid > div > span:first-child { flex: 1 1 auto; } }
