@charset "UTF-8";

/* =========================================================
   スタイルノート 新刊LP  共通スタイルシート
   - このファイル1枚で 3ページ（index / cubase / ongakuka）を賄います
   - 色や余白は「変数」で管理しています（--で始まる名前）
   ========================================================= */

/* ---------- 1. リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }

/* ---------- 2. 共通トークン ---------- */
:root {
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --lat: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gut: clamp(20px, 5vw, 40px);
  --r-lg: 20px;
  --r-md: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. テーマ ---------- */

/* 3-1. Cubase（ダーク／レッド×シアン） */
.theme-cubase {
  --bg:        #0b0d12;
  --bg-2:      #11141c;
  --bg-3:      #171b26;
  --line:      rgba(255,255,255,.12);
  --line-soft: rgba(255,255,255,.07);
  --fg:        #f2f4f8;
  --fg-2:      #a8b0c0;
  --fg-3:      #6e7789;
  --acc:       #e5142b;   /* 表紙の赤 */
  --acc-2:     #5fc8de;   /* 表紙の水色 */
  --acc-ink:   #ffffff;
  --card:      rgba(255,255,255,.045);
  --card-hover:rgba(255,255,255,.075);
  --shadow:    0 30px 80px rgba(0,0,0,.6);
  --head-font: var(--sans);
}

/* 3-2. 音楽科教員（ライト／藍×若草） */
.theme-edu {
  --bg:        #f7f6f2;
  --bg-2:      #ffffff;
  --bg-3:      #eef2f2;
  --line:      rgba(27,42,51,.16);
  --line-soft: rgba(27,42,51,.08);
  --fg:        #1b2a33;
  --fg-2:      #4c6069;
  --fg-3:      #82949c;
  --acc:       #2e6c86;   /* 表紙の藍 */
  --acc-2:     #8fb09a;   /* 表紙の若草 */
  --acc-ink:   #ffffff;
  --card:      #ffffff;
  --card-hover:#ffffff;
  --shadow:    0 24px 60px rgba(27,42,51,.14);
  --head-font: var(--serif);
}

/* 3-3. トップ（ハブ）：ダークをベースに中間色 */
.theme-hub {
  --bg:        #0c0e13;
  --bg-2:      #12151d;
  --bg-3:      #181c26;
  --line:      rgba(255,255,255,.13);
  --line-soft: rgba(255,255,255,.07);
  --fg:        #f4f5f8;
  --fg-2:      #aab2c2;
  --fg-3:      #737c8e;
  --acc:       #e5142b;
  --acc-2:     #5fc8de;
  --acc-ink:   #ffffff;
  --card:      rgba(255,255,255,.05);
  --card-hover:rgba(255,255,255,.08);
  --shadow:    0 30px 80px rgba(0,0,0,.6);
  --head-font: var(--sans);
}

/* ---------- 4. ベース ---------- */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  font-family: var(--lat);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acc-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  flex: none;
}

.h2 {
  font-family: var(--head-font);
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  margin-top: 18px;
}
.theme-cubase .h2, .theme-hub .h2 { font-weight: 900; }

.lead {
  color: var(--fg-2);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 2.1;
  margin-top: 20px;
  max-width: 62ch;
}

.accent { color: var(--acc); }
.accent-2 { color: var(--acc-2); }

