/* 公開中のフォントに無い字を補う（v45。プライバシーポリシーと出典の新しい文の字。2026-11-27） */
@font-face { font-family: "Text Supplement"; font-weight: 400; font-display: swap; src: url("/assets/fonts/text-v45-regular.woff2") format("woff2"); unicode-range: U+307C, U+3080, U+4ED6, U+4F4F, U+542B, U+547D, U+56F2, U+59D4, U+5BFE, U+5F79, U+5F8B, U+690D, U+6D88, U+7523, U+76E3, U+7763, U+7BC4, U+8077, U+82E6, U+8A17, U+8B77, U+8CA1, U+9045, U+969C; }
@font-face { font-family: "Text Supplement"; font-weight: 500; font-display: swap; src: url("/assets/fonts/text-v45-medium.woff2") format("woff2"); unicode-range: U+307C, U+3080, U+4ED6, U+4F4F, U+542B, U+547D, U+56F2, U+59D4, U+5BFE, U+5F79, U+5F8B, U+690D, U+6D88, U+7523, U+76E3, U+7763, U+7BC4, U+8077, U+82E6, U+8A17, U+8B77, U+8CA1, U+9045, U+969C; }
/* MEIJI DESIGN ─ 色・字・余白は下の変数のみを使う（名刺の色に合わせた） */
@font-face { font-family: "Gen Interface JP"; font-weight: 400; font-display: swap; src: local("Gen Interface JP"), local("GenInterfaceJP-Regular"), url("../fonts/GenInterfaceJP-Regular.woff2") format("woff2"); }
@font-face { font-family: "Gen Interface JP"; font-weight: 500; font-display: swap; src: local("Gen Interface JP Medium"), local("GenInterfaceJP-Medium"), url("../fonts/GenInterfaceJP-Medium.woff2") format("woff2"); }
@font-face { font-family: "Gen Interface JP"; font-weight: 300; font-display: swap; src: local("Gen Interface JP Light"), local("GenInterfaceJP-Light"), url("../fonts/GenInterfaceJP-Light.woff2") format("woff2"); }
/* ルビ（MEIJI）と語源の見出し語（design）用の太い字。英字と「-」のみ */
@font-face { font-family: "Gen Interface JP"; font-weight: 600; font-display: swap; unicode-range: U+002D, U+0041-005A, U+0061-007A; src: local("Gen Interface JP SemiBold"), local("GenInterfaceJP-SemiBold"), url("../fonts/GenInterfaceJP-SemiBold-Latin.woff2") format("woff2"); }

:root {
  --paper: #f0f0f0;      /* 名刺の表の地（K6） */
  --paper-2: #e7e7e9;    /* 名刺の透かし */
  --ink: #1c1c1e;
  --ink-2: #5e5e62;      /* 名刺の連絡先（K62） */
  --ink-3: #9c9c9c;      /* ロゴの灰 */
  --logo-gray: #9c9c9c;   /* 本人指定：明暗とも正規ロゴのグレーを維持する（2026-11-16）。 */
  --red: #bc002d;       /* ロゴの赤（日の丸） */
  --red-deep: #a30027;   /* 赤のボタンに乗せた時 */
  --red-ink: var(--red);  /* 赤の字・線。ダークは地との差を 4.5:1 以上にするため明るくする（ロゴ・ボタン・日の丸の面は --red のまま） */
  --on-red: #ffffff;
  /* X のロゴとユーザー名の色。X の決まりで黒か白のみのため、パレットの墨（--ink）とは別に持つ */
  --x-ink: #000000;
  --altar: #2a211c;
  --sumi: #121212;
  --on-sumi: #ececec;
  --on-sumi-2: #8e8e92;
  /* 舞台＝映像の地と、その上の字。ライトは映像のライト版（紙の地に墨の線）と同じ色、ダークは墨の地に白 */
  --stage: var(--paper); --on-stage: var(--ink); --on-stage-2: var(--ink-2);

  --sans: "Text Supplement", "Gen Interface JP", "Noto Sans JP", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px; --s10: 192px;
  /* 節の上下の余白（節と節の間はこの 2 倍）と、節の題から中身までの間。幅が狭いほど詰め、次の節の題が同じ画面に入るようにする */
  --sec-y: var(--s8); --sec-in: var(--s8); --band-y: var(--s9);
  --gutter: clamp(16px, 5vw, 64px);
  --header-height: 96px;
  /* 全部の節の字の始まる線：幅 1440px の枠の左端＋余白。画面いっぱいの帯（ヘッダー・お問い合わせ・フッター）も、中の字はこの線から始める */
  --edge: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #121212; --paper-2: #1a1a1c; --ink: #ececec; --ink-2: #a3a3a6; --ink-3: #6e6e72; --red-ink: #ff4c76; --stage: var(--sumi); --on-stage: var(--on-sumi); --on-stage-2: var(--on-sumi-2); --x-ink: #ffffff; }
}
:root[data-theme="dark"] { --paper: #121212; --paper-2: #1a1a1c; --ink: #ececec; --ink-2: #a3a3a6; --ink-3: #6e6e72; --red-ink: #ff4c76; --stage: var(--sumi); --on-stage: var(--on-sumi); --on-stage-2: var(--on-sumi-2); --x-ink: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; scrollbar-width: none; }
/* スクロールバーは出さない（2026-11-15 Mayankさんの指示） */
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 2; letter-spacing: 0; font-kerning: normal; text-spacing-trim: space-all; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s3); top: -64px; z-index: 100; padding: var(--s2) var(--s3); background: var(--ink); color: var(--paper); }
.skip:focus { top: var(--s3); }

/* ── 読み込み中（ヒーローと同じ舞台の地に、ロゴと Loading。読み終わったらフェードで外す） ── */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); background: var(--stage); color: var(--on-stage-2); transition: opacity .8s var(--ease), visibility 0s linear .8s; }
html:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loading { overflow: hidden; }
/* 部品どうしの継ぎ目に地が透けないよう、ヒーローと同じく同じ色の細い線を重ねる */
.loader__mark { width: 64px; height: 64px; }
.loader__mark path { fill: var(--logo-gray); stroke: var(--logo-gray); stroke-width: .16; stroke-linejoin: round; }
.loader__mark .is-red { fill: var(--red); stroke: var(--red); }
/* 小文字の語は字間を開けない。最後の字の後ろに字間が付かないよう 0 にして、字の左右の端の中心をロゴの中心にそろえる。
   前は濃さの重心をそろえるため左へ0.14em 寄せていたが、端の中心がロゴより2.12px 左に見えたため外した（本人の指示、2026-11-24） */
.loader__text { font-size: 16px; font-weight: 400; line-height: 1.5; }
.loader__text .last, .contact__title .rt .last { letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .loader { transition: opacity .2s linear, visibility 0s linear .2s; }
}

