/* ============================================================
   T/Oチャレンジ2026 — メインスタイルシート
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: #0a0a0a;
  color: #f0e6d0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HERO セクション
   ============================================================ */
.hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, #000 0%, #0a0a0a 50%, #1a1208 100%);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(212, 160, 23, 0.15) 0%, transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a017, transparent);
}

/* ヒーロー背景画像 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/rengeki-or-ichigeki/images/hero.jpg') center / cover no-repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  padding: 0.45rem 1.3rem;
  background: transparent;
  border: 1px solid #d4a017;
  color: #d4a017;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  border-radius: 2px;
  margin-bottom: 1.8rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: #f0e6d0;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  background: linear-gradient(135deg, #d4a017 0%, #ffd700 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #a89878;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  background: linear-gradient(135deg, #d4a017, #ffd700);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid #d4a017;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.hero-btn:hover {
  background: #ffd700;
  border-color: #ffd700;
}

/* ============================================================
   対象期間バナー
   ============================================================ */
.period-notice {
  background: #0a0a0a;
  color: #f0e6d0;
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid #2a1f0a;
  border-bottom: 1px solid #2a1f0a;
}

.period-notice-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.period-notice-label {
  font-size: 0.72rem;
  color: #d4a017;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.period-notice-text {
  font-size: 1rem;
  color: #f0e6d0;
  font-weight: 500;
}

/* ============================================================
   共通セクションスタイル
   ============================================================ */
section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: transparent;
  border: 1px solid #d4a017;
  color: #d4a017;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: #f0e6d0;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1rem;
  color: #8a7a58;
  line-height: 1.85;
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ============================================================
   HOW IT WORKS セクション
   ============================================================ */
.how-section {
  background: #0a0a0a;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.step {
  background: #141414;
  border: 1px solid #2a1f0a;
  border-radius: 4px;
  padding: 2rem 1.8rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.step:hover {
  border-color: #d4a017;
  transform: translateY(-2px);
}

.step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d4a017, #ffd700);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #f0e6d0;
}

.step p {
  color: #8a7a58;
  line-height: 1.75;
  font-size: 0.88rem;
}

/* ============================================================
   TIER SYSTEM セクション
   ============================================================ */
.tiers-section {
  background: #0f0f0f;
  background-image: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tier {
  background: #141414;
  border: 1px solid #2a1f0a;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
}

.tier:hover {
  transform: translateY(-4px);
  border-color: #d4a017;
  box-shadow: 0 16px 48px rgba(212, 160, 23, 0.15);
}

/* ティアアクセントライン */
.tier-accent {
  height: 3px;
}

.tier-1 .tier-accent { background: linear-gradient(90deg, #4a7bb7, #6a9bd7); }
.tier-2 .tier-accent { background: linear-gradient(90deg, #d4a017, #ffd700); }
.tier-3 .tier-accent { background: linear-gradient(90deg, #6a3a8a, #8a5aaa); }
.tier-4 .tier-accent { background: linear-gradient(90deg, #8b2635, #c43850); }

/* ティア画像 */
.tier-img {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  background-color: #0a0a0a;
}

.tier-1 .tier-img { background-image: url('/rengeki-or-ichigeki/images/tier1.jpg'); }
.tier-2 .tier-img { background-image: url('/rengeki-or-ichigeki/images/tier2.jpg'); }
.tier-3 .tier-img { background-image: url('/rengeki-or-ichigeki/images/tier3.jpg'); }
.tier-4 .tier-img { background-image: url('/rengeki-or-ichigeki/images/tier4.jpg'); }

.tier-body {
  padding: 1.8rem;
}

.tier-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.tier-1 .tier-name { color: #6a9bd7; }
.tier-2 .tier-name { color: #ffd700; }
.tier-3 .tier-name { color: #8a5aaa; }
.tier-4 .tier-name { color: #c43850; }

.tier-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f0e6d0;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.tier-cond {
  background: rgba(212, 160, 23, 0.08);
  border-left: 3px solid #d4a017;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.tier-cond-label {
  font-size: 0.68rem;
  color: #a89878;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tier-cond-val {
  font-size: 1.5rem;
  color: #ffd700;
  font-weight: 900;
  margin-top: 0.2rem;
}

.tier-rewards {
  border-top: 1px solid #2a1f0a;
  padding-top: 1.2rem;
}

.tier-rewards-label {
  font-size: 0.68rem;
  color: #a89878;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.reward {
  background: #0a0a0a;
  border: 1px solid #2a1f0a;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 2px;
  font-size: 0.88rem;
  transition: border-color 0.2s, transform 0.2s;
}

.reward-big  { border-left: 3px solid #4a90e2; }
.reward-big:hover  { border-color: #4a90e2; transform: translateX(2px); }
.reward-high { border-left: 3px solid #e74c3c; }
.reward-high:hover { border-color: #e74c3c; transform: translateX(2px); }

.reward-type {
  font-weight: 700;
  color: #d4a017;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-val {
  color: #f0e6d0;
  font-weight: 500;
}

.reward-val-large {
  display: block;
  color: #f0e6d0;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.tier-total {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #2a1f0a;
  text-align: right;
  font-weight: 900;
  color: #ffd700;
  font-size: 1.1rem;
}

/* ============================================================
   RULES セクション
   ============================================================ */
.rules-section {
  background: #0a0a0a;
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.rule {
  background: #141414;
  border: 1px solid #2a1f0a;
  border-radius: 4px;
  padding: 1.6rem;
  transition: border-color 0.2s;
}

.rule:hover {
  border-color: #d4a017;
}

.rule h4 {
  color: #ffd700;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.rule p {
  color: #8a7a58;
  line-height: 1.75;
  font-size: 0.87rem;
}

/* ============================================================
   TERMS & CONDITIONS セクション
   ============================================================ */
.terms-section {
  background: #0f0f0f;
}

.terms {
  background: #141414;
  border: 1px solid #2a1f0a;
  border-radius: 4px;
  padding: 2.2rem;
  max-height: 420px;
  overflow-y: auto;
}

.terms h4 {
  color: #ffd700;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 1.3rem 0 0.5rem;
}

.terms h4:first-child {
  margin-top: 0;
}

.terms p,
.terms li {
  color: #8a7a58;
  line-height: 1.85;
  font-size: 0.86rem;
}

.terms ul,
.terms ol {
  margin-left: 1.5rem;
  margin-top: 0.3rem;
}

.terms ul li,
.terms ol li {
  margin-bottom: 0.3rem;
}

/* ============================================================
   CTA セクション
   ============================================================ */
.cta-section {
  background: #000;
  color: #f0e6d0;
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #2a1f0a;
}

/* CTA 背景画像 */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/rengeki-or-ichigeki/images/cta-bg.jpg') center / cover no-repeat;
  opacity: 0.35;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.9) 100%);
}

.cta-section > * {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.cta-desc {
  color: #a89878;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #d4a017, #ffd700);
  color: #000;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid #d4a017;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.cta-btn:hover {
  background: #ffd700;
  border-color: #ffd700;
}

/* ============================================================
   フッター
   ============================================================ */
footer {
  background: #000;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #6a5a38;
  border-top: 1px solid #2a1f0a;
}

footer p {
  font-size: 0.78rem;
  line-height: 1.75;
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */
@media (max-width: 600px) {
  section {
    padding: 3.5rem 1rem;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .period-notice-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .steps,
  .tiers,
  .rules {
    grid-template-columns: 1fr;
  }
}