/* ---------- 5. ヘッダー ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .25s var(--ease);
}
.brand:hover { opacity: .72; }
.brand img {
  display: block;
  height: 19px;
  width: auto;
}
.brand--foot img { height: 26px; }
.head-nav { display: flex; align-items: center; gap: 8px; }
.head-link {
  font-size: 13px;
  color: var(--fg-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.head-link:hover { color: var(--fg); background: var(--card); }
@media (max-width: 640px) { .head-link--hide-sp { display: none; } }

/* ---------- 6. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn__arrow { transition: transform .3s var(--ease); flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--acc) 35%, transparent);
}
.btn--primary:hover { box-shadow: 0 16px 40px color-mix(in srgb, var(--acc) 45%, transparent); }

.btn--amazon {
  background: #ff9900;
  color: #10161c;
  box-shadow: 0 10px 30px rgba(255,153,0,.28);
}
.btn--amazon:hover { box-shadow: 0 16px 40px rgba(255,153,0,.4); }

.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--fg-2); background: var(--card); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

.btn-note {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 14px;
  line-height: 1.7;
}

/* ---------- 7. ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 10vw, 120px);
}
.hero__in {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .cover { max-width: 320px; margin-inline: auto; perspective: none; }
  .cover__img,
  .cover:hover .cover__img { transform: none; }
  .cover::after,
  .cover:hover::after { transform: none; }
  .theme-edu .cover__img,
  .theme-edu .cover:hover .cover__img { transform: none; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--fg-2);
}
.tag--hot {
  background: var(--acc);
  border-color: transparent;
  color: var(--acc-ink);
}

.hero__title {
  font-family: var(--head-font);
  font-size: clamp(30px, 5.6vw, 48px);
  line-height: 1.3;
  letter-spacing: -.005em;
  margin-top: 22px;
  font-weight: 700;
}
.theme-cubase .hero__title, .theme-hub .hero__title { font-weight: 900; letter-spacing: -.02em; }

.hero__sub {
  font-size: clamp(15px, 2.1vw, 20px);
  font-weight: 700;
  line-height: 1.8;
  color: var(--acc-2);
  margin-top: 18px;
}
.theme-edu .hero__sub { color: var(--acc); font-family: var(--serif); }

.hero__lead {
  color: var(--fg-2);
  margin-top: 22px;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 2.1;
  max-width: 50ch;
}
.hero__author {
  margin-top: 26px;
  font-size: 14px;
  color: var(--fg-3);
  letter-spacing: .06em;
}
.hero__author b {
  color: var(--fg);
  font-size: 18px;
  letter-spacing: .1em;
  margin-right: 8px;
}

/* 書影 */
.cover {
  position: relative;
  perspective: 1400px;
  padding: 10px;
}
.cover__img {
  width: 100%;
  border-radius: 4px;
  transform: rotateY(-13deg) rotateX(3deg) rotateZ(-1deg);
  transform-origin: 60% 50%;
  box-shadow: var(--shadow), 0 2px 0 rgba(255,255,255,.14);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.cover:hover .cover__img { transform: rotateY(-4deg) rotateX(1deg) translateY(-8px); }
.cover::after {
  /* 背表紙の陰影 */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(0,0,0,.32) 0 2.2%, rgba(255,255,255,.16) 2.2% 3.4%, transparent 8%);
  transform: rotateY(-13deg) rotateX(3deg) rotateZ(-1deg);
  transform-origin: 60% 50%;
  transition: transform .8s var(--ease);
}
.cover:hover::after { transform: rotateY(-4deg) rotateX(1deg) translateY(-8px); }

.cover__glow {
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  filter: blur(60px);
  opacity: .55;
  background:
    radial-gradient(45% 45% at 30% 30%, var(--acc) 0, transparent 70%),
    radial-gradient(45% 45% at 72% 68%, var(--acc-2) 0, transparent 70%);
}
.theme-edu .cover__glow { opacity: .3; filter: blur(70px); }

/* 明るいテーマでは「背表紙の陰影」を使わない。
   書影の傾き（-8deg）と陰影の傾き（-13deg）が食い違い、
   左上に灰色の三角形がはみ出して見えてしまうため。 */
.theme-edu .cover::after,
.theme-edu .cover:hover::after { display: none; }

.theme-edu .cover__img { transform: rotateY(-8deg) rotateX(2deg); }
.theme-edu .cover:hover .cover__img { transform: rotateY(-2deg) translateY(-8px); }

/* ヒーロー背景（ダーク系） */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(50% 45% at 18% 12%, color-mix(in srgb, var(--acc) 26%, transparent) 0, transparent 70%),
    radial-gradient(45% 45% at 84% 28%, color-mix(in srgb, var(--acc-2) 20%, transparent) 0, transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0, transparent 100%);
  opacity: .8;
}

/* 五線譜（ライト系ヒーロー背景） */
.hero__staff {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line-soft) 0 1px,
    transparent 1px 18px
  );
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 100%);
  opacity: .9;
}
.hero__wash {
  position: absolute;
  right: -12%;
  top: -22%;
  width: 62vw;
  max-width: 780px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    color-mix(in srgb, var(--acc-2) 55%, transparent) 0,
    color-mix(in srgb, var(--acc) 22%, transparent) 55%,
    transparent 72%);
  filter: blur(30px);
  opacity: .5;
}

/* イコライザー帯（Cubase用） */
.eq {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 92px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-inline: 4px;
  opacity: .5;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.eq i {
  flex: 1 1 auto;
  min-width: 3px;
  background: linear-gradient(to top, var(--acc), var(--acc-2));
  border-radius: 2px 2px 0 0;
  height: 20%;
  animation: eqbeat 1.6s var(--ease) infinite alternate;
}
@keyframes eqbeat { to { height: 90%; } }
@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 8. カード ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(32px, 5vw, 54px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(32px, 5vw, 54px);
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  background: var(--card-hover);
}
.card__num {
  font-family: var(--lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--acc);
}
.card__title {
  font-family: var(--head-font);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  line-height: 1.6;
  margin-top: 12px;
}
.card__body {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 2;
  margin-top: 12px;
}

/* チェックリスト */
.checks { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 12px; }
.check {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line-soft);
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.8;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.check:hover { border-color: color-mix(in srgb, var(--acc) 40%, transparent); transform: translateX(4px); }
.check__mark {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  color: var(--acc);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  margin-top: 4px;
}

/* 引用（帯コピー） */
.pull {
  font-family: var(--head-font);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: .01em;
}
.theme-edu .pull { font-weight: 600; }
.pull small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--fg-3);
  margin-bottom: 18px;
}

