/* Studio YK1 — コーポレートサイト 共通スタイル
   外部の書体・ライブラリは読み込みません (閲覧者の通信先を増やさないため)。 */

:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e9edf5;
  --muted: #98a2b8;
  --dim: #6b7690;
  --cyan: #4fd8ff;
  --violet: #8b7bff;
  --mint: #5ee6b8;
  --amber: #ffc46b;
  --grad: linear-gradient(100deg, #4fd8ff 0%, #7aa2ff 45%, #a88bff 100%);
  --radius: 18px;
  --wrap: 1180px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-en: "Inter", "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, var(--font);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
/* 見出しの改行: 1 文字だけ次の行に落ちないよう、文節で折る (.nb は文節のかたまり) */
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.nb { display: inline-block; }
ul { list-style: none; }
::selection { background: rgba(79, 216, 255, 0.35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- 背景の光 ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(122, 162, 255, 0.16), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(79, 216, 255, 0.10), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(168, 139, 255, 0.10), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-en); font-weight: 700; letter-spacing: 0.14em; font-size: 15px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(79, 216, 255, 0.35);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 2px; border-radius: 7px; background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 100%, 0 100%);
}
.nav { display: flex; align-items: center; gap: 34px; font-size: 13.5px; color: var(--muted); }
.nav a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 42px; font-size: 18px; cursor: pointer; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--text);
  background: var(--panel); transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--panel-2); border-color: rgba(255, 255, 255, 0.3); }
.btn-primary { background: var(--grad); color: #04101c; border-color: transparent; box-shadow: 0 8px 32px rgba(79, 216, 255, 0.25); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 12px 40px rgba(122, 162, 255, 0.4); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--cyan); }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(28px, 7.6vw, 84px); line-height: 1.22; font-weight: 800; letter-spacing: 0.01em;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 32px; max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
.hero .actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; z-index: 2; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.4em; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--cyan), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 数字の帯 ---------- */
.stats { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--font-en); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.stat-num small { font-size: 0.42em; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0.05em; }
.stat-label { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 節 ---------- */
.section { padding: clamp(90px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin-top: 22px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.4; font-weight: 800; }
.section-head p { margin-top: 22px; color: var(--muted); }

/* ---------- 製品 (トップ) ---------- */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line);
}
.product:last-of-type { border-bottom: 1px solid var(--line); }
.product > *, .feature > *, .about-grid > * { min-width: 0; }
.product.reverse .product-visual { order: 2; }
.product-no { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.2em; }
.product h3 { margin-top: 14px; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.35; font-weight: 800; }
.product .en { display: block; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.22em; color: var(--muted); font-weight: 500; margin-bottom: 8px; text-transform: uppercase; }
.product .catch { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.7; }
.product .desc { margin-top: 14px; color: var(--muted); font-size: 15px; }
.product .actions { margin-top: 30px; }
.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); line-height: 1.6; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 999px; line-height: 1.6;
  color: var(--cyan); background: rgba(79, 216, 255, 0.08); border: 1px solid rgba(79, 216, 255, 0.3);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 2s ease-in-out infinite; }
