/* ========================================
   RanD - VALORANT コミュニティチーム 公式サイト
   VALORANT 風タクティカル・モダンデザイン
   ======================================== */

:root {
  --bg-deep: #0a0e14;
  --bg-card: #0f1419;
  --bg-elevated: #151b23;
  --accent: #ff4655;
  --accent-dim: rgba(255, 70, 85, 0.18);
  --accent-dark: #e63946;
  --accent-secondary: #ff6b7a;
  --accent-secondary-dim: rgba(255, 107, 122, 0.2);
  --text-primary: #ece8e1;
  --text-secondary: #a8a29e;
  --text-muted: #6b6560;
  --border-subtle: rgba(255, 70, 85, 0.15);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --space-section: clamp(4rem, 10vw, 6rem);
  --radius: 4px;
  --radius-lg: 8px;
  --accent-line: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----- 背景グリッド ----- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 70, 85, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 70, 85, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ----- ヘッダー ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 20px var(--accent-dim);
}

.logo:hover {
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 70, 85, 0.5);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem 2rem;
    background: rgba(10, 14, 20, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ----- メイン ----- */
main {
  position: relative;
  z-index: 1;
  padding-top: 72px;
}

/* ----- ヒーロー ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 80vw;
  max-width: 500px;
  height: 80vw;
  max-height: 500px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  margin: 0;
  position: relative;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-shadow:
    0 0 40px var(--accent-dim),
    0 0 80px rgba(255, 70, 85, 0.12);
}

.hero-title-sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-top: 0.5rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin: 2rem 0 2.5rem;
  font-weight: 300;
}

.hero-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-decoration: none;
  padding: 0.75rem 2rem;
  margin-top: 2.5rem;
  border: 2px solid var(--accent);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  background: var(--accent-dim);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-dim);
}

/* ----- セクション共通 ----- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-section) 2rem;
}

/* 見出し：下線アクセント */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 2rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.section-title-en {
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-right: 0.25rem;
}

/* ----- RanDとは（カード：左線） ----- */
.section-about .about-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.about-content p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
}

.about-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  color: var(--accent);
  font-size: 0.7rem;
}

/* ----- メンバー ----- */
.section-members {
  background: linear-gradient(180deg, transparent 0%, var(--accent-dim) 15%, transparent 35%);
  background-size: 100% 100%;
}

.team-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.team-tab {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.team-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 70, 85, 0.35);
}

.team-tab.is-active {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-dim);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.members-error,
.members-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

.members-recruitment {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 2px dashed var(--border-subtle);
  border-radius: 12px;
}

.members-recruitment-text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.members-recruitment-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.members-recruitment-link:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
}

/* メンバーカード：丸角・シャドウ・上アクセント（他カードと差別化） */
.member-card {
  min-width: 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.member-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--accent);
  border-color: rgba(255, 70, 85, 0.3);
  box-shadow: 0 8px 24px rgba(255, 70, 85, 0.2);
}

.member-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent-secondary-dim));
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.member-avatar-icon {
  width: 32px;
  height: 32px;
}

.member-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.member-role {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.member-comment {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.member-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.member-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.member-x:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.member-x-icon {
  width: 18px;
  height: 18px;
}

.member-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ----- 活動内容 ----- */
.section-about .activities-timeline {
  margin-top: 2.5rem;
}

.activities-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-subtle);
}

.activity-item {
  position: relative;
  padding-bottom: 2rem;
}

.activity-item:last-child {
  padding-bottom: 0;
}

.activity-marker {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-dim);
}

/* カード：上線アクセント */
.activity-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.activity-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.activity-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ----- お知らせ ----- */
.section-announcements {
  background: linear-gradient(180deg, transparent 0%, var(--accent-dim) 10%, transparent 25%);
  background-size: 100% 100%;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* カード：枠線＋シャドウ */
.announcement-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.announcement-item:hover {
  border-color: rgba(255, 70, 85, 0.35);
  box-shadow: 0 4px 20px rgba(255, 70, 85, 0.15);
}

.announcement-header {
  margin-bottom: 0.5rem;
}

.announcement-date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.announcement-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.announcement-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.announcement-footer {
  margin: 0;
}

.announcement-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.2s;
}

.announcement-link:hover {
  opacity: 0.85;
}

.announcements-empty,
.announcements-error {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
  margin: 0;
}

/* ----- お問い合わせ ----- */
.contact-inner {
  max-width: 100%;
}

.contact-lead {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* カード：点線左アクセント（募集内容＋SNS統合） */
.contact-conditions {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.contact-info-list {
  margin: 0 0 1.5rem;
}

.contact-info-list dt {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-top: 0.75rem;
}

.contact-info-list dt:first-child {
  margin-top: 0;
}

.contact-info-list dd {
  margin: 0.25rem 0 0;
  padding-left: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-conditions-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.contact-atmosphere p,
.contact-atmosphere ul {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-atmosphere ul {
  padding-left: 1.25rem;
}

.contact-atmosphere li {
  margin-bottom: 0.25rem;
}

.contact-atmosphere li:last-child {
  margin-bottom: 0;
}

.contact-atmosphere p:last-child {
  margin-bottom: 0;
}

.contact-sns {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.contact-sns-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.contact-sns-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.contact-sns-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(255, 70, 85, 0.35);
  transform: scale(1.08);
}

.contact-sns-icon {
  width: 24px;
  height: 24px;
}

/* ----- フッター ----- */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-section);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
