/* 全ページ共通の殻（2026-11-08 作り直し）。色は変数だけで書き、ダークは OS の設定に従う。
   土台・ナビ・フッター・部品・各ページの小さな部分。ホームの帯とタイルは home.css */
:root {
  /* 書体はこの1本だけ（11-15 #288）。ページ・部品ごとに別の並びを書かない */
  --font-ui: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --ink: #1d1d1f; --mute: #6e6e73; --mute-d: #86868b; --on: #fff; --soft: #fff;
  --blue: #0071e3; --blue-link: #0066cc; --blue-d: #2997ff;
  /* 動きの物差し（11-11、memory/ref/motion-design.md）。曲線はこの4つと、ばね2本だけ */
  --m-fade: cubic-bezier(.25, .1, .25, 1); --m-out: cubic-bezier(0, 0, .5, 1); --m-move: cubic-bezier(.4, 0, .6, 1); --m-in: cubic-bezier(.4, 0, 1, 1);
  --m-smooth: linear(0, .039, .128, .237, .35, .457, .553, .636, .707, .766, .814, .853, .884, .91, .93, .945, .958, .967, .975, .981, .985, .989, .991, .993, 1); --m-smooth-t: .41s;
  --m-snappy: linear(0, .023, .079, .156, .242, .332, .419, .502, .578, .647, .707, .759, .804, .843, .875, .901, .923, .941, .955, .966, .975, .982, .988, .992, 1); --m-snappy-t: .26s;
  --ease: var(--m-out);
  --band: 692px; --tile: 580px; --gap: 12px;
  --f-h2: 56px; --lh-h2: 60px; --ls-h2: -.28px;
  --f-h3: 40px; --lh-h3: 44px;
  --f-sub: 28px; --lh-sub: 33px; --ls-sub: .196px;
  --f-p: 21px; --lh-p: 26px; --ls-p: .231px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--card); }
body {
  font: 400 17px/1.4705882353 var(--font-ui); /* 17px で行送りがちょうど 25px（apple.com と同じ値） */
  color: var(--ink); background: var(--card); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* 見出しと中央揃えの文は詰め組み。全角「。」の右の空きが消え、見た目の中心が合う（長い本文には掛けない） */
h1, h2, h3, .band, .tile, .hero, .copy, .state, dialog.alert, .msg, .auth-in, .oc-top .t, .oc-state, .oc-note, .dayh, .fakeplayer, .map .me { font-feature-settings: "palt"; }
a { color: inherit; text-decoration: none; }
img { display: block; }
/* ボタン・入力欄は既定で Arial になるので、地の書体を継がせる（11-15） */
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }

/* ナビ（上のバー）。2026-11-08 apple.com/jp の #globalnav を実測して作り直し。全ページこの1組だけで描き、ページ側の CSS では上書きしない。
   実測: iPhone〜iPad 縦（〜833px）は高さ 48・左の字は端から 16・右の丸は 48 四方、Mac・iPad 横（834px〜）は高さ 44・中身は 1024 幅で余白 22＋8。
   地は rgba(245,245,247,.8) に saturate(1.8) blur(20px)、字と線は rgba(0,0,0,.8)、2本線は 18 四方で太さ 1.2。開くと地は #fafafc */
:root { --gnav-h: 48px; --gnav-top: calc(var(--gnav-h) + env(safe-area-inset-top)); }
@media (min-width: 834px) { :root { --gnav-h: 44px; } }
.nav { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--gnav-top); padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background: rgba(245, 245, 247, .8); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  font: 400 17px/1 var(--font-ui);
  letter-spacing: normal; color: #1d1d1f; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow: hidden; transition: height .32s var(--m-move), background-color .32s var(--m-move); }
.nav-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; max-width: 1024px; margin: 0 auto; }
.brand { flex: none; display: flex; align-items: center; height: var(--gnav-h); padding: 0 16px; font-size: 17px; line-height: 1; font-weight: 600; letter-spacing: normal; color: rgba(0, 0, 0, .8); white-space: nowrap; transition: color .32s var(--m-move); }
/* 11-17 #392 左は「Sora」の文字でなく雲と太陽の印（apple.com/jp の Apple ロゴの場所）。描かれた形の外接矩形を Apple のロゴの形に合わせる。
   実測（apple.com/jp、Chrome）: 〜833px はロゴの形が 左 16.94・上 12.75・高さ 18.57（バー 48）、834px〜 は 中身の左から 22.51・上 12.25・高さ 15.94（バー 44）。
   印の viewBox は描かれた形ぴったり（559.83×388.215）なので、幅＝高さ×1.4420。色は文字色を継ぐ（rgba(0,0,0,.8)、ホバーで #000、.32s）。「Sora」は読み上げ用に隠して残す */
