/* 소개 페이지(/ · /ja/) 전용. 다른 페이지는 styles.css */
:root {
  --bg: #ffffff;
  --ink: #1e2433;
  --sub: #4d5566;
  --faint: #7a8296;
  --line: #e6e2d9;
  --indigo: #24335a;
  --vermilion: #d9502f;
  --vermilion-text: #b03e26;
  --card: #fbf8f2;
  --card-edge: #dcd4c5;
  --morning: #dce5e6;
  --noon: #efe3ce;
  --blush: #f6dcd3;
  --dusk: #e4e3ef;
  --night: #1c2340;
  --night-text: #efe9dd;
  --night-muted: #a7afc6;
  --bezel: #12141c;
  --airmail: repeating-linear-gradient(135deg, var(--vermilion) 0 10px, var(--bg) 10px 20px, var(--indigo) 20px 30px, var(--bg) 30px 40px);
  --display: 'Gowun Batang', 'Apple SD Gothic Neo', serif;
  --body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --hand: 'Klee One', 'Hiragino Maru Gothic ProN', serif;
}
/* 일본어 페이지: 서체만 바꾼다. 엽서의 한 줄은 상대 나라 말이라 손글씨 서체가 반대다 */
html[lang="ja"] {
  --display: 'Klee One', 'Hiragino Mincho ProN', serif;
  --body: 'IBM Plex Sans JP', 'Hiragino Sans', system-ui, sans-serif;
  --hand: 'Gowun Batang', 'Apple SD Gothic Neo', serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
html[lang="ja"] body { word-break: normal; line-break: strict; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
a:focus-visible, summary:focus-visible, .grid:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.stripe { height: 5px; background: var(--airmail); }
.wrap {
  max-width: 1184px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2 { font-family: var(--display); font-weight: 700; color: var(--indigo); text-wrap: balance; }
h2 { font-size: clamp(26px, 3.3vw, 38px); line-height: 1.4; letter-spacing: -0.02em; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--vermilion-text); letter-spacing: 0.06em; margin-bottom: 12px; }

/* header */
.top { display: flex; align-items: center; gap: 24px; height: 72px; }
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--sub); }
.top nav a:hover { color: var(--ink); }
.top .dl { background: var(--indigo); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; }
.top .dl:hover { opacity: 0.88; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding-block: 36px 88px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.3; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--vermilion-text); }
/* 일본어 첫 줄은 열 글자라 한국어 크기로는 세 줄이 된다. 두 줄에 들어가게 줄인다 */
:lang(ja) .hero h1 { font-size: clamp(30px, 4.1vw, 50px); }
.hero .lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--sub); line-height: 1.7; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badges img { height: 62px; width: auto; }
/* 배지 두 개가 넘치는 폭(423·343px)에서 쌓는다. 일본어 App Store 배지(app-store-ja.svg)는 한국어 배지와 같은 폭으로 넓혀 둔 것 */
.hero-copy, .cta-in > div { container-type: inline-size; }
@media (min-width: 561px) { @container (max-width: 423px) { .badges { flex-direction: column; align-items: flex-start; } } }
.web-link { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--sub); border-bottom: 1px solid var(--card-edge); padding-bottom: 2px; }
.web-link:hover { color: var(--ink); border-color: var(--ink); }

