@charset "UTF-8";
/* =========================================================
   土佐スポーツフェスティバル 2027 告知ページ
   色・文字サイズ・角丸・ボタンの大きさは、デジタル庁デザインシステム
   （DADS）のデザイントークンの値を使用。
   ・キーカラー：DADS Green／アクセント：DADS Yellow 300
   ・カードで囲まず、雑誌や印刷物のように「線」と「余白」で区切る
   ・LINE / Instagram のアプリ内ブラウザでも崩れないよう、
     clamp() / min() / flexbox の gap などは使わない
   ========================================================= */

:root {
  --key-50: #e6f5ec;
  --key-100: #c2e5d1;
  --key-600: #259d63;
  --key-800: #197a4b;
  --key-900: #115a36;
  --key-1000: #0c472a;
  --key-1100: #08351f;
  --gray-50: #f2f2f2;
  --gray-200: #cccccc;
  --gray-420: #949494;
  --gray-700: #4d4d4d;
  --gray-900: #1a1a1a;
  --white: #ffffff;
  --black: #000000;
  --yellow-300: #ffd43d;

  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Helvetica, Arial, var(--font-sans);

  --radius-8: 0.5rem;
  --radius-full: 624.9375rem;

  --line: 2px solid var(--gray-900);
}

/* ---------- ベース ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* ページ内リンク（開催概要を見る・TOPなど）はスッと滑って移動 */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1.125rem;   /* 18px */
  line-height: 1.8;
  letter-spacing: 0.03em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

p {
  margin: 0;
}

a {
  color: var(--key-900);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--key-1000);
}

/* DADS のフォーカス表現 */
a:focus {
  outline: 4px solid var(--black);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--yellow-300);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--white);
  color: var(--gray-900);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 64px;
  padding-bottom: 72px;
}

/* 方眼のドット模様（メインビジュアルと同じ） */
.section--dots {
  background: var(--white) radial-gradient(var(--key-100) 1.6px, transparent 1.8px) 0 0 / 24px 24px;
}

.section--green {
  background: var(--key-50);
}

.note {
  margin-top: 14px;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
}

.center {
  text-align: center;
}

/* 蛍光ペン風の下線 */
.marker {
  background: linear-gradient(transparent 62%, var(--yellow-300) 62%);
}

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: var(--line);
  background: var(--white);
}

.header-inner {
  padding-top: 10px;
  padding-bottom: 4px;
}

.site-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.site-name-en {
  display: block;
  color: var(--key-800);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.header-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 4px -8px 0;
}

.header-nav a {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--key-800);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

/* ---------- メインビジュアル（ポップ版） ---------- */
.hero {
  overflow: hidden;
  background: var(--white) radial-gradient(var(--key-100) 1.6px, transparent 1.8px) 0 0 / 24px 24px;
}

.hero-inner {
  padding-top: 36px;
  padding-bottom: 40px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 16px;
  border: var(--line);
  border-radius: var(--radius-full);
  background: var(--yellow-300);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  -webkit-transform: rotate(-3deg);
  transform: rotate(-3deg);
}

.hero-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
}

.hero-year {
  display: block;
  margin-top: 4px;
  color: var(--key-800);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 4px 4px 0 var(--yellow-300);
}

.hero-catch {
  margin-top: 22px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.7;
}

.hero-facts {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  line-height: 1.5;
}

.hero-facts li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 38px;
}

.hero-facts img {
  position: absolute;
  left: 0;
  top: -1px;
}

.hero-image {
  margin-top: 28px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* スマホ・タブレット：動くイラスト（走る人）をタイトルの右横に置く */
@media (max-width: 959px) {
  .hero-inner {
    position: relative;
  }

  .hero-image {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 28vw;
    max-width: 170px;
    margin-top: 0;
  }
}

/* スマホ：タイトルが絵とぶつからないよう、画面幅に合わせた大きさに */
@media (max-width: 599px) {
  .hero-title {
    font-size: 8vw;
  }
}

/* ---------- ボタン（DADS：高さ56px以上） ---------- */
.button-row {
  margin-top: 26px;
}

.button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: var(--line);
  border-radius: var(--radius-full);
  box-shadow: 0 5px 0 var(--gray-900);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  word-break: break-all;
}