.brand { align-items: flex-start; }
.brand-mark { flex: none; display: block; width: 26.7737px; height: 18.5664px; margin: 12.75px 0 0 .9435px; fill: currentColor; overflow: visible; }
.brand-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav a, .nav button { -webkit-tap-highlight-color: transparent; } /* iPhone で押した時のグレーの四角を出さない（Apple のバーと同じ） */
.nav-quick { flex: none; display: flex; margin-left: auto; }
.nav-quick a { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: var(--gnav-h); color: rgba(0, 0, 0, .8); transition: color .32s var(--m-move); }
.nav-quick svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.brand:hover, .nav-quick a:hover { color: #000; }
/* 11-08 apple.com/jp のバーには「開いているページ」の印が無い（/jp/iphone/ でも iPhone は他と同じ色・点なし）ので、点・色の差は付けない。aria-current は読み上げ用に残すだけ。 */
.nav-toggle { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: var(--gnav-h); padding: 0; border: 0; background: none; color: #000; opacity: .8; cursor: pointer; transition: opacity .32s var(--m-move); }
.nav-toggle:hover { opacity: 1; }
.nav-toggle svg { width: 18px; height: 18px; overflow: visible; }
.nav-toggle line { stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: transform .24s var(--m-move); }
.nav.open .nav-toggle .bt { transform: translateY(4px) rotate(45deg) scaleX(1.16); }
.nav.open .nav-toggle .bb { transform: translateY(-3px) rotate(-45deg) scaleX(1.16); }
@media (min-width: 834px) {
  .nav-in { padding: 0 24px; }
  .brand { padding: 0 8px; }
  .brand-mark { width: 22.9796px; height: 15.9354px; margin: 12.2507px 0 0 .514px; }
  .nav-quick a { width: auto; padding: 0 8px; }
  .nav-quick svg { width: 15px; height: 15px; stroke-width: 1.2; }
  .nav-toggle { width: 34px; margin-right: -8px; }
}
/* 文字を 200% に拡大した iPhone（幅 160〜215px 相当）でも重ならないよう、狭いときは丸を詰め、さらに狭いと丸を隠す（行き先はメニューの中にある） */
@media (max-width: 299px) { .brand { padding: 0 12px; } .nav-quick a, .nav-toggle { width: 40px; } .nav-links a, .nav-out button { padding-left: 24px; padding-right: 24px; white-space: normal; } }
@media (max-width: 239px) { .nav-quick { display: none; } .nav-toggle { margin-left: auto; } }
/* メニュー（2本線で開く）。項目は 28px の太字（Mac は 24px）、上から並び、少しずつ下りて現れる */
.nav-links { flex: 0 0 100%; list-style: none; margin: 0; padding: 8px 0 calc(32px + env(safe-area-inset-bottom)); visibility: hidden; transition: visibility 0s .32s; }
.nav.open { height: 100vh; height: 100dvh; background: #fafafc; -webkit-backdrop-filter: none; backdrop-filter: none; overflow-y: auto; overscroll-behavior: contain; }
.nav.open .nav-links { visibility: visible; transition: none; }
/* apple.com と同じく、開いている間は左の字と右の丸を消して × だけにする */
.nav.open .brand, .nav.open .nav-quick { opacity: 0; visibility: hidden; transition: opacity .24s var(--m-move), visibility 0s .24s; }
.brand, .nav-quick { transition: opacity .24s var(--m-move) .08s, color .32s var(--m-move); }
.nav-links li { opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--m-move), transform .2s var(--m-move); }
.nav.open .nav-links li { opacity: 1; transform: none; transition-duration: .32s; }
.nav.open .nav-links li:nth-child(2) { transition-delay: .02s; } .nav.open .nav-links li:nth-child(3) { transition-delay: .04s; } .nav.open .nav-links li:nth-child(4) { transition-delay: .06s; } .nav.open .nav-links li:nth-child(5) { transition-delay: .08s; }
.nav.open .nav-links li:nth-child(6) { transition-delay: .1s; } .nav.open .nav-links li:nth-child(7) { transition-delay: .12s; } .nav.open .nav-links li:nth-child(8) { transition-delay: .14s; } .nav.open .nav-links li:nth-child(9) { transition-delay: .16s; } .nav.open .nav-links li:nth-child(10) { transition-delay: .18s; }
.nav-links a { display: block; padding: 8px 48px; font-size: 28px; line-height: 28px; font-weight: 600; color: #333336; white-space: nowrap; transition: color .32s var(--m-move); }
.nav-links a:hover { color: #000; }
.nav-out { margin-top: 16px; }
.nav-out button { padding: 12px 48px; border: 0; background: none; font: inherit; font-size: 17px; color: #6e6e73; cursor: pointer; }
@media (min-width: 834px) {
  .nav-links { padding: 32px 32px 60px; }
  .nav-links a { padding: 8px 0; font-size: 24px; line-height: 28px; }
  .nav-out button { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav *, .nav-links li { transition: none !important; } }
/* 11-08 広い幅（834px〜、Mac・iPad 横）は apple.com/jp の #globalnav と同じく、メニューの中身を全部横並びの文字にして二本線を出さない。
   実測: 中身は 1024 幅・余白 14（＝22−8）で、項目は端から端まで等間隔（space-between）。字は 12px・400・rgba(0,0,0,.8)、項目の左右 8、ホバーで #000（.32s）。
   右端は Apple の虫眼鏡・袋の位置にサインアウトの印（文字の行き先と重なる3つの丸は出さない）。開いている画面の印は付けない（Apple と同じく全項目同じ色、ホバーだけ #000） */
.nav-out svg { display: none; }
@media (min-width: 834px) {
  .nav-in { flex-wrap: nowrap; justify-content: space-between; padding: 0 16px; }
  .brand { margin-left: -2px; } /* Apple と同じくリンクの左端を中身の左から 14（＝16−2）に置く。印の左は 14＋8＋.514＝22.514 */
  .nav-quick, .nav-toggle { display: none; }
  .nav-links { display: contents; visibility: visible; transition: none; }
  .nav-links li { flex: none; opacity: 1; transform: none; transition: none; }
  .nav-links a { position: relative; display: flex; align-items: center; height: var(--gnav-h); padding: 0 8px; font-size: 12px; line-height: 1; font-weight: 400; color: rgba(0, 0, 0, .8); }
  .nav-links a:hover { color: #000; }
  .nav-out { margin: 0; }
  .nav-out button { display: flex; align-items: center; justify-content: center; height: var(--gnav-h); padding: 0 8px; color: rgba(0, 0, 0, .8); transition: color .32s var(--m-move); }
  .nav-out button:hover { color: #000; }
  .nav-out svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
  .nav-out span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav.open { height: var(--gnav-top); background: rgba(245, 245, 247, .8); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); overflow: hidden; }
  .nav.open .brand { opacity: 1; visibility: visible; }
}

main { padding-top: var(--gnav-top); display: flex; flex-direction: column; gap: var(--gap); }


/* フッター（実測: 12px/17px） */
.foot { background: var(--soft); border-top: 1px solid var(--sep); font-size: 12px; line-height: 17px; color: var(--mute); }
.foot-in { max-width: 1024px; margin: 0 auto; padding: 32px 24px 24px; }
.cols { display: flex; justify-content: space-between; gap: 24px; }
.cols h3 { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.cols a { display: flex; align-items: center; min-height: 44px; color: var(--mute); }
.cols a:hover { text-decoration: underline; }
.legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--sep); }
.out { padding: 0; border: 0; background: none; font: inherit; color: var(--mute); cursor: pointer; }
.out:hover { text-decoration: underline; }
.legal .out { min-height: 44px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }


@media (max-width: 734px) {
  :root { --band: 500px; --tile: 500px; --f-h2: 32px; --lh-h2: 36px; --ls-h2: .064px; --f-h3: 32px; --lh-h3: 36px; --f-sub: 19px; --lh-sub: 24px; --ls-sub: .228px; --f-p: 17px; --lh-p: 21px; --ls-p: .187px; }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


:root { --red: #d70015; --line: rgba(0, 0, 0, .1); --card: #fff; --safe-b: env(safe-area-inset-bottom); --dock-h: 72px; }
html.lock, html.lock body { overflow: hidden; }


/* ページの骨組み */
body.tool { background: var(--soft); }
.page { max-width: 1004px; margin: 0 auto; padding: var(--gnav-top) 20px calc(var(--dock-h) + 40px + var(--safe-b)); }
.ph { padding: 48px 4px 28px; }
.ph h1 { font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -.003em; }
.ph .sub { margin-top: 8px; font-size: 21px; line-height: 26px; color: var(--mute); }
.h2 { margin: 36px 4px 12px; font-size: 24px; line-height: 30px; font-weight: 600; }
.cap { margin: 12px 4px 0; font-size: 13px; line-height: 18px; color: var(--mute); }
@media (max-width: 734px) {
  .ph { padding: 32px 4px 20px; }
  .ph h1 { font-size: 34px; line-height: 40px; }
  .ph .sub { font-size: 17px; line-height: 22px; }
}

/* 面と行 */
.group { background: var(--card); border-radius: 18px; overflow: hidden; }
.group + .group { margin-top: 12px; }
.pad { padding: 20px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.row.thumb + .row.thumb::before { left: 84px; }
.row:active { background: rgba(0, 0, 0, .04); }
.row .main { flex: 1; min-width: 0; }
label.row .main { flex: none; }
label.row .i { flex: 1; width: auto; min-width: 0; }
.row b { display: block; font-size: 17px; line-height: 22px; font-weight: 600; }
.row small { display: block; font-size: 13px; line-height: 18px; color: var(--mute); }
.row .end { flex: none; font-size: 15px; color: var(--mute); }
.row .ell, .ell { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chev { flex: none; width: 8px; height: 14px; fill: none; stroke: var(--mark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--fill); }
.ph-txt { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--fill); font-size: 20px; font-weight: 600; color: var(--mute); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--fill); font-size: 12px; line-height: 16px; color: var(--mute); }
.tag.on { background: rgba(0, 113, 227, .12); color: var(--blue-link); }

/* 数字 */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.nums div { padding: 16px; background: var(--card); border-radius: 18px; }
.nums dd { margin: 0; font-size: 34px; line-height: 40px; font-weight: 600; }
.nums dt { font-size: 13px; line-height: 18px; color: var(--mute); }

/* 下の操作帯。親指の位置に固定 */
.dock { position: fixed; z-index: 8; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 2px; max-width: calc(100vw - 24px); padding: 4px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 6px 24px rgba(0, 0, 0, .12); }
.dock button, .dock a { flex: none; min-width: 72px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; display: grid; place-items: center; white-space: nowrap; }
.dock [aria-pressed="true"], .dock [aria-selected="true"] { background: var(--ink); color: var(--bg); }
.dock .go { background: var(--blue); color: #fff; }
.dock button:disabled { color: var(--dis); cursor: default; }
.dock.four button { min-width: 0; flex: 1; padding: 0 12px; }

.fab { position: fixed; z-index: 8; right: 20px; bottom: calc(18px + var(--safe-b)); width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 30px; font-weight: 400; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.fab:active { transform: scale(.96); }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.btn:disabled { background: var(--fill); color: var(--dis); cursor: default; }
.btn.plain { background: var(--fill); color: var(--ink); }
.btn.danger { background: none; color: var(--red); }
.btn.small { width: auto; min-height: 44px; border-radius: 999px; font-size: 15px; }
.btn + .btn { margin-top: 8px; }
.link { padding: 12px 0; border: 0; background: none; font: inherit; color: var(--blue-link); cursor: pointer; }

/* 横に流す札 */
.chips { position: sticky; top: var(--gnav-top); z-index: 5; display: flex; gap: 8px; margin: 0 -20px 12px; padding: 8px 20px; overflow-x: auto; scrollbar-width: none; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--fill); font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* 入力。16px 未満だと iOS が拡大してしまう */
label.f { display: block; margin-bottom: 16px; }
label.f span { display: block; margin: 0 4px 8px; font-size: 13px; color: var(--mute); }
input.i, select.i, textarea.i { display: block; width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--fill2); font: inherit; font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none; }
textarea.i { min-height: 200px; resize: vertical; line-height: round(calc(1em * 1.5), 1px); }
.group .i { background: var(--fill2); }
.ok { margin-top: 12px; font-size: 15px; color: var(--mute); }
.ng { margin-top: 12px; font-size: 15px; color: var(--red); }

/* シート */
dialog.sheet { width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--soft); color: var(--ink); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: up .28s var(--ease); }
dialog::backdrop { background: rgba(0, 0, 0, .36); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sh-bar { position: relative; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 54px; padding: 0 8px; }
.sh-bar h2 { grid-column: 2; font-size: 17px; font-weight: 600; }
.sh-back, .sh-done { min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 17px; color: var(--blue-link); cursor: pointer; }
.sh-back { grid-column: 1; justify-self: start; } .sh-done { grid-column: 3; justify-self: end; font-weight: 600; }
.sh-body { flex: 1; overflow-y: auto; padding: 4px 16px calc(20px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
@media (min-width: 735px) {
  dialog.sheet { width: 560px; margin: auto; border-radius: 28px; max-height: 80dvh; }
}
dialog.alert { width: 300px; margin: auto; padding: 24px 20px 12px; border: 0; border-radius: 18px; text-align: center; color: var(--ink); }
dialog.alert h2 { font-size: 17px; line-height: 22px; font-weight: 600; }
dialog.alert p { margin-top: 8px; font-size: 14px; line-height: 19px; color: var(--mute); }
.alert-b { display: flex; gap: 8px; margin-top: 20px; }
.alert-b button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: var(--fill); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.alert-b .o { background: var(--blue); color: #fff; }
.alert-b .o.danger { background: var(--red); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translate(-50%, 12px); display: flex; align-items: center; gap: 16px; box-sizing: border-box; width: max-content; max-width: min(calc(100vw - 32px), 480px); min-height: 44px; padding: 12px 20px; border-radius: 18px; background: rgba(29, 29, 31, .92); color: #fff; font-size: 15px; line-height: 21px; opacity: 0; pointer-events: none; transition: opacity .2s var(--m-in), transform .2s var(--m-in); }
/* 11-11 出は 0.3s（「なめらか」ばね・12px 下から）、消えるは 0.2s var(--m-in) */
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition: opacity .3s var(--m-out), transform .3s var(--m-smooth); }
.toast.bad { background: var(--red); }
.toast button { padding: 8px 0; border: 0; background: none; font: inherit; font-weight: 600; color: #6cb6ff; cursor: pointer; white-space: nowrap; }

.state { padding: 72px 24px; text-align: center; color: var(--mute); }
.state h2 { font-size: 21px; line-height: 26px; font-weight: 600; color: var(--ink); }
.state p { margin-top: 8px; font-size: 15px; line-height: 20px; }
.state .btn { margin: 20px auto 0; }

.switch { position: relative; flex: none; width: 51px; height: 31px; border: 0; border-radius: 999px; background: var(--fill3); cursor: pointer; transition: background .2s var(--m-fade); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

.seg { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--fill3); }
.seg button { flex: 1; min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg button:disabled { color: var(--dis); }

.bar { display: block; height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.bar i.low { background: var(--red); }
.bar i.mid { background: #b25000; }

/* 訪問記録 */
.vgrid { display: grid; grid-template-columns: 1fr; gap: 0; }
.month { margin: 24px 4px 8px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--mute); }
.month:first-child { margin-top: 8px; }
.store-row .bar { margin-top: 8px; }

/* メモ */
.nlay { display: grid; gap: 16px; }
.sbar { display: flex; gap: 8px; margin-bottom: 12px; }
.sbar .i { min-height: 44px; padding: 8px 16px; background: var(--card); }
.sbar input.i { flex: 1 1 0; width: auto; min-width: 0; }
.nlay > * { min-width: 0; }
.sbar select.i { flex: none; width: 118px; font-size: 15px; }
.nbody { padding: 0 16px 16px; }
.nbody p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 25px; }
.nbody a { color: var(--blue-link); }
.nact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.nact button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--fill2); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.nact button.del { color: var(--red); }
.nact select { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--fill2); font: inherit; font-size: 14px; color: var(--ink); }
.count { font-size: 13px; color: var(--mute); text-align: right; }
.count.over { color: var(--red); }
@media (min-width: 735px) { .nlay { grid-template-columns: 280px 1fr; align-items: start; } .only-phone { display: none !important; } }
@media (max-width: 734px) {
  [data-view="list"] .nfold { display: none; }
  [data-view="folders"] .nlist { display: none; }
  .nums dd { font-size: 28px; line-height: 34px; }
}

/* 機器 */
.place { font-size: 28px; line-height: 33px; font-weight: 600; }
.bat { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 16px; position: relative; }
.bat + .bat::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.bat b { font-size: 17px; font-weight: 600; } .bat .pc { font-size: 17px; font-variant-numeric: tabular-nums; } .bat .bar { grid-column: 1 / -1; }
details.more > summary { display: flex; align-items: center; min-height: 54px; padding: 0 16px; cursor: pointer; font-size: 15px; color: var(--mute); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
.twocol { display: grid; gap: 12px; }
@media (min-width: 735px) { .twocol { grid-template-columns: 1fr 1fr; align-items: start; } .twocol .group + .group { margin-top: 0; } }
.mini-list { margin-top: 12px; font-size: 15px; line-height: 22px; list-style: none; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.mini-list em { font-style: normal; color: var(--mute); white-space: nowrap; }

/* ファイル */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 4px 12px; font-size: 15px; color: var(--mute); }
.crumb button { min-height: 36px; padding: 0 2px; border: 0; background: none; font: inherit; color: var(--blue-link); cursor: pointer; }
.crumb b { font-weight: 600; color: var(--ink); }
.fic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--fill2); color: var(--mute); font-size: 11px; font-weight: 600; }
.fic.dir { background: rgba(0, 113, 227, .12); color: var(--blue-link); }
.row.locked { opacity: .5; cursor: default; }
.banner { display: block; margin-bottom: 12px; padding: 16px 16px; border-radius: 18px; background: var(--card); color: var(--red); font-size: 15px; }
.banner b { display: block; font-weight: 600; }
.viewer img { display: block; width: 100%; border-radius: 12px; }
.viewer pre { padding: 16px; border-radius: 12px; background: var(--card); font: 14px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.fakeplayer { padding: 48px 16px; border-radius: 12px; background: #000; color: #fff; text-align: center; font-size: 15px; }

/* 移動ルート */
.map { position: relative; height: 340px; background: var(--fill); border-radius: 18px; overflow: hidden; }
.map svg { display: block; width: 100%; height: 100%; }
.map .cr { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--mute); }
.map .me { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; background: var(--glass); }
.map .me b { font-size: 17px; } .map .me small { font-size: 13px; color: var(--mute); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0 0; }
.days button { min-height: 58px; padding: 4px 0; border: 0; border-radius: 12px; background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }
.days small { display: block; font-size: 11px; color: var(--mute); } .days b { font-size: 17px; font-weight: 600; }
.days [aria-pressed="true"] { background: var(--ink); color: var(--bg); } .days [aria-pressed="true"] small { color: #d2d2d7; }
.days .blank { background: none; color: var(--dis); }
.num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.notice { margin-bottom: 12px; padding: 12px 16px; border-radius: 18px; background: var(--card); font-size: 15px; color: var(--mute); }
@media (min-width: 735px) { .loclay { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; } .map { height: 460px; } }

/* サインイン・エラー */
body.auth { background: var(--soft); }
.auth-in { display: flex; flex-direction: column; justify-content: center; max-width: 440px; min-height: 100dvh; margin: 0 auto; padding: 44px 24px calc(40px + var(--safe-b)); }
.auth-in h1 { font-size: 40px; line-height: 44px; font-weight: 600; }
.auth-in .sub { margin: 12px 0 32px; font-size: 17px; line-height: 24px; color: var(--mute); }
.auth-code { font-size: 15px; font-weight: 600; color: var(--mute); margin-bottom: 8px; }
.auth-brand { font-size: 17px; font-weight: 600; margin-bottom: 40px; }
.msg { min-height: 24px; margin-top: 16px; font-size: 15px; line-height: 20px; color: var(--mute); text-align: center; }
.msg.bad { color: var(--red); }

/* 遠隔 */
/* 上のバーの真後ろだけ他ページと同じ明るい地にして、半透明のバーを同じグレーに見せる */
body.rc-page { background: linear-gradient(#fff, #fff) top / 100% var(--gnav-top) no-repeat #000; color: var(--on); }
.rc-pre { max-width: 1004px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) 20px calc(32px + var(--safe-b)); min-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.rc-pre .ph { margin-top: 0; }
.rc-pre .ph .sub { color: var(--mute-d); }
.rcards { display: grid; gap: 12px; }
.rcard { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 20px 16px 20px 20px; border-radius: 18px; background: #1d1d1f; }
.rcard.sel { box-shadow: inset 0 0 0 1.5px var(--blue-d); }
.rcard h2 { font-size: 21px; line-height: 26px; font-weight: 600; }
.rcard p { grid-column: 1; font-size: 14px; line-height: 19px; color: var(--mute-d); }
.rcard .act { grid-column: 2; grid-row: 1 / 3; min-width: 84px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.rcard .act.wake { background: #424245; }
.rcard .act:disabled { background: #2c2c2e; color: #636366; cursor: default; }
.rc-pre .cap { color: var(--mute-d); }
.rc-links { display: flex; gap: 20px; margin-top: 12px; padding: 0 4px; font-size: 15px; }
.rc-links a { color: var(--blue-d); padding: 8px 0; }
.rc-a2hs { margin-top: 12px; padding: 12px 16px; border-radius: 18px; background: #1d1d1f; font-size: 14px; line-height: 19px; color: var(--mute-d); }
@media (min-width: 735px) { .rcards { grid-template-columns: repeat(3, 1fr); } .rcard { display: flex; flex-direction: column; align-items: flex-start; min-height: 220px; } .rcard .act { margin-top: auto; } .rc-pre { justify-content: center; } }
.stage { position: fixed; inset: 0; z-index: 20; background: #000; overflow: hidden; touch-action: none; }
.stage canvas { position: absolute; left: 50%; top: 50%; transform-origin: center; }
.r-pill { position: absolute; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(29, 29, 31, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--on); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; transition: opacity .4s var(--m-fade); }
.r-pill.dim { opacity: .35; }
.r-fabs { position: absolute; right: 16px; bottom: calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; touch-action: none; }
.r-fabs.left { right: auto; left: 16px; }
.r-fabs button { width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(29, 29, 31, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--on); font: inherit; font-size: 12px; cursor: pointer; }
.keys { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 8px calc(8px + var(--safe-b)); background: rgba(29, 29, 31, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.keys-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.keys button { flex: none; min-width: 44px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: #3a3a3c; color: var(--on); font: inherit; font-size: 14px; cursor: pointer; }
.keys button[data-st="1"] { background: var(--blue); } .keys button[data-st="2"] { background: #fff; color: #000; }
.r-mini { position: absolute; left: 12px; top: calc(56px + env(safe-area-inset-top)); width: 132px; height: 84px; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); touch-action: none; }
.r-mini canvas { position: static; width: 100%; height: 100%; }
.r-mini i { position: absolute; border: 1.5px solid #fff; border-radius: 999px; pointer-events: none; }
.ripple { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .35); animation: rip .25s var(--m-in) forwards; pointer-events: none; }
/* 11-11 波紋（広がる円）をやめ、触れた所に点を出してその場で薄く消すだけ（Apple は押下を縮む・薄くなるで返す） */
@keyframes rip { from { opacity: 1; } to { opacity: 0; } }
.gtag { position: absolute; left: 50%; bottom: 40%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; }
.stats-l { font-size: 13px; line-height: 20px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* OpenClaw: iPhone は 一覧 ⇄ 会話 の2画面、iPad は左右に並べる */
body.oc-page { height: 100dvh; overflow: hidden; background: var(--soft); }
.oc:where(:not(.tile)) { position: fixed; inset: var(--gnav-top) 0 0; display: grid; grid-template-columns: 340px 1fr; }
.oc-side { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--soft); border-right: 1px solid var(--line); }
.oc-side.shut { display: none; } .oc.noside { grid-template-columns: 1fr; }
.oc-sh { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 16px 16px 8px; }
.oc-sh h1 { font-size: 34px; line-height: 40px; font-weight: 600; }
.ibtn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 20px; color: var(--ink); cursor: pointer; }
.oc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px calc(var(--dock-h) + 24px + var(--safe-b)); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }
.dot.running { background: var(--blue); animation: pulse 2s var(--m-move) infinite; } .dot.bad { background: var(--red); } .dot.wait { background: var(--dis); }
@keyframes pulse { 50% { opacity: .35; } }
.oc-side .dock { position: absolute; }
.oc-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); }
.oc-top { flex: none; display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.oc-top .t { flex: 1; min-width: 0; text-align: center; font-size: 17px; font-weight: 600; }
.oc-state { flex: none; padding: 4px 16px; font-size: 12px; text-align: center; color: var(--mute); }
.oc-state.bad { color: var(--red); }
.oc-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; }
.oc-msgs > div { max-width: 720px; margin-left: auto; margin-right: auto; }
.dayh { margin: 16px 0 12px; text-align: center; font-size: 12px; color: var(--mute); }
.m-me { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.m-me .b { max-width: 80%; padding: 8px 16px; border-radius: 20px; background: var(--blue); color: #fff; font-size: 17px; line-height: 23px; }
.m-st { margin-top: 4px; text-align: right; font-size: 12px; color: var(--mute); }
.m-ai { margin-top: 16px; font-size: 17px; line-height: 26px; }
.m-ai p + p, .m-ai ul, .m-ai pre, .m-ai table { margin-top: 8px; }
.m-ai code { padding: 1px 4px; border-radius: 8px; background: var(--fill2); font: 15px ui-monospace, Menlo, monospace; }
.m-ai pre { padding: 12px; border-radius: 12px; background: var(--fill2); overflow-x: auto; font: 14px/1.45 ui-monospace, Menlo, monospace; }
.m-ai table { border-collapse: collapse; font-size: 15px; } .m-ai td, .m-ai th { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); text-align: left; }
.m-ai a { color: var(--blue-link); }
.think { margin-top: 12px; font-size: 14px; color: var(--mute); } .think summary { cursor: pointer; min-height: 32px; }
.toolline { margin-top: 8px; font: 13px ui-monospace, Menlo, monospace; color: var(--mute); }
.m-note { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--mute); } .m-note.bad { color: var(--red); }
.retry-b { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-weight: 600; cursor: pointer; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; } .thumbs button { padding: 0; border: 0; background: none; cursor: pointer; }
.thumbs img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--fill); }
.typing i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--dis); animation: pulse 2s var(--m-move) infinite; }
.jump { position: absolute; right: 16px; bottom: 148px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); font-size: 18px; cursor: pointer; }
.oc-comp { flex: none; padding: 8px 12px calc(12px + var(--safe-b)); background: var(--card); }
.oc-comp-in { max-width: 720px; margin: 0 auto; }
.appr { margin-bottom: 8px; padding: 12px 16px; border-radius: 18px; background: var(--soft); font-size: 14px; }
.appr code { display: block; margin: 8px 0; font: 13px ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.appr-b { display: flex; gap: 8px; } .appr-b button { flex: 1; min-width: 0; min-height: 40px; padding: 0 8px; border: 0; border-radius: 999px; white-space: nowrap; background: var(--fill); font: inherit; font-size: 14px; cursor: pointer; } .appr-b .y { background: var(--blue); color: #fff; }
.run { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--mute); }
.run button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--fill2); font: inherit; font-size: 13px; cursor: pointer; }
.box { padding: 8px; border-radius: 28px; background: var(--fill2); box-shadow: inset 0 0 0 1px transparent; }
.box.drop { box-shadow: inset 0 0 0 2px var(--blue); }
.box textarea { display: block; width: 100%; min-height: 40px; max-height: 160px; padding: 8px 12px; border: 0; background: none; font: inherit; font-size: 17px; line-height: 24px; color: var(--ink); resize: none; outline: 0; }
.box-b { display: flex; align-items: center; gap: 8px; }
.box-b .sp { flex: 1; }
.rbtn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fill3); color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; }
.rbtn.send { background: var(--blue); color: #fff; } .rbtn:disabled { background: var(--fill3); color: var(--dis); cursor: default; }
.mchip { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; color: var(--mute); cursor: pointer; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px; }
.att { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 12px; border-radius: 10px; background: var(--card); font-size: 13px; }
.att.bad { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); }
.att button { width: 32px; height: 32px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--mute); cursor: pointer; }
.oc-note { margin-top: 8px; text-align: center; font-size: 12px; color: var(--mute); }
.oc-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 120px; background: var(--soft); }
.oc-panel > div { max-width: 720px; margin: 0 auto; }
.meter { margin-top: 8px; }
.viewer-full { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; }
.viewer-full img { width: 100%; height: 100%; object-fit: contain; }
.viewer-full button { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer; }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px -4px 0; padding: 12px 12px; border-radius: 18px; background: var(--card); box-shadow: 0 2px 12px rgba(0, 0, 0, .1); font-size: 14px; }
@media (max-width: 760px) {
  .oc { grid-template-columns: 1fr; }
  .oc[data-view="side"] .oc-main { display: none; }
  .oc[data-view="main"] .oc-side { display: none; }
  body.oc-page.chat .nav { display: none; }
  body.oc-page.chat .oc { top: env(safe-area-inset-top); }
}

/* Claude Code の端末の見た目は claude.css に移した（11-08） */

/* 銀座: 本番の 3D のまま、ナビだけ揃える */
body.gz-page { background: var(--card); }
body.gz-page #gz-app { padding-top: var(--gnav-top); }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav[hidden] { display: none !important; }

dialog:focus { outline: 0; }

/* 本番へ移すときに足した分。X-02: ふつうのページのナビは文書の頭に置き、下へ送ると流れ去る（動きは gnav.js）。見た目の高さは .nav の固定時と同じに保つ */
.nav.gnav-flow:not(.open) { position: relative; margin-left: 0; margin-right: 0; margin-bottom: calc(-1 * var(--gnav-top)); }
.nav.gnav-flow.is-pinned:not(.open) { position: fixed; inset: 0 0 auto; margin-bottom: 0; transition: transform .28s var(--ease), height .3s var(--ease); }
.nav.gnav-flow.is-hidden { transform: translateY(-100%); }
.nav.gnav-flow.is-gone { display: none; }
.nav.gnav-flow.no-anim { transition: none !important; }
.gnav-spacer { display: none; margin-bottom: calc(-1 * var(--gnav-top)); }
.nav.gnav-flow.is-pinned + .gnav-spacer, .nav.gnav-flow.is-gone + .gnav-spacer { display: block; }
@media (prefers-reduced-motion: reduce) { .nav.gnav-flow { transition: none !important; } }
/* 本番の auth.js は失敗を .err で出す */
.msg.err { color: var(--red); }

/* 全画面の銀座ではナビを隠す（ginza.css の .gnav と同じ動き） */
body.ginza.gz-full .nav { display: none; }
body.ginza.gz-full #gz-app { padding-top: 0; }

/* 遠隔（/rc と /remote/*）の本番移植: 入口のフッターと、/remote の接続中の部品。部品の規則は旧 portal.css の遠隔の分をそのまま body.remote に閉じたもの */
html:has(body.rc-page) { background: #000; }
body.rc-page .foot { background: #1d1d1f; border-top-color: #424245; color: var(--mute-d); }
body.rc-page .cols h3 { color: var(--on); }
body.rc-page .cols a, body.rc-page .out { color: #d2d2d7; }
body.rc-page .legal { border-top-color: #424245; }
body.remote { --font: var(--font-ui); }
body.remote .hidden { display: none !important; }
body.remote .ph { margin-bottom: 12px; }
body.remote .rcards { grid-template-columns: 1fr; max-width: 560px; }
body.remote .rcard { display: grid; align-items: center; min-height: 0; }
body.remote .rcard .act { margin-top: 0; }
body.remote .rm-name { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
body.remote .glyph { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #3a3a3c; }
body.remote .glyph.g-win { background: #0071e3; }
body.remote .glyph svg { width: 22px; height: 22px; fill: #fff; }
body.remote .rc-links button { padding: 8px 0; border: 0; background: none; color: var(--blue-d); font: inherit; cursor: pointer; }
body.remote .rc-links button:disabled { color: #636366; cursor: default; }
body.remote.live { overflow: hidden; height: 100dvh; padding: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
body.remote.live #nav, body.remote.live .gnav-spacer, body.remote.live .foot { display: none !important; }
body.remote .glass { background: rgba(30, 30, 32, 0.6); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 0.5px solid rgba(255, 255, 255, 0.12); }
body.remote #screen { position: fixed; inset: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); touch-action: none; }
body.remote #screen > div { background: transparent !important; }
body.remote .bar { position: fixed; z-index: 10; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; height: auto; padding: 8px; border-radius: 999px; max-width: calc(100vw - 24px); overflow-x: auto; transition: transform 0.4s var(--ease), opacity 0.3s var(--m-fade); scrollbar-width: none; }
body.remote .bar::-webkit-scrollbar { display: none; }
body.remote .bar.tucked { transform: translateX(-50%) translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
body.remote .bar button, body.remote .bar a { appearance: none; border: 0; background: transparent; color: #fff; text-decoration: none; white-space: nowrap; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; font: 400 14px var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background 0.2s var(--m-fade), transform 0.2s var(--m-out); }
body.remote .bar button:active, body.remote .bar a:active { transform: scale(0.94); background: rgba(255, 255, 255, 0.14); }
body.remote .bar button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.2); }
body.remote .bar > * { flex: none; }
body.remote .bar .sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.16); margin: 0 2px; flex: none; }
body.remote .bar .end { color: #ff453a; }
body.remote .bar svg { width: 18px; height: 18px; fill: currentColor; }
body.remote .chip { position: fixed; z-index: 10; top: calc(4px + env(safe-area-inset-top)); left: calc(4px + env(safe-area-inset-left)); border-radius: 999px; padding: 4px 12px; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; align-items: center; white-space: nowrap; opacity: 0.55; transition: opacity 0.2s var(--m-fade); appearance: none; color: #fff; font: 400 12px var(--font); cursor: pointer; max-width: calc(100vw - 24px); }
body.remote .chip:hover, body.remote .chip.open { opacity: 1; }
body.remote .chip.open { border-radius: 18px; }
body.remote .chip .status { display: inline-flex; align-items: center; gap: 8px; color: #30d158; }
body.remote .chip .status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
body.remote .chip .rv-more { display: none; width: 100%; color: #a1a1a6; font-size: 12px; white-space: normal; text-align: center; }
body.remote .chip.open .rv-more { display: block; }
body.remote .chip #zoom-t:empty, body.remote .chip #chip-left:empty { display: none; }
body.remote .handle { position: fixed; z-index: 9; right: calc(4px + env(safe-area-inset-right)); bottom: calc(4px + env(safe-area-inset-bottom)); width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0.45; transition: opacity 0.2s var(--m-fade); }
body.remote .handle:hover, body.remote .handle:focus-visible, body.remote .handle:active { opacity: 1; }
body.remote .handle svg { width: 18px; height: 18px; fill: currentColor; }
body.remote #kbd { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; }
body.remote #stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; display: none; }
body.remote.live:not(.compat) #stage { display: block; }
body.remote:not(.compat) #screen { display: none; }
body.remote:not(.live) #screen { visibility: hidden; }
body.remote #cv { position: absolute; left: 0; top: 0; transform-origin: 0 0; image-rendering: auto; will-change: transform; }
body.remote .tpcur { position: fixed; z-index: 7; left: 0; top: 0; width: 16px; height: 24px; margin: -1.5px 0 0 -1.5px; pointer-events: none; overflow: visible; }
body.remote .tpcur path { fill: #fff; stroke: #000; stroke-width: 1.3; stroke-linejoin: round; }
body.remote .rcursor { display: none; }
body.remote .ripple { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; margin: 0; border-radius: 50%; background: none; border: 2px solid rgba(255, 255, 255, 0.85); pointer-events: none; animation: rv-ripple .25s var(--m-in) forwards; }
body.remote .ripple.right { border-color: #ff9f0a; }
@keyframes rv-ripple { from { opacity: 1; } to { opacity: 0; } } /* 11-11 広がらない。触れた所で薄く消える */
body.remote .hint { position: fixed; z-index: 11; top: calc(56px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); border-radius: 18px; padding: 8px 16px; font-size: 14px; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
body.remote .mini { position: fixed; z-index: 10; top: calc(6px + env(safe-area-inset-top)); right: calc(6px + env(safe-area-inset-right)); width: 112px; padding: 0; border-radius: 10px; overflow: hidden; opacity: 0.7; touch-action: none; cursor: grab; transition: opacity 0.2s var(--m-fade), box-shadow 0.2s var(--m-fade); }
body.remote .mini.active { opacity: 1; box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.9); }
body.remote .mini canvas { display: block; width: 112px; height: 63px; opacity: 0.85; }
body.remote .mini-box { position: absolute; left: 0; top: 0; border: 1.5px solid #fff; border-radius: 999px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); pointer-events: none; }
body.remote .gtag { position: fixed; z-index: 10; left: 50%; top: calc(48px + env(safe-area-inset-top)); bottom: auto; transform: translateX(-50%); border-radius: 999px; padding: 4px 12px; font-size: 13px; pointer-events: none; white-space: nowrap; }
body.remote .gtag.k-pan { color: #64d2ff; }
body.remote .gtag.k-scroll { color: #30d158; }
body.remote .gtag.k-drag { color: #ff9f0a; }
body.remote .keys { position: fixed; z-index: 10; left: 50%; right: auto; bottom: calc(72px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 4px; max-width: calc(100vw - 24px); background: rgba(30, 30, 32, 0.6); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
body.remote .keys .krow { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
body.remote .keys .krow::-webkit-scrollbar { display: none; }
body.remote .keys button { appearance: none; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; min-width: 44px; min-height: 40px; padding: 0 12px; border-radius: 10px; font: 400 14px var(--font); white-space: nowrap; cursor: pointer; flex: none; }
body.remote .keys button:active { background: rgba(255, 255, 255, 0.24); }
body.remote .keys button[aria-pressed="true"] { background: #0071e3; }
body.remote .keys button.locked { background: #0071e3; box-shadow: inset 0 -3px 0 #fff; }
body.remote .keys .sep { width: 1px; background: rgba(255, 255, 255, 0.16); margin: 4px 2px; flex: none; }
html:has(body.remote.live) { overflow: hidden; overscroll-behavior: none; }
@media (max-width: 520px) { /* iPhone: 帯を1画面に収める */
  body.remote .bar { gap: 0; padding: 4px; }
  body.remote .bar button, body.remote .bar a { min-width: 38px; padding: 0 8px; font-size: 13px; }
  body.remote .bar .sep, body.remote #b-mode-t { display: none; }
}
@media (prefers-reduced-motion: reduce) { body.remote .bar, body.remote .chip, body.remote .handle, body.remote .mini { transition-duration: 0.001ms; } body.remote .ripple { animation-duration: 0.001ms; } }

/* /visits /devices /files /location の本番移植 */
/* main は flex なので、幅を決めないと .page が中身に合わせて縮んだり、長いファイル名で広がったりする */
body[data-page="visits"] .page, body[data-page="devices"] .page, body[data-page="files"] .page, body[data-page="location"] .page { max-width: min(1004px, 100%); }
@media (max-width: 734px) { body[data-page="devices"] .page, body[data-page="files"] .page, body[data-page="location"] .page { width: 100%; } }
/* iPad では行を2列に並べる。幅を決めないと .page が中身の幅まで縮む */
body[data-page="visits"] .page, body[data-page="location"] .page, body[data-page="files"] .page { width: 100%; } /* 中身が届いても幅が変わらない（11-11） */
@media (min-width: 735px) {
  body[data-page="visits"] #list .group { display: grid; grid-template-columns: 1fr 1fr; }
  body[data-page="visits"] #list .row { min-width: 0; }
  body[data-page="visits"] #list .row:nth-child(2)::before { display: none; } /* 右の列の先頭に上の線は要らない */
}
.list-more { display: block; width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 18px; background: var(--card); color: var(--blue-link); font: inherit; font-size: 15px; cursor: pointer; }
/* /location の記録の無い日 */
details.blank > summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; font-size: 15px; color: var(--mute); list-style: none; }
details.blank > summary::-webkit-details-marker { display: none; }
details.blank > summary::after { content: ""; width: 7px; height: 7px; margin: -3px 2px 0 auto; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
details.blank[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.row + details.blank { position: relative; }
.row + details.blank::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.row.still { cursor: default; } .row.still:active { background: none; }
.crumb a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 2px; color: var(--blue-link); text-decoration: none; }
.dock .go:disabled { background: var(--fill); color: var(--mute); }
#fx-up { margin-bottom: 12px; }
#viewer .sh-bar { grid-template-columns: minmax(0, 1fr) auto; }
#viewer .sh-bar h2 { grid-column: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer video, .viewer audio { display: block; width: 100%; border-radius: 12px; }
.viewer pre { overflow-wrap: anywhere; }
/* Leaflet: 枠の中に重なり順を閉じ、.map svg の指定が線の svg へ及ばないようにする */
#map { position: absolute; inset: 0; z-index: 0; background: var(--fill); font: inherit; }
#map .leaflet-overlay-pane svg { width: auto; height: auto; }
.map .me { z-index: 1; }
#map .leaflet-control-attribution { padding: 2px 8px; border-radius: 10px 0 0 0; background: rgba(255, 255, 255, .8); font-size: 11px; }
.leaflet-tooltip { padding: 8px 12px; border: 0; border-radius: 10px; color: var(--ink); font-size: 14px; line-height: 19px; }
.pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--card); color: #fff; font-size: 13px; font-weight: 600; }
#stops { margin-top: 12px; }
/* ナビは流れ去るので、絞り込みは上端へ付く。ナビが戻っている間だけその下に付く */
body[data-page="visits"] .chips, body[data-page="location"] .chips { top: env(safe-area-inset-top); }
body[data-page="visits"] .nav.gnav-flow.is-pinned:not(.is-hidden) ~ #app .chips, body[data-page="location"] .nav.gnav-flow.is-pinned:not(.is-hidden) ~ #app .chips { top: var(--gnav-top); }

/* メモの本番移植: 幅いっぱいに広げる、フォルダ画面の戻るを隠す、失敗の帯、一覧の中の操作 */
body[data-page="notes"] .page { width: 100%; }
[data-view="folders"] #back { display: none; }
.n-err { margin: 0 0 12px; color: var(--red); font-size: 14px; line-height: round(calc(1em * 1.5), 1px); }
.nlist > .nact { margin: 0 0 12px; }
.nlist .row > .link { flex: none; }
.nact select { max-width: 100%; }

/* OpenClaw の本番移植 */
body.oc-page .hidden { display: none !important; }
.oc-sh > span { display: flex; }
.oc-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.oc-main { overflow: hidden; }
#older:empty { display: none; }
.oc-g + .oc-g { margin-top: 12px; }
.oc-empty { padding: 20px 16px; text-align: center; font-size: 15px; color: var(--mute); }
.oc-rowb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.row.oc-conv { padding-right: 4px; gap: 0; } .row.oc-conv .ibtn { width: 40px; color: var(--mute); }
.oc-page .row small { overflow-wrap: anywhere; }
.oc-page .row .switch, .oc-page .row select.i { flex: none; margin-left: auto; }
.oc-page .row select.i { width: auto; max-width: 56%; min-height: 40px; padding: 8px 12px; font-size: 15px; }
input.switch { -webkit-appearance: none; appearance: none; margin: 0; }
input.switch:checked { background: var(--blue); } input.switch:checked::after { transform: translateX(20px); }
input.switch:disabled { opacity: .5; }
.oc-act.danger b { color: var(--red); } .oc-act:disabled { opacity: .4; cursor: default; }
.link.oc-del { color: var(--red); } .link:disabled { opacity: .4; }
.oc-bar-b { flex: none; display: flex; align-items: center; gap: 12px; }
.group.pad > b { display: block; font-size: 17px; font-weight: 600; } .group.pad > b.meter { margin-top: 20px; }
.m-me .b { min-width: 0; overflow-wrap: anywhere; }
.m-me .b a { color: #fff; text-decoration: underline; }
.m-me .b pre, .md-table { overflow-x: auto; }
.m-me .b p + p { margin-top: 8px; }
.m-ai { min-width: 0; overflow-wrap: anywhere; }
.m-ai .m-st { text-align: left; } .m-st.bad { color: var(--red); }
.oc-mine { margin-top: 12px; } .oc-mine .m-me { margin-top: 0; }
.oc-mine .thumbs, .oc-mine .oc-files { justify-content: flex-end; }
.thumbs { flex-wrap: wrap; }
.ocp-none { font-size: 14px; color: var(--mute); }
.md ul, .md ol { padding-left: 1.4em; } .md blockquote { margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--line); color: var(--mute); }
.md .h { margin-top: 12px; font-weight: 600; }
.md .r { text-align: right; } .md .c { text-align: center; }
.toolline { overflow-wrap: anywhere; } .toolline span + span { margin-left: 12px; }
.think-b { margin-top: 4px; padding-left: 12px; border-left: 2px solid var(--line); }
.oc-live-item { font-size: 14px; color: var(--mute); }
.oc-photo { display: block; font-size: 14px; color: var(--mute); }
.oc-mine .oc-photo { text-align: right; }
.oc-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.oc-file { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--fill2); font-size: 14px; overflow-wrap: anywhere; }
.oc-file i { font-style: normal; }
.appr code { white-space: pre-wrap; } .appr small { display: block; margin-bottom: 8px; font-size: 13px; color: var(--mute); }
.att img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.att .doc-n { max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.att .st { font-size: 12px; color: var(--mute); } .att.busy { opacity: .7; }
.jump.new { background: var(--blue); color: #fff; }
.oc-state.busy { color: var(--blue-link); }
.oc-diff { max-height: 40dvh; margin-top: 12px; overflow-y: auto; list-style: none; text-align: left; font-size: 14px; }
.oc-diff li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.oc-diff b { display: block; } .oc-diff .from { text-decoration: line-through; color: var(--mute); } .oc-diff .to { font-weight: 600; }
.oc-diff .tag { display: block; font-size: 12px; color: var(--mute); }
.oc-page .sh-bar h2 { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc-page .sh-back { display: flex; gap: 4px; min-width: 0; }
#sh-back-t { max-width: 6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc-cfg-row { flex-wrap: wrap; } .oc-cfg-row .k { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.oc-cfg-row .v { max-width: 60%; font-size: 15px; color: var(--mute); overflow-wrap: anywhere; } .oc-cfg-row .v.masked { letter-spacing: 2px; }
.oc-cfg-row.changed .k { color: var(--blue-link); font-weight: 600; }
.oc-cfg-err { flex-basis: 100%; font-size: 13px; color: var(--red); }
.oc-page input.oc-cfg-in { width: 55%; min-height: 40px; padding: 8px 12px; font-size: 16px; }
.oc-child { margin-top: 0; font-size: 15px; overflow-wrap: anywhere; } .oc-child .m-ai, .oc-child .m-me .b { font-size: 15px; line-height: 22px; }
.oc-child > :first-child { margin-top: 0; }
@media (min-width: 761px) { .row.oc-conv:has(> [aria-current]) { background: var(--fill); } }
/* OpenClaw の本番移植: 狭い画面で長い文が列を広げないように */
.oc:where(:not(.tile)) { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.oc-side, .oc-panel, .oc-panel > div, .oc-list, .oc-page .group, .oc-page .row { min-width: 0; }
.oc-page .row .main { min-width: 0; }
.oc-page .row small, .oc-page .row .ell { max-width: 100%; }
@media (max-width: 760px) { .oc:where(:not(.tile)) { grid-template-columns: minmax(0, 1fr); } }
.oc-panel > div { width: 100%; }
.row.oc-conv > .oc-rowb:last-child { padding-right: 12px; }
.oc-page .sh-back { align-items: center; }

/* 「新しい会話」は一覧の一番下の長い先に置かず、下のタブの真上（一覧の下余白の分だけ上）に固定して常に見える・押せるようにする（11-06 #131） */
.oc-list > .pad { position: sticky; bottom: 0; z-index: 2; margin: 0 -12px; padding: 16px 12px 8px; background: linear-gradient(to bottom, transparent, var(--soft) 28%); }
.oc-list > .pad .btn { width: 100%; min-height: 48px; }

/* 色の変数。全ページ apple.com/jp と同じ白地に固定（11-08 Sora 指示。端末がダークでも黒にしない） */
:root { color-scheme: light; --bg: #fff; --soft: #fff; --ink: #1d1d1f; --blue-link: #0066cc; --card: #fff; --fill: #e8e8ed; --fill2: #f2f2f7; --fill3: #e3e3e8; --mark: #c7c7cc; --dis: #aeaeb2; --sep: #d2d2d7; --glass: rgba(251, 251, 253, .97); --nav: rgba(245, 245, 247, .8); --green: #34c759; --orange: #ff9500; --track: rgba(120, 120, 128, .16); }
dialog.alert { background: var(--card); }

/* ===== 写真多めの作り直し（2026-11-08 04:xx、Sora「apple.com/jp/store のように大きい写真をたくさん」）=====
   部品は3つ。photo-hero＝ページの頭の全幅の写真（文字は上に、apple.com のストアのカードと同じ）、
   shelf＝横に流す棚（角丸 18 の白いカード、文字は左上・写真は下）、pnav＝ストアの上の製品の横帯（小さな絵＋12px の名前）。
   写真は全部このサイトの /portal-photos・/store-photos から（サインイン必須、AVIF は lib/imgvariants.js）。style 属性は使わない（CSP） */
.photo-hero { position: relative; display: block; width: 100%; height: clamp(300px, 56vw, 560px); overflow: hidden; background: #1d1d1f; color: #fff; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero.light { background: var(--soft); color: var(--ink); }
.photo-hero.light > img { object-fit: contain; }
.photo-hero.light.cover > img { object-fit: cover; }
.photo-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 70%; background: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, 0)); pointer-events: none; }
.photo-hero.light::after { display: none; }
.photo-hero .hcopy { position: absolute; inset: 0 0 auto; z-index: 1; max-width: 1004px; margin: 0 auto; padding: 36px 24px 0; }
.photo-hero .hcopy h1 { font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -.003em; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.photo-hero.light .hcopy h1 { text-shadow: none; }
.photo-hero .hcopy .sub { margin-top: 8px; font-size: 21px; line-height: 26px; color: rgba(255, 255, 255, .86); }
.photo-hero.light .hcopy .sub { color: var(--mute); }
.photo-hero .hcopy .sub:empty { display: none; }
.photo-hero .hcopy .tag { margin-bottom: 12px; background: rgba(255, 255, 255, .18); color: #fff; }
.photo-hero.light .hcopy .tag { background: var(--fill); color: var(--mute); }
body.tool main > .photo-hero + .page { padding-top: 24px; }
body.tool main > .photo-hero { margin-top: 0; }
@media (max-width: 734px) {
  .photo-hero { height: clamp(300px, 92vw, 420px); }
  .photo-hero .hcopy { padding: 24px 20px 0; }
  .photo-hero .hcopy h1 { font-size: 36px; line-height: 40px; }
  .photo-hero .hcopy .sub { font-size: 17px; line-height: 22px; }
}

/* 横に流す棚 */
.shelf { margin: 8px 0 0; }
.shelf + .shelf { margin-top: 44px; }
.shelf-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 4px 16px; }
.shelf-h h2 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.003em; }
.shelf-h h2 span { color: var(--mute); }
.shelf-h a { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; color: var(--blue-link); }
.shelf-h a:hover { text-decoration: underline; }
.shelf-track { display: flex; gap: 16px; margin: 0 -20px; padding: 0 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-card { position: relative; flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 380px; border-radius: 18px; overflow: hidden; background: var(--card); color: var(--ink); }
.shelf-card.dark { background: #1d1d1f; color: #fff; }
.shelf-card.soft { background: var(--soft); }
.shelf-card .sc-t { position: relative; z-index: 1; padding: 20px 20px 0; }
.shelf-card .sc-k { display: block; margin-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--mute); }
.shelf-card.dark .sc-k { color: #a1a1a6; }
.shelf-card .sc-h { display: block; font-size: 21px; line-height: 25px; font-weight: 600; }
.shelf-card .sc-s { display: block; margin-top: 4px; font-size: 14px; line-height: 19px; color: var(--mute); }
.shelf-card.dark .sc-s { color: #a1a1a6; }
.shelf-card .sc-img { position: relative; flex: 1; min-height: 200px; margin-top: 16px; overflow: hidden; }
.shelf-card .sc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shelf-card.fit .sc-img img { object-fit: contain; padding: 8px 16px 16px; }
.shelf-card.photo .sc-img { position: absolute; inset: 0; margin: 0; }
.shelf-card.photo .sc-t { color: #fff; }
.shelf-card.photo .sc-k, .shelf-card.photo .sc-s { color: rgba(255, 255, 255, .85); }
.shelf-card.photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 60%; background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.shelf-card.photo .sc-t { z-index: 1; }
.shelf-card .sc-n { position: absolute; right: 16px; bottom: 14px; z-index: 1; font-size: 34px; line-height: 38px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.shelf-card .sc-n small { font-size: 15px; font-weight: 600; margin-left: 2px; }
.shelf-card.wide { flex-basis: 440px; }
a.shelf-card:active { transform: scale(.985); }
.shelf-card { transition: transform .2s var(--ease); }
@media (max-width: 734px) {
  .shelf-h h2 { font-size: 24px; line-height: 28px; }
  .shelf-card { flex-basis: 272px; min-height: 340px; }
  .shelf-card.wide { flex-basis: 320px; }
  .shelf-track { gap: 12px; }
}

/* ストアの上の製品の横帯（小さな絵と名前） */
.pnav { display: flex; gap: 8px; margin: 0 -20px; padding: 8px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 112px; padding: 8px 4px 12px; border-radius: 18px; color: var(--ink); font-size: 12px; line-height: 16px; text-align: center; transition: background .2s var(--m-fade); }
.pnav a:hover { background: var(--soft); }
.pnav img { width: 96px; height: 62px; object-fit: cover; border-radius: 10px; background: var(--card); }
.pnav a[aria-current] { color: var(--blue-link); }

/* 機器の行の小さな絵（/now・訪問記録の店舗別と同じ 56px） */
.ph-img.prod { object-fit: contain; background: var(--card); }

/* ページごとの写真 */
/* 遠隔操作: つなぐ前のカードに機械の写真。黒地に白い写真はカードの中で角丸に */
.rcard .rc-pic { grid-column: 1 / -1; grid-row: 3; margin: 12px -4px -6px; height: 150px; border-radius: 12px; overflow: hidden; background: #000; }
.rcard .rc-pic img { width: 100%; height: 100%; object-fit: cover; }
.rcard .rc-pic svg { width: 100%; height: 100%; }
.rcard .rc-pic.light { background: #fff; }
.rcard .rc-pic.light img { object-fit: contain; }
@media (min-width: 735px) { .rcard .rc-pic { width: 100%; margin: 16px 0 12px; height: 160px; } .rcard .act { margin-top: auto; } }
.rc-hero { height: clamp(220px, 40vw, 380px); }
.rc-hero .hcopy h1 { color: #fff; }
.rc-hero .hcopy .sub { color: #d2d2d7; }
body.rc-page main.gate { padding-top: var(--gnav-top); }

/* OpenClaw: 一覧の上に写真（Mac mini の机）。会話の欄が空のときの中央にも写真 */
.oc-cover { position: relative; flex: none; margin: 0 12px 8px; height: 150px; border-radius: 18px; overflow: hidden; background: #1d1d1f; }
.oc-cover img { width: 100%; height: 100%; object-fit: cover; }
.oc-cover p { position: absolute; left: 16px; bottom: 12px; color: #fff; font-size: 13px; line-height: 18px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.oc-side .oc-cover { order: 0; }
.oc-hero-pic { width: min(100%, 520px); margin: 0 auto 20px; border-radius: 18px; overflow: hidden; }
.oc-hero-pic img { width: 100%; height: auto; }

/* Claude Code の見た目は claude.css（Web 版 Claude Code の写し） */

/* 銀座: 読み込み中の背景に店の写真 */
.gz-loading.with-photo { background: #000 url("/portal-photos/store-ginza-1-1024.jpg") center / cover; color: #fff; }
.gz-loading.with-photo .gz-lt { color: #fff; }

/* いま: 機器の欄に写真 */
.dev-pic { position: relative; display: block; height: 220px; margin-bottom: 12px; border-radius: 18px; overflow: hidden; background: var(--card); }
.dev-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.dev-pic p { position: absolute; left: 16px; top: 14px; font-size: 13px; line-height: 18px; color: var(--mute); }
.ph.nh { padding: 4px 4px 16px; }
.ph.nh h1 { font-size: 28px; line-height: 32px; }
.oc-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 56%; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .55)); }
.oc-cover p { z-index: 1; }
.oc-cover img { object-position: 50% 35%; }
.rc-hero > img { object-position: 50% 78%; }
@media (max-width: 734px) { .shelf-h { flex-wrap: wrap; } .shelf-h a, .shelf-h .link { min-height: 36px; padding: 0; } }

/* 依頼。の見出しと機器の島 */
.req-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.req-head h2 { margin-bottom: 0; }
.req-more { flex: none; }
#req-detail { margin-top: 8px; }
.req-island { margin-top: 28px; }

/* 案B: Apple iPhone Duo ページ「ビデオを見る」(a.section-header-cta-link.icon-wrapper、2026-11-08 実測) の写し。表示は「くわしく」/「閉じる」。
   地なしの文字リンク。文字 #0066cc、Apple は 734px以下 14px/19px・735px以上 17px/21px、weight 400。hover は文字だけ下線、active も同色。
   文字は案A と同じく Apple の字面に合わせて 0.885 倍＋字間(くわしく +0.036em / 閉じる -0.047em)。
   アイコン: Apple は SF Pro Icons の再生円(U+F31E、左に0.24em・上へ0.01em、幅1.171em)。「くわしく」には同じ系統の
   icon-chevrondown(U+F303、左0.24em・Apple の top は -0.1em だが実物の画素に合わせ +0.02em、幅0.664em)、開いたら icon-chevronup。グリフを 1000px で実測して SVG で描き直した。
   アイコンの em は Apple の 14px/17px 基準(--bm-f)。 */
.apple-link-more { --bm-f: 14px; display: inline; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; font-size: round(calc(var(--bm-f) * .885), 1px); /* 12.39→12、15.045→15。端数の大きさを出さない */ font-weight: 400; line-height: 19px; --bm-ls: .036em; letter-spacing: var(--bm-ls); font-feature-settings: "palt";
  color: #0066cc; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.apple-link-more[aria-expanded="true"] { --bm-ls: -.047em; }
.apple-link-more::after { content: ""; display: inline-block; position: relative; top: calc(var(--bm-f) * .02);
  width: calc(var(--bm-f) * .664); height: var(--bm-f); margin-left: calc(var(--bm-f) * .24 - var(--bm-ls)); vertical-align: calc(var(--bm-f) * -.15);
  background: currentColor; -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTg1MCA2NjQgMTAwMCI+PHBhdGggZD0iTTEzMS41IC0zNzEgTDMzMS41IC0xNTQgTDUzMS41IC0zNzEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSI3MiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+") center / 100% 100% no-repeat; mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTg1MCA2NjQgMTAwMCI+PHBhdGggZD0iTTEzMS41IC0zNzEgTDMzMS41IC0xNTQgTDUzMS41IC0zNzEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSI3MiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+") center / 100% 100% no-repeat; }
.apple-link-more[aria-expanded="true"]::after { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTg1MCA2NjQgMTAwMCI+PHBhdGggZD0iTTEzMS41IC0xNjEgTDMzMS41IC0zNzggTDUzMS41IC0xNjEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSI3MiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+"); mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTg1MCA2NjQgMTAwMCI+PHBhdGggZD0iTTEzMS41IC0xNjEgTDMzMS41IC0zNzggTDUzMS41IC0xNjEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSI3MiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+"); }
@media (hover: hover) { .apple-link-more:hover { color: #0066cc; text-decoration: underline; } }  /* 指で押したあと下線が残らないように */
.apple-link-more:focus { outline: none; }
.apple-link-more:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 4px; }
.apple-link-more:disabled { pointer-events: none; opacity: .42; }
@media (min-width: 735px) { .apple-link-more { --bm-f: 17px; line-height: 21px; } }

/* 押せる範囲だけ上下左右に広げる（見た目は変えない、高さ約45px） */
.apple-link-more { position: relative; }
.apple-link-more::before { content: ""; position: absolute; top: -13px; bottom: -13px; left: -8px; right: -8px; }

/* ===== 島のデザイン（2026-11-08 09:0x、Sora「いまも含めて全て色太さ角の丸み余白など全てAppleと同じデザイン哲学に」）=====
   値は var/portal-shots/applestyle-20261108/apple-measure.md（apple.com/jp の計算済みスタイル）。6ページ（いま・訪問記録・移動ルート・メモ・遠隔操作・ファイル）で共通。
   島＝地 #fff・線 1px #e8e8ed（apple.com の比較の表の囲み線）・角丸 18（サポートのタイル）・影なし。中の区切りも #e8e8ed。
   中の左右 18px（390px は 14px）。島どうし 20px（ストアのカードの間）。入力欄と白い札は 1px #d2d2d7（入力欄は角丸 12）。
   選んだ札は #1d1d1f の地、選んだ島は 2px #0071e3（注文画面）。見出し 28/33/600/.007em（390px は 24/30/600/.009em）。上のバー（.nav）には触らない。 */
:root { --line: #e8e8ed; --isl: #e8e8ed; --isl-r: 18px; --isl-x: 18px; --isl-gap: 20px; --field: #d2d2d7; --pick: #0071e3; }
@media (max-width: 734px) { :root { --isl-x: 14px; } }
body:is([data-page="now"], [data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) {
  --line: #e8e8ed; --isl: #e8e8ed; --sep: #e8e8ed; --glass: rgba(255, 255, 255, .94); --fill2: #fff; background: #fff; color: #1d1d1f;
}
/* 地は白一色。遠隔操作もつなぐ前は白（つないだ後の画面は今のまま黒） */
html:has(body[data-page="rc"]:not(.live)) { background: #fff; }
body[data-page="rc"]:not(.live) { background: #fff; color: var(--ink); color-scheme: light; }
body[data-page="rc"] .foot { background: var(--soft); border-top-color: var(--field); color: var(--mute); }
body[data-page="rc"] .cols h3 { color: var(--ink); }
body[data-page="rc"] .cols a, body[data-page="rc"] .out { color: var(--mute); }
body[data-page="rc"] .legal { border-top-color: var(--field); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) main > .photo-hero + .page { padding-top: 40px; }

/* 見出し（apple.com/jp/shop の棚の見出し） */
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) :is(.shelf-h h2, h2.h2) { font-size: 28px; line-height: 33px; font-weight: 600; letter-spacing: .007em; color: var(--ink); }
@media (max-width: 734px) { body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) :is(.shelf-h h2, h2.h2) { font-size: 24px; line-height: 30px; letter-spacing: .009em; } }

/* 島 */
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) :is(.group, .banner, .notice, .map, .rcard, .rc-a2hs, .shelf-card) {
  background: #fff; border: 1px solid var(--isl); border-radius: var(--isl-r); box-shadow: none;
}
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) .group + .group { margin-top: var(--isl-gap); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) .group > .row { padding-left: var(--isl-x); padding-right: var(--isl-x); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) .group > .row + .row::before { left: var(--isl-x); background: var(--isl); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) :is(.banner, .notice) { padding-left: var(--isl-x); padding-right: var(--isl-x); margin-bottom: var(--isl-gap); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) .row:active { background: var(--soft); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) .month { margin: 32px 4px 12px; font-size: 17px; line-height: 22px; color: var(--ink); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) .month:first-child { margin-top: 8px; }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) .cap { color: var(--mute); }

/* 数字の3つは1つの島。間を細い線で */
body[data-page="visits"] .nums { gap: 0; margin: 24px 0 28px; border: 1px solid var(--isl); border-radius: var(--isl-r); overflow: hidden; }
body[data-page="visits"] .nums div { padding: 16px var(--isl-x); background: transparent; border-radius: 0; }
body[data-page="visits"] .nums div + div { border-left: 1px solid var(--isl); }
body[data-page="visits"] .nums dd { font-variant-numeric: tabular-nums; }
body[data-page="visits"] .shelf-card { overflow: hidden; }
body[data-page="visits"] .shelf-track { gap: var(--isl-gap); }
@media (max-width: 734px) { body[data-page="visits"] .shelf-track { gap: 12px; } }
/* 2列のときは列の間にも線 */
/* 中央の縦線は .group 側で全高に引く（奇数件の空きセルでも途切れない） */
body:is([data-page="visits"], [data-page="location"]) .list-more { background: #fff; border: 1px solid var(--field); border-radius: 999px; }

/* 絞り込みの札・日の札：白地に #d2d2d7、選んだものは #1d1d1f の地 */
body:is([data-page="visits"], [data-page="location"]) .chips { background: var(--glass); }
body:is([data-page="visits"], [data-page="location"]) .chips button { background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--field); }
body:is([data-page="visits"], [data-page="location"]) .chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
body[data-page="location"] .days { gap: 0; border: 1px solid var(--isl); border-radius: var(--isl-r); overflow: hidden; }
body[data-page="location"] .days button { border-radius: 0; background: #fff; }
body[data-page="location"] .days > * + * { border-left: 1px solid var(--isl); }
body[data-page="location"] .days [aria-pressed="true"] { background: var(--ink); color: #fff; }
body[data-page="location"] .days .blank { background: #fff; }
body[data-page="location"] .map { overflow: hidden; }
body[data-page="location"] #map { background: var(--soft); }

/* 入力・ボタン：apple.com の入力欄（白地・1px #d2d2d7・角丸 12）、選ぶと 2px #0071e3 */
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) :is(input.i, select.i, textarea.i) { background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--field); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) :is(input.i, select.i, textarea.i):focus { box-shadow: inset 0 0 0 2px var(--pick); outline: none; }
body[data-page="notes"] .sbar .i { background: #fff; box-shadow: inset 0 0 0 1px var(--field); border-radius: 12px; }
body[data-page="notes"] .sbar .i:focus { box-shadow: inset 0 0 0 2px var(--pick); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) .btn { border-radius: 999px; }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) .btn.plain { background: #fff; box-shadow: inset 0 0 0 1px var(--field); }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"], [data-page="rc"]) .btn:disabled { background: #fff; box-shadow: inset 0 0 0 1px var(--isl); }
body[data-page="notes"] :is(.nact button, .nact select) { background: #fff; box-shadow: inset 0 0 0 1px var(--field); }
body[data-page="notes"] .fab { box-shadow: none; }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) :is(.ph-txt, .fic) { background: #fff; box-shadow: inset 0 0 0 1px var(--isl); }
body[data-page="files"] .fic.dir { background: #fff; color: var(--blue-link); box-shadow: inset 0 0 0 1px var(--isl); }
body[data-page="files"] .viewer pre { background: #fff; border: 1px solid var(--isl); border-radius: 12px; }

/* 下の操作帯：影をやめ、白地に島と同じ線 */
body:is([data-page="visits"], [data-page="files"]) .dock { background: var(--glass); box-shadow: none; border: 1px solid var(--isl); }
body:is([data-page="visits"], [data-page="files"]) .dock [aria-pressed="true"] { background: var(--ink); color: #fff; }
body[data-page="files"] .dock .go:disabled { background: #fff; box-shadow: inset 0 0 0 1px var(--isl); }

/* シート（訪問の編集・ファイルを見る・遠隔のメニュー）も白地に */
body:is([data-page="visits"], [data-page="files"]) dialog.sheet { background: #fff; }
body:is([data-page="visits"], [data-page="files"]) .sh-bar { border-bottom: 1px solid var(--isl); margin-bottom: 12px; }
body[data-page="rc"] #sheet, body[data-page="rc"] #sheet .sh-bar { background: #fff; }
body[data-page="rc"] #sheet .sh-bar { border-bottom: 1px solid var(--isl); margin-bottom: 12px; }
body[data-page="rc"] .seg { background: #e8e8ed; box-shadow: none; }
body[data-page="rc"] .seg button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* 遠隔操作（つなぐ前）：白い島 */
body[data-page="rc"] .rc-pre { min-height: 0; padding-top: 40px; padding-bottom: 80px; }
body[data-page="rc"] .rcards { gap: var(--isl-gap); }
body[data-page="rc"] .rcard { padding: 20px var(--isl-x); color: var(--ink); }
body[data-page="rc"] .rcard.sel { border-color: var(--pick); box-shadow: inset 0 0 0 1px var(--pick); }
body[data-page="rc"] .rcard p, body[data-page="rc"] .rc-pre .cap, body[data-page="rc"] .rc-a2hs { color: var(--mute); }
body[data-page="rc"] .rc-a2hs { padding-left: var(--isl-x); padding-right: var(--isl-x); }
body[data-page="rc"] .rcard .act { border-radius: 999px; }
body[data-page="rc"] .rcard .act.wake { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); }
body[data-page="rc"] .rcard .act:disabled { background: #fff; color: var(--dis); box-shadow: inset 0 0 0 1px var(--isl); }
body[data-page="rc"] .rcard .rc-pic { border: 1px solid var(--isl); }
body[data-page="rc"] .rc-links a { color: var(--blue-link); }
body[data-page="rc"] .rc-pre > .cap { margin-top: 16px; }
@media (min-width: 735px) { body[data-page="rc"] .rcard { padding: 24px var(--isl-x); } }
/* メモ: 行は li.note の中。左右を島の余白に */
body[data-page="notes"] .group > .note > .row { padding-left: var(--isl-x); padding-right: var(--isl-x); }
body[data-page="notes"] .group > .note > .row::before { left: var(--isl-x); background: var(--isl); }
body[data-page="notes"] .nbody { padding-left: var(--isl-x); padding-right: var(--isl-x); }
/* 訪問記録 2列: 縦の区切り線は .group の全高に1本。行ごとの border-left だと奇数件で最後の行の線が切れる */
@media (min-width: 735px) {
  body[data-page="visits"] #list .group { position: relative; }
  body[data-page="visits"] #list .group::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-.5px); background: var(--isl); pointer-events: none; }
  body[data-page="visits"] #list .group:has(> .row:only-child)::after { display: none; }
}
/* ===== 浮いたバー（11-10、Sora「リキッドガラスは諦めて apple.com のフローティングバーと同じに」）=====
   手本: apple.com/jp/airpods-pro/ の .tabnav.tabnav-pill.tabnav-elevated（体験のギャラリー）を getComputedStyle で実測。
   台 56px・内余白 6px・角丸 999px・地 #e8e8ed・backdrop blur(20px)・影なし・線なし。
   項目 高さ 44px・左右 22px・17px/400・行送り 21px・字間 normal・文字 #000。選択中は #1d1d1f の玉＋白字。
   玉は left/width 0.32s ease-out、選んだ字の色 0.16s ease-in 0.16s 遅れ、ほかは 0.12s ease-out。
   浮かせる位置は apple.com の all-access-pass と同じ 下 32px（＋safe-area）。全ページ共通の部品 = .dock と .now-jump */
.dock, body:is([data-page="visits"], [data-page="files"]) .dock {
  isolation: auto; overflow: hidden; gap: 0; padding: 8px; min-height: 0; height: 56px; box-sizing: border-box;
  bottom: calc(32px + var(--safe-b)); border: 0; border-radius: 999px;
  background: #e8e8ed; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: none;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
.dock::before, .dock::after { content: none; }
.dock button, .dock a, body[data-page="visits"] .dock button {
  position: relative; z-index: 1; flex: none; min-width: 0; min-height: 0; height: 44px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 400; line-height: 21px; letter-spacing: normal; color: #000; text-shadow: none;
  background: none; box-shadow: none; transform: none; transition: color .12s var(--m-fade);
}
.dock button:active { transform: none; }
.dock [aria-pressed="true"], .dock [aria-selected="true"], body:is([data-page="visits"], [data-page="files"]) .dock [aria-pressed="true"] {
  color: #fff; background: #1d1d1f; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: color .16s var(--m-fade) .16s;
}
/* JS の玉があるときは玉が #1d1d1f を受け持ち、ボタンは透明（玉がすべる） */
html body .dock.fb-on [aria-pressed="true"] { background: none; }
.dock .fb-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: 0; border-radius: 999px; background: #1d1d1f; pointer-events: none; transition: left .32s var(--m-move), width .32s var(--m-move); }
.dock .go { background: #1d1d1f; color: #fff; }
.dock button:disabled, body[data-page="files"] .dock .go:disabled { color: rgba(0, 0, 0, .3); background: none; box-shadow: none; }
.dock.four button { flex: 1; padding: 0 12px; }
/* /now の「作業・依頼・機器」: 同じ部品をページの中に置く（apple.com の tabnav も本文中に置かれる） */
.now-jump { display: flex; width: max-content; max-width: 100%; height: 56px; box-sizing: border-box; gap: 0; margin: 0 0 16px; padding: 8px; border-radius: 999px; background: #e8e8ed; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-x: auto; scrollbar-width: none; -webkit-font-smoothing: antialiased; }
.now-jump a { display: inline-flex; align-items: center; height: 44px; min-height: 0; padding: 0 24px; border-radius: 999px; background: none; font-size: 17px; font-weight: 400; line-height: 21px; color: #000; transition: color .12s var(--m-fade); }
.now-jump a:active { transform: none; background: rgba(0, 0, 0, .06); }
body[data-page="now"] .now-jump a:not([aria-current="true"]) { background: none; }
.now-jump a[aria-current="true"] { transition: color .16s var(--m-fade) .16s; }
/* 画面の中の切り替え（.seg）も同じ部品の値に */
.seg { height: 56px; box-sizing: border-box; gap: 0; padding: 8px; border-radius: 999px; background: #e8e8ed; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: none; -webkit-font-smoothing: antialiased; }
.seg button { height: 44px; min-height: 0; padding: 0 24px; border-radius: 999px; font-size: 17px; font-weight: 400; line-height: 21px; color: #000; transition: color .12s var(--m-fade); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: #1d1d1f; color: #fff; font-weight: 400; box-shadow: none; transition: color .16s var(--m-fade) .16s; }
@media (prefers-reduced-motion: reduce) { .dock .fb-ind, .dock button { transition: none; } }

/* 訪問記録の一覧を店ごとに（11-10） */
#list .store-head{display:flex;align-items:center;gap:12px}
#list .store-head img,#list .store-head .ph-txt{width:32px;height:32px;border-radius:10px;object-fit:cover;flex:none}
#list .list-more-in b{color:var(--accent,#0071e3);font-weight:400}

/* ===== 上の写真の高さを「いま」に揃える（11-10 06:1x、Sora「各ページの一番上の写真を『いま』と同じ横長に」）=====
   /now の上の写真は 全幅×150px（iPad 820 で 820x150、iPhone 390 で 390x150）。訪問記録・移動ルート・メモ・ファイル・遠隔操作も同じ高さ。
   文字は「いま」と同じく写真の下に寄せ、下を暗くして読ませる。写真そのものは替えない（切り取りだけ）。ホームは home.css。 */
.photo-hero, .photo-hero.rc-hero { height: 150px; }
.photo-hero::after { inset: 0; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 35%, rgba(0,0,0,.68) 100%); }
.photo-hero .hcopy { inset: auto 0 0; padding: 0 24px 20px; }
.photo-hero .hcopy h1 { font-size: 40px; line-height: 44px; }
.photo-hero .hcopy .sub { margin-top: 2px; font-size: 19px; line-height: 24px; }
.photo-hero .hcopy .tag { margin-bottom: 8px; }
@media (max-width: 734px) {
  .photo-hero, .photo-hero.rc-hero { height: 150px; }
  .photo-hero .hcopy { padding: 0 20px 16px; }
  .photo-hero .hcopy h1 { font-size: 32px; line-height: 36px; }
  .photo-hero .hcopy .sub { font-size: 16px; line-height: 21px; }
}

/* ===== 写真の縦位置（11-10 06:2x、Sora「帯が低くなったので、ちょうどいい位置を写して」）=====
   150px の帯に、ページごとの主役が入る縦位置。文字は帯の下なので、主役は帯の上〜中ほどに置く。写真は替えない。 */
body[data-page="visits"] .photo-hero > img { object-position: 50% 80%; }   /* 店の1階のガラス面と店内 */
body[data-page="location"] .photo-hero > img { object-position: 50% 48%; } /* 丸の内のガラスの角とロゴ・竹 */
body[data-page="notes"] .photo-hero > img { object-position: 50% 92%; }    /* ペン先と描いた線 */
body[data-page="files"] .photo-hero > img { object-position: 50% 44%; }    /* MacBook Pro 2台の画面 */
body[data-page="rc"] .photo-hero.rc-hero > img { object-position: 50% 16%; } /* 画面の中のアプリの窓 */

/* ===== 全ページの浮いたバーを /files のバー型に（11-10 06:4x、Sora「ファイルのバーを参考に私のウェブページのバーを作り直せますか？」）=====
   白い半透明のガラス・下 14px・内余白 4px（高さ 56+2=58px）・項目 48px・15px/600。選択中は青い玉に白字。/files は下の節（前のガラス）がそのまま効く。 */
html body .dock.dock {
  isolation: auto; overflow: visible; gap: 2px; padding: 4px; height: auto; min-height: 0; box-sizing: content-box;
  bottom: calc(14px + var(--safe-b)); border-radius: 999px; font-family: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .22));
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(0, 0, 0, .04), 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 28px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
}
html body .dock.dock button, html body .dock.dock a {
  position: relative; z-index: 1; flex: none; min-width: 72px; min-height: 48px; height: auto; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 22px; letter-spacing: inherit; color: var(--ink); background: none;
}
html body .dock.dock [aria-pressed="true"], html body .dock.dock [aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
html body .dock.dock.fb-on [aria-pressed="true"] { background: none; box-shadow: none; }
html body .dock.dock .fb-ind { top: 4px; bottom: 4px; left: 4px; background: var(--blue); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
html body .dock.dock .go { background: var(--blue); color: #fff; }
html body .dock.dock .go:disabled { color: var(--mute); background: #fff; box-shadow: inset 0 0 0 1px var(--isl); cursor: default; }
html body .dock.dock button:disabled:not(.go) { color: var(--dis); }
html body .dock.dock.four button { min-width: 0; flex: 1; padding: 0 12px; }
html body .now-jump.now-jump, html body .seg.seg {
  height: auto; box-sizing: content-box; gap: 2px; padding: 4px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .22));
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 28px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
}
html body .now-jump.now-jump a, html body .seg.seg button { height: auto; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 600; line-height: 22px; color: var(--ink); background: none; }
html body .now-jump.now-jump a[aria-current="true"], html body .seg.seg button[aria-pressed="true"], html body .seg.seg button[aria-checked="true"] { background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }

/* ===== /files の浮いたバーだけ、apple.com 型の前（前のガラス）に戻す（11-10 06:3x、Sora「ファイルのページを前の状態に」）===== */
html body[data-page="files"] .dock {
  isolation: auto; overflow: visible; gap: 2px; padding: 4px; height: auto; min-height: 0; box-sizing: content-box;
  bottom: calc(14px + var(--safe-b)); border-radius: 999px; font-family: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .22));
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(0, 0, 0, .04), 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 28px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
}
html body[data-page="files"] .dock button, html body[data-page="files"] .dock a {
  position: static; z-index: auto; flex: none; min-width: 72px; min-height: 48px; height: auto; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 22px; letter-spacing: inherit; color: var(--ink); background: none; transition: none;
}
html body[data-page="files"] .dock [aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(29, 29, 31, .78), rgba(29, 29, 31, .66)); color: #fff;
  -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 2px 8px rgba(0, 0, 0, .18);
}
html body[data-page="files"] .dock .go { background: var(--blue); color: #fff; }
html body[data-page="files"] .dock .go:disabled { color: var(--mute); background: #fff; box-shadow: inset 0 0 0 1px var(--isl); cursor: default; }
html body[data-page="files"] .dock button:disabled:not(.go) { color: var(--dis); }
/* /files は前のガラスの選択（黒い玉）のまま */
html body[data-page="files"] .dock.dock .fb-ind { background: rgba(29, 29, 31, .72); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }

/* ===== 訪問記録の写真帯を300pxに（11-10 06:5x、Sora「訪問記録の上の写真を倍の高さに」）=====
   /visits だけ 150→300px。他ページは上の節の 150px のまま。縦位置は高くなった帯に合わせ 80%→70%（店の1階のガラス面と2階のひさしまで入る）。 */
body[data-page="visits"] .photo-hero { height: 300px; }
body[data-page="visits"] .photo-hero > img { object-position: 50% 70%; }
@media (max-width: 734px) { body[data-page="visits"] .photo-hero { height: 300px; } }

/* ===== apple.com の動き（11-10、Sora「Apple 公式の動きとトランジションの細部を」）=====
   値は apple.com/jp の iphone・airpods-pro・mac・ストアの CSS/JS から実測。控えは backup/apple-motion-20261110/。
   1 スクロールで現れる: 元は apple.com の宣伝の値（30px・0.7/0.9s・0.15s ずらし）。11-11 に道具のページの値へ縮めた（下）。
     画面の 85% の高さに上端が来たら 1 回だけ。印（.am-r）は shell.js が「画面より下にあるもの」だけに付ける。
     transform ではなく translate を使う（押した手応え motion.js と dock の translateX を壊さないため）。 */
/* 11-11 物差しで縮めた: 0.4s var(--m-out)、12px、ずらし 0.06s（最初の5個まで）。ホームの最初の画面（motion.css の m-rise）と同じ1本の動き */
.am-r { opacity: 0; translate: 0 12px; animation: none !important; }
html body .am-r.am-in { opacity: 1; translate: 0 0; animation: m-rise .4s var(--m-out) both !important; }
html body .am-r.am-in.am-d1 { animation-delay: .06s !important; }
html body .am-r.am-in.am-d2 { animation-delay: .12s !important; }
html body .am-r.am-in.am-d3 { animation-delay: .18s !important; }
html body .am-r.am-in.am-d4 { animation-delay: .24s !important; }
@keyframes m-rise { from { opacity: 0; translate: 0 12px; } }
/* 2 カードのホバー（マウスのときだけ）: .3s cubic-bezier(0,0,.5,1) で 1.01 倍（ストアのカードと同じ） */
@media (hover: hover) and (pointer: fine) {
  a.tile, a.shelf-card, a.rcard { transition: scale .3s var(--m-out), transform .2s var(--m-out); }
  a.tile:hover, a.shelf-card:hover, a.rcard:hover { scale: 1.01; }
  /* 3 ボタン: Apple は色を即時に変える（hover #0076DF、押下 #006EDB）。移り変わりは付けない */
  .btn:not(.plain):not(.danger):not(:disabled):hover, html body a:hover .pill, html body .now .pill:hover { background: #0076df; }
}
.btn:not(.plain):not(.danger):not(:disabled):active, html body a:active .pill, html body .now .pill:active { background: #006edb; }
html body .pill { transition: none; }
/* 4 横送り: 端で親のページまで引っ張らない（ストアのギャラリーと同じ） */
.shelf-track, .scroller { overscroll-behavior-x: contain; }
/* 5 動きを減らす設定では、現れる動きもホバーの拡大も止める */
@media (prefers-reduced-motion: reduce) {
  .am-r, html body .am-r.am-in { opacity: 1; translate: none; animation: none !important; }
  a.tile:hover, a.shelf-card:hover, a.rcard:hover { scale: none; }
}

/* visits shelf: keep heading and button on one line (20261110) */
.shelf-h .link { flex: none; white-space: nowrap; }
@media (max-width: 734px) { body[data-page="visits"] .shelf-h { flex-wrap: nowrap; } body[data-page="visits"] .shelf-h h2 { min-width: 0; } body[data-page="visits"] .shelf-h h2 span { display: block; } body[data-page="visits"] .shelf-h h2 { font-size: 20px; line-height: 25px; } body[data-page="visits"] .shelf-h .link { font-size: 15px; padding: 0; min-width: 0; } }

/* ===== 読み込みで跳ねない（11-11、物差し 7 章・見直し案 1）=====
   データが届く前は main が短く、フッターが上に出てから下へ跳んでいた。main を画面の高さ以上にして、フッターを最初から画面の外に置く */
body[data-page="now"] > main, body[data-page="visits"] > main, body[data-page="files"] > main, body[data-page="notes"] > main, body[data-page="location"] > main { min-height: 100svh; }

/* 初めての表示で跳ねない取り置き（11-11）。中身が届いたら shell.js が m-wait を外す。値は本番の実寸 */
#work.m-wait { min-height: 1556px; } #batt.m-wait { min-height: 546px; } #v-shelf-track.m-wait { min-height: 348px; } #day.m-wait { min-height: 204px; }
@media (min-width: 735px) { #work.m-wait { min-height: 1721px; } #batt.m-wait { min-height: 642px; } #v-shelf-track.m-wait { min-height: 388px; } #day.m-wait { min-height: 225px; } }

/* 訪問記録の「行った順」（11-13 Sora「昨日一昨日どこ行ったかわかるように」）: 並べ方の切り替えと、日の見出し */
body[data-page="visits"] .seg.v-order { display: flex; width: max-content; max-width: 100%; margin: 0 auto 16px; }
body[data-page="visits"] .seg.v-order button { flex: none; min-width: 120px; }
#list .day-head { display: flex; align-items: baseline; gap: 8px; }
#list .day-head small { font-size: 15px; line-height: 20px; font-weight: 400; color: var(--mute); font-variant-numeric: tabular-nums; }
#list .day-head.rel > span { font-size: 22px; line-height: 28px; }
/* 数字が並ぶ部品は等幅の数字に揃える（一覧の日付・回数・時刻、年の切り替え、月見出し、注記、日の格子。11-15 #288）。.row などは後ろで font: inherit を持つので、必ずこのファイルの最後に置く */
.row, .chips button, .month, .dayh, .cap, .days, .nums, time, .shelf-card .sc-k, .when, .w-dt .fl-sub, .req-step { font-variant-numeric: tabular-nums; }
/* 行送りを指定していない部品は、地の 1.47 を自分の字の大きさで掛けた端数（22.06px など）になる。
   ここで「同じ比率を整数の px に丸めた値」を与える。:where() で強さ 0 にしてあるので、行送りを指定した規則には必ず負ける（11-15 #288） */
:where(.row .end, .row .num, .row .fic, .days small, .chips button, .seg button, .dock button, .link, .crumb b, details.blank > summary,
  .dev-body > a, .dayh, .oc-note, .oc-state, .mchip, .ibtn, .rbtn, .rc-links a, .rcard .act, .t,
  .ca-sb-h, .ca-empty-s, .ca-term, .ca-hint, .ca-list-empty, .ca-conn, .gz-hint, .gz-cutrow > span, .gz-title p) { line-height: round(calc(1em * 1.4705882353), 1px); }
/* 上の :where() は font: inherit を持つボタンには届かない（font: inherit が行送りも親から継ぐため）。同じ強さで後ろから行送りだけ整数にする */
.dock button, .dock a, .link, .chips button, .rcard .act, .ibtn, .rbtn, .mchip { line-height: round(calc(1em * 1.4705882353), 1px); }
/* #412 選んだ文字と入力の点滅線もサイトの青に（④12、ブラウザ任せにしない） */
::selection { background: rgba(0, 113, 227, .2); }
input, textarea, [contenteditable] { caret-color: #0071e3; }

/* #412b 地を白にした後の境目（11-18）: 白い棚のカード・許可の箱、押した・指した時の目印を線 1px で */
.shelf-card.soft, .appr { box-shadow: inset 0 0 0 1px #e5e5ea; }
.pnav a:hover { box-shadow: inset 0 0 0 1px #e5e5ea; }
body:is([data-page="visits"], [data-page="location"], [data-page="notes"], [data-page="files"]) .row:active { box-shadow: inset 0 0 0 1px #e5e5ea; }

/* ==== OpenClaw ページ（11-20 Apple 流の作り直し）。ここから下は body.oc-page と .oc- の名前だけに効く ==== */
/* OpenClaw ページ（11-20 作り直し、Sora「見にくい・Appleらしくない」）。
   apple.com/jp の製品の入口ページの型: ページ専用の細い帯（ローカルナビ）→ 左寄せの大きな言い切りの見出し → 機能ごとの大きなタイル。
   地は白、タイルは白に線 1px・角丸 28px（サイトの決まり 11-18）、影なし。色は青一色と灰。余白は4の倍数。
   このファイルは openclaw.html だけが読む。ui.css の後に読むので、同じ強さなら後勝ち */

body.oc-page { --oc-ln-h: 52px; --oc-line: #d2d2d7; --oc-max: 980px; }

/* ---- 骨組み: 上に帯、下に（会話のときだけ）一覧＋本体 ---- */
body.oc-page .oc { grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
body.oc-page .oc-ln { grid-column: 1 / -1; grid-row: 1; }
body.oc-page .oc-side { grid-column: 1; grid-row: 2; background: #fff; border-right: 1px solid var(--line); }
body.oc-page .oc-main { grid-column: 2; grid-row: 2; }
body.oc-page:not([data-view="chat"]) .oc-side { display: none; }
body.oc-page:not([data-view="chat"]) .oc-main { grid-column: 1 / -1; }
body.oc-page.oc-page .oc.noside .oc-main { grid-column: 1 / -1; }
/* 会話以外は本体の見出し帯（‹ 題 ⓘ）を出さない。上の帯が同じ役目をする */
body.oc-page:not([data-view="chat"]) .oc-top { display: none; }

/* ---- ローカルナビ（apple.com の localnav: 高さ 52・題 21px 太字・右に項目と青い丸ボタン・下に細い線） ---- */
.oc-ln { position: relative; z-index: 4; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line); }
.oc-ln-in { display: flex; align-items: center; gap: 24px; max-width: calc(var(--oc-max) + 44px); height: var(--oc-ln-h); margin: 0 auto; padding: 0 22px; }
.oc-ln-t { flex: none; margin-right: auto; font-size: 21px; line-height: 28px; font-weight: 600; letter-spacing: .231px; color: var(--ink); }
.oc-tabs { display: flex; align-items: center; gap: 4px; }
.oc-tabs button { position: relative; display: flex; align-items: center; height: 44px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.oc-tabs button:hover { color: var(--blue-link); }
/* 開いている項目は apple.com と同じく灰色にして押せない見た目に。下に細い線を添えて、どこにいるかを形でも示す */
.oc-tabs button[aria-selected="true"] { color: var(--mute); cursor: default; }
.oc-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 1px; background: var(--ink); }
.oc-badge { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; line-height: 20px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.oc-ln-act { flex: none; display: flex; align-items: center; gap: 12px; }
.oc-ln-link { display: flex; align-items: center; height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14px; line-height: 20px; color: var(--blue-link); cursor: pointer; white-space: nowrap; }
.oc-ln-link:hover { text-decoration: underline; }
/* 丸いボタン（apple.com の「購入」）。塗りが基本、line は縁だけ */
.oc-pill { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-size: 12px; line-height: 20px; font-weight: 400; cursor: pointer; white-space: nowrap; }
.oc-pill:hover { background: #0076df; } .oc-pill:active { background: #006edb; }
.oc-pill:disabled { background: var(--fill); color: var(--dis); cursor: default; }
.oc-pill.big { min-height: 44px; padding: 12px 24px; font-size: 17px; line-height: 20px; }
.oc-pill.line { background: none; box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.oc-pill.line:hover { background: var(--blue); color: #fff; }

/* ---- 会話の一覧（左） ---- */
body.oc-page .oc-sh { padding: 20px 20px 8px; }
body.oc-page .oc-sh h2 { font-size: 28px; line-height: 32px; font-weight: 600; }
body.oc-page .oc-list { padding: 0 12px 24px; }
body.oc-page .oc-cover { display: none; }

/* ---- 読むだけの画面（作業・ジョブ・使用量）を広い列に ---- */
body.oc-page .oc-panel { padding: 0 22px 80px; background: #fff; }
body.oc-page .oc-panel > div { max-width: var(--oc-max); }
body.oc-page .oc-panel > div > .cap:first-child { margin-top: 40px; font-size: 17px; line-height: 25px; color: var(--mute); }
body.oc-page .oc-panel .oc-g { margin-top: 40px; }
body.oc-page .oc-panel .oc-g > .h2 { margin-bottom: 12px; font-size: 28px; line-height: 32px; font-weight: 600; }
body.oc-page .oc-panel .group { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--oc-line); background: #fff; overflow: hidden; }

/* ---- 概要 ---- */
/* 日本語は文節で折り返す（「使\nっています」のような切れ方を防ぐ） */
.oc-home :is(.oc-hero-h, .oc-hero-p, .oc-tile-tx, .oc-tile p, .oc-tile h3) { word-break: auto-phrase; text-wrap: pretty; }
.oc-home .oc-hm { max-width: var(--oc-max); margin: 0 auto; padding: 0 0 80px; }
.oc-hero { padding: 72px 0 48px; }
.oc-eyebrow { font-size: 17px; line-height: 25px; font-weight: 600; color: var(--mute); }
.oc-hero-h { max-width: 18em; margin-top: 8px; font-size: 56px; line-height: 64px; font-weight: 600; letter-spacing: -.28px; color: var(--ink); text-wrap: balance; }
.oc-hero-h.bad { color: var(--red); }
.oc-hero-p { min-height: 28px; margin-top: 16px; font-size: 21px; line-height: 28px; color: var(--mute); font-variant-numeric: tabular-nums; }
.oc-hero-b { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.oc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.oc-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; min-height: 320px; padding: 40px; border: 0; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--oc-line); font: inherit; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: box-shadow .2s var(--m-fade); }
.oc-tile:hover { box-shadow: inset 0 0 0 1px #86868b; }
.oc-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.oc-tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; gap: 40px; min-height: 360px; padding: 0 0 0 40px; }
.oc-tile-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; padding: 40px 0; }
.oc-tile-pic { flex: none; width: 48%; align-self: stretch; overflow: hidden; }
.oc-tile-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.oc-tile-k { font-size: 17px; line-height: 25px; font-weight: 600; color: var(--mute); }
.oc-tile-h { font-size: 28px; line-height: 36px; font-weight: 600; text-wrap: balance; }
.oc-tile-num { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.oc-tile-num b { font-size: 80px; line-height: 84px; font-weight: 600; letter-spacing: -1px; }
.oc-tile-num small { font-size: 32px; line-height: 36px; font-weight: 600; }
.oc-tile-cap { font-size: 17px; line-height: 25px; color: var(--mute); }
.oc-tile-bar { display: block; width: 100%; height: 8px; margin: 8px 0 4px; border-radius: 4px; background: #e8e8ed; overflow: hidden; }
.oc-tile-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--blue); transition: width .6s var(--m-out); }
.oc-tile-list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.oc-tile-list:empty { display: none; }
.oc-mini { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 17px; line-height: 24px; }
.oc-mini .dot { flex: none; }
.oc-mini .ell { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-mini small { flex: none; font-size: 14px; line-height: 20px; color: var(--mute); font-variant-numeric: tabular-nums; }
/* 「開く ›」はタイルの下端にそろえる（apple.com のタイルのリンクと同じ青い字） */
.oc-tile-go { margin-top: auto; padding-top: 16px; font-size: 17px; line-height: 25px; color: var(--blue-link); }
.oc-tile-go::after { content: " ›"; }
.oc-tile:hover .oc-tile-go { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .oc-tile, .oc-tile-bar i { transition: none; } }

/* ---- iPad 縦〜狭い Mac ---- */
@media (max-width: 1068px) {
  .oc-home .oc-hm { padding-left: 0; padding-right: 0; }
  .oc-hero-h { font-size: 48px; line-height: 56px; }
}

/* ---- iPhone（760px 以下）: 帯は2段（題と操作／項目）、タイルは1列 ---- */
@media (max-width: 760px) {
  body.oc-page .oc { grid-template-columns: minmax(0, 1fr); }
  body.oc-page .oc-side, body.oc-page .oc-main, body.oc-page:not([data-view="chat"]) .oc-main { grid-column: 1; }
  .oc-ln-in { flex-wrap: wrap; gap: 0 12px; height: auto; padding: 0 16px; }
  .oc-ln-t { height: 48px; display: flex; align-items: center; font-size: 21px; }
  .oc-ln-act { height: 48px; }
  .oc-tabs { order: 3; flex: 1 0 100%; justify-content: space-between; margin: 0 -8px; }
  .oc-tabs button { padding: 0 8px; font-size: 15px; }
  /* 会話を開いている間は全画面（上の帯も隠す）。一覧の時は帯を出す */
  body.oc-page.chat .oc-ln { display: none; }
  body.oc-page .oc-sh { padding: 16px 16px 8px; }
  body.oc-page .oc-panel { padding: 0 16px 64px; }
  body.oc-page .oc-panel > div > .cap:first-child { margin-top: 24px; }
  body.oc-page .oc-panel .oc-g { margin-top: 32px; }
  body.oc-page .oc-panel .oc-g > .h2 { font-size: 24px; line-height: 28px; }
  .oc-hero { padding: 40px 0 32px; }
  .oc-eyebrow { font-size: 14px; line-height: 20px; }
  .oc-hero-h { font-size: 32px; line-height: 40px; letter-spacing: 0; }
  .oc-hero-p { margin-top: 12px; font-size: 17px; line-height: 25px; }
  .oc-hero-b { gap: 12px; margin-top: 24px; }
  .oc-hero-b .oc-pill.big { flex: 1 1 0; padding: 12px 16px; }
  .oc-tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .oc-tile { min-height: 0; padding: 28px; }
  .oc-tile.wide { flex-direction: column-reverse; gap: 0; min-height: 0; padding: 0; }
  .oc-tile-tx { padding: 28px; }
  .oc-tile-pic { width: 100%; height: 200px; }
  .oc-tile-h { font-size: 24px; line-height: 32px; }
  .oc-tile-num b { font-size: 64px; line-height: 68px; }
  .oc-tile-num small { font-size: 28px; line-height: 32px; }
}
