/* ===========================
   TAMARIBA - Official Website
   Color: Beige / Brown / Greige
   =========================== */

:root {
  /* Colors - Warm Greige Palette */
  --c-cream:      #FAF7F2;
  --c-beige:      #F0EBE3;
  --c-greige:     #D5CEC5;
  --c-sand:       #C4B9AC;
  --c-brown-lt:   #A89888;
  --c-brown:      #8B7B6B;
  --c-brown-dk:   #6B5B4B;
  --c-espresso:   #4A3C30;
  --c-charcoal:   #3A3028;
  --c-white:      #FFFFFF;
  --c-accent:     #C1876B;
  --c-accent-dk:  #A86E53;
  --c-line-green: #06C755;
  
  /* Typography */
  --ff-display: 'Cormorant Garamond', 'Georgia', serif;
  --ff-body: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --ff-logo: 'Cormorant Garamond', serif;
  
  /* Spacing */
  --section-py: clamp(80px, 10vw, 140px);
  --container-px: clamp(20px, 5vw, 80px);
  --container-max: 1200px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-espresso);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 185, 172, 0.3);
  transition: all 0.4s var(--ease-out);
}

.header--scrolled {
  box-shadow: 0 2px 30px rgba(74, 60, 48, 0.08);
}

.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header__logo-main {
  font-family: var(--ff-logo);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--c-espresso);
  line-height: 1.1;
}

.header__logo-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-brown);
  font-weight: 300;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--c-brown-dk);
  position: relative;
  padding: 4px 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.3s var(--ease-out);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-white);
  background: var(--c-line-green);
  padding: 8px 20px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.header__nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-espresso);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: 
    linear-gradient(180deg, 
      rgba(74, 60, 48, 0.35) 0%, 
      rgba(74, 60, 48, 0.55) 50%, 
      rgba(58, 48, 40, 0.7) 100%
    ),
    url('images/hero.jpg') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(58, 48, 40, 0.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero__label {
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--ff-body);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(13px, 1.5vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.hero__logo-text {
  font-family: var(--ff-logo);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--ff-body);
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--c-line-green);
  color: var(--c-white);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 15px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-py) 0;
}

.section__label {
  font-family: var(--ff-display);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--ff-body);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--c-charcoal);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  line-height: 1.4;
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__lead {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.8;
  color: var(--c-charcoal);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.about__text p {
  margin-bottom: 20px;
  color: var(--c-brown-dk);
  line-height: 2;
}

.about__images {
  position: relative;
  height: 500px;
}

.about__img-wrapper {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(74, 60, 48, 0.15);
}

.about__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__img-wrapper--1 {
  top: 0;
  left: 0;
  width: 70%;
  height: 65%;
}

.about__img-wrapper--2 {
  bottom: 0;
  right: 0;
  width: 60%;
  height: 50%;
}

/* ===== FEATURES ===== */
.features {
  background: var(--c-beige);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--c-white);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(74, 60, 48, 0.1);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--c-accent);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  color: var(--c-charcoal);
}

.feature-card__desc {
  font-size: 13px;
  color: var(--c-brown);
  line-height: 1.9;
}

/* ===== TARGET ===== */
.target__intro {
  font-size: 15px;
  color: var(--c-brown-dk);
  margin-top: -28px;
  margin-bottom: 40px;
}

.target__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.target-card {
  background: var(--c-white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--c-greige);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.target-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 8px 32px rgba(74, 60, 48, 0.08);
}

.target-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.target-card__number {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--c-accent);
  line-height: 1;
}

.target-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-charcoal);
  letter-spacing: 0.05em;
}

.target-card__list {
  font-size: 13px;
  color: var(--c-brown);
  line-height: 2;
}

.target__note {
  font-size: 14px;
  color: var(--c-accent-dk);
  font-weight: 500;
  text-align: center;
  padding: 16px;
  background: rgba(193, 135, 107, 0.08);
  border-radius: 8px;
}

/* ===== HOW TO USE ===== */
.howto {
  background: var(--c-beige);
}

.howto__steps {
  max-width: 640px;
  margin: 0 auto;
}

.howto__step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.howto__step-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--c-white);
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto__step-number span {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-accent);
}

.howto__step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-charcoal);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.howto__step-content p {
  font-size: 14px;
  color: var(--c-brown);
  line-height: 1.9;
  margin-bottom: 12px;
}

.howto__line-btn {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.howto__line-btn:hover {
  opacity: 0.8;
}

.howto__step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-greige));
  margin-left: 31px;
  margin: 8px 0 8px 31px;
}

/* ===== GALLERY ===== */
.gallery {
  overflow: hidden;
  padding: 40px 0;
  background: var(--c-cream);
}

.gallery__track {
  display: flex;
  gap: 16px;
  animation: galleryScroll 40s linear infinite;
  width: max-content;
}

.gallery__item {
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-320px * 6 - 16px * 6)); }
}

/* ===== RULES ===== */
.rules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rule-item {
  padding: 28px;
  border: 1px solid var(--c-greige);
  border-radius: 12px;
  background: var(--c-white);
  transition: border-color 0.3s ease;
}

.rule-item:hover {
  border-color: var(--c-sand);
}

.rule-item__icon {
  width: 40px;
  height: 40px;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.rule-item__icon svg {
  width: 100%;
  height: 100%;
}

.rule-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-charcoal);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.rule-item p {
  font-size: 13px;
  color: var(--c-brown);
  line-height: 1.9;
}

/* ===== FAQ ===== */
.faq {
  background: var(--c-beige);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq__item:first-child {
  border-top: 1px solid var(--c-greige);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-charcoal);
  text-align: left;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: var(--c-accent-dk);
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-brown-lt);
  transition: transform 0.3s var(--ease-out);
}