.button + .button {
  margin-top: 14px;
}

.button:hover {
  text-decoration: underline;
}

.button:active {
  box-shadow: 0 1px 0 var(--gray-900);
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
}

.button--primary {
  background: var(--key-800);
  color: var(--white);
}

.button--primary:hover {
  background: var(--key-1000);
  color: var(--white);
}

.button--secondary {
  background: var(--white);
  color: var(--key-900);
}

.button--secondary:hover {
  background: var(--key-50);
  color: var(--key-1000);
}

.button--small {
  min-height: 48px;
  margin-top: 14px;
  padding: 10px 20px;
  font-size: 1rem;
}

.button--pending {
  border-style: dashed;
  border-color: var(--gray-420);
  background: var(--gray-50);
  box-shadow: none;
  color: var(--gray-700);
}

.button--pending:hover {
  text-decoration: none;
}

.button--pending:active {
  -webkit-transform: none;
  transform: none;
}

/* ---------- テーマ（トラックのレーン風の帯） ---------- */
.theme {
  position: relative;
  padding: 48px 0;
  background: var(--key-800);
  color: var(--white);
  text-align: center;
}

.theme::before,
.theme::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}

.theme::before {
  top: 12px;
}

.theme::after {
  bottom: 12px;
}

.theme-label {
  margin-bottom: 6px;
  color: var(--yellow-300);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.theme-text {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.7;
}

/* ---------- 見出し（小さな万国旗＋蛍光ペン） ---------- */
.sec-head {
  margin-bottom: 40px;
  text-align: center;
}

.sec-head img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 6px;
}

.sec-head h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
}

.sec-lead {
  margin-top: 14px;
}

.sub-head {
  margin: 64px 0 24px;
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

/* ---------- ゼッケン（番号） ---------- */
.bib {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 40px;
  border: var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--gray-900);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 36px;
  text-align: center;
}

.bib::before,
.bib::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-900);
}

.bib::before {
  left: 5px;
}

.bib::after {
  right: 5px;
}

/* ---------- 開催概要 ---------- */
.overview {
  max-width: 940px;
  margin: 0 auto;
}

.ov-label {
  margin-bottom: 6px;
  color: var(--key-800);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.ov-when,
.ov-where {
  padding: 8px 0 28px;
}

.ov-where {
  padding-top: 30px;
  background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
}

.ov-year {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.ov-date {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.ov-week {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--gray-900);
  color: var(--white);
  font-size: 1.375rem;
  line-height: 2.75rem;
  text-align: center;
  vertical-align: 0.4rem;
}

.ov-time {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 900;
}

.ov-place {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
}

.ov-room {
  font-size: 1.25rem;
  font-weight: 700;
}

.ov-addr {
  margin-top: 4px;
  color: var(--gray-700);
  font-size: 1rem;
}

.ov-where .button--small {
  display: inline-block;
  width: auto;
  margin-top: 16px;
}

/* 地図：まっすぐな線の枠 */
.ov-map {
  margin: 4px 0 28px;
  overflow: hidden;
  border: var(--line);
  border-radius: 8px;
}

.ov-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.ov-facts {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding-top: 12px;
  background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
}

.ov-facts div {
  padding: 18px 12px 14px 0;
}

.ov-facts div:nth-child(2n) {
  padding-left: 16px;
  background: url(images/line-v.svg) no-repeat 0 14px / 12px calc(100% - 20px);
}

.ov-facts dt {
  color: var(--key-800);
  font-size: 0.9375rem;
  font-weight: 700;
}

.ov-facts dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
}

.ov-facts small {
  display: block;
  margin-top: 2px;
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-weight: 400;
}

/* 当日の流れ（タイムテーブル） */
.ov-flow {
  margin-top: 32px;
}

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
}

.flow li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  padding: 14px 0 12px;
  background: url(images/line-h.svg) no-repeat 0 100% / 100% 12px;
}

.flow-time {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 9.5em;
  color: var(--key-800);
  font-size: 1.125rem;
  font-weight: 900;
}

