/* =========================================================
   WOOJOO PLAY · 소리랑
   색은 logo-main.png(새 버전)에서 추출. 모바일 우선.
   ========================================================= */

:root {
  /* 로고 색 */
  --navy:   #2A4F78;
  --coral:  #F98270;
  --yellow: #FCB03E;
  --sky:    #64ADE7;
  --green:  #72A876;
  --purple: #A488C2;

  /* 아주 옅은 바탕용 */
  --coral-soft:  #FEECE9;
  --yellow-soft: #FEF0DA;   /* 로고 '소리랑' 뒤 미색 */
  --sky-soft:    #E8F3FC;
  --green-soft:  #EAF3EA;
  --purple-soft: #F1EDF7;

  /* 글자·바탕 */
  --ink:    #3B4E66;   /* 본문: 남색을 옅게 */
  --muted:  #6B788A;
  --line:   #E4E7EC;
  --paper:  #FFFFFF;
  --tint:   #FCF9F3;   /* 아주 옅은 미색 */

  --kakao:     #FEE500;
  --kakao-ink: rgba(0, 0, 0, .85);

  --wrap: 66rem;
  --gutter: 1.375rem;
  --section-y: 4.5rem;
  --float-h: 3.25rem;  /* 고정 버튼 높이 */

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 700; color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 48rem; }

/* 넓은 화면에서만 줄바꿈 */
.br-wide { display: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn__icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.btn--kakao {
  background: var(--kakao);
  color: var(--kakao-ink);
}
.btn--kakao:hover { background: #F5DC00; }

.btn--line {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #C9D2DE;
}
.btn--line:hover { border-color: var(--navy); }

.btn--lg {
  min-height: 3.5rem;
  padding-inline: 2rem;
  font-size: 1.0625rem;
}

/* ---------- 1. 첫 화면 ---------- */
.hero {
  padding-block: 2.5rem 4rem;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(72vw, 17rem);
  /* 로고 이미지 위아래 흰 여백 보정 */
  margin-block: -1.5rem -.5rem;
}

.hero__title {
  font-size: clamp(1.875rem, 8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
  color: var(--navy);
}

.hero__lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}

.hero__name {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1.25rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
}

.deco-note {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: var(--sky);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 2rem;
}

/* ---------- 공통 섹션 ---------- */
.section {
  padding-block: var(--section-y);
}
.section--tint { background: var(--tint); }
.section--rule { border-top: 1px solid var(--line); }

.section__title {
  font-size: clamp(1.625rem, 6.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-bottom: 2rem;
}

.section__note {
  margin-top: 2rem;
  font-size: .9375rem;
  color: var(--muted);
}

.sub-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: .75rem;
}

/* ---------- 2. 한눈에 보기 ---------- */
.facts {
  border-top: 2px solid var(--navy);
}

.facts__row {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: .0625rem;
}

.facts dd {
  font-weight: 500;
  color: var(--navy);
}

.overview__line {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -.015em;
  color: var(--navy);
}

/* ---------- 3. 이렇게 진행돼요 ---------- */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  padding-bottom: 2.25rem;
}

/* 단계를 잇는 세로선 */
.step::before {
  content: "";
  position: absolute;
  left: calc(1.25rem - .5px);
  top: 2.75rem;
  bottom: .25rem;
  width: 1px;
  background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }

.step__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--c-soft);
  box-shadow: inset 0 0 0 2px var(--c);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.step__body { padding-top: .25rem; }

/* '소리랑 ○○해요' — 각 단계의 색으로 형광펜 밑줄 */
.step__name {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.03em;
  color: var(--navy);
}
.step__name span {
  background-image: linear-gradient(transparent 60%, color-mix(in srgb, var(--c) 32%, transparent) 60%, color-mix(in srgb, var(--c) 32%, transparent) 92%, transparent 92%);
  padding-inline: .125rem;
  margin-inline: -.125rem;
}

