/* =========================================================
   共通CSS に貼るCSS
========================================================= */

/*
  ラーメン版デザイントークン
  山吹色＝活気とCTA、黒＝骨格、グレー＝補助情報、白＝抜けと可読性。
  既存ブロックが参照する旧変数名も、この配色へ接続しています。
*/
:root {
  --ramen-yellow: #f2b705;
  --ramen-yellow-light: #ffd45c;
  --ramen-ink: #171717;
  --ramen-charcoal: #292929;
  --ramen-gray: #747474;
  --ramen-gray-light: #d7d7d4;
  --ramen-cream: #f2f2ef;
  --ramen-paper: #ffffff;
  --ramen-line: rgba(29, 28, 25, 0.18);
  --ramen-shadow: 6px 7px 0 rgba(29, 28, 25, 0.14);
  --ramen-radius: 12px;
  --ramen-font: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;
  --ramen-font-en: "Arial Black", Impact, "Noto Sans JP", sans-serif;
  --ramen-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 旧和食テーマ用変数をラーメン版へ差し替え */
  --bg-base: var(--ramen-charcoal);
  --bg-paper: #353535;
  --bg-warm: var(--ramen-cream);
  --ink: var(--ramen-ink);
  --text-main: #ffffff;
  --text-sub: #dedede;
  --text-muted: #aaaaaa;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #dedede;
  --gold: var(--ramen-yellow);
  --gold-light: var(--ramen-yellow-light);
  --vermilion: var(--ramen-charcoal);
  --line: rgba(242, 183, 5, 0.34);
  --line-dark: var(--ramen-line);
  --shadow-base: 0 18px 42px rgba(29, 28, 25, 0.2);
  --font-serif: var(--ramen-font);
  --font-sans: var(--ramen-font);
  --font-en: var(--ramen-font-en);
  --ease: var(--ramen-ease);
}

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

html {
  width: 100%;
  margin: 0 !important;
  padding: 0;
  scroll-padding-top: 86px;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0;
  overflow-x: hidden;
  background: var(--ramen-cream);
  color: var(--ramen-ink);
  font-family: var(--ramen-font);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--ramen-yellow);
  color: var(--ramen-ink);
}

a,
button,
input,
select,
textarea {
  font-family: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--ramen-yellow);
  outline-offset: 3px;
}

img {
  object-position: center;
}

.section-header h2,
.menu-main-title,
.slf-main-title,
.course-list-title,
.news-main-title,
.job-main-title,
.contact-main-title {
  font-family: var(--ramen-font);
  font-weight: 900;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px;
  }

  body {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}