/* 日本文藝 トップページ
   白い紙、墨の文字、朱はごくわずか。文字は小さく、行間と字間をひろく。
   左に言葉、右に紙のギャラリー（せまい画面では、上にギャラリー、下に言葉）。 */
:root {
  --paper: #ffffff;                 /* 紙の色：白（2026-12-02 持ち主「真っ白にするか」。会場は gallery.js で白の地に合わせる） */
  --paper-rgb: 255, 255, 255;
  --ink: #2b2622;
  --sub: #6b635b;
  --line: rgba(43, 38, 34, 0.17);
  --red: #d6372a;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --latin: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;   /* 2026-12-02 世界観をそろえる：欧文の書体（Cormorant Garamond）もやめて、数字も英字も明朝に */
  --gut: clamp(28px, 6.6vw, 108px);
  --col: clamp(300px, 32vw, 380px);
  --edge: calc(var(--gut) + var(--col));   /* 言葉の列の右はし */
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: var(--mincho); font-weight: 400; font-size: 15px; line-height: 2.2; letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  line-break: strict; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 30; left: 16px; top: 16px; padding: 10px 18px; background: var(--ink); color: var(--paper); font-size: 13px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---- 紙のギャラリー（うしろに固定） ---- */
#stage { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; background: var(--paper); overflow: hidden; }
#stage canvas { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; opacity: 0; transition: opacity 1.4s ease; }
.is-live #stage canvas { opacity: 1; }
#stage .still { display: none; }
.no-gl #stage .still { display: block; position: absolute; inset: 0; }
#stage .still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
#vp { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }

/* 言葉のうしろの、うすい紙：言葉の列までは紙そのもの。そこから先は、白い壁へとけていく。右はしも、紙の余白へとける */
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: var(--veil, 0);
  background:
    linear-gradient(90deg, rgba(var(--paper-rgb), 0) 93%, rgba(var(--paper-rgb), 0.55) 96%, rgba(var(--paper-rgb), 0.92) 98.6%, rgb(var(--paper-rgb)) 100%),
    linear-gradient(90deg, rgb(var(--paper-rgb)) 0, rgb(var(--paper-rgb)) calc(var(--edge) + 0.5vw), rgba(var(--paper-rgb), 0.93) calc(var(--edge) + 2.5vw), rgba(var(--paper-rgb), 0.72) calc(var(--edge) + 4.8vw), rgba(var(--paper-rgb), 0.42) calc(var(--edge) + 7vw), rgba(var(--paper-rgb), 0.16) calc(var(--edge) + 9.2vw), rgba(var(--paper-rgb), 0) calc(var(--edge) + 11.5vw));
}
/* スクロールの進みぐあい：左の余白に、墨のごくうすい線がのびる */
.thread-bar { position: fixed; z-index: 4; left: clamp(18px, 2.3vw, 40px); top: 0; width: 1px; height: 100vh; background: var(--ink); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.is-open .thread-bar { opacity: 0.28; }

/* ---- 上の帯 ---- */
.top {
  position: fixed; z-index: 6; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) var(--gut) 30px; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--paper-rgb)) 0%, rgb(var(--paper-rgb)) 52%, rgba(var(--paper-rgb), 0.7) 76%, rgba(var(--paper-rgb), 0) 100%);   /* 下を流れる文章が、ロゴやメニューに重ならないように */
}
.top a, .top button { pointer-events: auto; }
/* 2026-12-02 左上：「日本文藝 | NIHONBUNGEI」を右のメニューと同じ大きさに。印は「藝」のもとの字「埶」（苗木を植える人）。nb/img/mark.svg */
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 500; font-size: 13.5px; letter-spacing: 0.2em; line-height: 1; white-space: nowrap; }
.brand .mark { width: 22px; height: 22px; flex: none; display: block; }
.brand .sep { color: var(--sub); letter-spacing: 0; margin: 0 0.55em 0 0.1em; font-weight: 400; }
.brand .en { letter-spacing: 0.16em; font-weight: 400; }
@media (max-width: 360px) { .brand .sep, .brand .en { display: none; } }
/* 2026-12-02 中くらいの幅：メニューの文字が2行に折れないように（〜1180px は左上を「日本文藝」だけ、〜900px はメニューをボタンに） */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) and (min-aspect-ratio: 1/1) { .brand .sep, .brand .en { display: none; } }
.nav { display: flex; gap: clamp(18px, 2.5vw, 42px); font-size: 13.5px; letter-spacing: 0.2em; line-height: 1; }
.nav a { position: relative; padding: 9px 0; }
.nav a::after, .foot nav a::after, .legal a::after { content: ""; position: absolute; left: 0; right: 0.2em; bottom: 1px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after, .foot nav a:hover::after, .legal a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-btn i:nth-of-type(1) { top: 18px; } .menu-btn i:nth-of-type(2) { top: 26px; }
.menu-open .menu-btn i:nth-of-type(1) { top: 22px; transform: rotate(24deg); } .menu-open .menu-btn i:nth-of-type(2) { top: 22px; transform: rotate(-24deg); }
.menu { position: fixed; inset: 0; z-index: 5; background: var(--paper); display: grid; place-items: center; opacity: 0; transition: opacity 0.5s ease; }
.menu[hidden] { display: none; }
.menu-open .menu { opacity: 1; }
.menu nav { display: grid; gap: 26px; }
.menu a { display: grid; gap: 4px; font-size: 19px; letter-spacing: 0.32em; line-height: 1.5; }
.menu small { display: none; }   /* メニューの英字の添え書きは出さない（世界観をそろえる） */

/* ---- 本文：それぞれの場面 ---- */
.stop { position: relative; z-index: 2; pointer-events: none; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.hero { height: 150vh; }
.tagline {
  position: absolute; left: var(--gut); top: 50%; transform: translateY(-52%);
  writing-mode: vertical-rl; font-weight: 500; font-size: clamp(22px, 1.95vw, 30px); letter-spacing: 0.36em; line-height: 2.55; white-space: nowrap;
  font-feature-settings: "vpal" 0;
}
.tagline span { display: block; }
.tagline span:nth-child(2) { padding-top: 1.7em; }
.tagline span:nth-child(3) { padding-top: 3.4em; }
.lead { position: absolute; left: var(--gut); bottom: clamp(56px, 11vh, 110px); font-size: 13.5px; letter-spacing: 0.24em; line-height: 2.3; }
.cue span { display: none; }   /* 「Scroll」の英字は出さない。線だけ */
.cue { position: absolute; right: var(--gut); bottom: clamp(30px, 6vh, 56px); display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: 0.14em; color: var(--sub); line-height: 1; }
.cue span { writing-mode: vertical-rl; }
.cue i { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--red); animation: cue 2.6s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
@keyframes cue { 0% { transform: translateY(-20px); } 70%, 100% { transform: translateY(56px); } }
.hero .pin { opacity: var(--o, 1); }   /* はじめの言葉は、ひとまとまりで消える */

.step { height: 200vh; }
.step .pin { display: flex; align-items: center; }
.text { width: var(--col); margin-left: var(--gut); pointer-events: auto; opacity: var(--o, 1); container-type: inline-size; }
.stop.off .text { pointer-events: none; }   /* 見えていないあいだは、押せない */
.label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; font-family: var(--latin); color: var(--sub); line-height: 1; }
.label::before { content: ""; align-self: center; width: 26px; height: 1px; background: var(--red); }   /* 見出しの前の、短い朱の線 */
.label .en { display: none; }   /* 見出しの上の英字は出さない。朱の線だけ残す（世界観をそろえる） */
h2 { font-weight: 500; font-size: clamp(20px, 1.62vw, 24px); letter-spacing: 0.32em; line-height: 1.8; margin-bottom: 26px; }
.body { font-size: 15px; line-height: 2.3; letter-spacing: 0.1em; }
.body span, .list .d span, .doors .d span, .insta span { display: inline-block; }   /* 文の切れ目でだけ折り返す */
.more { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; padding: 8px 0; font-size: 13.5px; letter-spacing: 0.24em; line-height: 1; }
.more::after { content: ""; width: 46px; height: 1px; background: currentColor; transition: width 0.6s var(--ease), background-color 0.3s; }
.more:hover::after, .more:focus-visible::after { width: 72px; background: var(--red); }

/* 事業内容の3つ */
.list { margin-top: 26px; border-top: 1px solid var(--line); counter-reset: n; }
.text > .list:first-child { margin-top: 0; }
.list li { counter-increment: n; border-bottom: 1px solid var(--line); }
.list a, .list .row { display: grid; grid-template-columns: 2.5em 1fr auto; align-items: baseline; padding: 20px 0 19px; }
.list a::before, .list .row::before { content: counter(n, decimal-leading-zero); font-family: var(--latin); font-size: 14px; letter-spacing: 0.06em; color: var(--sub); }
.list .k { font-size: 14.5px; letter-spacing: 0.16em; line-height: 1.6; transition: color 0.3s; }
.list .e { display: none; font-family: var(--latin); font-size: 14px; letter-spacing: 0.04em; color: var(--sub); padding-left: 12px; line-height: 1.6; white-space: nowrap; }
.list .d { grid-column: 2 / -1; margin-top: 8px; font-size: 13.5px; line-height: 1.95; letter-spacing: 0.07em; color: var(--sub); }
.list a:hover .k, .links a:hover, .news a:hover span, .doors a:hover .k { color: var(--red); }
@container (max-width: 300px) {   /* 列がせまいとき：英語の添え書きは、名前の下へ */
  .list a, .list .row { grid-template-columns: 2.5em 1fr; }
  .list .e { grid-column: 2; padding-left: 0; margin-top: 2px; }
}

/* 実績の数字 */
.figure .cap { display: block; font-size: 13px; letter-spacing: 0.24em; color: var(--sub); line-height: 1.8; }
.figure .nums { display: flex; flex-wrap: wrap; gap: 0 30px; margin-top: 8px; align-items: baseline; }
.figure .nums > span { white-space: nowrap; }
.figure b { font-family: var(--latin); font-weight: 400; font-size: clamp(40px, 3.5vw, 54px); letter-spacing: 0.02em; line-height: 1.25; font-variant-numeric: lining-nums; }
.figure small { font-size: 13px; letter-spacing: 0.16em; margin: 0 0.35em; }
.links, .news, .doors { margin-top: 26px; border-top: 1px solid var(--line); }
.links li, .news li, .doors li { border-bottom: 1px solid var(--line); }
.links a { display: block; padding: 12px 0 11px; font-size: 14px; line-height: 1.8; letter-spacing: 0.08em; transition: color 0.3s; }
.news a { display: grid; grid-template-columns: 5.5em 1fr; align-items: baseline; padding: 14px 0 13px; }
.news time { font-family: var(--latin); font-size: 15px; letter-spacing: 0.06em; color: var(--sub); line-height: 1.6; font-variant-numeric: lining-nums; }
.news span { font-size: 14.5px; line-height: 1.8; letter-spacing: 0.08em; transition: color 0.3s; }
.news i, .links i, address u { font-style: normal; text-decoration: none; display: inline-block; }   /* 題名は、ことばの切れ目でだけ折り返す */
.links b { font-weight: 400; margin: 0 0.35em; color: var(--sub); }
.doors a { display: block; padding: 17px 0 16px; }
.doors .k { display: flex; align-items: center; justify-content: space-between; font-size: 15px; letter-spacing: 0.22em; line-height: 1.6; transition: color 0.3s; }
.doors .k::after { content: ""; width: 30px; height: 1px; background: currentColor; transition: width 0.6s var(--ease); }
.doors a:hover .k::after { width: 48px; }
.doors .d { display: block; margin-top: 6px; font-size: 13px; line-height: 2; letter-spacing: 0.06em; color: var(--sub); }
.body + .doors { margin-top: 28px; }

/* ---- おわり：会場の図面と、会社のこと ---- */
.end { min-height: 100vh; min-height: 100lvh; display: flex; align-items: flex-end; padding: 0 var(--gut) calc(34px + env(safe-area-inset-bottom, 0px)); }
.end::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 270px; background: linear-gradient(0deg, rgba(var(--paper-rgb), 0.98) 0%, rgba(var(--paper-rgb), 0.96) 52%, rgba(var(--paper-rgb), 0.7) 74%, rgba(var(--paper-rgb), 0) 100%); }
.foot { position: relative; width: 100%; pointer-events: auto; }
.insta { font-size: 15px; line-height: 2.3; letter-spacing: 0.14em; }
.insta small { display: block; margin-top: 10px; font-size: 12.5px; letter-spacing: 0.1em; color: var(--sub); }
.cols { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.cols:first-child { margin-top: 0; }   /* 上に何も置かないとき（Instagram の文は外した）は、上の余白なしで、線からはじめる */
address { font-style: normal; display: grid; gap: 4px; font-size: 13.5px; line-height: 2; letter-spacing: 0.1em; }
address b { font-weight: 500; font-size: 14px; letter-spacing: 0.3em; margin-bottom: 8px; }
address b .sep { margin: 0 0.35em 0 0.05em; font-family: var(--latin); font-weight: 400; color: var(--sub); letter-spacing: 0; }   /* 社名「日本文藝 | NIHONBUNGEI」の、区切りの線 */
address b .en { font-family: var(--latin); letter-spacing: 0.16em; }
address > span { display: block; padding-left: 3.6em; text-indent: -3.6em; }
address i { font-style: normal; display: inline-block; width: 3.6em; text-indent: 0; color: var(--sub); }
address u { text-indent: 0; }
.foot nav { display: grid; grid-template-columns: repeat(4, auto); gap: 6px clamp(20px, 2.6vw, 44px); font-size: 13.5px; letter-spacing: 0.18em; line-height: 2; }
.foot nav { flex: none; } .foot nav a { white-space: nowrap; }   /* せまい幅でも、メニューの名前は途中で折り返さない（住所のほうが、切れ目で折り返す） */
.foot nav a, .legal a { position: relative; }
.legal { display: flex; gap: 30px; align-items: center; margin-top: 30px; font-size: 12.5px; letter-spacing: 0.14em; color: var(--sub); line-height: 2; }
.legal span { margin-left: auto; font-family: var(--latin); font-size: 13px; letter-spacing: 0.12em; }

/* ---- 読みこみ中：白い紙に、朱の小さな四角と、進みぐあいの細い線 ---- */
#loader { position: fixed; inset: 0; z-index: 3; background: none; pointer-events: none; padding-left: 26vw; display: grid; place-content: center; justify-items: center; gap: 28px; transition: opacity 1.2s ease 0.15s, visibility 0s linear 1.4s; }
html:not(.js) #loader { display: none; }
.is-ready #loader { opacity: 0; visibility: hidden; }
#loader .sq { width: 13px; height: 13px; background: var(--red); animation: breathe 2.6s ease-in-out infinite; }
#loader .bar { display: block; width: 132px; height: 1px; background: var(--line); }
#loader .bar i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--k, 0)); transition: transform 0.6s ease; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* はじめの登場：言葉は、開いてすぐ静かにあらわれる（会場は、できしだい立ち上がる。読みこみに10秒かかる機械でも、待たせない） */
.js .top, .js .tagline span, .js .lead, .js .cue { opacity: 0; }
.js.is-open .top { opacity: 1; transition: opacity 1.6s ease 0.2s; }
.js.is-open .tagline span { opacity: 1; transform: none; transition: opacity 1.8s ease, transform 1.8s var(--ease); }
.js .tagline span { transform: translateY(10px); }
.js.is-open .tagline span:nth-child(1) { transition-delay: 0.3s; } .js.is-open .tagline span:nth-child(2) { transition-delay: 0.75s; } .js.is-open .tagline span:nth-child(3) { transition-delay: 1.2s; }
.js.is-open .lead { opacity: 1; transition: opacity 1.6s ease 2s; }
.js.is-open .cue { opacity: 1; transition: opacity 1.6s ease 2.6s; }
.js:not(.is-ready) .cue { opacity: 0 !important; }   /* 「Scroll」は、会場ができてから */
html:not(.has-blog) [data-blog] { display: none !important; }   /* メディア：投稿が1件もないあいだは、メニューに出さない（page.js / home.js が has-blog をつける） */

/* 途中から開いたとき：登場の動きをはぶく */
.is-instant .top, .is-instant .tagline span, .is-instant .lead, .is-instant .cue, .is-instant #loader, .is-instant #stage canvas, .is-instant .thread-bar { transition: none !important; }

/* ---- 大きな画面：文字と余白も、画面に合わせて少し大きく（会場ばかりが大きくならないように） ---- */
@media (min-width: 1700px) and (min-aspect-ratio: 1/1) {
  :root { --gut: 7.2vw; --col: min(25vw, 540px); }
  .brand { font-size: 14.5px; } .brand .mark { width: 24px; height: 24px; } .nav { font-size: 14.5px; }
  .tagline { font-size: clamp(30px, 1.75vw, 38px); } .lead { font-size: 15px; } .cue { font-size: 15px; }
  .label .en { font-size: 19px; } .label { margin-bottom: 24px; }
  h2 { font-size: clamp(24px, 1.42vw, 30px); margin-bottom: 32px; }
  .body { font-size: 16.5px; } .more { font-size: 14.5px; margin-top: 36px; }
  .list .k { font-size: 16px; } .list .e { font-size: 15.5px; } .list .d { font-size: 14.5px; } .list a, .list .row { padding: 24px 0 23px; }
  .figure .cap { font-size: 14px; } .figure b { font-size: clamp(54px, 3.3vw, 68px); } .figure small { font-size: 14.5px; }
  .links a { font-size: 15px; padding: 14px 0 13px; } .news time { font-size: 16.5px; } .news span { font-size: 15.5px; } .news a { padding: 17px 0 16px; }
  .doors .k { font-size: 16.5px; } .doors .d { font-size: 14.5px; } .doors a { padding: 20px 0 19px; }
  .insta { font-size: 16px; } address { font-size: 14.5px; } address b { font-size: 15.5px; } .foot nav { font-size: 14.5px; } .legal { font-size: 13px; }
}

/* ---- せまい画面（スマートフォン、縦長）：上に会場、下に言葉 ---- */
@media (max-aspect-ratio: 1/1) and (max-width: 1100px), (max-width: 600px) {
  :root { --gut: clamp(24px, 7vw, 44px); --col: auto; --s: 50vh; --f: 1vh; --side: 0; }
  body { font-size: 14px; }
  /* 「うすい紙」は、会場の下はし（--s。言葉の量に合わせて場面ごとに決まる）から下をおおう */
  .veil {
    inset: 0 0 auto 0; height: 100vh; height: 100lvh;
    --vg: linear-gradient(180deg, rgba(var(--paper-rgb), 0) calc(var(--s) - 7.5 * var(--f)), rgba(var(--paper-rgb), 0.3) calc(var(--s) - 3 * var(--f)), rgba(var(--paper-rgb), 0.62) calc(var(--s) + 0.5 * var(--f)), rgba(var(--paper-rgb), 0.9) calc(var(--s) + 4 * var(--f)), rgb(var(--paper-rgb)) calc(var(--s) + 6.5 * var(--f)));
    background: var(--vg);
  }
  .thread-bar { display: none; }
  .top { padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gut) 22px; }
  .brand { font-size: 13px; gap: 10px; } .brand .mark { width: 20px; height: 20px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .tagline { left: auto; right: var(--gut); top: calc(84px + env(safe-area-inset-top, 0px)); transform: none; font-size: min(5.4vw, 2.9vh, 24px); font-size: min(5.4vw, 2.9svh, 24px); line-height: 2.25; letter-spacing: 0.28em; }
  .js .tagline span { transform: translateY(8px); }
  .tagline span:nth-child(2) { padding-top: 0.9em; } .tagline span:nth-child(3) { padding-top: 1.8em; }
  .lead { left: var(--gut); bottom: auto; top: calc(88px + env(safe-area-inset-top, 0px)); font-size: 13px; letter-spacing: 0.2em; writing-mode: vertical-rl; line-height: 2.2; }
  .cue { right: auto; left: var(--gut); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .cue i { height: 34px; }
  .step .pin { align-items: flex-end; }
  .text { width: auto; flex: 1 1 auto; min-width: 0; max-width: 560px; margin: 0 var(--gut); padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .foot { max-width: 620px; }
  .label { margin-bottom: 10px; } .label .en { font-size: 16px; }
  h2 { font-size: 17.5px; letter-spacing: 0.28em; margin-bottom: 12px; }
  .body { font-size: 14.5px; line-height: 1.95; letter-spacing: 0.07em; word-break: auto-phrase; text-wrap: pretty; }
  .body span { display: inline; }   /* せまい画面では、行数をふやさないように、ふつうに折り返す */
  .more { margin-top: 12px; }
  .list { margin-top: 14px; } .list a, .list .row { padding: 9px 0 8px; } .list .k { font-size: 14.5px; } .list .d { font-size: 12.5px; line-height: 1.75; margin-top: 2px; }
  .figure b { font-size: 38px; } .figure .nums { margin-top: 2px; }
  .links, .news, .doors { margin-top: 14px; } .links a { padding: 8px 0 7px; font-size: 13.5px; } .news a { display: block; padding: 8px 0 7px; } .news time { display: block; font-size: 14px; } .doors a { padding: 11px 0 10px; } .doors .d { font-size: 12.5px; line-height: 1.8; margin-top: 3px; }
  .body + .doors { margin-top: 14px; }
  /* おわり：上に会場の図面を見せてから、会社のことを書いた紙が下からかぶさる */
  .end { padding-top: 40vh; padding-top: 40svh; }
  .end::before { top: 36vh; top: 36svh; height: auto; background: linear-gradient(180deg, rgba(var(--paper-rgb), 0) 0, rgba(var(--paper-rgb), 0.5) 2vh, rgb(var(--paper-rgb)) 4vh); }   /* 図面（上から 35% まで。home.js の end.areaTall）の下から紙がはじまり、会社の欄のはじまり（40svh）までに不透明になる */
  .insta { font-size: 14px; }
  .cols { flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 30px; padding-top: 24px; }
  .foot nav { grid-template-columns: repeat(2, auto); justify-content: start; gap: 0 34px; } .foot nav a { display: block; padding: 7px 0; } .legal a { display: inline-block; padding: 9px 0; }   /* 押しやすく（高さ 約40px） */
  #loader { padding-left: 0; padding-top: 40vh; padding-top: 40svh; }
  .legal { flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; } .legal span { width: 100%; margin: 8px 0 0; }
}
/* 縦のタブレット：文字を少し大きく。会場の左右も、紙の余白へとける */
@media (max-aspect-ratio: 1/1) and (min-width: 601px) and (max-width: 1100px) {
  :root { --gut: clamp(44px, 8vw, 84px); --side: 7; }
  .veil { background: linear-gradient(90deg, rgb(var(--paper-rgb)) 0, rgba(var(--paper-rgb), 0.92) 1.4%, rgba(var(--paper-rgb), 0.55) 4%, rgba(var(--paper-rgb), 0) 7%, rgba(var(--paper-rgb), 0) 93%, rgba(var(--paper-rgb), 0.55) 96%, rgba(var(--paper-rgb), 0.92) 98.6%, rgb(var(--paper-rgb)) 100%), var(--vg); }
  body { font-size: 15px; } .body { font-size: 15.5px; line-height: 2.2; } .body span { display: inline-block; } h2 { font-size: 21px; margin-bottom: 20px; } .label { margin-bottom: 14px; }
  .list { margin-top: 20px; } .list a, .list .row { padding: 13px 0 12px; } .list .d { font-size: 13.5px; line-height: 1.95; } .more { margin-top: 22px; }
  .links, .news, .doors { margin-top: 20px; } .links a { padding: 11px 0 10px; font-size: 14px; } .news a { padding: 11px 0 10px; } .doors a { padding: 15px 0 14px; } .doors .d { font-size: 13px; }
  .tagline { font-size: 26px; } .lead { font-size: 14px; } .text { padding-bottom: 48px; }
}
/* 高さのないスマートフォン */
@media (max-height: 600px) and (max-width: 600px) {
  .body { font-size: 13.5px; line-height: 1.9; } h2 { font-size: 16.5px; margin-bottom: 9px; } .label { margin-bottom: 8px; } .label .en { font-size: 15px; }
  .list a, .list .row { padding: 7px 0 6px; } .list .d { line-height: 1.7; } .more { margin-top: 8px; }
  .links a { padding: 6px 0 5px; } .news a { padding: 6px 0 5px; } .doors a { padding: 8px 0 7px; } .figure b { font-size: 34px; }
  .text { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .lead { font-size: 12px; }   /* 縦に書いた一文が、下の会場に近づきすぎないように */
  /* 言葉の多い場面（実績・お知らせ）で、上の会場がせまくなりすぎないように、一覧の文字と行間を少しだけつめる */
  .news span { font-size: 13.5px; line-height: 1.7; } .news time { font-size: 13px; line-height: 1.5; } .links a { font-size: 13px; line-height: 1.7; } .list .d { font-size: 12px; } .figure .cap { font-size: 12px; }
}

/* 高さのない横長の画面（小さめのノートパソコン）：行間と余白をつめる */
@media (min-width: 601px) and (min-aspect-ratio: 1/1) and (max-height: 740px) {
  .body { font-size: 14.5px; line-height: 2.05; } h2 { font-size: 20px; margin-bottom: 18px; } .label { margin-bottom: 14px; }
  .list { margin-top: 18px; } .list a, .list .row { padding: 9px 0 8px; } .list .d { line-height: 1.7; font-size: 12.5px; }
  .more { margin-top: 18px; } .links, .news, .doors { margin-top: 18px; } .links a { padding: 8px 0 7px; } .news a { padding: 10px 0 9px; } .doors a { padding: 12px 0 11px; }
  .figure b { font-size: 40px; } .step .pin { padding-top: 40px; }
  /* 縦書きの見出し：字間と段差をつめて、同じ高さのまま文字を大きく（23 → 26px）。窓がもっと低いときは、上の帯と下の一文のあいだに収まる大きさまで小さくする（見出しの高さ ≒ 文字の大きさ × 13.9） */
  .tagline { font-size: min(26px, calc((100vh - 240px) / 13.9)); letter-spacing: 0.28em; top: 48%; } .tagline span:nth-child(2) { padding-top: 1.2em; } .tagline span:nth-child(3) { padding-top: 2.4em; }
}

/* とても低い横長の画面（横向きのスマートフォンなど）：言葉をとめずに、そのまま流す */
@media (min-width: 601px) and (max-width: 950px) and (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .step { height: auto; min-height: 150vh; }
  .step .pin { position: static; height: auto; min-height: 100vh; padding: 96px 0 72px; align-items: center; }
  .text { opacity: 1; }
  .top { background: var(--paper); padding-top: 14px; padding-bottom: 12px; } .nav { display: none; } .menu-btn { display: block; }
  .hero { height: 130vh; } .tagline { font-size: 17px; line-height: 2.1; letter-spacing: 0.26em; top: 52%; } .tagline span:nth-child(2) { padding-top: 0.8em; } .tagline span:nth-child(3) { padding-top: 1.6em; }
  .lead { bottom: 14px; font-size: 12.5px; line-height: 2; } .cue { display: none; }
}
/* 幅はあるのに、とても低い窓（パソコンで窓を低くしたとき）：メニューと見出しはそのまま、言葉だけ流す（切れないように） */
@media (min-width: 951px) and (max-height: 500px) {
  .step { height: auto; min-height: 150vh; }
  .step .pin { position: static; height: auto; min-height: 100vh; padding: 96px 0 72px; align-items: center; }
  .text { opacity: 1; }
  .top { background: var(--paper); padding-top: 14px; padding-bottom: 12px; }
  .hero { height: 130vh; } .tagline { font-size: clamp(15px, 4.3vh, 20px); line-height: 2.2; } .lead { bottom: 14px; } .cue { display: none; }
}

/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .cue i::after { transform: translateY(18px); }
}
/* 絵を動かせない環境：はじめの画面に止まった絵を置き、あとは、ふつうの文章として縦に並べる */
.no-gl #stage { position: absolute; }
.no-gl #stage canvas { display: none; }
.no-gl .veil, .no-gl #loader, .no-gl .thread-bar { display: none; }
.no-gl .top, .no-gl .tagline span, .no-gl .lead, .no-gl .cue { opacity: 1; transform: none; }
.no-gl .hero { height: 100vh; height: 100svh; }
.no-gl .step { height: auto; }
.no-gl .step .pin { position: static; height: auto; padding: clamp(56px, 11vh, 120px) 0; }
.no-gl .end { min-height: 0; padding-top: clamp(56px, 11vh, 120px); }
.no-gl .end::before { display: none; }

/* 2026-12-02 〜900px は、メニューをボタン（≡）にする（中くらいの幅でメニューの文字が折れないように） */
@media (max-width: 900px) { .nav { display: none; } .menu-btn { display: block; } }

/* 2026-12-02 持ち主「トップの文字サイズに合わさない？文字がデカいとオシャレじゃない」
   → 下の段（私たちについて・事業内容・実績・お知らせ・お問い合わせ）の文字を、はじめの画面の言葉と同じくらいの大きさに。
   見出し＝はじめの「アートをもっと身近に。」と同じ（パソコン 16px／スマホ 14.5px）、本文はひとまわり小さく */
h2 { font-size: 16px; letter-spacing: 0.24em; line-height: 1.9; margin-bottom: 18px; }
.body { font-size: 13px; line-height: 2.2; letter-spacing: 0.1em; }
.more { font-size: 12px; margin-top: 22px; }
.list .k { font-size: 13.5px; } .list .d { font-size: 12px; } .list a::before, .list .row::before { font-size: 12px; }
.links a { font-size: 13px; } .news time { font-size: 12.5px; } .news span { font-size: 13px; }
.doors .k { font-size: 13.5px; } .doors .d { font-size: 12px; }
@media (max-aspect-ratio: 1/1) and (max-width: 1100px), (max-width: 600px) {
  h2 { font-size: 14.5px; letter-spacing: 0.24em; margin-bottom: 10px; }
  .body { font-size: 12.5px; line-height: 2; letter-spacing: 0.08em; }
  .more { font-size: 12px; margin-top: 10px; }
  .list .k { font-size: 13px; } .list .d { font-size: 11.5px; }
  .links a { font-size: 12.5px; } .news time { font-size: 12px; } .news span { font-size: 12.5px; }
  .doors .k { font-size: 13px; } .doors .d { font-size: 11.5px; }
}