/* ロゴ（名刺と同じ灰と赤） */
/* SVG は既定で viewBox の外を切る。ロゴの viewBox はインクとちょうど同じ大きさ（フッター・読み込み中のマーク）なので、
   縁の画素が切れないよう外を切らない。箱の大きさと位置は変わらない */
.combo, .loader__mark { overflow: visible; }
.combo .is-gray { fill: var(--logo-gray); }
.mark .mk { fill: var(--logo-gray); }
.combo .is-red, .mark .mk.is-red { fill: var(--red); }

/* ── ヘッダー ── */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: var(--s4); height: var(--header-height); padding: var(--s5) var(--edge) 0; color: var(--on-stage); transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.site-head.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-head { transition: background-color .4s var(--ease), color .4s var(--ease); } }
.site-head.is-paper { background: var(--paper); color: var(--ink); }   /* 透かすと、後ろの赤い半円や見出しがにじんで見えるため、地は不透明にする */
.site-logo { display: block; width: 168px; }
.site-logo .combo { width: 100%; height: auto; }
.site-head:not(.is-paper) .combo .is-gray { fill: var(--logo-gray); }
.site-head { --head-logo-w: 192px; }
.site-head .site-logo { width: var(--head-logo-w); }
.site-nav { grid-column: 2; justify-self: center; }
.site-nav ul { display: flex; align-items: center; gap: var(--s5); }
.site-nav a { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); text-decoration: none; line-height: 1.5; }
.site-nav .en { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1; text-box-trim: trim-start; text-box-edge: cap alphabetic; }
.site-nav .ja { font-size: 16px; opacity: .64; letter-spacing: 0; }
.site-nav a:hover .en { color: var(--red-ink); }
/* 英語の頁は、メニューが英字1行になる。英字は大文字の上端から字の下端までを箱にし、その真ん中をロゴの真ん中にそろえる。
   ロゴの箱の高さは、幅に縦横の比（viewBox 500×80）を掛けて出す。墨は箱の上下に同じ余白を持つため、箱と墨は真ん中が同じになる。
   日本語の頁は英字と和字を2行に組み、英字の上端をロゴの上端にそろえたままとする（2026-11-16）。本人の指示（2026-11-24）による */
.site-nav a:not(:has(.ja)) { justify-content: center; min-height: calc(var(--head-logo-w) * 80 / 500); }
.site-nav a:not(:has(.ja)) .en { text-box-trim: trim-both; }
.site-tools { grid-column: 3; justify-self: end; display: flex; align-items: flex-start; gap: var(--s4); }
.language-picker { position: relative; font-size: 16px; line-height: 1.5; }
/* 字（大文字・漢字の高さ＝cap から字の下端まで）と矢印の真ん中を、明暗の切り替え（高さ 28px）の真ん中にそろえる。
   切り替えの上端はロゴの上端にそろえたまま（DECISIONS.md 2026-11-16「輪郭上端を揃え」）。英字の g の下の出は真ん中の計算に入れない */
.language-picker summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); min-height: 28px; cursor: pointer; list-style: none; }
.language-picker summary > span { line-height: 1; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.language-picker summary::-webkit-details-marker { display: none; }
/* 矢印は 12px の箱の真ん中に描く（枠線を 45 度回す形は、見える形の真ん中が箱の真ん中から下へずれるため使わない） */
.language-picker summary::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 6 8 10 4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 6 8 10 4' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.language-picker[open] summary::after { transform: rotate(180deg); }
.language-picker__options { position: absolute; top: calc(100% + var(--s3)); right: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s1); min-width: 144px; padding: var(--s2); background: var(--paper); color: var(--ink); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 16%, transparent); }
.language-picker__options a { padding: var(--s2); text-decoration: none; }
.language-picker a[aria-current="true"], .language-links a[aria-current="true"] { color: var(--red-ink); text-decoration: underline; text-underline-offset: .25em; }
.language-picker a:hover, .language-links a:hover { color: var(--red-ink); }
.language-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: var(--s4); font-size: 16px; line-height: 1.5; }
.language-links a { min-height: 40px; display: inline-flex; align-items: center; justify-content: flex-start; text-decoration: none; }
.nojs-navigation { display: none; }
html:not(.js) .theme-btn, html:not(.js) .menu-btn { display: none; }
.theme-btn { position: relative; display: flex; align-items: center; justify-content: space-between; width: 56px; height: 28px; padding: 0 var(--s2); border-radius: 14px; background: color-mix(in srgb, currentColor 16%, transparent); }
.theme-btn__knob { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: currentColor; transition: transform .3s var(--ease); }
.theme-btn[aria-pressed="true"] .theme-btn__knob { transform: translateX(28px); }
.theme-btn__ic { position: relative; width: 12px; height: 12px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; opacity: .48; transition: opacity .3s var(--ease); }
.theme-btn__moon { fill: currentColor; stroke: none; }
.theme-btn[aria-pressed="false"] .theme-btn__sun { opacity: 1; stroke: var(--knob-ink); }
.theme-btn[aria-pressed="true"] .theme-btn__moon { opacity: 1; fill: var(--knob-ink); }
.site-head { --knob-ink: var(--stage); }
.site-head.is-paper { --knob-ink: var(--paper); }
.menu-btn { display: none; position: relative; width: 48px; height: 48px; margin-right: calc(var(--s3) * -1); }
.menu-btn__bar { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn__bar:nth-child(1) { top: 20px; }
.menu-btn__bar:nth-child(2) { top: 28px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
[hidden] { display: none !important; }
.menu { position: fixed; inset: var(--header-height) 0 0; z-index: 40; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s6); overflow-y: auto; overscroll-behavior: contain; padding: var(--s5) var(--edge) max(var(--s5), env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); }
.menu__language { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s2); }
.menu__language > p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.menu ul { display: flex; flex-direction: column; gap: var(--s4); }
.menu a { display: flex; align-items: baseline; gap: var(--s3); text-decoration: none; }
.menu .en { font-size: 32px; font-weight: 300; letter-spacing: 0; line-height: 1.25; }
.menu .ja { font-size: 16px; color: var(--ink-2); }
@media (max-width: 1200px) {
  .site-nav, .language-picker { display: none; }
  .menu-btn { display: block; }
  .site-logo { width: 144px; }
  :root { --header-height: 88px; }
  .site-head { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); padding-top: var(--s4); }
  .site-head .site-logo { width: 160px; }
  .site-tools { grid-column: 2; align-items: flex-start; }
  .menu-btn__bar:nth-child(1) { top: 8px; }
  .menu-btn__bar:nth-child(2) { top: 16px; }
  .nojs-navigation { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s4); padding: calc(var(--header-height) + var(--s4)) var(--edge) var(--s4); }
  .nojs-navigation ul { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: var(--s3) var(--s4); }
  .nojs-navigation li a { display: flex; align-items: baseline; justify-content: flex-start; gap: var(--s2); }
  .nojs-navigation .ja { color: var(--ink-2); }
  html:not(.js) .hero { padding-top: var(--s4); }
}
@media (orientation: landscape) and (max-height: 560px) {
  .menu { gap: var(--s4); padding-top: var(--s3); }
  .menu > ul { gap: var(--s3); }
}

