/*
 * HORNETS FC会員規約 — スタンドアロン用スタイル
 * denki フォルダと同様、terms フォルダ単体で本番デプロイ可能
 */

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

:root {
  --bg: #1A1A1A;
  --gold: #C4993A;
  --gold-dark: #8B6914;
  --text: #FFFFFF;
  --burgundy: #6B1F1F;
  --charcoal: #2E2E2E;
  --header-height: 72px;
}

@media (min-width: 1024px) {
  :root { --header-height: 80px; }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--header-height);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.05em; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.gold-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
}

.hex-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-2l26-15V18L28 2 2 18v31l26 15z' fill='%23C4993A' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--text);
}
.section-title span { color: var(--gold); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .gold-line {
  width: 6rem;
  margin: 1.5rem auto 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled,
#navbar.menu-open,
body.page-terms #navbar {
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(196,153,58,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
@media (min-width: 1024px) { .nav-inner { height: 80px; } }

.nav-logo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-logo img { height: 44px; width: auto; }
@media (min-width: 1024px) { .nav-logo img { height: 52px; } }

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.75);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: block; } }

.btn-outline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
@media (min-width: 1024px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  background: rgba(8,8,8,0.98);
  border-top: 1px solid rgba(196,153,58,0.2);
}
.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  padding: 1.5rem 0;
}
.mobile-menu li { border-bottom: 1px solid rgba(196,153,58,0.1); }
.mobile-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.75);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== TERMS PAGE ===== */
body.page-terms {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -15%, rgba(107, 31, 31, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(196, 153, 58, 0.08), transparent 50%);
}

.terms-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-height) + 3.5rem) 0 5rem;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .terms-page { padding-top: calc(var(--header-height) + 4rem); }
}

.terms-page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 0.5rem;
}

.terms-page-header .section-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.2;
}

.terms-page-header .terms-lead {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(240, 240, 240, 0.55);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.terms-doc {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  background: rgba(46, 46, 46, 0.55);
  border: 1px solid rgba(196, 153, 58, 0.25);
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .terms-doc { padding: 2.5rem 2.25rem 3rem; }
}

.terms-doc-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(196, 153, 58, 0.3);
}

.terms-article {
  margin-bottom: 2rem;
}

.terms-article:last-child {
  margin-bottom: 0;
}

.terms-article h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.terms-article p,
.terms-article li {
  font-size: 0.9375rem;
  color: rgba(240, 240, 240, 0.88);
  line-height: 1.85;
}

.terms-num-list {
  list-style: none;
  counter-reset: terms-item;
  margin: 0;
  padding: 0;
}

.terms-num-list > li {
  counter-increment: terms-item;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
}

.terms-num-list > li:last-child {
  margin-bottom: 0;
}

.terms-num-list > li::before {
  content: counter(terms-item) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  text-align: right;
  padding-right: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9375rem;
  line-height: 1.85;
  box-sizing: content-box;
}

.terms-sub-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.terms-sub-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 0.5rem;
}

.terms-sub-list li:last-child {
  margin-bottom: 0;
}

.terms-sub-list li::before {
  content: attr(data-marker);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  text-align: right;
  padding-right: 0.5rem;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.875rem;
  line-height: 1.85;
  box-sizing: content-box;
}

.terms-back {
  text-align: center;
  margin-top: 2.5rem;
}

.terms-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.65);
  transition: color 0.3s;
}

.terms-back a:hover { color: var(--gold); }

.terms-back a::before {
  content: '←';
  font-family: sans-serif;
}

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(196,153,58,0.2);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .footer-logo { text-align: left; }
}

.footer-logo img { height: 3.5rem; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-desc {
  font-size: 0.75rem;
  color: rgba(240,240,240,0.35);
  line-height: 1.8;
}

.footer-nav h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(196,153,58,0.5);
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.footer-nav a {
  font-size: 0.8rem;
  color: rgba(240,240,240,0.45);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196,153,58,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(240,240,240,0.2);
  letter-spacing: 0.05em;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(196,153,58,0.25);
}
