@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 {
  --bt-bg: rgba(15, 17, 22, 0.75);
  --bt-bg-hover: rgba(15, 17, 22, 0.95);
  --left-w: 320px;
  --content-max: 68ch;
  --bg: #EBECED;
  --surface: #F3F4F5;
  --text: #18191B;
  --text-sub: #62656A;
  --accent: #3F5F7D;
  --accent-light: #5E81A0;
  --border: rgba(24, 25, 27, 0.1);
  --shadow: rgba(24, 25, 27, 0.06);
  --left-bg: #24282F;
  --left-text: #E8EAED;
  --left-sub: rgba(232, 234, 237, 0.68);
  --left-border: rgba(232, 234, 237, 0.13);
  --left-accent: #8CADC6;
  --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"] {
  --bt-bg: rgba(221, 224, 228, 0.12);
  --bt-bg-hover: rgba(221, 224, 228, 0.22);
  --bg: #17181A;
  --surface: #212227;
  --text: #DDE0E4;
  --text-sub: #787D84;
  --accent: #6F94B5;
  --accent-light: #92B1CD;
  --border: rgba(221, 224, 228, 0.09);
  --shadow: rgba(0, 0, 0, 0.4);
  --left-bg: #0F1116;
  --left-text: #E2E5EA;
  --left-sub: rgba(226, 229, 234, 0.65);
  --left-border: rgba(226, 229, 234, 0.11);
}

html {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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-light);
}

.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);
}
/* 2-link rows: JP + EN on one line, shared bottom rule */
.left-nav li.nav-pair {
  display: flex;
  align-items: baseline;
  column-gap: 2em;
  border-bottom: 1px solid var(--left-border);
}
.left-nav li.nav-pair a {
  border-bottom: none;
}

.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;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.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; }

.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;
}
.left-copyright a {
  color: inherit;
}

.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;
}

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

.progress-bar {
  position: fixed;
  top: 0;
  left: var(--left-w);
  width: calc(100% - var(--left-w));
  height: 2px;
  background: var(--border);
  z-index: 200;
  display: none;
}
.progress-bar__fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}
.is-post .progress-bar {
  display: block;
}

.section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.section-meta {
  font-family: var(--font-sans);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  opacity: 0.6;
  margin-top: 0.4rem;
}

