@charset "UTF-8";
/* =====================================================================
   2027 オフシーズン改修 共通スタイル
   - 既存のページ別CSS(Sass出力)は再ビルドしないため、追加・上書きはすべてここに書く
   - inc/head.php で全ページに、ページ別CSSの後に読み込む
   - 既存要素への上書きは .gnav / .l-footer / .news__label など対象を限定する
   - 新規要素は n27- 接頭辞のクラスで組む
   ブレークポイント(既存に合わせる):
     ヘッダー  : 1200px 以上 = PCメニュー / 1199px 以下 = ドロワー
     本文      : 750px 以上 = PC / 749px 以下 = SP(html の font-size が vw 基準になる)
   ===================================================================== */

:root {
  --n27-red: #dc1f0b;
  --n27-bg: #141414;
  --n27-bg-deep: #000;
  --n27-panel: #1e1e1e;
  --n27-line: #555;
  --n27-text: #fff;
  --n27-text-sub: #ccc;
  --n27-font: "Noto Sans JP", "Noto Sans", sans-serif;
  --n27-header-h: 12rem;
}

/* SPのヘッダー(ハンバーガー)は低い */
@media screen and (max-width: 1199px) {
  :root {
    --n27-header-h: 8rem;
  }
}

/* ---------------------------------------------------------------------
   1. ヘッダー: About us のドロップダウン、Contact の表示
   --------------------------------------------------------------------- */

/* 2027デザイン: PCのメインメニューは斜体(Montserrat Italic)。サブメニューは立体のまま */
@media screen and (min-width: 1200px) {
  .gnav__list > .gnav__item > .gnav__link,
  .gnav__item-youtube .gnav__link {
    font-style: italic;
  }
}

/* PCのヘッダーは2段(11/18 修正デザイン)。帯の高さ 120px
   ┌──────────────────────────────────────────────┐
   │        [Watch The Race] [JP▼]  ← 上段(右寄せ) │
   │ LOGO   Top Schedule … About us Contact ← 下段 │
   └──────────────────────────────────────────────┘
   HTML の並びは変えず、order と幅100%の疑似要素(改行役)で段を分ける */
@media screen and (min-width: 1200px) {
  .site__header {
    block-size: 12rem;
  }

  .header__nav {
    flex: 1;
    min-inline-size: 0;
  }

  /* 段の位置は PDF(1440px)の実測に合わせる(単位 px)
       言語切替ボックス 21.8〜49.8(高さ28)/ 下段メニュー 65〜92 / ロゴ上端 49.7
     段の間隔 15px(行間は、改行用の疑似要素を挟んで2回入るので半分の 7.5px)、
     下の余白 6px(帯の中央揃えの基準をずらし、全体を PDF の高さへ上げる) */
  .gnav__list {
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: 2.8rem;
    row-gap: .75rem;
    margin-block-end: .6rem;
  }

  .header__langSelect {
    block-size: 2.8rem;
    padding-block: 0;
  }

  /* ロゴは PDF では帯の中央より約13px 下 */
  .header__logo {
    position: relative;
    inset-block-start: 1.35rem;
  }

  .gnav__item-youtube {
    order: -3;
  }

  /* デザインでは Watch The Race と言語切替の間が狭い */
  .gnav__item-lang {
    order: -2;
    margin-inline-start: -1.3rem;
  }

  .gnav__list::before {
    content: "";
    order: -1;
    flex-basis: 100%;
    block-size: 0;
  }

  .gnav__list > .gnav__item > .gnav__link,
  .gnav__item-youtube .gnav__link {
    font-size: 1.8rem;
  }
}

/* いま表示しているカテゴリのメニューは赤(aria-current は inc/gnav-current.php が付ける)。
   About us は開閉ボタンの山形も合わせて赤くする。SPのドロワー(白地)でも同じ */
.gnav__link[aria-current="page"],
.gnav__item-hasSub:has(> .gnav__link[aria-current="page"]) .gnav__subToggle {
  color: var(--n27-red);
}

/* 1200〜1439px は下段のメニュー(9項目)が収まらないので、間隔と文字を詰める */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
  .gnav__list {
    column-gap: clamp(1.2rem, 1.9vw, 2.8rem);
  }

  .gnav__list > .gnav__item > .gnav__link {
    font-size: clamp(1.5rem, 1.25vw, 1.8rem);
  }
}

/* 既存CSSはPCで Contact を隠しているが、2027デザインでは表示する */
@media screen and (min-width: 1200px) {
  .gnav__item.gnav__item-contact {
    display: block;
  }
}

.gnav__item-hasSub {
  position: relative;
  display: flex;
  align-items: center;
}

/* SPではサブメニューを次の行に落とすため折り返しを許可 */
@media screen and (max-width: 1199px) {
  .gnav__item-hasSub {
    flex-wrap: wrap;
  }
}

/* 開閉ボタン(下向きの山形) */
.gnav__subToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  margin-inline-start: .4rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.gnav__subToggle::before {
  content: "";
  inline-size: .9rem;
  block-size: .9rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform .3s ease;
}

.gnav__item-hasSub.is-open .gnav__subToggle::before {
  transform: translateY(25%) rotate(-135deg);
}

.gnav__sub {
  font-family: var(--n27-font);
}

.gnav__subLink {
  display: block;
  position: relative;
  padding-inline-start: 1.4rem;
  white-space: nowrap;
  transition: color .3s ease;
}

/* 項目頭の「〉」 */
.gnav__subLink::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  inline-size: .6rem;
  block-size: .6rem;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}

.gnav__subLink:focus-visible,
.gnav__subLink:hover {
  color: var(--n27-red);
}

