/* =====================================================
   翔陽習字教室 — メインスタイル
   黒背景・和風デザイン
   ===================================================== */

/* --- リセット & ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a08;
  --dark:       #121210;
  --dark2:      #1c1b18;
  --dark3:      #252420;
  --gold:       #c8a951;
  --gold-light: #e4c97a;
  --red:        #8b1a1a;
  --red-light:  #b52a2a;
  --cream:      #f0ece4;
  --cream-dim:  #c4bfb5;
  --muted:      #7a7264;
  --border:     #2e2c25;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

/* --- コンテナ --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================================================
   ヘッダー / ナビゲーション
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  transition: background 0.4s, box-shadow 0.4s;
}

.site-header.scrolled {
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(200, 169, 81, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  cursor: default;
}

.logo-kanji {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cream-dim);
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* =====================================================
   ヒーローセクション
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(80,50,10,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(139,26,26,0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0f0e0b 0%, #0a0a08 50%, #111009 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(10,10,8,0.7) 85%,
    rgba(10,10,8,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-kana {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--cream);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.05em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}

.hero-title-small {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  color: var(--gold);
  margin: 0 0.1em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
}

.hero-deco-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-btn {
  margin-top: 0.8rem;
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.3s, color 0.3s;
}

.hero-btn:hover {
  background: var(--gold);
  color: var(--black);
}

.hero-vertical-left,
.hero-vertical-right {
  position: absolute;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  font-family: 'Noto Sans JP', sans-serif;
  top: 50%;
  transform: translateY(-50%);
}

.hero-vertical-left { left: 2rem; }
.hero-vertical-right { right: 2rem; }

/* =====================================================
   共通セクションスタイル
   ===================================================== */
.section-label {
  font-size: 0.7rem;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ink-divider {
  padding: 1.5rem 0;
  max-width: 700px;
  margin: 0 auto;
}

/* =====================================================
   イントロセクション
   ===================================================== */
.intro {
  padding: 6rem 0;
  background: var(--dark);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
}

.intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.9);
}

.intro-img-deco {
  position: absolute;
  top: -12px; left: -12px;
  right: 12px; bottom: 12px;
  border: 1px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
}

.intro-text { padding: 2rem 0; }

.intro-text .section-title { margin-bottom: 1.8rem; }

.intro-body {
  font-size: 0.95rem;
  color: var(--cream-dim);
  margin-bottom: 1.2rem;
  line-height: 2;
}

/* =====================================================
   朱印・ハンコ装飾
   ===================================================== */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--red-light);
  color: var(--red-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  letter-spacing: 0;
  transform: rotate(-5deg);
  opacity: 0.85;
}

.seal--large {
  width: 70px;
  height: 70px;
  font-size: 2rem;
  transform: rotate(-8deg);
}

/* =====================================================
   特徴セクション
   ===================================================== */
.features {
  padding: 7rem 0;
  background: var(--black);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--gold), var(--border), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.feature-icon {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.feature-icon img {
  transition: transform 0.5s;
  filter: brightness(0.6) saturate(0.7);
}

.feature-card:hover .feature-icon img {
  transform: scale(1.05);
  filter: brightness(0.7) saturate(0.9);
}

.feature-num {
  font-size: 0.65rem;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 1.2rem 1.4rem 0.3rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--cream);
  padding: 0 1.4rem 0.8rem;
}

.feature-body {
  font-size: 0.8rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--cream-dim);
  line-height: 1.85;
  padding: 0 1.4rem 1.5rem;
}

/* =====================================================
   ギャラリーセクション
   ===================================================== */
.gallery {
  background: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  transition: transform 0.6s;
  filter: brightness(0.65) saturate(0.75);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.8) saturate(0.9);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--cream);
  font-family: 'Noto Sans JP', sans-serif;
}

/* =====================================================
   師範紹介セクション
   ===================================================== */
.teacher {
  padding: 7rem 0;
  background: var(--dark2);
  position: relative;
  overflow: hidden;
}

.teacher::before {
  content: '書';
  position: absolute;
  font-size: 30vw;
  font-weight: 900;
  color: var(--border);
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
  opacity: 0.4;
}

.teacher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.teacher-years {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.teacher-years strong {
  font-size: 1.4rem;
  margin: 0 0.2em;
}

.teacher-body {
  font-size: 0.95rem;
  color: var(--cream-dim);
  margin-bottom: 1.2rem;
  line-height: 2;
}

.teacher-quote {
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  border-left: 2px solid var(--gold);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--cream-dim);
  line-height: 2;
  background: rgba(200,169,81,0.04);
}

.teacher-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
}

.teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.8) sepia(0.15);
}

.teacher-img-frame {
  position: absolute;
  top: 14px; left: 14px;
  right: -14px; bottom: -14px;
  border: 1px solid var(--gold);
  opacity: 0.35;
  pointer-events: none;
}

.teacher-seal-wrap {
  position: absolute;
  bottom: -12px;
  right: -20px;
}

/* =====================================================
   開催情報セクション
   ===================================================== */
.schedule {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.schedule-bg {
  position: absolute;
  inset: 0;
}

.schedule-img {
  object-position: center 40%;
  filter: brightness(0.25) saturate(0.6);
}

.schedule-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,8,0.7) 0%,
    rgba(10,10,8,0.4) 100%
  );
}

.schedule-content {
  position: relative;
  z-index: 2;
}

.section-header--light .section-title {
  color: var(--cream);
}

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.schedule-card {
  background: rgba(18, 18, 16, 0.85);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s;
}

.schedule-card:hover { border-color: var(--gold); }

.schedule-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  filter: grayscale(0.3);
}

.schedule-card h3 {
  font-size: 0.75rem;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.schedule-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.schedule-note {
  font-size: 0.72rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--muted);
  line-height: 1.6;
}

.schedule-note-box {
  text-align: center;
  padding: 1.2rem 2rem;
  border: 1px solid rgba(200,169,81,0.25);
  font-size: 0.82rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--cream-dim);
  background: rgba(10,10,8,0.5);
  backdrop-filter: blur(4px);
  max-width: 500px;
  margin: 0 auto;
  letter-spacing: 0.05em;
}

/* =====================================================
   フッター
   ===================================================== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding-top: 0;
}

.footer-deco-top {
  padding: 1rem 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.footer-info {
  text-align: right;
  font-size: 0.78rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--muted);
  line-height: 2;
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* =====================================================
   フェードインアニメーション
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.feature-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.feature-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.feature-card.fade-in:nth-child(4) { transition-delay: 0.3s; }

.schedule-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.schedule-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.schedule-card.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* =====================================================
   レスポンシブ（スマートフォン対応）
   ===================================================== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-cards { grid-template-columns: repeat(2, 1fr); }
  .intro-grid,
  .teacher-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-image-wrap,
  .teacher-image-wrap { aspect-ratio: 16/9; }
  .teacher-image-wrap { order: -1; }
  .teacher::before { display: none; }
  .nav-links { display: none; }
  .hero-vertical-left,
  .hero-vertical-right { display: none; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
  .schedule-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .hero-title { font-size: 3rem; }
}
