/* Page-specific styles: index.html */
/* ==========================================================================
   나이시토루 정보 사이트 - 기본 스타일
   ========================================================================== */

:root {
  --bg: #FFF3E8;
  --bg-alt: #FBE3D1;
  --ink: #211512;
  --ink-soft: #6A4A40;
  --primary: #D71920;
  --primary-dark: #8F1015;
  --accent: #F15A24;
  --accent-soft: #F7C84B;
  --herb-brown: #A52A1E;
  --line: #E8C6B2;
  --white: #FFFDFC;

  --font-display: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-full: 999px;

  --max-width: 1120px;
}

/* 웹 접근성(Skip Nav) */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 999;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }

img, video { max-width: 100%; display: block; }

ul { list-style: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-primary:hover { transform: translateY(-2px); }

/* ---- Header / Nav ---- */

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-links a:not(:last-child)::after {
  content: "｜";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,0.5);
  font-weight: 400;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: rgba(255,243,232,0.96);
  backdrop-filter: blur(8px);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  height: 60svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #C9151B, #49090B);
}

.hero-media {
  position: absolute;
  filter: saturate(1.1) contrast(1.05) blur(0.5px);
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(73,9,11,0.84) 0%, rgba(73,9,11,0.58) 32%, rgba(73,9,11,0.06) 58%, rgba(73,9,11,0.38) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 52%;
  padding: 0 24px 88px 200px;
  color: var(--white);
  top: 65px;
}

.hero-content .eyebrow { color: var(--accent-soft); }

.hero-content h1 {
  font-size: clamp(24px, 4.2vw, 34px);
  color: var(--white);
  margin-bottom: 4px;
}

.hero-content p {
  margin-top: 18px;
  font-size: 18px;
  color: rgba(255,255,255,0.88);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- 히어로 캐러셀 & 트래커 ---- */

.hero-drop-carousel {
  position: absolute;
  z-index: 3;
  right: 25%;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-drop-carousel .drop-shape {
  width: clamp(150px, 18vw, 270px);
  height: clamp(190px, 24vw, 300px);
}

.hero-drop-carousel .drop-nav {
  width: 34px;
  height: 34px;
  font-size: 15px;
  flex-shrink: 0;
}

.weight-tracker {
  position: absolute;
  z-index: 3;
  right: 15%;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
  color: var(--white);
}

.weight-label {
  font-size: 20px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
  text-align: center;
}

.weight-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-soft);
}

.weight-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weight-start {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  text-decoration: line-through;
}

.weight-arrow {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.weight-delta {
  margin-top: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

/* ---- 제품 라인업 카드 ---- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

a.product-card {
  display: block;
  cursor: pointer;
  background: var(--white);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

a.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(73,9,11,0.12);
}

.product-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-card-img img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--herb-brown);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---- 캐러셀 ---- */

.drop-shape {
  position: relative;
  width: 300px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-alt);
}

.drop-slide {
  position: absolute;
  inset: 0;
  transition: transform .42s cubic-bezier(.22,.8,.32,1);
}

.drop-slide-link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
}

.drop-shape img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.drop-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 16px 24px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(0deg, rgba(73,9,11,0.88), rgba(73,9,11,0));
}

.drop-caption h3 { font-size: 17px; color: #fff; margin-bottom: 4px; }

.drop-caption span { font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.75); }

.drop-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
}

/* ---- 신뢰/소개 섹션 ---- */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.intro-copy p {
  color: var(--ink-soft);
  font-size: 18px;
  margin-bottom: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 12px;
  column-gap: 12px;
  padding: 10px;
}

.stat-card {
  position: relative;
  width: 100%;
  max-width: 175px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(73,9,11,0.10);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: .55;
}

.stat-card:nth-child(1) { transform: rotate(-4deg) translateY(6px); }

.stat-card:nth-child(2) { transform: rotate(3deg) translateY(-10px); }

.stat-card:nth-child(3) { transform: rotate(-3deg) translateY(-4px); }

.stat-card:nth-child(4) { transform: rotate(5deg) translateY(10px); }

.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.stat-desc {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.3;
  padding: 0 6px;
}

