/* SK — サイト共通スタイル
   色はすべてトークン（:root の変数）で指定する。ダークモードは下の「ダークモード」でトークンだけを入れ替える。
   テーマカラー（SK's Blue など）は --a〜 の変数を <html data-accent="…"> で入れ替える（assets/site.js の「表示」）。
   <html data-theme="light|dark"> は、ユーザーが選んだとき（なければ端末の設定に合わせる） */
:root {
  /* テーマカラー（初期値: SK's Blue）。-d はダークモードのときの値 */
  --a: #2563eb; --a-strong: #1a56db; --a-soft: #e6efff; --a-tint: #eaf1ff; --a-line: #bcd3ff; --a-mark: #cfe0ff; --a-ink: #ffffff;
  --a-d: #3b82f6; --a-strong-d: #7aa7ff; --a-soft-d: #16233a; --a-tint-d: #141f33; --a-line-d: #2f4a7a; --a-mark-d: rgba(59, 130, 246, .35); --a-ink-d: #ffffff;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --surface-3: var(--surface-3);
  --ink: #0d1014;
  --muted: #5a6371;
  --line: #e1e4e9;
  --line-strong: #c9ced6;
  --night: #0d1014;       /* フッターなど、いつも暗い部分 */
  --dots: rgba(13, 16, 20, .11);
  --accent: var(--a);
  --accent-ink: var(--a-ink);
  --accent-line: var(--a-line);
  --mark: var(--a-mark);
  --tint-blue: var(--a-tint);
  --green: var(--a-strong);     /* 見出しの小さなラベル（名前は昔のまま） */
  --green-soft: var(--a-soft);
  --yf: #9a5a00;
  --yf-deep: #6b4000;
  --yf-soft: #fff4d9;
  --malu: #5a5fe0;
  --malu-soft: #ecebff;
  --nagi: #0f766e;
  --nagi-soft: #d5f3ef;
  --amber: #f0a000;
  --amber-soft: #fff1cf;
  --link: var(--a-strong);
  --warn-bg: #fff4d6;
  --warn-ink: #6b4a00;
  --tint-amber: var(--tint-amber);
  --blue-soft: #e0f0ff; --blue: #0b6bcb; --blue-ink: #1e40af;
  --amber-ink: #b77900;
  --lab-soft: #efe9ff; --lab: #6d28d9;
  --ok-soft: #dcfce7; --ok-ink: #15803d;
  --slow-soft: #fef3c7; --slow-ink: #b45309;
  --down-soft: #fee2e2; --down-ink: #b91c1c;
  --important-soft: #fde68a; --important-ink: #7a4a00;
  --shadow: 0 1px 2px rgba(13, 16, 20, .04), 0 8px 24px rgba(13, 16, 20, .06);
  --radius: 28px;
  /* Google Fonts を読み込まない地域（assets/fonts.js）では、端末にある日本語の文字を使う
     （Windows 11 は Noto Sans JP 入り。Android は Noto Sans CJK JP、Mac・iPhone はヒラギノ） */
  --font: Inter, "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  padding-top: 52px; /* 固定ヘッダーの高さ */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 1001; background: var(--surface); padding: 8px 12px; }

/* ---------- ロゴ ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.logo img { width: 36px; height: 36px; }

/* ---------- 共通パーツ ---------- */
main { display: block; }
.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--green); text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* 蛍光ペン風の下線 */
.mark { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88.6% / 100% 30%; padding: 0 .06em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-tonal { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ink { background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px rgba(13, 16, 20, .18); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); corner-shape: superellipse(1.5);
  padding: 28px; box-shadow: var(--shadow);
}
@media (max-width: 600px) { .card { padding: 22px; } }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); color: var(--muted);
}
.badge-dev { background: var(--amber-soft); color: var(--warn-ink); }
.badge-live { background: var(--green-soft); color: var(--link); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live .dot { animation: pulse 2s ease-in-out infinite; }
/* Y-FILTER. が入っているかで出し分ける（拡張機能が <html data-yfilter-version> を読み込みの最初に付けるので、ちらつかない） */
html:not([data-yfilter-version]) [data-yf-when="installed"],
html[data-yfilter-version] [data-yf-when="missing"],
[data-yf-update][hidden], [data-yf-uptodate][hidden] { display: none !important; }
.float-yf-live { color: var(--link) !important; font-weight: 700; }
@keyframes pulse { 50% { opacity: .35; } }

/* 色付きのアイコンタイル */
.tile-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; flex: none; }
.tile-ico svg { width: 22px; height: 22px; }
.ti-green { background: var(--green-soft); color: var(--green); }
.ti-blue { background: var(--blue-soft); color: var(--blue); }
.ti-gold { background: var(--yf-soft); color: var(--yf); }
.ti-violet { background: var(--malu-soft); color: var(--malu); }
.ti-teal { background: var(--nagi-soft); color: var(--nagi); }
.ti-amber { background: var(--amber-soft); color: var(--amber-ink); }
.ti-ink { background: var(--ink); color: var(--bg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 背景の帯（各ページ上部） ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(600px 320px at 85% 10%, var(--band-a, color-mix(in srgb, var(--accent) 22%, transparent)), transparent 70%),
    radial-gradient(520px 300px at 10% 90%, var(--band-b, rgba(240, 170, 30, .14)), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg));
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.band--yf { --band-a: rgba(240, 170, 30, .26); --band-b: rgba(255, 216, 74, .2); }
.band--malu { --band-a: rgba(90, 95, 224, .24); --band-b: rgba(47, 107, 255, .14); }
.band--nagi { --band-a: rgba(20, 184, 166, .26); --band-b: rgba(37, 99, 235, .12); }
.band--plain { --band-a: color-mix(in srgb, var(--accent) 16%, transparent); --band-b: rgba(90, 95, 224, .1); }

/* ---------- トップ ---------- */
.hero { padding: 72px 0 88px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.hero-pill img { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; }
.hero .lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--muted); max-width: 520px; margin-top: 22px; }
.hero .btn-row { margin-top: 30px; }

.hero-visual { position: relative; min-height: 400px; }
.window {
  position: relative; background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(13, 16, 20, .16), 0 0 0 1px rgba(13, 16, 20, .06);
}
.window-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dbe1; }
.window-bar i:nth-child(1) { background: #ff6159; } .window-bar i:nth-child(2) { background: #ffbd2e; } .window-bar i:nth-child(3) { background: #28c941; }
.window-url { margin-left: 10px; flex: 1; max-width: 260px; height: 22px; border-radius: 8px; background: var(--surface); font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.hero-visual .window { position: absolute; top: 0; right: 0; width: 92%; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transform-origin: right center; }
.float-card {
  position: absolute; background: var(--surface); border-radius: 22px; corner-shape: superellipse(1.5);
  box-shadow: 0 20px 44px rgba(13, 16, 20, .16), 0 0 0 1px rgba(13, 16, 20, .05);
}
.float-yf { left: 0; bottom: 0; width: 250px; padding: 18px; animation: floaty 6s ease-in-out infinite; }
.float-yf .head { display: flex; align-items: center; gap: 10px; }
.float-yf .head img { width: 38px; height: 38px; border-radius: 11px; }
.float-yf .head strong { display: block; font-size: 15px; line-height: 1.2; }
.float-yf .head small { font-size: 11px; color: var(--muted); }
.float-yf ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.float-yf li { display: flex; align-items: center; gap: 8px; }
.float-yf li svg { width: 16px; height: 16px; color: var(--yf); flex: none; }
.float-chip { right: -6px; bottom: 56px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; animation: floaty 7s ease-in-out -2s infinite; }
.float-chip .tile-ico { width: 32px; height: 32px; border-radius: 10px; }
.float-chip .tile-ico svg { width: 18px; height: 18px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 0; padding-bottom: 90px; }
  .hero-visual .window { position: relative; width: 100%; transform: none; }
  .float-yf { width: 220px; left: 8px; }
  .float-chip { display: none; }
}

/* トップのアニメーション
   出てくる動きは fill-mode: backwards にして、終わったあとは通常のスタイル（マウスで動く分など）に戻す。
   window・カードは translate（マウス）、scale（出てくる）、transform（ふわふわ）を別々に使って重ならないようにしている */
.hero h1 .hl { display: block; animation: hero-line .9s cubic-bezier(.22, 1, .36, 1) backwards; }
.hero h1 .hl:nth-child(1) { animation-delay: .1s; }
.hero h1 .hl:nth-child(2) { animation-delay: .22s; }
.hero h1 .hl:nth-child(3) { animation-delay: .34s; }
@keyframes hero-line { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } }
.hero .mark { animation: mark-in .8s cubic-bezier(.65, 0, .35, 1) .85s backwards; }
.hero .hl:nth-child(3) .mark { animation-delay: 1.05s; }
@keyframes mark-in { from { background-size: 0% 30%; } }
.hero .lead { animation: hero-up .8s cubic-bezier(.22, 1, .36, 1) .5s backwards; }
.hero .btn-row { animation: hero-up .8s cubic-bezier(.22, 1, .36, 1) .62s backwards; }
/* お知らせの帯は読み込んでから出すので、見出しがずれないように場所だけ先にとっておく */
.hero-pill[hidden] { display: inline-flex; visibility: hidden; }
.hero-pill:not([hidden]) { animation: hero-up .6s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes hero-up { from { opacity: 0; transform: translateY(16px); } }

.hero-visual .window { animation: window-in 1.1s cubic-bezier(.22, 1, .36, 1) .25s backwards; }
@keyframes window-in { from { opacity: 0; translate: 60px 20px; scale: .94; } }
.float-yf, .float-chip { transform-origin: 30% 80%; }
.float-yf { animation: card-pop .8s cubic-bezier(.34, 1.56, .64, 1) .75s backwards, floaty 6s ease-in-out 1.6s infinite; }
.float-chip { animation: card-pop .8s cubic-bezier(.34, 1.56, .64, 1) .95s backwards, floaty 7s ease-in-out 1.8s infinite; }
@keyframes card-pop { from { opacity: 0; scale: .6; } }
.float-yf li { animation: hero-up .5s cubic-bezier(.22, 1, .36, 1) backwards; }
.float-yf li:nth-child(1) { animation-delay: 1.15s; }
.float-yf li:nth-child(2) { animation-delay: 1.25s; }
.float-yf li:nth-child(3) { animation-delay: 1.35s; }

/* マウスの位置に合わせて少しだけ動く（--px / --py は site.js が入れる。-1〜1） */
.hero-visual .window { translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -8px); }
.float-yf { translate: calc(var(--px, 0) * 18px) calc(var(--py, 0) * 14px); }
.float-chip { translate: calc(var(--px, 0) * 28px) calc(var(--py, 0) * 20px); }
.hero-visual.is-tracking .window, .hero-visual.is-tracking .float-card { transition: translate .7s cubic-bezier(.22, 1, .36, 1); }

/* 背景の光がゆっくり動く */
.hero.band::before { inset: -12%; animation: band-drift 18s ease-in-out infinite alternate; }
@keyframes band-drift { to { transform: translate(-4%, 3%) scale(1.06); } }

/* スクロールで出てくる（.reveal は site.js がトップだけに付けて、出終わったら外す） */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .9s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.reveal .eyebrow::before { width: 0; transition: width .6s cubic-bezier(.22, 1, .36, 1) calc(var(--d, 0s) + .25s); }
.reveal.is-in .eyebrow::before { width: 18px; }
.reveal .hub-card-items li, .reveal .lab-card-item, .reveal .checks li { opacity: 0; translate: 18px 0; transition: opacity .5s ease, translate .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in .hub-card-items li, .reveal.is-in .lab-card-item, .reveal.is-in .checks li { opacity: 1; translate: 0 0; }
.reveal .hub-card-items li:nth-child(1), .reveal .lab-card-item:nth-child(1), .reveal .checks li:nth-child(1) { transition-delay: calc(var(--d, 0s) + .25s); }
.reveal .hub-card-items li:nth-child(2), .reveal .lab-card-item:nth-child(2), .reveal .checks li:nth-child(2) { transition-delay: calc(var(--d, 0s) + .35s); }
.reveal .hub-card-items li:nth-child(3), .reveal .checks li:nth-child(3) { transition-delay: calc(var(--d, 0s) + .45s); }

/* プロダクトカード（テーマ色つき） */
.product-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease;
}
a.product-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(13, 16, 20, .04), 0 24px 48px rgba(13, 16, 20, .12); }
.product-card .cover {
  position: relative; padding: 28px 28px 24px; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--c-soft), var(--surface) 85%);
}
.product-card .cover::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-glow), transparent 70%);
}
.product-card .icon { width: 64px; height: 64px; border-radius: 18px; flex: none; box-shadow: 0 10px 24px var(--c-glow); background: var(--surface); }
.product-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.product-card .kind { color: var(--muted); font-size: 13px; font-weight: 600; }
.product-card .cover .badge { margin-left: auto; position: relative; z-index: 1; }
.product-card .body { padding: 4px 28px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.product-card p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 18px; height: 18px; flex: none; color: var(--c, var(--green)); }
.product-card .more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--c); display: inline-flex; align-items: center; gap: 6px; }
.product-card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.product-card:hover .more svg { transform: translateX(3px); }
.pc-yf { --c: var(--yf); --c-soft: var(--yf-soft); --c-glow: rgba(240, 170, 30, .22); }
.pc-malu { --c: var(--malu); --c-soft: var(--malu-soft); --c-glow: rgba(90, 95, 224, .22); }
.pc-nagi { --c: var(--nagi); --c-soft: var(--nagi-soft); --c-glow: rgba(20, 184, 166, .22); }

/* 私について（トップの案内） */
.about-teaser {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 32px; border-radius: 32px; corner-shape: superellipse(1.5);
  background: var(--night); color: #fff; position: relative; overflow: hidden;
}
.about-teaser::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 90% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), radial-gradient(360px 200px at 0% 100%, rgba(90, 95, 224, .35), transparent 70%);
}
.about-teaser > * { position: relative; }
.about-teaser img { width: 88px; height: 88px; }
.about-teaser h2 { font-size: 26px; font-weight: 800; }
.about-teaser p { color: rgba(255, 255, 255, .72); margin-top: 6px; }
.about-teaser .btn { background: var(--surface); color: var(--ink); }
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; gap: 16px; padding: 26px; } .about-teaser img { width: 64px; height: 64px; } }

.link-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; corner-shape: superellipse(1.5);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.link-tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13, 16, 20, .04), 0 16px 36px rgba(13, 16, 20, .1); }
.link-tile .tile-ico { margin-bottom: 12px; }
.link-tile strong { font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-tile strong svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.link-tile:hover strong svg { transform: translateX(3px); }
.link-tile span { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- プロダクトページ・各ページの見出し ---------- */
.p-hero { padding: 64px 0 48px; }
.p-hero .top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.p-hero .icon { width: 92px; height: 92px; border-radius: 26px; background: var(--surface); box-shadow: 0 16px 36px rgba(13, 16, 20, .14); }
.p-hero h1 { font-size: clamp(34px, 5.5vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.p-hero .kind { color: var(--muted); font-weight: 600; }
.p-hero .lead { font-size: 18px; color: var(--muted); max-width: 640px; margin-top: 22px; }
.p-hero .btn-row { margin-top: 28px; }
.p-hero + .section { padding-top: 16px; }

.screenshot-wrap { margin-top: -8px; }
.screenshot-wrap .window { max-width: 960px; margin: 0 auto; }

.feature { padding: 24px; transition: transform .2s ease; }
.feature:hover { transform: translateY(-2px); }
.feature .tile-ico { margin-bottom: 16px; }
.feature h3 { font-size: 16px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.7; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 20px; corner-shape: superellipse(1.5);
  background: var(--amber-soft); color: var(--warn-ink);
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice strong { display: block; }
.notice p { font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--green)); }

.dict-card h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.dict-card .chips { margin-top: 14px; }
.dict-card .chip { background: var(--surface-2); box-shadow: none; font-weight: 600; }

/* ---------- 私について ---------- */
.about-cover { height: 220px; }
.profile { margin-top: -120px; position: relative; }
.profile-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; padding: 32px; }
.profile-card .avatar { width: 128px; height: 128px; border-radius: 36px; box-shadow: 0 0 0 6px var(--surface), 0 18px 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.profile-card h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.profile-card .handle { color: var(--muted); font-weight: 600; }
.profile-card .btn-row { margin-top: 16px; }
.profile-intro { margin-top: 24px; font-size: 18px; max-width: 720px; }
.profile-intro + p { margin-top: 8px; color: var(--muted); }
@media (max-width: 680px) {
  .about-cover { height: 160px; }
  .profile { margin-top: -90px; }
  .profile-card { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .profile-card .avatar { width: 96px; height: 96px; border-radius: 28px; }
}
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 20px; display: flex; gap: 14px; align-items: center; }
.fact small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.fact strong { display: block; font-size: 16px; line-height: 1.45; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- サポート ---------- */
.id-card { position: relative; overflow: hidden; }
.id-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--accent), var(--malu)); }
.id-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 12px 12px 16px;
  background: var(--surface-2); border-radius: 16px; corner-shape: superellipse(1.5);
}
.id-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; word-break: break-all; flex: 1 1 240px; text-align: left; }
.id-box .btn { min-height: 38px; padding: 0 16px; font-size: 13px; background: var(--surface); }

