:root {
  --orange: #F0541C;
  --orange-d: #D3430F;
  --ink: #0E0E0E;
  --white: #FFFFFF;
  --bg-sub: #EFEFEF;
  --line: #DCDCDC;
  --text: #5A5A5A;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

body,
button,
input,
textarea {
  font-family: "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#outline,
#class,
#sponsor,
#entry {
  scroll-margin-top: 80px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 40px, 1280px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-block;
  font-family: "Anton", sans-serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  transform: skewX(-17deg); /* ★削除禁止：合成イタリック禁止のため skew で傾ける */
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a {
  text-decoration: none;
}

.desktop-nav a:not(.entry-link):hover {
  color: var(--orange);
}

.entry-link,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 25px;
  color: var(--white);
  background: var(--orange);
  border-radius: 2px;
  font-weight: 900;
  text-decoration: none;
  transition: background-color .2s ease;
}

.entry-link:hover,
.button-primary:hover,
.submit-button:hover {
  background: var(--orange-d);
}

.mobile-actions,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  height: clamp(620px, 64.6vw, 930px);
  padding: 118px max(28px, calc(50vw - 640px)) 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-watermark {
  position: absolute;
  z-index: 0;
  top: 7%;
  left: 42%;
  color: transparent;
  font-family: "Anton", sans-serif;
  font-size: 30vw;
  line-height: .8;
  white-space: nowrap;
  pointer-events: none;
  -webkit-text-stroke: 2px #E4E4E4;
  transform: skewX(-17deg); /* ★削除禁止：合成イタリック禁止のため skew で傾ける */
}

.hero-scene {
  position: absolute;
  inset: 0;
}

.hero-orange,
.hero-orange-photo {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 24%, 44% 36%, 34% 100%, 100% 100%);
}

.hero-orange {
  z-index: 2;
  background: var(--orange);
}

.hero-orange-photo {
  /* ★削除禁止：オレンジの帯(.hero-band)より前。後ろにすると
     帯の塗りで写真が隠れて、写真を載せる意味が無くなる。 */
  z-index: 5;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ★削除禁止：重ね合わせ(multiply)は img ではなく、この枠自体に掛ける。
   img 側に書くと、親が重ね合わせの区切りになってオレンジと混ざらず、
   ただの白黒写真として出てしまう。 */
.hero-orange-photo {
  mix-blend-mode: multiply;
  opacity: 1;
}

.hero-orange-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ★削除禁止：背景写真(crowd.webp)は顔が写らないよう自転車と足元だけを
     切り出してある。上寄せにして、下half の床だけにならないようにする。 */
  object-position: 50% 22%;
  transform-origin: 0 0;
  transform: none;
  filter: grayscale(1) brightness(1.42) contrast(.82);
  mix-blend-mode: normal;
  opacity: 1;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: 62%;
}

