/* R77: 配色はオーナー決定「案2」。2026-11-11 ラウンド2で、このブロックの地色・文字色・罫線・淡青の8トークン（--paper / --paper-2 / --ink / --ink-2 / --muted / --line / --line-strong / --sea-tint）を案2決定値へ復旧した。以前の白磁系の値が後勝ちで決定値を上書きしていたため。 */
:root[data-theme="light"][data-palette], :root:not([data-palette]) {
  --paper: #f4f5f0; --paper-2: #e9ebe3; --card: #ffffff;
  --ink: #1b1d1c; --ink-2: #3a403d; --muted: #535b58;
  --line: #d3d6cc; --line-strong: #7f8781;
  --sea: #0a5a8f; --sea-2: #0b6aa8; --sea-tint: #e1f0fa;
  --brand-line: #0391df; --r77-published: #1d6b3c;
  --r77-published-bg: #e7f3ec; --r77-pending: #8a5300;
  --r77-pending-bg: #fdf3e0; --r77-neutral: #4f5b66;
  --r77-neutral-bg: #eef1f4;
}
.r77-site { background: var(--card); }
.r77-site .wrap { width: min(100% - 32px, 1400px); gap: 12px; min-height: 70px; }
.r77-brand { min-width: 156px; color: var(--ink); text-decoration: none; line-height: 1.15; }
.r77-brand small, .r77-brand strong { display: block; }
.r77-brand small { font-size: 11px; font-weight: 700; }
.r77-brand strong { margin-top: 3px; font-size: 20px; letter-spacing: .04em; }
.r77-brand img { width: 185px; height: auto; }
.r77-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.r77-nav a { color: var(--ink); min-height: 48px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 6px; text-decoration: none; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.r77-nav a:hover, .r77-nav a:focus-visible { color: var(--sea); background: var(--paper-2); }
.r77-nav a:last-child { color: var(--on-sea); background: var(--sea); padding-inline: 11px; }
.r77-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r77-logo-switch, .r77-mobile-menu { position: relative; flex: none; }
.r77-logo-switch summary, .r77-mobile-menu summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--sea); font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
.r77-logo-switch summary::-webkit-details-marker, .r77-mobile-menu summary::-webkit-details-marker { display: none; }
.r77-logo-switch summary::after, .r77-mobile-menu summary::after { content: '▾'; font-size: 11px; }
.r77-logo-menu, .r77-mobile-menu nav { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); z-index: 50; }
.r77-logo-menu button, .r77-logo-menu a, .r77-mobile-menu a { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.r77-logo-menu button:hover, .r77-logo-menu a:hover, .r77-mobile-menu a:hover { background: var(--paper-2); }
.r77-mobile-menu, .r77-bottom { display: none; }
.r77-first-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.r77-first-actions a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--card); color: var(--sea); font-size: 14px; font-weight: 700; text-decoration: none; }
.r77-first-actions a:hover { background: var(--paper-2); }
.r77-first-actions a:focus-visible, .r77-site a:focus-visible, .r77-site button:focus-visible, .r77-site summary:focus-visible, .r77-bottom a:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.col .r77-status-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 7px; border-radius: 6px; background: var(--r77-pending-bg); color: var(--r77-pending); font-family: sans-serif; font-weight: 800; }
.col.doc .r77-status-mark { background: var(--r77-published-bg); color: var(--r77-published); }
.col.r77-pending { background: var(--card); border: 1px solid var(--line); }
.r77-logo-page { padding-block: 32px 80px; }
.r77-logo-page h1 { color: var(--ink); font-size: clamp(27px, 4vw, 40px); }
.r77-logo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r77-logo-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.r77-logo-card h2 { font-family: var(--font-sans); font-size: 20px; }
.r77-logo-card p { margin: 18px 0 6px; font-size: 14px; font-weight: 700; }
.r77-logo-display, .r77-logo-phone { display: flex; align-items: center; min-height: 88px; padding: 12px; border: 1px solid var(--line); background: var(--paper-2); }
.r77-logo-phone { min-height: 56px; background: var(--card); }
.r77-favicon-sizes { min-height: 64px; display: flex; align-items: center; gap: 18px; }
.r77-logo-card button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--sea); border-radius: 6px; background: var(--card); color: var(--sea); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1240px) {
  .r77-nav a { flex-direction: column; gap: 0; padding-inline: 6px; font-size: 12px; }
  .r77-brand { min-width: 135px; }
  .r77-brand img { width: 150px; }
}
@media (max-width: 900px) {
  .r77-site .wrap { min-height: 60px; }
  .r77-nav { display: none; }
  .r77-logo-switch { margin-left: auto; }
  .r77-mobile-menu { display: block; }
  .r77-bottom { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line-strong); background: var(--card); }
  .r77-bottom a { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.25; }
  .r77-bottom a:last-child { color: var(--sea); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .r77-logo-cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .r77-site .wrap { width: calc(100% - 20px); gap: 6px; }
  .r77-brand { min-width: 104px; }
  .r77-brand strong { font-size: 17px; }
  .r77-brand img { width: 125px; }
  .r77-logo-switch summary, .r77-mobile-menu summary { padding-inline: 6px; font-size: 12px; }
  .r77-first-actions { flex-wrap: nowrap; gap: 4px; }
  .r77-first-actions a { flex: 1; justify-content: center; min-width: 0; padding-inline: 4px; font-size: 12px; white-space: nowrap; }
  .r77-first-actions .r77-icon { width: 17px; height: 17px; }
}
@media print { .r77-bottom, .r77-logo-switch, .r77-mobile-menu { display: none !important; } }