/* ── ヒーロー ── */
/* --stage-film は hero.js が映像の隅から読んで入れる、端末が映像の地を描いた色（yuv の丸めで地の色と 1〜2 段ずれるため） */
.hero { --hero-scroll-height: 80px; --hero-content-gap: var(--s6); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: var(--header-height) 0 var(--s5); height: auto; min-height: 100vh; min-height: 100svh; background: var(--stage-film, var(--stage)); color: var(--on-stage); }
.hero__content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); width: 100%; }
/* --edgeの百分率はhero全幅を基準にし、映像の左右をヘッダーの内側へそろえる。 */
.hero__frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); flex: none; width: calc(100% - var(--edge) * 2); }
/* 実際に選んだ映像に要素の比率を合わせる。横版は8:3、縦画面向けの版は4:3。
   未完成の縦版へ切り替えないため、画面幅だけでは比率を変えない。
   画面の高さへ押し込めず、幅を使って見せ、必要な高さは縦スクロールで確保する。 */
.hero__video { grid-area: 1 / 1; display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; object-fit: contain; background: var(--stage-film, var(--stage)); }
.hero__video[data-layout="portrait"] { aspect-ratio: 4 / 3; }
.hero__poster { aspect-ratio: auto 8 / 3; }
@media (max-width: 1200px) and (orientation: portrait) {
  .hero__poster[data-mobile-ready="true"] { aspect-ratio: auto 4 / 3; }
}
html:not(.js) .hero__frame > video { display: none; }
html:not(.js) .hero__frame > noscript, html:not(.js) .hero__frame > noscript picture { display: contents; }
#altar { opacity: 0; }
#altar { fill: var(--altar); }
/* 部品どうしの継ぎ目に背景が透けないよう、同じ色の細い線を重ねる */
.hero .mark .mk { fill: var(--logo-gray); stroke: var(--logo-gray); stroke-width: .16; stroke-linejoin: round; }
.hero .mark .mk.is-red { fill: var(--red); stroke: var(--red); }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: 0 var(--gutter); text-align: center; pointer-events: none; }
.hero__ja { font-size: clamp(20px, 2.6vw, 32px); font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.hero__ja > span { display: inline-block; white-space: nowrap; }
.hero__en { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--on-stage-2); line-height: 1.5; }
.hero__ja > span, .hero__en { opacity: 0; transition: opacity .8s var(--ease); }
/* 頭のロゴの場面で、キャッチコピーを 1 行ずつ出す（hero.js が is-ended を付け、その後は外さない。2026-11-19 案1） */
.hero.is-ended .hero__ja .w1 { opacity: 1; transition-delay: .4s; }
.hero.is-ended .hero__ja .w2 { opacity: 1; transition-delay: .8s; }
.hero.is-ended .hero__en { opacity: 1; transition-delay: 1.2s; }
/* 事業を表す一文（2026-11-25 C1 の案1）。キャッチコピーの組（間16px）と別の組に見えるよう、上を計32px 空ける。字は本文の大きさ（16px）で主の色。英文の後に出す。読み上げは h1 の後の .sr が受け持つ */
.hero__biz { margin-top: var(--s3); font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--on-stage); text-wrap: balance; opacity: 0; transition: opacity .8s var(--ease); }
.hero.is-ended .hero__biz { opacity: 1; transition-delay: 1.6s; }
@media (max-width: 1200px) and (orientation: portrait) { .hero__biz { opacity: 1; transition: none; } }
.hero__down { position: sticky; bottom: 0; z-index: 35; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); width: 100%; height: var(--hero-scroll-height); margin-top: 0; padding: var(--s3) 0 var(--s2); font-size: 16px; letter-spacing: 0; color: var(--on-stage-2); background: transparent; text-decoration: none; line-height: 1.5; }
/* 高さが足りない画面では映像・コピーの外側に案内を逃がす。スクロール位置では切り替えない。 */
.hero.is-scroll-side .hero__down, html:not(.js) .hero__down { width: var(--edge); align-self: flex-start; bottom: var(--s3); padding: 0; }
.hero.is-scroll-side .hero__down > span, html:not(.js) .hero__down > span { writing-mode: vertical-rl; line-height: 1; }
/* 映像とキャッチコピーのまとまりを、ヘッダーと Scroll に挟まれた所の上下中央に置く（2026-11-19 案1） */
.hero__content { margin-top: auto; margin-bottom: auto; }
/* Scroll を左の余白へ移す画面は、今までどおり上に寄せ、下を --hero-content-gap 空ける（hero.js もこの値で収まりを数える） */
.hero.is-scroll-side .hero__content { margin-top: 0; margin-bottom: var(--hero-content-gap); }
.hero__down::after { content: ""; width: 1px; height: 24px; background: var(--on-stage-2); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 縦画面では下へ進めることが自然に分かる長さにし、Scroll 用の画面高・余白を予約しない。 */
@media (max-width: 1200px) and (orientation: portrait) {
  .hero { --hero-scroll-height: 0px; min-height: 0; }
  .hero__content, .hero.is-scroll-side .hero__content { margin-top: 0; margin-bottom: 0; }
  .hero__down { display: none; }
  /* 縦画面は映像の直下へキャッチコピーを常時表示し、終盤を待つ空白を作らない。 */
  .hero__ja > span, .hero__en { opacity: 1; transition: none; }
}


@media (max-width: 600px) {
  .hero__ja > span { display: block; }
}

/* ── 共通の節 ── */
/* 字の大きさの下限は本文の 16px（2026-11-15 Mayankさん「右の本文が最低ラインです。それ以上小さい文字は入れないでください」）。
   字詰めのために縮める .kt（読点）と .nm2（ェ）は、字の大きさではなく字形の調整なので除く
   16px は本文と同じ大きさなので、和文と小文字の英語はベタ（字間 0）で組む。大文字だけの語（.caps）のみ 60/1000 em 開ける（字詰めの決まり 1・4 節） */
.sec { padding: var(--sec-y) var(--gutter); max-width: 1440px; margin: 0 auto; }
@media (max-width: 960px) { :root { --sec-y: var(--s7); --sec-in: var(--s7); --band-y: var(--s8); } }
@media (max-width: 600px) { :root { --sec-y: var(--s6); --sec-in: var(--s6); --band-y: var(--s7); } }
.eyebrow { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s4); line-height: 1.5; }
.eyebrow .en { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--red-ink); }
.eyebrow .ja { font-size: 16px; letter-spacing: 0; color: var(--ink-2); }
/* 節の見出しは、全部の節で同じ大きさ。1 行目の最長（「デザインとシステム開発を、」13 字）が幅 360px 以上の画面で 1 行に収まる値にし、
   背の低い横向きの画面では高さでも抑える。改行は <br> と、.u（意味のまとまり）の間でのみ起こす */
