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

:root {
  --color-bg: #fafaf8;
  --color-text: #3a3a3a;
  --color-text-muted: #999;
  --color-accent: #a8b832;
  --color-accent-dark: #8a9828;
  --font-en: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-en);
  font-weight: 300;
  overflow-x: hidden;
}

/* ===== 1. ヒーロー ===== */
.hero {
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-logo {
  width: min(210px, 35vw);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(-60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-logo.logo-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeHint 2s ease infinite;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 48px;
  background: var(--color-text-muted);
  display: block;
  animation: lineDown 2s ease infinite;
}

@keyframes fadeHint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes lineDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== 2. パララックスセクション ===== */
.parallax-section {
  position: relative;
  height: 70svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-image: url('../images/mugennoki.jpg');
  background-size: cover;
  background-position: center top;
  will-change: transform;
}

/* 縦画面ではパララックス背景を表示、imgは非表示 */
@media (orientation: portrait) {
  .parallax-section {
    height: 75svw; /* 画像の縦横比に合わせた高さ（幅×0.71） */
  }

  .parallax-bg {
    display: block;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .parallax-img {
    display: none;
  }
}

/* ランドスケープ：coverで画面いっぱい */
@media (orientation: landscape) {
  .parallax-bg {
    background-size: cover;
  }
}

.parallax-content {
  position: relative;
  z-index: 1;
  padding: 48px 56px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  width: 100%;
}

.game-label {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.game-title {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  font-family: 'Shippori Mincho', serif;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.game-subtitle {
  font-family: var(--font-en);
  font-size: clamp(13px, 2vw, 22px);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.15em;
}

/* ===== 3. SNS ===== */
.sns-section {
  padding: 120px 40px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.sns-list {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

.sns-list li {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sns-icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.sns-item span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== News ===== */
.news-section {
  padding: 120px 40px 120px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.news-inner {
  max-width: 720px;
  margin: 0 auto;
}

.news-heading {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.news-list {
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  align-items: baseline;
}

.news-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.07);
}

.news-date {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.news-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.25s;
}

.news-text:hover {
  color: var(--color-accent);
}

/* ===== 4. Contact ===== */
.contact-section {
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.25s;
}

.contact-item:hover {
  color: var(--color-accent);
}

.contact-icon {
  width: 32px;
  height: 32px;
}

.contact-item span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


/* ===== フッター ===== */
.footer {
  padding: 32px 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ===== フェードイン ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SNS ド派手フライイン ===== */
.sns-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.25s;
}

.sns-item.fade-up {
  opacity: 0;
  transform: translateY(-120px) scale(0.4) rotate(-15deg);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sns-item.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

.sns-item:hover {
  color: var(--color-accent);
}

/* ===== レスポンシブ ===== */

/* ランドスケープ（横向き）対応 */
@media (orientation: landscape) and (max-height: 600px) {
  .parallax-section {
    height: 100svh;
  }
}

@media (max-width: 600px) {
  .hero-logo {
    width: min(280px, 75vw);
  }

  .parallax-content {
    padding: 32px 28px;
  }

  .game-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .sns-section {
    padding: 80px 20px 160px;
  }

  .news-section {
    padding: 80px 20px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-section {
    padding: 80px 20px 100px;
  }
}