.badge.mint { color: var(--mint); background: rgba(94, 230, 184, 0.08); border-color: rgba(94, 230, 184, 0.3); }
.badge.violet { color: #b3a6ff; background: rgba(139, 123, 255, 0.1); border-color: rgba(139, 123, 255, 0.35); }
@keyframes pulse { 50% { opacity: 0.35; } }

.product-visual { position: relative; }
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: #000;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.frame img { width: 100%; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-visual:hover .frame img { transform: scale(1.03); }
.frame.paper { background: #fff; padding: clamp(10px, 2vw, 22px); }
.glow { position: absolute; inset: 12% 8%; z-index: -1; filter: blur(70px); opacity: 0.55; background: var(--grad); border-radius: 50%; }

/* 端末の枠 */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 22px); }
.phone {
  width: clamp(88px, 17vw, 210px); border-radius: clamp(18px, 2.4vw, 30px); padding: clamp(5px, 0.7vw, 8px);
  background: linear-gradient(160deg, #2a3142, #0d1119); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9);
}
.phone img { border-radius: clamp(14px, 1.9vw, 23px); width: 100%; }
.phone:nth-child(1) { transform: translateY(-18px) rotate(-4deg); }
.phone:nth-child(2) { transform: translateY(8px); z-index: 2; width: clamp(100px, 19vw, 236px); }
.phone:nth-child(3) { transform: translateY(-18px) rotate(4deg); }

/* ---------- 流儀 ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 216, 255, 0.7), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.card:hover::before { opacity: 1; }
.card-no { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.2em; }
.card h3 { margin-top: 14px; font-size: 20px; line-height: 1.6; font-weight: 700; }
.card p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.card .source { margin-top: 16px; font-size: 12px; color: var(--dim); }

/* ---------- 会社概要 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 80px); }
.about-copy p + p { margin-top: 1.4em; }
.about-copy p { color: var(--muted); }
.about-copy .big { color: var(--text); font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.8; }
.profile { border-top: 1px solid var(--line-2); }
.profile div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--muted); font-size: 13.5px; }
.profile dd { font-size: 15px; }

/* ---------- お問い合わせ ---------- */
.cta {
  position: relative; border-radius: 28px; padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px); overflow: hidden; text-align: center;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(79, 216, 255, 0.16), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgba(168, 139, 255, 0.18), transparent 70%),
    var(--bg-2);
}
.cta h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.5; font-weight: 800; }
.cta p { margin: 20px auto 0; max-width: 560px; color: var(--muted); }
.cta .actions { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- フッター ---------- */
.site-footer { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer .top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer .links a:hover { color: var(--text); }
.site-footer .bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: 12px; }

/* ---------- 製品の詳細ページ ---------- */
.page-hero { position: relative; padding: 170px 0 80px; overflow: hidden; }
/* 背景の絵 (題字入り) は上に帯として見せ、文字は絵の下端から始める。絵の題字に文字を重ねない */
.page-hero.has-bg { --hero-art: max(min(53.3vw, 64svh), 320px); padding-top: calc(var(--hero-art) - 70px); }
.page-hero .bg { position: absolute; inset: 0 0 auto 0; height: var(--hero-art); z-index: -1; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0.1) 30%, rgba(5, 7, 13, 0.15) 62%, var(--bg) 96%); }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--dim); }
.page-hero h1 { margin-top: 26px; font-size: clamp(32px, 5vw, 64px); line-height: 1.3; font-weight: 800; }
/* 左右 2 段組の冒頭は段が狭いので、見出しを 1 行に収まる大きさにする */
.page-hero .feature h1 { font-size: clamp(30px, 3.7vw, 54px); }
.page-hero .name { margin-top: 24px; font-family: var(--font-en); letter-spacing: 0.2em; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.page-hero .lead { margin-top: 24px; max-width: 720px; color: #c4ccdc; font-size: clamp(15px, 1.35vw, 17.5px); }
.page-hero .meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.notice {
  border-left: 2px solid var(--cyan); background: rgba(79, 216, 255, 0.05);
  padding: 18px 24px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: 14px;
}
.notice strong { color: var(--text); }

.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .feature-visual { order: -1; }
.feature.text-only { grid-template-columns: 1fr; max-width: 760px; }
.feature h3 { margin-top: 12px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.5; font-weight: 800; }
.feature p { margin-top: 16px; color: var(--muted); font-size: 15px; }
.feature p strong { color: var(--text); font-weight: 600; }
.feature figcaption, .caption { margin-top: 12px; font-size: 12.5px; color: var(--dim); text-align: center; }
.feature .phone { margin-inline: auto; width: clamp(180px, 22vw, 260px); transform: none !important; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* 画面の並び: 広い画面では 5 枚を横スクロールなしで並べます */
.shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 20px); padding: 8px 4px 28px; }
.shots figure { scroll-snap-align: start; }
.shots .phone { width: 100%; transform: none !important; }

/* ---------- 規約などの文書のページ ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 56px; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; font-weight: 700; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: 16px; color: var(--muted); }
.legal ul { padding-left: 1.3em; list-style: disc; }
.legal li + li { margin-top: 10px; }
.legal li > ul { margin-top: 8px; list-style: circle; }
.legal li::marker { color: var(--dim); }
.legal .profile { margin-top: 22px; }
.legal-date { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* ねこ学の看板の絵 (つながった 3 匹)。地色が濃いので、後ろに淡い光を敷いて浮かせます */
.mascot-band { position: relative; margin: 0 auto clamp(30px, 4vw, 50px); max-width: 704px; display: grid; place-items: center; }
.mascot-band img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.6)); }
.mascot-band .glow {
  position: absolute; inset: 6% -6% 2%; border-radius: 50%;
  background: radial-gradient(60% 70% at 50% 60%, rgba(79, 216, 255, 0.2), rgba(150, 130, 255, 0.12) 45%, transparent 72%);
  filter: blur(34px);
}

