@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter-300.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter-ext-300.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/crimson-pro-400.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/crimson-pro-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/crimson-pro-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/crimson-pro-ext-400i.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/crimson-pro-600.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/crimson-pro-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent-hover: #114874;
  --bt-bg: rgba(22, 25, 31, 0.75);
  --bt-bg-hover: rgba(22, 25, 31, 0.95);
  --left-w: 320px;
  --content-max: 68ch;
  --bg: #EAECF0;
  --surface: #F2F4F8;
  --text: #16191F;
  --text-sub: #5C6575;
  --accent: #2B5F8E;
  --accent-light: #4A82B2;
  --border: rgba(22, 25, 31, 0.10);
  --shadow: rgba(22, 25, 31, 0.06);
  --left-bg: #1A2840;
  --left-text: #E4EAF5;
  --left-sub: rgba(228, 234, 245, 0.68);
  --left-border: rgba(228, 234, 245, 0.13);
  --left-accent: #7AAFD6;
  --font-serif-jp: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'MS PMincho', serif;
  --font-serif-en: 'Crimson Pro', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 3px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --accent-hover: #82B3DD;
  --bt-bg: rgba(210, 214, 222, 0.12);
  --bt-bg-hover: rgba(210, 214, 222, 0.22);
  --bg: #141820;
  --surface: #1C2232;
  --text: #D8E0EE;
  --text-sub: #6E7E96;
  --accent: #5A95C8;
  --accent-light: #82B3DD;
  --border: rgba(216, 224, 238, 0.09);
  --shadow: rgba(0, 0, 0, 0.40);
  --left-bg: #0B1020;
  --left-text: #DDE5F5;
  --left-sub: rgba(221, 229, 245, 0.65);
  --left-border: rgba(221, 229, 245, 0.11);
}

html {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.75;
  transition: background var(--transition), color var(--transition);
  -webkit-user-select: none;
  user-select: none;
}

img {
  pointer-events: none;
  -webkit-user-drag: none;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

.layout {
  display: flex;
  min-height: 100vh;
}

.left-panel {
  width: var(--left-w);
  flex-shrink: 0;
  background: var(--left-bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.016) 3px,
    rgba(255, 255, 255, 0.016) 4px
  );
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 2.75rem 2rem 5rem;
  transition: background var(--transition);
  z-index: 100;
}

.left-top {
  flex: 1;
}

.site-name {
  display: block;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--left-sub);
  margin-bottom: 2.25rem;
  text-decoration: none;
  transition: color var(--transition);
}
.site-name:hover {
  color: var(--left-text);
}

.left-hero {
  margin-bottom: 2.5rem;
}
.left-hero-text {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--left-text);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.left-hero-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--left-sub);
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.left-nav {
  list-style: none;
  margin-bottom: 2rem;
}
.left-nav a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--left-sub);
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--left-border);
  transition: color var(--transition);
  text-decoration: none;
}
.left-nav a:hover,
.left-nav a.active {
  color: var(--left-text);
}
.left-nav a.active {
  color: var(--left-accent);
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--left-border);
}
.left-controls a {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--left-sub);
  text-decoration: none;
  transition: color var(--transition);
}
.left-controls a:hover {
  color: var(--left-text);
}
.left-controls a.active {
  color: var(--left-accent);
}

.theme-toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity var(--transition);
  padding: 0;
  flex-shrink: 0;
  pointer-events: auto;
}
.theme-toggle:hover {
  opacity: 1;
}
.theme-toggle:focus {
  outline: none;
}
.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--left-text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* デスクトップ：dpur / placecells と同じ値（間隔・文字間隔・ボタン枠幅） */
@media (min-width: 861px) and (min-height: 501px) {
  .left-controls { gap: 0.5rem; }
  .left-controls a { letter-spacing: 0.1em; }
  .theme-toggle { width: 1.5rem; }
}

.left-copyright {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--left-sub);
  padding-top: 0.75rem;
  opacity: 0.7;
}

