/*
Theme Name: BlueForest Hirosaki
Theme URI: https://blueforest.jp
Author: BlueForest Project
Author URI: https://blueforest.jp
Description: 弘前城バーチャル観光サイト - マインクラフトで蘇る津軽の名城
Version: 1.0
License: All Rights Reserved
Tags: japanese, tourism, hirosaki, castle, minecraft
*/

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── VARIABLES ─── */
:root {
  --ink:           #1a1f2e;
  --ink-mid:       #2d3348;
  --sakura:        #e8a0b0;
  --sakura-light:  #f5d5dd;
  --sakura-deep:   #c4687a;
  --washi:         #f7f3ee;
  --washi-dark:    #ede6dc;
  --gold:          #c9a84c;
  --text:          #2a2a2a;
  --text-light:    #6b6b6b;
}

/* ─── BASE ─── */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--washi);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── SAKURA CANVAS ─── */
#sakura-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(26,31,46,0.92);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  color: var(--sakura-light);
  letter-spacing: 0.12em;
}
.nav-logo span {
  color: var(--gold);
  font-size: 0.75rem;
  display: block;
  letter-spacing: 0.2em;
  margin-top: 2px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul a {
  text-decoration: none;
  color: rgba(247,243,238,0.75);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}
nav ul a:hover { color: var(--sakura); }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(232,160,176,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    linear-gradient(160deg, #1a1f2e 0%, #0d1018 100%);
}
.castle-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--washi);
  line-height: 1.1;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}
.hero-title em {
  color: var(--sakura);
  font-style: normal;
  display: block;
}
.hero-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  color: rgba(247,243,238,0.6);
  letter-spacing: 0.2em;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.btn-primary {
  padding: 0.85rem 2.2rem;
  background: var(--sakura-deep);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--sakura);
  transform: translateY(-2px);
}
.btn-outline {
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(247,243,238,0.4);
  color: var(--washi);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  transition: border-color 0.3s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--sakura);
  color: var(--sakura);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247,243,238,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(247,243,238,0.4), transparent);
}

/* ─── SECTION BASE ─── */
section { padding: 6rem 3rem; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--sakura-deep);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.section-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-light);
  max-width: 520px;
}

/* ─── ABOUT ─── */
.about {
  background: var(--washi);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-visual {
  position: relative;
  height: 420px;
}
.about-card {
  position: absolute;
  background: var(--ink);
  color: var(--washi);
  padding: 2rem;
  border-left: 3px solid var(--sakura);
}
.about-card.main {
  width: 75%;
  top: 0; right: 0;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, var(--ink) 60%, var(--ink-mid) 100%);
}
.about-card.main .castle-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4rem;
  color: var(--sakura-light);
  margin-bottom: 0.5rem;
}
.about-card.main p {
  font-size: 0.8rem;
  color: rgba(247,243,238,0.5);
  letter-spacing: 0.1em;
}
.about-card.sub {
  width: 55%;
  bottom: 0; left: 0;
  background: var(--sakura-deep);
  padding: 1.5rem;
}
.about-card.sub .stat-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 2.5rem;
  color: white;
  line-height: 1;
}
.about-card.sub .stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}

/* ─── SPOTS ─── */
.spots-section {
  background: var(--ink);
  color: var(--washi);
}
.spots-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
}
.spots-header .section-title { color: var(--washi); }
.spots-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.05);
}
.spot-card {
  background: var(--ink-mid);
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
  cursor: default;
}
.spot-card:hover { background: #303757; }
.spot-icon { font-size: 2rem; margin-bottom: 1.2rem; }
.spot-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  color: var(--sakura-light);
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}
.spot-desc {
  font-size: 0.83rem;
  line-height: 1.8;
  color: rgba(247,243,238,0.55);
}
.spot-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.2rem 0.6rem;
}

/* ─── VIRTUAL TOUR ─── */
.vtour-section { background: var(--washi-dark); }
.vtour-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.vtour-screen {
  background: var(--ink);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.vtour-screen-inner {
  text-align: center;
  color: rgba(247,243,238,0.4);
}
.mc-icon { font-size: 3rem; margin-bottom: 1rem; }
.vtour-screen-inner p { font-size: 0.8rem; letter-spacing: 0.2em; }
.vtour-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,160,176,0.08) 0%, transparent 70%);
}
.vtour-connect {
  background: rgba(26,31,46,0.06);
  border: 1px solid rgba(26,31,46,0.1);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.vtour-connect h4 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.connect-addr {
  font-family: 'Courier New', monospace;
  background: var(--ink);
  color: var(--sakura-light);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.copy-btn {
  background: none;
  border: 1px solid rgba(247,243,238,0.3);
  color: rgba(247,243,238,0.6);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}
.copy-btn:hover {
  border-color: var(--sakura);
  color: var(--sakura);
}
.connect-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  line-height: 1.7;
}
.device-badges {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.device-badge {
  font-size: 0.75rem;
  background: var(--ink);
  color: rgba(247,243,238,0.6);
  padding: 0.4rem 0.8rem;
  letter-spacing: 0.1em;
}

/* ─── SEASONS ─── */
.seasons-section { background: var(--washi); }
.seasons-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.seasons-header p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}
.seasons-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.season-item {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--washi-dark);
  text-align: center;
}
.season-item:last-child { border-right: none; }
.season-kanji {
  font-family: 'Shippori Mincho', serif;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.season-item:nth-child(1) .season-kanji { color: var(--sakura-deep); }
.season-item:nth-child(2) .season-kanji { color: #4a8c6a; }
.season-item:nth-child(3) .season-kanji { color: #c4852a; }
.season-item:nth-child(4) .season-kanji { color: #5b7fa8; }
.season-name {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.season-desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: rgba(247,243,238,0.45);
  padding: 3rem;
  text-align: center;
}
.footer-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  color: var(--sakura-light);
  margin-bottom: 0.5rem;
}
footer p { font-size: 0.75rem; letter-spacing: 0.15em; margin-bottom: 0.3rem; }
.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.footer-links a {
  color: rgba(247,243,238,0.4);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--sakura); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  section { padding: 4rem 1.5rem; }
  .about { grid-template-columns: 1fr; }
  .about-visual { height: 260px; }
  .spots-grid { grid-template-columns: 1fr; }
  .vtour-inner { grid-template-columns: 1fr; }
  .seasons-grid { grid-template-columns: repeat(2, 1fr); }
  .castle-silhouette { width: 320px; }
}