.visual { position: relative; height: 560px; min-width: 0; }
.phone {
  position: absolute; right: 4%; top: 0; width: 244px;
  border: 9px solid var(--bezel); border-radius: 44px; overflow: hidden; background: var(--bezel);
  box-shadow: 0 30px 60px -28px rgba(18, 20, 28, 0.45);
}
.phone img { width: 100%; height: auto; border-radius: 34px; }
.photo {
  position: absolute; left: 4%; top: 24px; width: 200px; padding: 8px; background: #fff;
  box-shadow: 0 1px 0 var(--card-edge), 0 18px 34px -16px rgba(30, 36, 51, 0.4);
  transform: rotate(-5deg); animation: arrive 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.photo > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo .tag { position: absolute; left: 16px; top: 16px; background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.postmark { position: absolute; right: -26px; bottom: -22px; width: 84px; height: 84px; transform: rotate(-12deg); animation: stamp 0.35s 0.75s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.pc {
  position: absolute; left: 0; bottom: 40px; width: 350px; padding: 7px; background: var(--airmail); border-radius: 6px; font-size: 15px;
  box-shadow: 0 20px 40px -18px rgba(30, 36, 51, 0.45);
  transform: rotate(3deg); animation: slide 0.8s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pc-in { background: var(--card); border-radius: 2px; padding: 1.2em 1.2em 1.3em; display: grid; grid-template-columns: 1fr auto; gap: 1em; }
.pc .line { font-family: var(--hand); font-size: 1.3em; line-height: 1.6; color: var(--indigo); word-break: normal; }
.pc .tr { margin-top: 0.9em; padding-top: 0.8em; border-top: 1px dashed var(--card-edge); font-size: 0.87em; color: var(--sub); }
.pc .tr b { display: block; font-size: 0.8em; font-weight: 600; color: var(--vermilion-text); letter-spacing: 0.08em; }
.pc .side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.9em; padding-left: 1em; border-left: 1px solid var(--card-edge); }
.pc .addr { font-size: 0.73em; line-height: 1.7; color: var(--faint); letter-spacing: 0.08em; text-align: right; white-space: nowrap; }
.pc .addr b { display: block; font-size: 1.25em; color: var(--ink); letter-spacing: 0; }

/* 우표: 톱니는 8px 격자라 가로세로를 8의 배수로 둔다 */
.stamp {
  flex: none; width: 56px; height: 64px; padding: 6px;
  background: radial-gradient(circle at 4px 4px, transparent 2.6px, #fff 3.1px) -4px -4px / 8px 8px;
  filter: drop-shadow(0 1px 1.5px rgba(30, 36, 51, 0.35));
}
.stamp span { display: grid; place-items: center; width: 100%; height: 100%; background: var(--morning); }
.stamp img { width: 34px; height: auto; }

@keyframes arrive { from { opacity: 0; transform: translate(36px, -28px) rotate(8deg); } }
@keyframes slide { from { opacity: 0; transform: translateX(56px) rotate(8deg); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.7); } }

/* steps: 서울에서 오사카까지 항로 위를 노리가 달린다 */
.steps { padding-block: 72px 80px; }
.steps-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.steps-head p.note { color: var(--sub); font-size: 15px; max-width: 30ch; }
.route { position: relative; height: 62px; margin-top: 40px; }
.route::before { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; border-top: 2px dashed var(--vermilion); opacity: 0.55; }
.route .city { position: absolute; bottom: 0; background: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--indigo); padding-block: 4px; }
.route .city.from { left: 0; padding-right: 10px; }
.route .city.to { right: 0; padding-left: 10px; }
.route .runner { position: absolute; bottom: 12px; left: calc(0.04 * (100% - 84px)); width: 84px; height: auto; }
/* 스크립트를 못 쓰므로(CSP) 스크롤에 맞춰 달리는 건 CSS 스크롤 타임라인으로. 지원하지 않는 브라우저에서는 출발점에 서 있다 */
@keyframes run { to { left: calc(0.96 * (100% - 84px)); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .route .runner { animation: run linear both; animation-timeline: view(); animation-range: entry 60% cover 75%; }
  }
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.step { display: flex; flex-direction: column; min-width: 0; }
.step .shot { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; }
.step .shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step h3 { margin-top: 18px; display: flex; gap: 12px; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -0.02em; }
.step .n {
  flex: none; width: 28px; height: 28px; margin-top: -1px; border: 1.5px solid var(--vermilion); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--vermilion-text); font-variant-numeric: tabular-nums;
}

/* audience */
.aud { padding-block: 72px; border-top: 1px solid var(--line); }
.aud ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.aud li { border-radius: 24px; padding: 28px 24px 30px; display: flex; flex-direction: column; min-width: 0; }
.aud li:nth-child(1) { background: var(--morning); }
.aud li:nth-child(2) { background: var(--noon); }
.aud li:nth-child(3) { background: var(--blush); }
.aud li:nth-child(4) { background: var(--dusk); }
.aud .av { height: 150px; display: grid; place-items: center; }
.aud .av img { max-width: 100%; max-height: 150px; width: auto; height: auto; }
.aud h3 { margin-top: 22px; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; text-wrap: balance; }
.aud li p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--sub); }

/* reviews: 엽서 뒷면처럼 */
.reviews { padding-block: 72px 80px; border-top: 1px solid var(--line); }
.cols { columns: 3; column-gap: 24px; margin-top: 48px; }
.rv {
  break-inside: avoid; position: relative; background: var(--card); border: 1px solid var(--card-edge); border-radius: 6px;
  padding: 26px 26px 22px; margin: 0 0 24px; box-shadow: 0 14px 26px -20px rgba(30, 36, 51, 0.35);
}
.rv:nth-child(odd) { transform: rotate(-0.7deg); }
.rv:nth-child(even) { transform: rotate(0.6deg); }
.rv .stamp { float: right; margin: -6px -6px 10px 16px; }
.rv .stars { display: flex; gap: 2px; color: var(--vermilion); }
.rv .stars svg { width: 15px; height: 15px; }
.rv p { margin-top: 14px; font-size: 15.5px; line-height: 1.75; }
.rv cite { display: block; clear: both; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--card-edge); font-style: normal; font-size: 13.5px; color: var(--sub); }
.src { margin-top: 4px; font-size: 13px; color: var(--faint); }