.feed-item {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0 2rem;
  align-items: start;
}
.feed-item:first-child {
  padding-top: 0;
}
.feed-item__meta {
  padding-top: 0.25rem;
}
.feed-item__date {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
  margin-right: 0.4em;
}
.feed-item__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.feed-item__pair {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  margin-top: 0.5rem;
  text-decoration: none;
  transition: color var(--transition);
}
.feed-item__pair:hover {
  color: var(--accent);
}
.feed-item__title {
  font-family: var(--font-serif-en);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.42;
  margin-bottom: 0.5rem;
}
.feed-item__title.is-jp {
  font-family: var(--font-serif-jp);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.42;
}
.feed-item__title a {
  color: var(--text);
  text-decoration: none;
}
.feed-item__title a:hover {
  color: var(--accent);
}
.feed-item__excerpt {
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: var(--text-sub);
  line-height: 1.8;
}
.feed-item__excerpt.is-jp {
  font-family: var(--font-serif-jp);
  font-size: 0.81rem;
  line-height: 1.95;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.post-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.post-header__date {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.post-header__tag {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.post-header__tag:hover {
  color: var(--accent-light);
}
.post-header__title {
  font-family: var(--font-serif-en);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.post-header__title.is-jp {
  font-family: var(--font-serif-jp);
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.35;
  font-weight: 500;
}
.post-header__author {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post-header__author a {
  color: var(--text-sub);
  text-decoration: none;
}
.post-header__author a:hover {
  color: var(--accent);
}
.post-header__readtime {
  color: var(--accent);
  opacity: 0.7;
}
.post-header__pair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.post-header__pair:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.post-header,
.post-body,
.post-nav {
  max-width: 68ch;
}

.post-body {
  font-family: var(--font-serif-en);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 2.05;
  color: var(--text);
}
.post-body.is-jp {
  font-family: var(--font-serif-jp);
  font-size: 0.97rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
}
.post-body p {
  margin-bottom: 1.7em;
}
.post-body p:last-child {
  margin-bottom: 0;
}
.post-body h2 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin: 3em 0 1.5em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid var(--border);
}
.post-body blockquote {
  font-family: var(--font-serif-en);
  font-size: 1.02rem;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2em 0;
  color: var(--text-sub);
}
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body img {
  width: 100%;
  height: auto;
  margin: 2em 0;
  border-radius: var(--radius);
}
.post-body hr {
  border: none;
  height: auto;
  text-align: center;
  margin: 2.75em 0;
  overflow: visible;
}
.post-body hr::after {
  content: '· · ·';
  font-size: 0.9rem;
  letter-spacing: 0.65em;
  padding-left: 0.65em;
  color: var(--text-sub);
  font-family: var(--font-serif-en);
  font-style: italic;
}

.post-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.post-nav__item:hover {
  border-color: var(--accent);
}
.post-nav__item--next {
  text-align: right;
}
.post-nav__dir {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.post-nav__title {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}
.post-nav__title.is-jp {
  font-family: var(--font-serif-jp);
}

.about-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text);
  max-width: var(--content-max);
}
.about-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.about-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.about-block--lead p,
.about-block p {
  font-family: var(--font-serif-jp);
  font-size: 0.97rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}
.about-block--lead p:lang(en),
.about-block p:lang(en) {
  font-family: var(--font-serif-en);
  font-size: 1.05rem;
  line-height: 2.05;
  letter-spacing: 0;
}
.about-block p + p {
  margin-top: 1.1em;
}
.about-section-label {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.about-block .about-section-label:first-child {
  margin-top: 0;
}
.about-author-line {
  font-size: 0.88rem;
  line-height: 2.0;
  color: var(--text);
}
.about-author-line small {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-style: normal;
}
.about-author-line a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}
.about-author-line a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.about-body strong {
  font-weight: 500;
  color: var(--text);
}

.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);
}
.left-verified {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--left-sub);
  padding-top: 0.75rem;
  opacity: 0.7;
}
.left-verified a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.left-verified a:hover { opacity: 0.6; }

.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;
}

.lang-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.25rem;
}
.lang-btn {
  background: none;
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover {
  color: var(--text);
  border-color: var(--text-sub);
}
.lang-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}

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

@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;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    background: var(--left-bg);
  }

  .left-top { display: contents; }
  .left-hero { display: none; }

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

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

  .left-controls {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .left-controls a {
    flex-shrink: 0;
  }

  .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;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    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-copyright {
    display: block;
    padding-top: 0;
  }

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

  .progress-bar { left: 0; width: 100%; }

  .feed-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .feed-item__meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0;
    flex-wrap: nowrap;
  }
  .feed-item__date {
    margin-bottom: 0;
    line-height: 1;
  }
  .feed-item__lang {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 0.11rem 0.32rem;
    margin-top: 0;
    flex-shrink: 0;
  }
  .feed-item__pair { display: none; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }

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

/* モバイル横向き（高さの低い横長画面）：全ページで左サイドバー＋右コンテンツの2カラムを、
   コンパクトな縮尺で維持する（bluishmedia と同方式）。 */