.sec__title, .concept__title, .contact__title, .horizon h2 { font-weight: 500; font-size: clamp(24px, min(6.6vw, 9svh), 64px); line-height: 1.5; letter-spacing: 0; text-wrap: balance; word-break: auto-phrase; }
/* 意味のまとまり：中では改行させず、入りきらない時にまとまりの間で改行する（まとまりが行より長い時に限り、中で改行する） */
.u { display: inline-block; }
.nw { white-space: nowrap; }   /* 数字と単位・番号・日付を行で分けない */
/* 本文：まとまりより行が短い時も、言葉の切れ目で折り返し、最後の行を 1〜2 字にしない */
main p { word-break: auto-phrase; text-wrap: pretty; }
.js-lines .ln { display: block; overflow: hidden; }
.js-lines .ln > span { display: block; }
/* ルビ（「MEIJI」に「明示」）：親文字の 0.42 倍・一段太い字で、親文字から離して置く。英大文字の字間は 60/1000 em（名刺の MEIJI DESIGN と同じ） */
/* ルビ：ruby 要素の置き方は Chrome と Safari で違う（Safari が親字の 0.156 倍ほど離し、rt の位置指定も受け付けない）ため、span で組んで自分で置く。
   ルビの字は親字の0.42倍で、12px より小さくしない。ページの一番小さい字は本文の16px だが、このルビは例外とする
   （本人の承認、2026-11-21。幅390px で下限の16px に当たり、親字の0.62倍と大きかった。12px で0.47倍になる）。
   ルビと親字のインクの間はルビの字の 0.4 倍（2026-11-18 本人が案 B を採用）。ルビの箱を字の形（大文字の上端から字の下端）に切り詰め（text-box-trim）、
   親字の側は字の箱の上端ではなく字の形の上端から測る（bottom: 91% ＝ 字の箱の上端から「明」「示」の形の上端までが字の大きさの約 0.09。bearing.py で測った値）。
   行の上の空け（padding-top）は変えず、上の行とルビの間はルビと親字の間より広く保つ。字の色は赤の字（--red-ink。2026-11-18 本人の指定） */
.contact__title { --rt: max(12px, .42em); line-height: 1; }
.contact__title .rb { position: relative; display: inline-block; line-height: 1; }
.contact__title .rt { position: absolute; left: 50%; bottom: 91%; transform: translateX(-50%); margin-bottom: .4em; font-size: var(--rt); font-weight: 600; line-height: 1; letter-spacing: .06em; white-space: nowrap; color: var(--red-ink); text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.js-lines .ln:has(.rb) { padding-top: calc(var(--rt) * 1.39 + 6px); }  /* ルビの箱と余白の分だけ、行の上を空ける */

/* 考え方 */
.concept { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s4); }
.concept .eyebrow, .concept__title { grid-column: 1 / -1; }
.etym { grid-column: 1 / 8; min-width: 0; container-type: inline-size; margin-top: var(--sec-in); display: flex; flex-direction: column; gap: var(--s6); }
/* 見出し語：上に言語の名、下に語。スクロールに合わせて、ラテン語の de- と signare が寄って designare になり、
   古フランス語の designer、英語の design へ変わる（main.js）。最長の語尾と分離中の移動幅を常に確保する。
   動きの無い時（動きを減らす設定）は最後の姿のみを見せる */