/* PC: ホバー・フォーカス・クリックで開くパネル */
@media screen and (min-width: 1200px) {
  .gnav__subToggle {
    color: #fff;
  }

  /* パネルは About us ではなくメニュー全体(.gnav__list)を基準に置き、右端を Contact の右端に揃える
     (11/18 修正デザイン。About us 基準だと 1200px 付近で画面の右にはみ出す) */
  .gnav__item-hasSub {
    position: static;
  }

  .gnav__sub {
    position: absolute;
    inset-block-start: calc(100% + .6rem);
    inset-inline-end: 0;
    min-inline-size: 30rem;
    padding: 2.4rem 3.2rem;
    background: var(--n27-panel);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(.6rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 995;
  }

  /* パネルとメニューの間の隙間でホバーが切れないように */
  .gnav__sub::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 100%;
    block-size: 2.6rem;
  }

  .gnav__item-hasSub:hover .gnav__sub,
  .gnav__item-hasSub:focus-within .gnav__sub,
  .gnav__item-hasSub.is-open .gnav__sub {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .gnav__item-hasSub {
    padding-block: 2.6rem;
    margin-block: -2.6rem;
  }

  .gnav__subLink {
    color: #fff;
    font-size: 1.6rem;
  }
}

/* SP(ドロワー): タップで開閉するアコーディオン */
@media screen and (max-width: 1199px) {
  .gnav__item-hasSub > .gnav__link {
    flex: 1;
  }

  /* 既存の右向き矢印は開閉ボタンと重なるので消す */
  .gnav__item-hasSub > .gnav__link::after {
    display: none;
  }

  .gnav__subToggle {
    color: #000;
    inline-size: 4rem;
    block-size: 3rem;
  }

  .gnav__sub {
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    gap: 1.6rem;
    padding: 1.6rem 0 .4rem 1.2rem;
  }

  .gnav__item-hasSub.is-open .gnav__sub {
    display: flex;
  }

  .gnav__subLink {
    color: #000;
    font-size: 1.5rem;
  }
}

/* ---------------------------------------------------------------------
   2. フッター: About us の列
   --------------------------------------------------------------------- */
.l-footer__navList-about {
  gap: 1.4rem;
}

.l-footer__subList {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-family: var(--n27-font);
}

.l-footer__subLink {
  position: relative;
  display: inline-block;
  padding-inline-start: 1.2rem;
  color: #fff;
  font-size: 1.3rem;
  white-space: nowrap;
}

.l-footer__subLink::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  inline-size: .5rem;
  block-size: .5rem;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
  .l-footer__subLink:hover {
    color: var(--n27-red);
  }
}

/* About us の列が増えた分、PCの列間を詰める */
@media screen and (min-width: 1200px) {
  .l-footer__navArea {
    gap: clamp(3rem, 3.5vw, 6rem);
  }

  .l-footer__info {
    gap: clamp(3rem, 3.5vw, 6rem);
  }

  .l-footer__navLink {
    white-space: nowrap;
  }

  /* SNS アイコンは .ai どおり、メニューの下に1行・右寄せで置く
     (従来は Contact 列の中で2段に折り返していた)
       [ メニュー列 ........ ][ Contact ]
                    [ f  ◎  X  ♪  ▶ ]            */
  .l-footer__info {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: clamp(3rem, 3.5vw, 6rem);
    row-gap: 0;
    align-items: start;
  }

  .l-footer__contactArea {
    display: contents;
  }

  .l-footer__socialList {
    grid-column: 1 / -1;
    justify-self: end;
    flex-wrap: nowrap;
    margin-block-start: 5.8rem;
  }
}

/* ---------------------------------------------------------------------
   3. ページ内リンク先が固定ヘッダーに隠れないように
   --------------------------------------------------------------------- */
[id] {
  scroll-margin-top: var(--n27-header-h);
}

/* ---------------------------------------------------------------------
   4. NEWS 一覧・TOP: NEW マークを右寄せ(2027〜)
   --------------------------------------------------------------------- */
.news__imgWrapper .news__label {
  inset-inline-start: auto;
  left: auto;
  inset-inline-end: 2.5rem;
  right: 2.5rem;
}

@media screen and (max-width: 749px) {
  .news__imgWrapper .news__label {
    inset-inline-end: 1.5rem;
    right: 1.5rem;
  }
}

/* ---------------------------------------------------------------------
   4b. TOP: HERO(キービジュアル)と「GET READY, USA」セクション
   --------------------------------------------------------------------- */
.fv27 {
  background: #000;
  /* 既存の .fv は動画用に高さが固定(PC: 100dvh - 11.7rem / SP: 30rem)。画像の高さに合わせる */
  block-size: auto;
}

.fv27__picture,
.fv27__img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* PC: 画像に文字が入っているのでHTMLのリボンは出さない */
.fv27__ribbons {
  display: none;
}

/* SP/タブレット(1023px以下): 写真の下にリボンを重ねて組む(PDF P10の見え方) */
@media screen and (max-width: 1023px) {
  .fv27__ribbons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    margin-block-start: -4.4rem;
    position: relative;
    z-index: 1;
    padding-block-end: 2.4rem;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0) 0, #1f1f1f 4.4rem);
    font-family: "Montserrat", sans-serif;
    font-style: italic;
    font-weight: 800;
    color: #fff;
  }

  .fv27__ribbon {
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .fv27__ribbon-main {
    padding: 1rem 5.2rem 1rem 2rem;
    background: #e60012;
    font-size: 4rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 3rem) 100%, 0 100%);
  }

  .fv27__ribbon-sub {
    padding: .7rem 3.6rem .7rem 2rem;
    background: #000;
    font-size: 1.5rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 1.6rem) 100%, 0 100%);
  }

  .fv27__ribbon-date {
    padding: .6rem 3rem .6rem 2rem;
    background: #e60012;
    font-size: 1.6rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 1.6rem) 100%, 0 100%);
  }
}

@media screen and (max-width: 749px) {
  .fv27__ribbon-main {
    font-size: 2.9rem;
    padding-inline-end: 4rem;
  }

  .fv27__ribbon-sub {
    font-size: 1.1rem;
  }

  .fv27__ribbon-date {
    font-size: 1.2rem;
  }
}

/* GET READY, USA セクション(HERO の直下、背景 #1f1f1f) */
.n27-ready {
  background: #1f1f1f;
  color: #fff;
  text-align: center;
}

.n27-ready__inner {
  inline-size: min(100rem, 100% - 4rem);
  margin-inline: auto;
  padding-block: 9rem 11rem;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
}

.n27-ready__eyebrow {
  color: #e60012;
  font-size: 4rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
}

.n27-ready__sub {
  margin-block-start: .6rem;
  font-size: 3.2rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
}

