/* まちの音楽室 ハルモニア — トークン・リセット・共通の部品
   文字の大きさ・余白・角丸は参考の寸法（960px 以上は PC の値、それより下は画面幅に合わせて縮める） */

@font-face {
  font-family: "Zen Maru Gothic";
  src: url("../assets/fonts/zenmaru-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("../assets/fonts/zenmaru-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("../assets/fonts/noto-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("../assets/fonts/noto-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #fbf6ee;         /* 地の生成り */
  --band: #f3eadb;       /* コースの段の帯 */
  --white: #ffffff;
  --ink: #222222;        /* 本文（地の上 14.8） */
  --ink-sub: #555555;    /* 補助の文（白の上 7.5） */
  --navy: #2a2320;       /* 色の面の上の文字（若草 8.9・からし 9.4・杏 8.0） */
  --main: #c4573a;       /* 大きな見出し・印・線（れんが色。大きな文字だけ。白の上 4.4） */
  --main-ink: #a3432a;   /* 小さな色の文字（白の上 6.2・地の上 5.8） */
  --main-btn: #b04a2f;   /* ボタン・フッターの面（白文字 5.4） */
  --main-btn-h: #933c25;
  --c-sage: #9fcfb4;     /* 差し色：若草 */
  --c-mustard: #f2c45a;  /* 差し色：からし */
  --c-peach: #f4a98a;    /* 差し色：杏 */
  --line: #07873f;       /* LINE のボタン（白文字 4.6） */
  --line-h: #06733a;
  --rule: #dddddd;
  --shadow-card: 0 16px 40px rgba(25, 44, 63, 0.08);
  --shadow: 0 0 12px rgba(0, 0, 0, 0.06);

  --f-maru: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --f-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --f-num: "Barlow", "Noto Sans JP", sans-serif;

  --sp-sm: min(1.25vw + 4px, 16px);
  --sp-md: min(1.25vw + 12px, 24px);
  --sp-lg: min(2.5vw + 16px, 40px);
  --side: min(2.56vw + 14.4px, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 400;
  font-size: min(0.625vw + 12px, 16px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.num { font-family: var(--f-num); font-weight: 500; }

/* 改行（スマホだけ・PCだけ・幅を限る） */
.sp-br, .tb-br, .md-br { display: none; }
@media (max-width: 767px) {
  .sp-br { display: inline; }
  .pc-br { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .tb-br { display: inline; } }
@media (min-width: 1024px) and (max-width: 1279px) { .md-br { display: inline; } }

/* 注記の帯 */
.demo {
  position: relative;
  z-index: 120;
  margin: 0;
  padding: 7px 16px;
  background: var(--main-btn);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.demo a { text-decoration: underline; text-underline-offset: 3px; }

/* 中身の幅 */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--side);
}

/* 段の見出し（丸ゴシックの青） */
.heading {
  margin-bottom: 40px;
  color: var(--main);
  font-family: var(--f-maru);
  font-weight: 700;
  font-size: clamp(24px, 2.5vw + 16px, 40px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
}
@media (min-width: 960px) {
  .heading { margin-bottom: 80px; padding-top: 16px; }
}

/* 段の後ろに大きく薄く置く英字 */
.bg-en {
  position: absolute;
  z-index: -1;
  margin: 0;
  color: var(--main);
  font-family: var(--f-maru);
  font-weight: 500;
  font-size: 120px;
  line-height: 1.6667;
  letter-spacing: 0;
  opacity: 0.1;
  pointer-events: none;
  white-space: nowrap;
}
@media (min-width: 960px) {
  .bg-en { font-size: 240px; line-height: 0.8333; }
}

/* ボタン */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 16px;
  font-family: var(--f-maru);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: center;
  transition: background-color 0.3s ease-out, transform 0.3s ease-out;
}
@media (min-width: 960px) {
  .btn { min-height: 64px; }
}
.btn svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
.btn--main { background: var(--main-btn); color: var(--white); }
.btn--line { background: var(--line); color: var(--white); }
.btn--tel { background: var(--main-btn); color: var(--white); }
.btn--white { background: var(--white); color: var(--main-ink); }
.btn--c-sage { background: var(--c-sage); color: var(--navy); }
.btn--c-peach { background: var(--c-peach); color: var(--navy); }
.btn--c-mustard { background: var(--c-mustard); color: var(--navy); }
@media (hover: hover) {
  .btn--main:hover, .btn--tel:hover { background: var(--main-btn-h); }
  .btn--line:hover { background: var(--line-h); }
  .btn--white:hover { background: var(--bg); }
  .btn--c-sage:hover, .btn--c-peach:hover, .btn--c-mustard:hover { transform: scale(1.04); }
}

/* 右に矢印の丸を置くボタン（左寄せの文） */
.btn--arrow {
  position: relative;
  justify-content: flex-start;
  padding: 16px 64px 16px 16px;
  text-align: left;
}
.btn--arrow svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  padding: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  translate: 0 -50%;
}
/* 左に矢印を置く、幅の決まったボタン */
.btn--left svg { width: 16px; height: 16px; }

/* 下からふわっと出る（参考：縮んだ状態から 0.5 秒） */
.js .fade { opacity: 0; scale: 0.9; transition: opacity 0.5s ease-out, scale 0.5s ease-out; }
.js .fade.is-in { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .fade { opacity: 1; scale: 1; transition: none; }
  html { scroll-behavior: auto; }
}
