/* ===================================================
   CSS Variables
=================================================== */
:root {
  --navy:         #0d1b3e;
  --navy-deep:    #081228;
  --navy-mid:     #1a2f5e;
  --gold:         #c9973a;
  --gold-light:   #e8c06a;
  --gold-pale:    #f5e6c0;
  --white:        #ffffff;
  --off-white:    #f8f5ee;
  --text-dark:    #1a1a2e;
  --text-mid:     #3a3a5a;
  --text-light:   #f0ead8;
  --border:       rgba(201, 151, 58, 0.3);
  --border-light: rgba(201, 151, 58, 0.15);
  --radius:       4px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================================
   Reset & Base
=================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.85;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ===================================================
   Utility: responsive line breaks
=================================================== */
.br-sp { display: none; }
.br-pc { display: inline; }

/* ===================================================
   MV
=================================================== */
.mv {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy-deep);
}

.mv__img {
  width: 100%;
  height: auto;
  display: block;
}

.mv__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: mvScrollFade 2.4s ease-in-out infinite;
}

.mv__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: mvScrollLine 2.4s ease-in-out infinite;
}

.mv__scroll-text {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  opacity: 0.85;
}

@keyframes mvScrollFade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

@keyframes mvScrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ===================================================
   Section Common
=================================================== */
.section {
  padding: 90px 0 100px;
}

.section--dark {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(201,151,58,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(26,47,94,0.8) 0%, transparent 60%);
  pointer-events: none;
}

.section__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section__label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.85;
}

.section--dark .section__label {
  color: var(--gold-light);
}

.section__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.section--dark .section__title {
  color: var(--white);
}

.section__title-deco {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
  margin: 16px auto 0;
  position: relative;
}

.section__title-deco::before,
.section__title-deco::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.section__title-deco::before { left: -10px; }
.section__title-deco::after  { right: -10px; }

/* ===================================================
   Info Section
=================================================== */
.info__lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 52px;
  padding: 0 8px;
}

.info__table {
  border-top: 1px solid var(--border);
}

.info__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.info__row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info__row:nth-child(1) { transition-delay: 0.05s; }
.info__row:nth-child(2) { transition-delay: 0.10s; }
.info__row:nth-child(3) { transition-delay: 0.15s; }
.info__row:nth-child(4) { transition-delay: 0.20s; }
.info__row:nth-child(5) { transition-delay: 0.25s; }
.info__row:nth-child(6) { transition-delay: 0.30s; }
.info__row:nth-child(7) { transition-delay: 0.35s; }
.info__row:nth-child(8) { transition-delay: 0.40s; }

.info__term {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 8px 12px;
  border-radius: 2px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  align-self: flex-start;
  line-height: 1.4;
  border: 1px solid rgba(201,151,58,0.25);
}

.info__desc {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.85;
}

.info__highlight {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  display: inline-block;
  line-height: 1.2;
}

/* ===================================================
   Winners Section
=================================================== */
.winners__note {
  font-size: 15px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 44px;
  line-height: 1.8;
}

.winners__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.winners__col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.winners__col:nth-child(1) { transition-delay: 0.10s; }
.winners__col:nth-child(2) { transition-delay: 0.25s; }

.winners__col.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion */
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: filter var(--transition), box-shadow var(--transition);
}

.accordion__trigger--men {
  background: linear-gradient(135deg, #1a3a6e, #0d2050);
  border-color: rgba(100, 140, 220, 0.3);
}

.accordion__trigger--women {
  background: linear-gradient(135deg, #6e1a3a, #50102a);
  border-color: rgba(220, 100, 140, 0.3);
}

.accordion__trigger:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 20px rgba(201,151,58,0.2);
}

.accordion__trigger[aria-expanded="true"] {
  border-radius: var(--radius) var(--radius) 0 0;
}

.accordion__label {
  flex: 1;
}

.accordion__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-top: -4px;
  flex-shrink: 0;
}

.accordion__trigger[aria-expanded="true"] .accordion__arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.accordion__body[hidden] {
  display: block !important;
  max-height: 0;
  visibility: hidden;
}

.accordion__body:not([hidden]) {
  visibility: visible;
}

.winners__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.winners__table td {
  padding: 10px 14px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}

.winners__table tr:last-child td {
  border-bottom: none;
}