.n27-ready__year {
  margin-block-start: 3rem;
  color: #e60012;
  font-size: 12.8rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.n27-ready__catch {
  margin-block-start: 3.4rem;
  font-size: 3rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
}

.n27-ready__title {
  margin-block-start: 1.6rem;
  color: #e60012;
  font-size: 4rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
}

/* 見出しの下の短い白線 */
.n27-ready__title::after {
  content: "";
  display: block;
  inline-size: 8rem;
  block-size: 2px;
  margin: 3.4rem auto 0;
  background: #fff;
}

.n27-ready__body {
  margin-block-start: 3.4rem;
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2;
  /* 文節の途中で折り返さない(未対応ブラウザは通常の折り返し) */
  word-break: auto-phrase;
  text-wrap: pretty;
}

.n27-ready__body p + p {
  margin-block-start: 2.4rem;
}

/* 英語は意味の切れ目の改行が無いため、日本語版の行の長さ(約810px)に近づけるよう幅を絞る */
@media screen and (min-width: 1024px) {
  html[lang="en"] .n27-ready__body {
    max-inline-size: 84rem;
    margin-inline: auto;
  }
}

.n27-ready__body strong {
  font-weight: 700;
}

/* 本文の下の Schedule ボタン(.n27-btns の上余白を上書き) */
.n27-btns.n27-ready__btns {
  margin-block-start: 5.4rem;
}

@media screen and (max-width: 1023px) {
  .n27-ready__inner {
    padding-block: 5rem 6rem;
  }

  .n27-ready__eyebrow {
    font-size: 2.4rem;
  }

  .n27-ready__sub {
    font-size: 1.9rem;
  }

  .n27-ready__year {
    margin-block-start: 2rem;
    font-size: 8rem;
  }

  .n27-ready__catch {
    margin-block-start: 2.4rem;
    font-size: 1.9rem;
  }

  .n27-ready__title {
    font-size: 2.6rem;
  }

  .n27-ready__body {
    font-size: 1.4rem;
    text-align: start;
  }

  .n27-btns.n27-ready__btns {
    margin-block-start: 3.6rem;
  }

  /* SPは幅が狭いので、デザインの改行は使わず自然に折り返す */
  .n27-ready__body br {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   5. 2027年版 NEWS 記事(n27-article)
      .ai の実測値: タイトル26px/800、リード20px/700、日付22px/300、
      見出し21px/700、本文16px(行間32px)、本文幅1000px
   --------------------------------------------------------------------- */
.n27-article {
  background: var(--n27-bg);
  color: var(--n27-text);
  font-family: var(--n27-font);
}

.n27-article__inner {
  inline-size: min(100rem, 100% - 4rem);
  margin-inline: auto;
}

.n27-article__section {
  padding-block: 10rem;
}

.n27-article__section + .n27-article__section {
  padding-block-start: 0;
}

/* 背景を黒に切り替えるセクション(パイロット紹介) */
.n27-article__section-deep {
  background: var(--n27-bg-deep);
}

.n27-article__section-deep + .n27-article__section,
.n27-article__section + .n27-article__section-deep {
  padding-block-start: 10rem;
}

/* 記事の頭: NEW・日付・タイトル・リード */
.n27-article__head {
  padding-block-start: 8rem;
}

.n27-article__new {
  display: inline-block;
  padding: .3rem 2.4rem;
  background: var(--n27-red);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.4;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.n27-article__date {
  display: block;
  margin-block-start: 1.2rem;
  padding-block-end: 2rem;
  border-block-end: 2px solid #8a1309;
  font-size: 2.2rem;
  font-weight: 300;
}

.n27-article__title {
  margin-block-start: 4rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.6;
}

.n27-article__lead {
  margin-block-start: 4.8rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.65;
}

.n27-article__mainImg {
  margin-block-start: 7rem;
}

.n27-article__mainImg img,
.n27-article__img img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* 本文 */
.n27-article__text {
  font-size: 1.6rem;
  line-height: 2;
}

/* 既存CSSが p に行間1.5を指定しているため、親の行間を明示的に引き継ぐ */
.n27-article__text p,
.n27-aboutPage__text p {
  line-height: inherit;
}

.n27-article__text p + p {
  margin-block-start: 1.2rem;
}

.n27-article__mainImg + .n27-article__text {
  margin-block-start: 4rem;
}

/* 見出し(左上に赤い短線) */
.n27-article__h2 {
  position: relative;
  padding-block-start: 4.4rem;
  margin-block-end: 2rem;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.n27-article__h2::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 8rem;
  block-size: 2px;
  background: var(--n27-red);
}

.n27-article__block {
  margin-block-start: 10rem;
}

.n27-article__img {
  inline-size: min(61.2rem, 100%);
  margin: 5.6rem auto 0;
}

/* 表(レースカレンダー) */
.n27-table {
  inline-size: 100%;
  margin-block-start: 3rem;
  border-collapse: collapse;
  font-size: 1.6rem;
}

.n27-table th,
.n27-table td {
  padding: 2rem 1rem;
  border-block-end: 1px solid var(--n27-line);
  text-align: start;
  vertical-align: middle;
}

.n27-table thead th {
  border-block-start: 1px solid var(--n27-line);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
}

.n27-table tbody th {
  padding-inline-start: 3.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.n27-table__sep {
  display: inline-block;
  margin-inline: 1.2rem;
  color: var(--n27-line);
}

/* YouTube ボタン(既存の result__youtube を記事幅に合わせる) */
.n27-article .result__youtube {
  margin-block-start: 6rem;
}

/* パイロット紹介 */
.n27-pilots__map {
  margin-block-start: 3rem;
}

.n27-pilots__map img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.n27-pilots__note {
  margin-block-start: 2rem;
  font-size: 1.6rem;
  text-align: center;
}

.n27-pilots__list {
  margin-block-start: 5rem;
  border-block-start: 1px solid var(--n27-line);
}

.n27-pilots__item {
  display: grid;
  grid-template-columns: 12rem 35rem 1fr;
  align-items: center;
  gap: 0 0;
  padding-block: 1.8rem;
  border-block-end: 1px solid var(--n27-line);
}

/* ゼッケン番号: Montserrat ExtraBold Italic */
.n27-pilots__num {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  font-style: italic;
  text-align: center;
}

.n27-pilots__name {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.n27-pilots__team {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-block-start: .8rem;
  font-size: 1.6rem;
}

.n27-pilots__flag {
  inline-size: 2.8rem;
  block-size: auto;
}

.n27-pilots__desc {
  font-size: 1.6rem;
  line-height: 1.5;
}

/* パイロットコメント: 説明文の下に、ゼッケン列を除いた幅で表示 */
.n27-pilots__comment {
  grid-column: 2 / -1;
  margin-block-start: 1.4rem;
  font-size: 1.5rem;
  line-height: 1.8;
}

/* 小見出しの右に、行末まで罫線を引く */
.n27-pilots__commentLabel {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-block-end: .4rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #aaa;
}

.n27-pilots__commentLabel::after {
  content: "";
  flex: 1;
  /* 選手ごとの区切り線(#555)より控えめにする */
  border-block-start: 1px solid #333;
}

.n27-pilots__closing {
  margin-block-start: 7rem;
  text-align: center;
}

.n27-pilots__closing strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.n27-pilots__closing p {
  margin-block-start: 1rem;
  font-size: 1.6rem;
}

/* ボタン(About us / CONTACT) */
.n27-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  margin-block-start: 8rem;
}

.n27-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  inline-size: min(47rem, 100%);
  block-size: 8.8rem;
  background: var(--n27-panel);
  color: #fff;
  /* 見出し2並みのゴシック。字間を少し広げる */
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: .1em;
  transition: background-color .3s ease;
}

/* 右の赤い三角 */
.n27-btn::after {
  content: "";
  display: block;
  inline-size: 0;
  block-size: 0;
  border-style: solid;
  border-width: .6rem 0 .6rem .85rem;
  border-color: transparent transparent transparent var(--n27-red);
}

@media (hover: hover) and (pointer: fine) {
  .n27-btn:hover {
    background: #333;
  }
}

/* TOP の「2027 RACE SCHEDULE」ボタン: 赤地・太字斜体で目立たせる */
.n27-btn.-red {
  background: var(--n27-red);
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: .08em;
}

.n27-btn.-red::after {
  border-width: .7rem 0 .7rem 1rem;
  border-color: transparent transparent transparent #fff;
}

@media (hover: hover) and (pointer: fine) {
  .n27-btn.-red:hover {
    background: #b51808;
  }
}

/* 404ページ */
.n27-404 {
  min-block-size: 60vh;
}

.n27-404__inner {
  padding-block: 12rem;
  text-align: center;
}

.n27-404__code {
  color: var(--n27-red);
  font-family: "Montserrat", sans-serif;
  font-size: 10rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.n27-404__title {
  margin-block-start: 2.4rem;
  font-size: 2.6rem;
  font-weight: 800;
}

.n27-404__text {
  margin-block-start: 2rem;
  font-size: 1.6rem;
  line-height: 1.9;
}

.n27-404 .n27-btns {
  margin-block-start: 6rem;
}

@media screen and (max-width: 749px) {
  .n27-404__inner {
    padding-block: 6rem;
  }

  .n27-404__code {
    font-size: 7rem;
  }

  .n27-404__title {
    font-size: 2rem;
  }

  .n27-404__text {
    font-size: 1.4rem;
    text-align: start;
  }
}

/* CEO コメント */
.n27-ceo__logo {
  inline-size: 23.4rem;
  block-size: auto;
}

.n27-ceo__label {
  margin-block-start: 1rem;
  font-size: 1.4rem;
}

.n27-ceo__name {
  margin-block-start: 6rem;
  font-size: 2.1rem;
  font-weight: 700;
}

.n27-ceo__role {
  margin-block-start: 1.6rem;
  font-size: 1.4rem;
}

.n27-ceo__body {
  display: grid;
  grid-template-columns: 1fr 32rem;
  gap: 0 9rem;
  margin-block-start: 7rem;
}

.n27-ceo__photo img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.n27-ceo__body .n27-btns {
  align-items: flex-start;
  margin-block-start: 4rem;
  padding-inline-start: 5rem;
}

/* About AIR RACE X */
.n27-about {
  border-block-start: 2px solid var(--n27-line);
  padding-block-start: 10rem;
}

.n27-article__block.n27-about {
  margin-block-start: 6rem;
}

.n27-about__h3 {
  margin-block: 4rem 1.6rem;
  color: var(--n27-red);
  font-size: 1.8rem;
  font-weight: 600;
}

/* SP(749px以下): 1カラムに積む */
@media screen and (max-width: 749px) {
  .n27-article__section {
    padding-block: 6rem;
  }

  .n27-article__section-deep + .n27-article__section,
  .n27-article__section + .n27-article__section-deep {
    padding-block-start: 6rem;
  }

  .n27-article__head {
    padding-block-start: 4rem;
  }

  .n27-article__new {
    font-size: 1.6rem;
  }

  .n27-article__date {
    font-size: 1.6rem;
  }

  .n27-article__title {
    margin-block-start: 2.4rem;
    font-size: 2rem;
  }

  .n27-article__lead {
    margin-block-start: 2.4rem;
    font-size: 1.6rem;
  }

  .n27-article__mainImg {
    margin-block-start: 3.2rem;
  }

  .n27-article__text {
    font-size: 1.6rem;
    line-height: 1.9;
  }

  .n27-article__h2 {
    font-size: 1.8rem;
  }

  .n27-article__block {
    margin-block-start: 6rem;
  }

  .n27-article__img {
    margin-block-start: 3.2rem;
  }

  /* 表はSPで文字を詰めて画面内に収める(収まらない表に備えて横スクロールも許可) */
  .n27-tableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .n27-table {
    font-size: 1.4rem;
  }

  .n27-table th,
  .n27-table td {
    padding: 1.4rem .6rem;
  }

  .n27-table thead th {
    font-size: 1.4rem;
  }

  .n27-table tbody th {
    padding-inline-start: .6rem;
  }

  .n27-table__sep {
    margin-inline: .6rem;
  }

  .n27-pilots__item {
    grid-template-columns: 6rem 1fr;
    gap: 1.2rem 1.2rem;
  }

  .n27-pilots__num {
    font-size: 2.4rem;
  }

  .n27-pilots__name {
    font-size: 1.8rem;
  }

  .n27-pilots__desc {
    grid-column: 1 / -1;
    font-size: 1.5rem;
  }

  .n27-pilots__comment {
    grid-column: 1 / -1;
    margin-block-start: 0;
    font-size: 1.4rem;
  }

  .n27-pilots__team {
    font-size: 1.4rem;
  }

  .n27-btns {
    margin-block-start: 5rem;
  }

  .n27-btn {
    block-size: 6.4rem;
    font-size: 1.8rem;
  }

  .n27-btn.-red {
    font-size: 1.9rem;
  }

  .n27-ceo__name {
    margin-block-start: 3.2rem;
  }

  .n27-ceo__body {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    margin-block-start: 3.2rem;
  }

  .n27-ceo__photo {
    inline-size: 60%;
    margin-inline: auto;
    order: -1;
  }

  .n27-ceo__body .n27-btns {
    align-items: center;
    padding-inline-start: 0;
  }

  .n27-about {
    padding-block-start: 6rem;
  }
}

/* =====================================================================
   6. About us(縦長1ページ。.ai の AB5/AB6)
      本文幅1000px。セクション見出しの上に赤い線。
   ===================================================================== */
.n27-aboutHero img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.n27-aboutPage {
  background: var(--n27-bg);
  color: var(--n27-text);
  font-family: var(--n27-font);
  padding-block-end: 10rem;
}

.n27-aboutPage__inner {
  inline-size: min(100rem, 100% - 4rem);
  margin-inline: auto;
}

.n27-aboutPage__section {
  padding-block-start: 10rem;
}

/* ページ内リンク(最初の見出しの赤い線の上に、下線つきの文字リンクを横に並べる) */
.n27-aboutNav {
  padding-block-start: 11.4rem;
}

.n27-aboutNav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.2rem;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.n27-aboutNav__link {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .4em;
  transition: color .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .n27-aboutNav__link:hover {
    color: var(--n27-red);
  }
}

.n27-aboutNav + .n27-aboutPage__section {
  padding-block-start: 3.2rem;
}

/* 見出し: 上に赤い線(最初の1つだけ幅いっぱい、以降は短い線) */
.n27-aboutPage__title {
  position: relative;
  padding-block-start: 4.4rem;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.4;
}

.n27-aboutPage__title::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 8rem;
  block-size: 2px;
  background: var(--n27-red);
}

#company .n27-aboutPage__title::before {
  inline-size: 100%;
}

.n27-acc__body {
  padding-block-start: 6rem;
}

.n27-aboutPage__text {
  font-size: 1.6rem;
  line-height: 2;
}

.n27-aboutPage__text p + p {
  margin-block-start: 1.2rem;
}

/* 会社概要 */
.n27-aboutPage__company {
  font-size: 2.6rem;
  font-weight: 700;
}

.n27-aboutPage__companyRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  margin-block-start: 5rem;
}

/* 項目名と値。間の「：」は見た目だけの区切り(HTMLには入れない) */
.n27-aboutPage__dlRow {
  display: grid;
  grid-template-columns: 17rem 1fr;
  align-items: baseline;
  padding-block: 1.6rem;
  font-size: 1.6rem;
}

.n27-aboutPage__dlRow dt {
  font-weight: 700;
}

.n27-aboutPage__dlRow dt::after {
  content: "：";
  float: right;
  margin-inline-end: 1rem;
}

.n27-aboutPage__companyImgs {
  display: flex;
  gap: .4rem;
}

.n27-aboutPage__companyImgs img {
  display: block;
  inline-size: 24.8rem;
  block-size: 19.5rem;
  object-fit: cover;
}

/* チーム・パートナーの1名分 */
.n27-aboutPage__person,
.n27-aboutPage__partner {
  display: grid;
  grid-template-columns: 32rem 1fr;
  gap: 5.8rem;
  /* .ai どおり、文章は写真の上端にそろえる */
  align-items: start;
}

.n27-aboutPage__person + .n27-aboutPage__person,
.n27-aboutPage__partner + .n27-aboutPage__partner {
  margin-block-start: 5.6rem;
}

.n27-aboutPage__personImg img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.n27-aboutPage__personName,
.n27-aboutPage__partnerName {
  padding-block-end: 1rem;
  border-block-end: 1px solid var(--n27-line);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.4;
}

.n27-aboutPage__personRole {
  margin-block-start: 1.2rem;
  margin-block-end: 3.2rem;
  color: var(--n27-red);
  font-size: 1.8rem;
  font-weight: 700;
}

.n27-aboutPage__personRole.-msg {
  margin-block: 3.2rem 2.4rem;
}

.n27-aboutPage__personBody {
  padding-block-end: .4rem;
}

/* ルーツ */
.n27-aboutPage__fig {
  margin: 0;
}

.n27-aboutPage__fig img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.n27-aboutPage__fig figcaption {
  margin-block-start: 1.2rem;
  font-size: 1.4rem;
}

.n27-aboutPage__fig +.n27-aboutPage__h3 {
  margin-block-start: 5rem;
}

.n27-aboutPage__h3 {
  margin-block-end: 1.2rem;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.n27-aboutPage__h3 + .n27-aboutPage__text + .n27-aboutPage__fig {
  margin-block-start: 4rem;
}

/* 実績表 */
.n27-table-record {
  margin-block-start: 3rem;
}

.n27-table-record thead th {
  font-size: 1.6rem;
  text-align: start;
  padding-inline-start: 3.6rem;
}

.n27-table-record tbody th {
  font-weight: 400;
  padding-inline-start: 3.6rem;
  inline-size: 18rem;
}

.n27-aboutPage__map {
  margin-block-start: 8rem;
}

/* 地域パートナー */
.n27-aboutPage__partnersLead {
  display: grid;
  grid-template-columns: 1fr 36rem;
  gap: 5rem;
  align-items: center;
  margin-block-end: 5.6rem;
}

.n27-aboutPage__partnersLead .n27-btn {
  inline-size: 100%;
  block-size: 7.2rem;
}

/* 地域名は写真の上端。経歴文(Bio)まで含めて写真の高さに収まるよう、
   文字サイズは変えずに 地域名→線→名前→所属→経歴 の間隔を詰める */
.n27-aboutPage__region {
  margin-block-end: 4rem;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.n27-aboutPage__partnerName {
  padding-block-start: 1.6rem;
  padding-block-end: 0;
  border-block-end: 0;
  border-block-start: 1px solid var(--n27-line);
  font-size: 2.6rem;
}

.n27-aboutPage__org {
  margin-block-start: .8rem;
  font-size: 1.6rem;
}

.n27-aboutPage__bio {
  margin-block-start: 5rem;
}

/* ---------------------------------------------------------------------
   7. アコーディオン(body.is-aboutAccordion のときだけ有効。付け外しは PHP の $about_accordion)
   --------------------------------------------------------------------- */
.is-aboutAccordion .n27-acc__head {
  cursor: pointer;
  padding-inline-end: 6rem;
  -webkit-tap-highlight-color: transparent;
}

.is-aboutAccordion .n27-acc__head:focus-visible {
  outline: 2px solid var(--n27-red);
  outline-offset: 4px;
}

/* 右端の開閉マーク(山形) */
.is-aboutAccordion .n27-acc__head::after {
  content: "";
  position: absolute;
  inset-block-start: calc(50% + 2.2rem);
  inset-inline-end: 1.6rem;
  inline-size: 1.2rem;
  block-size: 1.2rem;
  border-inline-end: 2px solid #fff;
  border-block-end: 2px solid #fff;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s ease;
}

.is-aboutAccordion .n27-acc.is-open .n27-acc__head::after {
  transform: translateY(-20%) rotate(-135deg);
}

.is-aboutAccordion .n27-acc:not(.is-open) .n27-acc__body {
  display: none;
}

.is-aboutAccordion .n27-aboutPage__section {
  padding-block-start: 6rem;
}

/* SP(749px以下) */
@media screen and (max-width: 749px) {
  .n27-aboutPage {
    padding-block-end: 6rem;
  }

  .n27-aboutPage__section {
    padding-block-start: 6rem;
  }

  .n27-aboutNav {
    padding-block-start: 4.8rem;
  }

  .n27-aboutNav__list {
    gap: .6rem 1.8rem;
  }

  .n27-aboutNav__link {
    font-size: 1.5rem;
  }

  .n27-aboutNav + .n27-aboutPage__section {
    padding-block-start: 2.4rem;
  }

  .n27-aboutPage__title {
    padding-block-start: 3rem;
    font-size: 2.2rem;
  }

  .n27-acc__body {
    padding-block-start: 3.2rem;
  }

  .n27-aboutPage__companyRow {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    margin-block-start: 3rem;
  }

  /* SPは項目名を値の上に積む(英語の項目名は長いため) */
  .n27-aboutPage__dlRow {
    grid-template-columns: 1fr;
    gap: .2rem;
    padding-block: 1rem;
  }

  .n27-aboutPage__dlRow dt::after {
    content: none;
  }

  .n27-aboutPage__companyImgs {
    flex-direction: column;
  }

  .n27-aboutPage__companyImgs img {
    inline-size: 100%;
    block-size: auto;
  }

  .n27-aboutPage__person,
  .n27-aboutPage__partner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .n27-aboutPage__personImg {
    inline-size: 60%;
    margin-inline: auto;
  }

  .n27-aboutPage__person + .n27-aboutPage__person,
  .n27-aboutPage__partner + .n27-aboutPage__partner {
    margin-block-start: 4.4rem;
  }

  .n27-aboutPage__personRole {
    margin-block-end: 2rem;
  }

  .n27-table-record thead th,
  .n27-table-record tbody th {
    padding-inline-start: .6rem;
    inline-size: auto;
  }

  .n27-aboutPage__map {
    margin-block-start: 4rem;
  }

  .n27-aboutPage__partnersLead {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .n27-aboutPage__region {
    margin-block-end: 1.2rem;
  }

  .n27-aboutPage__partnerName {
    padding-block-start: 1.2rem;
  }

  .n27-aboutPage__bio {
    margin-block-start: 1.6rem;
  }

  /* SPの文字サイズ(本文は16px基準。PC用の大きい値は縮める) */
  .n27-aboutPage__company,
  .n27-aboutPage__personName,
  .n27-aboutPage__partnerName {
    font-size: 2.1rem;
  }

  .n27-aboutPage__personRole,
  .n27-aboutPage__org {
    font-size: 1.6rem;
  }

  .n27-aboutPage__region {
    font-size: 1.8rem;
  }

  .n27-aboutPage__fig figcaption {
    font-size: 1.3rem;
  }

  /* 名前まわりの線は消し、区切りの線は写真の上(次の人との境目)に引く。
     名前の下の線があると、文章が上下どちらの写真のものか分かりにくいため */
  .n27-aboutPage__personName {
    padding-block-end: 0;
    border-block-end: 0;
  }

  .n27-aboutPage__partnerName {
    padding-block-start: 0;
    border-block-start: 0;
  }

  .n27-aboutPage__person + .n27-aboutPage__person,
  .n27-aboutPage__partner + .n27-aboutPage__partner {
    margin-block-start: 4.4rem;
    padding-block-start: 4.4rem;
    border-block-start: 1px solid var(--n27-line);
  }

  /* SPは行間を詰める(PCは2.0) */
  .n27-aboutPage__text {
    line-height: 1.7;
  }
}

/* ==========================================================================
   TOP: NEWS スライダー(PCでもスライダー。3枚表示+矢印。SPは従来どおり)
   ========================================================================== */
@media screen and (min-width: 1024px) {
  .news__list.slick-initialized {
    display: block;
    position: relative;
  }
  .news__list.slick-initialized .slick-list {
    margin-inline: -1.2rem;
  }
  .news__list.slick-initialized .slick-slide {
    padding-inline: 1.2rem;
  }
  .news__list.slick-initialized .news__item {
    margin-inline-end: 0;
  }
  .n27-newsArrow {
    position: absolute;
    inset-block-start: 8.6rem;
    z-index: 2;
    inline-size: 4.4rem;
    block-size: 4.4rem;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    cursor: pointer;
    transition: opacity .2s, background-color .2s;
  }
  .n27-newsArrow::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    inline-size: 1rem;
    block-size: 1rem;
    border-block-start: 2px solid #fff;
    border-inline-end: 2px solid #fff;
  }
  .n27-newsArrow.-next { inset-inline-end: -2.2rem; }
  .n27-newsArrow.-next::before { transform: translateX(-.2rem) rotate(45deg); }
  .n27-newsArrow.-prev { inset-inline-start: -2.2rem; }
  .n27-newsArrow.-prev::before { transform: translateX(.2rem) rotate(-135deg); }
  .n27-newsArrow:hover { background: #c8102e; }
  .n27-newsArrow.slick-disabled { opacity: 0; pointer-events: none; }
}
@media screen and (min-width: 1024px) {
  /* カードの高さを揃える(グリッドのときと同じ見た目) */
  .news__list.slick-initialized .slick-track { display: flex; }
  .news__list.slick-initialized .slick-slide { float: none; block-size: auto; }
  /* 本文(白い部分)も一緒に伸びるよう、top.css と同じ縦並びの flex のままにする */
  .news__list.slick-initialized .news__link { display: flex; flex-direction: column; block-size: 100%; }
}
@media screen and (min-width: 1024px) and (max-width: 1339px) {
  /* 画面が狭いときは矢印を内側に寄せる(はみ出し防止) */
  .n27-newsArrow.-next { inset-inline-end: .8rem; }
  .n27-newsArrow.-prev { inset-inline-start: .8rem; }
}

/* 会社概要(英語): 「Representative Director」が長く、コロンが次の行に落ちるため、項目名の列を広げる */
@media screen and (min-width: 750px) {
  body.en .n27-aboutPage__dlRow {
    grid-template-columns: 22rem 1fr;
  }
}

/* ==========================================================================
   Schedule(2027 Race Calendar)ページ  schedule/index.php・ja/schedule/index.php
   本文テンプレートは inc/schedule-content.php。HERO は TOP と同じ .fv27(inc/fv.php)
   ========================================================================== */
.n27-sch__inner {
  inline-size: min(100rem, 100% - 4rem);
  margin-inline: auto;
  padding-block-end: 10rem;
  font-family: var(--n27-font);
}

/* 見出し類は欧文の太字斜体(Montserrat) */
.n27-sch__title,
.n27-sch__h2,
.n27-sch__tags,
.n27-sch__live,
.n27-sch__ready {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-style: italic;
}

.n27-sch__sep {
  margin-inline: .5em;
}

/* 見出しの「Live Race」は赤(11/18 修正デザイン) */
.n27-sch__accent {
  color: var(--n27-red);
}

/* 見出し+導入(上の赤い線は幅いっぱい) */
.n27-sch__intro {
  padding-block-start: 10rem;
  /* X マークが右にはみ出すため、横方向だけ切る */
  overflow-x: clip;
}

.n27-sch__title {
  position: relative;
  padding-block-start: 12rem;
  font-size: 6rem;
  font-weight: 800;
  line-height: 1.2;
}

/* 大見出し。末尾の文字にグレーの X マークを背面で重ねる(位置・大きさは文字サイズ基準の em) */
.n27-sch__titleMain {
  position: relative;
  display: inline-block;
  isolation: isolate;
  text-transform: uppercase;
}

.n27-sch__titleMain::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -2.8em;
  inset-block-start: -1em;
  inline-size: 4.52em;
  block-size: 3.27em;
  background: url(../img/schedule/title_x_gray.svg) no-repeat center / contain;
}

.n27-sch__title::before,
.n27-sch__h2::before,
.n27-sch__aboutTitle::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 8rem;
  block-size: 2px;
  background: var(--n27-red);
}

.n27-sch__title::before {
  inline-size: 100%;
}

.n27-sch__lead,
.n27-sch .n27-aboutPage__text {
  font-size: 1.6rem;
  line-height: 2;
  /* 日本語の1〜2文字だけが次の行に落ちるのを防ぐ(未対応ブラウザは通常の折り返し) */
  word-break: auto-phrase;
  text-wrap: pretty;
}

.n27-sch__lead {
  margin-block-start: 5.6rem;
}

/* レース形式ごとのまとまり */
.n27-sch__group {
  margin-block-start: 6.4rem;
}

.n27-sch__h2 {
  position: relative;
  padding-block-start: 3.4rem;
  margin-block-end: 2.8rem;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.n27-sch__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6.8rem;
}

/* カード: 写真の上に、左下の3段のラベル(RACE n / レース形式 / 月・場所)を重ねる */
.n27-sch__card {
  position: relative;
  overflow: hidden;
  background: #000;
}

.n27-sch__card img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.n27-sch__tags {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  color: #fff;
  font-weight: 800;
}

.n27-sch__tag {
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.8rem) 100%, 0 100%);
  white-space: nowrap;
}

/* 全カード共通で、上から 赤(RACE n)・黒(レース形式)・赤(月・場所)。11/18 修正デザイン */
.n27-sch__tag.-race {
  padding: .6rem 4.4rem .6rem 3.8rem;
  background: var(--n27-red);
  font-size: 3.4rem;
  line-height: 1.2;
}

.n27-sch__tag.-format {
  padding: .7rem 4rem .7rem 3.4rem;
  background: #000;
  font-size: 1.8rem;
  line-height: 1.4;
}

.n27-sch__tag.-meta {
  padding: .6rem 3.4rem .6rem 3rem;
  background: var(--n27-red);
  font-size: 1.8rem;
  line-height: 1.4;
}

.n27-sch__tbc {
  font-weight: 700;
}

/* LIVE マーク(右上。Live Race のカードだけ)。角丸の赤い帯に文字だけ。
   再生ボタンの図形は、生放送と誤解されないよう付けない。画像は使わない
   大きさは文字サイズ基準の em(SPは font-size を変えるだけで縮む) */
.n27-sch__live {
  position: absolute;
  inset-block-start: 2.6rem;
  inset-inline-end: 1.6rem;
  display: flex;
  align-items: center;
  block-size: 1.4em;
  padding-inline: .5em;
  border-radius: .2em;
  background: var(--n27-red);
  box-shadow: 0 .08em .2em rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 2.4rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

/* 大きな GET READY, USA。赤い平行四辺形の帯。
   デザインの書体 Prometo は Web フォントが無いので Montserrat で代用 */
.n27-sch__ready {
  margin-block-start: 6rem;
  margin-inline: 1rem;
  padding-block: 2.8rem;
  background: var(--n27-red);
  clip-path: polygon(9.4% 0, 100% 0, 90.6% 100%, 0 100%);
  color: #fff;
  font-size: 7.2rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

/* About AIR RACE X(上に区切り線。帯は clip-path で切るため線はこちらに持たせる) */
.n27-sch__about {
  margin-block-start: 8.7rem;
  padding-block-start: 8.7rem;
  border-block-start: 1px solid var(--n27-line);
}

.n27-sch__aboutTitle {
  position: relative;
  padding-block-start: 4.4rem;
  margin-block-end: 2rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}

.n27-sch .n27-about__h3 {
  margin-block-start: 5.6rem;
}

.n27-sch__about .n27-btns {
  margin-block-start: 6.4rem;
}

/* SP(749px以下): カードは1列。ラベルは小さく */
@media screen and (max-width: 749px) {
  .n27-sch__intro {
    padding-block-start: 6rem;
  }

  /* 大見出しは1行に収め、X マークも画面内に入る大きさにする(SPの rem は画面幅に比例) */
  .n27-sch__title {
    padding-block-start: 6rem;
    font-size: 2.3rem;
  }

  .n27-sch__titleMain {
    white-space: nowrap;
  }

  .n27-sch__titleMain::after {
    inset-inline-end: -2.3em;
  }

  .n27-sch__lead,
  .n27-sch .n27-aboutPage__text {
    font-size: 1.4rem;
  }

  .n27-sch__lead {
    margin-block-start: 3.2rem;
  }

  .n27-sch__group {
    margin-block-start: 4.8rem;
  }

  .n27-sch__h2 {
    padding-block-start: 2.6rem;
    margin-block-end: 2rem;
    font-size: 2rem;
  }

  .n27-sch__cards {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .n27-sch__tag.-race {
    padding: .5rem 3.2rem .5rem 2.4rem;
    font-size: 2.6rem;
  }

  .n27-sch__tag.-format {
    padding: .5rem 3rem .5rem 2.2rem;
    font-size: 1.4rem;
  }

  .n27-sch__tag.-meta {
    padding: .5rem 2.6rem .5rem 2rem;
    font-size: 1.4rem;
  }

  .n27-sch__live {
    inset-block-start: 1.4rem;
    inset-inline-end: 1rem;
    font-size: 1.6rem;
  }

  .n27-sch__ready {
    margin-block-start: 4.8rem;
    margin-inline: 0;
    padding-block: 1.6rem;
    font-size: 2.6rem;
  }

  .n27-sch__about {
    margin-block-start: 4.8rem;
    padding-block-start: 4.8rem;
  }

  .n27-sch__aboutTitle {
    padding-block-start: 3rem;
    font-size: 1.8rem;
  }

  .n27-sch .n27-about__h3 {
    margin-block-start: 3.6rem;
  }

  .n27-sch__about .n27-btns {
    margin-block-start: 4.8rem;
  }
}

/* ---------------------------------------------------------------------
   TOP: スポンサー欄(11/18 修正デザイン。仮配置)
   白地に見出しとロゴを中央寄せで並べる。ロゴの数が変わっても折り返すだけで済むよう flex にする
   --------------------------------------------------------------------- */
.n27-sponsors {
  padding-block: 8rem 11rem;
  background: #fff;
  color: #000;
}

.n27-sponsors__title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.3rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.n27-sponsors__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem 21rem;
  margin-block-start: 3.2rem;
  padding-inline: 2rem;
}

/* ロゴは高さを揃える(画像の余白込みでデザインの見た目に合わせた値) */
.n27-sponsors__item img {
  display: block;
  inline-size: auto;
  block-size: 10.5rem;
}

@media screen and (min-width: 750px) and (max-width: 1199px) {
  .n27-sponsors__list {
    column-gap: 10rem;
  }
}

@media screen and (max-width: 749px) {
  .n27-sponsors {
    padding-block: 5.6rem 8rem;
  }

  .n27-sponsors__title {
    font-size: 2.4rem;
  }

  .n27-sponsors__list {
    gap: 2.4rem 4rem;
    margin-block-start: 2.4rem;
  }

  .n27-sponsors__item img {
    block-size: 7rem;
  }
}

/* ---------------------------------------------------------------------
   TOP: セクション見出し右の矢印(NEWS・TEAMS・RACE ARCHIVES)のタップ領域
   矢印は細い線の画像で、リンク自体が 30×6px しかなくスマホで押せなかった。
   見た目は変えず、透明な疑似要素で当たり判定だけを約 54×44px に広げる
   --------------------------------------------------------------------- */
.top__titleIcon .top__titleLink {
  position: relative;
}

.top__titleIcon .top__titleLink::after {
  content: "";
  position: absolute;
  inset: -1.9rem -1.2rem;
}

/* TOP: NEWS セクションの飾り背景(::before)は下の TEAMS の見出しに食い込む。
   NEWS が z-index:1 のため背景が TEAMS の上に乗り、見出しが薄く見え、スマホでは
   TEAMS の矢印リンクのタップも横取りしていた。TEAMS を NEWS より前に出し、
   飾りはタップも通す(背景はあくまで背景) */
.news::before {
  pointer-events: none;
}

.teams {
  position: relative;
  z-index: 2;
}

/* TOP の Instagram 欄(最新投稿のキャプチャ画像。クリックで公式Instagramへ) */
.n27-instaLink {
  display: block;
  margin-block-start: 3rem;
}

.n27-instaLink img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

@media (hover: hover) and (pointer: fine) {
  .n27-instaLink {
    transition: opacity .3s ease;
  }

  .n27-instaLink:hover {
    opacity: .8;
  }
}

/* About us の追従型ページ内リンク。スクロールしてもヘッダーの下に残る */
.n27-aboutNav-sticky {
  position: sticky;
  inset-block-start: 120px; /* 固定ヘッダーの高さ(PC) */
  z-index: 50;
  margin-block-start: 11.4rem;
  padding-block: 1.4rem;
  background-color: #000;
}

.n27-aboutNav-sticky .n27-aboutNav__link {
  font-size: 1.8rem;
}

.n27-aboutNav-sticky .n27-aboutNav__link.is-current {
  color: var(--n27-red);
}

/* 固定ヘッダーが65pxになる幅(750〜1199px)では、追従メニューの位置も合わせる */
@media screen and (min-width: 750px) and (max-width: 1199px) {
  .n27-aboutNav-sticky {
    inset-block-start: 65px;
  }
}

.n27-aboutNav-sticky ~ .n27-aboutPage__section {
  scroll-margin-block-start: 14rem;
}

@media screen and (max-width: 749px) {
  .n27-aboutNav-sticky {
    inset-block-start: 17.34vw; /* 固定ヘッダーの高さ(SP。幅に比例して変わる) */
    margin-block-start: 4.8rem;
    padding-block: .8rem;
  }

  .n27-aboutNav-sticky .n27-aboutNav__list {
    gap: .2rem 1.4rem;
  }

  .n27-aboutNav-sticky .n27-aboutNav__link {
    font-size: 1.3rem;
  }

  .n27-aboutNav-sticky ~ .n27-aboutPage__section {
    scroll-margin-block-start: 11rem;
  }
}