/* faq */
.faq { padding-block: 72px 88px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 300px 1fr; gap: 24px 72px; align-items: start; }
.faq .aside { min-width: 0; }
.faq .aside img { width: 96px; height: auto; margin-top: 28px; }
.faq-list { min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 16px; height: 16px; color: var(--vermilion-text); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 32px 24px 0; color: var(--sub); font-size: 15.5px; max-width: 62ch; }
.faq details p a { color: var(--ink); border-bottom: 1px solid var(--faint); }

/* closing: 밤 우편 */
.cta { background: var(--airmail); border-radius: 28px; padding: 7px; margin-bottom: 64px; }
.cta-in { background: var(--night); border-radius: 22px; padding: 56px clamp(24px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta-in > div { min-width: 0; }
.cta h2 { color: var(--night-text); }
.cta p { margin-top: 10px; color: var(--night-muted); font-size: 15.5px; }
.cta .badges { margin-top: 28px; }
.cta .cat { width: 220px; height: auto; }

footer { padding-block: 0 56px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-end; }
footer .logo img { height: 30px; width: auto; }
footer .tag { margin-top: 10px; font-size: 13.5px; color: var(--sub); }
footer .copy { margin-top: 20px; font-size: 12.5px; color: var(--faint); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13.5px; color: var(--sub); }
footer .links a:hover { color: var(--ink); }
footer .share-note { flex-basis: 100%; font-size: 12.5px; color: var(--faint); }

@media (max-width: 900px) {
  .top nav .in-page { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 20px 56px; gap: 40px; }
  :lang(ja) .hero h1 { font-size: clamp(28px, 8.4vw, 44px); }
  .visual { height: 470px; max-width: 420px; width: 100%; margin-inline: auto; }
  .phone { width: 200px; right: 0; border-width: 8px; border-radius: 38px; }
  .phone img { border-radius: 30px; }
  .photo { width: 150px; left: 2%; top: 14px; padding: 6px; }
  .photo .tag { left: 12px; top: 12px; font-size: 11px; }
  .postmark { width: 66px; height: 66px; right: -20px; bottom: -18px; }
  .pc { width: 280px; font-size: 12px; bottom: 28px; padding: 6px; }
  .pc .stamp { width: 48px; height: 56px; padding: 5px; }
  .pc .stamp img { width: 28px; }
  .aud ul { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* 좁은 화면은 세로로 쌓지 않고 옆으로 넘긴다. 넘기는 만큼 노리가 달린다 */
  .grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .grid::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(64%, 280px); scroll-snap-align: start; }
  .step h3 { font-size: 16.5px; }
  .cols { columns: 2; column-gap: 16px; }
  .rv { margin-bottom: 16px; padding: 22px 20px 18px; }
  .steps, .aud, .reviews { padding-block: 56px; }
  .faq { grid-template-columns: 1fr; padding-block: 56px 64px; }
  .faq .aside img { display: none; }
  .cta-in { grid-template-columns: 1fr; padding-block: 44px 0; text-align: center; }
  .cta .badges { justify-content: center; }
  .cta .cat { width: 180px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .cols { columns: 1; }
  .pc { width: 250px; font-size: 11px; }
  .aud ul { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .aud li { flex-direction: row; align-items: center; gap: 18px; padding: 20px; border-radius: 20px; }
  .aud .av { flex: none; width: 92px; height: 92px; }
  .aud .av img { max-height: 92px; }
  .aud h3 { margin-top: 0; font-size: 18px; }
  .aud li p { margin-top: 4px; font-size: 14.5px; }
  .badges img { height: 50px; }
  :lang(ja) .hero .lead { font-size: 15px; }
  :lang(ja) .aud li p { font-size: 14px; }
  @container (max-width: 343px) { .badges { flex-direction: column; align-items: flex-start; } .cta .badges { align-items: center; } }
  .cta { border-radius: 24px; }
  .cta-in { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo, .pc, .postmark { animation: none; }
  .faq summary svg { transition: none; }
}
