/* ふくらすずめピアノ教室 — トークン・リセット・共通の部品
   寸法は参考（1440px 幅の PC・390px 幅のスマホ）を測った値。PC は 1440px までは画面幅に比例して縮める（--u） */

@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-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #fffaf1;        /* 生成りの地 */
  --band: #fbeee2;      /* 淡いピンクがかった生成りの面（レッスン日の段） */
  --red-band: #cf2039;  /* 淡い面の上の文字（4.7） */
  --red: #d9233f;       /* いちごの赤（地の上 4.7・面の上 4.5・上の白い文字 4.6） */
  --red-num: #c41d37;   /* 赤い面の上の大きな番号 */
  --on-red: #fff8ee;    /* 赤い面の上の文字・カード */
  --pale: #f9ede1;      /* 地の上を流れる大きな英字 */
  --shade: 0 0 0 1px rgba(217, 35, 63, 0.06);

  --f-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --f-en: "Fredoka", "Zen Maru Gothic", sans-serif;

  --u: 1px;             /* PC の寸法の単位（1440px で 1px） */
}
@media (min-width: 1024px) and (max-width: 1439px) {
  :root { --u: calc(100vw / 1440); }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--red);
  background: var(--bg);
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
small { font-size: inherit; }

.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;
}

/* 改行（スマホだけ・PCだけ・幅を限る） */
.sp-br { display: none; }
.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: 20;
  padding: 7px 16px;
  background: var(--red);
  color: var(--on-red);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
}
.demo a { text-decoration: underline; text-underline-offset: 3px; }

/* 段の見出し（丸い英字の大見出し＋小さな和文） */
.ttl { display: flex; flex-direction: column; align-items: flex-start; }
.ttl__en {
  font-family: var(--f-en);
  font-weight: 600;
  font-size: calc(var(--u) * 46);
  line-height: 1;
  letter-spacing: 0.02em;
}
.ttl__jp {
  margin-top: calc(var(--u) * 12);
  font-size: max(12px, calc(var(--u) * 13));
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.ttl--center { align-items: center; text-align: center; }
.ttl--light { color: var(--on-red); }
@media (max-width: 1023px) {
  .ttl__en { font-size: 30px; }
  .ttl__jp { margin-top: 8px; font-size: 12px; }
}

/* 線の矢印つきのボタン（共通の矢印） */
.btn-head svg,
.btn-line svg { flex: none; fill: currentColor; }

/* ふわっと出る（JS が動くときだけ隠しておく） */
.js .js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .js-fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .js-fade { opacity: 1; transform: none; transition: none; }
}