.hero-title {
  margin: 0;
  font-family: "Anton", sans-serif;
  /* ★削除禁止：元案の実測値に合わせた指定。
     文字の高さ＝1440px幅で約204px、横幅は Anton の約72%、見た目の傾き17度。
     scaleX で細くすると傾きが浅く見えるため、skew は23度にして17度に見せる。 */
  font-size: clamp(44px, 13.4vw, 193px);
  font-weight: 400;
  /* ★削除禁止：Anton は字面が大きく、0.8 前後だと上下の行が重なる。
     行ごと傾けるぶん重なりが目立つので 1.0 を下回らせないこと。 */
  line-height: 1.02;
  letter-spacing: -.01em;
  transform-origin: left center;
  /* ★削除禁止：見出しは「行ごと斜めに配置」する。rotate が無いと元案にならない。 */
  transform: rotate(-7deg) scaleX(.72) skewX(-23deg);
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title span:nth-child(2) {
  margin-left: .08em;
}

.hero-subcopy-row {
  margin: 28px 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-subcopy {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 900;
  white-space: nowrap;
}

.hero-button {
  min-width: 300px;
  padding: 19px 26px;
  justify-content: space-between;
  gap: 40px;
  font-size: 17px;
}

.event-block-mobile,
.hero-mobile-entry {
  display: none;
}

.event-date {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(30px, 3.95vw, 54px);
  font-weight: 700;
  line-height: 1;
  transform: skewX(-17deg); /* ★削除禁止：合成イタリック禁止のため skew で傾ける */
}

.event-date > span {
  width: 3px;
  height: 44px;
  background: var(--orange);
  transform: skewX(12deg);
}

/* 日付のうしろに付ける曜日。数字より小さく、オレンジで添える */
.event-date small {
  margin-left: .32em;
  font-size: .44em;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--orange);
  vertical-align: .34em;
}

/* スマホの日付はオレンジの上に乗るので、曜日はオレンジではなく白にする */
.event-block-mobile .event-date small {
  color: var(--white);
}

/* ★削除禁止：白地の上では見えないが、オレンジの帯に文字が掛かったときに
   下地を白く抜いて読めるようにする保険。スマホの白文字側には掛けない。 */
.event-block-desktop .event-date,
.event-block-desktop .event-caption {
  text-shadow:
    0 0 10px rgba(255, 255, 255, .95),
    0 0 20px rgba(255, 255, 255, .9),
    0 0 30px rgba(255, 255, 255, .8);
}

.event-caption {
  margin: 14px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.image-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #d7d7d7;
}

.image-frame.is-empty {
  background: repeating-linear-gradient(-45deg, #d8d8d8 0, #d8d8d8 16px, #c9c9c9 16px, #c9c9c9 32px);
}

.image-frame.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  width: calc(100% - 40px);
  color: #555;
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, -50%);
}

.image-frame.is-empty img {
  visibility: hidden;
}

.hero-rider {
  position: absolute;
  /* ★削除禁止：オレンジの帯(.hero-band)より前。元案では帯の上に人物が乗る */
  z-index: 6;
  right: 0;
  bottom: 0;
  width: 60%;
  max-width: 880px;
  height: 92%;
  background-color: transparent;
}

/* ★削除禁止：四角い写真枠のままだと、下のオレンジの帯と袋文字を覆い隠して
   デザイン案の構図が消える。帯より少し内側で斜めに切り、帯の縁を見せる。 */
.hero-rider--jpg {
  inset: 0;
  width: auto;
  max-width: none;
  height: auto;
}
.hero-rider--jpg {
  clip-path: polygon(100% 37%, 57% 50%, 37% 100%, 100% 100%);
}

.hero-rider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* ★削除禁止：切り抜き写真(hero.webp 868x1300)は、人物と自転車が画像の端まで
   詰まっている。高さいっぱいに置くと、フードの先が上の固定ヘッダーに隠れる。
   少し下げて（bottom をマイナス）、頭がヘッダーの下に出るようにしてある。
   下に出た分は前輪の下端が少し切れるが、構図としては成立する。 */
.hero-rider--png {
  right: 3%;
  bottom: -4%;
  width: auto;
  max-width: none;
  /* ★手前の人物は背景の人物より大きく見せる */
  height: 92%;
}