/* 系統ごとの絵 (3 匹の猫)。縦横比がばらつくので、幅ではなく高さを揃えます (素材の指示)。
   添え物なので控えめな大きさにし、中央に置きます。4 枚並ぶ運転免許は狭い画面でも横一列を保ちます */
.series-art { margin: 18px 0 22px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 1.6vw, 24px); }
.series-art img { filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); }
.series-art:not(.series-art-many) img { width: auto; height: clamp(150px, 13.5vw, 192px); }
/* 複数枚: 列の幅を「同じ高さのときの幅の比」(--cols) にすると、
   狭い画面でも高さが揃ったまま一列で縮み、はみ出しません */
.series-art-many { display: grid; grid-template-columns: var(--cols); align-items: end; max-width: 940px; margin-inline: auto; }
.series-art-many img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .series-art { gap: 10px; }
  .series-art:not(.series-art-many) img { height: clamp(132px, 34vw, 176px); }
}
/* 携帯の幅では一列だと小さくなりすぎるので、2 枚ずつ 2 段にして大きく見せます */
@media (max-width: 620px) {
  /* 幅で決めます (高さを決め打つと縦横比が崩れるため)。下端を揃えて置きます */
  .series-art-many { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; max-width: 440px; }
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.03); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; white-space: normal; min-width: 240px; }
td.num { text-align: right; font-family: var(--font-en); font-variant-numeric: tabular-nums; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.group-title { margin: 56px 0 8px; font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.group-title small { font-size: 13px; color: var(--muted); font-weight: 500; }
.group-note { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.spec { border-top: 1px solid var(--line-2); max-width: 820px; }
.spec div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 13.5px; }
.spec dd { font-size: 15px; }

.checklist li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(94, 230, 184, 0.6); }
.checklist.wip li::before { background: transparent; border: 2px solid var(--amber); box-shadow: none; }

.sources li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 16px; font-size: 14.5px; }
.sources li span:first-child { color: var(--muted); }

