/*
  spojam 公式サイトの見た目を Google の Material Design 3 に合わせる層（2026-10-21）。
  ページの構成と並びは style.css のまま変えない。このファイルは色・文字・角の丸み・影・押したときの反応だけを上書きする。
  読み込みの順は style.css の次。ロゴ（Georgia の斜体の Spojam）と4種目の色の面は spojam の印なので残す。
*/

:root {
  /* 色の役割（Material Design 3 の明るい配色。もとにした色は spojam の朱色 #D9381E） */
  --md-sys-color-primary: #B3301A;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #FFDAD3;
  --md-sys-color-on-primary-container: #3D0600;
  --md-sys-color-secondary: #775651;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #FFDAD4;
  --md-sys-color-on-secondary-container: #2C1512;
  --md-sys-color-tertiary: #1B4FD8;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #DCE1FF;
  --md-sys-color-on-tertiary-container: #00174B;
  --md-sys-color-surface: #FFF8F6;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #FFF1ED;
  --md-sys-color-surface-container: #FCEAE5;
  --md-sys-color-surface-container-high: #F6E5DF;
  --md-sys-color-surface-container-highest: #F1DFDA;
  --md-sys-color-on-surface: #231917;
  --md-sys-color-on-surface-variant: #53433F;
  --md-sys-color-outline: #85736E;
  --md-sys-color-outline-variant: #D8C2BC;

  /* 角の丸み */
  --md-sys-shape-small: 8px;
  --md-sys-shape-medium: 12px;
  --md-sys-shape-large: 16px;
  --md-sys-shape-extra-large: 28px;
  --md-sys-shape-full: 9999px;

  /* 影の高さ */
  --md-sys-elevation-1: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-2: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-3: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);

  /* 動き */
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-duration-short: 200ms;
  --md-sys-motion-duration-medium: 300ms;

  /* style.css の変数を Material Design の役割に置き換える */
  --bg-main: var(--md-sys-color-surface);
  --bg-surface: var(--md-sys-color-surface-container-lowest);
  --bg-alt: var(--md-sys-color-surface-container-low);
  --ink: var(--md-sys-color-on-surface);
  --ink-muted: var(--md-sys-color-on-surface-variant);
  --ink-subtle: var(--md-sys-color-on-surface-variant);
  --line-border: var(--md-sys-color-outline-variant);
  --line-strong: var(--md-sys-color-outline);
  --font-en: "Roboto", "Noto Sans JP", sans-serif;
  --font-ja: "Roboto", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

body {
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  -webkit-font-smoothing: antialiased;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--md-sys-color-secondary);
  outline-offset: 2px;
}