.flow-name {
  font-size: 1.25rem;
  font-weight: 900;
}

/* ---------- どんな体育祭？（読みもの） ---------- */
.story {
  max-width: 860px;
  margin: 0 auto;
}

/* 大きな引用のような一文 */
.story-lead {
  margin-bottom: 28px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.story-body p + p {
  margin-top: 14px;
}

/* イラストを文章の横に回り込ませる */
.story-image {
  float: right;
  width: 120px;
  margin: 0 0 8px 12px;
}

.story-body::after {
  content: "";
  display: block;
  clear: both;
}

/* 2つのルール：囲まず、手描きの線で分ける */
.two-rules {
  max-width: 860px;
  margin: 56px auto 0;
  padding-top: 24px;
  background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
}

.two-rules-who {
  color: var(--key-800);
  font-size: 0.9375rem;
  font-weight: 700;
}

.two-rules-name {
  margin-bottom: 4px;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
}

.two-rules-plus {
  margin: 16px 0;
  color: var(--key-800);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

/* 流れ：トラックのレーンを走るイメージ */
.track {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 20px;
  bottom: 20px;
  border-left: 3px dashed var(--key-800);
}

.track li {
  position: relative;
  padding: 0 0 22px 66px;
}

.track .bib {
  position: absolute;
  left: 0;
  top: 0;
}

.track strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
}

/* ルールガチャ：イラスト＋文章（カードにしない） */
.gacha {
  max-width: 860px;
  margin: 64px auto 0;
  padding-top: 28px;
  background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
}

.gacha-image {
  display: block;
  width: 120px;
  margin: 0 auto 12px;
}

.gacha-title {
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 900;
}

.gacha-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

/* 「」でくくった一行ずつのリスト */
.gacha-list li {
  padding: 4px 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.gacha-list li::before {
  content: "「";
  color: var(--key-800);
}

.gacha-list li::after {
  content: "」";
  color: var(--key-800);
}

/* ---------- 競技（印刷したプログラム） ---------- */
.program-sheet {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
}

.program-sheet li {
  padding: 20px 0 18px;
  background: url(images/line-h.svg) no-repeat 0 100% / 100% 12px;
}

/* 番号・競技名……人数 の一行（点線のリーダー） */
.ps-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
}

.ps-no {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 2rem;
  color: var(--key-800);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
}

.ps-name {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
}

.ps-text {
  margin-top: 4px;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.program-doodles {
  margin-top: 18px;
  text-align: center;
}

.program-doodles img {
  width: 56px;
  height: 56px;
  margin: 0 6px;
}

/* ---------- 4つのものさし（メダル）※デザインそのまま ---------- */
.medals {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
}

.medals li {
  padding: 0 4px 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.medals img {
  width: 104px;
}

.medal-name {
  margin: 4px 0 4px;
  color: var(--key-800);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.award {
  max-width: 760px;
  margin: 8px auto 0;
  text-align: center;
}

/* ---------- 申込方法 ---------- */
/* 大きな数字＋文章（囲まない） */
.howto {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.howto li {
  position: relative;
  padding: 18px 0 18px 64px;
  background: url(images/line-h.svg) no-repeat 0 100% / 100% 12px;
}

.howto-no {
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--key-800);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-style: italic;
  line-height: 1.2;
}

.entry-action {
  max-width: 860px;
  margin: 32px auto 0;
  text-align: center;
}

.button--wide {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.onegai {
  max-width: 860px;
  margin: 56px auto 0;
  text-align: center;
}

.onegai img {
  width: 200px;
}

.onegai-title {
  margin: 12px 0 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

.onegai-list {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.onegai-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 32px;
  line-height: 1.6;
}

.onegai-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 9px;
  height: 17px;
  border-right: 3px solid var(--key-800);
  border-bottom: 3px solid var(--key-800);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* ---------- 主催・共催 ---------- */
/* 「主催／共催／後援」を、プログラムの奥付のように1行ずつ並べる */
.orgs {
  max-width: 860px;
  margin: 0 auto;
}

.org {
  padding: 20px 0;
  font-size: 1rem;
  line-height: 1.8;
}

.org + .org {
  background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
}

.org-role {
  color: var(--key-800);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.3em;
}

.org dd {
  margin: 0;
}

/* 団体のInstagram・ホームページへのリンク（文字＋矢印） */
.org-links {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.org-links li {
  display: inline-block;
  margin-right: 20px;
}

.org-links a {
  display: inline-block;
  min-height: 48px;
  padding: 10px 0;
  color: var(--key-900);
  font-weight: 900;
  line-height: 28px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.org-links a[href]:hover {
  color: var(--key-600);
}

/* 右向きの矢印 */
.org-links a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  vertical-align: 2px;
}

.org-name {
  margin-bottom: 4px;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
}

/* ---------- 右下に常にあるボタン（申込・TOP） ---------- */
.float-nav {
  position: fixed;
  right: 12px;
  right: calc(12px + env(safe-area-inset-right));
  bottom: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
}

.float-nav a {
  display: block;
  width: 64px;
  height: 64px;
  border: var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--gray-900);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.float-nav a + a {
  margin-top: 12px;
}

.float-entry {
  padding-top: 12px;
  background: var(--key-800);
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1.25;
}

.float-entry:hover {
  background: var(--key-1000);
  color: var(--white);
}

.float-top {
  padding-top: 12px;
  background: var(--yellow-300);
  color: var(--gray-900);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  line-height: 1;
}

.float-top:hover {
  background: var(--white);
  color: var(--gray-900);
}

/* TOPの上向き矢印 */
.float-arrow {
  display: block;
  width: 12px;
  height: 12px;
  margin: 4px auto 6px;
  border-top: 3px solid var(--gray-900);
  border-left: 3px solid var(--gray-900);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.float-nav a:active {
  box-shadow: 0 1px 0 var(--gray-900);
  -webkit-transform: translateY(3px);
  transform: translateY(3px);
}

/* ---------- お問い合わせ（黄色の帯） ---------- */
.contact-band {
  padding: 56px 0 60px;
  border-top: var(--line);
  background: var(--yellow-300);
  text-align: center;
}

.contact-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 900;
}

.contact-name {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
}

.contact-sub {
  font-size: 1rem;
}

.contact-list {
  margin: 24px 0 0;
}

.contact-list div {
  padding: 6px 0;
}

.contact-list dt {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}

.contact-list dd {
  margin: 0;
}

/* 電話・メール・公式LINEは、同じ形の押しやすいボタンに */
.contact-list a {
  display: inline-block;
  min-height: 56px;
  margin-top: 6px;
  padding: 10px 28px;
  border: var(--line);
  border-radius: 9999px;
  background: var(--white);
  box-shadow: 0 4px 0 var(--gray-900);
  color: var(--gray-900);
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.6;
  text-decoration: none;
  word-break: break-all;
}

.contact-list a:hover {
  background: var(--key-50);
}

.contact-list a:active {
  box-shadow: 0 1px 0 var(--gray-900);
  -webkit-transform: translateY(3px);
  transform: translateY(3px);
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 36px 0 28px;
  background: var(--key-1100);
  color: var(--white);
  font-size: 1rem;
  text-align: center;
}

.footer-bunting {
  width: 140px;
  height: auto;
  margin-bottom: 10px;
}

.footer-catch {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.6;
}

.footer-name {
  margin-top: 12px;
  color: var(--yellow-300);
  font-weight: 700;
}

.footer-orgs {
  margin: 10px 0 0;
}

.footer-orgs div {
  margin: 2px 0;
}

.footer-orgs dt,
.footer-orgs dd {
  display: inline;
  margin: 0;
}

.footer-orgs dt::after {
  content: "：";
}

.copyright {
  margin-top: 20px;
  color: var(--key-100);
}

.copyright small {
  font-size: 0.875rem;
}

/* フッター下の余白は控えめに（右下ボタンの分だけ少し） */
.site-footer {
  padding-bottom: 56px;
}

/* =========================================================
   タブレット（600px〜）
   ========================================================= */
@media (min-width: 600px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .header-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-nav {
    margin: 0;
  }

  .header-nav a {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    padding: 8px 14px;
  }

  .button-row .button {
    display: inline-block;
    width: auto;
    min-width: 240px;
    margin: 0 12px 14px 0;
    vertical-align: top;
  }

  .button + .button {
    margin-top: 0;
  }

  .button--wide {
    display: block;
  }

  .story-image {
    width: 180px;
    margin: 0 0 8px 24px;
  }

  /* 2つのルールを左右に、間に手描きの縦線 */
  .two-rules {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
  }

  .two-rules-plus {
    margin: 0;
    background: url(images/line-v.svg) no-repeat 50% 0 / 12px 100%;
    color: transparent;
  }

  .gacha {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 170px 1fr;
    grid-column-gap: 32px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
  }

  .gacha-image {
    width: 170px;
    margin: 0;
  }

  .gacha-list {
    -webkit-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 24px;
    column-gap: 24px;
  }

  .gacha-list li {
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
  }

  .ps-name {
    font-size: 1.375rem;
  }

  /* 主催・共催を左右に並べる */
  .orgs {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }

  .org {
    padding: 8px 32px 8px 0;
  }

  .org + .org {
    -ms-grid-column: 2;
    padding: 8px 0 8px 32px;
    background: url(images/line-v.svg) no-repeat 0 0 / 12px 100%;
  }

  .float-nav {
    right: 20px;
    bottom: 20px;
  }

  .float-nav a {
    width: 76px;
    height: 76px;
  }

  .float-entry {
    padding-top: 16px;
    font-size: 1rem;
  }

  .float-top {
    padding-top: 16px;
    font-size: 0.875rem;
  }

  .site-footer {
    padding-bottom: 32px;
  }

}

/* =========================================================
   PC（960px〜）：横幅を広く使い、中央にまとめる
   ========================================================= */
@media (min-width: 960px) {
  .contact-list {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-list div + div {
    background: url(images/line-v.svg) no-repeat 0 0 / 12px 100%;
  }

  .contact-list div:nth-child(2) { -ms-grid-column: 2; }
  .contact-list div:nth-child(3) { -ms-grid-column: 3; }

  .flow {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1.4fr 1.4fr 1.4fr 1fr;
    grid-template-columns: 1fr 1.4fr 1.4fr 1.4fr 1fr;
    padding: 12px 0;
    background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px, url(images/line-h.svg) no-repeat 0 100% / 100% 12px;
  }

  .flow li {
    display: block;
    padding: 12px 16px 10px 20px;
    background: url(images/line-v.svg) no-repeat 0 12px / 12px calc(100% - 20px);
  }

  .flow li:first-child {
    padding-left: 0;
    background: none;
  }

  .flow li:nth-child(2) { -ms-grid-column: 2; }
  .flow li:nth-child(3) { -ms-grid-column: 3; }
  .flow li:nth-child(4) { -ms-grid-column: 4; }
  .flow li:nth-child(5) { -ms-grid-column: 5; }

  .flow-time {
    display: block;
    width: auto;
  }

  .flow-name {
    display: block;
    font-size: 1.5rem;
  }
  .section {
    padding-top: 96px;
    padding-bottom: 104px;
  }

  .hero-inner {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-gap: 32px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: 3.5625rem;
  }

  .hero-year {
    font-size: 4.5rem;
  }

  .hero-catch {
    font-size: 1.625rem;
  }

  .hero-image {
    margin-top: 0;
  }

  .theme {
    padding: 64px 0;
  }

  .theme-text {
    font-size: 2.25rem;
  }

  .sec-head {
    margin-bottom: 56px;
  }

  .sec-head img {
    width: 150px;
  }

  .sec-head h2 {
    font-size: 2.25rem;
  }

  .note {
    text-align: center;
  }

  .ov-main {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
  }

  .ov-where {
    padding: 8px 0 28px 40px;
    background: url(images/line-v.svg) no-repeat 0 8px / 12px calc(100% - 24px);
  }

  .ov-date {
    font-size: 4rem;
  }

  .ov-place {
    font-size: 2rem;
  }

  .ov-map iframe {
    height: 360px;
  }

  .ov-facts {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .ov-facts div,
  .ov-facts div:nth-child(2n) {
    padding: 20px 16px 10px 24px;
    background: url(images/line-v.svg) no-repeat 0 16px / 12px calc(100% - 20px);
  }

  .ov-facts div:first-child {
    padding-left: 0;
    background: none;
  }

  .story-lead {
    font-size: 2.75rem;
  }

  .story-body {
    font-size: 1.1875rem;
    line-height: 2;
  }

  .story-image {
    width: 220px;
    margin: -24px 0 8px 40px;
  }

  /* 流れは横一列：レーンの線を横に */
  .track {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 24px;
  }

  .track::before {
    left: 24px;
    right: 24px;
    top: 20px;
    bottom: auto;
    border-left: 0;
    border-top: 3px dashed var(--key-800);
  }

  .track li {
    padding: 58px 0 0;
    text-align: center;
  }

  .track .bib {
    left: 50%;
    margin-left: -24px;
  }

  .program-sheet li {
    padding: 24px 0 22px;
  }

  .ps-name {
    font-size: 1.5rem;
  }

  .ps-text {
    padding-left: 2.5rem;
  }

  .ps-no {
    width: 2.5rem;
    font-size: 1.75rem;
  }

  .medals {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
  }

  .howto {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 32px 1fr;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 32px;
  }

  .howto li {
    padding: 64px 0 18px;
  }

  .howto-no {
    top: 0;
    font-size: 3.25rem;
  }

  .onegai {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-column-gap: 40px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: left;
  }

  .onegai img {
    width: 240px;
  }

  .contact-band {
    padding: 72px 0 80px;
  }

  .contact-title {
    font-size: 2.25rem;
  }
}

/* =========================================================
   モーション：スクロールしたときに下からふわっと出てくる動きだけ
   （index.html 末尾の小さなスクリプトが .js-reveal を付けたときだけ動く）
   ========================================================= */
.js-reveal .reveal {
  opacity: 0;
  -webkit-transform: translateY(24px);
  transform: translateY(24px);
  -webkit-transition: opacity 0.7s ease, -webkit-transform 0.7s ease;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:active {
    -webkit-transform: none;
    transform: none;
  }
}

/* =========================================================
   スマホ・タブレット（〜959px）の見え方の調整
   ========================================================= */
@media (max-width: 959px) {
  /* 日時・会場：中央にそろえて、右に変な余白が出ないように */
  .ov-when,
  .ov-where {
    text-align: center;
  }

  /* アイデアが競技になるまで：2×2にまとめ、まっすぐな線で区切る */
  .track {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
    margin: 0 auto;
    background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px, url(images/line-h.svg) no-repeat 0 100% / 100% 12px;
  }

  .track::before {
    display: none;
  }

  .track li {
    padding: 22px 14px 20px;
    text-align: center;
  }

  .track li:nth-child(2n) {
    -ms-grid-column: 2;
    background: url(images/line-v.svg) no-repeat 0 16px / 12px calc(100% - 32px);
  }

  .track li:nth-child(n+3) {
    -ms-grid-row: 2;
  }

  .track li:nth-child(3) {
    background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px;
  }

  .track li:nth-child(4) {
    background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px, url(images/line-v.svg) no-repeat 0 16px / 12px calc(100% - 32px);
  }

  .track .bib {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 8px;
  }

  .track strong {
    margin-bottom: 4px;
  }

  .track p {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

/* =========================================================
   スマホ（〜599px）
   ========================================================= */
@media (max-width: 599px) {
  /* 対象・主催などの文字が変なところで折り返さないように */
  .ov-facts dd {
    font-size: 1.0625rem;
  }

  /* 基本ルール＋学生ルール：中央にそろえて、上下の線でひとまとまりに */
  .two-rules {
    padding: 28px 0 26px;
    text-align: center;
    background: url(images/line-h.svg) no-repeat 0 0 / 100% 12px, url(images/line-h.svg) no-repeat 0 100% / 100% 12px;
  }

  .two-rules-plus {
    width: 44px;
    height: 44px;
    margin: 18px auto;
    border-radius: 50%;
    background: var(--key-800);
    color: var(--white);
    font-size: 1.75rem;
    line-height: 44px;
  }
}
