/* 🎬 動画コンテスト（G-10・2026-09-29）。色は アドベンチャーと そろえる */
:root { --navy: #16305c; --navy2: #0f2244; --gold: #d4a017; --gold2: #f3cf5c; --parch: #f6e7c1; --parch2: #ead08f; --wood: #7a4a1f; --ink: #3a2a14; --red: #c0392b; --green: #1f8a4c; --sub: #6b4a1a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; color: var(--ink); line-height: 1.7;
  background: radial-gradient(ellipse at top, #2a4f8c, var(--navy2) 70%) fixed, var(--navy2); }
a { color: #1d4f9a; }
.hidden { display: none !important; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 980px; margin: 0 auto; padding: 10px 16px; }
header.top a { color: #fff; text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 8px; }
header.top img { height: 30px; }
header.top .lang { font-size: 13px; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 999px; }
main { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }

/* 動く 帯：5枚が ゆっくり ズームしながら 切りかわる（1枚 5秒・25秒で 1周） */
.hero { position: relative; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; border: 4px solid var(--wood); box-shadow: 0 14px 40px rgba(0,0,0,.5); background: #0b1a33; }
.hero .sl { position: absolute; inset: 0; opacity: 0; animation: slide 25s infinite; }
.hero .sl i { position: absolute; inset: 0; background: center / cover no-repeat; animation: kb 25s infinite; }
.hero .sl:nth-child(1), .hero .sl:nth-child(1) i { animation-delay: 0s; }
.hero .sl:nth-child(2), .hero .sl:nth-child(2) i { animation-delay: 5s; }
.hero .sl:nth-child(3), .hero .sl:nth-child(3) i { animation-delay: 10s; }
.hero .sl:nth-child(4), .hero .sl:nth-child(4) i { animation-delay: 15s; }
.hero .sl:nth-child(5), .hero .sl:nth-child(5) i { animation-delay: 20s; }
@keyframes slide { 0% { opacity: 0; } 3% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kb { 0% { transform: scale(1.02); } 24% { transform: scale(1.14); } 100% { transform: scale(1.14); } }
.hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 18px; color: #fff; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(8,18,40,.88) 55%); }
.hero .cap b { display: block; font-size: clamp(20px, 4.2vw, 40px); font-weight: 900; text-shadow: 0 3px 0 #0b1a33, 0 0 18px rgba(0,0,0,.6); line-height: 1.25; }
.hero .cap span { display: block; margin-top: 6px; font-size: clamp(13px, 2.2vw, 19px); font-weight: 800; color: #ffe38a; text-shadow: 0 2px 4px #000; }
.hero .badge { position: absolute; top: 14px; left: 14px; background: linear-gradient(180deg, #ffe27a, #e8a200); color: #4a2c00; font-weight: 900;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 0 #a06a00; font-size: clamp(12px, 2vw, 16px); }
.hero .sl .t { position: absolute; top: 14px; right: 14px; background: rgba(10,25,60,.82); color: #fff; font-weight: 900; border: 2px solid var(--gold2);
  border-radius: 12px; padding: 4px 12px; font-size: clamp(12px, 2vw, 17px); }
@media (prefers-reduced-motion: reduce) { .hero .sl, .hero .sl i { animation: none; } .hero .sl:first-child { opacity: 1; } }

h1 { color: #fff; text-align: center; font-size: clamp(24px, 5vw, 40px); margin: 22px 0 4px; text-shadow: 0 3px 0 #0b1a33; }
.lead { color: #e9eefb; text-align: center; font-weight: 800; margin: 0 0 18px; }
.card { background: linear-gradient(180deg, var(--parch), #f1dca6); border: 3px solid var(--wood); border-radius: 18px; padding: 18px 18px 14px; margin: 16px 0;
  box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.card h2 { margin: 0 0 10px; font-size: 21px; color: var(--navy); }
.card p { margin: 6px 0; }
.sub { color: var(--sub); font-size: 13.5px; }

/* かんたん 3ステップ ＋ 見本動画（動画が あると PC は 横 ならび・スマホは 下） */
.quick { display: grid; gap: 16px; align-items: center; }
.quick.has-video { grid-template-columns: 1.2fr 1fr; }
.q3 { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: q; }
.q3 li { position: relative; padding: 8px 0 8px 46px; border-bottom: 1px dashed var(--parch2); }
.q3 li::before { counter-increment: q; content: counter(q); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 18px; text-align: center; line-height: 34px; }
.q3 b { display: block; font-size: 17px; color: var(--navy); line-height: 1.4; }
.q3 li > span { font-size: 14px; color: var(--sub); }
.quick .btn { display: block; text-align: center; }
.q-vt { font-weight: 900; color: var(--navy); margin: 0 0 6px !important; }
.q-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 3px solid var(--wood); }
.q-frame.tall { aspect-ratio: 9 / 16; width: min(100%, 320px, 39vh); margin: 0 auto; }
.q-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prize { background: #fffaf0; border: 3px solid var(--gold); border-radius: 16px; padding: 14px 10px; text-align: center; }
.prize img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.prize b { display: block; font-size: 15px; color: var(--navy); margin-top: 6px; }
.prize .big { font-size: 28px; font-weight: 900; color: var(--red); line-height: 1.2; }
.prize small { display: block; color: var(--sub); font-size: 12.5px; }
.prize.grand { border-color: var(--red); box-shadow: 0 0 0 3px #ffd6cf; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: st; }
.steps li { background: #fffaf0; border: 2px solid var(--parch2); border-radius: 14px; padding: 10px; font-weight: 700; font-size: 14px; position: relative; padding-top: 34px; }
.steps li::before { counter-increment: st; content: counter(st); position: absolute; top: 8px; left: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 13px; text-align: center; line-height: 22px; }
.tag { display: inline-block; background: var(--navy); color: #fff; border-radius: 8px; padding: 0 8px; font-weight: 900; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timeline div { background: #fffaf0; border-radius: 12px; border-left: 6px solid var(--gold); padding: 8px 10px; font-size: 14px; }
.timeline b { display: block; color: var(--navy); font-size: 16px; }

.goal .bar { height: 22px; background: #e5d3a4; border-radius: 12px; overflow: hidden; border: 2px solid var(--wood); margin: 8px 0 4px; }
.goal .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd23f, #e8a200); transition: width 1s; }
.goal .n { font-weight: 900; font-size: 20px; color: var(--navy); }
.monthly { list-style: none; padding: 0; margin: 6px 0 0; }
.monthly li { padding: 6px 0; border-bottom: 1px dashed var(--parch2); font-weight: 700; }

.form label { display: block; font-weight: 800; margin: 10px 0 4px; }
.form input[type=text], .form input[type=url], .form select { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--parch2); background: #fff; }
.form .chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; margin: 8px 0; }
.form .chk input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.btn { display: inline-block; font: inherit; font-weight: 900; font-size: 18px; padding: 12px 22px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #ffe27a, #e8a200); color: #4a2c00; box-shadow: 0 5px 0 #a06a00; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #a06a00; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: 0 4px 0 #9aa7c2; border: 2px solid var(--navy); font-size: 15px; padding: 8px 14px; }
.msg { font-weight: 800; margin-top: 10px; min-height: 1.4em; }
.msg.ok { color: var(--green); } .msg.ng { color: var(--red); }
.who { font-size: 14px; color: var(--sub); }

.terms ol { padding-left: 1.3em; margin: 0; } .terms li { margin: 6px 0; font-size: 14.5px; }
details summary { cursor: pointer; font-weight: 900; color: var(--navy); }
.faq dt { font-weight: 900; margin-top: 10px; } .faq dd { margin: 2px 0 0; }
.foot { text-align: center; color: #c9d6ee; font-size: 12.5px; margin-top: 20px; } .foot a { color: #c9d6ee; }

/* 締切と 応募フォームへの ボタン（帯の すぐ下。いちばん 上の 画面で 見える ように・2026-09-30） */
.deadline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 14px 0 0; padding: 12px 16px;
  background: rgba(10,25,60,.72); border: 2px solid var(--gold2); border-radius: 16px; text-align: center; }
.deadline p { margin: 0; color: #fff; font-weight: 800; font-size: 16px; }
.deadline p b { color: var(--gold2); font-size: 20px; }
.deadline .btn { font-size: 17px; padding: 10px 20px; }

.adm table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.adm th, .adm td { border: 1px solid #ddd; padding: 4px 6px; vertical-align: top; word-break: break-all; }
.adm td button { font-size: 12px; margin: 2px; }

@media (max-width: 720px) {
  .prizes, .steps, .timeline { grid-template-columns: 1fr 1fr; }
  .hero { aspect-ratio: 4 / 5; }
  .quick.has-video { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .prizes, .steps { grid-template-columns: 1fr; } }
/* せまい 画面：左上の 札と 右上の 文字が 重ならないように、文字を 札の 下へ */
@media (max-width: 560px) { .hero .sl .t { top: 56px; } }