.right-panel {
  flex: 1;
  min-width: 0;
  padding: 3.5rem 5vw 5rem calc(5vw + 1rem);
  max-width: 900px;
}

.lead-block {
  max-width: var(--content-max);
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.lead-en {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 2.0;
  color: var(--text);
  margin-bottom: 1.6em;
}
.lead-en strong {
  font-weight: 500;
}
.lead-jp {
  font-family: var(--font-serif-jp);
  font-size: 0.91rem;
  line-height: 2.1;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}
.lead-jp strong {
  font-weight: 500;
  color: var(--text-sub);
}

.accordion {
  border-bottom: 1px solid var(--border);
}
.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
  gap: 1rem;
  pointer-events: auto;
}
.accordion__label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color var(--transition);
}
.accordion__trigger:hover .accordion__label,
.accordion__trigger[aria-expanded="true"] .accordion__label {
  color: var(--text);
}
.accordion__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--text-sub);
  transition: transform 0.28s ease, stroke var(--transition);
}
.accordion__trigger[aria-expanded="true"] .accordion__chevron {
  transform: rotate(180deg);
  stroke: var(--text);
}
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion__body.is-open {
  max-height: 3000px;
}
.accordion__inner {
  padding-bottom: 2.5rem;
  max-width: var(--content-max);
}

.service-block {
  margin-bottom: 1.5rem;
}
.service-block p {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 0.7em;
}
.service-block p:last-child {
  margin-bottom: 0;
}
.service-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.service-lang {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  border: 1px solid var(--border);
  padding: 0.1rem 0.32rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.service-note {
  font-size: 0.78rem !important;
  color: var(--text-sub) !important;
}
.service-divider {
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}
.is-jp {
  font-family: var(--font-serif-jp);
  font-size: 0.87rem !important;
  line-height: 2.1 !important;
  letter-spacing: 0.02em;
  color: var(--text-sub) !important;
}

.editor-name-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.editor-name {
  font-family: var(--font-serif-en);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
}
.editor-role {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.menu-toggle { display: none; }
.menu-icon-close { display: none; }

.left-ots a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.left-ots a:hover {
  color: var(--left-text);
}

.ecosystem-label {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 1.1rem;
  display: block;
}

.ecosystem-item {
  margin-bottom: 1.35rem;
}


.ecosystem-desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.85;
  margin-top: 0.3rem;
}


.page-verified {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  opacity: 0.7;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
}
.page-copyright {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  opacity: 0.7;
  padding-top: 0.75rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bt-bg);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
  z-index: 300;
  pointer-events: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--bt-bg-hover);
}
@media (max-width: 860px) {
  :root { --left-w: 100%; }

  .layout {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 1.1rem 1.5rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .left-top { 
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .left-header-row1 {
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .left-hero { display: none; }

  .site-name {
    margin-bottom: 0;
    font-size: 0.7rem;
  }

  .left-controls {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .left-nav {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
    margin-bottom: 0;
  }
  .left-nav.is-open {
    display: block;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    color: var(--left-text);
    transition: color var(--transition), opacity var(--transition);
    pointer-events: auto;
    flex-shrink: 0;
  }
  .menu-toggle:hover { opacity: 0.75; }

  .menu-icon,
  .menu-icon-close {
    width: 20px;
    height: 20px;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .menu-icon-close { display: none; }
  .menu-toggle.is-active .menu-icon { display: none; }
  .menu-toggle.is-active .menu-icon-close { display: block; }

  .left-verified-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    width: 100%;
  }
  .left-copyright { display: block; padding-top: 0.75rem; }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .right-panel {
    padding: 2rem 1.5rem 4rem;
  }
}

@media (max-width: 860px) and (orientation: portrait) {
  .left-panel {
    position: sticky;
    top: 0;
    z-index: 200;
  }
  html {
    scroll-padding-top: calc(var(--header-h, 56px) + 3rem);
  }
}

.hero-image {
  max-width: var(--content-max);
  margin-bottom: 2rem;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --left-w: clamp(190px, 27vw, 240px);
    --content-max: 62ch;
  }
  html { font-size: 14px; }

  .layout {
    flex-direction: row;
  }

  .left-panel {
    width: var(--left-w);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    position: sticky;
    top: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem 1.1rem 1.25rem;
  }

  .left-top { display: block; flex: 1; }
  .site-name { margin-bottom: 1rem; font-size: 0.62rem; }
  .left-hero { display: block; margin-bottom: 1.1rem; }
  .left-hero-text { font-size: 1rem; line-height: 1.45; margin-bottom: 0.3rem; }
  .left-hero-sub { line-height: 1.6; }

  .left-nav,
  .left-nav.is-open {
    display: block;
    width: auto;
    margin-bottom: 1rem;
  }
  .left-nav a { padding: 0.3rem 0; }

  .left-controls {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--left-border);
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .menu-toggle { display: none; }
  .left-verified-row { display: block; width: auto; }
  .left-copyright { display: block; padding-top: 0.5rem; }

  .right-panel {
    padding: 1.5rem 3vw 3rem calc(3vw + 0.25rem);
    max-width: 760px;
  }

  .hero-image { margin-bottom: 1.25rem; }
  .lead-block { margin-bottom: 2rem; padding-bottom: 1.75rem; }
  .lead-en { line-height: 1.9; margin-bottom: 1.2em; }
  .lead-jp { line-height: 2; }
  .accordion__trigger { padding: 1rem 0; }
  .accordion__inner { padding-bottom: 1.75rem; }
  .page-verified { margin-top: 1.75rem; }

  .back-to-top {
    bottom: 0.9rem;
    right: 0.9rem;
    width: 2.25rem;
    height: 2.25rem;
  }
}
/* ── Mobile portrait, menu closed: the hero text replaces the sister links (expanded menu unchanged) ── */
@media (max-width: 860px) and (orientation: portrait) {
  .left-panel:not(:has(.left-nav.is-open)) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .left-panel:not(:has(.left-nav.is-open)) .left-top { display: contents; }
  .left-panel:not(:has(.left-nav.is-open)) .left-header-row1 { width: 100%; }
  .left-panel:not(:has(.left-nav.is-open)) .site-name { width: 100%; }
  .left-panel:not(:has(.left-nav.is-open)) .left-hero { display: block; flex: 1 1 0; min-width: 0; margin-bottom: 0; }
  .left-panel:not(:has(.left-nav.is-open)) .left-hero-text { font-size: 0.95rem; line-height: 1.45; margin-bottom: 0; }
  .left-panel:not(:has(.left-nav.is-open)) .left-hero-sub { display: none; }
  .left-panel:not(:has(.left-nav.is-open)) .left-controls { width: auto; flex: 0 0 auto; margin-left: auto; }
  .left-panel:not(:has(.left-nav.is-open)) .left-controls a { display: none; }
  .left-panel:not(:has(.left-nav.is-open)) .left-verified-row { width: 100%; }
}
@media (max-width: 360px) and (orientation: portrait) {
  .left-panel:not(:has(.left-nav.is-open)) .left-hero-text { font-size: 0.85rem; }
}
@media (max-width: 340px) and (orientation: portrait) {
  .left-panel:not(:has(.left-nav.is-open)) .left-hero-text { font-size: 0.75rem; }
}

/* ── Phone portrait, menu open: hide the OpenTimestamps and copyright lines so the open menu ends right after the controls row ── */
@media (max-width: 600px) and (orientation: portrait) {
  .left-panel:has(.left-nav.is-open) .left-verified-row { display: none; }
}

/* ── Narrow phones: keep the sidebar controls and the menu button on one row ── */
@media (max-width: 400px) {
  .left-controls { gap: 0.6rem; }
  .left-controls a { letter-spacing: 0.1em; }
}
@media (max-width: 360px) {
  .left-controls { gap: 0.4rem; }
  .left-controls a { letter-spacing: 0.04em; font-size: 0.55rem; }
}
