/* ========================================================
   飯能まつり 山車曳き募集 - 明るく楽しい秋祭りスタイル (V1)
   ======================================================== */

:root {
  --sky-blue: #0288D1;
  --sky-light: #E1F5FE;
  --autumn-red: #D32F2F;
  --autumn-orange: #EF6C00;
  --autumn-gold: #F57F17;
  --autumn-yellow: #FFF9C4;
  --bg-gradient: linear-gradient(180deg, #81D4FA 0%, #B3E5FC 300px, #FFF9C4 600px, #FAFAFA 1000px);
  --text-main: #263238;
  --text-sub: #546E7A;
  --card-bg: #FFFFFF;
  --border-radius: 16px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
  color: var(--text-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Canvas背景（舞い散る紅葉＆イチョウ） */
#autumn-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ナビゲーションバー */
.top-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #FFE082;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-badge {
  background: linear-gradient(135deg, var(--autumn-red), var(--autumn-orange));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.nav-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-contact-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: #D84315;
  background: #FBE9E7;
  border: 1px solid #FFAB91;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-contact-btn:hover {
  background: #FFCCBC;
}
.nav-inquiry-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0288D1;
  background: #E1F5FE;
  border: 1px solid #81D4FA;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-inquiry-btn:hover {
  background: #B3E5FC;
}
.nav-admin-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: #455A64;
  background: #ECEFF1;
  border: 1px solid #CFD8DC;
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-admin-btn:hover {
  background: #CFD8DC;
  color: #263238;
}

/* ヒーローセクション */
.hero-section {
  padding: 24px 16px 36px;
}
.hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(2, 136, 209, 0.25);
  border: 4px solid #FFFFFF;
  height: 320px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-tag-11years {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #FF1744, #D50000);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(213, 0, 0, 0.4);
  border: 2px solid #FFFFFF;
}

.hero-content {
  background: rgba(255, 255, 255, 0.96);
  padding: 24px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 2px solid #FFE082;
}
.hero-subtag {
  color: var(--autumn-orange);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 6px;
}
.hero-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  font-weight: 900;
  line-height: 1.35;
  color: #B71C1C;
  margin-bottom: 12px;
  white-space: nowrap;
}
.highlight-orange {
  color: #E65100;
  display: inline-block;
}
.hero-desc {
  font-size: 0.98rem;
  color: #37474F;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* リアルタイムステータスバナー */
.status-banner {
  background: #FFF8E1;
  border: 2px solid #FFE082;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-icon {
  font-size: 1.8rem;
}
.status-info {
  display: flex;
  flex-direction: column;
}
.status-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #795548;
}
.status-count-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.count-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #D84315;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
.count-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: #5D4037;
}
.status-badge {
  background: #2E7D32;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
}

/* メインコンテンツ */
.main-content {
  padding: 0 16px 40px;
}
.content-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 共通カード */
.info-card, .form-card, .inquiry-card, .contacts-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #263238;
  border-bottom: 3px solid #FFE082;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 開催要項グリッド（PDF・画像準拠デザイン） */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fffdf5;
  border: 2px solid #facc15;
  border-radius: 14px;
  padding: 12px;
}
.summary-item {
  background: #ffffff;
  border: 1.5px solid #fef08a;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  min-width: 0;
}
.item-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.item-label {
  font-size: 0.85rem;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: 0.03em;
}
.item-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  white-space: nowrap;
}
.item-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
  white-space: nowrap;
}
.font-strong {
  font-weight: 800;
  color: #C62828;
}
.item-sub {
  font-size: 0.8rem;
  color: #546E7A;
  margin-top: 4px;
}

/* フォームカード */
.form-header {
  text-align: center;
  margin-bottom: 24px;
}
.form-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #D32F2F;
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 0.9rem;
  color: #546E7A;
  line-height: 1.6;
}
.spam-notice-text {
  font-size: 0.85rem;
  color: #78909C;
  font-weight: 500;
  display: inline-block;
  margin-top: 4px;
}

.form-group-section {
  background: #FAFAFA;
  border: 1px solid #ECEFF1;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #37474F;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.group-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.btn-add-child {
  background: #E1F5FE;
  color: #0288D1;
  border: 1.5px solid #0288D1;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-add-child:hover {
  background: #0288D1;
  color: #FFFFFF;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field.full {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #455A64;
  margin-bottom: 6px;
}
.req {
  background: #FFEBEE;
  color: #C62828;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.field-hint {
  font-size: 0.75rem;
  color: #78909C;
  margin-top: 4px;
}
.mb-3 {
  margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid #CFD8DC;
  border-radius: 8px;
  background: #FFFFFF;
  color: #263238;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.15);
}

/* お子様行 */
.child-row {
  background: #FFFFFF;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.child-num {
  font-weight: 800;
  font-size: 0.85rem;
  color: #E65100;
  min-width: 50px;
}
.child-inputs {
  display: flex;
  gap: 10px;
  flex: 1;
}
.child-inputs input {
  flex: 2;
}
.child-inputs select {
  flex: 1;
}
.btn-remove-child {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}

/* 注意事項 */
.notice-box {
  background: #ECEFF1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.notice-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #37474F;
  margin-bottom: 6px;
}
.notice-list {
  padding-left: 20px;
  font-size: 0.85rem;
  color: #455A64;
  line-height: 1.5;
}