.etym__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.etym__lang { display: grid; margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.etym__lang > span { grid-area: 1 / 1; }
.etym__lang > span:not(:last-child) { opacity: 0; }
/* 辞書の見出し語と同じく太字（SemiBold）で組む。大きな字なので字間を 1% 詰める */
.etym__word { display: flex; align-items: baseline; justify-content: flex-start; width: max-content; padding-right: .5em; margin: 0; font-size: clamp(32px, 10vw, 72px); font-size: min(152px, 18cqi); font-weight: 600; letter-spacing: -.01em; line-height: 1; font-kerning: normal; white-space: nowrap; }
.etym__word > span { flex: none; }
.etym__de { position: relative; color: var(--red-ink); }
.etym__hy { position: absolute; left: 100%; top: 0; opacity: 0; }
.etym__sign { position: relative; display: inline-flex; align-items: baseline; justify-content: flex-start; }
.etym__tail { display: inline-grid; width: max-content; white-space: nowrap; color: var(--ink-3); }
.etym__tail > span { grid-area: 1 / 1; opacity: 0; }
/* 辞書の項目：【語源】【原義】の項目名に続けて中身を組む。罫線は引かず、行の間で分ける。字は本文と同じ 16px を下限にする */
.etym__entry { display: flex; flex-direction: column; gap: var(--s2); margin: 0; font-size: 16px; line-height: 1.75; }
.etym__row { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; column-gap: var(--s3); }
.etym__row dt { color: var(--ink-2); font-feature-settings: "halt"; }   /* 【】は半角の幅で組み、項目名の頭を見出し語の左端にそろえる */
.etym__row dd { margin: 0; min-width: 0; }
.etym__row b { font-weight: 500; }
.etym__step:not(:first-child) { white-space: nowrap; }
.etym__means { display: flex; flex-wrap: wrap; column-gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.etym__means li { white-space: nowrap; }
/* 原義の番号は数字で組む。丸囲み数字は環境によって伝わりにくい字のため使わない（2026-11-27） */
.etym__no { margin-right: var(--s1); color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.concept__body { grid-column: 8 / -1; min-width: 0; margin-top: var(--sec-in); align-self: end; display: flex; flex-direction: column; gap: var(--s4); color: var(--ink-2); }
@media (max-width: 960px) {
  .etym, .concept__body { grid-column: 1 / -1; }
  .concept__body { margin-top: var(--s7); }
  .etym__row, .etym__means { column-gap: var(--s2); }
}


/* 辞書上の語義と事業の解釈を分け、対応関係が見えるまで短く留める。 */
.concept__meaning { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); padding: var(--s6) 0; margin-top: var(--sec-in); background: var(--paper); }
.concept__meaning-label { color: var(--ink-2); font-size: clamp(20px, 2vw, 24px); line-height: 1.5; text-align: center; }
.concept__meaning-note { width: 100%; max-width: 32em; color: var(--ink-2); font-size: 16px; line-height: 1.5; text-align: center; }
.concept__equation { display: grid; grid-template-columns: max-content max-content max-content; align-items: center; gap: var(--s4); width: max-content; max-width: 100%; font-size: clamp(32px, 6vw, 88px); font-weight: 500; line-height: 1.5; }
.concept__equation > span { white-space: nowrap; }
.concept__equation > span:first-child { justify-self: end; }
.concept__approx { justify-self: center; }
.concept__defined { display: flex; flex-wrap: wrap; justify-self: start; align-content: center; width: max-content; max-width: 8em; white-space: normal; color: var(--ink); }
.concept__phrase { white-space: nowrap; }
/* 狭い幅では、解釈の句を grid の行として積む。折り返しで箱の右に空きが残らず、式は字のまとまりの幅で中央に置かれる。
   日本語の積んだ句は左端でそろえ、「明」と「示」を縦に並べる（2026-11-21、本人「左揃えのほうが「明」「示」が綺麗に縦に並んでいい」）。
   項の間は16pxにし、字を大きくした式を幅320pxの画面に収める。 */
@media (max-width: 600px) {
  .concept__equation { gap: var(--s3); }
  .concept__defined { display: grid; justify-items: start; max-width: none; }
}
.concept__key { color: var(--red-ink); }
.concept__explanation { grid-column: 1 / -1; justify-self: center; display: flex; flex-direction: column; gap: var(--s4); width: 100%; max-width: 32em; color: var(--ink-2); text-align: center; }

/* 水平線 */
/* 水平線の節は画面に止め（main.js でピン留め）、上の半分のみ見えている所から、水平線の下の半分（赤）が現れながら大きくなる。
   字はほかの節と同じ枠・同じ始まりの線・同じ見出しの大きさで上に置き、水平線と太陽は、その下の残りの高さ（舞台）の中に置く。
   舞台は字の下にあるので、どの画面でも太陽が字にかからない */
.horizon { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; background: var(--paper); color: var(--ink); overflow: hidden; }
.horizon__sky { position: absolute; inset: -20% 0 0; background: var(--paper); }
.horizon__copy { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: var(--sec-y) var(--gutter) 0; display: flex; flex-direction: column; gap: var(--s5); }
.horizon__copy p { color: var(--ink-2); max-width: 592px; }
/* 本文は、太陽・イメージ・MEIJI DESIGN の 3 段に分ける。段の間は考え方の節の本文と同じ 24px で、見出しとの間（32px）より狭い */
.horizon__body { display: flex; flex-direction: column; gap: var(--s4); }
/* 舞台：水平線は舞台の高さの真ん中。太陽の直径は舞台の高さと幅から決め、上下の半分とも舞台に収める */
.horizon__stage { --sun: min(88cqh, 72cqw, 560px); --sun-x: 50%; position: relative; flex: 1 1 0; min-height: 0; container-type: size; }
@media (min-width: 961px) { .horizon__stage { --sun: min(88cqh, 36cqw, 560px); --sun-x: 68%; } }
/* 背の低い横向きの画面：字の下に舞台を取ると太陽が小さくなるため、字を左、舞台を右に並べる。字の始まる線はほかの節と同じ */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 960px) {
  .horizon { flex-direction: row; }
  .horizon__copy { flex: 0 0 56%; width: auto; margin: 0; padding: var(--sec-y) 0 0 var(--edge); }
  .horizon__stage { --sun: min(80cqh, 80cqw); --sun-x: 50%; }
}
.horizon__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink-3); }
.horizon__sun { position: absolute; left: var(--sun-x); top: 50%; width: var(--sun); height: calc(var(--sun) / 2); margin-left: calc(var(--sun) / -2); border-radius: 0 0 calc(var(--sun) / 2) calc(var(--sun) / 2); background: var(--red); transform-origin: top center; }
.horizon__sun-top { position: absolute; left: var(--sun-x); top: calc(50% - var(--sun) / 2); width: var(--sun); height: calc(var(--sun) / 2); margin-left: calc(var(--sun) / -2); border-radius: calc(var(--sun) / 2) calc(var(--sun) / 2) 0 0; background: var(--red); opacity: .2; transform-origin: bottom center; }

/* 仕事 */
/* 1 つの仕事を 1 つの横の行にする。左に番号と名前、右に説明と内容。視線は左から右、上から下へ 1 度ずつ動く */
.service__list { margin-top: var(--sec-in); }
.service__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s4) var(--s6); padding: var(--s6) 0; }
.service__head { display: flex; align-items: baseline; gap: var(--s3); }
.service__no { font-size: 16px; letter-spacing: 0; color: var(--red-ink); line-height: 1.5; font-feature-settings: "tnum"; }
.service__item h3 { font-size: 24px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.service__body { display: flex; flex-direction: column; gap: var(--s4); max-width: 40em; }
.service__lead { font-size: 18px; line-height: 1.8; text-wrap: pretty; word-break: auto-phrase; }
/* 内容の一覧は「/」で区切って 1 つの流れに並べる。同じ幅のマスに長さの違う語を入れると、長い項目だけが折れて項目の間の白が不ぞろいになるため（2026-11-18 本人「これもひどくね？」「/ で区切るほうがコンパクトでしょ」）。
   項目は丸ごと次の行へ送り、語の途中で折らない（1 行に入らない長い項目のみ、項目の中の句の切れ目で折る）。
   「/」は前の項目の後ろに付け、行の頭に置かない。読み上げでは読まない（content の代わりの文を空にする）。 */
.service__deliv { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.service__deliv li { max-width: 100%; white-space: normal; word-break: auto-phrase; text-wrap: pretty; }
.service__deliv li:not(:last-child)::after { content: "/"; content: "/" / ""; padding-inline: var(--s2); color: var(--ink-3); }
/* 項目の終わりの「）」は半角の幅にする。全角のままでは「）」の後ろの二分の空きに「/」の前の空きが足され、ほかの項目より「/」が離れて見えるため */
.service__deliv .u:last-child { font-feature-settings: "halt"; }
/* 半角にしても「）」の字の形の右に約 3px の白が残るため、その項目の後ろの「/」の前の空きを 4px にして、ほかの項目と見える空きをそろえる */
.service__deliv li:has(> .u:last-child)::after { padding-left: var(--s1); }
/* 名刺・印刷物の注記は、一覧と1つの塊にして一覧の近くに置く（一覧→注記は8px、説明の文→塊は24px）。
   印（※・*）は文と別の列に置き、2行目以降の頭を文の頭にそろえる。印は読み上げない（2026-11-19）。 */
.service__deliv-group { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s2); }
.service__note { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; justify-content: start; column-gap: var(--s1); font-size: 16px; line-height: 1.75; color: var(--ink-2); }
@media (max-width: 720px) {
  .service__item { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s5) 0; }
  .service__lead { font-size: 16px; }
}

