/* =========================================
   総合メディア「M」プレオープンLP
   デザイン哲学：Dark Luxury Card Collector
   - ダークネイビー基調（#0F1419）
   - ゴールド（#FFD700）、紫（#9D4EDD）のアクセント
   ========================================= */
:root {
  --bg: #0F1419;
  --fg: #E8E8E8;
  --card: #1a1f2e;
  --border: #2a3142;
  --muted: #A0A8B8;
  --gold: #FFD700;
  --purple: #9D4EDD;
  --blue: #3A86FF;
  --red: #FF006E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Poppins', 'Hiragino Sans', 'Yu Gothic', sans-serif; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 49, 66, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 左右は .container の padding を活かすため縦方向のみ指定 */
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--bg);
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

nav { display: flex; gap: 1.5rem; font-size: 0.875rem; }
nav a { color: var(--muted); transition: color 0.2s ease; }
nav a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 7rem;
  background-image:
    linear-gradient(to bottom, rgba(15,20,25,0.15), rgba(15,20,25,0.55) 70%, var(--bg)),
    url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(157, 78, 221, 0.18);
  border: 1px solid rgba(157, 78, 221, 0.35);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.badge .star { color: var(--gold); }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 30rem;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  color: var(--bg);
  font-family: 'Poppins', 'Hiragino Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.cta-btn:active { transform: scale(0.97); }

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 48px rgba(157,78,221,0.25);
  animation: float 4s ease-in-out infinite;
}

.hero-visual img { display: block; width: 100%; height: auto; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Features ---------- */
.features { padding: 5.5rem 0; }

.section-head { text-align: center; margin-bottom: 3.5rem; }

.section-head h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
}

.section-head h2 .accent { color: var(--gold); display: block; }

.section-head p { color: var(--muted); margin-top: 0.9rem; font-size: 1.05rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  position: relative;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(42, 49, 66, 0.6);
  background: rgba(26, 31, 46, 0.55);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(26, 31, 46, 0.85);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.feature-card p { color: var(--muted); font-size: 0.93rem; }

.future-note {
  margin-top: 3rem;
  padding: 1.8rem 2rem;
  border-radius: 18px;
  border: 1px solid rgba(42, 49, 66, 0.6);
  background: linear-gradient(90deg, rgba(157,78,221,0.12), rgba(255,215,0,0.10));
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.future-note strong { color: var(--fg); }

/* ---------- Form ---------- */
.signup {
  position: relative;
  padding: 6rem 0;
  background-image:
    linear-gradient(to bottom, rgba(15,20,25,0.55), rgba(15,20,25,0.75), var(--bg)),
    url('../images/signup-bg.webp');
  background-size: cover;
  background-position: center;
}

.signup .container { max-width: 640px; }

.form-card {
  position: relative;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(42, 49, 66, 0.6);
  background: rgba(26, 31, 46, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 64px rgba(255,215,0,0.08);
}

.form-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-card input[type="email"] {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(42, 49, 66, 0.8);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
}

.form-card input[type="email"]::placeholder { color: #5a6372; }

.form-card input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-card .cta-btn {
  width: 100%;
  padding: 1.15rem;
  font-size: 1.1rem;
}

.form-note {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ハニーポット：画面外に飛ばして人間には見せない（display:none を避ける bot 対策） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* エラー時のみ表示される案内文 */
#form-error {
  display: none;
  margin-top: 1.1rem;
  margin-bottom: 0;
  color: var(--red);
}

#form-error.show { display: block; }

.after-note {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.after-note .mail { color: var(--gold); }

/* success message */
.success {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.success.show { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  animation: pop 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.success p { color: var(--muted); }

/* ---------- 下層ページ（運営者情報・プライバシーポリシー） ---------- */
.page {
  padding: 4rem 0 5rem;
}

.page .container { max-width: 800px; }

.page h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page .page-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.4rem 0 0.8rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--gold);
}

.page p, .page li {
  color: var(--muted);
  font-size: 0.95rem;
}

.page ul, .page ol { padding-left: 1.4rem; margin: 0.6rem 0 1rem; }

.page a.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page a.text-link:hover { opacity: 0.8; }

/* 会社概要の表 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid rgba(42, 49, 66, 0.8);
  border-radius: 14px;
  overflow: hidden;
}

.info-table th, .info-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(42, 49, 66, 0.6);
  vertical-align: top;
}

.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

.info-table th {
  width: 30%;
  background: rgba(26, 31, 46, 0.8);
  font-weight: 600;
  white-space: nowrap;
}

.info-table td { color: var(--muted); background: rgba(26, 31, 46, 0.4); }

@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 0.25rem; }
  .info-table td { padding-top: 0.25rem; }
}

/* 改定日 */
.page .revision {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(42, 49, 66, 0.5);
  padding: 3rem 0 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.footer-links a { color: var(--muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--fg); }

.footer-brand {
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
}

.copyright {
  border-top: 1px solid rgba(42, 49, 66, 0.5);
  padding-top: 1.8rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 5rem; }
  .form-card { padding: 2.25rem 1.5rem; }
  .logo-text-full { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none; }
  html { scroll-behavior: auto; }
}