/* ---- 가격비교 섹션 ---- */

.pc-variant {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
}

.pc-variant-label {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 14px;
}

.pc-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}

.pc-bar-row:last-child { margin-bottom: 0; }

.pc-site {
  width: 96px;
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.pc-bar-track {
  flex: 1;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  height: 24px;
  overflow: hidden;
}

.pc-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  min-width: 60px;
  transition: width .5s ease;
}

.pc-bar-fill.is-min { background: var(--accent); }

.pc-bar-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.pc-toggle-wrap {
  text-align: center;
  margin-top: 8px;
}

.pc-toggle-btn {
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  background: var(--white);
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pc-toggle-btn:hover { background: var(--bg-alt); }

/* ---- 성분 섹션 ---- */

.body-map-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.body-map {
  flex: 0 0 200px;
  position: sticky;
  top: 110px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
  text-align: center;
}

.body-map svg { width: 100%; height: auto; }

.silhouette-base {
  fill: var(--bg-alt);
  stroke: var(--line);
  stroke-width: 2;
  transition: stroke .25s ease, stroke-width .25s ease;
}

.body-map svg.is-whole-active .silhouette-base {
  stroke: var(--accent);
  stroke-width: 3;
}

.body-zone {
  fill: var(--accent);
  opacity: 0;
  transition: opacity .25s ease;
}

.body-zone.is-active { opacity: .5; }

.body-map-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

.ingredient-list-c {
  flex: 1;
  min-width: 0;
}

.ic-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .2s ease;
}

.ic-row:hover,
.ic-row.is-active {
  background: var(--white);
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
}

.ic-index {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--herb-brown);
  width: 20px;
  flex-shrink: 0;
}

.ic-hanja {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary);
  width: 48px;
  flex-shrink: 0;
}

.ic-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  width: 56px;
  flex-shrink: 0;
}

.ic-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}

.ic-zone-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--herb-brown);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ---- 직구 가이드 섹션 ---- */

.steps-timeline {
  position: relative;
  padding-left: 32px;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.step-item {
  position: relative;
  padding-bottom: 36px;
}

.step-item:last-child { padding-bottom: 0; }

.step-num {
  position: absolute;
  left: -32px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 { font-size: 17px; margin-bottom: 6px; }

.step-item p { font-size: 14px; color: var(--ink-soft); }

.step-item p strong { color: var(--primary); font-weight: 700; }

/* ---- FAQ 섹션 ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: faq-counter;
}

.faq-item {
  counter-increment: faq-counter;
  position: relative;
  padding-left: 72px;
  border-left: 4px solid var(--accent);
  background: var(--white);
  border-radius: var(--radius-md);
  padding-top: 4px;
  padding-bottom: 4px;
  padding-right: 20px;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
}

.faq-item::before {
  content: counter(faq-counter, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
}

.faq-item summary {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.site-footer {
  padding: 48px 0 40px;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-align: center;
}

.site-footer span:first-of-type {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.site-footer span:last-of-type {
  max-width: 780px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 1080px) {
  .hero-content { max-width: 62%; padding-left: 40px; top: 0; }
  .hero-drop-carousel { display: none; }
  .weight-tracker { display: none; }
}

@media (max-width: 680px) {
  .hero { align-items: flex-start; padding-top: 100px; }
  .hero-content { max-width: 100%; padding: 0 20px; }
  .hero-content h1 { font-size: clamp(22px, 6vw, 28px); }
  .hero-content p { font-size: 15px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-header .nav-inner > .btn { display: none; }
  .menu-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .intro-split { grid-template-columns: 1fr; }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 16px;
  }
  .stat-card {
    max-width: 140px;
    transform: none !important;
  }
  .section { padding: 64px 0; }
  .body-map-wrap { flex-direction: column; }
  .body-map { position: static; width: 160px; margin: 0 auto; }
  .ic-row { flex-wrap: wrap; }
  .ic-desc { width: 100%; margin-top: 4px; padding-left: 64px; }
  .ic-zone-tag { margin-left: 64px; }
  .ingredient-list-c a:nth-child(n/**/+5) { display: none; }
}