.winners__table tr:hover td {
  background: rgba(201,151,58,0.07);
}

.winners__table td:first-child {
  color: var(--gold-light);
  font-size: 13px;
  white-space: nowrap;
  width: 92px;
}

.winners__table td:last-child {
  color: rgba(240,234,216,0.5);
  font-size: 13px;
  text-align: right;
}

.tag-absent {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(255,80,80,0.2);
  color: #ff9090;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.winners__credit {
  font-size: 14px;
  color: #ffffff;
  text-align: right;
  margin-top: 20px;
  line-height: 1.8;
}

/* ===================================================
   Form Section
=================================================== */
.form-section {
  background: var(--off-white);
  position: relative;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--navy-deep), var(--gold), var(--navy-deep));
}

.form-section__lead {
  font-size: 16px;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.9;
}

/* ===================================================
   Contact Form 7
=================================================== */
.cf7-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.cf7-wrapper .wpcf7 {
  margin: 0;
}

/* フィールドブロック */
.cf7-wrapper .wpcf7-form .cf7-field {
  margin-bottom: 28px;
}

/* ラベル */
.cf7-wrapper .wpcf7-form .cf7-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* 必須バッジ */
.cf7-req {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* テキスト・メール・Tel 入力欄 */
.cf7-wrapper .wpcf7-form input[type="text"],
.cf7-wrapper .wpcf7-form input[type="email"],
.cf7-wrapper .wpcf7-form input[type="tel"] {
  display: block;
  width: 100%;
  padding: 15px 18px;
  font-size: 17px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid rgba(13,27,62,0.2);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.cf7-wrapper .wpcf7-form input[type="text"]:focus,
.cf7-wrapper .wpcf7-form input[type="email"]:focus,
.cf7-wrapper .wpcf7-form input[type="tel"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.15);
}

/* バリデーションエラー */
.cf7-wrapper .wpcf7-form input.wpcf7-not-valid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.cf7-wrapper .wpcf7-not-valid-tip {
  display: block;
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
}

/* ===================================================
   確認チェックボックス
   CF7が出力する構造:
   .cf7-check
     span.wpcf7-list-item
       label
         input[type="checkbox"]
         span.wpcf7-list-item-label
=================================================== */
.cf7-check {
  margin-bottom: 36px;
  padding: 20px 24px;
  background: rgba(13,27,62,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cf7-check .wpcf7-list-item {
  display: block;
  margin: 0;
}

.cf7-check .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.cf7-check .wpcf7-list-item label input[type="checkbox"] {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
  margin: 0;
}

.cf7-check .wpcf7-list-item-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.5;
  transition: color var(--transition);
}

.cf7-check .wpcf7-list-item label input[type="checkbox"]:checked
  ~ .wpcf7-list-item-label {
  color: var(--gold);
}

/* ===================================================
   送信ボタン
   CF7フォームタブ:
     <div class="submit-wrap">[submit "エントリーする"]</div>
   submit-wrap を中央揃えコンテナにし、
   ボタン自体を position:relative にして
   ::after 矢印をボタン内右端に絶対配置。
=================================================== */
.submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* CF7が[submit]をpタグで囲むため、pをrelativeにして矢印の基準にする */
.submit-wrap > p {
  position: relative;
  display: inline-block;
  margin: 0;
}

/* CF7が自動挿入するスピナーをpのレイアウトから切り離す */
.submit-wrap > p .wpcf7-spinner {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

/* 送信ボタン本体 */
.cf7-wrapper .wpcf7-form input[type="submit"] {
  position: relative; /* 矢印の基準をボタン自身に */
  display: block;
  padding: 20px 64px 20px 48px; /* 右に矢印分の余白 */
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

/*
  input 要素には ::after が使えないため、
  JS で矢印 span を動的に挿入する。
  → script.js の「矢印挿入」処理を参照。
  CSS側はその span に対してスタイルを当てる。
*/
.submit-wrap .btn-arrow {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  transition: right 0.25s ease;
}

.submit-wrap:hover .btn-arrow {
  right: 16px;
}

/* disabled時は矢印も薄く */
.submit-wrap:has(input.is-disabled) .btn-arrow {
  opacity: 0.35;
  right: 24px;
}

.cf7-wrapper .wpcf7-form input[type="submit"]:hover:not(.is-disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13,27,62,0.3), 0 2px 8px rgba(201,151,58,0.2);
}

.cf7-wrapper .wpcf7-form input[type="submit"]:active:not(.is-disabled) {
  transform: translateY(0);
}

/* 未チェック時：disabled状態 */
.cf7-wrapper .wpcf7-form input[type="submit"].is-disabled,
.cf7-wrapper .wpcf7-form input[type="submit"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* 送信結果メッセージ */
.cf7-wrapper .wpcf7-response-output {
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: var(--radius);
  text-align: center;
  border: none !important;
}

.cf7-wrapper .wpcf7-mail-sent-ok {
  background: rgba(13,27,62,0.06);
  color: var(--navy);
  border-left: 3px solid var(--gold) !important;
}

.cf7-wrapper .wpcf7-mail-sent-ng,
.cf7-wrapper .wpcf7-aborted {
  background: rgba(192,57,43,0.06);
  color: #c0392b;
  border-left: 3px solid #c0392b !important;
}

/* ===================================================
   Marker highlight
=================================================== */
.marker {
  background: linear-gradient(transparent 60%, rgba(201,151,58,0.25) 60%);
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
}

/* ===================================================
   Thanks Page
=================================================== */
.thanks {
  background: var(--off-white);
}

.thanks__body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* チェックアイコン */
.thanks__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  border: 2px solid var(--gold);
}

/* リード文 */
.thanks__lead {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 2;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}

/* メール確認ボックス */
.thanks__box {
  background: rgba(13,27,62,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 36px;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* 注意事項リスト */
.thanks__notes {
  list-style: none;
  text-align: left;
  margin-bottom: 52px;
  border-top: 1px solid var(--border);
}

.thanks__notes li {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.85;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.thanks__notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* 開催情報（info__rowを再利用） */
.thanks__info {
  text-align: left;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.thanks__info .info__row {
  opacity: 1;
  transform: none;
}

/* ===================================================
   Footer
=================================================== */
.footer {
  background: var(--navy-deep);
  padding: 36px 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer__org {
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

/* ===================================================
   Responsive — Tablet (768px以下)
=================================================== */
@media (max-width: 768px) {

  html {
    font-size: 16px;
  }

  .section {
    padding: 64px 0 72px;
  }

  .section__inner {
    padding: 0 20px;
  }

  .winners__columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info__row {
    grid-template-columns: 120px 1fr;
    padding: 18px 0;
    gap: 14px;
  }

  .info__term {
    font-size: 15px;
    padding: 7px 10px;
  }

  .info__desc {
    font-size: 16px;
  }

}

/* ===================================================
   Responsive — SP (480px以下)
=================================================== */
@media (max-width: 480px) {

  html {
    font-size: 15px;
  }

  .br-sp { display: inline; }
  .br-pc { display: none; }

  .section {
    padding: 52px 0 60px;
  }

  .section__inner {
    padding: 0 16px;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .info__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .info__term {
    font-size: 15px;
    padding: 7px 14px;
    align-self: auto;
  }

  .info__desc {
    font-size: 15px;
  }

  .info__highlight {
    font-size: 22px;
    line-height: 1.85;
    display: block;
    text-align: center;
  }

  .info__lead {
    font-size: 15px;
    text-align: left;
  }

  .accordion__trigger {
    font-size: 18px;
    padding: 14px 16px;
  }

  .winners__table {
    font-size: 13px;
  }

  .winners__table td {
    padding: 9px 10px;
  }

  .winners__credit {
    font-size: 12px;
  }

  .form-section__lead {
    font-size: 14px;
    text-align: left;
  }

  .cf7-wrapper .wpcf7-form input[type="text"],
  .cf7-wrapper .wpcf7-form input[type="email"],
  .cf7-wrapper .wpcf7-form input[type="tel"] {
    font-size: 16px;
  }

  .cf7-wrapper .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 18px 60px 18px 24px;
    font-size: 17px;
  }

  /* SP: pをblock表示にしてボタンが全幅になるよう戻す */
  .submit-wrap > p {
    display: block;
    width: 100%;
  }

  .cf7-check {
    padding: 16px 18px;
  }

  .cf7-check .wpcf7-list-item-label {
    font-size: 15px;
  }

  .footer__org {
    font-size: 13px;
  }

  .mv__scroll {
    display: none;
  }

}