/* SixBalloon.com — W1 skeleton. Mobile-first, 문서형 레이아웃, 장식 없음.
   Product Module 외형은 OPEN(Spec §7) — 여기서 정하지 않는다. */

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-line: #e5e5e5;
  --gutter: 16px;
  --measure: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  /* 한글은 어절 단위로 줄을 바꾼다("않습니 / 다" 같은 끊김 방지). 긴 영문은 위 break-word가 막는다. */
  word-break: keep-all;
}

a {
  color: inherit;
}

.site-header,
.page {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.site-nav a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--color-muted);
}

.site-nav a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 700;
}

.site-nav__sep {
  color: var(--color-line);
}

.page {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* 페이지 제목(h1)은 문서 구조용으로만 둔다(visually-hidden). 현재 페이지는 상단 메뉴가 보여 준다. */

.area {
  padding: 24px 0;
}

/* 본문 첫 영역은 .page의 위 여백만 쓴다 — 여백이 겹쳐 두 배가 되지 않게 한다. */
.page > .area:first-of-type {
  padding-top: 0;
}

.area--notice {
  border-top: 1px solid var(--color-line);
}

.area__title {
  margin: 0 0 16px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Product Area — W5 CLOSED 배치(Spec §5·§7-1). W6 Shorts로 세로 배치는 다시 조정될 수 있다. */
.product-indicator {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.3em;
  text-align: center;
}

/* ◀ ▶는 세 Product 모두 같은 높이(Identity 줄 옆)에 둔다. 화살표는 Identity 줄에만 놓이고
   세로 전체를 차지하지 않는다 — 태그라인·설명은 화살표 아래 좌우 공간까지 쓴다(W7-1a R2).
   Product는 위에서부터 채우고, 영역 높이는 가장 긴 Product에 맞춰 고정되어 아래 Notice Area가
   움직이지 않는다. */
.product-stage {
  position: relative;
}

.product-track {
  display: grid;
  touch-action: pan-y;
}

/* 등록된 Product를 한 칸에 두고 현재 것만 보인다. 숨긴 Product는 [hidden](display: none)이라
   자리를 차지하지 않는다 — 영역 높이는 현재 Product의 실제 내용 높이다. ◀ ▶ · Indicator는
   Track 윗부분이라 Product를 넘겨도 움직이지 않는다. */
.product-track > [data-product] {
  grid-area: 1 / 1;
}

/* Product Module — W5 Visual DEFAULT(실화면 확인 대기) */
.product {
  padding: 8px 0;
  text-align: center;
}

/* 좌우 48px = 화살표(44px) + 간격(4px). Identity만 화살표를 비켜 가운데 놓인다.
   Identity 줄은 로고 최대 높이(30px)로 같고, 좁은 화면에서 폭 때문에 줄어든 로고는 그 줄
   가운데에 놓인다 — 로고 비율은 그대로. */
.product__identity {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 0 48px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.product__logo {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  max-width: 100%;
  max-height: 30px;
  margin: 0 auto;
}

.product__tagline {
  margin: 0;
  color: var(--color-muted);
}

.product__description {
  margin: 16px 0 0;
  word-break: keep-all;
}

.product-nav {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  cursor: pointer;
}

.product-nav--prev {
  left: 0;
}

.product-nav--next {
  right: 0;
}

/* Shorts Viewer (W6) — Product Area 아래 하나, 9:16, 가운데. 모바일 본문 폭에 맞추되
   넓은 화면에서도 18rem을 넘지 않고, 낮은 화면(가로 모드)에서는 높이가 화면의 70%를 넘지 않는다. */
.shorts-frame {
  position: relative;
  width: min(100%, 18rem);
  width: min(100%, 18rem, 70svh * 9 / 16);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: var(--color-line);
}

.shorts-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 소개의 첫 문장(lead). PAGE 1에서 가장 먼저 읽히는 글이다. */
.brand__lead {
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 600;
}

.brand__paragraph.brand__lead {
  margin-bottom: 24px;
}

.brand__paragraph {
  margin: 0 0 16px;
}

.brand__paragraph:last-child {
  margin-bottom: 0;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 16px;
}

.notice:first-child {
  padding-top: 0;
}

.notice__toggle {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notice__date {
  display: block;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.notice__title {
  display: block;
  font-weight: 600;
}

.notice__summary {
  margin: 4px 0 0;
  font-size: 0.9375rem;
}

.notice__body {
  margin-top: 12px;
  white-space: pre-line;
}

.notice-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.notice-pager[hidden] {
  display: none;
}

.notice-pager__button {
  min-width: 44px;
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.notice-pager__button:disabled {
  color: var(--color-line);
  cursor: default;
}

.notice-pager__status {
  color: var(--color-muted);
}

.page__next {
  margin: 8px 0 0;
}

.page__next a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 0;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .page {
    padding-top: 48px;
  }

  /* PAGE 2는 모든 폭에서 header → Indicator 32px(W7-1a R1). */
  #page-products {
    padding-top: 32px;
  }
}

/* 공통 하단 — Privacy · Terms. 본문보다 낮은 우선순위의 작은 한 줄(사업자 정보·copyright 없음). */
.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--color-line);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.site-footer[hidden] {
  display: none;
}

.site-footer a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 0;
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer__sep {
  color: var(--color-line);
}
