/* ==========================================================================
   Home Page Specific Styles (index.html)
   Shared styles (nav, footer, buttons, section labels, reveal, etc.) are in global.css
   ========================================================================== */

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    var(--color-bg);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.2), transparent);
}
.hero-line:nth-child(1) { left: 10%; }
.hero-line:nth-child(2) { left: 50%; }
.hero-line:nth-child(3) { left: 90%; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 80px) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text {
  animation: fadeUp 1.2s var(--ease-out) 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideRight {
  from { width: 0; }
  to { width: 80px; }
}

.hero-label {
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-label::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--color-gold);
  animation: slideRight 1s var(--ease-out) 0.6s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-cream);
  margin-bottom: 12px;
}
.hero-title em {
  font-style: italic;
  color: var(--color-gold);
  font-weight: 300;
}

.hero-subtitle {
  font-family: var(--font-serif-jp);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--color-cream-dim);
  margin-bottom: 36px;
  line-height: 2.1;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: scaleIn 1.4s var(--ease-out) 0.5s both;
}
.hero-image-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  z-index: 2;
  pointer-events: none;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}
.hero-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  z-index: -1;
}

/* ===== About ===== */
.about {
  background: var(--color-bg-warm);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.2), transparent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-text p {
  margin-top: 24px;
  font-family: var(--font-serif-jp);
  font-size: 1rem;
  color: var(--color-text-dim);
  line-height: 2.2;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.about-image-wrapper {
  position: relative;
}
.about-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  max-height: 560px;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.9);
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), transparent);
}
.about-quote {
  position: absolute;
  bottom: -30px;
  left: -20px;
  right: 40px;
  background: var(--color-surface);
  border-left: 2px solid var(--color-gold);
  padding: 24px 28px;
  font-family: var(--font-serif-jp);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-cream-dim);
  line-height: 1.8;
}

/* ===== Lessons ===== */
.lessons {
  background: var(--color-bg);
}
.lessons-header {
  text-align: center;
  margin-bottom: 60px;
}
.lessons-header .section-label {
  justify-content: center;
}
.lessons-header .section-label::before {
  display: none;
}
.lessons-header .section-desc {
  margin: 0 auto;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.lesson-card {
  background: var(--color-surface);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  cursor: default;
}
.lesson-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.lesson-card:hover::before {
  transform: scaleX(1);
}
.lesson-card:hover {
  background: var(--color-surface-light);
  transform: translateY(-4px);
}

.lesson-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-gold);
  font-size: 1.6rem;
}
.lesson-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-cream);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.lesson-card p {
  font-size: 0.92rem;
  color: var(--color-text-dim);
  line-height: 1.9;
}
.lesson-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 4px 12px;
}

/* ===== Features ===== */
.features {
  background: var(--color-bg-warm);
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.2), transparent);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.feature-item {
  text-align: center;
}
.feature-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}
.feature-item h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-cream);
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 0.88rem;
  color: var(--color-text-dim);
  line-height: 1.8;
}

/* ===== Schedule ===== */
.schedule {
  background: var(--color-bg);
}
.schedule-header {
  margin-bottom: 48px;
}

/* ===== Week Calendar ===== */
.week-calendar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.week-day {
  background: var(--color-surface);
  min-height: 120px;
}
.week-day-label {
  padding: 12px 16px 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.week-day-classes {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.week-class {
  padding: 10px 12px;
  background: rgba(10, 10, 10, 0.3);
  border-left: 2px solid rgba(201, 168, 76, 0.25);
  transition: border-color 0.3s var(--ease-out);
}
.week-class:hover {
  border-left-color: var(--color-gold);
}
.week-class-time {
  font-size: 0.78rem;
  color: var(--color-gold-dim);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.week-class-name {
  font-size: 0.9rem;
  color: var(--color-cream);
  font-weight: 400;
  line-height: 1.4;
}
.week-class-price {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}
.week-class--none {
  text-align: center;
  color: var(--color-text-dim);
  opacity: 0.3;
  font-size: 0.85rem;
  padding: 20px;
  background: none;
  border-left: none;
}
.week-day--empty {
  opacity: 0.5;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th,
.schedule-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  font-size: 0.88rem;
}
.schedule-table th {
  font-weight: 500;
  color: var(--color-gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.schedule-table td {
  color: var(--color-text-dim);
}
.schedule-table td:first-child {
  color: var(--color-cream);
  font-weight: 400;
}
.schedule-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.1);
  color: var(--color-gold);
  font-size: 0.7rem;
  padding: 3px 10px;
  letter-spacing: 0.08em;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    var(--color-bg-warm);
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-content .section-label {
  justify-content: center;
}
.cta-content .section-label::before {
  display: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  color: var(--color-cream);
  margin-bottom: 16px;
}
.cta-title em {
  font-style: italic;
  color: var(--color-gold);
}
.cta-desc {
  font-size: 1rem;
  color: var(--color-text-dim);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 2;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-info {
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--color-text-dim);
}
.cta-info a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 400;
}

/* ===== Access ===== */
.access {
  background: var(--color-bg);
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.access-info {
  margin-top: 32px;
}
.access-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}
.access-item-label {
  flex: 0 0 80px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-dim);
  padding-top: 2px;
}
.access-item-value {
  font-size: 1rem;
  color: var(--color-text-dim);
  line-height: 1.8;
}
.access-map {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  overflow: hidden;
  position: relative;
}
.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== News Preview ===== */
.news-preview {
  background: var(--color-bg);
}
.news-preview-list {
  margin-top: 36px;
}
.news-preview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}
.news-preview-item:first-child {
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}
.news-preview-item:hover {
  padding-left: 12px;
  background: rgba(201, 168, 76, 0.02);
}
.news-preview-date {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-gold-dim);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 100px;
}
.news-preview-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--color-gold);
  flex-shrink: 0;
}
.news-preview-badge--event {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--color-gold-dim);
}
.news-preview-badge--result {
  border-color: rgba(168, 92, 76, 0.3);
  color: var(--color-accent-red);
}
.news-preview-title {
  flex: 1;
  font-size: 1rem;
  color: var(--color-cream);
}
.news-preview-arrow {
  color: var(--color-gold-dim);
  font-size: 0.85rem;
  transition: transform 0.3s;
}
.news-preview-item:hover .news-preview-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .news-preview-item { flex-wrap: wrap; gap: 8px; }
  .news-preview-date { width: auto; }
  .news-preview-arrow { display: none; }
}

/* ===== Responsive (Homepage-specific) ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 400px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { order: -1; }
  .lessons-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: 1fr; }
  .week-calendar { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 100px; }
  .lessons-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about-quote { position: relative; bottom: 0; left: 0; right: 0; margin-top: 20px; }
  .week-calendar { grid-template-columns: repeat(2, 1fr); }
  .week-day--empty { display: none; }

  /* Schedule table → card layout on mobile */
  .schedule-table thead { display: none; }
  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }
  .schedule-table tr {
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  }
  .schedule-table td {
    padding: 4px 0;
    border-bottom: none;
    font-size: 0.85rem;
  }
  .schedule-table td:first-child {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 4px;
  }
  .schedule-table td:nth-child(2) {
    color: var(--color-cream);
    font-weight: 400;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .week-calendar { grid-template-columns: 1fr; }
}
