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

   考え方
   - 主役は作品。会社サイト自体は控えめな暗い台にして、
     作品ごとに「その作品の色と形」で帯を組む（同じカードを並べない）。
       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-bell { 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-bell { right: 2%; bottom: 10%; width: 46%; border-radius: 12px; z-index: 1; }

/* 作品のアイコンを棚に並べる（各帯へのリンク） */
.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); }

/* ============================================
   作品の帯（共通）
   ============================================ */
.rion, .bell, .maestro, .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; }

/* ---------- ベルシューター ---------- */
/* 地はゲーム内 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%);
}

/* ---------- MAESTRO ---------- */
/* ホールの暗い木目色に、ロゴと同じ金のセリフ体。ゲーム内の新聞・譜面に合わせて明朝を使う */
.maestro { background: #150F0A; color: #F3EBDD; }
.maestro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
  align-items: center;
}
.maestro__text { grid-column: 1 / span 5; }
.maestro .meta { color: #C9A24F; }
.maestro__title {
  margin-top: 0.5rem;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: #C9A24F;
}
.maestro__sub { margin-top: 0.4rem; font-family: 'Shippori Mincho', serif; font-weight: 500; letter-spacing: 0.3em; color: #C9A24F; }
.maestro__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;
}
.maestro__text > p:not(.meta):not(.maestro__sub):not(.maestro__lead):not(.maestro__facts) { margin-top: 1rem; font-size: 0.95rem; color: #D6CBB8; }
.maestro__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--maestro { background: #C9A24F; color: #150F0A; border-radius: 2px; }

/* 指揮台からの眺めに、翌朝の新聞を切り抜きのように重ねる */
.maestro__visual { grid-column: 7 / span 6; position: relative; padding-bottom: 22%; }
.maestro__shot { width: 100%; border-radius: 10px; }
.maestro__paper { position: absolute; left: -10%; bottom: 0; width: 58%; margin: 0; }
.maestro__paper img { width: 100%; border-radius: 3px; box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.9); }
.maestro__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(6, minmax(0, 1fr)); }
  .intro__art { max-width: 640px; }
  .rion__grid, .bell__grid, .maestro__grid, .dozer__grid, .door__grid { grid-template-columns: minmax(0, 1fr); }
  .maestro__text, .maestro__visual { grid-column: 1 / -1; }
  .maestro__visual { max-width: 640px; padding-bottom: 26%; }
  .maestro__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) {
  .program__list { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .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) {
  /* アイコン棚はアプリ一覧のように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; }
}