/* 上の帯（Top app bar） */
.site-header {
  background-color: var(--md-sys-color-surface);
  backdrop-filter: none;
  border-bottom: 0;
  transition: background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.site-header.is-scrolled {
  background-color: var(--md-sys-color-surface-container);
}

.header-inner {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo-sub {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-toggle {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  padding: 0 16px;
  background-color: transparent;
  color: var(--md-sys-color-on-surface-variant);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-full);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.global-nav {
  background-color: var(--md-sys-color-surface-container);
  border-bottom: 0;
  border-radius: 0 0 var(--md-sys-shape-extra-large) var(--md-sys-shape-extra-large);
  box-shadow: var(--md-sys-elevation-2);
  padding: 12px 16px 24px;
}

.nav-link {
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
  border-radius: var(--md-sys-shape-full);
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.nav-link:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
  color: var(--md-sys-color-on-surface);
}

.nav-link.is-current {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

@media (min-width: 960px) {
  .global-nav {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 20px;
  }

  .nav-list {
    gap: 4px;
  }

  .nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

/* ボタン（塗りのボタンと枠のボタン。角は丸く、触れると薄く色が重なる） */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 40px;
  padding: 0 24px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--md-sys-shape-full);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0.01em;
  transition: box-shadow var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.btn:hover {
  transform: none;
}

.btn:hover::before {
  opacity: 0.08;
}

.btn:focus-visible::before,
.btn:active::before {
  opacity: 0.1;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
  line-height: 1.5rem;
}

.btn-lg .icon {
  width: 20px;
  height: 20px;
}

.btn-primary,
.btn-mail,
.btn-primary:hover,
.btn-mail:hover {
  background-color: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.btn-primary:hover,
.btn-mail:hover {
  box-shadow: var(--md-sys-elevation-1);
}

.btn-secondary,
.btn-secondary:hover {
  background-color: transparent;
  border-color: var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
}

.nav-cta {
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.875rem;
}

.link-arrow {
  margin-left: -12px;
  padding: 10px 12px;
  border-radius: var(--md-sys-shape-full);
  font-size: 1rem;
  font-weight: 500;
  color: var(--md-sys-color-primary);
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.link-arrow:hover {
  color: var(--md-sys-color-primary);
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}

.inline-mail {
  font-weight: 500;
  color: var(--md-sys-color-primary);
}

/* 押した位置から広がる波紋（js/main.js が付ける） */
.md-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.12;
  transform: scale(0);
  pointer-events: none;
  animation: md-ripple 450ms var(--md-sys-motion-easing-standard) forwards;
}

@keyframes md-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* 小さな札（Chip） */
.hero-kicker,
.page-hero-tag {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-small);
  background-color: var(--md-sys-color-surface-container-low);
}

.kicker-en {
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--md-sys-color-primary);
}

.kicker-ja,
.page-hero-tag {
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}

.sport-badge {
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-small);
  font-weight: 500;
}

.eq-pill {
  font-weight: 500;
}

/* 文字の大きさと太さ（Material Design の文字の段階に合わせる） */
.hero-title,
.page-hero-title {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-lead {
  color: var(--md-sys-color-on-surface-variant);
}

.section-eyebrow,
.faq-cat-en,
.pref-en {
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--md-sys-color-primary);
}

.section-sub-ja,
.section-title,
.sport-name,
.step-title,
.promise-title,
.pillar-title,
.topic-title,
.area-name,
.faq-cat-title,
.pref-title,
.area-teaser-text,
.stat-label,
.stat-unit,
.closing-title {
  font-weight: 500;
}

.section-title {
  letter-spacing: 0;
}

.sport-num,
.step-index,
.tile-tag,
.tile-foot,
.pillar-num {
  font-weight: 500;
}

.step-index {
  color: var(--md-sys-color-tertiary);
}

.pillar-num,
.voice-quote,
.area-pin {
  color: var(--md-sys-color-primary);
}

.stat-num {
  font-weight: 400;
}

.voice-text {
  font-weight: 400;
}

/* 最初の画面の4色の面 */
.hero-home {
  border-bottom: 0;
}

.mosaic-stage {
  overflow: visible;
  border: 0;
  border-radius: var(--md-sys-shape-extra-large);
  background-color: transparent;
  box-shadow: none;
}

.mosaic-grid {
  gap: 8px;
}

.mosaic-tile {
  border-radius: 24px;
}

.mosaic-center-plate {
  border: 3px solid var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-3);
}

.page-hero {
  background-color: var(--md-sys-color-surface-container-low);
  border-bottom: 0;
}

.mini-mosaic {
  overflow: visible;
  gap: 6px;
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

.mini-block {
  border-radius: var(--md-sys-shape-large);
}

.mini-word {
  border: 3px solid var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-2);
}

/* カード（影のあるカード・枠のカード・塗りのカード） */
.sport-card,
.stat-card {
  background-color: var(--md-sys-color-surface-container-low);
  border: 0;
  border-radius: var(--md-sys-shape-medium);
  box-shadow: var(--md-sys-elevation-1);
}

/* 4種目の色は数字の色で示す（角丸のカードに片側だけの色の罫は付けない） */
.stat-vermilion .stat-num { color: var(--vermilion); }
.stat-cobalt .stat-num { color: var(--cobalt); }
.stat-emerald .stat-num { color: var(--emerald); }
.stat-marigold .stat-num { color: var(--marigold); }


.step-card,
.pillar-card,
.voice-card,
.area-card,
.topic-card {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-medium);
}

.promise-card {
  background-color: var(--md-sys-color-surface-container-highest);
  border: 0;
  border-radius: var(--md-sys-shape-medium);
}

.area-teaser-box,
.name-origin-card,
.operator-banner,
.facility-partner-card,
.contact-mail-panel,
.faq-resolve-box {
  background-color: var(--md-sys-color-surface-container);
  border: 0;
  border-radius: var(--md-sys-shape-extra-large);
}

.name-origin-eq {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 0;
  border-radius: var(--md-sys-shape-large);
}

.sport-icon-box,
.promise-icon-wrap,
.topic-icon {
  border-radius: var(--md-sys-shape-medium);
}

.topic-icon {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.facility-partner-icon {
  border-radius: var(--md-sys-shape-large);
  background-color: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}

.step-icon {
  color: var(--md-sys-color-on-surface-variant);
}

.pref-title {
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

/* よくある質問（開くと少し浮く一覧） */
.faq-item {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-medium);
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    box-shadow var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.faq-item[open] {
  border-color: transparent;
  background-color: var(--md-sys-color-surface-container-low);
  box-shadow: var(--md-sys-elevation-1);
}

.faq-question {
  position: relative;
  overflow: hidden;
  min-height: 56px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.faq-question:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}

.faq-q-text::before {
  font-weight: 500;
  color: var(--md-sys-color-primary);
}

.faq-chevron {
  color: var(--md-sys-color-on-surface-variant);
  transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.faq-answer {
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* 最後の呼びかけ */
.closing-panel {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-top: 0;
  border-radius: var(--md-sys-shape-extra-large);
}

.closing-logo,
.closing-note a {
  color: var(--md-sys-color-primary);
}

.closing-title,
.closing-note {
  color: var(--md-sys-color-on-primary-container);
}

.closing-note a {
  font-weight: 500;
}

/* お問い合わせと運営者情報 */
.contact-mail-link {
  font-weight: 500;
  color: var(--md-sys-color-primary);
}

.contact-mail-link:hover {
  color: var(--md-sys-color-on-primary-container);
}

.company-table-wrap {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-medium);
}

.company-table th {
  background-color: var(--md-sys-color-surface-container-low);
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}

/* 足もと */
.site-footer {
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.footer-top {
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.footer-logo {
  color: var(--md-sys-color-on-surface);
}

.footer-brand-name,
.copyright,
.footer-links a {
  color: var(--md-sys-color-on-surface-variant);
}

.footer-links a {
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--md-sys-color-on-surface);
}

.footer-mail a {
  font-weight: 500;
  color: var(--md-sys-color-primary);
}