.step__piece {
  margin-top: .375rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.step__text {
  margin-top: .375rem;
  color: var(--ink);
}

/* ③ 단계: 가장 눈에 띄게 */
.step--feature {
  margin-block: .25rem 2.5rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 1.75rem var(--gutter) 2rem;
  background: var(--sky-soft);
  border-radius: 0;
}
.step--feature::before { display: none; }

.step--feature .step__num {
  background: var(--sky);
  box-shadow: none;
  color: var(--navy);
}

.step--feature .step__name {
  font-size: clamp(1.875rem, 8vw, 2.5rem);
}
.step--feature .step__name span {
  background-image: linear-gradient(transparent 62%, #fff 62%, #fff 94%, transparent 94%);
}

.step--feature .step__piece {
  margin-top: .5rem;
  font-size: 1.125rem;
  color: var(--navy);
}

.step--feature .step__text {
  margin-top: .75rem;
  font-size: 1.0625rem;
}

.step--feature strong {
  display: block;
  margin-top: .75rem;
  font-size: 1.125rem;
}

/* ③ 전후의 세로선이 끊겨 보이지 않도록 */
.step:has(+ .step--feature)::before { bottom: -.25rem; }

/* ---------- 4. 악기 소개 ---------- */
.instruments {
  display: grid;
  gap: 2rem;
}

.instrument {
  padding-top: 1.125rem;
  border-top: 3px solid var(--c);
}

.instrument__name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: .5rem;
}

/* ---------- 5. 우주앙상블 소개 ---------- */
.ensemble {
  display: grid;
  gap: 2rem;
}

.ensemble__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.ensemble__intro {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.career li {
  position: relative;
  padding: .625rem 0 .625rem 1.125rem;
  border-bottom: 1px solid var(--line);
}
.career li:first-child { border-top: 1px solid var(--line); }
.career li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- 6. 안내 및 요금 ---------- */
.info {
  display: grid;
  gap: 2.5rem;
}

.info__group {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}

.info__list li {
  position: relative;
  padding: .5rem 0 .5rem 1rem;
}
.info__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: .375rem;
  height: 1.5px;
  background: var(--muted);
}

.info__price strong {
  display: block;
  margin-top: .125rem;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ---------- 7. 자주 묻는 질문 ---------- */
.faq {
  border-top: 2px solid var(--navy);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: 1.125rem 2.5rem 1.125rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

/* + / − 표시 */
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 50%;
  width: .875rem;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform .2s ease;
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }

.faq__item p {
  padding: 0 2.5rem 1.375rem 0;
  color: var(--ink);
}

/* ---------- 8. 문의 ---------- */
.contact { text-align: center; }

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deco-leaf {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1rem;
  fill: var(--green);
}

.contact .section__title { margin-bottom: .875rem; }

.contact__lead {
  max-width: 26rem;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

/* ---------- 9. 맨 아래 ---------- */
.footer {
  padding-top: 2.5rem;
  /* 고정 버튼이 내용을 가리지 않도록 아래쪽 여백 */
  padding-bottom: calc(var(--float-h) + 3rem + env(safe-area-inset-bottom, 0px));
  font-size: .875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer__info li + li { margin-top: .25rem; }

.footer__copy {
  margin-top: 1rem;
  font-weight: 600;
}

/* ---------- 고정 카카오톡 상담 버튼 ---------- */
.float-kakao {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  height: var(--float-h);
  padding-inline: 1.125rem 1.25rem;
  border-radius: 999px;
  background: var(--kakao);
  color: var(--kakao-ink);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(42, 79, 120, .22);
  transition: background-color .15s ease, opacity .2s ease, transform .2s ease;
}
.float-kakao:hover { background: #F5DC00; }

/* 자바스크립트가 켜져 있을 때만: 첫 화면 상담 버튼이 보이는 동안 숨김 */
.js-float .float-kakao:not(.is-shown) {
  opacity: 0;
  transform: translateY(.75rem);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

/* =========================================================
   넓은 화면
   ========================================================= */
@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
    --section-y: 6rem;
  }

  .br-wide { display: inline; }

  .hero { padding-block: 3.5rem 5.5rem; }
  .hero__logo { width: 20rem; margin-top: -2rem; }
  .hero__lead { font-size: 1.1875rem; }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    width: auto;
  }

  .section__title { margin-bottom: 2.75rem; }

  .step--feature {
    margin-inline: -2rem;
    padding: 2.25rem 2rem 2.5rem;
    border-radius: 1.25rem;
  }

  .instruments {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 60rem) {
  /* 한눈에 보기: 3칸 × 2줄 */
  .facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem;
  }
  .facts__row {
    grid-template-columns: 1fr;
    gap: .25rem;
    padding-block: 1.25rem 1.5rem;
  }

  /* 진행 단계: 본문 폭을 좁혀 읽기 편하게 */
  .steps,
  .section__note { max-width: 46rem; }

  .ensemble__text { max-width: 46rem; }
  /* 사진을 넣으면 2단으로 */
  .ensemble:has(.ensemble__photo) {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .info {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

