/* =========================================================
   TN1 / PEBLWEAR — Landing Page
   Design tokens: white bg, soft grey type, Helvetica wide-spacing,
   generous whitespace. Minimal, quiet.
   ========================================================= */

:root {
  --bg: #ffffff;
  --text: rgba(0, 0, 0, 0.5);      /* body / catch copy — the main voice */
  --text-sub: rgba(0, 0, 0, 0.4);  /* faint labels: SOLID / MINIMAL ... */
  --text-strong: rgba(0, 0, 0, 0.62); /* spec keys, slightly firmer */
  --line: rgba(0, 0, 0, 0.12);
  --line-faint: rgba(0, 0, 0, 0.07);

  --serif-head: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 32px;
  letter-spacing: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---------- Type ---------- */
.label {
  font-family: var(--serif-head);
  color: var(--text-sub);
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
}

.h-eyebrow {
  font-family: var(--serif-head);
  color: var(--text-sub);
  font-weight: 500;
  letter-spacing: 2px;
  font-size: clamp(20px, 3.4vw, 28px);
  margin: 0;
}

.feature-title,
.section-title {
  font-family: var(--body-font);
  color: var(--text);
  font-weight: 500;
  letter-spacing: 1px;
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.7;
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 2;
  letter-spacing: 2px;
  color: var(--text);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }

.section-pad { padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(64px, 11vw, 140px); }

/* ---------- Hero video ---------- */
.hero {
  position: relative;
  width: 100%;
  background: #f3f3f3;
  overflow: hidden;
}
.hero__video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero__sound {
  position: absolute;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease, opacity 0.25s ease;
  z-index: 3;
}
.hero__sound:hover { background: rgba(0, 0, 0, 0.45); }
.hero__sound svg { width: 22px; height: 22px; display: block; }
.hero__sound .icon-on { display: none; }
.hero__sound.is-on .icon-off { display: none; }
.hero__sound.is-on .icon-on { display: block; }

/* ---------- Brand intro sequence (full-bleed image × word) ----------
   Faithful to original: full-width-bloc images run edge-to-edge
   (.full-width-bloc .container { max-width:100%!important; padding:0 }). */
.brand-seq {
  padding-top: clamp(36px, 6vw, 80px);
}
.brand-shot {
  margin: 0 0 clamp(48px, 8vw, 100px);   /* edge-to-edge: no side margin */
  width: 100%;
}
.brand-shot:last-child { margin-bottom: 0; }
.brand-shot img,
.brand-shot picture { width: 100%; display: block; }
.brand-shot figcaption {
  text-align: center;
  margin: clamp(24px, 3.5vw, 44px) var(--gutter) 0;
}
.brand-word {
  font-family: var(--serif-head);
  color: var(--text-sub);            /* rgba(0,0,0,0.4) — matches tc-532 */
  font-weight: 500;
  letter-spacing: 2px;               /* h3-style */
  font-size: clamp(20px, 2.6vw, 28px);
  text-transform: none;
}
.brand-phrase {
  color: var(--text);                /* body 0.5 */
  /* same size as the section headings (.feature-title) */
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.7;
  font-size: clamp(19px, 2.6vw, 23px);
}

/* ---------- Feature rows (left text / right photo, unified) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.feature__text { max-width: 460px; }
.feature__body { margin: 0; }
.feature__media img { width: 100%; border-radius: 2px; }

/* intro feature (problem/solution) shares the same grid */

/* ---------- Immersive full-bleed image ---------- */
.fullbleed { width: 100%; }
.fullbleed img { width: 100%; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.carousel__slide { min-width: 100%; }
.carousel__slide img { width: 100%; }
.carousel__dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 20px;
}
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease;
}
.carousel__dots button.is-active { background: rgba(0, 0, 0, 0.45); }
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.5);
  z-index: 2;
}
.carousel__arrow:hover { background: rgba(255,255,255,0.8); }
.carousel__arrow svg { width: 16px; height: 16px; }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

/* ---------- Story (Made in Nagano) ---------- */
.story { text-align: center; }
.story__title { margin-bottom: 28px; }
.story__body {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

/* ---------- Spec table ---------- */
.spec { }
.spec__inner { max-width: 720px; margin: 0 auto; }
.spec__price-label {
  font-family: var(--serif-head);
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--text);
  font-size: 18px;
  margin: 0;
}
.spec__price {
  font-size: clamp(22px, 3.2vw, 28px);
  letter-spacing: 1px;
  color: var(--text);
  margin: 6px 0 36px;
}
.spec__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.9;
}
.spec__table th,
.spec__table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-faint);
}
.spec__table th {
  width: 38%;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 1px;
}
.spec__table td { color: var(--text); }
.spec__note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-sub);
  margin-top: 22px;
}

/* ---------- FAQ ---------- */
.faq__title { margin-bottom: 36px; text-align: center; }
.faq__list { margin: 0; }
.faq__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-faint);
}
.faq__item:first-child { border-top: 1px solid var(--line-faint); }
.faq__item dt {
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-strong);
  margin-bottom: 12px;
}
.faq__item dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- Accessibility: visually hidden (kept for screen readers / SEO) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif-head);
  letter-spacing: 2px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 16px 40px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.28); }
.btn--primary {
  background: rgba(0,0,0,0.72);
  color: #fff;
  border-color: rgba(0,0,0,0.72);
}
.btn--primary:hover { background: rgba(0,0,0,0.85); color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; }
.center { text-align: center; }

/* ---------- Logo mark ----------
   Original: tnlogo2 in a 1140 container, col-lg-6 (~558px), centred. */
.logomark { display: inline-block; width: 100%; max-width: 558px; }
.logomark img { width: 100%; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 0 130px;
  border-top: 1px solid var(--line-faint);
}
.footer .label { font-size: 12px; letter-spacing: 2px; }
.footer__credit { font-size: 13px; line-height: 2; color: var(--text-sub); margin-top: 14px; }

/* =========================================================
   Sticky CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Desktop: floating pill bottom-right */
.sticky-cta--desktop {
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px 12px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.sticky-cta--desktop .sc-price {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
}
.sticky-cta--desktop .btn { padding: 12px 30px; }

/* Mobile: fixed bottom bar */
.sticky-cta--mobile {
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
}
.sticky-cta--mobile .sc-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.3;
}
.sticky-cta--mobile .sc-name { font-size: 11px; letter-spacing: 1px; color: var(--text-sub); }
.sticky-cta--mobile .sc-price { font-size: 16px; letter-spacing: 0.5px; color: var(--text); }
.sticky-cta--mobile .btn {
  flex: 1;
  align-self: center;
  padding: 15px 10px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 15px; line-height: 30px; }

  .feature {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  /* photo first, then text — matches the original mobile rhythm */
  .feature__media { order: 1; }
  .feature__text { order: 2; max-width: 100%; }
  .feature__text { padding: 0 4px; }

  .brand-word { font-size: 20px; }

  .sticky-cta--desktop { display: none !important; }
  .sticky-cta--mobile.is-visible { display: flex; }

  .footer { padding-bottom: 110px; }

  .spec__table th { width: 44%; }
}

@media (max-width: 420px) {
  .spec__table { font-size: 14px; }
}