.hero-rider--png img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-band {
  position: absolute;
  z-index: 3;
  right: -4%;
  bottom: -10%;
  width: 78%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-marks {
  position: absolute;
  z-index: 7;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.hero-badge {
  position: absolute;
  z-index: 8;
  top: 27%;
  right: 0;
  padding: 14px 30px 14px 22px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--ink);
  border-left: 5px solid var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  /* 1行になったぶん、文字を大きくして存在感を出す */
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .14em;
}

.section {
  padding: clamp(72px, 9vw, 130px) 20px;
}

.section-sub {
  background: var(--bg-sub);
}

.section-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.next-event {
  padding-right: 0;
  overflow: hidden;
}

.next-event .next-grid {
  width: auto;
  max-width: none;
  margin-right: 0;
  margin-left: max(0px, calc(50vw - 580px));
}

.next-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.eyebrow {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
}

.eyebrow-mark {
  width: 5px;
  height: 25px;
  background: var(--orange);
  transform: skewX(-14deg);
}

.next-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  /* ★削除禁止：日本語の熟語が「新／座」のように途中で割れるのを防ぐ */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 「次の舞台は、新座。」が1行で収まるよう、ここだけ少し小さくする */
.next-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.next-text {
  margin: 30px 0 0;
  color: var(--text);
  line-height: 1.9;
}

.stage-image {
  /* ★削除禁止：上に乗せる飾り文字(cqw)の基準。外すと文字が極小になる */
  container-type: inline-size;
  height: clamp(300px, 34vw, 430px);
  /* ★削除禁止：斜めの切り欠きは「左辺」ではなく「上辺」に入れる。
     左辺を斜めに切ると、集合写真の左端に写っている人が削れてしまう。
     上辺なら削れるのは天井だけなので、全員が写る。 */
  clip-path: polygon(0 11%, 100% 0, 100% 100%, 0 100%);
}

.stage-image img {
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
}

.stage-image:not(.is-empty)::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  /* ★削除禁止：飾り文字は写真の上側に置くので、暗くするのも上側。
     下向き(to top)に戻すと、明るい天井の上で白い袋文字が消える。 */
  background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 52%);
  pointer-events: none;
}

/* ★削除禁止：集合写真に重ねる飾り文字。
   大きい「TYLER / CUP」は塗りなしの白い袋文字、その上に小さい白ベタの
   「TYLER CUP」を重ねる。大きさは写真の幅に追従させたいので、
   vw ではなく cqw（＝写真自身の幅の％）で指定している。
   そのため .stage-image の container-type を外すと文字が極小になる。 */
.stage-image figcaption {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  padding: 0;
  display: block;
  color: var(--white);
  font-family: "Anton", sans-serif;
  line-height: 1;
  pointer-events: none;
}

.stage-mark__outline {
  position: absolute;
  display: block;
  white-space: nowrap;
}

/* ★削除禁止：行ごとに傾ける。親ごと傾けると2行目だけ左にずれて、
   右端がそろわなくなる（参考デザインは右端がそろっている）。 */
.stage-mark__outline > span {
  transform: skewX(-12deg); /* ★合成イタリック禁止のため skew で傾ける */
}

.stage-mark__outline {
  top: 8.6%;
  right: 3.8%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 15.2cqw;
  /* ★削除禁止：このフォント(Anton)の大文字の高さは 0.857em ある。
     line-height をそれ以下にすると、1行目の下と2行目の上が重なる。
     1.017 で、文字と文字のあいだに 0.16em の隙間ができる。 */
  line-height: 1.017;
  color: transparent;
  -webkit-text-stroke: .014em rgba(255, 255, 255, .96);
}

.stage-image::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: var(--orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.section-heading {
  margin-bottom: 44px;
}

.outline-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.outline-list > div {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--line);
}

.outline-list dt,
.outline-list dd {
  margin: 0;
  padding: 24px 18px;
}

.outline-list dt {
  font-weight: 700;
}

.outline-list dd {
  color: #353535;
}

.outline-list .fee {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}

.tel-mobile {
  display: none;
}

.class-lead {
  margin: -18px 0 34px;
  color: var(--text);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.class-card {
  position: relative;
  min-height: 142px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .2s ease;
}

/* スクールのクラス色を、カード左上の細い帯で小さく添える。
   色は index.php の cup_class_color() から --cls で渡ってくる。 */
.class-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 5px;
  background: var(--cls, var(--orange));
}

.class-card:hover {
  border-color: var(--cls, var(--orange));
}

.class-card span {
  color: var(--cls, var(--orange));
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  transform: skewX(-17deg); /* ★削除禁止：合成イタリック禁止のため skew で傾ける */
}

