/* ============================================
   One Craft — onecraft-ne.jp

   考え方
   - 主役は作品。会社サイト自体は控えめな暗い台にして、
     作品ごとに「その作品の色と形」で帯を組む（同じカードを並べない）。
       GIGALANCE           … 夜空の濃紺 × ロゴの青白い光（危険の時だけ橙）
       Rion's Taskbar Mine … クリーム × 茶（絵本調のイラストに合わせる）
       Came by Bulldozer   … 黒 × 工事の黄色、上下に警戒ストライプ
       絶対乗せない。        … アイコンの赤
       AIRLINE HANGAR      … ロゴの黄色 × 黒
   - サイトの差し色は、作品に共通している黄色 #F2B705 を借りる。
   ============================================ */

:root {
  --page: #161513;
  --ink: #F2EEE6;
  --dim: #ADA89E;
  --line: rgba(242, 238, 230, 0.13);
  --yellow: #F2B705;

  --f-ja: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont,
          'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --f-cond: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-ja);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--page);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, p, a, dd, dt, li, span, b { overflow-wrap: break-word; }

::selection { background: var(--yellow); color: #111; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

html[data-lang="en"] [data-lang="ja"] { display: none; }
html:not([data-lang="en"]) [data-lang="en"] { display: none; }

/* 単語の途中で折らない */
.nowrap { white-space: nowrap; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* ============================================
   ヘッダー
   ============================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 14px clamp(20px, 5vw, 56px);
  background: var(--page);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }

.hdr__brand {
  order: 0;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hdr__nav { order: 1; margin-left: auto; display: flex; gap: clamp(14px, 2vw, 26px); }
.hdr__nav a { font-size: 0.88rem; color: var(--dim); transition: color 0.2s ease; }
.hdr__nav a:hover { color: var(--ink); }

.hdr__lang { order: 2; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang-toggle button {
  font: 600 0.72rem/1 var(--f-ja);
  padding: 6px 8px;
  background: none;
  border: 0;
  color: var(--dim);
  cursor: pointer;
}
.lang-toggle button + button { border-left: 1px solid var(--line); }
.lang-toggle button.is-active { background: var(--ink); color: var(--page); }

.hdr__burger {
  order: 3;
  display: none;
  width: 32px; height: 32px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px;
}
.hdr__burger span { display: block; height: 2px; background: var(--ink); transition: transform 0.3s ease; }
.hdr__burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hdr__burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============================================
   はじめに
   ============================================ */
.intro { padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(32px, 6vh, 64px); }

.intro__title {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.intro__title[lang="en"] { line-height: 1.12; letter-spacing: -0.02em; }

.intro__text {
  margin-top: 1.4rem;
  max-width: 38em;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--dim);
}

/* 本文とアイコンは左、右に本物の作品を重ねて置く */
.intro__row {
  margin-top: clamp(28px, 4vh, 44px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.intro__row .intro__text { margin-top: 0; }
.intro__row .shelf { margin-top: clamp(24px, 4vh, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); }

.intro__art { position: relative; aspect-ratio: 4 / 3; }
.intro__art img { position: absolute; }
.art-plane { top: 0; right: 0; width: 88%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.art-rion,
.art-misconductor { border: 5px solid var(--page); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.8); }
.art-rion { left: 0; bottom: 0; width: 50%; border-radius: 12px; }
.art-misconductor { right: 2%; bottom: 10%; width: 46%; border-radius: 12px; z-index: 1; }
/* 地が暗い画像なので、ページに溶けないよう帯と同じ金の細い縁を外側に足す */
.art-misconductor { box-shadow: 0 0 0 1px rgba(201, 162, 79, 0.75), 0 24px 40px -22px rgba(0, 0, 0, 0.8); }

/* 作品のアイコンを棚に並べる（各帯へのリンク） */
.shelf {
  margin-top: clamp(40px, 6vh, 64px);
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.shelf a {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  transition: background 0.2s ease;
}
.shelf a:hover { background: rgba(242, 238, 230, 0.06); }
.shelf img { width: 88px; height: 88px; border-radius: 22%; margin-bottom: 4px; }
.shelf b { font-size: 0.9rem; line-height: 1.4; }
.shelf small { font-size: 0.78rem; color: var(--dim); }

/* ============================================
   グループの見出し
   ============================================ */
.group { padding-top: clamp(72px, 11vh, 128px); padding-bottom: clamp(24px, 4vh, 40px); }
.group__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.group__note { margin-top: 0.4rem; color: var(--dim); }

/* ============================================
   作品の帯（共通）
   ============================================ */
.giga, .misconductor, .masala, .lily, .rion, .bell, .dozer, .door, .ah { padding-block: clamp(48px, 8vh, 96px); }

.meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.6rem;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}
.btn::after { content: '\2197'; font-weight: 400; }
.btn:hover { opacity: 0.85; }

/* ---------- Rion's Taskbar Mine ---------- */
.rion { background: #F3E8CF; color: #3A2A17; }
.rion__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 28px;
  align-items: center;
}
.rion__main { grid-column: 1 / span 7; }
.rion__main img { width: 100%; border-radius: 14px; box-shadow: 0 22px 44px -26px rgba(80, 50, 10, 0.55); }
.rion__text { grid-column: 9 / span 4; }
.rion .meta { color: #73552A; }
.rion__title { margin-top: 0.5rem; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.15; }
.rion__sub { margin-top: 0.3rem; font-weight: 700; font-size: 0.95rem; color: #73552A; }
.rion__text p:not(.meta):not(.rion__sub) { margin-top: 1rem; font-size: 0.96rem; }
.btn--rion { background: #3A2A17; color: #F3E8CF; border-radius: 999px; }

.rion__more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rion__more img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

/* ---------- MASALA FIX（マサラ修理） ---------- */
/* ゲーム内の画面と同じ、えんじ色に放射線。ボリウッド映画のポスターのように真ん中から光が出る */
.masala {
  background-color: #5A0E18;
  background-image: repeating-conic-gradient(from 0deg at 50% -10%, rgba(255, 196, 120, 0.07) 0deg 4deg, transparent 4deg 9deg);
  color: #FBEFD9;
}
.masala__head { text-align: center; }
.masala__head .meta { justify-content: center; color: #FF8FC2; }
.masala__title { margin: 0.9rem auto 0; max-width: 600px; }
.masala__title img { width: 100%; margin-inline: auto; }
/* 英語のロゴには副題が入っていないので、正式名の副題を添える */
.masala__sub { margin-top: 0.3rem; font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: #F2C866; }
.masala__lead { margin-top: 1rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 900; line-height: 1.55; }

.masala__grid {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
  align-items: center;
}
.masala__text { grid-column: 1 / span 5; }
.masala__text > p:not(.masala__facts):not(.masala__barnote) { margin-top: 1rem; font-size: 0.95rem; color: #F1DFC4; }
.masala__text > p:first-child { margin-top: 0; }
/* 金の二重線の額。ゲームの画面の枠と同じ */
.masala__shot {
  grid-column: 6 / span 7;
  width: 100%;
  border: 2px solid #E2B85A;
  outline: 1px solid rgba(226, 184, 90, 0.55);
  outline-offset: 5px;
  border-radius: 2px;
}

/* 1小節のマス（ピンクが裏） */
.masala__bar {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  max-width: 360px;
}
.masala__bar span {
  display: grid;
  place-items: center;
  height: 34px;
  border: 1px solid rgba(226, 184, 90, 0.6);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  font-weight: 700;
  font-size: 0.85rem;
  color: #F6D98E;
}
/* 白い文字では薄いので、地のえんじ色を文字に使う */
.masala__bar span.is-off { background: #E8559A; border-color: #FF9CCB; color: #3A0810; }
.masala__barnote { margin-top: 0.5rem; font-size: 0.85rem; font-weight: 700; color: #FF8FC2; }

.masala__facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: 1.2rem; font-weight: 700; font-size: 0.9rem; color: #F2C866; }
.btn--masala { background-color: #E8BE62; background-image: linear-gradient(#F6D98E, #D9A441); color: #4A0B13; border-radius: 3px; box-shadow: 0 0 0 1px #F6D98E, 0 0 0 4px #5A0E18, 0 0 0 5px rgba(226, 184, 90, 0.7); }

/* 直った／大惨事／祭り */
.masala__acts {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}
.masala__acts img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(226, 184, 90, 0.7); border-radius: 2px; }
.masala__acts span { display: block; margin-top: 0.6rem; text-align: center; font-weight: 900; font-size: 0.95rem; }

/* ---------- LILY'S TASKBAR HUSTLE ---------- */
/* キーアートの空の青に、アメコミの網点。コマは黒い太枠とずらした影で */
.lily {
  background-color: #1D58B8;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
  color: #FFFFFF;
}
.lily__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
  align-items: center;
}
.lily__text { grid-column: 1 / span 5; }
.lily .meta { color: #FFD21F; }
.lily__title { margin-top: 0.4rem; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 900; line-height: 1.15; letter-spacing: 0.01em; }
.lily__lead { margin-top: 1.1rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 900; line-height: 1.55; }
.lily__text > p:not(.meta):not(.lily__lead):not(.lily__facts) { margin-top: 1rem; font-size: 0.95rem; color: #E1E9FA; }
.lily__facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: 1.2rem; font-weight: 700; font-size: 0.9rem; color: #FFD21F; }
.btn--lily { background: #FFD21F; color: #111111; border: 3px solid #111111; border-radius: 4px; box-shadow: 4px 4px 0 #111111; }

.lily__key,
.lily__panel {
  border: 4px solid #111111;
  box-shadow: 8px 8px 0 #0C2A60;
}
.lily__key { grid-column: 7 / span 6; width: 100%; transform: rotate(1.5deg); }

/* 大ゴマ1つと小ゴマ2つ */
.lily__page {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
}
.lily__panel { position: relative; margin: 0; background: #111111; }
.lily__panel img { width: 100%; }
.lily__panel--desk { grid-row: 1 / span 2; }
/* 元画像をコマとほぼ同じ比率で切ってあるので、詰めるのはごくわずか */
.lily__panel--desk img { height: 100%; object-fit: cover; object-position: center bottom; }
/* ネーム枠（黄色い吹き出し） */
.lily__panel figcaption {
  position: absolute;
  top: -14px;
  left: -10px;
  max-width: calc(100% - 12px);
  padding: 0.35rem 0.7rem;
  background: #FFD21F;
  color: #111111;
  border: 3px solid #111111;
  font-weight: 900;
  font-size: 0.88rem;
  line-height: 1.35;
  transform: rotate(-2deg);
}
.lily__panel figcaption b { white-space: nowrap; }

/* ---------- ベルシューター ---------- */
/* 地はゲーム内 HUD と同じ紫の斜めストライプ */
.bell {
  background-color: #241B46;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 34px, transparent 34px 68px);
  color: #F4F0FF;
}
.bell__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
  align-items: center;
}
.bell__logo { grid-column: 1 / span 5; width: 100%; max-width: 440px; border-radius: 14px; }
.bell__text { grid-column: 7 / span 6; }
.bell .meta { color: #FFD23F; }
.bell__title { margin-top: 0.4rem; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.15; }
.bell__lead { margin-top: 1.1rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 900; line-height: 1.55; }
.bell__text > p:not(.meta):not(.bell__lead):not(.bell__facts) { margin-top: 1rem; font-size: 0.95rem; color: #D2CCE8; }
.bell__facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: 1.2rem; font-weight: 700; font-size: 0.9rem; color: #FFD23F; }
/* ロゴの黄色と、その下に敷かれた赤い縁取り */
.btn--bell { background: #FFD23F; color: #241B46; border-radius: 999px; box-shadow: 0 4px 0 #E8344E; }

/* 画面をステージ順に並べる。左から右へだんだん怖くなる */
.bell__worlds { margin-top: clamp(40px, 6vh, 64px); }
.bell__hook { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 900; }
.bell__strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.bell__strip img { width: 100%; aspect-ratio: 400 / 540; object-fit: cover; border-radius: 10px; }
.bell__strip span {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #D2CCE8;
}
.bell__scale {
  position: relative;
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #D2CCE8;
}
.bell__scale::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8ECBFF 0%, #FFB38A 22%, #7A5BC8 45%, #3B1F55 68%, #B0101A 100%);
}

/* ---------- GIGALANCE（ギガランス） ---------- */
/* 海に浮かぶ基地の夜空。ゲームの空と同じ濃紺に、ロゴと同じ青白い光と目盛り線。
   橙は砲の部品の色で、「100% を超えた」危険のときだけ使う */
.giga {
  background:
    radial-gradient(110% 70% at 88% -10%, rgba(42, 74, 140, 0.55) 0%, transparent 60%),
    linear-gradient(#060C1E, #0A1530 70%, #0C1A36);
  color: #E4EEFA;
}
.giga__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  align-items: center;
}
.giga__text { grid-column: 1 / span 5; }
.giga .meta { color: #8FD3FF; }
.giga__title { margin-top: 1.1rem; max-width: 440px; }
.giga__title img { width: 100%; }
.giga__lead { margin-top: 1.3rem; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 900; line-height: 1.55; }
.giga__text > p:not(.meta):not(.giga__lead):not(.giga__facts) { margin-top: 1rem; font-size: 0.95rem; color: #B9C8DC; }

/* 画面上の3つの数値（威力・温度・しなり）。目盛りの白い線が 100% */
.giga__gauges { margin-top: 1.5rem; display: grid; gap: 0.9rem; }
.giga__gauges > div { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.giga__gauges dt { font-family: var(--f-cond); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; line-height: 1.25; color: #8FD3FF; }
.giga__gauges dt span { display: block; font-family: var(--f-ja); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; color: #95A8C2; }
.giga__gauges dd { font-size: 0.9rem; font-weight: 700; line-height: 1.5; }
.giga__bar {
  position: relative;
  display: block;
  margin-top: 0.45rem;
  height: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(143, 211, 255, 0.35) 0 1px, transparent 1px 10%),
    rgba(143, 211, 255, 0.08);
}
.giga__bar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: #8FD3FF; }
.giga__bar::after { content: ''; position: absolute; left: 80%; top: -4px; bottom: -4px; width: 2px; background: #E4EEFA; }
.giga__bar.is-low { --v: 52%; }
.giga__bar.is-over { --v: 92%; }
/* 100%（全体の80%）から先だけ橙。87% ≒ 80 ÷ 92 */
.giga__bar.is-over::before { background: linear-gradient(90deg, #8FD3FF 87%, #F39A3D 87%); }

.giga__facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: 1.4rem; font-weight: 700; font-size: 0.9rem; color: #8FD3FF; }
.btn--giga { background: #8FD3FF; color: #06101F; border-radius: 2px; box-shadow: 0 0 26px -6px rgba(143, 211, 255, 0.85); }

/* 照準のような四隅の枠で、砕ける瞬間を囲む */
.giga__visual { grid-column: 7 / span 6; position: relative; margin: 0; padding: 14px; }
.giga__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#8FD3FF, #8FD3FF) left top / 30px 2px no-repeat,
    linear-gradient(#8FD3FF, #8FD3FF) left top / 2px 30px no-repeat,
    linear-gradient(#8FD3FF, #8FD3FF) right top / 30px 2px no-repeat,
    linear-gradient(#8FD3FF, #8FD3FF) right top / 2px 30px no-repeat,
    linear-gradient(#8FD3FF, #8FD3FF) left bottom / 30px 2px no-repeat,
    linear-gradient(#8FD3FF, #8FD3FF) left bottom / 2px 30px no-repeat,
    linear-gradient(#8FD3FF, #8FD3FF) right bottom / 30px 2px no-repeat,
    linear-gradient(#8FD3FF, #8FD3FF) right bottom / 2px 30px no-repeat;
}
.giga__visual img { width: 100%; border-radius: 2px; }
/* ロゴの下にある目盛り線を、キャプションの上にも */
.giga__visual figcaption {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  font-size: 0.82rem;
  color: #B9C8DC;
  background: repeating-linear-gradient(90deg, rgba(143, 211, 255, 0.5) 0 1px, transparent 1px 12px) top left / 100% 6px no-repeat;
}

/* 組む → 上げる → 撃つ */
.giga__steps {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}
.giga__steps img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(143, 211, 255, 0.35); border-radius: 2px; }
.giga__steps b { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.9rem; font-weight: 900; font-size: 1.1rem; line-height: 1.3; }
.giga__steps i { font-family: var(--f-cond); font-style: normal; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.12em; color: #8FD3FF; }
.giga__steps small { display: block; margin-top: 0.3rem; font-size: 0.86rem; line-height: 1.65; color: #B9C8DC; }

/* ---------- MISCONDUCTOR（迷指揮者） ---------- */
/* ホールの暗い木目色に、ロゴと同じ金のセリフ体。ゲーム内の新聞・譜面に合わせて明朝を使う */
.misconductor { background: #150F0A; color: #F3EBDD; }
.misconductor__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  align-items: center;
}
.misconductor__text { grid-column: 1 / span 5; }
.misconductor .meta { color: #C9A24F; }
.misconductor__title {
  margin-top: 0.5rem;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #C9A24F;
}
/* タイトル画面のロゴと同じく「Mis」と「迷」だけ赤。暗い背景で読めるよう少し明るくしている */
.misconductor__mis { color: #D42A1E; }
.misconductor__sub { margin-top: 0.5rem; font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.3em; color: #C9A24F; }
.misconductor__lead {
  margin-top: 1.3rem;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.5;
}
.misconductor__text > p:not(.meta):not(.misconductor__sub):not(.misconductor__lead):not(.misconductor__facts) { margin-top: 1rem; font-size: 0.95rem; color: #D6CBB8; }
.misconductor__facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: 1.2rem; font-weight: 700; font-size: 0.9rem; color: #C9A24F; }
.btn--misconductor { background: #C9A24F; color: #150F0A; border-radius: 2px; }

/* 指揮台からの眺めに、翌朝の新聞を切り抜きのように重ねる */
.misconductor__visual { grid-column: 7 / span 6; position: relative; padding-bottom: 22%; }
.misconductor__shot { width: 100%; border-radius: 10px; }
.misconductor__paper { position: absolute; left: -10%; bottom: 0; width: 58%; margin: 0; }
.misconductor__paper img { width: 100%; border-radius: 3px; box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.9); }
.misconductor__paper figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: #D6CBB8; }

/* 全8曲を、紙に刷った演奏会のプログラムのように */
.program {
  margin-top: clamp(48px, 7vh, 72px);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  background: #F2EADB;
  color: #2A1D12;
  border-radius: 3px;
}
.program__title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42, 29, 18, 0.25);
}
.program__list {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 3rem;
  list-style: none;
}
.program__list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline; }
.program__list i {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  color: #7E5C22;
}
.program__list small { display: block; font-size: 0.8rem; color: #5E4A36; }
.program__list b { display: block; font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 1.12rem; line-height: 1.45; }
.program__list em { display: block; margin-top: 0.15rem; font-style: normal; font-size: 0.82rem; color: #5E4A36; }
.program__list em::before { content: '\2014\00a0'; }
.program__note { margin-top: 1.6rem; text-align: center; font-size: 0.82rem; color: #5E4A36; }

/* ---------- Came by Bulldozer ---------- */
.dozer { position: relative; background: #121317; color: #ECECEC; }
.dozer::before,
.dozer::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #121317 14px 28px);
}
.dozer::before { top: 0; }
.dozer::after { bottom: 0; }

.dozer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  align-items: center;
}
.dozer__text { grid-column: 1 / span 5; }
.dozer .meta { color: var(--yellow); }
.dozer__title {
  margin-top: 0.4rem;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
}
/* ゲームのタイトル画面と同じ、短い黄色の線 */
.dozer__title::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 0.9rem; background: var(--yellow); }
/* 日本語の掲載名は「描いて走れ！ブルドーザー」、英語名とゲーム内のタイトルは Came by Bulldozer */
.dozer__title [data-lang="ja"] { font-family: var(--f-ja); font-weight: 900; font-size: 0.74em; line-height: 1.3; letter-spacing: 0; }
.dozer__sub { margin-top: 0.7rem; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: #B9B9BF; }
.dozer__lead { margin-top: 1.4rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 900; line-height: 1.55; }
.dozer__text > p:not(.meta):not(.dozer__sub):not(.dozer__lead):not(.dozer__facts) { margin-top: 1rem; font-size: 0.95rem; color: #B9B9BF; }
.dozer__facts { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin-top: 1.2rem; font-weight: 700; font-size: 0.9rem; color: var(--yellow); }
.btn--dozer { background: var(--yellow); color: #121317; border-radius: 2px; }

/* 画面は坂を登るように一段ずつ下げて並べる */
.dozer__phones {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.dozer__phones img { width: 100%; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); }
.dozer__phones img:nth-child(2) { margin-top: 40px; }
.dozer__phones img:nth-child(3) { margin-top: 80px; }

/* ---------- 絶対乗せない。 ---------- */
.door { background: #A3141A; color: #FFF5F0; }
.door__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  align-items: center;
}
.door__phones { grid-column: 1 / span 6; position: relative; padding-bottom: 10%; }
.door__a { width: 58%; border-radius: 16px; }
.door__b {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 44%;
  border: 6px solid #A3141A;
  border-radius: 22px;
}
.door__text { grid-column: 8 / span 5; }
.door .meta { color: #FFC9BF; }
.door__title { margin-top: 0.4rem; font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 900; line-height: 1.15; letter-spacing: 0.02em; }
.door__lead { margin-top: 1.2rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 900; line-height: 1.55; }
.door__text > p:not(.meta):not(.door__lead):not(.door__cast) { margin-top: 1rem; font-size: 0.95rem; color: #FFE1DA; }
.door__cast { margin-top: 1rem; font-size: 0.82rem; line-height: 1.8; color: #FFC9BF; }
.btn--door { background: #FFF5F0; color: #A3141A; border-radius: 8px; }

/* ---------- AIRLINE HANGAR ---------- */
.ah { background: #F5C400; color: #111; }
.ah__head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.ah__head img { width: 88px; height: 88px; border-radius: 20%; }
.ah__title { font-family: var(--f-cond); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.ah__head p { margin-top: 0.4rem; max-width: 40em; font-size: 0.95rem; color: #2A2300; }
.btn--ah { margin-top: 0; background: #111; color: #F5C400; border-radius: 4px; white-space: nowrap; }

.shorts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.shorts a { display: block; }
.shorts img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #111; }
.shorts span { display: block; margin-top: 0.55rem; font-size: 0.8rem; font-weight: 700; line-height: 1.55; }
.shorts a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.ah__site {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  background: #111;
  color: #EEE;
  border-radius: 14px;
  overflow: hidden;
}
.ah__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ah__sitetext { padding: 28px 32px; }
.ah__sitetext h4 { font-family: var(--f-cond); font-weight: 700; font-size: 1.8rem; line-height: 1.1; color: #F5C400; }
.ah__sitetext p { margin-top: 0.6rem; font-size: 0.92rem; color: #CFCFCF; }
.btn--ahsite { background: #F5C400; color: #111; border-radius: 4px; }

/* ============================================
   WordPress
   ============================================ */
.wp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.wp__shot { display: block; aspect-ratio: 1000 / 525; border-radius: 10px; overflow: hidden; background: #0B0D12; }
.wp__shot img { width: 100%; height: 100%; object-fit: contain; }
.wp__item h3 { margin-top: 1rem; font-size: 1.3rem; font-weight: 900; }
.wp__item > p:not(.wp__links) { margin-top: 0.5rem; font-size: 0.94rem; color: var(--dim); }
.wp__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; font-size: 0.88rem; }
.wp__links a { border-bottom: 1px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease; }
.wp__links a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ============================================
   文字だけのセクション
   ============================================ */
.plain { padding-top: clamp(72px, 11vh, 128px); }
.plain > p { margin-top: 1rem; max-width: 40em; color: var(--dim); }

.about { margin-top: 1.5rem; border-top: 1px solid var(--line); max-width: 860px; }
.about > div { display: grid; grid-template-columns: 10em 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.about dt { font-size: 0.88rem; color: var(--dim); padding-top: 0.1rem; }
.about dd { font-size: 0.95rem; }
.about dd a { border-bottom: 1px solid var(--line); }
.about dd a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.contact { padding-bottom: clamp(64px, 10vh, 112px); }
.contact__mail {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 2px solid var(--yellow);
  word-break: break-all;
  transition: color 0.2s ease;
}
.contact__mail:hover { color: var(--yellow); }
.contact__mail:not([href]) { cursor: default; }

.ftr {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding-top: 28px;
  padding-bottom: 40px;
  position: relative;
  font-size: 0.82rem;
  color: var(--dim);
}
.ftr::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, 5vw, 56px);
  right: clamp(20px, 5vw, 56px);
  height: 1px;
  background: var(--line);
}
.ftr a:hover { color: var(--ink); }

/* ============================================
   タブレット以下
   ============================================ */
@media (max-width: 900px) {
  .intro__row { grid-template-columns: minmax(0, 1fr); }
  .intro__row .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro__art { max-width: 640px; }
  .rion__grid, .bell__grid, .giga__grid, .misconductor__grid, .masala__grid, .lily__grid, .dozer__grid, .door__grid { grid-template-columns: minmax(0, 1fr); }
  .giga__text, .giga__visual { grid-column: 1 / -1; }
  .giga__visual { max-width: 640px; }
  .masala__text, .masala__shot { grid-column: 1 / -1; }
  .masala__shot { max-width: 640px; }
  .lily__text, .lily__key { grid-column: 1 / -1; }
  .lily__key { max-width: 560px; }
  .misconductor__text, .misconductor__visual { grid-column: 1 / -1; }
  .misconductor__visual { max-width: 640px; padding-bottom: 26%; }
  .misconductor__paper { left: 0; width: 60%; }
  .bell__logo, .bell__text { grid-column: 1 / -1; }
  .bell__logo { max-width: 360px; }

  /* ステージの画面も横にスワイプ */
  .bell__strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 30%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .bell__strip li { scroll-snap-align: start; }
  .rion__main, .rion__text, .rion__more { grid-column: 1 / -1; }

  .dozer__text, .dozer__phones { grid-column: 1 / -1; }
  .dozer__phones img:nth-child(2) { margin-top: 24px; }
  .dozer__phones img:nth-child(3) { margin-top: 48px; }

  .door__phones, .door__text { grid-column: 1 / -1; }
  .door__phones { max-width: 520px; }

  .ah__head { grid-template-columns: auto 1fr; }
  .ah__head .btn--ah { grid-column: 1 / -1; justify-self: start; }

  /* ショートは横にスワイプ */
  .shorts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 38%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .shorts li { scroll-snap-align: start; }

  .ah__site { grid-template-columns: 1fr; }

  .wp { grid-template-columns: 1fr; gap: 48px; }

  .about > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ============================================
   スマートフォン
   ============================================ */
@media (max-width: 760px) {
  /* マンガのコマは縦に1列。大ゴマは画面そのままの比率で */
  .lily__page { grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 64px; }
  .lily__panel--desk { grid-row: auto; }
  .lily__panel--desk img { height: auto; }
  /* 小さい画面ではネーム枠をコマの上に出して、絵を隠さない */
  .lily__panel figcaption { top: auto; bottom: 100%; margin-bottom: -10px; }
  .program__list { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .giga__steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hdr__burger { display: flex; }
  .hdr__nav {
    position: fixed;
    inset: 0;
    margin-left: 0;
    z-index: -1;
    background: var(--page);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 0 clamp(20px, 5vw, 56px);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hdr__nav.is-open { transform: translateY(0); }
  .hdr__nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ink);
  }

  .hdr__lang { margin-left: auto; }
  .intro__row .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf img { width: 72px; height: 72px; }
}

@media (max-width: 520px) {
  .masala__acts { grid-template-columns: minmax(0, 1fr); }
  /* アイコン棚はアプリ一覧のように1列で、名前を折らない */
  .intro__row .shelf { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .shelf a { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; padding: 8px 10px; }
  .shelf img { width: 52px; height: 52px; margin-bottom: 0; grid-row: 1 / span 2; }
  .shelf b { align-self: end; }
  .shelf small { align-self: start; }
  .ah__head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ah__head img { width: 64px; height: 64px; }
  .rion__more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rion__more img:first-child { grid-column: 1 / -1; }
  .shorts { grid-auto-columns: 46%; }
  .bell__strip { grid-auto-columns: 40%; }
  .door__a { width: 62%; }
  .door__b { width: 46%; right: 0; }
}

html:not(.js) .hdr__nav { position: static; transform: none; background: none; inset: auto; z-index: auto; }
html:not(.js) .hdr__burger { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