/* 実績 */
/* 実績は仕事の節と同じ作り（service__item）に、分類と依頼主の表を足す。表の字は仕事の内容の一覧（16px）とそろえ、項目名は出典の頁と同じく薄い字 */
.works__heading { display: flex; flex-direction: column; gap: var(--s5); }
.works__heading .service__head { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.works__logos { display: flex; align-items: center; justify-content: center; gap: var(--s4); }
.works__client { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.works__client .works__logos { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); width: 70%; }
.works__client-name { font-size: 16px; line-height: 1.5; text-align: center; }
.works__logos img { display: block; width: 100%; height: auto; object-fit: contain; }
/* ロゴの可視部分でタイトル欄の70%を使う。原PNGの透明余白のみ表示枠で除き、図は変更しない。
   黒のalpha境界は(124,50)-(1292,634)、白は(125,50)-(1292,634)、元寸法は1334×667。
   表示枠はインクとちょうど同じ大きさなので、枠で切ると縮小のにじみと画素への丸めで縁が 1〜2 画素切れる。枠では切らない（枠の外へ出るのは透明の余白のみ）。 */
.works__logos--taxtas { position: relative; align-self: center; width: 70%; aspect-ratio: 1167 / 584; overflow: visible; }
.works__logos--taxtas img { --ink-width: 1168; --ink-center-x: 708; position: absolute; left: 50%; top: 50%; width: calc(100% * 1334 / var(--ink-width)); max-width: none; height: auto; transform: translate(calc(-100% * var(--ink-center-x) / 1334), calc(-100% * 342 / 667)); }
.works__logos--taxtas .works__logo-dark { --ink-width: 1167; --ink-center-x: 708.5; }
.works__logos .works__logo-dark { display: none; }
:root[data-theme="dark"] .works__logo-light { display: none; }
:root[data-theme="dark"] .works__logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .works__logo-light { display: none; } :root:not([data-theme="light"]) .works__logo-dark { display: block; } }
.works__features { display: flex; flex-direction: column; gap: var(--s3); padding-left: 1.25em; list-style: disc; }
/* 掲出先の箇条。行送りを 1.5 に詰め、項の中の行（事業者と媒体、掲出した線と直通運転先）より項の間（8px）を広くして、空白の行を置かずに項の区切りを示す。 */
.works__features--tight { gap: var(--s2); line-height: 1.5; }
/* 実績01の機能の箇条は、項目名を1行目に、説明の文を次の行に置く（2026-11-21に本人が示した【主な機能】の形）。
   項目名と説明の間（4px）より、項の間（16px）を広くする */
.works__feature-name { display: block; margin-bottom: var(--s1); font-weight: 500; color: var(--ink); }
.works__feature-text { display: block; }
/* 実績01・02の本文と機能の箇条は、句ごとにくるまず、日本語の本文で普通に使う組み方（字の単位で折る）にする。
   句ごとに折ると右端がそろわず、不自然に見えたため（本人の2026-11-20の文「なんでこんなバラバラに改行してるわけ？」）。
   行頭の小書きの仮名・長音は strict で避け、数字と単位の組は .nw で行を分けない。段落の間は16px、本文と一覧の間は .service__body の24px。 */
.works__text { display: flex; flex-direction: column; gap: var(--s3); }
.works .works__text .service__lead, .works .works__features--flow li { word-break: normal; overflow-wrap: normal; line-break: strict; text-wrap: pretty; }
.works__place, .works__route { display: block; }
.works__route { color: var(--ink-2); }
@media (max-width: 960px) { .works .service__item { grid-template-columns: 1fr; gap: var(--s4); } }
.works__meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; column-gap: var(--s4); row-gap: var(--s1); font-size: 16px; line-height: 1.5; }
.works__meta dt, .works__meta dd { margin: 0; }
.works__meta dt { color: var(--ink-2); }
.works__meta dd { color: var(--ink); word-break: auto-phrase; }

/* 概要 */
.about__list { display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--sec-in); max-width: 720px; }
.about__list > div { display: grid; grid-template-columns: 8em 1fr; gap: var(--s4); }
.about__list dt { color: var(--ink-2); }
@media (max-width: 480px) { .about__list > div { grid-template-columns: 1fr; gap: 0; } }

