/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --color-blue: #0051e0;
  --color-yellow: #ffe100;
  --color-yellow-light: rgba(255, 225, 0, 0.85);
  --color-charcoal: #231815;
  --color-white: #ffffff;
  --color-bg-desktop: #f5f6f8;

  --font-playful: 'Zen Maru Gothic', sans-serif;
  --font-english: 'Outfit', sans-serif;
  --font-avenir: "avenir-next-lt-pro", sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);


}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  background-color: var(--color-bg-desktop);
  color: var(--color-charcoal);
  font-family: var(--font-playful);
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

@media (min-width: 820px) {
  br.sp {
    display: none;
  }
}

/* ==========================================================================
   INTRO ANIMATION (LOAD SEQUENCE)
   ========================================================================== */
.intro-logo-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: none;
  z-index: 1200;
}

.intro-logo-layer img {
  width: min(70vw, 406px);
  height: auto;
  opacity: 0;
  transform: translate(0, 0) scale(1);
  transform-origin: center center;
  transition: opacity 2s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.intro-fade-target {
  transition: opacity 0.8s ease;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .intro-logo-layer {
  display: grid;
}

body.intro-active.intro-logo-visible .intro-logo-layer img {
  opacity: 1;
}

body.intro-active:not(.intro-ready) .intro-fade-target,
body.intro-active:not(.intro-ready) .hero-header-logo-container {
  opacity: 0;
}

body.intro-active:not(.intro-ready) .sns-capsule,
body.intro-active:not(.intro-ready) .sticky-header,
body.intro-active:not(.intro-ready) .hero-illustration-wrapper,
body.intro-active:not(.intro-ready) .sauna-ikitai-hero-logo-container,
body.intro-active:not(.intro-ready) .comic-strip-container,
body.intro-active:not(.intro-ready) .dot-separator,
body.intro-active:not(.intro-ready) #about,
body.intro-active:not(.intro-ready) #collaboration,
body.intro-active:not(.intro-ready) #topics,
body.intro-active:not(.intro-ready) .footer-container {
  opacity: 0;
}

body.intro-moving .intro-logo-layer img {
  transform: translate(var(--intro-dx, 0), var(--intro-dy, 0)) scale(var(--intro-scale, 1));
}

body.intro-logo-fading .intro-logo-layer img {
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.intro-ready .hero-header-logo-container {
  opacity: 1;
}

body.intro-ready .intro-fade-target {
  opacity: 1;
}

body.intro-ready .intro-logo-layer {
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.intro-done {
  overflow: auto;
}

@media (prefers-reduced-motion: reduce) {

  .intro-logo-layer,
  .intro-logo-layer img,
  .intro-fade-target,
  body.intro-ready .intro-logo-layer {
    transition: none;
  }
}

/* ==========================================================================
   LAYOUT STRUCTURE (SMARTPHONE MOCK WRAPPER)
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: 660.5px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--color-white);
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 780px) {
  .site-container {
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
  }
}

/* ==========================================================================
   STICKY HEADER & NAV TABS
   ========================================================================== */
.sticky-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-tabs {
  display: flex;
  width: 100%;
}

.nav-tab {
  flex: 1;
  text-decoration: none;
  text-align: center;
  padding: 12px min(10px, 3vw);
  font-family: var(--font-avenir);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--color-blue);
  background-color: #EFEFEF;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 10px 10px 0px 0px;
}

.nav-tab:hover {
  background-color: rgba(0, 81, 224, 0.05);
}

.nav-tab.active {
  background-color: var(--color-blue);
  color: var(--color-white);
}

/* ==========================================================================
   HERO / TOP SECTION (SECTION 1)
   ========================================================================== */
.hero-header-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 5vh auto;
  margin-top: 8vh;
}

.hero-header-title {
  font-family: var(--font-playful);
  font-weight: 900;
  font-size: clamp(22px, 3vmin, 32px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  text-align: center;
}

.hero-illustration-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: auto;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.snoopy-hero-art {
  width: 75%;
  /*animation: floatHero 4s ease-in-out infinite;*/
  display: grid;
  place-items: center;
}

.snoopy-hero-art img {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 343px;
  height: auto;
  opacity: 0;
  will-change: opacity;
  animation: heroPairFade 20s infinite ease-in-out;
}

.snoopy-hero-art img:nth-child(2) {
  animation-delay: 10s;
}

/* Float keyframe animation */
@keyframes floatHero {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.vertical-message {
  width: 25%;
  height: auto;
  display: grid;
  place-items: start center;
  position: relative;
}

.vertical-text {
  grid-area: 1 / 1;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-playful);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-charcoal);
  line-height: 1.8;
  letter-spacing: 0.15em;
  opacity: 0;
  will-change: opacity;
  animation: heroPairFade 20s infinite ease-in-out;
}

.vertical-text:nth-child(2) {
  animation-delay: 10s;
}

.hero-message-mobile {
  display: none;
}

@media (min-width: 820px) {
  .hero-illustration-wrapper {
    max-width: 640px;
    min-height: 340px;
    justify-content: center;
    padding: 0 18px;
  }

  .snoopy-hero-art {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .snoopy-hero-art img {
    max-width: 320px;
  }

  .vertical-message {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
  }

  .vertical-text {
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.12em;
  }
}

@keyframes heroPairFade {

  0%,
  8% {
    opacity: 0;
    visibility: hidden;
  }

  12%,
  54% {
    opacity: 1;
    visibility: visible;
  }

  58%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {

  .snoopy-hero-art img,
  .vertical-text,
  .hero-message-mobile-text {
    animation: none;
    opacity: 0;
  }

  .snoopy-hero-art img:first-child,
  .vertical-text:first-child,
  .hero-message-mobile-text:first-child {
    opacity: 1;
    visibility: visible;
  }

  .comic-strip-scroll {
    animation: none;
    opacity: 0;
    visibility: hidden;
  }

  .comic-strip-scroll:first-child {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 819px) {
  .hero-illustration-wrapper {
    justify-content: center;
    padding: 0 16px;
  }

  .snoopy-hero-art {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .vertical-message {
    display: none;
  }

  .sauna-ikitai-hero-logo-container {
    padding-bottom: 20px;
  }

  .hero-message-mobile {
    display: grid;
    width: min(92%, 520px);
    margin: 0 auto 28px;
    text-align: center;
    min-height: 5.6em;
  }

  .hero-message-mobile-text {
    grid-area: 1 / 1;
    font-family: var(--font-playful);
    font-weight: 700;
    font-size: clamp(13px, 3.8vmin, 16px);
    line-height: 1.8;
    letter-spacing: 0.03em;
    line-break: strict;
    text-wrap: pretty;
    color: var(--color-charcoal);
    opacity: 0;
    visibility: hidden;
    animation: heroPairFade 20s infinite ease-in-out;
  }

  .hero-message-mobile-text:nth-child(2) {
    animation-delay: 10s;
  }
}

.sauna-ikitai-hero-logo-container {
  display: flex;
  justify-content: center;
  padding: 20px 20px 40px;
}

.sauna-logo {
  width: 100%;
  max-width: 207px;
  height: 164px;
  display: block;
  transition: var(--transition-spring);
}

.sauna-logo:hover {
  transform: scale(1.03);
}

/* Comic Strip SVG */
.comic-strip-container {
  padding: 0 16px 40px;
  max-width: 612px;
  margin: 0 auto;
  margin-top: 4svh;
  width: 100%;
  display: grid;
  place-items: center;
}

.comic-strip-scroll {
  grid-area: 1 / 1;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background-color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  animation: heroPairFade 20s infinite ease-in-out;
}

.comic-strip-scroll:nth-child(2) {
  animation-delay: 10s;
}

.comic-strip-img {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 150%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.comic-strip-img:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FLOATING SNS CAPSULE
   ========================================================================== */
.sns-capsule {
  background-color: var(--color-yellow);
  padding: 9px 5px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.sns-capsule a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  position: relative;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition-spring);
}

.sns-capsule a svg,
.sns-capsule a img {
  width: 18px;
  height: 18px;
}

.sns-capsule a img {
  display: block;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.sns-capsule a svg {
  fill: currentColor;
}

.sns-capsule a:hover {
  transform: scale(1.15);
  background-color: var(--color-blue);
}

/* Fixed positioning on Desktop, Floating on Mobile */
@media (min-width: 820px) {
  .sns-capsule {
    position: fixed;
    left: calc(50% - 390px);
    /* Positioned to the left of the main mock frame */
    top: 220px;
  }

  #sns-x:hover img,
  #sns-instagram:hover img {
    filter: brightness(0) invert(1);
  }
}

@media (max-width: 819px) {
  .sns-capsule {
    position: fixed;
    bottom: 24px;
    right: 24px;
    flex-direction: row;
    padding: 5px 8px;
    gap: 2px;
  }
}

/* ==========================================================================
   COMMON COMPONENT STYLES (DIVIDER, TITLES)
   ========================================================================== */
.dot-separator {
  height: 7px;
  width: 80%;
  max-width: 500px;
  margin: 40px auto;
  background-image: radial-gradient(circle, var(--color-yellow) 3.5px, transparent 3.5px);
  background-size: 20.36px 7px;
  background-repeat: repeat-x;
}

.content-padding {
  padding: 20px 12px 40px;
}

.section-title {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 32px;
  text-align: center;
  color: var(--color-blue);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  color: var(--color-blue);
  letter-spacing: 0.05em;
  margin-top: -12px;
  margin-bottom: 24px;
}

/* ==========================================================================
   ABOUT SECTION (SECTION 2)
   ========================================================================== */
.concept-body {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 28px;
}

.concept-lead {
  font-weight: 900;
  font-size: 17px;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.concept-body p {
  color: var(--color-charcoal);
  font-size: clamp(14px, 3.5vmin, 18px);
  line-height: 1.8;
  margin-bottom: 16px;
}

.concept-body p:last-child {
  margin-bottom: 0;
}

.hashtag-container {
  display: flex;
  justify-content: center;
}

.hashtag {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-playful);
  font-weight: 900;
  font-size: 15px;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
  border-radius: 25px;
  padding: 8px 24px;
  transition: var(--transition-smooth);
}

.hashtag:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(0, 81, 224, 0.15);
}

/* ==========================================================================
   COLLABORATION SECTION (SECTION 3)
   ========================================================================== */
.collab-header {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.collab-logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sauna-small-logo {
  height: 70px;
  width: auto;
}

.collab-meets {
  font-family: var(--font-english);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-blue);
  font-style: italic;
}

.collab-snoopy {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 20px;
  color: var(--color-blue);
  letter-spacing: 0.05em;
}

.collab-body {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

.collab-lead {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.6vmin, 2rem);
  text-align: center;
  color: var(--color-blue);
  letter-spacing: 0.05em;
  margin: 40px auto;
}

.collab-lead span {
  font-family: var(--font-playful);
  font-weight: 900;
  font-size: clamp(1.2rem, 3.2vmin, 1.6rem);
  color: var(--color-white);
  display: inline-block;
  background-color: var(--color-blue);
  border-radius: 20px;
  padding: 15px 30px;
  margin-top: 12px;
  line-height: 1.4;
  text-align: center;
}

.collab-body p {
  color: var(--color-charcoal);
  font-size: clamp(13px, 3.3vmin, 15px);
  line-height: 1.8;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 3svh auto;
}

.collab-body h3 {
  margin-top: 50px;
  color: var(--color-blue);
}

.original-book {
  width: 70%;
  margin: 30px auto;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.2));
}

.facility-list-wrapper {
  background-color: rgba(0, 81, 224, 0.02);
  border: 1px dashed rgba(0, 81, 224, 0.2);
  border-radius: 12px;
  padding: 24px 12px;
  max-width: 520px;
  margin: 0 auto 60px;
}

.facility-title {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 14px;
  color: var(--color-blue);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.05em;
}

.facility-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.facility-list li {
  font-family: var(--font-playful);
  font-weight: 700;
  font-size: clamp(13px, 3.4vmin, 17px);
  color: var(--color-charcoal);
  position: relative;
  padding-left: 18px;
}

.facility-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-yellow);
  border-radius: 50%;
  border: 1px solid var(--color-blue);
}

.collab-button-container {
  display: flex;
  justify-content: center;
}

.sauna-button {
  /* background-color: var(--color-blue); */
  padding: 20px 30px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-spring);
  box-shadow: 0 4px 15px rgba(0, 81, 224, 0.15);
}

