@charset "utf-8";
/* =========================================================
   マラソンフェスティバルシリーズ
   The site is a race calendar, so the calendar is the design:
   bib-plate dates, month rules, and a friendly rounded voice.
   ========================================================= */

:root {
  --ink:      #1b1a17;
  --ink-2:    #46433c;
  --ink-3:    #78736a;
  --paper:    #f6f5f2;
  --paper-2:  #ecebe5;
  --card:     #ffffff;
  --line:     #ddd9cf;
  --line-ink: rgba(255, 255, 255, .18);
  --flag:     #e8452b;   /* finish-tape vermilion — the one bold colour */
  --flag-dk:  #c8331b;
  --flag-pale:#fdece8;

  --wrap:     1160px;
  --gutter:   clamp(20px, 5vw, 44px);
  --header-h: 74px;

  --font-en: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px; line-height: 1.9; font-weight: 400;
  color: var(--ink); background: var(--paper);
  letter-spacing: .02em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; }
.section--ink :focus-visible, .footer :focus-visible { outline-color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sp { display: none; }
@media (max-width: 620px) { .sp { display: inline; } }

/* ---------- layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--tall { padding: clamp(120px, 18vw, 200px) 0; }

.shead { margin-bottom: clamp(30px, 4.5vw, 52px); }
.shead__label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 800; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--flag);
}
.shead__label::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--flag); }
.section--ink .shead__label { color: #ffb3a5; }
.section--ink .shead__label::before { background: #ffb3a5; }
.shead__title { margin-top: 12px; font-size: clamp(26px, 4.2vw, 42px); font-weight: 700; line-height: 1.4; letter-spacing: .01em; text-wrap: balance; }
.shead__lead { margin-top: 16px; max-width: 42em; font-size: clamp(14.5px, 1.7vw, 16px); color: var(--ink-2); }
.section--ink .shead__lead { color: rgba(246, 245, 242, .78); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  background: var(--flag); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  border: 2px solid var(--flag);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--flag-dk); border-color: var(--flag-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* =========================================================
   header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 130;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(246, 245, 242, .86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header--scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(27, 26, 23, .05); }
.header__inner {
  width: min(100% - var(--gutter) * 2, 1300px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}

/* wordmark: three stacked bars = a finish tape / bib rule */
.logo { display: inline-flex; align-items: center; gap: 11px; position: relative; z-index: 120; }
.logo__mark { display: grid; gap: 3px; flex: none; }
.logo__mark i { display: block; width: 26px; height: 5px; border-radius: 3px; background: var(--flag); }
.logo__mark i:nth-child(2) { background: var(--ink); }
.logo__mark i:nth-child(3) { width: 16px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__en { font-family: var(--font-en); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo__jp { font-size: 9.5px; font-weight: 500; letter-spacing: .12em; color: var(--ink-3); margin-top: 3px; }
.footer .logo__jp { color: rgba(246, 245, 242, .6); }
.footer .logo__mark i:nth-child(2) { background: var(--paper); }

.gnav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.gnav__link { position: relative; padding: 8px 0; font-size: 14px; font-weight: 700; }
.gnav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px;
  background: var(--flag); transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease);
}
.gnav__link:hover::after { transform: scaleX(1); }

.navtoggle { display: none; position: relative; z-index: 140; width: 46px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; }
.navtoggle__bar { position: absolute; left: 12px; width: 22px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.navtoggle__bar:nth-child(1) { top: 15px; }
.navtoggle__bar:nth-child(2) { top: 22px; }
.navtoggle__bar:nth-child(3) { top: 29px; }
.is-navopen .navtoggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-navopen .navtoggle__bar:nth-child(2) { opacity: 0; }
.is-navopen .navtoggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .gnav {
    position: fixed; inset: 0; z-index: 110;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity .26s var(--ease), visibility .26s var(--ease);
  }
  .is-navopen .gnav { opacity: 1; visibility: visible; }
  .gnav__list { flex-direction: column; gap: 6px; width: min(100% - 48px, 380px); text-align: center; }
  .gnav__list > li { width: 100%; }
  .gnav__link { display: block; padding: 14px 0; font-size: 18px; }
  .gnav__link::after { display: none; }
}

/* =========================================================
   hero — 大会写真のスライドショー
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 92px)) 0 clamp(64px, 9vw, 110px);
  color: #fff;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 32s infinite; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
/* 4枚 × 8秒 = 32秒で一巡。前の写真が消えるのと次が現れるのを
   完全に重ねて、切り替わりで暗くならないようにしている */
.hero__slide:nth-child(1) { animation-delay: -2s; }
.hero__slide:nth-child(2) { animation-delay:  6s; }
.hero__slide:nth-child(3) { animation-delay: 14s; }
.hero__slide:nth-child(4) { animation-delay: 22s; }
@keyframes heroFade {
  0%             { opacity: 0; transform: scale(1.08); }
  6.25%, 25%     { opacity: 1; }
  31.25%, 100%   { opacity: 0; }
  100%           { transform: scale(1); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(20,18,15,.86) 0%, rgba(20,18,15,.62) 46%, rgba(20,18,15,.28) 100%),
    linear-gradient(to top, rgba(20,18,15,.6) 0%, rgba(20,18,15,0) 42%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 940px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__kicker {
  font-family: var(--font-en); font-weight: 800; font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: .12em; text-transform: uppercase; color: #ffb9ac;
}
.hero__title {
  margin-top: 16px;
  font-size: clamp(34px, 6.6vw, 74px); font-weight: 700; line-height: 1.28;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__title em { font-style: normal; position: relative; display: inline-block; }
.hero__title em span { position: relative; z-index: 1; }
.hero__title em::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .04em; height: .26em;
  background: var(--flag); border-radius: .13em;
  transform: scaleX(0) skewX(-8deg); transform-origin: left;
  animation: swipe .8s .35s var(--ease) forwards;
}
@keyframes swipe { to { transform: scaleX(1) skewX(-8deg); } }
.hero__sub { margin-top: 18px; font-size: clamp(17px, 2.3vw, 24px); font-weight: 700; line-height: 1.7; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero__lead { margin-top: 16px; max-width: 30em; font-size: clamp(14.5px, 1.7vw, 16px); color: rgba(255,255,255,.88); text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.hero__actions { margin-top: clamp(26px, 3.2vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-en); font-weight: 800; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,0));
  animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* next race — ゼッケン風のプレート */
.next {
  background: var(--card); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 10px 10px 0 rgba(27, 26, 23, .45);
}
.next__label {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--flag); color: #fff;
  font-family: var(--font-en); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.next__date, .race__md {
  font-family: var(--font-en); font-weight: 800; font-variant-numeric: tabular-nums;
  line-height: .9; letter-spacing: -.02em;
}
.next__date { margin-top: 14px; font-size: clamp(52px, 8vw, 78px); display: flex; align-items: baseline; gap: 2px; }
.next__date i { font-style: normal; color: var(--flag); }
.next__ymd { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.next__name { margin-top: 14px; font-size: clamp(17px, 2.1vw, 21px); font-weight: 700; line-height: 1.55; }
.next__events { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.next__place { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.next__link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--flag);
  border-bottom: 2px solid var(--flag); padding-bottom: 2px;
}
.next__link:hover { color: var(--flag-dk); border-bottom-color: var(--flag-dk); }

/* running tape */
.tape {
  display: flex; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: 11px 0; white-space: nowrap;
}
.tape span {
  font-family: var(--font-jp); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  padding-right: 1.5em; animation: marquee 34s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* =========================================================
   コンセプト帯
   ========================================================= */
.concept { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(280px, 42vw, 460px); }
.concept__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.concept__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,15,.72) 0%, rgba(20,18,15,.35) 55%, rgba(20,18,15,.15) 100%);
}
.concept__inner { position: relative; z-index: 1; padding: clamp(40px, 6vw, 70px) 0; }
.concept__text {
  font-size: clamp(26px, 5.2vw, 54px); font-weight: 700; line-height: 1.45; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}

/* =========================================================
   features — 写真つき
   ========================================================= */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 26px); }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.feat__figure { position: relative; margin: 0; }
.feat__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feat__no {
  position: absolute; left: 0; bottom: 0;
  padding: 6px 16px 8px; border-radius: 0 12px 0 0;
  background: var(--flag); color: #fff;
  font-family: var(--font-en); font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.feat__body { padding: clamp(20px, 2.6vw, 28px); }
.feat__title { font-size: clamp(18px, 2.3vw, 22px); font-weight: 700; letter-spacing: .01em; line-height: 1.55; }
.feat__note { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.feat__text { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.feat__list { margin-top: 14px; display: grid; gap: 7px; }
.feat__list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); }
.feat__list li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 12px; height: 4px; border-radius: 2px; background: var(--flag);
}

/* =========================================================
   gallery
   ========================================================= */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gal__item { margin: 0; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.gal__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gal__item:hover img { transform: scale(1.05); }
/* 1枚目と5枚目は大きく見せて単調さを避ける */
@media (min-width: 901px) {
  .gal__item:nth-child(1), .gal__item:nth-child(6) { grid-column: span 2; grid-row: span 2; }
  .gal__item:nth-child(1) img, .gal__item:nth-child(6) img { aspect-ratio: 4 / 3.02; height: 100%; }
}

/* =========================================================
   schedule
   ========================================================= */
.month {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: clamp(30px, 4vw, 44px) 0 14px;
  padding-bottom: 10px; border-bottom: 3px solid var(--ink);
}
.month:first-of-type { margin-top: 0; }
.month__num {
  font-family: var(--font-en); font-weight: 800; font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.month__jp { font-size: 14px; font-weight: 700; color: var(--ink-3); }

/* display を指定した要素にも hidden 属性を効かせる（JSで大会を出し入れするため） */
[hidden] { display: none !important; }

.races { display: grid; gap: 12px; }
.race {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 28px); align-items: center;
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.4vw, 26px);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.race:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 10px 26px rgba(27, 26, 23, .09); }
.race__bib { text-align: center; padding-right: clamp(10px, 1.6vw, 18px); border-right: 2px dotted var(--line); }
.race__md { display: flex; align-items: baseline; justify-content: center; font-size: clamp(30px, 4vw, 40px); }
.race__md i { font-style: normal; color: var(--flag); margin: 0 1px; }
.race__ymd { margin-top: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }
.race__tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.race__official {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink);
}
.race__badge { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.race__badge--entry { background: var(--flag); color: #fff; }
.race__badge--soon  { background: var(--flag-pale); color: var(--flag-dk); }
.race__badge--done  { background: var(--paper-2); color: var(--ink-3); }
.race__name { margin-top: 7px; font-size: clamp(15.5px, 1.9vw, 18px); font-weight: 700; line-height: 1.55; }
.race__meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 12.5px; color: var(--ink-3); }
.race__events { color: var(--ink-2); }
.race__link {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px;
  border: 2px solid var(--ink); font-size: 13.5px; font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.race__link:hover { background: var(--ink); color: var(--paper); }
.race__nolink { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.race--past { opacity: .78; }
.race--past .race__md i { color: var(--ink-3); }
@media (max-width: 780px) {
  .race { grid-template-columns: 92px minmax(0, 1fr); }
  .race__md { font-size: 27px; }
  .race__action { grid-column: 1 / -1; }
  .race__link, .race__nolink { display: inline-flex; }
}

/* =========================================================
   お問い合わせ（大会事務局2社）
   ========================================================= */
.offices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 24px); row-gap: 14px;
}
@media (max-width: 820px) { .offices { grid-template-columns: 1fr; } }
.office {
  display: grid; grid-template-rows: auto 1fr auto auto auto; row-gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-ink); border-radius: 18px;
}
/* ロゴと団体名 */
.office__head {
  display: grid; grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 22px); align-items: center;
}
@media (max-width: 560px) { .office__head { grid-template-columns: 1fr; gap: 14px; } }
.office__logo {
  width: 120px; height: 120px; display: grid; place-items: center;
  background: #fff; border-radius: 12px; padding: 12px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.office__logo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.office__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.office__role {
  font-family: var(--font-en); font-weight: 800; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: #ffb3a5;
}
.office__name {
  margin-top: 4px; font-size: clamp(17px, 2.1vw, 20px); font-weight: 700;
  line-height: 1.5; min-height: 3em; text-wrap: balance;   /* 団体名が2行になっても位置がずれないよう2行分確保 */
}
.office__name a { border-bottom: 2px solid transparent; padding-bottom: 1px; transition: border-color .2s var(--ease); }
.office__name a:hover { border-bottom-color: rgba(255, 179, 165, .8); }

/* 対応内容（ひとまとまりに囲って読みやすくする） */
.office__items {
  padding: 14px clamp(14px, 1.8vw, 18px) 15px;
  background: rgba(246, 245, 242, .05);
  border: 1px solid rgba(246, 245, 242, .1); border-radius: 12px;
}
.office__cap {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #ffb3a5;
}
.office__list { margin-top: 9px; list-style: none; display: grid; gap: 7px; }
.office__list li {
  position: relative; padding-left: 22px;
  font-size: 14px; line-height: 1.7; color: rgba(246, 245, 242, .88);
  text-wrap: balance;                            /* 折り返しで1文字だけ残らないように */
}
.office__list li::before {                       /* CSSで描いたチェックマーク */
  content: ""; position: absolute; left: 3px; top: .34em;
  width: 5px; height: 10px;
  border-right: 2px solid #ffb3a5; border-bottom: 2px solid #ffb3a5;
  transform: rotate(45deg);
}

/* お見積りの案内 */
.office__note {
  padding-left: 13px;
  border-left: 3px solid rgba(255, 179, 165, .55);
  font-size: 13.5px; line-height: 1.85; color: rgba(246, 245, 242, .78);
  text-wrap: pretty;
}

.office__mail {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(15px, 1.9vw, 18px); word-break: break-all;
}
.office__mail a { border-bottom: 2px solid rgba(255, 179, 165, .5); padding-bottom: 2px; }
.office__mail a:hover { color: #ffb3a5; border-bottom-color: #ffb3a5; }
.office__site { align-self: start; }
.office__site a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line-ink);
  font-size: 13.5px; font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.office__site a:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* ロゴ／対応内容／案内文／メール／公式サイトの各行を、2枚のカードでそろえる */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 821px) {
    .offices { grid-template-rows: auto 1fr auto auto auto; }
    .office  { grid-row: span 5; grid-template-rows: subgrid; }
  }
}
.info__note { margin-top: clamp(20px, 2.6vw, 28px); font-size: 13px; color: rgba(246, 245, 242, .6); }

/* =========================================================
   footer
   ========================================================= */
.footer { background: var(--ink); color: rgba(246, 245, 242, .72); padding: clamp(44px, 6vw, 64px) 0 24px; border-top: 1px solid var(--line-ink); }
.footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.footer .logo__en { color: var(--paper); }
.footer__text { font-size: 14px; line-height: 2; }
.footer__copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-ink); font-size: 12.5px; color: rgba(246, 245, 242, .5); }

.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--flag); color: #fff; box-shadow: 0 8px 20px rgba(232, 69, 43, .35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), visibility .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--flag-dk); }
.totop svg { width: 18px; height: 18px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title em::after { transform: scaleX(1) skewX(-8deg); }
  .tape span { animation: none; }
}

@media print {
  .header, .gnav, .totop, .tape { display: none !important; }
  body { background: #fff; color: #000; }
  .race { break-inside: avoid; }
}