.next-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.next-products a { display: block; }
.next-products .en { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.next-products h3 { margin-top: 8px; }

/* ---------- 出現の動き ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge::before, .scroll-hint::after { animation: none; }
  .frame img { transition: none; }
}

/* ---------- 狭い画面 ---------- */
/* 狭い画面では横送り (指で払って見ます) */
@media (max-width: 900px) {
  .shots { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: clamp(170px, 44vw, 230px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
}

@media (max-width: 900px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px; background: rgba(5, 7, 13, 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: none; font-size: 15px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-grid; place-items: center; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .product, .feature, .about-grid { grid-template-columns: 1fr; }
  .phones .phone { width: 25vw; }
  .phones .phone:nth-child(2) { width: 28vw; }
  .eyebrow { letter-spacing: 0.2em; font-size: 11px; }
  .eyebrow::before { width: 24px; }
  .product.reverse .product-visual, .feature.reverse .feature-visual { order: 0; }
  .product-visual { order: -1 !important; }
  .principles, .grid-3, .grid-2, .next-products { grid-template-columns: 1fr; }
  .profile div, .spec div, .sources li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- メッセージ ---------- */
.message { max-width: 980px; }
.message .big { font-size: clamp(19px, 2.1vw, 26px); font-weight: 700; line-height: 1.9; }
.message p + p { margin-top: 1.6em; color: var(--muted); }
.message-points { margin-top: clamp(40px, 5vw, 64px); }

/* 横長と縦長の画面を、高さを揃えて並べます */
.shots-duo { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; margin-top: 24px; align-items: start; }
.shots-duo figure { min-width: 0; }
.shots-duo figure:last-child .frame { aspect-ratio: 1 / 1.13; }
.shots-duo figure:last-child img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .shots-duo { grid-template-columns: 1fr; } .shots-duo figure:last-child .frame { aspect-ratio: auto; max-width: 320px; margin-inline: auto; } }

.cta .mail-text { margin-top: 18px; font-family: var(--mono); font-size: 14px; color: var(--muted); letter-spacing: 0.04em; user-select: all; }
.cta p { max-width: 680px; }

/* ---------- ロゴ ---------- */
.brand { gap: 14px; }
.brand-logo { height: 50px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.brand:hover .brand-logo { transform: scale(1.06) rotate(-2deg); }
.site-footer .brand-logo { height: clamp(120px, 14vw, 180px); }
@media (max-width: 900px) { .brand-logo { height: 44px; } }

/* ---------- 素材の権利表記 (小さく) ---------- */
.credits { margin-top: 28px; max-width: 860px; font-size: 11px; line-height: 1.8; color: var(--dim); letter-spacing: 0.01em; }
.credits-label { display: block; margin-bottom: 4px; font-family: var(--font-en); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.credits a { text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--text); }

.next-products > :only-child { grid-column: 1 / -1; }

/* ---------- 言語の切り替え (i18n) ---------- */
/* プルダウン (details)。言語が増えても幅が変わりません。JS が無くても開閉できます */
.lang-menu { position: relative; font-family: var(--font-en); font-size: 12.5px; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); cursor: pointer; user-select: none; transition: color 0.2s, border-color 0.2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.lang-menu summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 168px; padding: 6px; display: grid; gap: 2px; background: rgba(10, 13, 22, 0.98); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); z-index: 60; }
.nav .lang-list a { padding: 9px 12px; border-radius: 9px; border-bottom: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; white-space: nowrap; }
.nav .lang-list a::after { content: none; }
.nav .lang-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav .lang-list a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }
@media (max-width: 900px) {
  /* 狭い画面でも縦 1 列。言語が増えても選びやすさは変わりません */
  .lang-menu { margin-top: 20px; }
  .lang-menu summary { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }
  .lang-list { position: static; margin-top: 10px; min-width: 0; box-shadow: none; max-height: 44vh; overflow-y: auto; }
  .nav .lang-list a { padding: 14px 16px; font-size: 15px; }
}

/* ---------- 中国語の書体 (字形は lang 属性で切り替わります) ---------- */
html:lang(zh-Hant) body { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Heiti TC", sans-serif; }
html:lang(zh-Hans) body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Heiti SC", sans-serif; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { word-break: normal; line-break: strict; }

/* ---------- 欧文の言語 (英語など) の組み方 ---------- */
/* 欧文は和文より字幅が狭く語が長いので、見出しを少し小さくし、字間と行間を詰めます */
:lang(en) body, html:lang(en) { font-family: var(--font-en); }
html:lang(en) h1, html:lang(en) h2, html:lang(en) h3 { letter-spacing: -0.01em; word-break: normal; overflow-wrap: break-word; }
html:lang(en) .hero h1 { font-size: clamp(30px, 6vw, 76px); line-height: 1.12; }
html:lang(en) .page-hero h1 { line-height: 1.15; }
html:lang(en) .page-hero .feature h1 { font-size: clamp(30px, 3.6vw, 52px); }
html:lang(en) .message .big { line-height: 1.6; }
html:lang(en) .product h3, html:lang(en) .card h3 { line-height: 1.3; }
html:lang(en) p, html:lang(en) dd, html:lang(en) li, html:lang(en) td { hyphens: manual; }
/* 欧文は製品名と対象が長いので、この 2 列だけ折り返して、表が枠に収まるようにします */
html:lang(en) table { font-size: 13.5px; }
html:lang(en) th, html:lang(en) td { padding: 14px 14px; }
html:lang(en) tbody th { min-width: 15em; }
html:lang(en) tbody td:nth-child(2) { white-space: normal; min-width: 12em; }