.faq__item.active .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq__item.active .faq__answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq__answer p {
  font-size: 14px;
  color: var(--c-brown);
  line-height: 2;
  padding-left: 4px;
}

/* ===== EVENTS ===== */
.events__placeholder {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.events__empty {
  text-align: center;
  padding: 40px;
  background: var(--c-beige);
  border-radius: 12px;
  width: 100%;
}

.events__empty p {
  font-size: 15px;
  color: var(--c-brown);
}

.events__empty-sub {
  font-size: 13px;
  color: var(--c-brown-lt);
  margin-top: 8px;
}

/* Event Card (for CMS use) */
.event-card {
  background: var(--c-white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--c-greige);
  margin-bottom: 16px;
}

.event-card__date {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.event-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-charcoal);
  margin-bottom: 8px;
}

.event-card__desc {
  font-size: 14px;
  color: var(--c-brown);
  line-height: 1.9;
}

/* ===== INSTAGRAM ===== */
.instagram {
  background: var(--c-beige);
}

.instagram__embed {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.instagram__follow-btn {
  display: inline-block;
  text-align: center;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-accent-dk);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.instagram__follow-btn:hover {
  color: var(--c-espresso);
}

/* ===== ACCESS ===== */
.access__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.access__detail h3 {
  font-family: var(--ff-logo);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--c-charcoal);
  margin-bottom: 4px;
}

.access__sub {
  font-size: 12px;
  color: var(--c-brown);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}

.access__dl {
  margin-bottom: 28px;
}

.access__dl dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-top: 20px;
}

.access__dl dt:first-child {
  margin-top: 0;
}

.access__dl dd {
  font-size: 14px;
  color: var(--c-brown-dk);
  margin-top: 4px;
  line-height: 1.8;
}

.access__dl dd a {
  color: var(--c-brown-dk);
  border-bottom: 1px solid var(--c-greige);
}

.access__dl dd a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.access__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(74, 60, 48, 0.1);
}

.access__map iframe {
  display: block;
}

/* ===== CTA ===== */
.cta {
  padding: var(--section-py) 0;
  background: 
    linear-gradient(135deg, rgba(74, 60, 48, 0.92), rgba(107, 91, 75, 0.92)),
    url('images/cta-bg.jpg') center/cover no-repeat;
}

.cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__subtitle {
  font-family: var(--ff-display);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 300;
  font-style: italic;
  color: var(--c-sand);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.cta__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.cta__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--c-charcoal);
  padding: 64px 0 0;
  color: var(--c-sand);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-family: var(--ff-logo);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--c-white);
}

.footer__brand-sub {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--c-brown-lt);
  margin-top: 2px;
}

.footer__brand-company {
  font-size: 12px;
  color: var(--c-brown);
  margin-top: 12px;
}

.footer__links {
  display: flex;
  gap: 48px;
}

.footer__link-group h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-greige);
  margin-bottom: 16px;
}

.footer__link-group a {
  display: block;
  font-size: 13px;
  color: var(--c-brown-lt);
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer__link-group a:hover {
  color: var(--c-white);
}

.footer__social {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-brown-lt);
  transition: all 0.3s ease;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 11px;
  color: var(--c-brown);
  letter-spacing: 0.05em;
}

/* ===== ANIMATIONS ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70vh;
    background: #f8f8ff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    z-index: 999;
    padding: 80px 32px 40px;
    overflow-y: auto;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header__nav.active {
    display: flex;
    transform: translateY(0);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }

  .header__nav-link {
    font-size: 16px;
    padding: 14px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .header__nav-link:last-of-type {
    border-bottom: none;
  }

  .header__nav-cta {
    font-size: 15px;
    padding: 14px 36px;
    margin-top: 20px;
  }

  /* Dark overlay behind menu */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  .header__nav-link {
    font-size: 18px;
    padding: 8px 0;
  }

  .header__nav-cta {
    font-size: 15px;
    padding: 12px 32px;
    margin-top: 8px;
  }

  .header__hamburger {
    display: flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__images {
    height: 360px;
  }

  .target__grid {
    grid-template-columns: 1fr;
  }

  .rules__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .rules__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item {
    width: 260px;
    height: 180px;
  }

  @keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-260px * 6 - 16px * 6)); }
  }

  .howto__step {
    gap: 20px;
  }

  .howto__step-number {
    width: 48px;
    height: 48px;
  }

  .howto__step-number span {
    font-size: 18px;
  }

  .howto__step-connector {
    margin-left: 23px;
  }
}

/* SP breakpoint class */
.sp-only {
  display: none;
}

@media (max-width: 640px) {
  .sp-only {
    display: inline;
  }
}

/* ===== SP 393px optimizations ===== */
@media (max-width: 430px) {
  body {
    font-size: 14px;
  }

  .hero__title {
    font-size: 22px;
    letter-spacing: 0.05em;
  }

  .hero__logo-text {
    font-size: 32px;
    letter-spacing: 0.15em;
  }

  .hero__subtitle {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .hero__label {
    font-size: 10px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section__title {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .about__lead {
    font-size: 17px;
  }

  .about__images {
    height: 280px;
  }

  .cta__title {
    font-size: 20px;
  }

  .cta__subtitle {
    font-size: 13px;
  }

  .cta__text {
    font-size: 13px;
  }

  .access__dl dd {
    font-size: 13px;
  }

  .footer__inner {
    gap: 28px;
  }

  .footer__links {
    gap: 24px;
  }

  .target-card {
    padding: 24px;
  }

  .feature-card {
    padding: 28px 24px;
  }
}