@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;
    overflow-y: auto;
  }

  .left-top { display: block; flex: 1; }
  .site-name { margin-bottom: 1rem; }
  .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-controls {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--left-border);
    gap: 0.6rem;
    flex-wrap: wrap;
    width: auto;
  }
  .menu-toggle { display: none; }
  .left-verified-row { display: block; width: auto; }
  .left-copyright { display: block; padding-top: 0.5rem; }
  .left-verified { padding-top: 0.5rem; }

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

  .back-to-top {
    bottom: 0.9rem;
    right: 0.9rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  /* 小さなUIラベルは下限9px（読める最小サイズ）を確保 */
  .site-name, .left-nav a, .left-controls a, .section-label, .section-meta,
  .feed-item__date, .feed-item__lang, .feed-item__pair, .lang-btn,
  .post-header__date, .post-header__tag, .post-header__author, .post-header__pair,
  .post-nav__dir, .about-section-label, .post-body h2, .post-body .toc-label,
  .post-body .chapter-nav a {
    font-size: max(0.6rem, 9px);
  }
  .left-copyright, .page-copyright, .page-verified, .left-verified {
    font-size: max(0.55rem, 8.5px);
  }
  .feed-item__excerpt, .feed-item__excerpt.is-jp {
    font-size: max(0.82rem, 12px);
  }
  /* About：bluishmedia のリード文（EN 0.95rem / JP 0.91rem）に揃える */
  .about-body { font-size: 0.9rem; }
  .about-block--lead p,
  .about-block p {
    font-size: 0.91rem;
    line-height: 2;
  }
  .about-block--lead p:lang(en),
  .about-block p:lang(en) {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  .about-author-line { font-size: 0.82rem; }
  .about-author-line small { font-size: 0.74rem; }
}

@media (max-width: 860px) and (orientation: portrait) {
  .left-panel {
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .section-header {
    position: sticky;
    top: var(--header-h, 56px);
    z-index: 190;
    background: var(--bg);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .progress-bar {
    top: 0;
    z-index: 300;
  }
  html {
    scroll-padding-top: calc(var(--header-h, 56px) + 3rem);
  }
}

.feed-item__excerpt a {
  text-decoration: none;
}
.feed-item__excerpt a:hover {
  opacity: 0.6;
}

/* ── Long-form short stories: chapters, table of contents, chapter nav ── */
.post-body .chapter {
  margin: 0;
  scroll-margin-top: 1.5em;
}
.post-body .chapter + .chapter {
  margin-top: 3.5em;
}
.post-body .chapter-title {
  font-family: var(--font-serif-en);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 1.5em;
  scroll-margin-top: 1.5em;
}
.post-body .chapter-title.is-jp {
  font-family: var(--font-serif-jp);
  font-size: 1.2rem;
  font-weight: 500;
}

.post-body .toc {
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 3em;
}
.post-body .toc-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 0.9em;
}
.post-body .toc ol {
  list-style: none;
  counter-reset: toc-counter;
}
.post-body .toc li {
  counter-increment: toc-counter;
  font-size: 0.85rem;
  line-height: 2.1;
}
.post-body .toc li::before {
  content: counter(toc-counter) '. ';
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.post-body .toc a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color var(--transition);
}
.post-body .toc a:hover {
  color: var(--accent);
}

.post-body .chapter-nav {
  margin-top: 3em;
  text-align: right;
}
.post-body .chapter-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.post-body .chapter-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Desktop main column = bluishmedia.com main section ──
   bluishmedia.com sets its text and images to 68ch of Inter 16px = 680px.
   Here the same measure is fixed in px so every font (serif, mincho, sans)
   lands on the identical column. Desktop only; the phone-landscape and
   mobile rules above/below are untouched. */
@media (min-width: 861px) and (min-height: 501px) {
  :root { --content-max: 680px; }
  /* 左サイドバー下部：3リンク＋テーマ切替ボタンを1行に収める（内側幅256px） */
  .left-controls { gap: 0.5rem; }
  .left-controls a { letter-spacing: 0.1em; }
  .theme-toggle { width: 1.5rem; }
  .post-header,
  .post-body,
  .post-nav,
  .about-body { max-width: 680px; }
  .right-panel > .section-header,
  .right-panel > .feed,
  .right-panel > .post-footer__coord,
  .right-panel > .post-footer__pair,
  .right-panel > .page-verified,
  .right-panel > .page-copyright,
  .index-top > *,
  .index-list > * { max-width: 680px; }
}

/* post-footer / feed tweaks (moved from per-page <style>) */
.feed-item.is-first-visible{padding-top:0!important}.feed-item__title.is-jp{line-height:1.42}.post-footer__coord{margin-top:2.4em;font-family:'Menlo','Monaco','Courier New',monospace;font-size:11px;color:#7a7670}.post-footer__coord a{color:#7a7670;text-decoration:none}.post-footer__coord a:hover{color:#18170f;text-decoration:underline}html[data-theme="dark"] .post-footer__coord a{color:#888}html[data-theme="dark"] .post-footer__coord a:hover{color:#e8e6df}.post-footer__pair{margin-top:1.2em}
