@charset "UTF-8";

/* ================================
   Config: High Visibility (高齢者向け視認性強化版 - 修正版)
================================ */
:root {
  /* Colors */
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  
  --text-main: #111827;     /* ほぼ黒に近い濃紺 */
  --text-sub: #374151;      /* 濃いグレー */
  --text-mute: #4b5563;     /* 普通のグレー */
  
  --gold: #010f25;          /* 濃紺 */
  --gold-glow: rgba(2, 24, 63, 0.3);
  
  --border: #d1d5db;        /* 境界線 */
  --border-focus: var(--gold);
  
  /* Dimensions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --spacing-base: 32px;

  /* Fonts */
  --font-base: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Shippori Mincho", "Playfair Display", serif;
  --font-en: "Montserrat", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-size: 18px; 
  font-weight: 500; 
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(circle at 80% 80%, rgba(0, 26, 64, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

a { color: var(--gold); text-decoration: underline; transition: all 0.4s ease; }
a:hover { color: var(--text-sub); }

/* ================================
   Layout
================================ */
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* フォームエリアの背景 */
.main { 
  flex: 1; 
  padding: 80px 40px; 
  /* 背景画像 (パス: ../images/back-site.jpg) */
  background: url('../images/back-site.jpg') center center / cover no-repeat;
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.85); 
  background-attachment: fixed;
  position: relative; 
}
.main-inner { max-width: 1200px; margin: 0 auto; }

/* ================================
   Hero Section
================================ */
.hero {
  position: relative; width: 100%; height: 50vh; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero-bg { 
  position: absolute; inset: 0; z-index: 0; 
  filter: grayscale(100%) brightness(0.8) contrast(110%);
  transform: scale(1.05);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-content { 
  position: relative; z-index: 1; text-align: center; 
  padding: 60px; 
  background: rgba(0, 26, 64, 0.85);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero-main-logo { height: 160px; width: auto; filter: none; margin-bottom: 24px; }
.hero-brand-sub { 
  display: block; font-family: var(--font-en); font-size: 14px; letter-spacing: 0.2em; 
  color: #fff; margin-bottom: 12px; text-transform: uppercase; font-weight: 600;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 42px; 
  font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin: 0; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-login-btn {
  display: inline-block; margin-top: 24px; padding: 14px 32px;
  border: 2px solid #fff; color: #fff; font-family: var(--font-en);
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  transition: all 0.4s ease; background: transparent; border-radius: 50px;
}
.hero-login-btn:hover { background: #fff; color: var(--gold); transform: translateY(-2px); }

/* ================================
   Event Info (コンパクト化 - アイコン削除)
================================ */
.event-info {
  background: #ffffff; 
  border-bottom: 1px solid var(--border); 
  padding: 40px 40px; 
}
.event-info-inner { max-width: 1000px; margin: 0 auto; }
.event-info-text { 
  font-size: 18px; 
  font-weight: 500;
  color: var(--text-main); text-align: center; 
  margin-bottom: 30px; 
  line-height: 2.0; font-family: var(--font-serif);
}

.event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.event-card { 
  background: #ffffff; border: 2px solid var(--border);
  padding: 24px 16px; 
  text-align: center; position: relative;
  transition: all 0.5s ease; border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--gold); }

/* アイコンスタイル削除 */

.event-card-label { 
  font-family: var(--font-en); font-size: 14px; color: var(--text-mute); letter-spacing: 0.2em; 
  text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 700;
}
.event-card-main { 
  font-family: var(--font-serif); 
  font-size: 20px; 
  color: var(--text-main); 
  font-weight: 700;
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis; 
  margin-bottom: 4px;
}

.map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #fff; background: var(--text-mute);
  padding: 4px 12px; border-radius: 50px; text-decoration: none;
  margin-top: 4px; font-family: var(--font-en); letter-spacing: 0.05em;
  transition: all 0.3s;
}
.map-link:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

.countdown { 
  margin-top: 4px; color: #b91c1c; 
  font-family: var(--font-en); font-size: 14px; font-weight: 700; 
  background: #fef2f2; padding: 4px 10px; border-radius: 4px;
}
.days-num { font-size: 18px; font-weight: 800; margin: 0 4px; }


/* ================================
   Card & Steps (Progress Indicator Style)
================================ */
.card {
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  padding: 60px 80px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  position: relative; z-index: 10;
}

.steps { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: 60px; 
  padding-bottom: 0; 
  position: relative;
  border-bottom: none; 
}

/* ステップをつなぐ横線 */
.steps::before {
  content: "";
  position: absolute;
  top: 15px; 
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-chip {
  flex: 1; 
  text-align: center; 
  padding: 0; 
  font-size: 14px; 
  font-weight: 700;
  color: var(--text-mute); 
  border-bottom: none; 
  transition: all 0.4s; 
  font-family: var(--font-en); 
  letter-spacing: 0.1em;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.step-chip .index { 
  font-size: 14px; 
  margin-right: 0; 
  opacity: 1; 
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff; 
  border: 2px solid var(--border);
  color: var(--text-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 1); 
}

.step-chip.is-active { color: var(--gold); }
.step-chip.is-active .index { 
  border-color: var(--gold); 
  background: var(--gold); 
  color: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 1);
}

.form-step { display: none; animation: fadeEffect 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.form-step.is-active { display: block; }
@keyframes fadeEffect { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ================================
   Forms
================================ */
.field-group { margin-bottom: 48px; }

.field-label { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 16px; font-size: 20px; 
  color: var(--text-main); weight: 700; font-family: var(--font-base);
}
.badge-required { 
  font-size: 12px; border: 1px solid var(--gold); padding: 4px 12px; 
  color: var(--gold); border-radius: var(--radius-sm);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; background: var(--bg-input); border: 2px solid var(--border);
  color: var(--text-main); padding: 20px 24px; 
  font-size: 18px; border-radius: var(--radius-sm); 
  transition: all 0.3s ease; font-weight: 500;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); background: #f8fafc;
  box-shadow: 0 0 0 3px var(--gold-glow);
}
textarea { min-height: 180px; resize: vertical; }

.field-radio-row { display: flex; flex-wrap: wrap; gap: 20px; }
.chip-radio { cursor: pointer; flex: 1; min-width: 220px; }
.chip-radio input { display: none; }
.chip-radio .text {
  display: block; padding: 15px 15px; text-align: center;
  border: 2px solid var(--border); background: var(--bg-input);
  font-size: 16px; color: var(--text-sub); border-radius: var(--radius-sm); font-family: var(--font-en); font-weight: 600;
}
.chip-radio input:checked + .text {
  background: rgba(0, 26, 64, 0.1); color: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 15px rgba(0, 26, 64, 0.2);
}

/* ================================
   Terms & Confirm
================================ */
.terms-box {
  background: #f9fafb; border: 2px solid var(--border); padding: 32px;
  height: 280px; overflow-y: auto; border-radius: var(--radius-sm);
  margin-bottom: 32px; font-size: 16px; color: var(--text-sub); line-height: 2.0;
}
.checkbox-row { 
  display: flex; gap: 24px; align-items: flex-start; cursor: pointer; 
  padding: 24px; border: 2px solid var(--border); background: #f9fafb;
  border-radius: var(--radius-sm); transition: all 0.4s;
}
.checkbox-row:hover { border-color: var(--gold); background: #f0f9ff; }
.checkbox-row input { width: 24px; height: 24px; margin-top: 4px; accent-color: var(--gold); }
.checkbox-row span { font-size: 18px; color: var(--text-main); font-weight: 500; }

.confirm-box { border: 2px solid var(--border); padding: 0; border-radius: var(--radius-sm); background: #ffffff; }
.confirm-list > div { padding: 24px 32px; border-bottom: 1px solid var(--border); }
.confirm-list dt { width: 30%; color: var(--text-sub); font-size: 16px; font-weight: 700; }
.confirm-list dd { width: 70%; margin: 0; font-size: 18px; color: var(--text-main); font-weight: 500; }

/* ================================
   Buttons & Footer
================================ */
.btn-row { 
  display: flex; 
  justify-content: space-between; 
  margin-top: 60px; 
  gap: 24px; 
  width: 100%;
}
.btn {
  padding: 24px 48px; border-radius: var(--radius-sm); 
  font-size: 18px; font-weight: 700; letter-spacing: 0.15em; 
  cursor: pointer; text-align: center; transition: all 0.4s; border: none;
  min-width: 240px; 
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 20px rgba(0, 26, 64, 0.2); }
.btn-primary:hover { background: #003366; transform: translateY(-3px); }
.btn-secondary { background: transparent; border: 2px solid var(--border); color: var(--text-sub); }
.btn-secondary:hover { border-color: var(--text-main); color: var(--text-main); background: #f3f4f6; }
.footer { border-top: 1px solid var(--border); padding: 80px 20px; text-align: center; font-size: 15px; color: var(--text-mute); }

/* ================================
   Mobile Adjustments
================================ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .main { padding: 40px 16px; background-attachment: scroll; }
  .card { padding: 32px 20px; }
  .hero-title { font-size: 32px; }
  .hero-main-logo { height: 120px; }
  
  .event-card-main { font-size: 20px; width: 100%; display: block; text-align: center; }
  
  /* スマホでのステップ表示（縦並びのタイムライン風） */
  .steps { 
    margin-bottom: 40px; 
    flex-direction: column; 
    gap: 0; 
    align-items: flex-start;
    border: none;
  }
  
  /* 縦線 */
  .steps::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 16px; /* 円の中心 */
  }

  .step-chip { 
    flex-direction: row; 
    width: 100%; 
    padding: 10px 0; 
    border: none;
    text-align: left;
    gap: 16px;
    align-items: center;
  }
  
  /* 円 */
  .step-chip .index {
    z-index: 2; /* 線の上に重ねる */
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 1);
  }
  
  .field-label { font-size: 18px; }
  input, select, textarea { padding: 16px; font-size: 16px; }
  .confirm-list > div { flex-direction: column; gap: 8px; }
  .confirm-list dt { width: 100%; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
  .confirm-list dd { width: 100%; font-size: 18px; }
  
  .btn-row { flex-direction: column-reverse; gap: 16px; margin-top: 40px; }
  .btn { width: 100%; padding: 20px; }
}

.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.95); z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.loading-overlay.is-active { display: flex; }
.spinner-ring { width: 60px; height: 60px; border: 4px solid rgba(0,0,0,0.1); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 24px; }
.loading-text { font-family: "Oswald"; font-size: 18px; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }