/* =========================================================
   EVENT BRIDGE — Landing Page
   ========================================================= */

:root {
  /* brand */
  --c-blue:      #2474c9;
  --c-blue-dk:   #185fb0;
  --c-blue-soft: #dce9fb;
  --c-pink:      #e9537d;
  --c-pink-dk:   #d43f6c;
  --c-pink-soft: #fce8ef;
  --c-purple:    #9b59c9;

  /* ink / surfaces */
  --c-ink:       #001125;
  --c-ink-soft:  #5b6172;
  --c-ink-mute:  #8a90a2;
  --c-line:      #e7e9f0;
  --c-bg:        #ffffff;
  --c-bg-soft:   #f5f8ff;
  --c-bg-blue:   #eef4fd;

  /* gradients */
  --grad-pink: linear-gradient(135deg, #ee6090 0%, #e34e76 100%);
  --grad-blue: linear-gradient(135deg, #119ad6 0%, #0379c8 100%);
  --grad-band: linear-gradient(112deg, #0b529c 0%, #00a0e7 22%, #5b95d2 41%, #d189b9 52%, #e674aa 73%, #e9537d 100%);
  --grad-mark: linear-gradient(135deg, #1366c8 0%, #3a9fe0 45%, #ff4d8d 100%);

  /* effects */
  --sh-sm: 0 4px 14px rgba(31, 41, 80, .06);
  --sh-md: 0 12px 34px rgba(31, 41, 80, .09);
  --sh-lg: 0 26px 64px rgba(31, 41, 80, .14);
  --sh-pink: 0 14px 34px rgba(242, 79, 135, .32);
  --sh-blue: 0 14px 34px rgba(47, 108, 246, .30);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 30px;

  --maxw: 1120px;
  --header-h: 80px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
/* hidden 属性の要素はクラス側の display 指定より優先して必ず隠す（例: イベント0件の検索バー） */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
ul, ol { list-style: none; }
em { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 800; letter-spacing: .01em; }

.container { width: 100%; max-width: calc(var(--maxw) + 48px); margin: 0 auto; padding: 0 24px; }
.c-blue { color: var(--c-blue); }
.c-pink { color: var(--c-pink); }
.pc-only { display: inline; }
.sp-only { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 18px; position: relative; flex: none; }
.btn .arrow::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn--primary { background: var(--grad-pink); color: #fff; box-shadow: var(--sh-pink); }
.btn--primary:hover { box-shadow: 0 18px 40px rgba(242,79,135,.42); }
.btn--lg { height: 60px; padding: 0 36px; font-size: 16px; }
.btn--ghost {
  background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-line);
  box-shadow: var(--sh-sm); height: 56px; padding: 0 40px;
}
.btn--ghost:hover { border-color: var(--c-blue); color: var(--c-blue); }
.btn--ghost .arrow { width: 16px; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(180deg, rgba(255,255,255,.985) 0%, rgba(255,255,255,.83) 52%, rgba(255,255,255,.06) 100%);
  backdrop-filter: saturate(140%) blur(14px);
  transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(31,41,80,.07); background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 100%); }
.header__inner {
  height: 100%; max-width: 1328px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo__full { height: 32px; width: auto; display: block; }
/* legacy fallback (if the lockup SVG is unavailable) */
.logo__mark { width: 46px; height: 23px; flex: none; object-fit: contain; }
.logo__text { font-family: "Inter", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .02em; color: #24274a; }
.logo--lg .logo__mark { width: 50px; height: 25px; }
.logo--lg .logo__text { font-size: 23px; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__list a { font-size: 15px; font-weight: 600; color: #41475a; white-space: nowrap; }
.nav__list a:hover { color: var(--c-blue); }
.nav__cta { background: #0483cb; color: #fff; box-shadow: none; height: 44px; padding: 0 24px; font-size: 14px; border-radius: 8px; }
.nav__cta:hover { background: #0379c8; transform: translateY(-2px); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: url("../images/hero_bg.png") top center / 100% 900px no-repeat, #f6f9ff;
}
.cap-mode .hero__inner { min-height: 900px; }
.cap-mode .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1328px; margin: 0 auto;
  display: flex; align-items: center; min-height: max(860px, 100vh);
  padding: calc(var(--header-h) + 36px) 24px 64px;
}
.hero__copy { max-width: 1000px; position: relative; z-index: 2; }
.hero__mark { width: 220px; height: auto; margin-bottom: 43px; }
.hero__title {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(20px, 3.9vw, 56px); font-weight: 600; line-height: 1.2;
  letter-spacing: 0; color: #24274a;
}
.hero__line { background: #fff; padding: 12px 16px; }
.grad-blue, .grad-pink { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.grad-blue { background-image: linear-gradient(113.149deg, #0a5aa4 0%, #01a0e7 100%); }
.grad-pink { background-image: linear-gradient(113.355deg, #e179ad 0%, #e95580 100%); }
.hero__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 43px; height: 64px; padding: 0 32px; min-width: 286px;
  background: #0483cb; color: #fff; border-radius: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.44px;
  box-shadow: 0 14px 30px rgba(4,131,203,.26); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(4,131,203,.4); }
.hero__cta .arrow { width: 20px; height: 20px; position: relative; flex: none; }
.hero__cta .arrow::before {
  content: ""; position: absolute; inset: 0; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* hero photo cluster — full-bleed, sized & positioned to match Figma (1440×900):
   TGC 480 / fireworks 376 (bleeds off the right edge) / fes 198 — % of the hero box */
/* visual = 900px reference band (circles positioned % of 1440x900 → matches Figma).
   Vertically centered in the 100vh hero so on tall screens the cluster aligns with the
   centered title instead of clinging to the top (which left a gap below the bottom circle). */
/* center the 900px circle band in the 100vh hero, but never let its top go above 0
   (otherwise on viewports <900px tall the top circle rises into the header/nav). */
.hero__visual { position: absolute; top: max(-10px, calc(50% - 460px)); left: 0; right: 0; height: 900px; z-index: 1; pointer-events: none; }
.cap-mode .hero__visual { top: -10px; }
.hero__circle { position: absolute; border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.hero__circle img { width: 100%; height: 100%; object-fit: cover; }
/* circle positions match Figma hero; z-order = stage(front) > crowd > expo(back) per Figma layering */
.hero__circle--tgc  { width: 31.6%;  max-width: 480px; top: 11.4%; right: 21.3%; z-index: 4; box-shadow: 0 24px 56px rgba(31,41,80,.18); }
.hero__circle--fire { width: 26.1%;  max-width: 392px; top: 45.7%; right: 6.4%;  z-index: 3; box-shadow: 0 20px 48px rgba(31,41,80,.15); }
.hero__circle--fes  { width: 13.75%; max-width: 206px; top: 20.4%; right: 9.3%;  z-index: 2; box-shadow: 0 16px 36px rgba(31,41,80,.16); }

/* =========================================================
   Section heads (shared)
   ========================================================= */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head__tag {
  display: inline-block; font-family: "Inter", sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .14em; color: var(--c-blue); padding: 5px 16px; border-radius: 999px;
  background: var(--c-blue-soft); margin-bottom: 18px;
}
.section-head__title { font-size: clamp(25px, 3.2vw, 34px); font-weight: 900; color: var(--c-ink); }
.section-head__lead { margin-top: 18px; color: var(--c-ink-soft); font-size: 15.5px; }

/* big left-aligned section heading */
.service__h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: var(--c-ink); margin-bottom: 36px; }

/* =========================================================
   Intro / EVENT BRIDGEとは
   ========================================================= */
.intro { padding: 80px 0; }
.intro__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.intro__title { font-size: 32px; font-weight: 600; line-height: 1.6; margin-bottom: 17px; color: var(--c-ink); }
.intro__text p { color: var(--c-ink); font-size: 18px; line-height: 1.6; max-width: 520px; }
.intro__visual { justify-self: end; max-width: 520px; }

/* =========================================================
   協賛募集中のイベント
   ========================================================= */
.events { padding: 80px 0; background: #f6f9ff; }
.events__head { margin-bottom: 40px; }
.events__head .service__h2 { margin-bottom: 12px; }
.events__lead { color: var(--c-ink-soft); font-size: 15px; max-width: 820px; }
/* left-aligned, data-driven: 1 card sits left, more wrap rightward */
.events__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.events__head .service__h2 { color: #001125; line-height: 1.6; }
.events__empty { color: var(--c-ink-soft); font-size: 15px; padding: 8px 2px; }
/* 検索・絞り込み・並び替え（主催FB #3） */
.events__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; }
.events__search { position: relative; flex: 1 1 280px; min-width: 0; }
.events__search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8a90a2; pointer-events: none; }
.events__search input { width: 100%; height: 46px; border: 1px solid #d7dce4; border-radius: 8px; background: #fff; padding: 0 14px 0 42px; font: inherit; font-size: 14px; color: #001125; }
.events__select { height: 46px; max-width: 100%; border: 1px solid #d7dce4; border-radius: 8px; background: #fff; padding: 0 10px; font: inherit; font-size: 14px; color: #001125; }
.events__search input:focus, .events__select:focus { outline: none; border-color: #0483cb; box-shadow: 0 0 0 3px rgba(4,131,203,.15); }
.events__check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #44506a; cursor: pointer; white-space: nowrap; }
.events__check input { width: 16px; height: 16px; accent-color: #0483cb; }
.events__count { font-size: 13px; font-weight: 600; color: var(--c-ink-soft); margin: -10px 0 16px; }
.ev-card__ph { width: 100%; height: 100%; background: linear-gradient(135deg, #e8edf6, #f3f5fa); }
.ev-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.06), 0 1px 1px 0 rgba(0,0,0,.04); border: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.ev-card { cursor: pointer; }
.ev-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.ev-card:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }
.ev-card__thumb { position: relative; aspect-ratio: 378 / 227; overflow: hidden; }
.ev-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 横長でない画像（横幅が高さの1.3倍未満）は切り抜かず全体を表示し、余白は同じ画像をぼかして敷く。
   is-whole と背景用の img.imgbg は script.js が読み込み後に付ける（一覧のカードと詳細の画像枠で共通） */
.ev-card__thumb.is-whole, .evm__media.is-whole { background: #d9dee8; }
.ev-card__thumb.is-whole > img.imgbg, .evm__media.is-whole > img.imgbg { position: absolute; inset: -20px; width: calc(100% + 40px); max-width: none; height: calc(100% + 40px); max-height: none; object-fit: cover; filter: blur(18px) saturate(1.1); opacity: .9; pointer-events: none; } /* 枠より20pxずつ大きくして、ぼかしの縁が枠の中に見えないようにする（共通の img { max-width:100% } を解除） */
.ev-card__thumb.is-whole > img:not(.imgbg), .evm__media.is-whole > img:not(.imgbg) { position: relative; object-fit: contain; }
.ev-card--ended .ev-card__thumb.is-whole > img.imgbg { filter: blur(18px) saturate(1.1) grayscale(.35); }
/* イベント終了の表示（開催期間の最終日を過ぎたイベント。2026-09-29 MTG で「募集終了」の表示は廃止） */
.ev-card__status { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 17, 37, .72); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ev-card--ended .ev-card__thumb img { filter: grayscale(.35); }
/* カテゴリー名が長くても右上の「イベント終了」と重ならないよう、1行で省略。
   バッジの幅(約92px)＋右端12px＋左端12px＋間隔12px を空ける */
.ev-card__thumb .ev-card__cat { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card--ended .ev-card__thumb .ev-card__cat { max-width: calc(100% - 128px); }
.ev-card__cat {
  position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600; color: #fff;
  background: #e9537d; padding: 4px 10px; border-radius: 999px;
}
.ev-card__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.ev-card__areas { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-card__area { display: inline-block; font-size: 13px; font-weight: 600; color: #44506a; background: #fff; border: 1px solid #d7dce4; border-radius: 999px; padding: 4px 13px; line-height: 1.4; }
.ev-card__head { display: flex; flex-direction: column; gap: 8px; }
.ev-card__title { font-size: 20px; font-weight: 600; color: #000; line-height: 1.6; }
.ev-card__meta { display: flex; flex-direction: column; gap: 6px; }
.ev-card__meta li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #666; }
.ev-card__meta .ic { width: 18px; height: 18px; color: #666; }
/* 開催期間は「〜」の後ろ(<wbr>)で折り返す（「2026年11」と「月8日」のように数字の途中で切れないように） */
.ev-card__date { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.ev-card__desc { font-size: 16px; font-weight: 300; color: #000; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card__period {
  margin-top: auto; font-size: 11px; font-weight: 600; color: #0b529c;
  background: #f6f7fd; border: 1px solid #d0d3eb; border-radius: 12px; padding: 8px 14px;
  display: flex; flex-direction: row; align-items: center; gap: 10px;
}
.ev-card__period > span:first-child {
  font-weight: 600; color: #9094af; font-size: 10.5px; letter-spacing: .02em;
  padding-right: 10px; border-right: 1px solid #d9d8e6; white-space: nowrap; flex: none;
}
/* 長い期間（「2026年10月1日〜2026年12月20日」）は1行に収まらない幅があるため「〜」の後ろ(<wbr>)で折り返す（1行固定だと枠からはみ出してカードの端で切れていた） */
.ev-card__period-val { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.events__more { text-align: center; margin-top: 48px; }
.events__more-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 286px; max-width: 100%; height: 60px;
  background: #fff; border: 2px solid #0483cb; border-radius: 8px;
  font-family: "Inter", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: -0.44px; color: #0483cb;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.events__more-btn:hover { background: #0483cb; color: #fff; box-shadow: 0 12px 26px rgba(4,131,203,.22); }
.events__grid.is-collapsed .ev-card:nth-child(n+7) { display: none; }

/* =========================================================
   課題 / Challenges
   ========================================================= */
.challenge { padding: 80px 0; }
.challenge__title { text-align: center; font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: #161617; margin-bottom: 40px; }
.challenge__title em { color: inherit; }
.challenge__panel {
  position: relative; width: 900px; max-width: 100%; margin: 0 auto; min-height: 340px;
  background: #f6f9ff; border-radius: 24px; padding: 24px; overflow: hidden;
}
.challenge__list { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.challenge__list li { display: flex; align-items: center; gap: 16px; }
.challenge__icon {
  flex: none; width: 80px; height: 80px; border-radius: 12px; background: #d8eaff; border: 2px solid #fff;
  display: grid; place-items: center; color: var(--c-blue);
}
.challenge__icon svg, .challenge__icon img { width: 56px; height: 56px; display: block; }
.challenge__list h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.4492px; color: #161617; margin-bottom: 8px; }
.challenge__list p { font-size: 14px; color: #161617; line-height: 26px; }
.challenge__person { position: absolute; right: 24px; bottom: 8px; width: 212px; pointer-events: none; }
.challenge__person img { width: 100%; height: auto; display: block; }

/* =========================================================
   Service
   ========================================================= */
.service { padding: 80px 0; background: var(--c-bg-soft); }
.service .container { max-width: 1328px; }

.service__panel { background: #fff; border-radius: 16px; box-shadow: var(--sh-md); padding: 80px; }
.portal { background: none; border-radius: 0; box-shadow: none; padding: 0; }
.portal .service__h2 { margin-bottom: 24px; }
.portal__lead { color: #173354; font-size: 20px; line-height: 2; max-width: none; margin-bottom: 24px; letter-spacing: -0.31px; }
.portal__diagram { background: #f8faff; border-radius: var(--r-lg); padding: 60px 60px 40px; }
.portal__diagram img { width: 100%; max-width: 1000px; margin: 0 auto; }

.value { background: none; border-radius: 0; box-shadow: none; padding: 40px 0 0; margin-top: 40px; border-top: 1px solid var(--c-line); }
.value__head { font-size: 32px; font-weight: 600; color: #001125; margin-bottom: 24px; }
.value__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.value__col { border-radius: 8px; padding: 40px; }
.value__col:nth-child(1) { background: #eef6ff; }
.value__col:nth-child(2) { background: #ffeef5; }
.value__col h4 { font-size: 20px; font-weight: 600; color: #001125; margin-bottom: 16px; }
.value__col p { font-size: 16px; color: #173354; line-height: 26px; letter-spacing: -0.31px; }

/* features 01/02/03 */
.features { background: #fff; border-radius: 16px; box-shadow: var(--sh-md); padding: 0 80px; margin-top: 40px; }
.feature { display: grid; grid-template-columns: 1fr 400px; align-items: center; gap: 40px; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--c-line); }
.feature__eyebrow { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; font-weight: 600; font-size: 14px; color: #001125; letter-spacing: 0; }
.feature__eyebrow em { color: inherit; font-weight: 600; font-style: normal; }
.feature__eyebrow .c-pink { color: #e1527d; }
.feature__eyebrow .c-blue { color: #0073ce; }
.feature__text h3 { font-size: 32px; font-weight: 600; color: #001125; margin: 24px 0; line-height: 1.6; }
.feature__text > p { color: #173354; font-size: 16px; line-height: 26px; letter-spacing: -0.31px; }
.feature__tags { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); column-gap: 12px; row-gap: 6px; margin-top: 18px; }
.feature__tags li { font-size: 16px; color: #8896a3; background: none; border-radius: 0; padding: 0; font-weight: 600; white-space: nowrap; }
.feature__img { display: grid; place-items: center; }
.feature__img img { max-height: 220px; width: auto; }

/* =========================================================
   お問い合わせフロー
   ========================================================= */
.flow { padding: 80px 0; background: var(--c-bg-soft); }
.flow .service__h2 { color: #161617; }
.flow__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.flow-card { background: #fff; border-radius: 8px; padding: 0; border: 1px solid #d8e5ff; overflow: hidden; }
.flow-card__head { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid #d8e5ff; }
.flow-card__badge { font-size: 16px; font-weight: 600; color: #fff; padding: 8px 40px; border-radius: 999px; }
.flow-card__head h3 { font-size: 20px; font-weight: 600; }
.flow-card--blue .flow-card__badge { background: #3274c7; }
.flow-card--blue .flow-card__head { background: #f5faff; }
.flow-card--blue .flow-card__head h3 { color: #3274c7; }
.flow-card--pink .flow-card__badge { background: #d7637c; }
.flow-card--pink .flow-card__head { background: #fffafc; }
.flow-card--pink .flow-card__head h3 { color: #d7637c; }

.flow-steps { padding: 0; }
.flow-step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 61px; padding: 40px 56px; min-height: 140px; box-sizing: border-box; align-items: center; }
.flow-step + .flow-step { border-top: 1px solid #d8e5ff; }
.flow-step__num { font-family: "Inter", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.31px; }
.flow-card--blue .flow-step__num { color: #3274c7; }
.flow-card--pink .flow-step__num { color: #d7637c; }
.flow-step__body h4 { font-size: 18px; font-weight: 700; color: #161617; letter-spacing: -0.31px; margin-bottom: 8px; }
.flow-step__body p { font-size: 16px; font-weight: 300; color: #3b3b47; line-height: 1.42; letter-spacing: -0.15px; }
/* down connector */
.flow-step + .flow-step::before {
  content: ""; position: absolute; left: 57px; top: -24px; width: 48px; height: 48px;
  border-radius: 50%; background: #fff; border: 1px solid #d8e5ff;
}
.flow-step + .flow-step::after {
  content: ""; position: absolute; left: 69px; top: -12px; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238a90a2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center/13px no-repeat;
}
.flow-card--blue .flow-step + .flow-step::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%233274c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
.flow-card--pink .flow-step + .flow-step::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23d7637c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }

/* =========================================================
   Contact CTA band
   ========================================================= */
.cta {
  background:
    linear-gradient(112.4deg, rgba(11,82,156,.9) 0%, rgba(0,160,231,.9) 22%, rgba(91,149,210,.9) 41%, rgba(209,137,185,.9) 52%, rgba(216,129,179,.9) 65%, rgba(230,116,170,.9) 73%, rgba(235,112,167,.9) 79%, rgba(233,93,140,.9) 88%, rgba(233,83,125,.9) 100%),
    #001125;
  color: #fff; padding: 60px 0;
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta__title { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: clamp(40px, 4vw, 52px); font-weight: 600; line-height: 1.6; letter-spacing: .01em; margin-bottom: 10px; }
.cta__copy p { font-family: "Inter", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-size: 16px; line-height: 2; font-weight: 700; opacity: .96; }
.cta__btn { background: #fff; color: #d36192; width: 286px; height: 60px; padding: 0; border-radius: 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.44px; flex: none; }
.cta__btn:hover { transform: translateY(-2px); }
.arrow--dark { color: var(--c-ink); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { position: relative; padding: 80px 0; background: var(--c-bg-soft); overflow: hidden; }
.faq .service__h2 { color: #161617; }
.faq__glow { position: absolute; right: -120px; top: 40px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(160,120,235,.20), transparent 70%); filter: blur(20px); }
.faq .container { position: relative; z-index: 1; }
.faq__group { margin-bottom: 40px; }
.faq__label { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; font-weight: 600; color: #46464f; letter-spacing: -0.3125px; margin-bottom: 16px; }
.faq__label--blue { color: #3274c7; }
.faq__label--pink { color: #d7637c; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--gray { background: var(--c-ink-mute); }
.dot--blue { background: var(--c-blue); }
.dot--pink { background: var(--c-pink); }

.acc { background: #fff; border-radius: 8px; border: 1px solid #d8e5ff; margin-bottom: 16px; overflow: hidden; }
.acc__q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 80px; box-sizing: border-box;
  padding: 16px 20px; font-size: 18px; font-weight: 600; color: #0a0a0a; line-height: 24px; letter-spacing: -0.3125px;
}
.acc__ico { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #f2f4f5; }
.acc__ico::before, .acc__ico::after { content: ""; position: absolute; background: #46464f; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.acc__ico::before { left: 9px; right: 9px; top: 19px; height: 2px; }
.acc__ico::after { top: 9px; bottom: 9px; left: 19px; width: 2px; }
.acc.is-open .acc__ico::after { transform: scaleY(0); opacity: 0; }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__a p { padding: 0 20px 22px; font-size: 16px; color: #0a0a0a; line-height: 26px; letter-spacing: -0.3125px; }

/* =========================================================
   Partners
   ========================================================= */
.partners { padding: 80px 0; background: var(--c-bg-soft); position: relative; }
.partners::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--grad-band); }
.partners__title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; margin-bottom: 40px; }
.partners__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.partner-card { background: #fff; border-radius: 12px; box-shadow: var(--sh-sm); padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.partner-card__logo { height: 80px; display: grid; place-items: center; margin-bottom: 32px; }
.partner-card__logo img { max-height: 72px; width: auto; }
.partner-card p { font-size: 18px; color: #5f6975; line-height: 2; text-align: left; width: 100%; }
.partner-card__products { margin-top: 32px; }
.partner-card__products img { max-height: 20px; width: auto; margin: 0 auto; }
.partner-card__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 32px; font-size: 14px; font-weight: 700; color: #0483cb; }
.partner-card__link .ic { width: 24px; height: 24px; }
.partner-card__link:hover { color: var(--c-blue-dk); opacity: 1; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #fff; padding: 60px 0; }
.footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; font-weight: 600; color: #001125; }
.footer__nav a:hover { color: var(--c-blue); }
/* 運営会社の表記。上の余白はここで取り、すぐ下のコピーライトとは詰める */
.footer__company { margin-top: 120px; font-size: 14px; font-weight: 600; color: #5b6172; line-height: 1.7; }
.footer__company + .footer__copy { margin-top: 6px; }
.footer__copy { display: block; margin-top: 120px; font-size: 14px; font-weight: 700; color: rgba(0,0,0,.45); font-family: "Inter", sans-serif; letter-spacing: .04em; }
.footer .logo--lg .logo__full { height: 55px; }
.footer .logo--lg .logo__mark { width: 92px; height: 46px; }
.footer .logo--lg .logo__text { font-size: 42px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__circle--tgc { max-width: 420px; }
  .hero__circle--fire { max-width: 330px; }
  .challenge__panel { padding: 44px 240px 44px 40px; }
  .challenge__person { width: 170px; right: 28px; }
  .portal, .value, .features { padding-left: 36px; padding-right: 36px; }
  .feature { grid-template-columns: 1fr 320px; gap: 32px; }
}

/* ヘッダーのメニューは 976px 未満で1行に収まらず「イベン／ト」のように途中で折れていたため、
   961〜1100px は間隔を詰め、960px 以下は開閉式のメニュー（スマホと同じ）にする */
@media (min-width: 961px) and (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav__list { gap: 20px; }
  .nav__cta { padding: 0 18px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: 14px 24px 28px; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease); align-items: stretch;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; align-items: stretch; }
  .nav__list a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--c-line); font-size: 16px; }
  .nav__cta { margin-top: 18px; height: 50px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .hero__inner { flex-direction: column; align-items: stretch; min-height: 0; padding-top: calc(var(--header-h) + 32px); padding-bottom: 8px; }
  .hero__copy { max-width: none; }
  .hero__visual { position: relative; top: auto; right: auto; bottom: auto; width: 100%; max-width: 420px; margin: 16px auto 0; aspect-ratio: 1/0.9; }
  .hero__circle--tgc  { width: 58%; top: 4%;  right: 18%; }
  .hero__circle--fire { width: 46%; top: 42%; right: 2%; }
  .hero__circle--fes  { width: 27%; top: 0;   right: 4%; }
  .hero__mark { width: 150px; margin-bottom: 24px; }

  .intro__inner { grid-template-columns: 1fr; gap: 36px; }
  .intro__visual { justify-self: center; }
  .intro__text p { max-width: none; }

  .events__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .challenge__panel { padding: 40px 28px; }
  .challenge__person { position: static; width: 150px; margin: 24px auto 0; }
  .challenge__list { max-width: none; }

  .value__grid { grid-template-columns: 1fr; gap: 28px; }
  .feature { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .feature__img { order: -1; justify-self: start; }
  /* 3列グリッド+nowrapだとスマホで「# 市民マラソン・ファンラン」等がはみ出し、ページ全体が横に広がる(375px→454px)。折り返し配置にする */
  .feature__tags { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 4px; }
  .events__tools { gap: 8px; }
  /* iOS は16px未満の入力欄をタップすると拡大するため、スマホ・タブレットでは16pxに */
  .events__search input, .events__select { font-size: 16px; }
  .events__search { flex-basis: 100%; }
  .events__select { flex: 1 1 calc(50% - 4px); min-width: 0; }

  .flow__grid { grid-template-columns: 1fr; gap: 24px; }

  .cta__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .partners__grid { grid-template-columns: 1fr; gap: 24px; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .intro, .challenge, .service, .flow, .faq, .partners { padding: 64px 0; }
  .events { padding: 64px 0 72px; }
  .hero__title { line-height: 1.4; }
  .events__grid { grid-template-columns: 1fr; gap: 20px; }
  .portal, .value, .features { padding-left: 22px; padding-right: 22px; }
  .portal { padding-top: 36px; }
  .value { padding: 32px 22px; }
  .cta__title { font-size: 44px; }
  .cta__btn { width: 100%; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero__cta { width: 100%; }
  .pc-only { display: none; }
  .cform__submit { width: 100%; }
  .cform { padding: 24px 18px; }
  .contact-page__inner > * { min-width: 0; }
}

/* =========================================================
   Event detail modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
.modal__dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 40px)); min-height: min(820px, calc(100vh - 64px)); max-height: calc(100vh - 64px);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  overflow: hidden; display: flex; flex-direction: column; animation: pop .3s var(--ease-out);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm);
  display: grid; place-items: center; color: var(--c-ink);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--c-bg-soft); }

.evm { padding: 28px 36px 0; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.evm__top { display: grid; grid-template-columns: 440px 1fr; gap: 24px; align-items: start; background: #f6f9ff; margin: -28px -36px 0; padding: 24px; }
.evm__media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 440/264; box-shadow: var(--sh-sm); }
.evm__media img { width: 100%; height: 100%; object-fit: cover; }
/* 追加画像の切り替え（インナーFB #5） */
.evm__gallery { min-width: 0; }
.evm__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px 2px 4px; }
.evm__thumb { flex: none; width: 68px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #e8edf6; cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.evm__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evm__thumb:hover, .evm__thumb.is-active { opacity: 1; border-color: #0483cb; }
.evm__thumb:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; }
/* 開催期間の横の「イベント終了」。日付と上下の中心をそろえ、間隔は常に10px。
   入りきらない幅ではバッジを次の行の先頭へ送る（日付の直後にくっつかないように） */
.evm__date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* 日付は「〜」の後ろ(<wbr>)で折り返す。区切りの無い長い文でもはみ出さないよう、最後の手段としてどこでも折る */
.evm__datetext { word-break: keep-all; overflow-wrap: anywhere; }
.evm__status { display: inline-flex; align-items: center; flex: none; white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; background: #5f6975; border-radius: 999px; padding: 3px 10px; }
.evm__cat { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad-pink); padding: 5px 13px; border-radius: 999px; }
/* 右上の閉じるボタン(右端から54px)にタイトルが潜り込まないよう右側を空ける */
.evm__titlerow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding-right: 40px; }
.evm__titlerow h2 { font-size: 20px; font-weight: 600; }
.evm__official { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: #0483cb; }
.evm__official .ic { width: 15px; height: 15px; }
.evm__meta { display: flex; flex-direction: column; gap: 16px; list-style: none; padding: 0; margin: 0; }
.evm__meta li { display: flex; gap: 12px; align-items: center; }
.evm__meta li.evm__venue { align-items: flex-start; }
.evm__headline { display: flex; align-items: center; gap: 4px; width: 96px; flex: none; }
.evm__meta .ic { width: 18px; height: 18px; color: #72777a; }
.evm__metalabel { font-size: 12px; font-weight: 600; color: #72777a; line-height: 1.6; white-space: nowrap; }
.evm__metaval { font-size: 14px; font-weight: 600; color: #132237; line-height: 1.6; }
.evm__chip { display: inline-block; font-size: 12px; font-weight: 600; color: #6c7072; background: #fff; border: 1px solid #979c9e; border-radius: 999px; padding: 2px 10px; margin: 0 6px 4px 0; }
.evm__addr { display: block; }
.evm__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.evm__tags li { font-size: 12px; color: #697376; background: #d4dbe6; border-radius: 4px; padding: 4px 10px; font-weight: 600; white-space: nowrap; }
.evm__types { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 0; padding-top: 0; border-top: none; }
.evm__types-label { font-size: 12px; font-weight: 600; color: #6c7072; }
.evm__types ul { display: flex; flex-wrap: wrap; gap: 12px; }
.evm__types li { font-size: 12px; font-weight: 600; color: #fff; border-radius: 4px; padding: 4px 10px; }
.evm__desc { padding: 22px 0; }
/* 協賛タイプ表・主催者メッセージ・注意事項（要望 #7 / #14） */
.evm__block { padding: 4px 0 20px; }
.evm__blocktitle { font-size: 14px; font-weight: 800; color: #132237; margin: 0 0 10px; }
.evm__block p { font-size: 15px; font-weight: 300; color: #001125; line-height: 1.7; margin: 0; white-space: pre-line; }
.evm__block--note p { background: #f7f9fc; border-left: 3px solid #d4dbe6; border-radius: 0 8px 8px 0; padding: 12px 14px; }
.evm__typelist { border-top: 1px solid var(--c-line); }
.evm__typelist li { display: flex; align-items: center; font-size: 14px; font-weight: 700; color: #132237; padding: 11px 2px; border-bottom: 1px solid var(--c-line); }
.evm__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.evm__orglink { display: inline-flex; align-items: center; gap: 4px; color: #0483cb; font-weight: inherit; }
.evm__orglink .ic { width: 14px; height: 14px; }
/* カードの来場者特性（要望 #16） */
.ev-card__aud { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.ev-card__aud li { font-size: 11px; font-weight: 600; color: #5f6975; background: #eef2f8; border-radius: 4px; padding: 3px 8px; }
.evm__catch { font-size: 16px; font-weight: 300; color: #001125; margin-bottom: 14px; }
.evm__desc p { font-size: 16px; font-weight: 300; color: #001125; line-height: 1.6; }
.evm__desc p + p { margin-top: 14px; }
.evm__footer {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  /* 左右の余白まで背景を広げ、下を流れる内容が脇から見えないようにする */
  padding: 18px 36px; margin: auto -36px 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
  border-top: 1px solid var(--c-line); flex-wrap: wrap;
}
.evm__period { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; background: #f6f7fd; border-radius: 12px; font-size: 14px; font-weight: 600; color: #132237; white-space: nowrap; }
.evm__period span { font-weight: 600; color: #9094af; font-size: 12px; white-space: nowrap; padding-right: 12px; border-right: 1px solid #d9d8e6; }
.evm__cta { height: 48px; padding: 0 32px; font-size: 16px; background: #0483cb; }
/* 確認用プレビューでは問い合わせボタンを押せない表示にする */
.evm__cta.is-disabled { background: #aab4c3; cursor: not-allowed; flex-direction: column; gap: 0; line-height: 1.25; }
.evm__cta.is-disabled small { font-size: 11px; font-weight: 600; }

/* タブレット幅では画像列(440px固定)のせいで右の情報欄が狭くなりすぎるため半々にする */
@media (max-width: 960px) {
  .evm__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .evm { padding: 20px 20px 0; }
  /* .evm の余白(20px)に合わせる。PC用の -36px のままだと横にはみ出し、ポップアップが左右にずれる */
  .evm__top { grid-template-columns: 1fr; gap: 18px; margin: -20px -20px 0; padding: 20px; }
  .evm__titlerow { padding-right: 0; } /* 1列では閉じるボタンは画像の上に重なるためタイトルは全幅 */
  .evm__footer { flex-direction: column; align-items: stretch; gap: 14px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .evm__cta { width: 100%; padding: 0 16px; }
  .evm__titlerow h2 { font-size: 20px; }
  /* 申し込み期間は nowrap だとスマホ幅(375px)を超えてページごと横に広がるため、見出しと日付を2段に */
  .evm__period { flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 10px 14px; white-space: normal; }
  .evm__period span { padding-right: 0; border-right: 0; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-page { background: var(--c-bg-soft); padding: calc(var(--header-h) + 64px) 0 96px; min-height: 100vh; }
.contact-page__inner { display: grid; grid-template-columns: minmax(0, 409px) 631px; gap: 80px; justify-content: center; align-items: start; }
.contact-page__eyebrow { font-weight: 600; font-size: 18px; color: rgba(0,17,37,.5); }
.contact-page__title { font-size: clamp(26px, 3.4vw, 32px); font-weight: 600; color: #001125; margin: 8px 0; }
.contact-page__copy > p { font-size: 16px; font-weight: 300; color: #001125; line-height: 1.6; }
.contact-page__copy > p + p { margin-top: 0; }
.contact-page__ref { margin-top: 24px; padding: 14px 18px; background: var(--c-blue-soft); border-radius: var(--r-sm); font-size: 13.5px; color: var(--c-ink); }
.contact-page__ref strong { color: var(--c-blue); }

.cform { position: relative; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); padding: 32px; overflow: hidden; max-width: 720px; }
.cform::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--grad-band); }
.cform__field { display: block; margin-bottom: 24px; }
.cform__label { display: block; font-size: 16px; font-weight: 500; color: #0a0a0a; letter-spacing: -0.31px; margin-bottom: 8px; }
.req { display: inline-block; font-size: 10px; font-weight: 400; color: #fff; background: #de3039; border-radius: 2px; padding: 2px 5px; margin-left: 6px; vertical-align: 1px; }
.cform input, .cform textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: #0a0a0a; letter-spacing: -0.31px;
  background: #fff; border: 1px solid #d1d5dc; border-radius: 10px; padding: 12px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.cform input { height: 48px; }
.cform input::placeholder, .cform textarea::placeholder { color: rgba(10,10,10,.5); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(47,108,246,.12); }
.cform textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.cform__stack { display: flex; flex-direction: column; gap: 10px; }
.cform__radios { display: flex; flex-direction: column; gap: 12px; }
.cradio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--c-ink); }
.cradio input { width: 20px; height: 20px; accent-color: var(--c-blue); flex: none; }
.cform__submit { background: #0483cb; color: #fff; box-shadow: 0 13px 4px rgba(0,0,0,.02), 0 6px 3px rgba(0,0,0,.03), 0 1px 1.5px rgba(0,0,0,.04); border-radius: 8px; width: 320px; max-width: 100%; height: 48px; margin: 8px auto 0; display: flex; }
.cform__submit:hover { background: #0379c8; }
.cform__submit:disabled { opacity: .6; cursor: default; transform: none; }
/* スパム対策のハニーポット欄。画面外に置いて人には見せない（display:none だと埋めないボットがいるため） */
.cform__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform__error { color: var(--c-pink-dk); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.cform__submit.is-sending::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: cspin .8s linear infinite; flex: none; }
@keyframes cspin { to { transform: rotate(360deg); } }
/* 送信完了画面（フォームと同じカードの中に表示） */
.cdone { text-align: center; }
.cdone:focus { outline: none; }
.cdone__icon { width: 64px; height: 64px; margin: 8px auto 18px; border-radius: 50%; background: #e6f6ee; display: grid; place-items: center; }
.cdone__icon svg { width: 32px; height: 32px; fill: none; stroke: #1a9b5c; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* 14文字がスマホ幅(320px〜)でも1行に収まる大きさにする（末尾の1文字だけが折り返さないように） */
.cdone__title { font-size: clamp(17px, 4.9vw, 24px); font-weight: 600; color: #001125; text-wrap: balance; }
.cdone__lead { font-size: 15px; line-height: 1.8; color: var(--c-ink-soft); margin-top: 10px; text-wrap: balance; }
.cdone__mail { font-size: 13.5px; line-height: 1.7; color: #185fb0; background: var(--c-bg-blue); border-radius: 8px; padding: 12px 14px; margin-top: 16px; text-align: left; overflow-wrap: anywhere; }
.cdone__sub { font-size: 13px; font-weight: 600; color: #72777a; text-align: left; margin: 28px 0 8px; }
.cdone__list { display: grid; grid-template-columns: 132px minmax(0, 1fr); text-align: left; border-top: 1px solid var(--c-line); margin: 0; }
.cdone__list dt, .cdone__list dd { padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; line-height: 1.7; margin: 0; }
.cdone__list dt { color: #72777a; font-weight: 500; }
.cdone__list dd { color: #132237; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.cdone__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cdone__btn { height: 48px; padding: 0 28px; border-radius: 8px; font-size: 15px; background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-line); }
.cdone__btn:hover { border-color: var(--c-blue); color: var(--c-blue); }
.cdone__btn--main { background: #0483cb; color: #fff; border-color: #0483cb; }
.cdone__btn--main:hover { background: #0379c8; color: #fff; border-color: #0379c8; }
@media (max-width: 560px) {
  .cdone__list { grid-template-columns: 1fr; }
  .cdone__list dt { border-bottom: 0; padding-bottom: 0; font-size: 12.5px; }
  .cdone__list dd { padding-top: 2px; }
  .cdone__btn { width: 100%; }
}

@media (max-width: 860px) {
  .contact-page { padding-top: calc(var(--header-h) + 40px); }
  .contact-page__inner { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
  .contact-page__copy, .cform { width: 100%; max-width: calc(100vw - 36px); min-width: 0; }
  .contact-page__copy > * { max-width: 100%; }
}
@media (max-width: 560px) {
  .cform { padding: 32px 20px 28px; }
}

/* =========================================================
   確認用プレビュー（主催者確認用。preview.html／インナーFB #19）
   ========================================================= */
.pv { padding: calc(var(--header-h) + 32px) 0 80px; background: #f6f9ff; min-height: 100vh; }
.pv__banner { background: #fff8e1; border: 1px solid #f0d9a0; border-radius: 12px; padding: 16px 20px; color: #5c4400; font-size: 14px; line-height: 1.7; }
.pv__banner strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.pv__state { margin-top: 6px; font-weight: 700; }
.pv__msg { margin-top: 24px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; font-size: 15px; line-height: 1.8; color: #132237; }
.pv__h { font-size: 18px; font-weight: 800; color: #001125; margin: 36px 0 4px; }
.pv__note { font-size: 13px; color: #6c7072; margin-bottom: 14px; line-height: 1.7; }
/* 詳細の中身（ポップアップと同じマークアップ）を、ページの中にそのまま並べる */
.pv__detail { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; max-width: 1040px; }
.pv__detail .evm { overflow: visible; }
.pv__detail .evm__footer { position: static; }
.pv__detail .evm__titlerow { padding-right: 0; } /* 閉じるボタンが無いので右側を空けない */
@media (max-width: 560px) {
  .pv { padding-top: calc(var(--header-h) + 20px); }
  .pv__detail { border-radius: 16px; }
}