/* 送信ボタン */
.form-submit-wrap {
  text-align: center;
}
.btn-primary-matsuri {
  background: linear-gradient(135deg, #FF6F00, #E65100);
  color: #FFFFFF;
  border: none;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 16px 48px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(230, 81, 0, 0.4);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 400px;
}
.btn-primary-matsuri:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 81, 0, 0.5);
  background: linear-gradient(135deg, #FFA000, #F57C00);
}
.btn-primary-matsuri:active {
  transform: translateY(1px);
}

.form-message {
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  display: none;
  padding: 12px;
  border-radius: 8px;
}
.form-message.success {
  display: block;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}
.form-message.error {
  display: block;
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

/* ========================================================
   照会・変更・キャンセル
   ======================================================== */
.inquiry-card {
  background: #F0F9FF;
  border: 2px solid #BAE6FD;
}
.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.inquiry-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0369A1;
}
.inquiry-toggle-txt {
  font-size: 0.85rem;
  color: #0288D1;
  font-weight: 800;
}
.inquiry-desc {
  font-size: 0.85rem;
  color: #0369A1;
  margin-bottom: 8px;
}
.inquiry-form-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inquiry-input {
  flex: 1;
  min-width: 200px;
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 2px solid #0288D1 !important;
}
.inquiry-btn {
  background: linear-gradient(135deg, #0288D1, #0277BD);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}
.inquiry-btn:hover {
  background: linear-gradient(135deg, #039BE5, #0288D1);
}

.inquiry-result-box {
  background: #FFFFFF;
  border: 2px solid #0288D1;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 15px rgba(2, 136, 209, 0.15);
}
.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 8px;
}
.ref-lbl {
  font-size: 0.85rem;
  color: #546E7A;
  font-weight: 700;
}
.ref-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0288D1;
  font-family: monospace;
}
.created-val {
  font-size: 0.8rem;
  color: #78909C;
  margin-left: 10px;
}

.badge-status-lg {
  background: #2E7D32;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
}
.badge-status-lg.status-cancelled {
  background: #C62828;
}

.cancel-warning-box {
  background: #FFEBEE;
  border: 1.5px solid #EF5350;
  color: #C62828;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  font-weight: bold;
}

.edit-children-card {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 14px;
}
.edit-children-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.edit-children-title {
  font-size: 0.95rem;
  color: #B45309;
  font-weight: 800;
}
.btn-edit-add-child {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 6px;
  background: #E0F2FE;
  border: 1px solid #0288D1;
  color: #0288D1;
  cursor: pointer;
  font-weight: bold;
}

.edit-actions-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-danger-cancel {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: #D32F2F;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.btn-save-changes {
  padding: 10px 24px;
  font-size: 0.9rem;
  background: #0288D1;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* ========================================================
   主催・ご案内・お問い合わせ先
   ======================================================== */
.contacts-card {
  background: #FFFFFF;
  border: 2px solid #FFE082;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.contacts-main-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #37474F;
  border-bottom: 2px solid #FFE082;
  padding-bottom: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-lantern {
  font-size: 1.4rem;
}
.contacts-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}
@media (max-width: 760px) {
  .contacts-dual-grid {
    grid-template-columns: 1fr;
  }
}
.contact-box {
  background: #FAFAFA;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid #ECEFF1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-org-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.contact-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.contact-badge.red {
  background: #D32F2F;
  color: #FFFFFF;
}
.contact-badge.gold {
  background: #FFA000;
  color: #FFFFFF;
}
.org-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #263238;
}
.person-align-row {
  display: flex;
  align-items: center;
  padding-left: 1.5em;
  font-size: 0.95rem;
  min-height: 30px;
  white-space: nowrap;
}
.role-lbl {
  display: inline-block;
  width: 4em;
  color: #546E7A;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.name-lbl {
  display: inline-block;
  width: 6.2em;
  color: #263238;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}
.phone-link-clean {
  font-family: 'Roboto Mono', 'Consolas', monospace;
  color: #0288D1;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  background: #E1F5FE;
  border: 1.5px solid #B3E5FC;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.phone-link-clean:hover {
  background: #0288D1;
  color: #FFFFFF;
  border-color: #0288D1;
}
.sms-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0277BD;
  margin-left: 4px;
}

/* フッター */
.site-footer {
  background: #263238;
  color: #ECEFF1;
  padding: 32px 16px 40px;
  text-align: center;
  margin-top: auto;
}
.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-org {
  font-size: 0.95rem;
  font-weight: 700;
}
.admin-link-row {
  margin: 8px 0;
}
.admin-login-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFE082;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 22px;
  background: rgba(255, 224, 130, 0.12);
  border: 1.5px solid rgba(255, 224, 130, 0.45);
  border-radius: 25px;
  transition: all 0.2s;
}
.admin-login-button:hover {
  background: rgba(255, 224, 130, 0.25);
  color: #FFFFFF;
  border-color: #FFE082;
}
.footer-copy {
  font-size: 0.8rem;
  color: #90A4AE;
}

/* レスポンシブ */
@media (max-width: 650px) {
  .hero-image-wrap {
    height: 220px;
  }
  .hero-title {
    font-size: clamp(0.92rem, 3.6vw, 1.25rem);
    white-space: nowrap;
  }
  .item-val, .item-sub {
    white-space: normal;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .child-inputs {
    flex-direction: column;
    gap: 6px;
  }
  .person-align-row {
    padding-left: 0;
    font-size: 0.85rem;
  }
  .name-lbl {
    width: 5.5em;
  }
  .phone-link-clean {
    font-size: 0.85rem;
    padding: 3px 8px;
  }
}
