/* ポータルの見た目（apple.com/jp に合わせる）。白地に黒い字、区切りの帯は #f5f5f7、
   リンクは #0066cc、ボタンは #0071e3 の丸いピル。ガラスはナビと重ねる面（シート・遠隔の帯）だけ。
   外部フォントは読まず、端末の SF Pro・ヒラギノを使う。 */
:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro JP", "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #86868b;
  --line: #d2d2d7;
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --green: #03a10e;
  --orange: #b64400;
  --red: #e30000;
  --track: #e8e8ed;
  --nav: rgba(250, 250, 252, 0.8);
  --sheet: rgba(255, 255, 255, 0.86);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}
@media not all {
  :root {
    --bg: #000000;
    --bg2: #000000;
    --card: #1d1d1f;
    --text: #f5f5f7;
    --text2: #a1a1a6;
    --text3: #86868b;
    --line: #424245;
    --link: #2997ff;
    --green: #30d158;
    --orange: #ff9f0a;
    --red: #ff453a;
    --track: #333336;
    --nav: rgba(22, 22, 23, 0.8);
    --sheet: rgba(29, 29, 31, 0.86);
    --shadow: none;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body.portal {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 17px/1.47 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
button { font-family: var(--font); }

/* 上の薄いナビ（ガラス） */
.gnav {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}
@media not all { .gnav { border-bottom-color: rgba(255, 255, 255, 0.08); } }
.gnav .in {
  max-width: 1024px; margin: 0 auto; height: 44px; padding: 0 max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.gnav a { color: var(--text); opacity: 0.8; font-size: 12px; letter-spacing: -0.01em; white-space: nowrap; transition: opacity 0.2s; }
.gnav a:hover { opacity: 1; text-decoration: none; }
.gnav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.gnav .brand { font-size: 17px; font-weight: 600; opacity: 1; letter-spacing: -0.02em; }

/* 帯（セクション） */
.band { padding: 56px 20px; }
.band.alt { background: var(--bg2); }
.band > .in { max-width: 980px; margin: 0 auto; }
.band h2.head { font-size: 32px; line-height: 1.125; font-weight: 700; letter-spacing: -0.009em; margin: 0 0 24px; }
@media (min-width: 734px) { .band { padding: 80px 22px; } .band h2.head { font-size: 40px; } }

/* 大きな見出し */
.hero { text-align: center; padding: 56px 20px 48px; }
.hero .eyebrow { font-size: 17px; font-weight: 600; color: var(--orange); margin: 0 0 6px; }
.hero h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; margin: 0 auto 12px; max-width: 14em; }
.hero p.lead { font-size: 21px; line-height: 1.38; color: var(--text); margin: 0 auto 6px; max-width: 30em; font-weight: 400; }
.hero p.date { font-size: 17px; color: var(--text2); margin: 0 0 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (min-width: 734px) { .hero { padding: 88px 22px 72px; } .hero h1 { font-size: 64px; } .hero p.lead { font-size: 24px; } }

/* ピルのボタン */
.pill, .btn-primary {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid var(--btn);
  background: var(--btn); color: #fff; font: 400 17px var(--font); letter-spacing: -0.022em;
  cursor: pointer; text-decoration: none; transition: background 0.2s, opacity 0.2s, transform 0.2s;
}
.pill:hover, .btn-primary:hover { background: var(--btn-hover); text-decoration: none; }
.pill:active, .btn-primary:active { transform: scale(0.98); }
.pill:disabled, .btn-primary:disabled { opacity: 0.4; cursor: default; }
.pill.ghost, .btn-ghost { background: transparent; color: var(--btn); border-color: var(--btn); }
.pill.ghost:hover, .btn-ghost:hover { background: var(--btn); color: #fff; }
@media not all { .pill.ghost, .btn-ghost { color: var(--link); border-color: var(--link); } }
.btn-ghost { appearance: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 980px; border: 1px solid; font: 400 15px var(--font); cursor: pointer; }
.more { font-size: 17px; }
.more::after { content: " ›"; }
.textlink { appearance: none; border: 0; background: none; color: var(--link); font: inherit; padding: 0; cursor: pointer; }
.textlink:hover { text-decoration: underline; }

/* カード（apple.com の販促カード） */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 24px; overflow: hidden;
}
.card h3 { font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: 0.009em; margin: 0 0 4px; }
.card .cap { font-size: 14px; color: var(--text2); margin: 0 0 18px; letter-spacing: -0.016em; }
.grid { display: grid; gap: 20px; }
@media (min-width: 734px) { .grid.two { grid-template-columns: 1fr 1fr; } }

/* 入口のタイル */
.tiles { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 734px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  display: flex; flex-direction: column; min-height: 230px; padding: 32px 28px 28px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover { text-decoration: none; transform: scale(1.01); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.1); }
.tile .glyph { margin-bottom: 18px; }
.tile h3 { font-size: 28px; font-weight: 700; letter-spacing: 0.007em; margin: 0 0 6px; line-height: 1.14; }
.tile .desc { font-size: 17px; color: var(--text2); margin: 0 0 auto; }
.tile .meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 22px; font-size: 14px; }
.tile .go { color: var(--link); font-size: 17px; white-space: nowrap; }
.big-n { color: var(--text2); }
.big-n b { color: var(--text); font-size: 28px; font-weight: 700; margin: 0 2px; font-variant-numeric: tabular-nums; }

.glyph { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.glyph svg { width: 26px; height: 26px; fill: #fff; }
.g-visits { background: linear-gradient(180deg, #ff5e5b, #e5322d); }
.g-mac { background: linear-gradient(180deg, #4a4a4f, #1d1d1f); }
.g-win { background: linear-gradient(180deg, #2f8cff, #0063d9); }
.g-oc { background: linear-gradient(180deg, #a98bff, #6e46e8); }
.g-cal { background: linear-gradient(180deg, #ff6b5f, #ff3b30); }
.g-load { background: linear-gradient(180deg, #34c759, #1a9e3f); }
@media not all { .g-mac { background: linear-gradient(180deg, #6e6e73, #3a3a3c); } }

/* 状態の小さな印 */
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); font-size: 14px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex: none; }
.status.on { color: var(--green); }
.status.on::before { background: var(--green); }
.status.off::before { background: var(--text3); }
.status.busy { color: var(--orange); }
.status.busy::before { background: var(--orange); }

/* 予定 */
.cal-day { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0; margin: 18px 0 6px; }
.cal-day:first-of-type { margin-top: 0; }
.ev { display: flex; gap: 14px; padding: 12px 0; border-top: 0.5px solid var(--line); }
.cal-day + .ev { border-top: 0; }
.ev .t { flex: 0 0 auto; min-width: 92px; font-size: 15px; color: var(--text2); font-variant-numeric: tabular-nums; }
.ev .n { font-size: 17px; font-weight: 600; }
.ev .w { font-size: 14px; color: var(--text2); }
.card .empty, .sessions .empty { color: var(--text2); font-size: 15px; padding: 6px 0; margin: 0; text-align: left; }

/* 重さ */
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 22px; }
.gauge .l { font-size: 12px; color: var(--text2); font-weight: 600; }
.gauge .v { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: 0.004em; font-variant-numeric: tabular-nums; }
.gauge .s { font-size: 13px; color: var(--text2); }
.machine { padding-top: 16px; border-top: 0.5px solid var(--line); margin-top: 16px; }
.machine .mh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.machine .mh b { font-size: 17px; }
.meter { display: grid; grid-template-columns: 52px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; color: var(--text2); margin: 6px 0; }
.meter .track { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 3px; background: var(--btn); width: 0; transition: width 0.6s var(--ease); }
.meter .fill.hot { background: var(--orange); }
.meter .num { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.stamp { font-size: 12px; color: var(--text3); margin: 14px 0 0; }

/* 足元 */
.foot { max-width: 980px; margin: 0 auto; padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--text2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 0.5px solid var(--line); }
.foot .textlink { font-size: 12px; }
.band.alt + .foot, .foot.on-alt { border-top: 0; }
body.portal.alt-bg { background: var(--bg2); }

/* サインイン・登録 */
.signin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.signin .box { width: 100%; max-width: 420px; }
.signin .mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 16px; background: var(--text); display: grid; place-items: center; }
.signin .mark svg { width: 32px; height: 32px; fill: var(--bg); }
.signin h1 { font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.003em; margin: 0 0 10px; }
.signin .sub { font-size: 19px; line-height: 1.42; color: var(--text2); margin: 0 auto 30px; max-width: 22em; }
.signin .btn-primary { min-width: 260px; }
.msg { min-height: 22px; margin: 16px 0 0; font-size: 15px; color: var(--text2); }
.msg.err { color: var(--red); }
.fine { font-size: 12px; color: var(--text3); margin: 14px 0 0; }

/* シート（ガラス） */
dialog.sheet-d {
  border: 0; padding: 0; width: 100%; max-width: 680px; max-height: 88dvh; margin: auto auto 0;
  border-radius: 20px 20px 0 0; color: var(--text); background: var(--sheet);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}
@media (min-width: 734px) { dialog.sheet-d { margin: auto; border-radius: 20px; } }
dialog.sheet-d::backdrop { background: rgba(0, 0, 0, 0.4); }
.sheet-h { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 0.5px solid var(--line); background: inherit; }
.sheet-h h2 { font-size: 17px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sheet-h > button { flex: none; white-space: nowrap; }
.sheet-b { padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: calc(88dvh - 56px); }

/* OpenClaw */
.compose textarea, .compose select {
  width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--text); font: 17px/1.4 var(--font); padding: 12px 14px;
}
.compose textarea { min-height: 110px; resize: vertical; }
.compose textarea:focus, .compose select:focus { outline: 2px solid var(--btn); outline-offset: 1px; border-color: transparent; }
.compose label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin: 0 0 6px; }
.compose .row { margin-bottom: 14px; }
.compose .act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sessions { display: flex; flex-direction: column; gap: 12px; }
.sess {
  appearance: none; width: 100%; text-align: left; border: 0; cursor: pointer; color: var(--text);
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; font: inherit;
  transition: transform 0.3s var(--ease);
}
.sess:active { transform: scale(0.99); }
.sess .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.sess .ttl { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess .sub2 { font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.sess .last { font-size: 14px; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: var(--track); color: var(--text2); white-space: nowrap; }
.tag.main { background: var(--btn); color: #fff; }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bub.user { align-self: flex-end; background: var(--btn); color: #fff; border-bottom-right-radius: 6px; }
.bub.assistant { align-self: flex-start; background: var(--bg2); border-bottom-left-radius: 6px; }
@media not all { .bub.assistant { background: #2c2c2e; } }
.bub .when { display: block; font-size: 11px; opacity: 0.6; margin-top: 4px; }
.bub .tools { display: block; font-size: 11px; opacity: 0.6; margin-top: 4px; }

/* 訪問記録（style.css の部品を apple.com の色に寄せる） */
body.visits {
  --bg: #f5f5f7; --cell: #ffffff; --tint: #0071e3; --label: #1d1d1f; --label2: #6e6e73;
  background: #f5f5f7; color: #1d1d1f; font-family: var(--font); letter-spacing: -0.022em; padding: 0;
}
@media not all {
  body.visits { --bg: #000000; --cell: #1d1d1f; --tint: #2997ff; --label: #f5f5f7; --label2: #a1a1a6; background: #000; color: #f5f5f7; }
}
body.visits .wrap { padding-top: 8px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
body.visits h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; margin: 28px 0 20px; }
body.visits .stat, body.visits .list { box-shadow: var(--shadow); }
body.visits .stat { border-radius: 18px; padding: 16px; }
body.visits .stat .n { font-size: 32px; }
body.visits .list { border-radius: 18px; }
body.visits .seg { border-radius: 980px; padding: 3px; }
body.visits .seg button { border-radius: 980px; }
body.visits .btn:not(.plain):not(.danger) { border-radius: 980px; background: #0071e3; font-weight: 400; }
body.visits .chips button[aria-pressed="true"] { background: var(--label); color: var(--bg); }
body.visits dialog { background: var(--sheet); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); }
body.visits .gnav { margin: 0; }

/* 遠隔操作（画面は黒地。帯・札・入口のカードだけガラス） */
body.remote { background: #000; color: #f5f5f7; overflow: hidden; height: 100dvh; padding: 0; }
.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);
}
#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; }
#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; padding: 6px; border-radius: 980px; max-width: calc(100vw - 24px); overflow-x: auto;
  transition: transform 0.4s var(--ease), opacity 0.3s; 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: #f5f5f7; text-decoration: none; white-space: nowrap;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 980px; font: 400 14px var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
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 .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; }
.chip { position: fixed; z-index: 10; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); border-radius: 980px; padding: 7px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.chip .status { color: #30d158; }
.chip .status::before { width: 7px; height: 7px; background: #30d158; }
.handle { position: fixed; z-index: 9; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 50%; color: #f5f5f7; display: grid; place-items: center; cursor: pointer; }
.handle svg { width: 20px; height: 20px; fill: currentColor; }
.gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: #000; }
.gate .card { width: 100%; max-width: 420px; padding: 40px 28px 28px; text-align: center; background: #1d1d1f; box-shadow: none; }
.gate .glyph { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 22px; }
.gate .glyph svg { width: 38px; height: 38px; }
.gate h1 { font-size: 40px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.015em; }
.gate p { color: #a1a1a6; margin: 0 0 26px; font-size: 17px; }
.gate .btn-primary { width: 100%; }
.gate .row2 { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.gate .btn-ghost { color: #2997ff; border-color: transparent; background: transparent; }
.gate .btn-ghost:hover { background: transparent; text-decoration: underline; }
.gate .fine { color: #86868b; margin-top: 18px; }
#kbd { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; /* iOS が拡大しない大きさ */ }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* 小さな寄せ（CSP で style 属性は使えないのでクラスで） */
.mt { margin-top: 16px !important; }
.m0 { margin: 0 !important; }
.mb { margin-bottom: 12px !important; }
.pt0 { padding-top: 0 !important; }
.band h2.head.sm { font-size: 28px; margin: 12px 0 16px; }
.reply { margin-top: 20px; text-align: center; }
body.visits .foot { border-top: 0; }
.grid > *, .tiles > * { min-width: 0; }
.sess .top .ttl { min-width: 0; flex: 1; }
.sess .top .status { flex: none; }
.more-row { text-align: center; margin-top: 16px; }

/* まずはハイライトから（apple.com の横スクロール帯）。カードは scroll-snap、スクロールバーは隠し、
   右下の丸い ‹ › で1枚ずつ送る。左端は本文の幅（980px）にそろえる。 */
.hl { padding: 8px 0 56px; overflow: hidden; }
.hl > .in { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.hl h2.head { font-size: 32px; line-height: 1.125; font-weight: 700; letter-spacing: -0.009em; margin: 0 0 24px; }
.hl-scroller {
  --edge: max(20px, calc((100vw - 980px) / 2 + 20px));
  display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  padding: 10px var(--edge) 30px; scrollbar-width: none; outline: none;
}
.hl-scroller::-webkit-scrollbar { display: none; }
.hl-card {
  flex: 0 0 auto; width: min(82vw, 372px); height: 440px; scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: var(--radius);
  background: var(--bg2); color: var(--text); position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hl-card:hover { text-decoration: none; transform: scale(1.015); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 18px 44px rgba(0, 0, 0, 0.08); }
.hl-card:active { transform: scale(0.985); }
.hl-card:focus-visible, .hl-scroller:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; }
.hl-card.dark { background: #000; color: #f5f5f7; }
.hl-card.dark .hl-eye, .hl-card.dark .hl-s, .hl-card.dark .hl-foot { color: #a1a1a6; }
.hl-card.dark .go { color: #2997ff; }
.hl-eye { font-size: 14px; font-weight: 600; color: var(--text2); margin: 0 0 8px; letter-spacing: -0.016em; }
.hl-t { font-size: 28px; line-height: 1.14; font-weight: 700; letter-spacing: 0.007em; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl-s { font-size: 17px; line-height: 1.47; color: var(--text2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-big { margin-top: auto; display: flex; align-items: baseline; gap: 4px; }
.hl-n { font-size: 96px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hl-n.sm { font-size: 64px; }
.hl-u { font-size: 24px; font-weight: 600; color: var(--text2); }
.hl-bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; margin-top: 16px; }
.hl-fill { height: 100%; width: 0; border-radius: 3px; background: var(--text); transition: width 0.8s var(--ease); }
.hl-fill.hot { background: var(--orange); }
.hl-art { margin-top: auto; align-self: center; width: 150px; height: 150px; display: grid; place-items: center; }
.hl-art svg { width: 100%; height: 100%; fill: currentColor; opacity: 0.92; }
.hl-card .hl-art + .hl-foot { margin-top: 18px; }
.hl-foot { font-size: 14px; color: var(--text2); margin: 14px 0 0; min-height: 20px; display: flex; justify-content: space-between; gap: 8px; }
.hl-foot .go { color: var(--link); font-size: 17px; margin-left: auto; }
.hl-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hl-dots { display: flex; gap: 10px; align-items: center; margin: 0 auto; padding-left: 92px; }
.hl-dots i { display: block; width: 8px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.42); opacity: 0.4; transition: width 0.4s var(--ease), opacity 0.4s; }
.hl-dots i.on { width: 30px; opacity: 1; }
.hl-btns { display: flex; gap: 14px; flex: none; }
.hl-btn {
  appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(210, 210, 215, 0.64); color: rgba(0, 0, 0, 0.56); display: grid; place-items: center;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}
.hl-btn svg { width: 22px; height: 22px; fill: currentColor; }
.hl-btn:hover:not(:disabled) { background: rgba(223, 223, 227, 0.7); color: rgba(0, 0, 0, 0.64); }
.hl-btn:active:not(:disabled) { transform: scale(0.94); }
.hl-btn:disabled { opacity: 0.36; cursor: default; }
@media (min-width: 734px) {
  .hl { padding: 16px 0 80px; }
  .hl > .in { padding: 0 22px; }
  .hl h2.head { font-size: 48px; margin-bottom: 28px; }
  .hl-card { height: 500px; padding: 40px 36px 32px; }
  .hl-t { font-size: 32px; }
  .hl-n { font-size: 120px; }
  .hl-n.sm { font-size: 72px; }
}
@media (max-width: 480px) { .hl-dots { padding-left: 0; margin: 0; } }
#h-now, #h-load { scroll-margin-top: 64px; }

/* スクロールで控えめにふわっと出す（JS が .rv を付けたときだけ。動きを減らす設定では出さない） */
.rv .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv .reveal { opacity: 1; transform: none; }
  .hl-scroller { scroll-behavior: auto; }
  .hl-card:hover { transform: none; }
}

/* 訪問記録の店の写真（Apple Store アプリの店舗の行のように、角丸の大きめのサムネイル） */
body.visits .photo-row { gap: 14px; padding: 10px 16px; min-height: 84px; }
body.visits .photo-row + .photo-row::before { left: 102px; }
body.visits .thumb {
  flex: none; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: block;
  background: #e8e8ed; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
body.visits .thumb.ph {
  display: grid; place-items: center; color: #86868b; font-size: 26px; font-weight: 600;
  background: #ececf0;
}
body.visits .photo-row .main { display: flex; flex-direction: column; gap: 2px; }
body.visits .photo-row .store { font-size: 17px; font-weight: 600; letter-spacing: -0.022em; }
body.visits .photo-row .date { min-width: 0; font-size: 15px; }
@media (min-width: 734px) {
  body.visits .thumb { width: 88px; height: 88px; border-radius: 16px; }
  body.visits .photo-row { min-height: 104px; }
  body.visits .photo-row + .photo-row::before { left: 118px; }
}

/* ハイライトの訪問カード: 上に店の写真を全幅で */
.hl-card.has-photo { padding-top: 0; }
.hl-photo { display: none; margin: 0 -28px 22px; height: 190px; background: #e8e8ed; overflow: hidden; }
.hl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-card.has-photo .hl-photo { display: block; }
.hl-card.has-photo .hl-n { font-size: 72px; }
@media (min-width: 734px) {
  .hl-photo { margin: 0 -36px 24px; height: 220px; }
  .hl-card.has-photo .hl-n { font-size: 88px; }
}