/* ---------- 9. 書誌情報 ---------- */
.spec {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.spec tr { border-bottom: 1px solid var(--line-soft); }
.spec th, .spec td {
  text-align: left;
  padding: 16px 8px;
  font-size: 14.5px;
  vertical-align: top;
}
.spec th {
  width: 132px;
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: .08em;
}
.spec td { color: var(--fg); }
.spec .price {
  font-family: var(--lat);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
}
@media (max-width: 520px) {
  .spec th { width: 96px; font-size: 13px; }
  .spec td { font-size: 14px; }
}

/* ---------- 10. CTA帯 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(36px, 6vw, 72px);
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
}
.cta::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto -20%;
  height: 200%;
  background:
    radial-gradient(40% 50% at 15% 30%, color-mix(in srgb, var(--acc) 30%, transparent) 0, transparent 70%),
    radial-gradient(40% 50% at 85% 60%, color-mix(in srgb, var(--acc-2) 26%, transparent) 0, transparent 70%);
  pointer-events: none;
}
.cta__in { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--head-font);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 900;
  line-height: 1.45;
}
.theme-edu .cta__title { font-weight: 700; }

/* ---------- 11. もう1冊 / フッター ---------- */
.crossbook {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--card);
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.crossbook:hover {
  border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  transform: translateY(-3px);
  background: var(--card-hover);
}
.crossbook img {
  width: clamp(74px, 12vw, 104px);
  flex: none;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.crossbook__label {
  font-family: var(--lat);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--acc-2);
  font-weight: 600;
}
.crossbook__title {
  font-family: var(--head-font);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 8px;
}
.crossbook__sub {
  color: var(--fg-3);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.7;
}

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 48px);
  background: var(--bg);
}
.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a {
  font-size: 13.5px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.foot-links a:hover { color: var(--acc-2); text-decoration: underline; text-underline-offset: 4px; }
.copyright {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 26px;
  letter-spacing: .04em;
}

/* ---------- 12. スクロール表示アニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 13. トップページ（2冊並列） ---------- */
.hub-hero {
  padding: clamp(64px, 11vw, 132px) 0 clamp(24px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hub-hero .eyebrow { justify-content: center; }
.hub-hero__title {
  font-size: clamp(30px, 5.6vw, 60px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
.hub-hero__lead {
  color: var(--fg-2);
  margin: 22px auto 0;
  max-width: 46ch;
  font-size: clamp(14px, 1.7vw, 16.5px);
  line-height: 2.1;
  position: relative;
  z-index: 2;
}

/* 冊数が増えても自動で並び替わる。2冊なら2列、3冊以上なら3列。 */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  align-items: stretch;
}

.book {
  position: relative;
  border-radius: clamp(18px, 2.6vw, 28px);
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.book:hover { transform: translateY(-6px); }
.book--a { --acc: #e5142b; --acc-2: #5fc8de; }
.book--b { --acc: #6ea6c0; --acc-2: #9dc0a8; }
.book:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.book::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto -20%;
  height: 150%;
  background: radial-gradient(45% 40% at 50% 12%, color-mix(in srgb, var(--acc) 26%, transparent) 0, transparent 70%);
  pointer-events: none;
  opacity: .8;
}
.book__in { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.book__cover {
  width: min(232px, 62%);
  margin: 0 auto clamp(22px, 3vw, 32px);
  border-radius: 4px;
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease);
}
.book:hover .book__cover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.book__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--acc) 20%, transparent);
  color: var(--acc-2);
  align-self: flex-start;
}
.book__title {
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 900;
  line-height: 1.4;
  margin-top: 16px;
  letter-spacing: -.01em;
}
.book__sub {
  color: var(--acc-2);
  font-size: clamp(13.5px, 1.7vw, 15.5px);
  font-weight: 700;
  line-height: 1.7;
  margin-top: 12px;
}
.book__meta {
  color: var(--fg-3);
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.9;
}
.book__actions { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; }
.book__actions .btn { width: 100%; padding: 14px 20px; font-size: 14.5px; }

/* ---------- 14. ライトテーマ（音楽科教員）の微調整 ---------- */
.hero__bg--light::before { display: none; }
.theme-edu .cover__img { border: 1px solid var(--line-soft); }
.theme-edu .crossbook img { box-shadow: 0 10px 26px rgba(27,42,51,.18); border: 1px solid var(--line-soft); }
.theme-edu .eyebrow { color: var(--acc); }
.theme-edu .card__num { color: var(--acc-2); }
.theme-edu .check__mark { background: color-mix(in srgb, var(--acc-2) 30%, transparent); color: #2f5a44; }
.theme-edu .site-head { background: color-mix(in srgb, var(--bg) 82%, transparent); }

/* 縦組みの引用（帯コピー用） */
.vquote {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 2.1;
  font-weight: 600;
  letter-spacing: .04em;
}
.vquote small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--fg-3);
  margin-bottom: 16px;
}

/* ---------- 15. 2部構成（Basic / Advanced） ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
  margin-top: clamp(32px, 5vw, 54px);
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps__arrow { transform: rotate(90deg); margin: -6px auto; }
}
.step {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.step--adv { border-color: color-mix(in srgb, var(--acc) 35%, transparent); }
.step__label {
  font-family: var(--lat);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--acc);
}
.step--adv .step__label { color: var(--acc-2); }
.step__len {
  font-family: var(--lat);
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 10px;
  letter-spacing: -.01em;
}
.step__len small { font-size: .42em; font-weight: 600; margin-left: 6px; color: var(--fg-3); letter-spacing: .04em; }
.step__body { color: var(--fg-2); font-size: 14.5px; line-height: 2; margin-top: 14px; }
.step__days {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.8;
}
.steps__arrow {
  align-self: center;
  color: var(--fg-3);
  flex: none;
}

/* ---------- 16. 目次 ---------- */
.toc {
  margin-top: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 26px);
}
@media (max-width: 800px) { .toc { grid-template-columns: 1fr; } }
.toc__part {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  background: var(--card);
}
.toc__head {
  font-family: var(--lat);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--acc);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.toc__list { display: grid; gap: 2px; }
.toc__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  font-size: 14.5px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line-soft);
}
.toc__list li:last-child { border-bottom: 0; }
.toc__no {
  flex: none;
  font-family: var(--lat);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-3);
  min-width: 2.6em;
  letter-spacing: .04em;
}
.toc__note { margin-top: 18px; font-size: 12.5px; color: var(--fg-3); line-height: 1.8; }

