/*
Theme Name: unko
Description: Alternating section layout with hardcoded right-aligned navigation and Flexbox hero.
Author: Gameria Gijutsubu
Version: 2.0
*/

:root {
  --bg: #1c1d21;
  --surface: #26272b;
  --text: #e6e6eb;
  --muted: #a0a0b0;
  --border: #33343a;
  --accent: #6f5ae6;
  --accent2: #b7a8ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28, 29, 33, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.site-brand a { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.global-nav__list { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.global-nav__list a { font-size: 0.95rem; font-weight: 700; }

/* Hero Slider */
.hero-slider {
  position: relative; width: 100%; height: 60vh; min-height: 400px; background: #000;
}
.swiper { width: 100%; height: 100%; }
.swiper-slide img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6);
}

/* Flexbox Centralized Overlay */
.hero-slider__overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  z-index: 10; pointer-events: none;
}
.hero-slider__title {
  color: #ffffff; /* 白文字指定 */
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
}

/* Alternating Sections */
.home-content { padding: 40px 0 80px; }
.home-section { padding: 80px 20px; }
.home-section__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
}

/* Layout modifications for left/right */
.home-section.is-left .home-section__inner { flex-direction: row; }
.home-section.is-right .home-section__inner { flex-direction: row-reverse; }

.home-section__body { flex: 1; }
.home-section__visual {
  flex: 1;
  height: 320px;
  background: linear-gradient(135deg, var(--surface), var(--border));
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}
.home-section__visual img {
  width: 100%; height: 100%; object-fit: cover;
}

.home-section__title {
  font-size: 2.5rem; margin: 0 0 24px; color: var(--accent2);
}
.home-section__text {
  font-size: 1.1rem; color: var(--text); margin-bottom: 32px;
}

.home-link {
  display: inline-block; color: var(--accent); font-weight: 700;
  border-bottom: 2px solid transparent; padding-bottom: 4px;
}
.home-link:hover { border-bottom-color: var(--accent); }

/* Subtle alternating background */
.home-section:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

/* Responsive */
@media (max-width: 768px) {
  .home-section { padding: 60px 20px; }
  .home-section__inner, .home-section.is-right .home-section__inner {
    flex-direction: column; gap: 30px;
  }
  .home-section__title { font-size: 2rem; }
  .home-section__visual { width: 100%; height: 240px; }
}

/* Swiper Color Override */
:root { --swiper-theme-color: #ffffff; }