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

/* ── BASE ── */
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: #f2f3f4;
  color: #222;
}
a { color: inherit; }

/* ── NAV ── */
nav {
  background: #4682b4;
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
nav a.active { color: #ffc93c; font-weight: 700; }
nav a:hover:not(.active) { color: #d0e6ff; }
nav a.dropdown::after { content: ' ▼'; font-size: 11px; }
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #2a5a95;
  min-width: 180px;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  max-height: 400px;
  overflow-y: auto;
}
.dropdown-item {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 9px 16px;
  display: block;
  white-space: nowrap;
}
.dropdown-item:hover { background: #3a6ab0; }
.dropdown-loading { color: #ccc; font-size: 13px; padding: 9px 16px; }

/* ── FLASH ── */
.flash-wrap { max-width: 900px; margin: 0 auto; padding: 0 40px; }
.flash {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 15px;
  margin-bottom: 8px;
}
.flash.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash.info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── FOOTER ── */
footer {
  background: inherit;
  text-align: center;
  padding: 30px;
  font-size: 32px;
  font-weight: 700;
  color: #444;
  border-top: 1px solid rgba(0,0,0,.08);
  letter-spacing: 0.05em;
}

/* ── COMMON FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 15px; font-weight: 700; color: #333; display: block; }
.form-note  { font-size: 13px; color: #555; line-height: 1.8; }
.form-error:not(:empty) { font-size: 13px; color: #f0553d; }
.form-error-banner {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 8px;
}
.form-errors {
  list-style: none;
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.form-errors li { font-size: 14px; color: #c0392b; line-height: 2; }
.form-errors li::before { content: '・'; }
.form-input {
  width: 100%;
  height: 44px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: #4682b4; }
.form-textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-textarea:focus { border-color: #4682b4; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.8;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #4682b4;
  flex-shrink: 0;
  cursor: pointer;
}
.submit-btn {
  display: block;
  width: 100%;
  height: 50px;
  background: #4682b4;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s;
  margin-top: 8px;
}
.submit-btn:hover { background: #3a6095; }

/* ── HOME PAGE ── */
.hero {
  display: flex;
  background-image: url("/common/img/hero_bg_L.svg"), url("/common/img/hero_bg_R.svg");
  background-position: left, right;
  background-repeat: no-repeat;
  background-size: contain;
  justify-content: center;
}
@media (width >= 48rem) {
  .hero-content {
    height: 420px;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
  padding: 0 48px 24px;
  gap: 24px;
  overflow: hidden;
  max-width: 1280px;
}
@media (width >= 48rem) {
  .hero-content {
    flex-direction: row;
    width: 100%;
  }
  .hero-info-area {
    max-width: 33.333%;
  }
}
.hero-logo-area {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-logo {
  max-width: 100%;
  height: auto;
  width: 100%;
}
.hero-tagline {
  font-size: 18px;
  font-weight: 700;
  color: #4faf67;
  text-align: center;
}
.hero-info-area {
  flex: none;
  display: flex;
  align-items: end;
  justify-content: center;
}
.info-box {
  background: #4682b4;
  color: #fff;
  padding: 28px;
  line-height: 1.5;
  border-radius: 24px;
}
.info-box p {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.section-heading {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 30px;
  color: #222;
}
.about {
  position: relative;
  padding: 20px 60px 20px;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}
.about-pipes { position: absolute; inset: 0; pointer-events: none; }
.about-inner {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.about-left { flex: 1; display: flex; flex-direction: column; gap: 40px; }
.about-heading { font-size: 42px; font-weight: 900; margin-bottom: 30px; color: #222; }
.about-body { font-size: 15px; line-height: 2; color: #444; }
.about-right {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.speech-bubble {
  background: #7db5c8;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 16px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  width: 180px;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #7db5c8;
}
.blob { width: 100%; max-width: 300px; flex: 0 1 auto; min-height: 0; object-fit: contain; }
.schedule {
  padding: 70px 120px 80px;
}
.schedule-table { border-collapse: collapse; font-size: 16px; }
.schedule-table td { padding: 8px 2rem 8px 0; vertical-align: top; }
.schedule-table .col-date { font-weight: 700; white-space: nowrap; min-width: 200px; color: #222; }
.schedule-table .col-time { font-weight: 700; white-space: nowrap; min-width: 120px; color: #222; }
.schedule-table .col-event { font-weight: 700; color: #222; }
.schedule-table .col-event.note { font-weight: 400; color: #555; font-size: 14px; line-height: 1.8; }
.play-btn {
  display: inline-block;
  background: #ff0000;
  color: #fff;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 10px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  text-decoration: none;
}
.team { padding: 10px 60px 80px; max-width: 1280px; margin: 0 auto; }
.team-subtitle { font-size: 14px; color: #555; margin-bottom: 36px; margin-top: -16px; }
.team-grid { display: flex; gap: 36px; }
.team-card { display: flex; gap: 16px; align-items: flex-start; flex: 1; }
.team-info { flex: 1; }
.team-name { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #222; }
.team-socials {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}
.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.sns-section {
  padding: 60px 60px 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.sns-heading {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: #4faf67;
  margin-bottom: 28px;
}
.sns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 60px;
}
.sns-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.sns-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.sns-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}
.sns-item-body p {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}
.support-section {
  padding: 40px 60px 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.support-heading {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: #4faf67;
  margin-bottom: 28px;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 60px;
}

/* ── RULE PAGE ── */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 60px 100px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 50px;
}
.page-title-lg {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: #222;
  line-height: 1;
}
.updated-date { font-size: 13px; color: #888; margin-top: 10px; white-space: nowrap; }
.rule-section { margin-bottom: 44px; }
.rule-h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #f0553d;
  margin-bottom: 18px;
}
.rule-h2::before { content: '•'; font-size: 24px; line-height: 1; }
.rule-body { padding-left: 28px; font-size: 15px; line-height: 2; color: #333; }
.rule-h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 20px 0 8px;
}
.rule-h3::before { content: '•'; color: #f0553d; font-size: 18px; }
.rule-list { list-style: none; padding-left: 16px; font-size: 15px; line-height: 2; color: #333; }
.rule-list li::before { content: '* '; color: #333; }
.rule-list li.bold-item { font-weight: 700; }
.rule-list li.sub { padding-left: 20px; font-weight: 400; }
.step-block { margin: 14px 0; }
.step-label { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 4px; }
.step-desc { padding-left: 16px; font-size: 15px; color: #333; line-height: 1.8; }
.step-done { font-size: 15px; margin-top: 10px; padding-left: 16px; }

/* ── ENTRY PAGE ── */
.entry-main { max-width: 740px; margin: 0 auto; padding: 60px 40px 100px; }
.page-title-center {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: #3a6ab0;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 0.04em;
}
.no-event { text-align: center; font-size: 18px; color: #555; padding: 40px 0; }
.pre-check { margin-bottom: 36px; }
.pre-check-title { font-size: 18px; font-weight: 700; color: #f0553d; margin-bottom: 16px; }
.pre-check-list { list-style: none; font-size: 15px; line-height: 2.2; color: #333; margin-bottom: 16px; }
.pre-check-list li::before { content: '・'; }
.pre-check a { color: #4682b4; }
.entry-form { display: flex; flex-direction: column; gap: 28px; }

/* ── EVENT PAGE ── */
.event-main { padding: 40px 40px 80px; }
.event-header { margin-bottom: 32px; }
.event-title { font-size: 48px; font-weight: 900; color: #222; margin-bottom: 6px; text-align: center; }
.event-theme { font-size: 32px; color: #4faf67; font-weight: 700; margin-bottom: 4px; text-align: center; }
.event-meta { font-size: 13px; color: #888; }
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.entry-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}
.entry-left { flex: 1; display: flex; flex-direction: column; }
.entry-thumb { display: block; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; max-width: 200px; height: auto; }
.entry-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.entry-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.entry-card-title { font-size: 16px; font-weight: 700; }
.entry-card-title a { text-decoration: none; color: #4682b4; }
.entry-card-title a:hover { text-decoration: underline; }
.entry-author { font-size: 13px; color: #555; margin-top: auto; padding-top: 8px; }
.entry-author a { color: #4682b4; text-decoration: none; }
.entry-author a:hover { text-decoration: underline; }
.entry-desc { font-size: 13px; color: #444; line-height: 1.7; }
.entry-desc.clamped { display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.desc-expand-btn { background: none; border: none; color: #4faf67; font-size: 12px; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }
.entry-footer { padding: 10px 16px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: center; }
.ahone-btn {
  background: none;
  border: 2px solid #f0553d;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #f0553d;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.ahone-btn::before { content: '👍' }
.ahone-btn:disabled { border-color: #787878; color: #787878; }
.ahone-btn:hover { background: #f0553d; color: #fff; }
.ahone-btn:hover:disabled { background: none; color: #787878; }
.ahone-count { font-size: 14px; font-weight: 700; }
.entry-no-result { padding: 40px 0; text-align: center; color: #888; font-size: 15px; }

/* ── RANKING PAGE ── */
.ranking-main { max-width: 800px; margin: 0 auto; padding: 40px 40px 80px; }
.ranking-header { margin-bottom: 32px; }
.ranking-title { font-size: 32px; font-weight: 900; color: #222; margin-bottom: 6px; }
.ranking-subtitle { font-size: 14px; color: #888; }
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.ranking-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}
.ranking-rank {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #4682b4;
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}
.ranking-rank.gold   { color: #d4a017; }
.ranking-rank.silver { color: #888; }
.ranking-rank.bronze { color: #a0632a; }
.ranking-thumb { width: 80px; flex-shrink: 0; }
.ranking-thumb img { width: 100%; display: block; border-radius: 3px; }
.ranking-info { flex: 1; min-width: 0; }
.ranking-entry-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.ranking-entry-title a { text-decoration: none; color: #222; }
.ranking-entry-title a:hover { color: #4682b4; text-decoration: underline; }
.ranking-author { font-size: 13px; color: #555; }
.ranking-author a { color: #4682b4; text-decoration: none; }
.ranking-votes {
  font-size: 18px;
  font-weight: 700;
  color: #f0553d;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── CONTACT PAGE ── */
.contact-main { max-width: 740px; margin: 0 auto; padding: 60px 40px 100px; }
.contact-lead { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 28px; }

/* ── BANNER PAGE ── */
.banner-main { max-width: 800px; margin: 0 auto; padding: 40px 40px 80px; }
.banner-section { margin-bottom: 40px; }
.banner-title { font-size: 28px; font-weight: 900; color: #222; margin-bottom: 20px; }
.banner-grid { display: flex; flex-direction: column; gap: 16px; }
.banner-item { background: #fff; border-radius: 6px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.banner-item img { display: block; max-width: 100%; }
.banner-code {
  background: #f5f5f5;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: monospace;
  word-break: break-all;
  margin-top: 8px;
  color: #333;
}

/* ── LIVE PAGE ── */
.live-main { max-width: 900px; margin: 0 auto; padding: 40px 40px 80px; }
.live-title { font-size: 32px; font-weight: 900; color: #222; margin-bottom: 20px; }
.live-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-bottom: 20px; }
.live-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.live-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.live-link-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #4682b4;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
}
.live-link-btn:hover { background: #3a6095; }

/* ── THUMBNAIL CROPPER ── */
.thumb-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.thumb-paste-zone {
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  color: #777;
  font-size: 14px;
  line-height: 1.8;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.thumb-paste-zone:hover { border-color: #4682b4; background: #f0f5ff; }
.thumb-paste-sub { font-size: 12px; color: #aaa; margin-top: 2px; }
.thumb-preview-wrap { display: flex; align-items: center; gap: 16px; }
.thumb-preview-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: block;
}
.thumb-reset-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}
.thumb-reset-btn:hover { border-color: #f0553d; color: #f0553d; }
.thumb-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-modal-inner {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: min(560px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.thumb-modal-title { font-size: 15px; font-weight: 700; color: #333; }
.thumb-cropper-wrap { overflow: hidden; max-height: 60vh; }
.thumb-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.thumb-confirm-btn {
  background: #4682b4;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.thumb-confirm-btn:hover { background: #3a6095; }
.thumb-cancel-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.thumb-cancel-btn:hover { background: #f5f5f5; }

/* ── RANKING ANNIV PAGE ── */
.anniv-main { max-width: 800px; margin: 0 auto; padding: 40px 40px 80px; }
.anniv-title { font-size: 32px; font-weight: 900; color: #222; margin-bottom: 8px; }
.anniv-subtitle { font-size: 14px; color: #888; margin-bottom: 32px; }