/* ---------- 17. 著者プロフィール ---------- */
.author {
  margin-top: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--card);
  padding: clamp(24px, 3.4vw, 40px);
}
.author__name {
  font-family: var(--head-font);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: .06em;
}
.author__name span {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--fg-3);
  margin-left: 12px;
}
.author__body {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 2.05;
  margin-top: 16px;
}
.author__books {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.9;
}
.author__books b { color: var(--fg-2); font-weight: 700; }

/* 目次：2枚目のカードだけ見出し色を変えて対にする */
.toc__part:nth-child(2) .toc__head { color: var(--acc-2); }
.theme-edu .toc__part:nth-child(2) .toc__head { color: #6f9a80; }

/* ---------- 18. イラスト・アイコン ---------- */

/* 特長カードの上に置く線画アイコン（Cubaseページ） */
.card__icon {
  height: 60px;
  width: auto;
  max-width: 184px;
  margin: 14px 0 4px;
}
@media (max-width: 860px) { .card__icon { height: 48px; } }

/* 見出しの横にイラストを置くセクション */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.sec-head__art {
  width: min(310px, 32vw);
  flex: none;
}
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head__art { width: min(280px, 74%); margin-inline: auto; order: -1; }
}

/* 大きく見せるイラスト */
.ill-wide {
  width: min(580px, 94%);
  margin: clamp(26px, 4vw, 48px) auto 0;
}

/* ヒーローの背景画像（Cubase／トップ） */
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("img/common/hero-bg.jpg") center top / cover no-repeat;
}
.hero__bg--photo::before { display: none; }

/* ---------- 19. 追加イラスト（2部構成・目次・トップ） ---------- */

/* トップ：ヒーローと書籍カードのあいだの帯 */
.band {
  display: block;
  width: min(900px, 88%);
  margin: clamp(18px, 3vw, 34px) auto 0;
  opacity: .92;
}

/* 2部構成カードの中の図 */
.step__fig {
  width: 100%;
  margin: 4px 0 18px;
}

/* 目次の上に敷く道のり */
.toc-road {
  display: block;
  width: min(1000px, 100%);
  margin: clamp(24px, 3.5vw, 40px) auto clamp(4px, 1vw, 10px);
  opacity: .9;
}

/* トップの書籍カードの紋章 */
.book__markrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.book__mark {
  width: 40px;
  height: auto;
  flex: none;
}

/* 3冊目以降の書籍カードのアクセント色。増えたら --c, --d … と足していけます */
.book--c { --acc: #c2703f; --acc-2: #e0b089; }
.book--d { --acc: #6c5ab8; --acc-2: #a897e0; }
.book--e { --acc: #3f8f7a; --acc-2: #8fcbb9; }
