@charset "UTF-8";
/* ==========================================================================
   第19回 世界こどもハイクコンテスト オンライン特別表彰式 LP
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables / Base
   -------------------------------------------------------------------------- */
:root {
  --navy: #1e2549;
  --red: #c8102e;
  --red-dark: #8e0b20;
  --blue: #008fcc;
  --ink: #231815;
  --ink-sub: #5b5551;
  --text: #1e2549;
  --muted: #5b6280;
  --line: #d9dce6;
  --bg-soft: #f5f6fa;
  --cream: #fffbe0;
  --yellow: #ffe900;
  --rainbow: #008fcc 0 16.66%, #da4e7b 0 33.33%, #68ae28 0 50%,
             #e07a00 0 66.66%, #9b5998 0 83.33%, #00a596 0;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Roboto", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul,
ol { list-style: none; }

.en {
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
}

.inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   2. Header / Global navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 32px;
}

.logos { display: flex; align-items: center; gap: 24px; }
.logos img { width: auto; height: 36px; }
.logos .logo-haiku { height: 44px; }
.logos h1 { font-size: 0; line-height: 0; }

.site-header__right { display: flex; align-items: center; gap: 24px; }

.util-nav { display: flex; gap: 20px; font-size: 13px; font-weight: 700; }
.util-nav a { text-decoration: none; }
.util-nav a:hover { text-decoration: underline; }

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--navy);
  font: 700 11px var(--font-en);
  letter-spacing: .08em;
  cursor: pointer;
}
.menu-btn__bars { position: relative; display: block; width: 28px; height: 18px; }
.menu-btn__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s, top .25s;
}
.menu-btn__bars i:nth-child(1) { top: 0; }
.menu-btn__bars i:nth-child(2) { top: 8px; }
.menu-btn__bars i:nth-child(3) { top: 16px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.gnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(30, 37, 73, .12);
  transition: max-height .35s ease;
}
.gnav.is-open { max-height: calc(100vh - 80px); overflow: auto; visibility: visible; }

.gnav__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
}
.gnav__list > li > a,
.gnav__head {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}
.gnav__list .en { display: block; font-size: 11px; }
.gnav__list .has-sub { grid-row: span 3; }
.gnav__sub { padding: 8px 0 8px 12px; font-size: 13px; }
.gnav__sub a { display: block; padding: 5px 0; text-decoration: none; }
.gnav a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   3. Main visual / Band
   -------------------------------------------------------------------------- */
.mv img { width: 100%; }

.mv-band {
  padding: 14px 16px;
  background: #2f3542;
  color: #fff;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: .06em;
}
.mv-band .en { display: block; margin-top: 2px; font-size: .6em; color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   4. Hero (date / join)
   -------------------------------------------------------------------------- */
.hero { padding: 40px 0 72px; text-align: center; }

.datebox {
  position: relative;
  overflow: hidden;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  border: 2px solid var(--yellow);
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
}
.datebox::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--rainbow));
}

.datebox__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 56px);
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1.15;
}
.datebox__date,
.datebox__time { font-size: clamp(34px, 5.2vw, 84px); letter-spacing: .02em; }
.datebox__date small { margin-left: .15em; font-size: .42em; }
.datebox__dash { margin: 0 .12em; }
.datebox__time small { margin-left: .35em; font-size: .32em; color: var(--ink-sub); vertical-align: .4em; }
.datebox__sep { align-self: stretch; width: 3px; border-radius: 2px; background: var(--ink); opacity: .2; }
.datebox__tz { margin-top: 12px; font-size: clamp(13px, 1.1vw, 16px); color: var(--ink-sub); }
.datebox__online {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
}

.hero__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 14px; }
.hero__links a { font-size: 14px; font-weight: 700; color: var(--navy); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--red-dark);
  transition: transform .15s, box-shadow .15s;
}
.btn .en { font-size: 13px; color: rgba(255, 255, 255, .85); }
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--red-dark); }

.btn--join { min-width: 320px; margin-top: 36px; padding: 20px 40px; font-size: 20px; }
.btn--works { min-width: 280px; margin-top: 28px; padding: 16px 40px; font-size: 17px; }
.btn--works .en { font-size: 12px; }

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--center { text-align: center; }

.sec-title { margin-bottom: 44px; text-align: center; }
.sec-title h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 900; letter-spacing: .06em; }
.sec-title .en { display: block; font-size: 14px; }
.sec-title::after { content: ""; display: block; width: 40px; height: 3px; margin: 16px auto 0; background: var(--red); }

.lead { max-width: 720px; margin: 0 auto; font-size: 16px; }
.lead p + p { margin-top: 1em; }
.lead .en { display: block; margin-top: 1.2em; font-size: 14px; line-height: 1.7; }