.class-card strong {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 400;
  line-height: 1.15;
  transform: skewX(-17deg); /* ★削除禁止：合成イタリック禁止のため skew で傾ける */
}

.class-note {
  margin-top: 28px;
  padding: 20px 24px;
  background: #FDF1EC;
  border-left: 4px solid var(--orange);
  line-height: 1.9;
}

.sponsor-heading {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.sponsor-heading > p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
}

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sponsor-list a,
.sponsor-list span {
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.sponsor-list a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.sponsor-note {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 13px;
}

.entry-section {
  position: relative;
  color: var(--white);
  /* 会場の写真をうっすら敷く。入力欄が読みにくくならないよう、
     ほぼ黒の膜をかぶせている。写真が無くても真っ黒で成立する。 */
  background:
    linear-gradient(rgba(14, 14, 14, .93), rgba(14, 14, 14, .97)),
    /* ★差し替えたら必ず末尾の番号を増やすこと。増やさないと
       ブラウザが1週間古い写真を使い続ける。 */
    url("../images/venue.webp?v=1") center 35% / cover no-repeat,
    var(--ink);
}

.heading-light h2 {
  color: var(--white);
}

.entry-card {
  padding: clamp(20px, 4vw, 44px);
  color: var(--ink);
  background: var(--white);
  border-radius: 2px;
}

.hidden-message {
  margin: 0;
  white-space: pre-wrap;
}

.intro-message {
  margin-bottom: 28px;
  padding: 16px 18px;
  background: #FFF8F4;
  border: 1px solid #F6B9A2;
  white-space: pre-wrap;
}

.error-message {
  margin-bottom: 28px;
  padding: 16px 18px;
  color: #C3362F;
  background: #FDEDEC;
  border: 1px solid #C3362F;
}

.success-message {
  color: #176A30;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.form-group {
  margin: 0 0 28px;
}

fieldset.form-group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-group > label,
.form-group legend {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.badge {
  margin-left: 6px;
  padding: 2px 7px;
  display: inline-block;
  border-radius: 2px;
  font-size: 10px;
  line-height: 1.5;
  vertical-align: 2px;
}

.badge.required {
  color: var(--white);
  background: var(--orange);
}

.badge.optional {
  color: #555;
  background: #E8E8E8;
}

.form-help {
  margin: -2px 0 12px;
  color: var(--text);
  font-size: 13px;
}

/* 参加者と保護者の名前が同じときの注意書き（送信は止めない） */
.same-name-note {
  margin: 8px 0 0;
  color: #b3261e;
  font-weight: 700;
}
.same-name-note[hidden] {
  display: none;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #CFCFCF;
  border-radius: 2px;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  outline: 2px solid rgba(240, 84, 28, .35);
  outline-offset: 1px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3ad;
}

.form-group input::-webkit-input-placeholder,
.form-group textarea::-webkit-input-placeholder {
  color: #9ca3ad;
}

.form-group input::-moz-placeholder,
.form-group textarea::-moz-placeholder {
  color: #9ca3ad;
  opacity: 1;
}

.radio-option {
  position: relative;
  margin: 0 0 9px !important;
  /* 左端にクラス色の細い帯を出すぶん、左の余白を広げる */
  padding: 13px 14px 13px 20px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid #CFCFCF;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 400 !important;
  transition: border-color .15s ease, background-color .15s ease;
}

/* クラス色の細い帯。エントリークラスの選択肢だけに出る（--cls が無い欄には出ない） */
.radio-option[style*="--cls"]::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--cls);
}

.radio-option.is-selected {
  background: #FDF1EC;
  border-color: var(--orange);
}

.radio-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--orange);
}

.number-input {
  max-width: 140px;
}

.unit-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submit-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 2px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color .2s ease;
}

.submit-button:disabled {
  cursor: default;
  opacity: .7;
}

.site-footer {
  padding: 52px 20px 112px;
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid #303030;
}