.sauna-button img {
  height: 10svh;
  width: auto;
  /* filter: brightness(0) invert(1); */
  /* Turns blue SVG white */
}

.sauna-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 81, 224, 0.3);
}

/* ==========================================================================
   TOPICS SECTION (SECTION 4)
   ========================================================================== */
.topics-cards-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
  margin: 0 auto;
}

.topic-card {
  background-color: var(--color-yellow-light);
  border-radius: 15px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(255, 225, 0, 0.1);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.topic-card:hover {
  transform: translateY(-5px);
  background-color: var(--color-yellow);
  box-shadow: 0 10px 25px rgba(255, 225, 0, 0.25);
}

.card-title {
  font-family: var(--font-playful);
  font-weight: 900;
  font-size: 18px;
  color: var(--color-blue);
  text-align: center;
  margin-bottom: 12px;
}

.card-text {
  font-family: var(--font-playful);
}

.card-lead {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-charcoal);
  margin-bottom: 10px;
  text-align: center;
}

.card-text p:not(.card-lead) {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-charcoal);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-container {
  background-color: var(--color-white);
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  width: 50%;
  margin-bottom: 50px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.peanuts-footer-face {
  width: 60%;
}

.copyright {
  font-family: var(--font-english);
  font-size: 11px;
  color: #777777;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   ANIMATIONS / INTERACTIVITY EFFECTS (JS TRIGGERED)
   ========================================================================== */
.animate-panel {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-panel.fade-in {
  opacity: 1;
  transform: translateY(0);
}