.works-lead { max-width: 640px; margin: 0 auto; font-size: 16px; }
.works-lead .en { display: block; margin-top: 8px; font-size: 13px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   7. Program table
   -------------------------------------------------------------------------- */
.program { width: 100%; border-collapse: collapse; border: 2px solid var(--navy); background: #fff; }
.program th { padding: 16px; background: var(--navy); color: #fff; font-size: 16px; letter-spacing: .1em; }
.program th + th { border-left: 1px solid rgba(255, 255, 255, .4); }
.program td { padding: 18px 20px; border-top: 1px solid var(--navy); vertical-align: middle; }
.program .time {
  position: relative;
  width: 22%;
  border-right: 1px solid var(--navy);
  font: 700 20px var(--font-en);
  text-align: center;
  white-space: nowrap;
}
.program .item { font-size: 17px; }
.program .item .en { display: block; font-size: 13px; line-height: 1.5; }
.program .role { font-size: 13px; color: var(--muted); }
.program .is-pre td { background: var(--bg-soft); color: var(--muted); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.label b { font: 700 10px var(--font-en); letter-spacing: .12em; opacity: .85; }

/* Grand Prize (highlight) */
.program .is-feature td { background: var(--cream); }
.program .is-feature .time { color: var(--red); font-size: 22px; }
.program .is-feature .time::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--rainbow));
}
.program .is-feature .item { padding-top: 22px; padding-bottom: 22px; }
.program .is-feature-start td { border-top: 3px solid var(--red); }
.program .is-feature-end td { border-top: 1px dashed #e0c400; border-bottom: 3px solid var(--red); }
.program .is-feature .label { background: var(--red); }
.feature-title { display: block; font-size: 22px; font-weight: 900; letter-spacing: .04em; color: var(--ink); }
.feature-title::before { content: "★"; margin-right: .35em; color: #e0a800; }

/* 20th contest (notice) */
.program .is-notice td { background: #eef6fb; border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.program .is-notice .time { color: var(--blue); font-size: 21px; }
.program .is-notice .time::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--blue);
}
.program .is-notice .item { padding-top: 20px; padding-bottom: 20px; }
.program .is-notice .label { background: var(--blue); }
.notice-title { display: block; font-size: 19px; font-weight: 700; color: var(--ink); }

.program-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: right; }

/* --------------------------------------------------------------------------
   8. How to join
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 700 16px var(--font-en);
}
.step h3 { margin: 6px 0 8px; font-size: 17px; }
.step p { font-size: 14px; }
.step .en { display: block; margin-top: 8px; font-size: 12px; line-height: 1.6; }

.zoom-card { margin-top: 40px; padding: 32px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; text-align: center; }
.zoom-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  max-width: 420px;
  margin: 0 auto 8px;
  text-align: left;
}
.zoom-card dt { font-size: 14px; font-weight: 700; color: var(--muted); }
.zoom-card dt .en { display: block; }
.zoom-card dd { font: 700 20px var(--font-en); letter-spacing: .04em; }
.zoom-card .btn--join { margin-top: 20px; }

.notes { margin-top: 40px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.notes h3 { margin-bottom: 10px; font-size: 16px; }
.notes ul { padding-left: 1.2em; list-style: disc; font-size: 14px; }
.notes li + li { margin-top: 6px; }
.notes li .en { display: block; font-size: 12px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   9. Related links
   -------------------------------------------------------------------------- */
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s;
}
.link-card:hover { border-color: var(--navy); }
.link-card .en { display: block; font-size: 12px; }
.link-card::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   10. Footer / Fixed UI
   -------------------------------------------------------------------------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--navy); text-align: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logos { justify-content: center; gap: 28px; }
.footer-nav,
.footer-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer-nav { margin-top: 32px; font-size: 14px; font-weight: 700; }
.footer-sub { margin-top: 16px; font-size: 12px; }
.copyright { display: block; margin-top: 28px; font-size: 11px; color: var(--muted); }

.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 25;
  width: 56px;
  height: 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.totop.is-show { opacity: 1; pointer-events: auto; }

.sp-join { display: none; }

/* --------------------------------------------------------------------------
   11. Responsive (SP)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body { padding-bottom: 76px; }

  .site-header__inner { height: 60px; padding: 0 16px; }
  .logos { gap: 12px; }
  .logos img { height: 24px; }
  .logos .logo-haiku { height: 30px; }
  .util-nav { display: none; }
  .gnav.is-open { max-height: calc(100vh - 60px); }
  .gnav__list { grid-template-columns: 1fr; padding: 16px 20px 32px; }
  .gnav__list .has-sub { grid-row: auto; }

  .mv-band__sep { display: block; height: 0; overflow: hidden; }

  .hero { padding-bottom: 56px; }
  .datebox { width: auto; margin: 0 16px; padding: 32px 16px 24px; }
  .datebox__main { flex-direction: column; gap: 4px; }
  .datebox__sep { display: none; }
  .datebox__time { font-size: 30px; }

  .btn--join { width: 100%; min-width: 0; font-size: 18px; }

  .section { padding: 60px 0; }

  .program td { padding: 14px 12px; }
  .program .time { width: 28%; font-size: 16px; }
  .program .item { font-size: 15px; }
  .program .is-feature .time { font-size: 17px; }
  .program .is-notice .time { font-size: 16px; }
  .feature-title { font-size: 16px; letter-spacing: 0; }
  .notice-title { font-size: 15px; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .zoom-card,
  .notes { padding: 24px 20px; }
  .link-cards { grid-template-columns: 1fr; }

  .site-footer .logos img { height: 26px; }
  .site-footer .logos .logo-haiku { height: 32px; }

  .totop { right: 16px; bottom: 92px; width: 44px; height: 44px; }

  .sp-join {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .95);
  }
  .sp-join a {
    display: block;
    padding: 14px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
  }
}

/* --------------------------------------------------------------------------
   12. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header { position: static; }
  .gnav,
  .totop,
  .sp-join { display: none !important; }
  body { padding-bottom: 0; }
}