.footer-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 20px;
  font-size: 35px;
}

.site-footer p {
  margin: 6px 0;
  color: #CFCFCF;
  font-size: 13px;
}

.site-footer a {
  text-underline-offset: 3px;
}

.copyright {
  margin-top: 26px !important;
}

.mobile-sticky-entry {
  display: none;
}

@media (max-width: 1100px) {
  .hero-copy {
    width: 52%;
  }

  .class-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .header-inner {
    width: calc(100% - 28px);
    height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-entry {
    min-height: 40px;
    padding: 7px 15px;
    font-size: 13px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 2px;
  }

  .menu-button span {
    width: 100%;
    height: 2px;
    background: var(--ink);
  }

  .mobile-menu {
    padding: 8px 20px 18px;
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-menu a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    text-decoration: none;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: 104px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero-watermark {
    display: none;
  }

  /* ★削除禁止：参考画像のスマホ版は「見出し → 写真パネル → 日付」の順。
     hero-copy の箱を display:contents で解いて、中の3つを個別に並べ替える。
     これをやめると日付が写真の上に出て、参考画像と違う並びになる。 */
  .hero-copy {
    display: contents;
  }

  .hero-title {
    order: 1;
    /* スマホでは見出しを大きく。手前の人物に当たらないところまで */
    font-size: clamp(56px, 22.4vw, 128px);
    /* ★削除禁止：2行目が写真に重なるので、ずらした白い影で輪郭を分ける。
       白地の上では見えないので、1行目に掛かっていても問題ない。 */
    text-shadow: 5px 5px 0 #fff;
    /* ★削除禁止：見出しは写真パネルの上に重ねる。
       position と z-index を外すと、写真の下に隠れる。 */
    position: relative;
    z-index: 6;
  }

  .hero-scene {
    order: 2;
  }

  .event-block-desktop {
    order: 3;
  }

  .hero-subcopy-row {
    margin-top: 22px;
  }

  /* ★削除禁止：PCと同じ読み順（見出し→ボタン→日付→ビジュアル）にそろえる。
     ボタンと日付を写真パネルの中へ入れると、スマホだけ別物の構成になる。 */
  /* 参考画像では、ヒーローの中に大きなボタンは置かず、
     画面下に追従するオレンジのバーが受け持つ。
     日付は写真パネルの中（左下）に出すので、白地側の日付は隠す。 */
  .hero-copy > .hero-button,
  .event-block-desktop,
  .hero-mobile-entry {
    display: none;
  }

  /* 写真パネルの中の日付（左下・白文字） */
  .event-block-mobile {
    position: absolute;
    z-index: 5;
    left: 18px;
    bottom: 16px;
    display: block;
    color: var(--white);
    /* ★削除禁止：手前のライダーの自転車が後ろを横切るので、
       影を1枚だけ敷いて白文字が沈まないようにしている。 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  }

  .event-block-mobile .event-date {
    margin-top: 0;
    gap: 14px;
    font-size: clamp(32px, 9.8vw, 48px);
  }

  .event-block-mobile .event-date > span {
    height: 38px;
    background: var(--orange);
  }

  .event-block-mobile .event-caption {
    margin-top: 6px;
    color: rgba(255, 255, 255, .88);
  }

  .hero-scene {
    position: relative;
    inset: auto;
    /* ★削除禁止：手前のライダーと左下の日付を上下に並べるための高さ。
       これを縮めると、自転車が日付に重なって読めなくなる。 */
    height: clamp(390px, 104vw, 470px);
    /* ★削除禁止：上のマイナス余白で、見出しの下半分に写真パネルを潜り込ませる。
       0 にすると見出しと写真が離れて、指示された重なりが消える。 */
    margin: -142px -20px 0;
    overflow: hidden;
    background: transparent;
  }

  /* ★削除禁止：PCと同じ「斜めに切ったオレンジの帯」にする。
     ベタ塗りの四角だと、スマホだけ別デザインに見える。
     上辺を斜めにして、その上の白い余白へ人物がはみ出す形。 */
  .hero-orange,
  .hero-orange-photo {
    display: block;
    z-index: 1;
    /* ★パネルを縦に伸ばしたので、斜めの境界が下がらないように％を詰めてある */
    clip-path: polygon(0 24%, 100% 13%, 100% 100%, 0 100%);
  }

  .hero-orange {
    z-index: 0;
  }

  /* ★削除禁止：スマホは縦長なので、横長の背景写真から
     赤い自転車のあたりを切り出す位置を指定している。 */
  .hero-orange-photo img {
    /* ★削除禁止：スマホでは写真の高さがちょうど収まるので、object-position の
       縦方向が効かない。下げるにはこの translateY を使う。
       11%(約43px)より大きくすると、斜めの切り欠きの右上に写真の無い
       オレンジだけの隙間が出る。 */
    transform: translateY(11%);
    object-position: 45% 30%;
  }

  .hero-band {
    display: none;
  }

  /* 斜線マークはスマホでも残す。単色のオレンジ一枚だと間延びするため */
  .hero-marks {
    display: block;
    opacity: .9;
  }

  .hero-rider {
    z-index: 2;
    width: 100%;
    max-width: none;
    height: 100%;
  }

  .hero-rider--jpg {
    clip-path: none;
  }

  /* ★削除禁止：切り抜き写真は、スマホでは全面に引き伸ばすと人物が切れる。
     右寄せ・高さ基準で、全身が入るように置く。 */
  /* ★削除禁止：bottom を 0 にすると、自転車の前輪が左下の日付
     「2026.11.01 SUN / NIIZA」の上に重なって読めなくなる。
     日付の上で止まる高さにしてある。 */
  .hero-rider--png {
    /* ★削除禁止：少し右へ逃がして、フードの先が見出しの「#3」に
       かぶらないようにしている。右にはみ出した前輪の端は切れてよい。 */
    right: 2%;
    left: auto;
    bottom: 2%;
    top: auto;
    width: auto;
    max-width: 96%;
    height: 94%;
  }

  .hero-rider--png img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
  }

  .hero-rider--jpg img {
    filter: grayscale(1) contrast(1.15);
    mix-blend-mode: multiply;
    opacity: .9;
  }

  /* ★削除禁止：参考画像のスマホ版では、バッジは写真パネルの左端にある */
  /* ★削除禁止：見出しが写真の上まで下りてくるので、バッジはその下へ逃がす。
     上に置くと見出しと重なって両方読めなくなる。 */
  .hero-badge {
    z-index: 4;
    top: 46%;
    left: 0;
    right: auto;
    padding: 11px 18px 11px 14px;
    font-size: 21px;
  }

  .next-grid {
    grid-template-columns: 1fr;
  }

  .stage-image {
    height: clamp(300px, 70vw, 430px);
  }

  .stage-image:not(.is-empty)::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 52%);
  }

  .outline-list > div {
    grid-template-columns: 1fr;
  }

  .outline-list dt {
    padding-bottom: 4px;
  }

  .outline-list dd {
    padding-top: 4px;
  }

  .tel-desktop {
    display: none;
  }

  .tel-mobile {
    display: inline;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mobile-sticky-entry {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--orange);
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease;
  }

  .mobile-sticky-entry.is-hidden {
    transform: translateY(110%);
  }
}

@media (max-width: 560px) {
  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-scene {
    margin-right: -16px;
    margin-left: -16px;
  }


  .next-event {
    padding-right: 0;
  }

  .stage-image figcaption {
    font-size: 38px;
  }

  .class-grid {
    gap: 8px;
  }

  .class-card {
    min-height: 120px;
    padding: 15px;
  }

  .class-card strong {
    font-size: 16px;
  }

  .sponsor-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .entry-card {
    margin-right: -2px;
    margin-left: -2px;
  }
}