/* お問い合わせ */
.contact { padding: var(--band-y) var(--edge); background: var(--paper-2); color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.contact .eyebrow { margin-bottom: var(--s4); }
.contact p { color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: var(--s3); height: 56px; padding: 0 var(--s5); background: var(--red); color: var(--on-red); text-decoration: none; font-weight: 500; letter-spacing: 0; border-radius: 4px; transition: background-color .3s var(--ease); }
/* 矢印は飾りのため、読み上げでは読まない（content の代わりの文を空にする） */
.btn::after { content: "→"; content: "→" / ""; transition: transform .3s var(--ease); }
.btn:hover { background: var(--red-deep); }
.btn:hover::after { transform: translateX(4px); }
/* 問い合わせの窓口。メール・LINE公式アカウント・X の順に、同じ形のボタンを縦に3つ並べる。
   高さ（56px）・幅・角丸をそろえる（2026-11-21に本人が示した形）。
   幅は一番広いボタンにそろえ、画面より広い時は画面に合わせる。
   名前とロゴは左の余白（32px）の線に、矢印は右の余白（32px）の線にそろえる。
   段落からボタンまでは、今までと同じ48px（節の間32px＋16px）にする。ボタンの間は16pxにする。
   3つの名前の大きさは、メールの和字（16px）を基準にそろえる（2026-11-21に本人が大きさの釣り合いを求めた）。
   LINE の組ロゴは、和字（公式アカウント）の高さがメールの和字と同じになる20pxにする（6字の平均は20.1px）。
   欧字（X のユーザー名と英語の頁のメール）は、大文字の高さを組ロゴの「LINE」の字（20×43.2／69px）にそろえる。
   そのための字の大きさは、大文字の高さ×2048／1490（Gen Interface JP の M・I・E の高さ）になる */
.contact__ways { --line-h: 20px; --latin-cap: calc(var(--line-h) * 43.2 / 69); --latin: calc(var(--latin-cap) * 2048 / 1490); display: grid; grid-template-columns: minmax(0, max-content); gap: var(--s3); max-width: 100%; margin-top: var(--s3); font-size: 16px; }
.contact__ways .btn { justify-content: space-between; }
/* 矢印は、名前の大きさを変えても3つで同じ大きさ（16px）にする */
.contact__ways .btn::after { font-size: 16px; }
:lang(en) .contact__ways .btn:not(.btn--sub) { font-size: var(--latin); }
/* メールは赤の塗り、LINE と X は1pxの線で囲む。
   X のロゴは、白地に黒、黒地に白で使う決まりがある。そのため、赤の地に載せない。
   線の色には、地（paper-2）との差が3：1を超える色（ink-2）を使う。
   ロゴは各社の決まりどおりに置き、効果・変形・色の変更を加えない（hover では地のみを変える） */
.btn--sub { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.btn--sub:hover { background: var(--paper); }
/* LINE：公式の組ロゴ（1line・JP）。高さは20pxにする（決まりの最小は16px）。
   周りの余白（盾の幅×1/2＝約8.8px）は、ボタンの上下（18px）・左（32px）・矢印との間（16px以上）で満たす。
   日本国内では日本語表記のロゴを使う決まりがあるため、英語の頁も同じロゴを使う。明るい地は PrimaryBlack、暗い地は PrimaryWhite */
.contact__line img { display: block; height: var(--line-h); width: auto; }
.contact__line .contact__logo-dark { display: none; }
:root[data-theme="dark"] .contact__line .contact__logo-light { display: none; }
:root[data-theme="dark"] .contact__line .contact__logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact__line .contact__logo-light { display: none; } :root:not([data-theme="light"]) .contact__line .contact__logo-dark { display: block; } }
/* X：公式の組（logo-handle）どおりに組む。決まりでは、ユーザー名の字の高さをロゴの高さの100%にする。
   「@」は、大文字に合わせた形（case）にする。既定の形は小文字に合わせて下に出るため、ロゴとずれて見えていた。
   case の「@」は上端1674・下端-184（upm 2048）で、上下の中央が大文字の中央（745）と同じ位置にある。
   ロゴの高さは16px にする。ユーザー名の字の上端から下端まで（「@」の高さ＝1858／2048em＝15.6px）に一番近い、整数の高さである。
   ロゴの上下には厚さ約1px の横線があり、高さが整数でないと下の横線が2行の画素に割れて薄く出て、下が切れて見えた（2026-11-21）。
   行の高さを1にすると、字の箱の中央が大文字の中央（(1984-494)/2＝745）と重なる。そのため、align-items: center でロゴと「@」の上下がそろう。
   ロゴとユーザー名の間は、ロゴの幅×21.8／70.1にする。周りの余白（ロゴの幅＝約15.3px）は、ボタンの上下と左（32px）で満たす。
   ユーザー名は、ボタンの字と同じ太さ（500）で組む */
.contact__x-id { --x-h: 16px; --x-w: calc(var(--x-h) * 1200 / 1227); display: flex; align-items: center; gap: calc(var(--x-w) * 21.8 / 70.1); color: var(--x-ink); font-size: var(--latin); font-feature-settings: "case"; line-height: 1; white-space: nowrap; }
/* ロゴの墨は viewBox いっぱいに描かれているため、縁の画素を切らないよう overflow: visible にする */
.contact__x-id svg { display: block; flex: none; width: var(--x-w); height: var(--x-h); overflow: visible; }
/* メール：名前の前に封筒のアイコンを置く（本人の指示、2026-11-21）。アイコンは白の塗りで、ふたの V の字を抜く（線は丸い端・丸い結合）。
   中身の幅を、下の LINE と X の中身の幅（LINE の組ロゴの幅＝高さ×539.1／69＝156.25px）に合わせる（本人「下2つと文字幅が合うように」）。
   アイコンの幅は LINE のマークの幅（17.6px）に近い17.5px、高さは幅の0.8倍の14px（整数）にし、名前との間は8px にする。
   こうすると、名前の字形の左端が LINE の字「L」の左端に、右端が LINE のロゴの右端にそろう。
   字形の右端は、字の始まりから字の大きさの9.2071倍（日本語）・6.6412倍（英語）の所にある（measure_ink.py で測った値）。
   残りの幅をこの値で割って、名前の字の大きさを決める。
   日本語の名前の字は約14.2px になり、本文の16px より小さい。中身の幅を合わせる本人の指示により、この名前に限って下限の例外とする */
.contact__mail-id { display: flex; align-items: center; gap: var(--s2); line-height: 1; white-space: nowrap; }
.contact__mail-id svg { display: block; flex: none; width: 17.5px; height: 14px; overflow: visible; }
.contact__mail-id span { font-size: calc((var(--line-h) * 539.1 / 69 - 17.5px - var(--s2)) / 9.2071); }
:lang(en) .contact__mail-id span { font-size: calc((var(--line-h) * 539.1 / 69 - 17.5px - var(--s2)) / 6.6412); }

/* フッター：ロゴとキャッチコピー・リンク・コピーライトの3段を、全部中央に置く（本人の指示、2026-11-22）。段の間は24px。
   ロゴとキャッチコピーは1行に並べ（間32px）、幅が足りない時（スマホの幅）は2行に折り返す（行の間16px） */
.site-foot { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s7) var(--edge); background: var(--paper); color: var(--ink-2); font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.site-foot__brand { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; align-items: last baseline; gap: var(--s3) var(--s5); }
.site-foot__copy { text-align: center; }
/* small の既定の縮み（smaller）を止める。ページの一番小さい字は本文の 16px */
.site-foot .site-logo .combo { display: inline-block; vertical-align: text-bottom; }
.site-foot small { font-size: inherit; }
.site-foot__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--s2) var(--s5); }
.site-foot__links a { text-decoration: none; }
.site-foot__links a:hover { color: var(--ink); }

/* JS が無い・読めない時は全部見せる */
html:not(.js) .hero__ja > span, html:not(.js) .hero__en { opacity: 1; }
html:not(.js) .hero__biz { opacity: 1; }

/* プライバシーポリシー */
.legal { max-width: 800px; padding-top: calc(var(--s9) + var(--s5)); display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); }
.legal .sec__title { font-size: clamp(32px, 4vw, 48px); margin-bottom: var(--s5); }
.legal h2 { font-size: 20px; font-weight: 500; margin-top: var(--s5); }
/* 見出しの番号と題の間は、全角の空白の文字を打たずに CSS で空ける（2026-11-27） */
.legal__no { margin-right: var(--s3); }
/* 窓口の組織・役職・名前の間も、全角の空白に替えて CSS で空ける。v44 は全角の空白（16px）だった。
   間の半角の空白は写しと読み上げのために残し、flex の中では描かない（2026-11-27） */