/* ---------- 規約 ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding: 16px 0 80px; }
.doc-toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.doc-toc a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 12px; font-weight: 600; }
.doc-toc a:hover { background: var(--surface-2); color: var(--ink); }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 8px 36px 40px; box-shadow: var(--shadow); }
.doc section { margin-top: 40px; }
.doc h2 { font-size: 22px; font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 16px; font-weight: 700; margin-top: 24px; }
.doc p, .doc li { font-size: 15px; }
.doc p { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 10px 0 0; }
.doc li + li { margin-top: 4px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { width: 34%; font-weight: 700; }
.doc .table-wrap { overflow-x: auto; }
.doc .doc-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-top: 28px; padding-bottom: 0; border-bottom: 0; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.doc h3 { margin-top: 30px; padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.4; }
.doc .sub { padding-left: 1.4em; margin-top: 4px; }
.doc .raw-link { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.doc[aria-busy="true"] { opacity: .6; transition: opacity .2s ease; }
.doc-toc .toc-label { padding: 12px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.doc-toc .toc-label:first-child { padding-top: 4px; }
.doc-toc a.active { background: var(--green-soft); color: var(--link); }

.policy-map { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.pm-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); corner-shape: superellipse(1.5); padding: 22px; box-shadow: var(--shadow); }
.pm-col h2 { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; }
.pm-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); color: var(--ink); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.pm-item + .pm-item { margin-top: 8px; }
.pm-item:hover { transform: translateX(3px); background: var(--surface-2); }
.pm-item img { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.pm-item strong { display: block; font-size: 15px; line-height: 1.4; }
.pm-item small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 760px) { .policy-map { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; background: transparent; border: 0; padding: 0; }
  .doc-toc a { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 12px; border-radius: 999px; }
  .doc-toc .toc-label { display: none; }
  .doc { padding: 4px 20px 28px; }
}

/* ---------- 単体ページ（同意撤回など。ヘッダーなし） ---------- */
body.solo-page { padding-top: 0; }
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.solo .card { max-width: 560px; width: 100%; text-align: center; }
.solo h1 { font-size: 22px; font-weight: 800; margin-top: 16px; }
.solo p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.solo .btn-row { justify-content: center; margin-top: 24px; }
.solo .logo { justify-content: center; }
.solo .logo img { width: 48px; height: 48px; }

