@font-face { font-family: BinanceNova; src: url("assets/BinanceNova-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: BinanceNova; src: url("assets/BinanceNova-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: BinanceNova; src: url("assets/BinanceNova-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: BinanceNova; src: url("assets/BinanceNova-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #181a20;
  --surface: #202630;
  --secondary-bg: #0b0e11;
  --text: #eaecef;
  --muted: #707a8a;
  --secondary-text: #929aa5;
  --line: #333b47;
  --input-line: #434c5a;
  --input: #29313d;
  --yellow: #fcd535;
  --link: #f0b90b;
  --header-height: 64px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --surface: #fafafa;
  --secondary-bg: #fafafa;
  --text: #1e2329;
  --muted: #707a8a;
  --secondary-text: #707a8a;
  --line: #eaecef;
  --input-line: #d8dce1;
  --input: #f5f5f5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 16px/1.5 BinanceNova, "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
button, input, a { touch-action: manipulation; }
[hidden] { display: none !important; }
::selection { background: #f0b90b50; }
::-webkit-scrollbar { width: 10px; height: 6px; }
::-webkit-scrollbar-thumb { border: 2px solid var(--bg); border-radius: 6px; background: var(--line); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: 0 0 auto; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px; background: var(--yellow); color: #181a20; z-index: 200; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); background: var(--bg); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 24px; }
.brand { display: flex; width: 120px; height: 64px; flex-shrink: 0; align-items: center; }
.brand img { width: 120px; height: 64px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 18px; height: 100%; font-size: 14px; font-weight: 500; white-space: nowrap; }
.desktop-nav > a:hover, .nav-dropdown > summary:hover { color: var(--link); }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { display: flex; align-items: center; gap: 2px; padding: 20px 0; }
.nav-dropdown > summary .icon { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .18s; }
.nav-dropdown[open] > summary .icon { transform: rotate(-90deg); }
.dropdown-panel { position: absolute; top: 100%; left: -16px; width: 300px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #0003; }
.dropdown-panel a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 8px; }
.dropdown-panel a:hover { background: var(--input); }
.dropdown-panel strong { font-weight: 500; font-size: 16px; }
.dropdown-panel span { font-size: 12px; color: var(--secondary-text); }
.nav-more .dropdown-panel { left: auto; right: -12px; }
.dropdown-panel-wide { width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-dropdown[open] > .dropdown-panel-wide { display: grid; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.header-tool { display: inline-flex; width: 32px; height: 40px; padding: 0; align-items: center; justify-content: center; background: transparent; border-radius: 6px; }
.header-tool:hover { color: var(--link); background: var(--input); }
.header-tool .icon { width: 20px; height: 20px; }
.header-login { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 10px; font-size: 14px; font-weight: 500; border-radius: 6px; }
.header-login:hover { background: var(--input); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 12px 24px; background: var(--yellow); color: #202630; font-size: 16px; font-weight: 500; line-height: 24px; text-align: center; }
.button:hover { background: #ffe15c; }
.button-small { min-height: 32px; padding: 6px 12px; border-radius: 4px; font-size: 14px; line-height: 20px; font-weight: 400; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 36px; height: 44px; padding: 6px; background: transparent; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }
.page-container { max-width: 1280px; padding: 24px 40px 0; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 12px; min-height: 24px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.breadcrumb > a { color: var(--muted); }
.breadcrumb > a:hover { color: var(--link); }
.breadcrumb > .icon { color: var(--line); width: 16px; height: 24px; }
.breadcrumb > span { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-mobile { display: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 48px; padding: 48px 0; }
article { min-width: 0; }
h1 { font-size: 32px; line-height: 40px; font-weight: 600; margin: 0; overflow-wrap: break-word; }
.article-date { display: block; margin-top: 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.article-body { margin-top: 16px; overflow-wrap: break-word; }
.article-body p, .article-body h2 { margin: 0; padding: 12px 0; font-size: 16px; line-height: 24px; font-weight: 400; }
.article-body a { text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 2px; }
.article-body a:hover { color: var(--link); }
.paragraph-space { height: 48px; }
figure { margin: 0; overflow: hidden; border-radius: 8px; }
.article-image { display: block; width: 100%; height: auto; }
.speed-image { object-fit: contain; background: #fff; }
.article-sidebar { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.share-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 10px 20px; font-size: 16px; line-height: 20px; font-weight: 500; border-radius: 8px; background: var(--input); }
.share-button .icon { width: 16px; height: 16px; }
.share-button:hover { background: var(--line); }
.like-widget { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.like-circle { display: flex; align-items: center; justify-content: center; border-radius: 50%; width: 48px; height: 48px; background: var(--line); }
.like-button[aria-pressed="true"] { color: var(--link); }
.like-count { font-size: 14px; line-height: 20px; color: var(--muted); }
.search-form { display: flex; gap: 8px; padding: 0 12px; align-items: center; height: 48px; width: 100%; border: 1px solid var(--input-line); border-radius: 10px; }
.search-form:focus-within { border-color: var(--link); }
.search-form button { background: transparent; padding: 0; display: flex; align-items: center; color: var(--muted); }
.search-form .icon { width: 20px; height: 20px; }
.search-form input { min-width: 0; width: 100%; border: 0; padding: 0; background: transparent; font-size: 16px; outline: 0; }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.register-card { width: 100%; display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 24px 16px; border: 1px solid var(--line); border-radius: 10px; }
.user-icon { width: 64px; height: 64px; stroke-width: 2; }
.user-dot { fill: var(--link); stroke: none; }
.register-card p { margin: 0; text-align: center; font-weight: 500; line-height: 24px; }
.mobile-article-actions { display: none; }
.register-banner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; background: var(--secondary-bg); }
.register-banner > .user-icon { width: 96px; height: 96px; }
.register-banner h2 { font-size: 24px; line-height: 32px; font-weight: 600; text-align: center; margin: 0 0 8px; }
.site-footer { max-width: 1280px; margin: 0 auto; padding: 64px 40px 24px; font-size: 14px; }
.footer-content { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.footer-community h3 { font-weight: 500; font-size: 20px; line-height: 28px; margin: 0 0 24px; }
.social-links { display: grid; grid-template-columns: repeat(4, 24px); gap: 20px 24px; }
.social-links a { font: 600 24px/24px Arial, sans-serif; display: flex; align-items: center; justify-content: center; height: 24px; }
.social-links a:hover { color: var(--link); }
.social-links svg { width: 22px; height: 22px; }
.footer-community .preferences-heading { margin: 40px 0 24px; }
.footer-preferences { display: flex; flex-direction: column; gap: 20px; }
.footer-preferences > span, .theme-toggle, .mobile-preferences > span { display: flex; align-items: center; gap: 8px; }
.theme-toggle { background: transparent; padding: 0; font-size: 14px; min-height: 28px; }
.theme-switch { height: 20px; width: 36px; margin-left: auto; padding: 3px; background: var(--line); border-radius: 20px; }
.theme-switch::after { content: ""; display: block; width: 14px; height: 14px; background: var(--text); border-radius: 50%; transform: translateX(16px); }
[data-theme="light"] .theme-switch::after { transform: translateX(0); }
.currency-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 22px; }
.footer-columns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.footer-group > summary { display: flex; align-items: center; justify-content: space-between; font-size: 18px; line-height: 28px; font-weight: 500; margin-bottom: 20px; cursor: default; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { line-height: 20px; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--link); }
.footer-plus { display: none; }
.footer-legal { color: var(--secondary-text); font-size: 12px; line-height: 20px; padding: 48px 0 24px; }
.footer-legal p { margin: 0 0 16px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; gap: 24px; padding: 24px 0 12px; }
.footer-bottom button { padding: 0; background: transparent; font-size: 14px; }
.footer-bottom button:hover { color: var(--link); }
.archive-credit { color: var(--muted); font-size: 12px; text-align: center; margin: 4px 0 0; }
.archive-credit a:hover { color: var(--link); }
.cookie-banner { position: fixed; bottom: 16px; left: 16px; z-index: 110; width: 400px; max-width: calc(100% - 32px); padding: 28px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 12px #0004; font-family: Arial, sans-serif; font-size: 14px; line-height: 22px; }
.cookie-banner p { margin: 0 0 24px; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.cookie-actions .button { font-size: 14px; font-weight: 400; line-height: 20px; min-height: 46px; border-radius: 12px; padding: 12px 8px; }
.cookie-manage { display: block; margin: 20px auto 4px; background: transparent; text-decoration: underline; font-size: 14px; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
dialog::backdrop { background: #0009; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 20px; font-weight: 500; }
.icon-button { background: transparent; width: 32px; height: 32px; padding: 4px; }
.share-dialog > p, .cookie-dialog > p { margin: 20px 0; font-size: 14px; color: var(--secondary-text); }
.share-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.share-options a { display: flex; justify-content: center; align-items: center; min-width: 48px; min-height: 44px; border: 1px solid var(--input-line); border-radius: 8px; padding: 8px 12px; }
.share-options a:hover { border-color: var(--link); }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--input-line); border-radius: 8px; }
.copy-row input { border: 0; min-width: 0; width: 100%; background: transparent; font-size: 12px; }
.copy-row button { flex-shrink: 0; }
.copy-row .icon { width: 16px; height: 16px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; font-size: 14px; }
.cookie-option strong { font-weight: 500; }
.cookie-option span { color: var(--muted); font-size: 12px; }
.cookie-option input { accent-color: var(--yellow); width: 20px; height: 20px; }
.cookie-dialog > .button { width: 100%; }
.toast { position: fixed; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); padding: 12px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 4px 16px #0003; z-index: 150; font-size: 14px; width: max-content; max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 1099px) {
  :root { --header-height: calc(64px + env(safe-area-inset-top, 0px)); }
  body { padding-top: var(--header-height); }
  .site-header { position: fixed; top: 0; left: 0; width: 100%; padding-top: env(safe-area-inset-top, 0px); }
  .header-inner { height: 64px; padding: 0 16px; }
  .desktop-nav, .desktop-header-tool { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: block; position: fixed; z-index: 95; inset: var(--header-height) 0 0; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu-inner { max-width: 680px; margin: 0 auto; padding: 12px 24px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .mobile-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
  .mobile-account-actions .button, .mobile-login { min-height: 44px; border-radius: 8px; }
  .mobile-login { display: flex; align-items: center; justify-content: center; border: 1px solid var(--input-line); font-weight: 500; }
  .mobile-nav-link, .mobile-nav-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 14px 0; gap: 16px; font-size: 18px; font-weight: 500; }
  .mobile-nav-link > .icon, .mobile-nav-group > summary > .icon { width: 16px; height: 16px; }
  .mobile-nav-group > summary > .icon { transform: rotate(90deg); transition: transform .18s; }
  .mobile-nav-group[open] > summary > .icon { transform: rotate(-90deg); }
  .mobile-nav-group > div { display: flex; flex-direction: column; gap: 0; padding-left: 16px; }
  .mobile-nav-group > div > a { display: flex; align-items: center; padding: 12px 0; min-height: 48px; color: var(--secondary-text); }
  .mobile-utility-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0 8px; border-top: 1px solid var(--line); }
  .mobile-utility-links a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; background: var(--input); }
  .mobile-utility-links .icon { width: 20px; height: 20px; }
  .menu-section-label { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: 1px; }
  .article-nav-link { min-height: 48px; font-size: 16px; font-weight: 400; }
  .mobile-preferences { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) minmax(190px, 25%); gap: 32px; padding-top: 32px; }
  h1 { font-size: 28px; line-height: 36px; }
  .footer-content { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; }
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .social-links { gap: 18px; }
}

@media (max-width: 767px) {
  :root { --header-height: calc(64px + env(safe-area-inset-top, 0px)); --bg: #202630; }
  :root[data-theme="light"] { --bg: #fff; }
  .site-header { position: fixed; top: 0; left: 0; width: 100%; padding-top: env(safe-area-inset-top, 0px); }
  body { padding-top: var(--header-height); }
  .header-inner { height: 64px; padding: 0 16px; }
  .desktop-nav { display: none; }
  .header-actions { display: flex; gap: 12px; }
  .signup { padding-left: 10px; padding-right: 10px; }
  .mobile-menu { display: block; position: fixed; z-index: 95; inset: var(--header-height) 0 0; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu-inner { padding: 12px 24px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav-link, .mobile-nav-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 14px 0; gap: 16px; font-size: 18px; font-weight: 500; }
  .mobile-nav-link > .icon, .mobile-nav-group > summary > .icon { width: 16px; height: 16px; }
  .mobile-nav-group > summary > .icon { transform: rotate(90deg); }
  .mobile-nav-group[open] > summary > .icon { transform: rotate(-90deg); }
  .mobile-nav-group > div { display: flex; flex-direction: column; gap: 0; padding-left: 16px; }
  .mobile-nav-group > div > a { padding: 12px 0; min-height: 48px; color: var(--secondary-text); }
  .menu-section-label { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: 1px; }
  .article-nav-link { min-height: 48px; font-size: 16px; font-weight: 400; }
  .mobile-preferences { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
  .page-container { width: 100%; padding: 24px 15px 0; }
  .breadcrumb { gap: 12px; }
  .breadcrumb-desktop { display: none; }
  .breadcrumb-mobile { display: inline; }
  .article-layout { display: block; padding: 12px 0 32px; }
  h1 { font-size: 24px; line-height: 34px; }
  .article-date { margin-top: 8px; }
  .article-body { margin-top: 8px; }
  .article-body p, .article-body h2 { line-height: 24px; }
  .article-sidebar { display: none; }
  .mobile-article-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .mobile-like { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--input); border-radius: 8px; min-height: 44px; }
  .mobile-like .icon { width: 20px; height: 20px; }
  .register-banner h2 { font-size: 16px; line-height: 24px; font-weight: 500; max-width: 340px; }
  .register-banner > .user-icon { width: 80px; height: 80px; }
  .register-banner { padding: 40px 24px; }
  .site-footer { padding: 40px 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .footer-content { display: block; }
  .footer-community h3 { font-size: 20px; }
  .social-links { grid-template-columns: repeat(6, 24px); justify-content: space-between; gap: 24px 16px; max-width: 400px; }
  .footer-community .preferences-heading { display: none; }
  .footer-preferences { flex-direction: row; flex-wrap: wrap; gap: 24px; margin: 32px 0 24px; }
  .footer-preferences > span { gap: 4px; }
  .footer-preferences .theme-toggle { gap: 6px; }
  .footer-preferences .theme-toggle > .icon { display: none; }
  .footer-preferences .theme-switch { margin-left: 2px; }
  .footer-preferences .icon { width: 20px; height: 20px; }
  .currency-icon { width: 18px; font-size: 20px; }
  .footer-columns { display: block; }
  .footer-group > summary { cursor: pointer; margin: 0; min-height: 56px; padding: 14px 0; font-size: 16px; font-weight: 500; }
  .footer-plus { position: relative; display: inline-block; width: 16px; height: 16px; }
  .footer-plus::before, .footer-plus::after { content: ""; display: block; position: absolute; top: 7px; left: 2px; width: 12px; height: 1.5px; background: var(--muted); }
  .footer-plus::after { transform: rotate(90deg); }
  .footer-group[open] .footer-plus::after { transform: rotate(0); }
  .footer-links { gap: 0; padding: 0 0 12px 12px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 14px; color: var(--secondary-text); }
  .footer-legal { padding-top: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .archive-credit { margin-top: 8px; }
  .cookie-banner { width: auto; left: 15px; right: 16px; max-width: none; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 30px 19px 28px; }
  .cookie-banner p { margin-bottom: 24px; }
  dialog { padding: 20px; }
}

@media (max-width: 359px) {
  .header-inner { padding: 0 8px; gap: 6px; }
  .header-actions { gap: 2px; }
  .brand, .brand img { width: 96px; }
  .header-login, .signup { padding-left: 4px; padding-right: 4px; font-size: 12px; }
  .menu-toggle { width: 32px; padding-left: 4px; padding-right: 4px; }
  h1 { font-size: 23px; line-height: 32px; }
  .footer-preferences { gap: 14px; }
  .social-links { grid-template-columns: repeat(5, 24px); }
  .cookie-banner { padding: 20px 16px; font-size: 13px; line-height: 20px; }
  .cookie-banner p { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