.legal__who { display: inline-flex; flex-wrap: wrap; column-gap: var(--s3); }
.legal__who > span { white-space: nowrap; }
/* 行の終わりに来る閉じ括弧の後ろの二分を詰める（ベタ）。下線のあるリンクで、下線が括弧の後ろの空きまで伸びないようにする（2026-11-27） */
.kr { letter-spacing: -.5em; }
.legal p, .legal li { font-size: 16px; line-height: 1.9; color: var(--ink-2); word-break: auto-phrase; text-wrap: pretty; line-break: strict; }  /* strict：小書きの仮名・長音を行頭に置かない */
.legal ul { display: flex; flex-direction: column; gap: var(--s1); counter-reset: li; }
/* 項目は (1)(2)(3) の番号を付けて、2 行目以降を番号の後ろにそろえる（印の無い字下げは、ずれて見えるため） */
.legal li { position: relative; padding-left: 2.25em; counter-increment: li; }  /* 中の字詰めの span が升に分かれないよう、grid にせず番号を外に置く */
.legal li::before { content: "(" counter(li) ")"; position: absolute; left: 0; }
.legal a { color: var(--red-ink); }
.legal__date { margin-top: var(--s6); }
/* 映像の出典：項目名と中身の 2 列。狭い幅では縦に積む */
.credit { display: grid; grid-template-columns: 6em 1fr; align-items: baseline; column-gap: var(--s4); row-gap: var(--s2); }
.credit dt, .credit dd { margin: 0; font-size: 16px; line-height: 1.9; word-break: auto-phrase; line-break: strict; text-wrap: pretty; }
.credit a { overflow-wrap: anywhere; }   /* 長い URL のみ、どこでも折ってよい */
.credit dt { color: var(--ink-2); }
.credit dd { color: var(--ink); }
@media (max-width: 560px) { .credit { grid-template-columns: 1fr; row-gap: 0; } .credit dd + dt { margin-top: var(--s3); } }
/* Chrome は text-wrap: pretty を掛けると、言葉のまとまり（auto-phrase）を無視して語の中で折る（「一部と / して」）。
   まとまりで折れるブラウザーでは pretty を外す。まとまりで折れない Safari は pretty で最後の行の 1〜2 字を防ぐ */
@supports (word-break: auto-phrase) { main p, .service__lead, .legal p, .legal li, .credit dt, .credit dd { text-wrap: wrap; } }
/* auto-phrase を持たない Safari は、build が文節の切れ目に入れた <wbr>（tools/phrase.py）と約物の後ろでのみ折る。
   まとまりが行より長い時に限り、中で折る */
@supports not (word-break: auto-phrase) { main p, main li, main dt, main dd { word-break: keep-all; overflow-wrap: anywhere; } }
/* keep-all と text-wrap: pretty を重ねると、WebKit 26（Safari 26 と同じ版）は文と幅によって頁ごと落ちる。
   2026-11-27 に、プライバシーポリシーが幅375〜430で落ちた（v44 の本番も同じ）。keep-all を当てる日本語の要素では pretty を外す */
@supports not (word-break: auto-phrase) { html[lang="ja"] :is(main p, .service__lead, .service__deliv li, .legal p, .legal li, .credit dt, .credit dd) { text-wrap: wrap; } }

/* 字詰め（tools/kern.py が付ける印。値は名刺で決めた物。決まりは ~/.claude/rules/common/typography-kerning.md） */
.kA { letter-spacing: -.2em; }          /* 、「 。「 」「：間を 0.2 字詰める */
.kB { letter-spacing: -.305em; }        /* 約物が続く組（」、 。」 （「 など）：二分の 1 つを削る */
.kC { letter-spacing: -.2em; }          /* 大きな見出しの閉じ括弧の後ろ（」と など）。小林敏の「四分ほどに」に名刺の 0.2 字をそろえた */
.kP { letter-spacing: .097em; }         /* 句点の前 */
.kT { letter-spacing: .059em; }         /* 読点の前 */
.kw { letter-spacing: .25em; }          /* 仮名・漢字と英数字の間（四分） */
.kt { font-size: .82em; letter-spacing: .1778em; position: relative; left: .0129em; top: .0073em; }  /* 読点を 82% に縮める（左と下の端・送りは変えない） */
.kt.kA { letter-spacing: -.0661em; }
.kt.kB { letter-spacing: -.1941em; }
.caps { letter-spacing: .06em; }        /* 大文字の並び */
.ke { letter-spacing: 0; }              /* 中央揃えの最後の字 */
.ks, .ko.is-start { margin-left: -.305em; }  /* 行頭の始め括弧：前の二分を削る */
.u.is-wrap { display: block; }  /* 追い出し：括弧書きの塊ごと次の行へ */
.ko.is-wrap::before { content: "\A"; white-space: pre; }  /* 追い出し：括弧の前で行を改める */
.nm1 { letter-spacing: -.057em; }       /* ジェ */
.nm2 { font-size: .95em; letter-spacing: -.0164em; position: relative; left: .0218em; top: -.0007em; }  /* ェを 95% に縮める・ェイ */
.nm3 { letter-spacing: -.02em; }        /* イン */
.nm4 { letter-spacing: .08em; }         /* 姓と名の間 */
.nm5 { letter-spacing: .01em; }         /* マヤ */
@media (max-width: 600px) { .hero__ja .w1 .kt.kA { letter-spacing: .1778em; } }  /* 2 行の時は行末の読点を詰めない */

/* English uses natural word wrapping; Japanese phrase grouping stays unchanged. */
html[lang="en"] .u { display: inline; }
html[lang="en"] .service__body { min-width: 0; }
html[lang="en"] .service__deliv li { word-break: normal; }
html[lang="en"] main p, html[lang="en"] .legal li, html[lang="en"] .credit dt, html[lang="en"] .credit dd { word-break: normal; line-break: auto; text-wrap: pretty; }
html[lang="en"] .sec__title, html[lang="en"] .concept__title, html[lang="en"] .contact__title, html[lang="en"] .horizon h2 { word-break: normal; line-height: 1.25; }
html[lang="en"] .concept__defined { max-width: none; gap: 0 .25em; }
html[lang="en"] .etym__row { grid-template-columns: 1fr; row-gap: var(--s1); }
html[lang="en"] .etym__row dt { font-feature-settings: normal; }
html[lang="en"] .etym__entry { gap: var(--s3); }
html[lang="en"] .hero__ja > span { white-space: normal; }
/* 英語の式も、日本語と同じく600px以下で句を行ごとに積み、句は項の中で中央にそろえる（2026-11-18、本人「左項と右項で中央揃えしようよ」）。
   積んだ式の幅は「10.67×字の大きさ＋16px」になる。狭い幅では字とラベルを画面の幅に比例して小さくし、字の比1.5を保つ。 */
@media (max-width: 600px) {
  html[lang="en"] .concept__meaning-label { font-size: min(20px, 5vw); }
  html[lang="en"] .concept__equation { gap: var(--s2); font-size: min(7.5vw, clamp(32px, 6vw, 88px)); }
  html[lang="en"] .concept__defined { display: grid; gap: 0; justify-items: center; }
}