/* ---------- フッター ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 48px; padding: 64px 0 96px; background: var(--night); color: #fff; font-size: 14px; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.site-footer .wrap { position: relative; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .5); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; opacity: .86; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .logo { color: #fff; font-size: 18px; opacity: 1; }
.site-footer .about { color: rgba(255, 255, 255, .6); max-width: 320px; margin-top: 14px; }
.site-footer .wordmark { font-size: clamp(80px, 16vw, 200px); font-weight: 800; letter-spacing: -.06em; line-height: .8; margin-top: 48px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); user-select: none; }
/* 押すとひみつのターミナルが開く（assets/site.js）。目立たせず、マウスを乗せたときだけ少し明るくする */
.site-footer .wordmark[role="button"] { display: inline-block; cursor: pointer; transition: -webkit-text-stroke-color .2s ease; }
.site-footer .wordmark[role="button"]:hover, .site-footer .wordmark[role="button"]:focus-visible { -webkit-text-stroke-color: rgba(255, 255, 255, .45); outline: none; }
.doc-lang-note { padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13.5px; margin-bottom: 18px; }
.site-footer .legal { margin-top: 20px; color: rgba(255, 255, 255, .5); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 680px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Y-FILTER. のアイコン（盾）を入れるタイル ---------- */
/* 盾の形のアイコンは白い四角にそのまま入れると角が余って見えるので、暗いタイルに余白をとって入れる */
img.yf-tile.yf-tile {
  box-sizing: border-box; object-fit: contain; padding: 6px;
  background: radial-gradient(120% 120% at 30% 15%, #2a2f3a 0%, #12151b 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(13, 16, 20, .22);
}
.product-card img.yf-tile.yf-tile, .yf-final img.yf-tile.yf-tile { padding: 11px; }
.pm-item img.yf-tile.yf-tile { padding: 8px; }

/* ---------- SK's Lab ---------- */
.lab-notice { background: var(--tint-blue); color: var(--link); }
.lab-list { display: flex; flex-direction: column; gap: 24px; }
.lab-item { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 32px; }
.lab-item--reverse .lab-shot { order: 2; }
.lab-shot .window img { display: block; width: 100%; }
.lab-head { display: flex; align-items: center; gap: 14px; }
.lab-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.lab-head .badge { margin-top: 4px; }
.badge-lab { background: var(--green-soft); color: var(--link); }
.lab-body > p { color: var(--muted); margin-top: 16px; }
.lab-points { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.lab-points li { position: relative; padding-left: 22px; }
.lab-points li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .lab-item { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .lab-item--reverse .lab-shot { order: 0; }
}

/* ---------- Status ---------- */
/* 全体の状態（丸）。--st（状態の色）は @property で登録しているので、色が変わるときになめらかに移り変わる
   確認中: 青い弧がくるくる回る / 正常: 緑の丸がふくらんでチェックが描かれ、波紋がゆっくり広がる
   遅延: オレンジの「!」 / 停止: 赤の「×」が小さく揺れる */
@property --st { syntax: "<color>"; inherits: true; initial-value: #3b82f6; }
.status-summary { --st: #3b82f6; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; corner-shape: superellipse(1.5); border: 1px solid color-mix(in srgb, var(--st) 22%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--st) 10%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow), 0 14px 40px -18px color-mix(in srgb, var(--st) 45%, transparent); transition: --st .6s ease; }
.status-summary[data-state="ok"] { --st: #16a34a; }
.status-summary[data-state="slow"] { --st: #d97706; }
.status-summary[data-state="down"] { --st: #dc2626; }
.status-summary > div { flex: 1; min-width: 0; }
.status-summary strong { display: block; font-size: 19px; }
.status-summary strong.is-in { animation: orb-text .5s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes orb-text { from { opacity: 0; transform: translateY(6px); } }
.status-summary small { color: var(--muted); font-size: 13px; }
.status-summary .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.status-summary .btn:disabled { opacity: .5; }
.status-summary[data-state="checking"] [data-status-refresh] svg { animation: orb-spin 1s linear infinite; }

.status-orb { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.status-orb-ring, .status-orb-ripple { position: absolute; border-radius: 50%; pointer-events: none; }
.status-orb-ring { inset: 0; background: conic-gradient(from 0deg, transparent 0 55%, var(--st)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px)); opacity: 0; transition: opacity .3s ease; }
.status-summary[data-state="checking"] .status-orb-ring { opacity: 1; animation: orb-spin .9s linear infinite; }
.status-orb-ripple { inset: 10px; border: 2px solid var(--st); opacity: 0; }
.status-summary[data-state="ok"] .status-orb-ripple { animation: orb-ripple 3s cubic-bezier(.22, 1, .36, 1) .5s infinite; }
.status-summary[data-state="ok"] .status-orb-ripple + .status-orb-ripple { animation-delay: 2s; }
.status-summary[data-state="slow"] .status-orb-ripple, .status-summary[data-state="down"] .status-orb-ripple { animation: orb-ripple 1.8s cubic-bezier(.22, 1, .36, 1) .4s infinite; }
.status-summary[data-state="slow"] .status-orb-ripple + .status-orb-ripple, .status-summary[data-state="down"] .status-orb-ripple + .status-orb-ripple { animation-delay: 1.3s; }
.status-orb-core { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--st); display: grid; place-items: center; box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--st) 70%, transparent); transition: width .5s cubic-bezier(.34, 1.56, .64, 1), height .5s cubic-bezier(.34, 1.56, .64, 1); }
.status-summary[data-state="checking"] .status-orb-core { animation: orb-breathe 1.2s ease-in-out infinite; }
.status-summary:not([data-state="checking"]) .status-orb-core { width: 34px; height: 34px; }
.status-summary[data-state="down"] .status-orb-core { animation: orb-shake .5s .35s ease backwards; }
.status-orb-core svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s ease; }
.status-summary[data-state="ok"] .orb-ok, .status-summary[data-state="slow"] .orb-slow, .status-summary[data-state="down"] .orb-down { opacity: 1; transition-delay: .2s; }
.orb-ok path { stroke-dasharray: 22; }
.status-summary[data-state="ok"] .orb-ok path { animation: orb-draw .45s .3s cubic-bezier(.65, 0, .35, 1) backwards; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-ripple { 0% { transform: scale(.75); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes orb-breathe { 50% { transform: scale(.7); opacity: .6; } }
@keyframes orb-draw { from { stroke-dashoffset: 22; } }
@keyframes orb-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.status-group { margin-top: 32px; }
.status-group h2 { font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin-bottom: 10px; }
.status-list { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.status-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.status-row + .status-row { border-top: 1px solid var(--line); }
.status-name { flex: 1; min-width: 0; }
.status-name strong { display: block; font-size: 15px; }
.status-name small { color: var(--muted); font-size: 12.5px; }
.status-ms { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; transition: background-color .35s ease, color .35s ease; }
.status-pill::before { content: ""; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* 結果が出たら点がポンと出る。確認中は小さなスピナー */
.status-row:not([data-state="checking"]) .status-pill::before { animation: orb-dot .45s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.status-row[data-state="ok"] .status-pill::before { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.status-row:not([data-state="checking"]) .status-ms { animation: orb-text .4s ease backwards; }
@keyframes orb-dot { from { transform: scale(0); } }
.status-row[data-state="ok"] .status-pill { background: var(--ok-soft); color: var(--ok-ink); }
.status-row[data-state="slow"] .status-pill { background: var(--slow-soft); color: var(--slow-ink); }
.status-row[data-state="down"] .status-pill { background: var(--down-soft); color: var(--down-ink); }
.status-row[data-state="setup"] .status-pill, .status-row[data-state="unknown"] .status-pill { background: var(--blue-soft); color: var(--blue-ink); }
.status-row[data-state="checking"] .status-pill::before { background: none; border: 2px solid currentColor; border-right-color: transparent; animation: orb-spin .8s linear infinite; }
.status-note { color: var(--muted); font-size: 13px; margin-top: 18px; }
.status-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend i { width: 9px; height: 9px; border-radius: 50%; }
.st-ok { background: #16a34a; } .st-slow { background: #d97706; } .st-down { background: #dc2626; } .st-setup { background: #3b82f6; }
.status-news { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.status-news li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 0 0 22px 24px; }
.status-news li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.status-news time { color: var(--muted); font-size: 14px; font-weight: 600; }
.status-news strong { display: block; font-size: 15.5px; }
.status-news p { color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 600px) {
  .status-summary { flex-wrap: wrap; }
  .status-summary .btn { width: 100%; }
  .status-row { flex-wrap: wrap; gap: 6px 12px; }
  .status-name { flex-basis: 100%; }
  .status-news li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Link & Credit ---------- */
.thanks { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: 34px; border-radius: 30px; corner-shape: superellipse(1.5); background: linear-gradient(135deg, var(--tint-blue), var(--surface) 60%, var(--tint-amber)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.thanks-mark { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--surface); color: #e11d48; box-shadow: 0 10px 24px rgba(225, 29, 72, .15); }
.thanks-mark svg { width: 36px; height: 36px; fill: #ffe4ea; }
.thanks h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.thanks p { color: var(--muted); margin-top: 10px; max-width: 720px; }
.thanks .btn-row { margin-top: 20px; }
@media (max-width: 680px) { .thanks { grid-template-columns: 1fr; padding: 24px; gap: 16px; } .thanks-mark { width: 56px; height: 56px; } }
.credit-list { display: flex; flex-direction: column; gap: 14px; }
.credit { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.credit h3 { font-size: 17px; font-weight: 800; }
.credit-by { font-size: 13px; font-weight: 700; color: var(--link); margin-top: 2px; }
.credit p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.credit-link { display: inline-flex; margin-top: 10px; font-size: 14px; font-weight: 700; }
.credit--small { padding: 20px 22px; }
.credit--small h3 { font-size: 15.5px; }
.credit--small p { font-size: 13.5px; margin-top: 4px; }
.font-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.font-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.font-sample { font-size: 30px; font-weight: 700; line-height: 1; width: 64px; text-align: center; color: var(--link); }
.font-item strong { display: block; }
.font-item small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .font-list { grid-template-columns: 1fr; } }
/* トップのプロダクト欄の SK's Lab */
.lab-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; margin-top: 20px; padding: 26px 28px; text-decoration: none; color: inherit; background: linear-gradient(135deg, var(--tint-blue), var(--surface) 70%); transition: transform .25s ease, box-shadow .25s ease; }
.lab-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(13, 16, 20, .04), 0 24px 48px rgba(13, 16, 20, .12); }
.lab-card-head { display: flex; align-items: center; gap: 14px; }
.lab-card-head h3 { font-size: 22px; font-weight: 800; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.lab-card-head .kind { color: var(--muted); font-size: 13px; font-weight: 600; }
.lab-card-head .badge { margin-left: auto; }
.lab-card-text p { color: var(--muted); margin-top: 14px; }
.lab-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--link); }
.lab-card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.lab-card:hover .more svg { transform: translateX(3px); }
.lab-card-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lab-card-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 12px; }
.lab-card-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; margin-bottom: 10px; }
.lab-card-item strong { display: block; font-size: 14px; padding: 0 4px; }
.lab-card-item small { display: block; color: var(--muted); font-size: 12px; padding: 0 4px; }
.hub-card { background: linear-gradient(135deg, var(--tint-blue), var(--surface) 70%); }
.hub-card-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--surface); padding: 5px; box-sizing: border-box; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.hub-card-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hub-card-items li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.hub-card-items .tile-ico { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.hub-card-items .tile-ico svg { width: 19px; height: 19px; }
.hub-card-items strong { display: block; font-size: 14px; }
.hub-card-items small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .lab-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; } }
/* ---------- アップデート ---------- */
.updates-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.updates-list li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 0 0 26px 24px; }
.updates-list li:last-child { padding-bottom: 4px; }
.updates-list li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.updates-list li.update-empty { display: block; color: var(--muted); }
.updates-list li.update-empty::before { display: none; }
.updates-list time { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 2px; }
.updates-list strong { display: block; font-size: 16px; margin-top: 6px; line-height: 1.5; }
.updates-list p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.update-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.update-cat.cat-sk { background: var(--green-soft); color: var(--link); }
.update-cat.cat-yf { background: var(--yf-soft); color: var(--yf); }
.update-cat.cat-hub { background: var(--blue-soft); color: var(--blue); }
.update-cat.cat-malu { background: var(--malu-soft); color: var(--malu); }
.update-cat.cat-nagi { background: var(--nagi-soft); color: var(--nagi); }
.update-cat.cat-lab { background: var(--lab-soft); color: var(--lab); }
.update-link { display: inline-flex; margin-top: 6px; font-size: 13.5px; font-weight: 700; }
.update-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 700; text-decoration: none; }
.update-more svg { width: 16px; height: 16px; }
.update-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.update-filters button { font: inherit; font-size: 13.5px; font-weight: 700; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.update-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.home-updates { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.home-updates-list { padding: 28px 28px 24px; }
.home-updates-list .updates-list li { grid-template-columns: 1fr; gap: 0; padding-bottom: 22px; }
.home-updates-list .updates-list time { font-size: 13px; padding-top: 0; }
.home-updates-side { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .home-updates { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .updates-list li { grid-template-columns: 1fr; gap: 2px; } }
/* ---------- お知らせ ---------- */
.news-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--important-soft); color: var(--important-ink); }
.news-pill { max-width: 100%; }
.news-pill-tag { flex: none; height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; background: var(--green-soft); color: var(--link); }
.news-pill.is-important .news-pill-tag { background: var(--important-soft); color: var(--important-ink); }
.news-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.news-pill svg { width: 14px; height: 14px; flex: none; color: var(--muted); }

/* ---------- サポート ---------- */
.faq-search { display: flex; align-items: center; gap: 12px; max-width: 620px; margin-top: 26px; padding: 0 18px; height: 54px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.faq-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15.5px; background: transparent; color: var(--ink); }
.faq-search:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.faq-empty { padding: 18px 20px; border-radius: 16px; background: var(--surface-2); color: var(--muted); margin-bottom: 20px; }
.support-bottom { align-items: stretch; }
.support-contact ol { margin: 12px 0 18px; padding-left: 1.3em; color: var(--muted); font-size: 14.5px; }
.support-contact li + li { margin-top: 4px; }

/* 記事一覧（お知らせ・サポート記事） */
.help-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.help-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; }
.help-tabs button { font: inherit; font-size: 14px; font-weight: 700; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.help-tabs button:hover { color: var(--ink); }
.help-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.help-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.help-cats button { font: inherit; font-size: 13px; font-weight: 700; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.help-cats button:hover { color: var(--ink); background: var(--surface); }
.help-cats button[aria-pressed="true"] { background: var(--green-soft); color: var(--link); box-shadow: inset 0 0 0 1px var(--accent-line); }
.help-count { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.help-count:empty { display: none; }
.help-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help-list > .faq-empty, .help-list > .update-empty { grid-column: 1 / -1; }
.help-card { display: flex; flex-direction: column; padding: 22px 24px; border-radius: 22px; corner-shape: superellipse(1.5); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.help-card h2 { font-size: 16.5px; font-weight: 800; line-height: 1.5; margin-top: 12px; }
.help-card p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.help-card--news { background: linear-gradient(135deg, var(--tint-blue), var(--surface) 55%); }
.help-card--important { grid-column: 1 / -1; border-color: #f5c46b; background: linear-gradient(135deg, var(--tint-amber), var(--surface) 55%); }
.help-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.help-meta time { color: var(--muted); font-size: 13px; font-weight: 600; margin-left: 2px; }
.help-type { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.help-type--news { background: var(--ink); color: var(--bg); }
.help-type--guide { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) { .help-list { grid-template-columns: 1fr; } .help-card { padding: 20px; } }

/* 記事 */
.help-article { max-width: 780px; margin: 36px auto 0; padding: 36px 44px 40px; border-radius: 28px; corner-shape: superellipse(1.5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.help-crumbs { margin-bottom: 22px; }
.help-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; }
.help-back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.help-article > h1 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; margin-top: 12px; }
.help-body { margin-top: 22px; font-size: 15.5px; line-height: 1.9; }
.help-body code, .hub-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.help-body > * + * { margin-top: 14px; }
.help-body h3 { font-size: 17.5px; font-weight: 800; margin-top: 30px; line-height: 1.5; }
.help-body h3:first-child { margin-top: 0; }
.help-note { padding: 14px 18px; border-radius: 16px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14.5px; line-height: 1.8; }
.help-steps { list-style: none; counter-reset: step; margin-left: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.help-steps li { counter-increment: step; position: relative; padding: 12px 16px 12px 54px; border-radius: 16px; background: var(--surface-2); line-height: 1.7; }
.help-steps li::before { content: counter(step); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 800; }
.help-bullets { padding-left: 1.3em; }
.help-bullets li + li { margin-top: 4px; }
.help-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.help-related h2 { font-size: 15px; font-weight: 800; color: var(--muted); }
.help-related ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.help-related li a { display: block; padding: 10px 0; font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1px dashed var(--line); }
.help-related li:last-child a { border-bottom: 0; }
.help-related li a:hover { text-decoration: underline; }
.help-solved { margin-top: 24px; padding: 16px 20px; border-radius: 16px; background: var(--green-soft); font-size: 14.5px; }
@media (max-width: 600px) { .help-article { padding: 24px 20px 28px; border-radius: 22px; } .help-steps li { padding-left: 50px; } }

/* ---------- SK Hub Systems アカウント ---------- */
/* ログイン前・アカウントの作成は中央にまとめ、ログイン後は「左に項目の一覧・右にタイル」（Apple Account のページの形） */
.acct {
  --acct-ink: #1d1d1f;
  --acct-muted: #6e6e73;
  --acct-tile: #f5f5f7;
  --acct-tile-hover: #ebebef;
  --acct-line: #d2d2d7;
  --acct-blue: var(--accent);
  --acct-link: var(--link);
  --acct-red: #d70015;
  --acct-bg: #ffffff;
  background: var(--acct-bg);
  color: var(--acct-ink);
  min-height: calc(100vh - 52px);
  padding-bottom: 96px;
}
.acct.is-busy { cursor: progress; }
/* ほかのページ（受信箱・記事エディター・お問い合わせ）でも使う部品 */
.acct-loading { color: var(--muted); text-align: center; padding: 48px 28px; }
.acct .acct-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 120px 0; color: var(--acct-muted); font-size: 15px; }
.acct-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--acct-line); border-top-color: var(--acct-muted); animation: acct-spin .8s linear infinite; }
@keyframes acct-spin { to { transform: rotate(360deg); } }
.acct-msg { color: #b42318; font-size: 14px; font-weight: 600; margin-top: 12px; }
.acct-msg:empty { display: none; }
.acct-h { font-size: 17px; font-weight: 800; }
.acct-google { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; min-height: 52px; padding: 0 24px 0 18px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.acct-google:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(13, 16, 20, .05), 0 14px 30px rgba(13, 16, 20, .12), inset 0 0 0 1px var(--line); }
.acct-google:disabled { opacity: .6; cursor: progress; transform: none; }
.acct-google svg { width: 22px; height: 22px; }
.acct-microsoft svg, .acct-github svg { width: 20px; height: 20px; }
.acct-link-box .acct-signins { margin-top: 10px; }
.acct-signins { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.acct-center .acct-signins .acct-google { margin-top: 0; min-width: 260px; justify-content: center; }
.acct-google[hidden], .acct-link-box[hidden] { display: none; }
/* これから追加する予定のログイン（押せない） */
.acct-google.acct-soon, .acct-google.acct-soon:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.acct-soon-tag { margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--line); font-size: 11.5px; font-weight: 700; }
.acct-center .acct-signins { margin-top: 32px; }
.acct-link-box { max-width: 460px; margin: 18px auto 0; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.acct-link-box p { margin: 0 0 4px; font-size: 14px; line-height: 1.7; color: var(--muted, inherit); }
.acct-link-box .acct-google { margin-top: 10px; }
/* ログインの方法（サインインとセキュリティ） */
.acct-subtitle { margin: 18px 0 10px; font-size: 15px; font-weight: 700; }
.acct-logins { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.acct-login-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.acct-login-logo { flex: none; width: 28px; height: 28px; background: center / contain no-repeat; }
.acct-login-logo--google { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E"); }
.acct-login-logo--github { width: 26px; height: 26px; margin: 1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23181717' d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .acct-login-logo--github { filter: invert(1); }
.acct-login-logo--microsoft { width: 24px; height: 24px; margin: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 23'%3E%3Cpath fill='%23f25022' d='M1 1h10v10H1z'/%3E%3Cpath fill='%237fba00' d='M12 1h10v10H12z'/%3E%3Cpath fill='%2300a4ef' d='M1 12h10v10H1z'/%3E%3Cpath fill='%23ffb900' d='M12 12h10v10H12z'/%3E%3C/svg%3E"); }
.acct-login-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-login-text small { font-size: 12.5px; opacity: .7; }
.acct-login-link { font-size: 13px; }
.acct-login-btn { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--surface); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.acct-login-btn.is-unlink { background: none; color: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.acct-login-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ページの見出しの帯（ログイン後。ヘッダーの下に貼り付く） */
.acct-localnav { position: sticky; top: 51px; z-index: 50; background: color-mix(in srgb, var(--acct-bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--acct-line); }
.acct-localnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.acct-localnav-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.acct-localnav-link { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 13.5px; color: var(--acct-link); cursor: pointer; }
.acct-localnav-link:hover { text-decoration: underline; }
.acct-localnav[hidden] { display: none; }

/* 丸いボタン */
.acct-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--acct-tile); color: var(--acct-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.acct-pill:hover { background: var(--acct-tile-hover); }
.acct-pill--primary { background: var(--acct-blue); color: var(--accent-ink); }
.acct-pill--primary:hover { background: color-mix(in srgb, var(--acct-blue) 88%, #fff); }
.acct-pill--danger { background: var(--acct-red); color: #fff; }
.acct-pill--danger:hover { background: #e30019; }
.acct-pill:disabled { opacity: .4; cursor: default; }

/* ---------- ログイン前・アカウントの作成・エラー（中央） ---------- */
.acct-center { max-width: 560px; margin: 0 auto; padding: 88px 0 24px; text-align: center; }
.acct-center--wide { max-width: 720px; }
.acct-center-logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 22px; display: block; }
.acct-center-title { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.acct-center-lead { margin: 14px auto 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--acct-muted); }
.acct-center .acct-google { margin-top: 32px; }
.acct-center-note { margin: 18px auto 0; max-width: 440px; font-size: 13px; color: var(--acct-muted); }
.acct-center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.acct-points { list-style: none; margin: 64px 0 0; padding: 36px 0 0; border-top: 1px solid var(--acct-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left; }
.acct-points li { display: flex; flex-direction: column; gap: 6px; }
.acct-points .tile-ico { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 6px; }
.acct-points .tile-ico svg { width: 20px; height: 20px; }
.acct-points strong { font-size: 15px; }
.acct-points small { color: var(--acct-muted); font-size: 13px; line-height: 1.6; }
.acct-center--wide .acct-user { display: flex; justify-content: center; margin-bottom: 22px; }
.acct-user-chip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--acct-tile); text-align: left; }
.acct-user-chip img { width: 40px; height: 40px; border-radius: 50%; }
.acct-user-chip strong { display: block; font-size: 14.5px; line-height: 1.3; }
.acct-user-chip small { display: block; color: var(--acct-muted); font-size: 12.5px; }
.acct-data { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; text-align: left; }
.acct-data > div { padding: 20px 22px; border-radius: 18px; background: var(--acct-tile); }
.acct-data h3 { font-size: 15px; font-weight: 700; }
.acct-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.6; }
.acct-list li { position: relative; padding-left: 26px; }
.acct-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: center / 12px no-repeat; }
.acct-list--yes li::before { background-color: var(--green-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.acct-list--no li::before { background-color: var(--down-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.acct-agree { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--acct-line); cursor: pointer; font-size: 14.5px; line-height: 1.7; text-align: left; }
.acct-agree input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--acct-blue); }
.acct-agree:has(input:checked) { border-color: var(--accent-line); background: var(--tint-blue); }
.acct-agree a { color: var(--acct-link); }
.acct-agree small { display: block; margin-top: 2px; color: var(--acct-muted); font-size: 12.5px; line-height: 1.6; }
.acct-agree + .acct-agree { margin-top: 10px; }

/* ---------- ログイン後（左に項目の一覧、右にタイル） ---------- */
.acct-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; }
.acct-next { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: var(--tint-blue); color: var(--acct-link); font-weight: 600; }
.acct-sidebar { position: sticky; top: 132px; min-width: 0; }
.acct-me { text-align: center; padding-bottom: 24px; }
.acct-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto; display: block; object-fit: cover; }
.acct-avatar--letter { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 40px; font-weight: 600; }
.acct-avatar[hidden] { display: none; }
.acct-me-name { margin-top: 14px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.acct-me-email { margin-top: 2px; font-size: 14px; color: var(--acct-muted); overflow-wrap: anywhere; }
.acct-nav { display: flex; flex-direction: column; gap: 2px; }
.acct-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--acct-muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: background .15s ease, color .15s ease; }
.acct-nav a:hover { color: var(--acct-ink); background: var(--acct-tile); }
.acct-nav a[aria-current="page"] { color: var(--acct-ink); font-weight: 700; background: var(--acct-tile); }
.acct-nav a[hidden] { display: none; }
.acct-nav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--acct-red); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.acct-nav-count[hidden] { display: none; }

.acct-main { min-width: 0; }
.acct-section[hidden] { display: none; }
.acct-section { animation: acct-in .25s ease; }
@keyframes acct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.acct-section-title { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.acct-section-lead { margin-top: 10px; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--acct-muted); }

/* タイル */
.acct-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.acct-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 120px; padding: 22px 56px 22px 24px; border: 0; border-radius: 18px; background: var(--acct-tile); color: var(--acct-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.acct-tile:hover { background: var(--acct-tile-hover); }
.acct-tile:active { transform: scale(.99); }
.acct-tile:focus-visible { outline: 2px solid var(--acct-blue); outline-offset: 2px; }
.acct-tile:disabled { opacity: .6; cursor: progress; }
.acct-tile.is-static { cursor: default; padding-right: 24px; }
.acct-tile.is-static:hover { background: var(--acct-tile); }
.acct-tile.is-static:active { transform: none; }
.acct-tile-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.acct-tile-value { font-size: 15px; color: var(--acct-muted); line-height: 1.55; overflow-wrap: anywhere; }
.acct-tile-value code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.acct-tile-note { font-size: 13px; color: var(--acct-muted); line-height: 1.55; }
.acct-tile-mark { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; fill: none; stroke: var(--acct-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acct-tile--app { padding-top: 20px; }
.acct-tile--app > img, .acct-tile--app > .tile-ico { width: 44px; height: 44px; margin-bottom: 10px; }
.acct-tile--app > img { border-radius: 12px; padding: 5px; box-sizing: border-box; background: #fff; }
.acct-tile--app > .tile-ico { border-radius: 12px; }
.acct-tile--app > .tile-ico svg { width: 22px; height: 22px; }
.acct-tile.is-soon { background: var(--acct-bg); box-shadow: inset 0 0 0 1px var(--acct-line); }
.acct-tile.is-soon:hover { background: var(--acct-bg); }
.acct-tile--danger .acct-tile-title { color: var(--acct-red); }
.acct-select { margin-top: 12px; font: inherit; font-size: 15px; color: var(--acct-ink); background: var(--acct-bg); border: 1px solid var(--acct-line); border-radius: 10px; padding: 8px 12px; min-width: 180px; }
.acct-select:focus { outline: 0; border-color: var(--acct-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acct-blue) 20%, transparent); }
.acct-pill--small { min-height: 34px; padding: 0 16px; font-size: 13.5px; text-decoration: none; }
.acct-tile .acct-pill:not(.acct-pill--primary) { background: var(--acct-bg); }
.acct-tile .acct-pill:not(.acct-pill--primary):hover { background: var(--acct-tile-hover); }
.acct-tile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acct-tile[hidden] { display: none; }
.acct-subtitle { margin-top: 44px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.acct-subtitle + .acct-tiles { margin-top: 16px; }
.acct-empty { margin-top: 32px; padding: 28px 24px; border-radius: 18px; background: var(--acct-tile); color: var(--acct-muted); text-align: center; }
.acct-empty[hidden] { display: none; }
[data-acct-connected]:not(:has(.acct-tile:not([hidden]))) { display: none; }

/* サービスへの接続の確認 */
.acct-connect .acct-center-title { font-size: clamp(26px, 4vw, 36px); }
.acct-connect-icons { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; }
.acct-connect-icons img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.acct-connect-icons img.yf-tile { padding: 8px; box-sizing: border-box; background: var(--surface); }
.acct-connect-link { display: flex; gap: 5px; }
.acct-connect-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--acct-line); animation: acct-dots 1.2s ease-in-out infinite; }
.acct-connect-link i:nth-child(2) { animation-delay: .15s; }
.acct-connect-link i:nth-child(3) { animation-delay: .3s; }
@keyframes acct-dots { 0%, 100% { background: var(--acct-line); } 40% { background: var(--acct-blue); } }
.acct-connect .acct-user { display: flex; justify-content: center; margin-top: 24px; }
.acct-connect-box { margin-top: 24px; padding: 20px 22px; border-radius: 18px; background: var(--acct-tile); text-align: left; }
.acct-connect-box h3 { font-size: 15px; font-weight: 700; }
.acct-connect-box p { margin-top: 12px; font-size: 13px; color: var(--acct-muted); }
.acct-center-note a { color: var(--acct-link); }
.acct-msg--toast { margin-top: 24px; padding: 12px 16px; border-radius: 12px; background: var(--acct-tile); color: var(--acct-ink); font-weight: 500; }

/* お知らせ */
.acct-unread { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--down-soft); color: var(--acct-red); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.acct-unread[hidden] { display: none; }
.acct-notice-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.acct-notice { position: relative; padding: 20px 24px; border-radius: 18px; background: var(--acct-tile); }
.acct-notice.is-unread { background: var(--tint-blue); }
.acct-notice-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--acct-muted); }
.acct-notice-kind { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--acct-bg); font-weight: 600; color: var(--acct-ink); }
.acct-notice-kind.is-sk { background: var(--acct-blue); color: var(--accent-ink); }
.acct-notice-new { color: var(--acct-red); font-weight: 700; }
.acct-notice-new::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.acct-notice-title { display: block; margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--acct-ink); text-decoration: none; overflow-wrap: anywhere; }
a.acct-notice-title:hover { color: var(--acct-link); text-decoration: underline; }
.acct-notice-body { margin-top: 4px; color: var(--acct-muted); font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
.acct-notice-body.is-full { color: var(--acct-ink); white-space: pre-wrap; font-size: 15px; line-height: 1.8; }
.acct-notice-delete { margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--acct-link); cursor: pointer; }
.acct-notice-delete:hover { text-decoration: underline; }
.acct-notice-empty { padding: 28px 24px; border-radius: 18px; background: var(--acct-tile); color: var(--acct-muted); font-size: 15px; text-align: center; }
.acct-more { display: inline-block; margin-top: 18px; font-size: 15px; color: var(--acct-link); text-decoration: none; }
.acct-more:hover { text-decoration: underline; }
.acct-more::after { content: " ›"; }

/* ダイアログ（プロフィールの編集・削除の確認） */
.acct-dialog { max-width: 480px; width: calc(100% - 32px); border: 0; border-radius: 22px; padding: 30px; color: var(--acct-ink); background: var(--acct-bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.acct-dialog::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); }
.acct-dialog[open] { animation: acct-pop .22s ease; }
@keyframes acct-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.acct-dialog h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.acct-dialog p { color: var(--acct-muted); font-size: 14.5px; margin-top: 8px; }
.acct-dialog .acct-agree { margin: 18px 0 0; }
.acct-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.acct-dialog .acct-pill { min-height: 40px; padding: 0 20px; font-size: 14.5px; background: var(--acct-tile); color: var(--acct-ink); }
.acct-dialog .acct-pill:hover { background: var(--acct-tile-hover); }
.acct-dialog .acct-pill--primary { background: var(--acct-blue); color: var(--accent-ink); }
.acct-dialog .acct-pill--primary:hover { background: color-mix(in srgb, var(--acct-blue) 88%, #fff); }
.acct-dialog .acct-pill--danger { background: var(--acct-red); color: #fff; }
.acct-profile-preview { display: flex; align-items: center; gap: 14px; margin: 20px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--acct-tile); }
.acct-profile-preview .acct-avatar { width: 52px; height: 52px; margin: 0; font-size: 22px; flex: none; }
.acct-profile-preview strong { font-size: 16px; overflow-wrap: anywhere; min-width: 0; }
.acct-field { display: block; border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.acct-field > span, .acct-field legend { display: block; padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.acct-field input[type="text"] { width: 100%; font: inherit; font-size: 16px; color: var(--acct-ink); background: var(--acct-bg); border: 1px solid var(--acct-line); border-radius: 12px; padding: 11px 14px; }
.acct-field input[type="text"]:focus { outline: 0; border-color: var(--acct-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acct-blue) 20%, transparent); }
.acct-field small { display: block; color: var(--acct-muted); font-size: 12.5px; margin-top: 6px; }
.acct-radio { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; cursor: pointer; }
.acct-radio[hidden] { display: none; }
.acct-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--acct-blue); }
.acct-colors { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px 28px; transition: opacity .15s ease; }
.acct-colors.is-off { opacity: .45; }
.acct-color { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--acct-bg), 0 0 0 3px transparent; transition: box-shadow .15s ease, transform .15s ease; }
.acct-color:hover { transform: scale(1.08); }
.acct-color[aria-checked="true"] { box-shadow: 0 0 0 3px var(--acct-bg), 0 0 0 5px var(--acct-ink); }
.acct-color:focus-visible { outline: 2px solid var(--acct-blue); outline-offset: 3px; }

/* お問い合わせの受信箱: アカウントへの返事 */
.inbox-reply { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.inbox-reply label { display: block; font-size: 13.5px; font-weight: 800; }
.inbox-reply textarea { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; resize: vertical; }
.inbox-reply .btn-row { margin-top: 10px; }
.inbox-reply .btn { min-height: 38px; padding: 0 16px; font-size: 13px; }

@media (max-width: 860px) {
  .acct-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .acct-sidebar { position: static; }
  .acct-me { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; text-align: left; padding-bottom: 18px; }
  .acct-me .acct-avatar { width: 64px; height: 64px; margin: 0; grid-row: 1 / 3; font-size: 26px; }
  .acct-me-name { margin-top: 0; font-size: 20px; align-self: end; }
  .acct-me-email { align-self: start; }
  /* 項目の一覧は横に並べてスクロール */
  .acct-nav { flex-direction: row; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--acct-tile); font-size: 14px; white-space: nowrap; }
  .acct-nav a[aria-current="page"] { background: var(--acct-ink); color: var(--acct-bg); }
  .acct-nav a[aria-current="page"] .acct-nav-count { background: var(--acct-bg); color: var(--acct-red); }
  .acct-points { grid-template-columns: 1fr; gap: 18px; margin-top: 48px; }
}
@media (max-width: 640px) {
  .acct-tiles { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .acct-tile { min-height: 0; }
  .acct-center { padding-top: 56px; }
  .acct-data { grid-template-columns: 1fr; }
  .acct-localnav-title { font-size: 17px; }
  .acct-section-lead { font-size: 15.5px; }
}

/* ---------- お問い合わせ ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.contact-form, .contact-done { grid-column: 1; grid-row: 1; padding: 30px 32px; }
.contact-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 18px; }
.contact-field { display: block; border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.contact-field legend, .contact-label { display: block; padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 800; }
.contact-label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.contact-form select, .contact-form textarea, .contact-form input[type="email"] { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.contact-form select:focus, .contact-form textarea:focus, .contact-form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-chips label { cursor: pointer; }
.contact-chips input { position: absolute; opacity: 0; pointer-events: none; }
.contact-chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s ease, color .15s ease; }
.contact-chips input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.contact-chips input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-attach { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); cursor: pointer; font-size: 14.5px; font-weight: 600; }
.contact-attach input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.contact-attach small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.contact-attach code { font-size: 11.5px; }
.contact-note { color: var(--muted); font-size: 13px; margin: 16px 0 18px; }
.contact-done { text-align: center; }
.contact-done:focus { outline: 0; }
.contact-done .tile-ico { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; }
.contact-done .tile-ico svg { width: 28px; height: 28px; }
.contact-done h2 { font-size: 24px; font-weight: 800; }
.contact-done p { color: var(--muted); margin-top: 8px; }
.contact-done .btn-row { justify-content: center; margin-top: 20px; }
.contact-receipt code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; color: var(--ink); background: var(--surface-2); padding: 3px 10px; border-radius: 8px; }
.contact-links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-links a { font-weight: 700; text-decoration: none; }
.contact-links small { display: block; color: var(--muted); font-size: 12.5px; }
.contact-side-text { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-side { grid-column: 1; grid-row: auto; }
  .contact-form, .contact-done { padding: 22px; }
}

/* ---------- お問い合わせの受信箱（開発者用） ---------- */
.inbox-gate { max-width: 560px; margin: 0 auto; text-align: center; padding: 36px 28px; }
.inbox-gate h2 { font-size: 22px; font-weight: 800; }
.inbox-gate p { color: var(--muted); margin-top: 8px; }
.inbox-gate .btn-row { justify-content: center; margin-top: 18px; }
.inbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.inbox-toolbar [data-inbox-count]:not(:empty)::before { content: "・"; }
.inbox-hint { color: var(--muted); font-size: 13px; }
.inbox-list { display: flex; flex-direction: column; gap: 14px; }
.inbox-item { padding: 22px 24px; }
.inbox-item.is-done { box-shadow: none; opacity: .78; }
.inbox-message { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.8; }
.inbox-info { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; }
.inbox-info > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.inbox-info dt { color: var(--muted); }
.inbox-info dd { margin: 0; overflow-wrap: anywhere; }
.inbox-info code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.inbox-muted { color: var(--muted); font-size: 12.5px; }
.inbox-actions { margin-top: 16px; }
.inbox-actions .btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
.inbox-delete { color: #b42318; }

/* ---------- 記事エディター（開発者用） ---------- */
.studio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
/* ログインの状態で出し分ける画面（アカウント・受信箱・記事エディター）。hidden のものは、要素の display の指定より優先して隠す */
[data-acct-view][hidden], [data-inbox-view][hidden], [data-studio-view][hidden] { display: none !important; }
.studio-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 96px); }
.studio-side-head { display: flex; flex-direction: column; gap: 10px; }
.studio-side-head .btn svg { width: 18px; height: 18px; }
.studio-search { width: 100%; font: inherit; font-size: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.studio-search:focus { outline: 0; border-color: var(--accent); }
.studio-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; min-height: 60px; }
.studio-item { display: block; width: 100%; text-align: left; font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.studio-item:hover { border-color: var(--line-strong); }
.studio-item.is-active { border-color: var(--accent); background: var(--tint-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.studio-item-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.studio-item strong { display: block; font-size: 14px; line-height: 1.5; margin-top: 6px; }
.studio-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.studio-draft { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--surface-2); color: var(--muted); border: 1px dashed #b8c0cc; }
.studio-empty { color: var(--muted); font-size: 13px; padding: 8px 4px; }
.studio-import { padding: 14px; border-radius: 16px; background: var(--green-soft); font-size: 13.5px; }
.studio-import .btn { margin-top: 10px; min-height: 38px; font-size: 13px; }
.studio-backup { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--link); background: none; border: 0; padding: 4px; cursor: pointer; text-align: left; }
.studio-editor { padding: 26px 28px; }
.studio-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.studio-editor-head strong { font-size: 18px; font-weight: 800; }
.studio-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.studio-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.studio-toggle span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); transition: background .2s ease; }
.studio-toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.studio-toggle input:checked + span { background: #16a34a; }
.studio-toggle input:checked + span::after { transform: translateX(18px); }
.studio-toggle input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.studio-editor input:not([type="checkbox"]), .studio-editor select, .studio-editor textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.studio-editor input:focus, .studio-editor select:focus, .studio-editor textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.studio-editor input[readonly] { background: var(--surface-2); color: var(--muted); }
.studio-editor textarea { resize: vertical; min-height: 320px; line-height: 1.8; font-size: 14.5px; }
.studio-important { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.studio-important[hidden] { display: none; }
.studio-important input { accent-color: #d97706; width: 17px; height: 17px; }
.studio-langs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-2); }
.studio-langs button { font: inherit; font-size: 13px; font-weight: 700; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; position: relative; }
.studio-langs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(13, 16, 20, .12); }
.studio-langs button.has-text::after { content: ""; position: absolute; top: 6px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.studio-lang-hint { margin: -6px 0 14px; font-size: 12.5px; color: var(--muted); }
.studio-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.studio-preview-wrap { min-width: 0; }
.studio-preview { max-width: none; margin: 0; padding: 20px 22px; box-shadow: none; border-radius: 16px; max-height: 560px; overflow-y: auto; }
.studio-preview > h1 { font-size: 22px; }
.studio-preview .help-body { font-size: 14.5px; }
.studio-help { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.studio-help summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.studio-help table { margin-top: 10px; border-collapse: collapse; font-size: 13.5px; width: 100%; }
.studio-help td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.studio-help td:first-child { white-space: nowrap; width: 40%; }
.studio-help code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.studio-help .studio-grid { margin-top: 12px; }
.studio-actions { margin-top: 20px; }
.studio-msg { margin-top: 12px; font-size: 14px; font-weight: 600; color: #15803d; }
.studio-msg:empty { display: none; }
.studio-msg.is-error { color: #b42318; }
@media (max-width: 1100px) { .studio-body { grid-template-columns: 1fr; } .studio-preview { max-height: none; } }
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .studio-side { position: static; max-height: none; }
  .studio-list { max-height: 320px; }
  .studio-editor { padding: 20px; }
}

/* ---------- 言語を選ぶ（/lang/） ---------- */
.lang-screen { min-height: calc(100vh - 52px); display: grid; place-items: center; align-content: center; gap: 14px; padding: 48px 16px 96px; }
.lang-card { width: 100%; max-width: 440px; padding: 36px 28px 28px; background: var(--surface); border-radius: 32px; corner-shape: superellipse(1.5); box-shadow: 0 30px 80px -30px rgba(13, 16, 20, .28), 0 0 0 1px var(--line); text-align: center; transition: padding .35s cubic-bezier(.22, 1, .36, 1); }
.lang-head { min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lang-globe { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 25%, var(--tint-blue), var(--green-soft)); box-shadow: inset 0 0 0 1px var(--accent-line); }
.lang-globe svg { width: 34px; height: 34px; }
.lang-globe.is-in svg { animation: lang-spin 1.2s cubic-bezier(.22, 1, .36, 1); }
@keyframes lang-spin { from { transform: rotate(-120deg) scale(.6); opacity: 0; } }
.lang-title { font-size: 24px; font-weight: 800; margin-top: 16px; transition: opacity .2s ease, transform .2s ease; }
.lang-desc { color: var(--muted); margin-top: 4px; font-size: 15px; transition: opacity .2s ease, transform .2s ease; }
.lang-card.is-switching .lang-title, .lang-card.is-switching .lang-desc, .lang-card.is-switching .lang-note { opacity: 0; transform: translateY(6px); }
.lang-card.is-chosen .lang-globe { animation: lang-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes lang-pop { 40% { transform: scale(.86); } }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.lang-item { font: inherit; font-size: 15px; font-weight: 700; height: 52px; border-radius: 16px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }
.lang-item:hover { background: var(--surface-3); }
.lang-item:active { transform: scale(.97); }
.lang-item[aria-checked="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(13, 16, 20, .5); }
.lang-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lang-continue { font: inherit; font-size: 16px; font-weight: 800; width: 100%; height: 0; margin-top: 0; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); cursor: pointer; opacity: 0; overflow: hidden; transform: translateY(8px); transition: height .35s cubic-bezier(.22, 1, .36, 1), margin .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.lang-card.is-chosen .lang-continue { height: 54px; margin-top: 18px; opacity: 1; transform: none; box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.lang-continue:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.lang-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; transition: opacity .2s ease, transform .2s ease; }
.lang-cancel { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.lang-cancel:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
/* 引っ越しのお知らせ（.sk-dn）は、言語の画面では出さない */
.lang-page .sk-dn { display: none; }
/* アプリ（MALU・Nagi・SK's Lab・LINE の中・アプリとして入れたもの。Toolbox は /toolbox/lang/）から開いたとき（<html data-lang-app>。/lang/lang.js）
   サイトのヘッダー・フッター・アクセス解析のカードを隠し、上に戻るボタンとアプリの名前の帯を出す */
.lang-appbar { display: none; }
[data-lang-app] .lang-page .site-header, [data-lang-app] .lang-page .hd-menu, [data-lang-app] .lang-page .hd-backdrop,
[data-lang-app] .lang-page .site-footer, [data-lang-app] .lang-page .skip, [data-lang-app] .lang-page .lang-cancel, [data-lang-app] .sk-analytics { display: none !important; }
[data-lang-app] .lang-screen { min-height: 100vh; min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 72px) 16px calc(env(safe-area-inset-bottom) + 32px); }
[data-lang-app] .lang-appbar { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; height: calc(env(safe-area-inset-top) + 60px); padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
.lang-appbar-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.lang-appbar-back:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lang-appbar-back svg { width: 24px; height: 24px; }
.lang-appbar-app { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.lang-appbar-app img { width: 22px; height: 22px; border-radius: 6px; }
/* スマホでは、カードの枠をなくしてアプリの画面のように */
@media (max-width: 560px) {
  [data-lang-app] .lang-screen { align-content: start; }
  [data-lang-app] .lang-card { background: transparent; box-shadow: none; padding: 8px 4px; }
  [data-lang-app] .lang-item { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  [data-lang-app] .lang-item[aria-checked="true"] { background: var(--ink); box-shadow: 0 10px 24px -10px rgba(13, 16, 20, .5); }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 52px - 80px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf-code { font-size: clamp(96px, 20vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--accent), var(--malu)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: nf-float 5s ease-in-out infinite; }
@keyframes nf-float { 50% { transform: translateY(-10px); } }
.nf h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-top: 12px; }
.nf p { color: var(--muted); margin-top: 10px; }
.nf .btn-row { justify-content: center; margin-top: 26px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 28px; font-size: 14px; font-weight: 700; }
.nf-links a { text-decoration: none; }

/* ---------- SK Hub Systems ---------- */
.hub-icon { background: var(--surface); padding: 10px; box-sizing: border-box; }
.hub-diagram { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; align-items: center; gap: 12px; padding: 34px 28px 28px; border-radius: 28px; background: linear-gradient(135deg, var(--tint-blue), var(--surface) 55%); border: 1px solid var(--line); }
.hub-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hub-node img { width: 44px; height: 44px; border-radius: 13px; }
.hub-node strong { font-size: 15px; }
.hub-node small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.hub-node--center { padding: 24px 18px; border: 2px solid var(--accent-line); box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 18%, transparent); }
.hub-node--center img { width: 56px; height: 56px; }
.hub-node--center strong { font-size: 17px; }
.hub-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 110px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.hub-arrow i { position: relative; width: 100%; height: 12px; }
.hub-arrow i::before, .hub-arrow i::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; background: var(--accent); }
.hub-arrow i::before { top: 2px; } .hub-arrow i::after { bottom: 2px; }
.hub-below { grid-column: 3; display: flex; flex-direction: column; align-items: center; }
.hub-below-line { width: 2px; height: 22px; background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 8px); }
.hub-node--small { padding: 12px 16px; box-shadow: none; background: var(--surface-2); }
@media (max-width: 860px) {
  .hub-diagram { grid-template-columns: 1fr; padding: 22px; }
  .hub-arrow { min-width: 0; flex-direction: row; justify-content: center; }
  .hub-arrow i { width: 2px; height: 34px; }
  .hub-arrow i::before, .hub-arrow i::after { left: 0; right: 0; width: 2px; height: 100%; top: 0; }
  .hub-arrow i::after { display: none; }
  .hub-below { grid-column: 1; }
}
.hub-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hub-steps li { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.hub-steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.hub-steps strong { display: block; font-size: 14.5px; }
.hub-steps p { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 1000px) { .hub-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-steps { grid-template-columns: 1fr; } }
.hub-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hub-role { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.hub-role h3 { font-size: 16.5px; font-weight: 800; }
.hub-role small { display: block; color: var(--link); font-weight: 700; font-size: 12.5px; }
.hub-role p { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 760px) { .hub-roles { grid-template-columns: 1fr; } }
.hub-data h3 { font-size: 17px; font-weight: 800; }
.hub-data ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.hub-data li { position: relative; padding-left: 28px; }
.hub-data li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: center / 12px no-repeat; }
.hub-data--yes li::before { background-color: var(--green-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.hub-data--no li::before { background-color: var(--down-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.hub-data--no > p { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.hub-note { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hub-table th, .hub-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hub-table tr:last-child th, .hub-table tr:last-child td { border-bottom: 0; }
.hub-table th { width: 30%; font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
@media (max-width: 600px) { .hub-table th { white-space: normal; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 同意カード（frameworks/check.js）のボタンを SK の配色に合わせる（部品自体は変えずに上書き） */
body .RedCheckOSS-consent-card__button--agree { background: var(--accent); color: var(--accent-ink); }

/* ================================================================
   ダークモード（トークンだけを入れ替える）
   ・端末がダークで、ユーザーが「ライト」を選んでいないとき
   ・ユーザーが「ダーク」を選んだとき（<html data-theme="dark">。assets/site.js の「表示」）
   2 つの書き方で同じ中身を繰り返している（値を変えるときは両方そろえる）
   ================================================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: var(--a-d); --accent-ink: var(--a-ink-d); --accent-line: color-mix(in srgb, var(--a-d) 38%, #151a21); --mark: var(--a-mark-d);
    --tint-blue: color-mix(in srgb, var(--a-d) 8%, #151a21); --green: var(--a-strong-d); --green-soft: color-mix(in srgb, var(--a-d) 16%, #151a21); --link: var(--a-strong-d);
    --bg: #0b0e13; --surface: #151a21; --surface-2: #1d232c; --surface-3: #262d38;
    --ink: #e8ecf1; --muted: #9aa4b2; --line: #2a313b; --line-strong: #3a4350; --night: #06080b; --dots: rgba(255, 255, 255, .06);
    --yf: #f0b64a; --yf-deep: #f5c86b; --yf-soft: #2a2112; --malu: #a3a6ff; --malu-soft: #1f1f3d; --nagi: #2dd4bf; --nagi-soft: #123532; --amber-soft: #2a2112;
    --warn-bg: #2a2112; --warn-ink: #f5c86b; --tint-amber: #241c10;
    --blue-soft: #13263d; --blue: #6cb2ff; --blue-ink: #9cc3ff; --amber-ink: #f0b64a; --lab-soft: #251a3d; --lab: #c4a8ff;
    --ok-soft: #10281a; --ok-ink: #6ee7a0; --slow-soft: #2d220c; --slow-ink: #fbbf5a; --down-soft: #2f1414; --down-ink: #fca5a5;
    --important-soft: #3a2d0c; --important-ink: #fcd34d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --hd-bg: rgba(11, 14, 19, .72); --hd-text: #eef1f5; --hd-menu-bg: #11151b; --hd-menu-muted: rgba(255, 255, 255, .5); --hd-menu-link: #eef1f5; --hd-backdrop: rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .acct { --acct-ink: #f5f5f7; --acct-muted: #a1a1a6; --acct-tile: #1b1f26; --acct-tile-hover: #252a32; --acct-line: #363c45; --acct-red: #ff6961; --acct-bg: var(--bg); }
}
:root[data-theme="dark"] {
  --accent: var(--a-d); --accent-ink: var(--a-ink-d); --accent-line: color-mix(in srgb, var(--a-d) 38%, #151a21); --mark: var(--a-mark-d);
  --tint-blue: color-mix(in srgb, var(--a-d) 8%, #151a21); --green: var(--a-strong-d); --green-soft: color-mix(in srgb, var(--a-d) 16%, #151a21); --link: var(--a-strong-d);
  --bg: #0b0e13; --surface: #151a21; --surface-2: #1d232c; --surface-3: #262d38;
  --ink: #e8ecf1; --muted: #9aa4b2; --line: #2a313b; --line-strong: #3a4350; --night: #06080b; --dots: rgba(255, 255, 255, .06);
  --yf: #f0b64a; --yf-deep: #f5c86b; --yf-soft: #2a2112; --malu: #a3a6ff; --malu-soft: #1f1f3d; --nagi: #2dd4bf; --nagi-soft: #123532; --amber-soft: #2a2112;
  --warn-bg: #2a2112; --warn-ink: #f5c86b; --tint-amber: #241c10;
  --blue-soft: #13263d; --blue: #6cb2ff; --blue-ink: #9cc3ff; --amber-ink: #f0b64a; --lab-soft: #251a3d; --lab: #c4a8ff;
  --ok-soft: #10281a; --ok-ink: #6ee7a0; --slow-soft: #2d220c; --slow-ink: #fbbf5a; --down-soft: #2f1414; --down-ink: #fca5a5;
  --important-soft: #3a2d0c; --important-ink: #fcd34d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --hd-bg: rgba(11, 14, 19, .72); --hd-text: #eef1f5; --hd-menu-bg: #11151b; --hd-menu-muted: rgba(255, 255, 255, .5); --hd-menu-link: #eef1f5; --hd-backdrop: rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root[data-theme="dark"] .acct { --acct-ink: #f5f5f7; --acct-muted: #a1a1a6; --acct-tile: #1b1f26; --acct-tile-hover: #252a32; --acct-line: #363c45; --acct-red: #ff6961; --acct-bg: var(--bg); }

/* ================================================================
   テーマカラー（SK's ○○）。<html data-accent="…">（assets/site.js の ACCENTS と同じ名前）
   -d はダークモードのとき。ダークでは明るい色の上に濃い文字をのせる
   ================================================================ */
:root[data-accent="sakura"] {
  --a: #db2777; --a-strong: #be185d; --a-soft: #fde7f1; --a-tint: #fdf0f6; --a-line: #f9c3dc; --a-mark: #fbcfe3; --a-ink: #fff;
  --a-d: #f472b6; --a-strong-d: #f9a8d4; --a-soft-d: #3a1628; --a-tint-d: #2a1420; --a-line-d: #6b2a4a; --a-mark-d: rgba(244, 114, 182, .32); --a-ink-d: #0b0e13;
}
:root[data-accent="matcha"] {
  --a: #16a34a; --a-strong: #15803d; --a-soft: #dcfce7; --a-tint: #effbf2; --a-line: #b7ebc8; --a-mark: #c8f0d5; --a-ink: #fff;
  --a-d: #22c55e; --a-strong-d: #86efac; --a-soft-d: #12291b; --a-tint-d: #0f2417; --a-line-d: #245a37; --a-mark-d: rgba(34, 197, 94, .3); --a-ink-d: #0b0e13;
}
:root[data-accent="mikan"] {
  --a: #ea580c; --a-strong: #c2410c; --a-soft: #ffedd5; --a-tint: #fff5eb; --a-line: #fed7aa; --a-mark: #fed7aa; --a-ink: #fff;
  --a-d: #fb923c; --a-strong-d: #fdba74; --a-soft-d: #33200f; --a-tint-d: #2a1a0d; --a-line-d: #6b3a17; --a-mark-d: rgba(251, 146, 60, .3); --a-ink-d: #0b0e13;
}
:root[data-accent="fuji"] {
  --a: #7c3aed; --a-strong: #6d28d9; --a-soft: #ede9fe; --a-tint: #f5f3ff; --a-line: #d4c8fb; --a-mark: #ddd6fe; --a-ink: #fff;
  --a-d: #a78bfa; --a-strong-d: #c4b5fd; --a-soft-d: #221a3d; --a-tint-d: #1c1633; --a-line-d: #45357a; --a-mark-d: rgba(167, 139, 250, .32); --a-ink-d: #0b0e13;
}
:root[data-accent="sora"] {
  --a: #0891b2; --a-strong: #0e7490; --a-soft: #cffafe; --a-tint: #ecfeff; --a-line: #a5f3fc; --a-mark: #bdf4fb; --a-ink: #fff;
  --a-d: #22d3ee; --a-strong-d: #67e8f9; --a-soft-d: #0f2a30; --a-tint-d: #0c2226; --a-line-d: #1f5560; --a-mark-d: rgba(34, 211, 238, .28); --a-ink-d: #0b0e13;
}
:root[data-accent="sumi"] {
  --a: #334155; --a-strong: #1e293b; --a-soft: #e2e8f0; --a-tint: #f1f5f9; --a-line: #cbd5e1; --a-mark: #dbe2ea; --a-ink: #fff;
  --a-d: #94a3b8; --a-strong-d: #cbd5e1; --a-soft-d: #1e2530; --a-tint-d: #171c24; --a-line-d: #3a4556; --a-mark-d: rgba(148, 163, 184, .3); --a-ink-d: #0b0e13;
}


/* ---------- ほかの部品をテーマに合わせる（部品自体は変えずに上書き） ---------- */
/* 同意の帯（frameworks/check.js）・アクセス解析のスイッチ（assets/analytics.js） */
body .RedCheckOSS-consent-card__panel { background: var(--surface); color: var(--ink); border-top-color: var(--line); }
body .RedCheckOSS-consent-card__title { color: var(--ink); }
body .RedCheckOSS-consent-card__text { color: var(--muted); }
body .RedCheckOSS-consent-card__text a { color: var(--link); }
body .RedCheckOSS-consent-card__button--deny { background: var(--surface-2); color: var(--ink); }
body .RedCheckOSS-consent-card__button--deny:hover { background: var(--surface-3); }
body .RedCheckOSS-consent-card__button--agree:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
body .sk-analytics-opt { color: var(--muted); }
body .sk-analytics-opt input:checked + .sw { background: var(--accent); }
body .sk-analytics-opt a { color: var(--link); }
/* ---------- ヘッダーのアカウントのメニューの「表示」（assets/site.js の themeMenuBlock） ---------- */
.hd-menu-theme { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.hd-theme-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hd-theme-modes { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.hd-theme-modes button { font: inherit; font-size: 13px; font-weight: 700; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.hd-theme-modes button:hover { color: var(--ink); }
.hd-theme-modes button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.hd-theme-colors { display: inline-flex; flex-wrap: wrap; gap: 9px; }
.hd-theme-colors button { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--swatch); box-shadow: 0 0 0 2px var(--hd-menu-bg, #fff), 0 0 0 3px transparent; transition: transform .15s ease, box-shadow .15s ease; }
.hd-theme-colors button:hover { transform: scale(1.12); }
.hd-theme-colors button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--hd-menu-bg, #fff), 0 0 0 4px var(--ink); }
.hd-theme-name { font-size: 13px; font-weight: 700; color: var(--muted); }
/* ---------- 「表示」を切り替えるときのアニメーション（assets/site.js の switchTheme） ---------- */
/* ページ全体: 押したボタンのところから円く広がる。ページ移動の動き（header.css）は、このあいだだけ止め、ヘッダーも一緒に切り替える */
html.sk-theme-switching::view-transition-old(root),
html.sk-theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.sk-theme-switching .site-header { view-transition-name: none; }
/* ボタン: 選んだところの色がなめらかに移る・色の丸はポンと弾む・名前はふわっと入れ替わる */
.hd-theme-modes button { transition: background-color .25s ease, color .25s ease; }
html.sk-theme-ready .hd-theme-colors button[aria-checked="true"] { animation: sk-swatch-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes sk-swatch-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.hd-theme-name.is-changed { animation: sk-name-in .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes sk-name-in { from { opacity: 0; transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  .hd-theme-colors button, .hd-theme-name { animation: none !important; }
}

/* ---------- Nagi の製品ページ（_build/pages/nagi.html） ---------- */
.nagi-btn { background: var(--nagi); color: #fff; box-shadow: 0 6px 18px rgba(20, 184, 166, .35); }
:root[data-theme="dark"] .nagi-btn { color: #062320; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nagi-btn { color: #062320; } }
/* 画面のイメージ（CSS で描いたもの） */
.nagi-mock { max-width: 960px; margin: 0 auto; }
.nagi-mock-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 34px 38px 38px; background: radial-gradient(90% 60% at 30% 0%, var(--nagi-soft), transparent 70%), var(--surface); }
.nagi-mock-timer { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nagi-mock-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; font-size: 12.5px; font-weight: 600; }
.nagi-mock-seg span { padding: 6px 14px; color: var(--muted); }
.nagi-mock-seg span + span { border-left: 1px solid var(--line-strong); }
.nagi-mock-seg .on { background: var(--nagi-soft); color: var(--nagi); }
.nagi-mock-dial { position: relative; width: min(64vw, 250px); aspect-ratio: 1; }
.nagi-mock-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--nagi) 0 74%, var(--nagi-soft) 74% 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); }
.nagi-mock-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nagi-mock-chip { padding: 3px 12px; border-radius: 8px; background: var(--nagi-soft); color: var(--nagi); font-size: 12.5px; font-weight: 700; }
.nagi-mock-center strong { font-size: clamp(44px, 9vw, 64px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.nagi-mock-center small { color: var(--muted); font-size: 12.5px; }
.nagi-mock-controls { display: flex; align-items: center; gap: 14px; }
.nagi-mock-controls i { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); }
.nagi-mock-controls span { display: grid; place-items: center; height: 58px; padding: 0 30px; border-radius: 22px; background: var(--nagi-soft); color: var(--nagi); font-weight: 700; }
.nagi-mock-cards { display: flex; flex-direction: column; gap: 14px; }
.nagi-mock-card { position: relative; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); }
.nagi-mock-card small { color: var(--muted); font-size: 12px; font-weight: 600; }
.nagi-mock-card strong { display: block; font-size: 22px; font-weight: 600; margin-top: 2px; }
.nagi-mock-card em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 500; }
.nagi-mock-bar { display: flex; gap: 4px; height: 7px; margin-top: 12px; }
.nagi-mock-bar::before { content: ""; width: 66%; border-radius: 999px; background: var(--nagi); }
.nagi-mock-bar span { flex: 1; border-radius: 999px; background: var(--nagi-soft); }
.nagi-mock-streak { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 8px; background: var(--nagi-soft); color: var(--nagi); font-size: 12px; font-weight: 700; }
.nagi-mock-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 90px; margin-top: 10px; }
.nagi-mock-week i { height: calc(var(--h) * 70px); border-radius: 999px; background: var(--nagi-soft); }
.nagi-mock-week i.met { background: var(--nagi); }
@media (max-width: 760px) { .nagi-mock-body { grid-template-columns: 1fr; padding: 24px 18px 26px; } }
/* 使い方 */
.nagi-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nagi-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.nagi-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--nagi); color: #fff; font-size: 15px; }
.nagi-steps strong { display: block; font-size: 16px; }
.nagi-steps p { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 760px) { .nagi-steps { grid-template-columns: 1fr; } }
.nagi-keys { margin-top: 18px; color: var(--muted); font-size: 14px; }
.nagi-keys kbd { display: inline-block; min-width: 28px; margin: 0 4px 0 10px; padding: 1px 8px; border-radius: 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface); color: var(--ink); font: 600 12.5px/1.6 var(--font); text-align: center; }
/* 記録するもの */
.nagi-privacy { display: flex; gap: 18px; align-items: flex-start; }
.nagi-privacy h2 { font-size: 20px; font-weight: 800; }
.nagi-privacy p { color: var(--muted); margin-top: 8px; }
.nagi-privacy-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: 14px; }
/* トップのプロダクト（3 つ並べる） */
.product-grid .product-card .cover { padding: 24px 22px 20px; }
.product-grid .product-card .body { padding: 4px 22px 24px; }
.product-grid .product-card h3 { font-size: 21px; }
.product-grid .product-card .icon { width: 56px; height: 56px; }
/* ---------- すべてのプロダクト（/products/。_build/pages/products.html） ---------- */
.plist { padding: 56px 0 72px; }
.plist h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.plist-lead { color: var(--muted); margin-top: 10px; }
.plist-lead--section { margin: -6px 0 14px; font-size: 14px; }
.plist h2 { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.plist-sub { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .plist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .plist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .plist-grid { grid-template-columns: 1fr; } }
.plist-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.plist-item:hover { background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow); }
.plist-item img, .plist-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
.plist-item img { background: var(--surface); }
.plist-item img.yf-tile { border-radius: 50%; padding: 7px; }
.plist-logo { padding: 7px; box-sizing: border-box; }
.plist-ico { display: grid; place-items: center; }
.plist-ico svg { width: 22px; height: 22px; }
.plist-item > span:not(.plist-ico) { display: flex; flex-direction: column; min-width: 0; }
.plist-item strong { font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.plist-item small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.plist-tag { position: absolute; top: -6px; right: 12px; padding: 1px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--warn-ink); font-size: 11px; font-weight: 800; font-style: normal; }
.plist-more { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 44px; font-size: 14px; font-weight: 700; }

/* ---------- SK's Brand（/brand/。_build/pages/brand.html・/brand/brand.js） ---------- */
.brand-hero { padding: 72px 0 56px; }
.brand-title { font-size: clamp(52px, 10vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.brand-title-accent { background: linear-gradient(120deg, var(--accent), var(--malu) 60%, var(--nagi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-lead { max-width: 620px; margin-top: 22px; font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); }
.brand-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.brand-toc a { padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: box-shadow .2s ease, color .2s ease; }
.brand-toc a:hover { color: var(--link); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.brand-h3 { margin: 32px 0 14px; font-size: 15px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.brand-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
/* 大切にしていること */
.brand-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .brand-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brand-principles { grid-template-columns: 1fr; } }
.brand-principle { position: relative; overflow: hidden; }
.brand-num { font-family: "Space Grotesk", Inter, sans-serif; font-size: 13px; font-weight: 700; color: var(--link); letter-spacing: .08em; }
.brand-principle h3 { margin-top: 18px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.brand-principle-sub { margin-top: 2px !important; font-size: 13px; font-weight: 700; color: var(--link) !important; }
.brand-principle p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.brand-principle::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
/* ロゴ */
.brand-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .brand-logos { grid-template-columns: 1fr; } }
.brand-logo-tile { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 200px; padding: 28px; border-radius: var(--radius); corner-shape: superellipse(1.5); position: relative; }
.brand-logo-tile.is-light { background: #ffffff; box-shadow: inset 0 0 0 1px #e1e4e9; color: #0d1014; }
.brand-logo-tile.is-dark { background: #0d1014; color: #ffffff; box-shadow: inset 0 0 0 1px var(--line); }
.brand-logo-tile.is-outline { flex-direction: column; background: var(--night); box-shadow: inset 0 0 0 1px var(--line); }
.brand-logo-word { font-size: 64px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.brand-logo-outline { font-size: 110px; font-weight: 800; letter-spacing: -.06em; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); }
.brand-logo-tile small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.brand-rules { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .brand-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brand-rules { grid-template-columns: 1fr; } }
.brand-rules li { padding: 16px 18px; border-radius: 18px; background: var(--surface-2); font-size: 13.5px; color: var(--muted); }
.brand-rules strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14.5px; }
/* 色 */
.brand-swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .brand-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brand-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand-swatch { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 14px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.brand-swatch:hover { transform: translateY(-2px); }
.brand-swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--sw); }
.brand-swatch i { width: 100%; aspect-ratio: 1.4; margin-bottom: 10px; border-radius: 14px; background: linear-gradient(135deg, var(--sw), var(--sw-d)); }
.brand-swatch[aria-pressed="true"] i { animation: sk-swatch-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
.brand-swatch strong { font-size: 14px; font-weight: 800; }
.brand-swatch small { font-size: 12px; color: var(--muted); }
[data-copy] { margin-top: 6px; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font: 600 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: copy; transition: background .15s ease, color .15s ease; }
[data-copy]:hover { background: var(--green-soft); color: var(--link); }
.brand-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .brand-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brand-products { grid-template-columns: 1fr; } }
.brand-product { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 22%, var(--surface)), var(--surface) 70%); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.brand-product img { border-radius: 14px; flex: none; }
.brand-product img.yf-tile { padding: 8px; }
.brand-product div { flex: 1 1 calc(100% - 64px); min-width: 0; }
.brand-product > code { margin: 0 0 0 60px; }
.brand-product strong { display: block; font-size: 15px; font-weight: 800; }
.brand-product small { color: var(--muted); font-size: 12.5px; }
.brand-product::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--pc); }
.brand-neutrals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .brand-neutrals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand-neutral { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.brand-neutral i { height: 64px; margin-bottom: 10px; border-radius: 14px; background: var(--n); box-shadow: inset 0 0 0 1px var(--line); }
.brand-neutral strong { font-size: 14px; font-weight: 800; }
.brand-neutral small { font-size: 12px; color: var(--muted); }
.brand-hexes { display: flex; flex-wrap: wrap; gap: 4px; }
/* 文字 */
.brand-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .brand-fonts { grid-template-columns: 1fr; } }
.brand-font { display: flex; flex-direction: column; gap: 16px; }
.brand-font-sample { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.brand-font-code { font-size: clamp(20px, 2.6vw, 28px); color: #3fb950; background: #0b0f14; padding: 14px 18px; border-radius: 14px; }
.brand-font-meta strong { display: block; font-size: 15px; }
.brand-font-meta small { color: var(--muted); font-size: 13px; }
.brand-font-glyphs { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; color: var(--muted); letter-spacing: .04em; }
/* 形と動き */
.brand-shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .brand-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand-shape { display: flex; flex-direction: column; gap: 2px; }
.brand-shape strong { margin-top: 12px; font-size: 14.5px; }
.brand-shape small { color: var(--muted); font-size: 12.5px; }
.brand-shape-demo { height: 130px; display: grid; place-items: center; border-radius: 22px; background: var(--surface-2); }
.brand-shape-demo.is-card::before { content: ""; width: 62%; height: 64%; border-radius: 28px; corner-shape: superellipse(1.5); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.brand-shape-demo.is-pill span { padding: 12px 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.brand-shape-demo.is-icon img { width: 64px; height: 64px; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.brand-shape-demo.is-shadow::before { content: ""; width: 60%; height: 60%; border-radius: 22px; background: var(--surface); box-shadow: 0 2px 4px rgba(13, 16, 20, .05), 0 18px 40px rgba(13, 16, 20, .14); }
.brand-motions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 900px) { .brand-motions { grid-template-columns: 1fr; } }
.brand-motion { display: flex; flex-direction: column; gap: 14px; }
.brand-motion p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.brand-motion .btn { align-self: flex-start; min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.brand-motion-stage { position: relative; height: 130px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.brand-motion-page { width: 58%; height: 70%; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.brand-motion-ripple { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); animation: brand-ripple 3s cubic-bezier(.22, 1, .36, 1) infinite; }
@keyframes brand-ripple { 0% { transform: scale(0); opacity: .9; } 70% { transform: scale(14); opacity: .25; } 100% { transform: scale(18); opacity: 0; } }
.brand-motion-pop { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface-2), 0 0 0 6px var(--accent); }
/* ことば */
.brand-voice { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .brand-voice { grid-template-columns: 1fr; } }
.brand-voice-rules { display: grid; gap: 10px; }
.brand-voice-rules > div { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.brand-voice-rules strong { font-size: 15px; }
.brand-voice-rules p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.brand-voice-table { border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.brand-voice-row { display: grid; grid-template-columns: 1fr 1fr; }
.brand-voice-row span { padding: 14px 18px; font-size: 14.5px; border-top: 1px solid var(--line); }
.brand-voice-row span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--down-ink) 60%, transparent); }
.brand-voice-row span:last-child { font-weight: 700; }
.brand-voice-row.is-head span { border-top: 0; font-size: 12.5px; font-weight: 800; color: var(--muted); text-decoration: none; background: var(--surface-2); }
/* 約束 */
.brand-promise { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; padding: 40px; border-radius: 32px; corner-shape: superellipse(1.5); background: var(--night); color: #fff; position: relative; overflow: hidden; }
.brand-promise::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.brand-promise > * { position: relative; }
.brand-promise h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin-top: 6px; }
.brand-promise p { color: rgba(255, 255, 255, .7); margin-top: 8px; }
.brand-promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.brand-promise li { padding: 14px 18px 14px 48px; border-radius: 16px; background: rgba(255, 255, 255, .06); position: relative; font-weight: 600; }
.brand-promise li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 9px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-70%) rotate(-45deg); }
.brand-promise .eyebrow { color: rgba(255, 255, 255, .7); }
.brand-promise-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 0 !important; }
.brand-promise-links a { color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .brand-promise { grid-template-columns: 1fr; padding: 28px 22px; } }
.brand-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1600; transform: translate(-50%, 16px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.brand-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ---------- SK Hub Systems の紹介ページ（_build/pages/sk-hub-systems.html・/sk-hub-systems/hub.js） ----------
   Apple の製品ページのように、大きな文字とスクロールで見せる 1 枚のページ。クラスは hx- で始まる */
.hx-page main { background: var(--bg); }
.hx-localnav { position: sticky; top: 51px; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.hx-localnav .wrap { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.hx-localnav-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-decoration: none; margin-right: auto; }
.hx-localnav-links { display: flex; gap: 22px; }
.hx-localnav-links a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.hx-localnav-links a:hover, .hx-localnav-links a[aria-current="true"] { color: var(--ink); }
@media (max-width: 760px) { .hx-localnav-links { display: none; } .hx-localnav .wrap { min-height: 46px; } .hx-localnav-title { font-size: 17px; } }

.hx-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15.5px; font-weight: 700; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.hx-pill:hover { filter: brightness(1.08); transform: scale(1.03); }
.hx-pill--sm { min-height: 30px; padding: 0 14px; font-size: 12.5px; }
.hx-link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-size: 16px; font-weight: 700; text-decoration: none; }
.hx-link::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .2s ease; }
.hx-link:hover::after, a:hover .hx-link::after { transform: translateX(3px); }
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 32px; }

/* はじめ（いつも暗い） */
.hx-hero { --hx-a: color-mix(in srgb, var(--accent) 70%, #fff); position: relative; overflow: hidden; background: #000; color: #f5f5f7; padding: 88px 0 0; text-align: center; display: flex; flex-direction: column; }
.hx-hero::before { content: ""; position: absolute; left: 50%; bottom: -10%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent); pointer-events: none; }
.hx-hero-text { position: relative; order: -1; }
.hx-kicker { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; color: var(--hx-a); }
.hx-display { margin-top: 10px; font-size: clamp(30px, 8.6vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; background: linear-gradient(180deg, #fff 30%, #b8c4d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-sub { max-width: 700px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: #a1a1a6; }
.hx-hero .hx-link { color: var(--hx-a); }
.hx-orbit { --hx-dur: 60s; position: relative; width: min(760px, 118vw); aspect-ratio: 1; margin: 56px auto calc(min(760px, 118vw) * -.34); container-type: size; }
.hx-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); transform: translate(-50%, -50%); animation: hx-spin var(--d) linear infinite; }
.hx-ring--1 { --d: 38s; --R: 21cqw; width: 42cqw; height: 42cqw; }
.hx-ring--2 { --d: 56s; --R: 33cqw; width: 66cqw; height: 66cqw; animation-direction: reverse; border-style: dashed; border-color: rgba(255, 255, 255, .1); }
.hx-ring--3 { --d: 80s; --R: 46cqw; width: 92cqw; height: 92cqw; }
@keyframes hx-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hx-unspin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.hx-planet { position: absolute; left: 50%; top: 50%; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; transform: rotate(var(--a)) translateX(var(--R)) rotate(calc(-1 * var(--a))); }
.hx-planet > * { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 28%; background: #1d1d1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 30px rgba(0, 0, 0, .5); object-fit: cover; animation: hx-unspin var(--d) linear infinite; }
.hx-ring--2 .hx-planet > * { animation-direction: reverse; }
.hx-planet img.yf-tile { padding: 18%; box-sizing: border-box; }
.hx-planet--svg svg { padding: 26%; box-sizing: border-box; color: var(--hx-a); }
.hx-core { position: absolute; left: 50%; top: 50%; width: 20cqw; height: 20cqw; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #26303d, #0b0e13); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 90px color-mix(in srgb, var(--accent) 55%, transparent); }
.hx-core img { width: 52%; height: 52%; }
.hx-core::after { content: ""; position: absolute; inset: -10%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); animation: hx-pulse 3.2s ease-out infinite; }
@keyframes hx-pulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

/* 共通の区切り */
.hx-section { padding: 128px 0; }
@media (max-width: 760px) { .hx-section { padding: 88px 0; } }
.hx-head { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.hx-eyebrow { font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: var(--link); }
.hx-title { margin-top: 8px; font-size: clamp(30px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.hx-title--xl { font-size: clamp(46px, 10vw, 128px); letter-spacing: -.05em; }
.hx-lead { word-break: auto-phrase; max-width: 700px; margin: 22px auto 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.65; color: var(--muted); }
.hx-note { max-width: 860px; margin: 56px auto 0; font-size: 13px; color: var(--muted); text-align: center; }
.hx-soft { background: var(--surface); }

/* ひとことで（スクロールすると 1 つずつ光る） */
.hx-statement-wrap { padding-bottom: 64px; }
.hx-statement { max-width: 980px; margin: 0 auto; font-size: clamp(32px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.28; }
.hx-statement span { color: color-mix(in srgb, var(--ink) 18%, transparent); transition: color .6s ease; }
.hx-statement span.is-lit { color: var(--ink); }
.hx-statement .hx-statement-em { display: block; margin-top: .3em; }
.hx-statement .hx-statement-em.is-lit { background: linear-gradient(90deg, var(--accent), var(--nagi) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 数字で */
.hx-stats-wrap { padding-top: 32px; }
.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hx-stat { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.hx-stat strong { display: flex; align-items: baseline; gap: 2px; font-size: clamp(52px, 6.8vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-stat strong small { font-size: .36em; letter-spacing: 0; }
.hx-stat p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* できること（大きさのちがうタイルを並べる） */
.hx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hx-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 440px; padding: 40px; border-radius: 32px; corner-shape: superellipse(1.5); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.hx-tile--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 36px; }
.hx-tile--full { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 36px; min-height: 380px; }
.hx-tile-text { display: flex; flex-direction: column; gap: 12px; }
.hx-tile-kicker { font-size: 15px; font-weight: 700; color: var(--link); }
.hx-tile h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.hx-tile p:not(.hx-tile-kicker) { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.hx-tile .hx-link { margin-top: 6px; }
a.hx-tile { transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
a.hx-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
@media (max-width: 980px) {
  .hx-bento { grid-template-columns: minmax(0, 1fr); }
  .hx-tile--wide, .hx-tile--full { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .hx-tile { min-height: 0; padding: 32px 26px; }
}
.hx-tile--remote { background: linear-gradient(160deg, color-mix(in srgb, var(--yf) 16%, var(--surface)), var(--surface) 55%); }
/* 管理コンソールの小さな見本 */
.hx-console { padding: 14px; border-radius: 22px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px rgba(13, 16, 20, .1); display: flex; flex-direction: column; gap: 8px; }
.hx-console-bar { display: flex; gap: 5px; padding: 2px 4px 6px; }
.hx-console-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.hx-console-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hx-console-row strong { font-size: 13.5px; }
.hx-console-row small { font-size: 11.5px; color: var(--muted); }
.hx-meter { grid-column: 2 / -1; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.hx-meter b { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--accent); transform-origin: left; }
.is-in .hx-meter b { animation: hx-grow 1.4s .3s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes hx-grow { from { transform: scaleX(0); } }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.hx-dot.is-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.hx-console-req { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent-line); }
.hx-console-req small { grid-column: 1; font-size: 11px; font-weight: 700; color: var(--link); }
.hx-console-req strong { grid-column: 1; font-size: 13.5px; }
.hx-console-req div { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 6px; }
.hx-mini { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 11.5px; font-weight: 700; }
.hx-mini.is-yes { background: var(--accent); color: var(--accent-ink); }
/* ブロックリスト（リストが重なって、新しいものが上に来る） */
.hx-stack { position: relative; height: 150px; margin-top: auto; }
.hx-stack i { position: absolute; left: 8%; right: 8%; height: 92px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 20px, var(--line) 20px 21px); background-position: 0 12px; }
.hx-stack i:nth-child(1) { bottom: 0; transform: scale(.86); opacity: .5; }
.hx-stack i:nth-child(2) { bottom: 14px; transform: scale(.93); opacity: .75; }
.hx-stack i:nth-child(3) { bottom: 28px; background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); animation: hx-drop 4s cubic-bezier(.22, 1, .36, 1) infinite; }
@keyframes hx-drop { 0% { transform: translateY(-40px); opacity: 0; } 18%, 82% { transform: none; opacity: 1; } 100% { transform: translateY(14px) scale(.93); opacity: .75; } }
.hx-stack-badge { position: absolute; right: 4%; top: 0; padding: 5px 12px; border-radius: 999px; background: #ffc83d; color: #1a1204; font-size: 12px; font-weight: 800; }
/* アクセスチェック */
.hx-shield { position: relative; display: grid; place-items: center; height: 150px; margin-top: auto; color: #16a34a; }
.hx-shield svg { position: relative; width: 96px; height: 96px; z-index: 1; }
.hx-shield::before, .hx-shield::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(22, 163, 74, .14); animation: hx-pulse 3s ease-out infinite; }
.hx-shield::after { animation-delay: 1.5s; }
/* 同期 */
.hx-tile--sync { background: linear-gradient(200deg, color-mix(in srgb, var(--nagi) 14%, var(--surface)), var(--surface) 60%); }
.hx-devices { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.hx-device { display: block; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong); position: relative; }
.hx-device--phone { width: 64px; height: 124px; border-radius: 18px; }
.hx-device--laptop { width: 190px; height: 118px; border-radius: 12px 12px 4px 4px; }
.hx-device--laptop::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -10px; height: 10px; border-radius: 0 0 10px 10px; background: var(--line-strong); }
.hx-device::before { content: ""; position: absolute; inset: 18% 14%; border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--nagi) 50%, transparent), color-mix(in srgb, var(--malu) 45%, transparent)); animation: hx-breathe 4s ease-in-out infinite; }
.hx-device--laptop::before { animation-delay: 2s; }
@keyframes hx-breathe { 50% { opacity: .45; } }
.hx-sync-arrows { align-self: center; width: 40px; height: 40px; color: var(--nagi); animation: hx-rot 5s linear infinite; }
@keyframes hx-rot { to { transform: rotate(360deg); } }
/* アカウント */
.hx-tile--account { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 60%); }
.hx-apps { position: relative; height: 240px; }
.hx-app { --step: calc(360deg / var(--n, 3)); position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); transform: rotate(calc(var(--i) * var(--step) - 90deg)) translateX(100px) rotate(calc(var(--i) * var(--step) * -1 + 90deg)); }
.hx-app img { width: 100%; height: 100%; object-fit: cover; }
.hx-app img.yf-tile { padding: 14px; box-sizing: border-box; }
.hx-app--center { width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; padding: 22px; box-sizing: border-box; transform: none; box-shadow: 0 0 0 1px var(--line), 0 0 0 26px color-mix(in srgb, var(--accent) 7%, transparent), 0 0 0 58px color-mix(in srgb, var(--accent) 4%, transparent); }
.hx-app--center img { object-fit: contain; }

/* しくみ（左の図が貼り付いて、右の手順に合わせて変わる） */
.hx-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.hx-story-visual { position: sticky; top: 127px; height: calc(100vh - 167px); max-height: 640px; display: grid; place-items: center; }
.hx-steps { list-style: none; margin: 0; padding: 0; }
.hx-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
.hx-step.is-active { opacity: 1; }
.hx-step b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 16px; margin-bottom: 18px; }
.hx-step h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.hx-step p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hx-flow { position: relative; width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; }
.hx-flow-node { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.hx-flow-node strong { display: block; font-size: 16px; }
.hx-flow-node small { display: block; color: var(--muted); font-size: 12.5px; }
.hx-flow-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; background: var(--surface-2); color: var(--link); overflow: hidden; }
.hx-flow-ico svg { width: 24px; height: 24px; }
.hx-flow-ico img { width: 100%; height: 100%; object-fit: cover; }
.hx-flow-ico img.yf-tile { padding: 8px; box-sizing: border-box; }
.hx-flow-node--hub .hx-flow-ico { background: #0d1014; padding: 9px; box-sizing: border-box; }
.hx-flow-node--hub { box-shadow: inset 0 0 0 2px var(--accent-line); }
.hx-flow-line { position: relative; width: 2px; height: 84px; background: var(--line-strong); transition: background .4s ease; }
.hx-flow-line i { position: absolute; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); opacity: 0; }
@keyframes hx-down { 0% { top: -6px; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
@keyframes hx-up { 0% { top: calc(100% - 6px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: -6px; opacity: 0; } }
.hx-flow[data-step="1"] [data-node="console"], .hx-flow[data-step="2"] [data-node="device"], .hx-flow[data-step="3"] [data-node="device"],
.hx-flow[data-step="4"] [data-node="console"], .hx-flow[data-step="5"] [data-node="console"] { box-shadow: inset 0 0 0 2px var(--accent), 0 18px 44px color-mix(in srgb, var(--accent) 20%, transparent); transform: scale(1.04); }
.hx-flow[data-step="1"] [data-line="top"] i, .hx-flow[data-step="3"] [data-line="top"] i, .hx-flow[data-step="3"] [data-line="bottom"] i { animation: hx-down 1.6s ease-in-out infinite; }
.hx-flow[data-step="2"] [data-line="bottom"] i, .hx-flow[data-step="4"] [data-line] i, .hx-flow[data-step="5"] [data-line] i { animation: hx-up 1.6s ease-in-out infinite; }
.hx-flow[data-step="3"] [data-line="bottom"] i { animation-delay: .8s; }
.hx-flow[data-step="4"] [data-line="top"] i, .hx-flow[data-step="5"] [data-line="top"] i { animation-delay: .8s; }
.hx-flow[data-step="1"] [data-line="top"], .hx-flow[data-step="2"] [data-line="bottom"], .hx-flow[data-step="3"] [data-line], .hx-flow[data-step="4"] [data-line], .hx-flow[data-step="5"] [data-line] { background: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.hx-flow-msg { position: absolute; right: -12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.hx-flow-msg[data-msg="1"], .hx-flow-msg[data-msg="4"], .hx-flow-msg[data-msg="5"] { top: -34px; }
.hx-flow-msg[data-msg="2"], .hx-flow-msg[data-msg="3"] { bottom: -34px; }
.hx-flow[data-step="1"] [data-msg="1"], .hx-flow[data-step="2"] [data-msg="2"], .hx-flow[data-step="3"] [data-msg="3"], .hx-flow[data-step="4"] [data-msg="4"], .hx-flow[data-step="5"] [data-msg="5"] { opacity: 1; transform: none; }
.hx-code { font: 700 15px/1 "M PLUS 1 Code", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.hx-ok { font-size: 12px; font-weight: 800; color: #16a34a; }
.hx-chip { font-size: 13px; font-weight: 700; padding: 2px 4px; }
@media (max-width: 860px) {
  .hx-story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hx-story-visual { top: 97px; z-index: 2; height: auto; padding: 24px 0 20px; background: linear-gradient(var(--bg) 88%, transparent); }
  .hx-flow { width: min(300px, 100%); }
  .hx-flow-node { padding: 10px 14px; border-radius: 18px; }
  .hx-flow-ico { width: 38px; height: 38px; border-radius: 12px; }
  .hx-flow-line { height: 40px; }
  .hx-flow-msg { right: -6px; }
  .hx-step { min-height: 52vh; }
}

/* 安全（いつも暗い帯） */
.hx-dark { --hx-a: color-mix(in srgb, var(--accent) 65%, #fff); background: #000; color: #f5f5f7; }
.hx-dark .hx-eyebrow { color: var(--hx-a); }
.hx-dark .hx-lead { color: #a1a1a6; }
.hx-lock { width: 76px; height: 76px; margin: 0 auto 22px; color: var(--hx-a); }
.hx-lock svg { width: 100%; height: 100%; overflow: visible; }
.hx-lock-shackle { transform: translateY(-9px); transition: transform .8s .3s cubic-bezier(.34, 1.56, .64, 1); }
.is-in .hx-lock-shackle { transform: none; }
.hx-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .hx-roles { grid-template-columns: minmax(0, 1fr); } }
.hx-role { padding: 34px; border-radius: 28px; corner-shape: superellipse(1.5); background: #1d1d1f; }
.hx-role small { font-size: 13px; font-weight: 700; color: var(--hx-a); }
.hx-role h3 { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hx-role p { margin-top: 10px; color: #a1a1a6; font-size: 15.5px; line-height: 1.7; }

/* プライバシー */
.hx-privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .hx-privacy { grid-template-columns: minmax(0, 1fr); } }
/* 集めないもの: 線が引かれていく（折り返しても、行ごとに続けて引かれるように inline の背景で描く） */
.hx-never { list-style: none; margin: 0; padding: 0; word-break: auto-phrase; font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.4; }
.hx-never li { display: inline; color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 60% / 0% .09em; transition: background-size .7s cubic-bezier(.65, 0, .35, 1), color .6s ease; }
.hx-never li + li::before { content: "\A"; white-space: pre; }
.hx-never.is-in li { background-size: 100% .09em; color: color-mix(in srgb, var(--ink) 40%, transparent); }
.hx-never li:nth-child(2) { transition-delay: .12s; }
.hx-never li:nth-child(3) { transition-delay: .24s; }
.hx-never li:nth-child(4) { transition-delay: .36s; }
.hx-never li:nth-child(5) { transition-delay: .48s; }
.hx-never li:nth-child(6) { transition-delay: .6s; }
.hx-uses { padding: 34px; border-radius: 28px; corner-shape: superellipse(1.5); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hx-uses h3 { font-size: 18px; font-weight: 800; }
.hx-uses ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hx-uses li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.6; }
.hx-uses li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border: solid var(--link); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.hx-uses > p { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* 保存期間 */
/* SK's Toolbox のオンライン同期（エンドツーエンド暗号化） */
.hx-e2e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 0; max-width: 980px; margin: 0 auto 72px; }
.hx-e2e-end { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hx-e2e-end > small, .hx-e2e-hub > small { font-size: 13px; font-weight: 700; color: var(--muted); }
.hx-e2e-note { width: 100%; max-width: 220px; padding: 18px 20px; border-radius: 22px; corner-shape: superellipse(1.5); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); text-align: left; }
.hx-e2e-note b { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.hx-e2e-note b::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--accent); }
.hx-e2e-note i { display: block; margin: 4px 0 0 28px; font-style: normal; font-size: 13px; color: #dc2626; font-weight: 700; }
.hx-e2e-mid { display: flex; align-items: center; }
.hx-e2e-line { flex: 1; height: 2px; position: relative; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.hx-e2e-line i { position: absolute; top: -3px; left: -20%; width: 20%; height: 8px; border-radius: 4px; background: var(--accent); animation: hx-e2e-flow 2.6s linear infinite; }
.hx-e2e-mid .hx-e2e-line:last-child i { animation-delay: 1.3s; }
@keyframes hx-e2e-flow { to { left: 100%; } }
.hx-e2e-hub { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 24px; border-radius: 28px; corner-shape: superellipse(1.5); background: #000; color: #f5f5f7; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.hx-e2e-hub > small { color: #a1a1a6; }
.hx-e2e-lock { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 30%, #1d1d1f); color: color-mix(in srgb, var(--accent) 60%, #fff); }
.hx-e2e-lock svg { width: 24px; height: 24px; }
.hx-e2e-cipher { font: 700 13px/1.6 "M PLUS 1 Code", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: color-mix(in srgb, var(--accent) 55%, #fff); text-align: center; }
.hx-e2e-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-e2e-point { padding: 28px; border-radius: 26px; corner-shape: superellipse(1.5); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hx-e2e-point h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hx-e2e-point p { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.hx-e2e-detail { margin-top: 48px; }
.hx-e2e-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.hx-e2e-steps li { display: flex; gap: 16px; }
.hx-e2e-steps b { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.hx-e2e-steps h3 { font-size: 18px; font-weight: 800; }
.hx-e2e-steps p { margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 980px) { .hx-e2e-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hx-e2e { grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: center; }
  .hx-e2e-mid { flex-direction: column; }
  .hx-e2e-line { width: 2px; height: 36px; flex: none; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .hx-e2e-line i { display: none; }
  .hx-e2e-points { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hx-e2e-line i { animation: none; display: none; } }

.hx-keep { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.hx-keep-item { padding: 26px; border-radius: 26px; corner-shape: superellipse(1.5); background: var(--bg); }
.hx-keep-item strong { display: block; font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--link); }
.hx-keep-item h3 { margin-top: 12px; font-size: 16px; font-weight: 800; }
.hx-keep-item p { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* あゆみ */
.hx-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.hx-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--accent)); }
.hx-timeline li { position: relative; padding-top: 34px; }
.hx-timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--accent); }
.hx-timeline li:last-child::before { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
.hx-timeline time { font-size: 13px; font-weight: 700; color: var(--link); }
.hx-timeline h3 { margin-top: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; }
.hx-timeline p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (max-width: 860px) {
  .hx-timeline { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-left: 32px; }
  .hx-timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--line-strong), var(--accent)); }
  .hx-timeline li { padding-top: 0; }
  .hx-timeline li::before { left: -32px; top: 2px; }
}

/* おわり */
.hx-end { text-align: center; background: radial-gradient(600px 300px at 50% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.hx-end img { margin: 0 auto 24px; }
.hx-live { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: hx-live 2s ease-out infinite; }
@keyframes hx-live { to { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

/* スクロールで浮かび上がる（hub.js が html に hx-js をつけたときだけ） */
.hx-js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1); }
.hx-js [data-reveal].is-in { opacity: 1; transform: none; }
.hx-js .hx-bento > [data-reveal]:nth-child(2), .hx-js .hx-stats > :nth-child(2), .hx-js .hx-roles > :nth-child(2), .hx-js .hx-timeline > :nth-child(2) { transition-delay: .1s; }
.hx-js .hx-stats > :nth-child(3), .hx-js .hx-roles > :nth-child(3), .hx-js .hx-timeline > :nth-child(3) { transition-delay: .2s; }
.hx-js .hx-stats > :nth-child(4), .hx-js .hx-roles > :nth-child(4), .hx-js .hx-timeline > :nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .hx-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hx-ring, .hx-planet > *, .hx-core::after, .hx-stack i, .hx-shield::before, .hx-shield::after, .hx-device::before, .hx-sync-arrows, .hx-live, .hx-flow-line i { animation: none !important; }
  .hx-flow-line i { opacity: 0 !important; }
}
/* ---------- SK Hub Systems アカウントの紹介ページ（_build/pages/hub-account.html）。hx- の続きで、このページだけのものは ha- ---------- */
.ha-hero { position: relative; overflow: hidden; padding: 80px 0 96px; background: radial-gradient(900px 520px at 80% 60%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), radial-gradient(700px 420px at 10% 0%, color-mix(in srgb, var(--malu) 10%, transparent), transparent 70%); }
.ha-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; }
.ha-hero-text { text-align: left; }
.ha-hero .hx-kicker { color: var(--link); }
.ha-display { font-size: clamp(28px, 4.1vw, 56px); background: linear-gradient(135deg, var(--ink) 40%, color-mix(in srgb, var(--accent) 70%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ha-hero .hx-sub { margin-left: 0; color: var(--muted); }
.ha-hero .hx-cta { justify-content: flex-start; }
@media (max-width: 900px) {
  .ha-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .ha-hero-text { text-align: center; }
  .ha-hero .hx-sub { margin-left: auto; }
  .ha-hero .hx-cta { justify-content: center; }
}
.ha-avatar { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 55%, #fff)); color: #fff; font-size: 30px; font-weight: 800; overflow: hidden; flex: none; }
.ha-avatar img { width: 62%; height: 62%; }
.ha-avatar--sm { width: 56px; height: 56px; font-size: 22px; }
.ha-avatar--xs { width: 38px; height: 38px; font-size: 16px; }
.ha-avatar--lg { width: 88px; height: 88px; font-size: 36px; margin: 0 auto 24px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent); }
.ha-scene { position: relative; display: grid; place-items: center; min-height: 420px; }
.ha-card { position: relative; width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 22px; border-radius: 32px; corner-shape: superellipse(1.5); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(13, 16, 20, .14); animation: ha-float 7s ease-in-out infinite; }
.ha-card > strong { margin-top: 14px; font-size: 20px; font-weight: 800; }
.ha-card > small { color: var(--muted); font-size: 13px; }
.ha-card-list { list-style: none; width: 100%; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ha-card-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); font-size: 14px; font-weight: 700; }
.ha-card-list img { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--surface); }
.ha-card-list img.yf-tile { padding: 5px; box-sizing: border-box; }
.ha-card-list span { flex: 1; min-width: 0; }
.ha-card-list em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #16a34a; }
.ha-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-size: 13.5px; font-weight: 700; white-space: nowrap; animation: ha-float 6s ease-in-out infinite; }
.ha-float svg { width: 18px; height: 18px; color: var(--link); }
.ha-float--1 { top: 36%; right: -2%; animation-delay: -2s; }
.ha-float--2 { top: 7%; left: 2%; animation-delay: -4s; }
.ha-float--2 svg { color: #16a34a; }
@keyframes ha-float { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .ha-float--1 { right: -8px; } .ha-float--2 { left: -8px; top: 2%; } }

/* パスワード */
.ha-key .hx-head { margin-bottom: 0; }
.ha-key-ico svg { transform: rotate(-35deg); transition: transform 1s .2s cubic-bezier(.34, 1.56, .64, 1); }
.is-in .ha-key-ico svg { transform: none; }

/* 使えるサービス */
.ha-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
@media (max-width: 980px) { .ha-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ha-services { grid-template-columns: minmax(0, 1fr); } }
.ha-service { display: flex; flex-direction: column; gap: 10px; padding: 32px 26px; border-radius: 28px; corner-shape: superellipse(1.5); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
a.ha-service:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.ha-service img { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 8px; background: var(--surface-2); }
.ha-service img.yf-tile { padding: 10px; box-sizing: border-box; background: #0d1014; }
.ha-service h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ha-service p { color: var(--muted); font-size: 14.5px; line-height: 1.65; flex: 1; }
.ha-service .hx-link { font-size: 14.5px; }
.ha-service--soon { background: transparent; box-shadow: inset 0 0 0 2px var(--line); border: 0; }
.ha-service-plus { width: 64px; height: 64px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); color: var(--muted); }
.ha-service-plus svg { width: 28px; height: 28px; }

/* 同期 */
.ha-sync { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
@media (max-width: 900px) { .ha-sync { grid-template-columns: minmax(0, 1fr); } }
.ha-sync-devices { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ha-screen { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong), 0 20px 40px rgba(13, 16, 20, .08); }
.ha-screen--laptop { width: min(250px, 52%); border-radius: 16px; }
.ha-screen--phone { width: min(150px, 34%); border-radius: 24px; padding: 26px 10px; }
.ha-setting { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 10px; border-radius: 10px; background: var(--surface); font-size: 12px; }
.ha-setting span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-setting b { font-weight: 800; white-space: nowrap; }
.ha-toggle { position: relative; width: 30px; height: 18px; flex: none; border-radius: 999px; background: var(--line-strong); animation: ha-toggle-bg 4s ease-in-out infinite; }
.ha-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); animation: ha-toggle-knob 4s ease-in-out infinite; }
.ha-screen--phone .ha-toggle, .ha-screen--phone .ha-toggle::after { animation-delay: .5s; }
@keyframes ha-toggle-bg { 0%, 20% { background: var(--line-strong); } 30%, 70% { background: var(--accent); } 80%, 100% { background: var(--line-strong); } }
@keyframes ha-toggle-knob { 0%, 20% { transform: none; } 30%, 70% { transform: translateX(12px); } 80%, 100% { transform: none; } }
.ha-sync-beam { display: flex; gap: 5px; }
.ha-sync-beam i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .2; animation: ha-beam 1.4s ease-in-out infinite; }
.ha-sync-beam i:nth-child(2) { animation-delay: .2s; }
.ha-sync-beam i:nth-child(3) { animation-delay: .4s; }
@keyframes ha-beam { 50% { opacity: 1; transform: scale(1.3); } }
.ha-sync-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.ha-sync-list li { padding-left: 20px; border-left: 3px solid var(--accent); }
.ha-sync-list strong { font-size: 19px; font-weight: 800; }
.ha-sync-list p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* プロフィールとお知らせ */
.ha-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ha-bento .hx-tile { min-height: 380px; }
.ha-bento .hx-tile--wide { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.ha-bento .hx-tile h3 { font-size: clamp(26px, 2.8vw, 34px); }
.ha-inbox { margin-top: auto; }
@media (max-width: 980px) { .ha-bento { grid-template-columns: minmax(0, 1fr); } }
.ha-avatars { display: flex; gap: 14px; margin-top: auto; }
.ha-avatars .ha-avatar { box-shadow: 0 0 0 4px var(--surface); transition: transform .3s ease; }
.ha-avatars .is-on { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent); transform: scale(1.1); }
.ha-inbox { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.ha-inbox-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ha-inbox-item div { flex: 1; min-width: 0; }
.ha-inbox-item strong { display: block; font-size: 14px; }
.ha-inbox-item small { display: block; color: var(--muted); font-size: 12px; }
.ha-inbox-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ha-inbox-item.is-new { box-shadow: inset 0 0 0 1px var(--accent-line), 0 14px 30px color-mix(in srgb, var(--accent) 14%, transparent); }
.is-in .ha-inbox-item.is-new { animation: ha-arrive .8s .4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes ha-arrive { from { transform: translateY(-16px); opacity: 0; } }

/* データの管理 */
.ha-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .ha-controls { grid-template-columns: minmax(0, 1fr); } }
.ha-control-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .08); color: var(--hx-a); margin-bottom: 18px; }
.ha-control-ico svg { width: 26px; height: 26px; }
.ha-control h3 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .ha-card, .ha-float, .ha-toggle, .ha-toggle::after, .ha-sync-beam i { animation: none !important; }
}
/* ================================================================
   ドメイン変更のお知らせ（/domain/。_build/pages/domain.html）
   ================================================================ */
.dm-move { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.dm-addr { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 20px; corner-shape: superellipse(1.5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.dm-addr small { font-size: 12px; font-weight: 700; color: var(--muted); }
.dm-addr span { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 17px; color: var(--muted); overflow-wrap: anywhere; }
.dm-addr b { color: var(--ink); font-weight: 700; }
.dm-addr--old b { text-decoration: line-through; text-decoration-color: var(--line-strong); text-decoration-thickness: 2px; color: var(--muted); }
.dm-addr--new { border-color: var(--accent-line); background: linear-gradient(135deg, var(--tint-blue), var(--surface) 75%); }
.dm-addr--new b { color: var(--accent); }
.dm-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); flex: none; }
.dm-arrow svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .dm-move { flex-direction: column; align-items: stretch; }
  .dm-arrow { align-self: center; transform: rotate(90deg); }
}

.dm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dm-step { position: relative; padding: 22px; border-radius: 24px; corner-shape: superellipse(1.5); background: var(--surface); border: 1px solid var(--line); }
.dm-step strong { display: block; font-size: 18px; margin-top: 12px; }
.dm-step p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.dm-step-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.dm-step.is-now { border-color: var(--accent-line); box-shadow: var(--shadow); }
.dm-step.is-now .dm-step-tag { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 960px) { .dm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dm-steps { grid-template-columns: 1fr; } }

.dm-table { border: 1px solid var(--line); border-radius: 20px; corner-shape: superellipse(1.5); overflow: hidden; background: var(--surface); }
.dm-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1.1fr; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 14.5px; align-items: baseline; }
.dm-row:first-child { border-top: 0; }
.dm-row span:not(:first-child) { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.dm-row span:nth-child(2) { color: var(--muted); }
.dm-row b { color: var(--accent); }
.dm-row--head { background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dm-row--head span:not(:first-child) { font-family: inherit; font-size: inherit; }
@media (max-width: 600px) {
  .dm-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
  .dm-row--head { display: none; }
  .dm-row span:first-child { font-weight: 700; }
  .dm-row span:nth-child(2)::after { content: " →"; }
}

.dm-new-item { padding: 22px; border-radius: 24px; corner-shape: superellipse(1.5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dm-new-item h3 { font-size: 17px; font-weight: 700; margin-top: 14px; }
.dm-new-item p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

.dm-keep h3 { font-size: 17px; font-weight: 700; }
.dm-keep p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
@media (max-width: 760px) { .dm-keep { grid-template-columns: 1fr; } }

.dm-todo { display: flex; flex-direction: column; gap: 12px; }
.dm-item { display: flex; gap: 16px; padding: 20px 22px; border-radius: 22px; corner-shape: superellipse(1.5); background: var(--surface); border: 1px solid var(--line); }
.dm-item-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint-blue); color: var(--accent); flex: none; }
.dm-item-ico svg { width: 22px; height: 22px; }
.dm-item h3 { font-size: 17px; font-weight: 700; }
.dm-item p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.dm-item ul { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--muted); }
.dm-item ul b { color: var(--ink); }
@media (max-width: 600px) { .dm-item { flex-direction: column; gap: 12px; padding: 18px; } }

.dm-faq { display: flex; flex-direction: column; gap: 10px; }
.dm-faq details { border-radius: 18px; corner-shape: superellipse(1.5); background: var(--surface); border: 1px solid var(--line); }
.dm-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.dm-faq summary::-webkit-details-marker { display: none; }
.dm-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.dm-faq details[open] summary::after { content: "−"; }
.dm-faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.dm-contact { margin-top: 24px; color: var(--muted); }

/* ================================================================
   sk-hub.jp への引っ越しのお知らせ（ヘッダーの下の帯。index.html の #sk-dn。build で全ページに入る）
   ================================================================ */
.sk-dn { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; padding: 9px 52px 9px 16px; position: relative; background: var(--tint-blue); border-bottom: 1px solid var(--accent-line); color: var(--ink); font-size: 14px; line-height: 1.5; text-align: center; }
.sk-dn[hidden] { display: none; }
.sk-dn-text { margin: 0; }
.sk-dn-text strong { font-weight: 700; }
.sk-dn-text span { color: var(--muted); margin-left: .6em; }
.sk-dn-more { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.sk-dn-more:hover { filter: brightness(1.08); }
.sk-dn-close { position: absolute; right: 10px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.sk-dn-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (max-width: 600px) {
  .sk-dn { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; text-align: left; padding: 8px 44px 8px 16px; font-size: 13.5px; line-height: 1.4; }
  .sk-dn-text { flex: 1; min-width: 0; }
  .sk-dn-text span { display: none; }
  .sk-dn-close { right: 6px; }
}
html.in-line .sk-dn { display: none; }
/* 古いアドレスのホーム（index.html。引っ越しの案内だけ） */
.home-move-btns { margin-top: 28px; }
.home-move-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.home-move-more { margin-top: 20px; font-weight: 700; }
.dm-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .dm-steps--3 { grid-template-columns: 1fr; } }
/* 古いアドレスの帯（オレンジ・閉じられない） */
.sk-dn--old { background: var(--warn-bg); border-bottom-color: color-mix(in srgb, var(--amber) 45%, transparent); padding-right: 16px; }
.sk-dn--old .sk-dn-text span { color: var(--warn-ink); }
.sk-dn--old .sk-dn-more { background: var(--amber-ink); color: #fff; }
.sk-dn--old .sk-dn-new { background: transparent; color: var(--warn-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn-ink) 40%, transparent); }
@media (max-width: 600px) {
  .sk-dn--old { flex-wrap: wrap; padding-right: 16px; }
  .sk-dn--old .sk-dn-text { flex-basis: 100%; }
}
