/* Coco’s Diary — 2026 redesign
   Palette tuned to soft lavender accent (#dac7f8) with matching cool lilac neutrals. */

:root {
  --violet: #dac7f8;
  --violet-mid: #cbb6f0;
  --violet-hover: #5a4590;
  --violet-deep: #6a54a6;
  --violet-rgb: 218, 199, 248;
  --lilac: #e8dffb;
  --lilac-rgb: 232, 223, 251;
  --lilac-soft: #f7f3fc;
  --ink: #2b2833;
  --ink-soft: #5c5768;
  --mist: #f5f1fb;
  --paper: #faf8fd;
  --stone: #d9d3e8;
  --line: rgba(106, 84, 166, 0.12);
  --footer-bg: #2a2733;
  --footer-text: #d9d4e4;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --space: clamp(1rem, 2.4vw, 1.85rem);
  --max: 72rem;
  --header-h: 3.5rem;
  /* Type scale (desktop base; mobile overrides below) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-body: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-heading: 1.2rem;
  --fs-xl: 1.45rem;
  --lh-tight: 1.4;
  --lh-body: 1.75;
  --lh-read: 1.85;
  --fs-read: 1.05rem;
}

html[data-body-size="lg"] {
  --fs-read: calc(1.05rem * 1.08);
}

body.home,
body.page-hub {
  --fs-read: 1.05rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

.br-pc {
  display: none;
}

@media (min-width: 721px) {
  br.br-pc {
    display: inline;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--violet-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--violet-hover);
}

#page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Header / Nav ——— */
#header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.95rem clamp(1.15rem, 3.5vw, 2.5rem);
  background: rgba(252, 251, 253, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body.home #header.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

body.home.is-scrolled #header.site-header {
  background: rgba(252, 251, 253, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(52vw, 22rem);
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.55vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: color 0.3s var(--ease), opacity 0.25s var(--ease);
}

.site-brand__text {
  display: inline;
  min-width: 0;
}

.site-brand__by {
  padding-left: 0.45em;
  font-size: 0.92em;
  font-weight: 400;
  letter-spacing: inherit;
  opacity: 0.65;
  line-height: 1;
}

body.home:not(.is-scrolled) .site-brand {
  color: rgba(255, 255, 255, 0.94);
}

.site-brand:hover {
  color: var(--violet-hover);
  opacity: 1;
}

body.home:not(.is-scrolled) .site-brand:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 50;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: 0.3s var(--ease);
}

body.home:not(.is-scrolled) .nav-toggle span,
body.home:not(.is-scrolled) .nav-toggle span::before,
body.home:not(.is-scrolled) .nav-toggle span::after {
  background: #fff;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle span::before { top: 0.7rem; }
.nav-toggle span::after { bottom: 0.7rem; }

.tool-textsize {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .site-nav__list {
    gap: 1rem;
  }
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0;
  transition: color 0.3s var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
  opacity: 0.85;
}

body.home:not(.is-scrolled) .site-nav__list a {
  color: rgba(255, 255, 255, 0.88);
}

.site-nav__list a:hover {
  color: var(--violet-hover);
}

.site-nav__list a:hover::after {
  transform: scaleX(1);
}

body.home:not(.is-scrolled) .site-nav__list a:hover {
  color: #fff;
}

body.home:not(.is-scrolled) .site-nav__list a:hover::after {
  background: #fff;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-width: 6.25rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  background: rgba(43, 39, 41, 0.04);
}

body.home:not(.is-scrolled) .lang-switch {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.lang-switch__opt {
  display: grid;
  place-items: center;
  min-height: 1.9rem;
  padding: 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

body.home:not(.is-scrolled) .lang-switch__opt {
  color: #fff;
}

.lang-switch__opt:hover {
  color: var(--violet-deep);
  background: rgba(var(--violet-rgb), 0.1);
}

body.home:not(.is-scrolled) .lang-switch__opt:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.lang-switch__opt.is-active {
  background: var(--violet-deep);
  color: #fff;
}

.lang-switch__opt.is-active:hover {
  background: var(--violet-deep);
  color: #fff;
}

body.home:not(.is-scrolled) .lang-switch__opt.is-active {
  background: #fff;
  color: var(--violet-deep);
}

body.home:not(.is-scrolled) .lang-switch__opt.is-active:hover {
  background: #fff;
  color: var(--violet-deep);
}

.site-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-mail {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

body.home:not(.is-scrolled) .nav-mail {
  color: #fff;
}

.nav-mail:hover {
  color: var(--violet-hover);
  background: rgba(var(--violet-rgb), 0.1);
}

body.home:not(.is-scrolled) .nav-mail:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.nav-mail svg {
  display: block;
}

.search-panel {
  position: relative;
}

.search-panel summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink-soft);
  border-radius: 50%;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

body.home:not(.is-scrolled) .search-panel summary {
  color: #fff;
}

.search-panel summary:hover {
  color: var(--violet-hover);
  background: rgba(var(--violet-rgb), 0.1);
}

body.home:not(.is-scrolled) .search-panel summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.search-panel summary::-webkit-details-marker { display: none; }

.search-panel__icon {
  display: block;
}

.search-panel form {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  background: rgba(252, 251, 253, 0.72);
  border: 1px solid rgba(43, 39, 41, 0.1);
  box-shadow: 0 12px 40px rgba(43, 39, 41, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 16rem;
  z-index: 20;
}

.search-panel input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--stone);
  background: white;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.search-panel button {
  border: 0;
  background: var(--violet-deep);
  color: #fff;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(72svh, 38rem);
  display: grid;
  align-items: end;
  justify-items: start;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 48%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 20, 0.82) 0%, rgba(14, 12, 20, 0.55) 38%, rgba(14, 12, 20, 0.18) 68%, rgba(14, 12, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(14, 12, 20, 0.45) 0%, transparent 35%, rgba(14, 12, 20, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 8rem clamp(1.15rem, 3.5vw, 2.5rem) 3.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.15rem;
}

.hero__brand {
  margin: 0;
  max-width: 100%;
  line-height: 0;
  animation: fade-up 0.9s var(--ease) both;
}

.hero__logo {
  display: block;
  width: 383px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.35));
}

.hero__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  animation: fade-up 1s 0.12s var(--ease) both;
}

.hero__lead-line {
  display: inline;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fade-up 1s 0.22s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--primary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--violet-deep);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(14, 12, 20, 0.12);
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--violet-deep);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn--ink {
  gap: 0.7rem;
  min-height: 2.5rem;
  padding: 0.35rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--violet-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.btn--ink::after {
  content: "＞";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid currentColor;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), color 0.3s var(--ease);
}

.btn--ink:hover {
  background: transparent;
  color: var(--violet-deep);
  border: none;
  transform: none;
  box-shadow: none;
}

.btn--ink:hover::after {
  transform: translateX(2px);
}

.btn--line {
  background: transparent;
  color: var(--violet-deep);
  border-color: var(--stone);
}

.btn--line:hover {
  border-color: var(--violet-hover);
  color: var(--violet-hover);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3rem, 6.5vw, 5rem) clamp(1.15rem, 3.5vw, 2.5rem);
}

.section--tight {
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__label {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

.section__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.section__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: none; }
  .hero__brand,
  .hero__lead,
  .hero__actions { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ——— Home: intro / guides / diary ——— */
.intro-band {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  background:
    linear-gradient(120deg, rgba(var(--violet-rgb), 0.12), rgba(var(--lilac-rgb), 0.08) 45%, rgba(43, 39, 41, 0.04)),
    linear-gradient(180deg, var(--lilac-soft) 0%, var(--lilac) 100%);
  border-block: 1px solid rgba(var(--violet-rgb), 0.12);
}

.intro-band::before,
.intro-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--violet) 20%, var(--lilac) 50%, var(--violet) 80%, transparent);
  opacity: 0.55;
}

.intro-band::before { top: 0; }
.intro-band::after { bottom: 0; }

.intro-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 3.5vw, 2.5rem);
}

.intro-block p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  color: var(--ink);
  max-width: 100%;
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.guide-list > li {
  margin: 0;
}

.guide-card {
  position: relative;
  display: block;
  min-height: clamp(8.5rem, 14vw, 10.5rem);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.guide-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--guide-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease);
}

.guide-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 28, 0.15) 0%, rgba(20, 16, 28, 0.35) 40%, rgba(20, 16, 28, 0.78) 100%);
}

.guide-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: inherit;
  padding: 1.15rem 1.15rem 1.1rem;
}

.guide-list__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.guide-list__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.4;
  color: #fff;
  transition: transform 0.35s var(--ease);
}

.guide-list__go {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #fff;
  margin-top: 0.35rem;
}

.guide-card:hover .guide-card__media {
  transform: scale(1.08);
}

.guide-card:hover .guide-list__title {
  transform: translateY(-2px);
}

.diary-latest {
  display: grid;
  gap: 0;
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.diary-latest__item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.15rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.diary-latest__item:hover .diary-latest__title {
  color: var(--violet-hover);
}

.diary-latest__date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.diary-latest__meta {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: #000000;
  letter-spacing: 0.04em;
}

.diary-latest__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  transition: color 0.25s var(--ease);
}

.diary-latest__new {
  margin-left: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--violet-deep);
  vertical-align: middle;
}

.section__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.25rem;
}

.home-body {
  /* background: var(--paper); */
  color: var(--ink);
}

.home-block {
  padding: 3.25rem 0 3.4rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 4rem;
}

.home-block:last-child {
  border-bottom: 0;
}

.home-block--about {
  background: var(--lilac-soft);
}

.home-block__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 3.5vw, 2.5rem);
  box-sizing: border-box;
}

.home-block__head {
  margin-bottom: 1.5rem;
}

.home-heading,
.about-heading,
.page-title {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.about-heading,
.page-title {
  margin: 0 0 1.25rem;
}

.about-copy p {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--ink);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy a {
  color: #000;
}

.archive-list:not(.is-expanded) .archive-row.is-collapsed {
  display: none;
}

.list-more {
  margin: 0;
  padding: 1rem 0 0.15rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.list-more[data-collapse-range="mobile-only"] {
  display: none;
}

.list-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: min(100%, 16rem);
  min-height: 2.65rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--violet);
  background: var(--violet);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  cursor: pointer;
}

.list-more__btn:hover,
.list-more__btn:focus-visible {
  background: var(--violet-mid);
  border-color: var(--violet-mid);
  outline: none;
}

.list-more__icon {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2rem;
  flex: 0 0 auto;
}

.list-more.is-expanded .list-more__icon,
.archive-list.is-expanded + .list-more .list-more__icon {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

/* ——— Hub (総合案内) ——— */
body.page-hub #header.site-header,
body.page-hub.is-scrolled #header.site-header {
  position: fixed;
  height: auto;
  min-height: 0;
  padding: 0.85rem clamp(1.15rem, 3.5vw, 2.5rem);
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

body.page-hub .site-header__inner {
  max-width: none;
  justify-content: flex-end;
  pointer-events: none;
}

body.page-hub .lang-switch {
  pointer-events: auto;
}

@media (max-width: 980px) {
  body.page-hub #header.site-header,
  body.page-hub.is-scrolled #header.site-header {
    min-height: 0;
    padding: 0.65rem 0.85rem;
  }
}

.hero--hub {
  min-height: 100svh;
  align-items: stretch;
  justify-items: stretch;
}

.hero--hub .hero__media img {
  object-position: 82% 48%;
}

.hero--hub .hero__shade {
  background:
    linear-gradient(90deg, rgba(14, 12, 20, 0.84) 0%, rgba(14, 12, 20, 0.48) 36%, rgba(14, 12, 20, 0.14) 68%, rgba(14, 12, 20, 0.05) 100%),
    linear-gradient(180deg, rgba(14, 12, 20, 0.28) 0%, transparent 30%, rgba(14, 12, 20, 0.18) 58%, rgba(14, 12, 20, 0.55) 100%);
}

.hero--hub .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(1.15rem, 3vh, 1.75rem);
  padding-bottom: clamp(0.95rem, 2.4vh, 1.5rem);
}

.hub-stage__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero--hub .hero__heading {
  margin: 0.5em 0 0.85rem;
  max-width: min(36rem, 100%);
  line-height: 0;
}

@media (max-width: 480px) {
  .hero--hub .hero__heading {
    margin: 3em 0 0.85rem;
  }
}

.hub-logo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
}

.hub-logo .cls-2 {
  fill: #fff;
}

.hub-logo .cls-1 {
  fill: #04c5fe;
}

.hub-now {
  max-width: 40em;
  color: #fff;
}

.hub-now > p,
.hub-now__more p {
  margin: 0;
  font-size: clamp(0.86rem, 1.05vw + 0.62rem, 0.98rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hub-now details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.7rem;
}

.hub-now summary,
.hub-profile-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.05rem;
  padding: 0.28rem 0.9rem 0.28rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.hub-now summary {
  order: 0;
  list-style: none;
  cursor: pointer;
}

.hub-now summary::-webkit-details-marker,
.hub-now summary::marker {
  display: none;
  content: "";
}

.hub-now summary::after,
.hub-profile-link a::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.hub-profile-link a::after {
  margin-top: 0;
  transform: rotate(-45deg);
}

.hub-now__close {
  display: none;
}

.hub-now details[open] .hub-now__open {
  display: none;
}

.hub-now details[open] .hub-now__close {
  display: inline;
}

.hub-now details[open] summary::after {
  margin-top: 0.12rem;
  transform: rotate(-135deg);
}

.hub-now summary:hover,
.hub-profile-link a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
}

.hub-now details[open] summary {
  order: 2;
  gap: 0;
  min-width: 2.05rem;
  margin-top: 0.85rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  justify-content: center;
}

.hub-now__more {
  order: 1;
  margin-top: 0.85rem;
}

.hub-now__more p + p {
  margin-top: 0.85rem;
}

.hub-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub-fork {
  width: 100%;
  margin-top: 1.15rem;
}

.hub-sns-line {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hub-sns-line a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hub-sns-line a:hover {
  color: #fff;
  opacity: 0.85;
}

.hub-foot {
  display: none;
}

.hero__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  animation: fade-up 0.9s var(--ease) both;
}

.hero__heading {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
  animation: fade-up 0.95s 0.06s var(--ease) both;
}

.hub-story__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hub-story__body p + p {
  margin-top: 1.15rem;
}

.hub-doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  animation: fade-up 1s 0.22s var(--ease) both;
}

.hub-doors:has(> li:only-child) {
  /* grid-template-columns: 1fr; */
  /* max-width: min(40em, 100%); */
}

.hub-doors > li {
  margin: 0;
  display: flex;
}

.hub-door {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 3px solid #fff;
  box-sizing: border-box;
  background: #1a1218;
  box-shadow: 0 10px 32px rgba(14, 12, 20, 0.22);
  line-height: 0;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hub-door img {
  display: block;
  width: 100%;
  height: auto;
}

.hub-profile-link {
  margin: 0.85rem 0 0;
}

/* Profile (/ja/profile/, /en/profile/) */
.profile-page {
  padding-bottom: 1.25rem;
}

.profile-page img {
  margin: 0;
}

.profile-page__portrait {
  width: min(32%, 9rem);
  margin: 0 auto 1.1rem;
}

.profile-page__portrait img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.profile-page__name {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.profile-page.entrypost .profile-page__flow,
.profile-page.entrypost .flows {
  display: block;
  width: 78%;
  max-width: 38rem;
  margin: 1.5rem auto;
  text-align: center;
}

.profile-page__flow img,
.profile-page .flows img,
.profile-page .bdr > img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.profile-page .bdr {
  width: 78%;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

.profile-page .bdr ul.asterisk {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.profile-page .bdr ul.asterisk > li {
  margin: 0;
  padding-left: 1.35em;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.profile-page .bdr ul.asterisk > li::before {
  left: 0;
  color: var(--lilac);
}

.profile-page .plink {
  display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.profile-page .accordion {
  margin: 1.25rem 0 1.75rem;
}

.profile-page .accordion details {
  margin-top: 0.65rem;
  border: 1px solid var(--stone);
  background: #fff;
}

.profile-page .accordion summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 0.7em 2.75em 0.7em 0.9em;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.profile-page .accordion summary::-webkit-details-marker,
.profile-page .accordion summary::marker {
  display: none;
  content: "";
}

.profile-page .accordion summary::before,
.profile-page .accordion summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 0.85rem;
  height: 2px;
  background: var(--lilac);
}

.profile-page .accordion summary::after {
  transform: rotate(90deg);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.profile-page .accordion details[open] summary::after {
  opacity: 0;
  transform: rotate(180deg);
}

.profile-page .accordion__body {
  padding: 0.75em 0.9em 1em;
  border-top: 1px solid var(--line);
}

.profile-page .accordion__body p:last-child {
  margin-bottom: 0;
}

.profile-history-list {
  position: relative;
}

.profile-history-list table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.4;
  background: #fff;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.profile-history-list tr {
  border-bottom: 1px dashed var(--stone);
}

.profile-history-list tr:last-child {
  border-bottom: 0;
}

.profile-history-list td {
  padding: 0.38rem 0.55rem;
  vertical-align: top;
  border: 0;
}

.profile-history-list td:first-child {
  width: 9.5em;
  padding-right: 0.75rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.lang-en .profile-history-list td:first-child {
  width: 12em;
}

.profile-history-list td:first-child a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--violet-rgb), 0.7);
}

.profile-history-list td:first-child a:hover,
.profile-history-list td:first-child a:focus-visible {
  color: var(--violet-hover);
  border-bottom-color: var(--lilac);
  outline: none;
}

.profile-page.entrypost .profile-history-list td ul {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.profile-page.entrypost .profile-history-list td ul > li {
  margin: 0 !important;
  padding: 0 0 0 0.85em;
  line-height: 1.4;
}

.profile-page.entrypost .profile-history-list td ul > li::before {
  left: 0;
  top: 0.48em;
  width: 0.28em;
  height: 0.28em;
  border-radius: 0;
  background: var(--ink);
}

.profile-history-list tr.is-collapsed {
  display: none;
}

.profile-history-list.is-expanded tr.is-collapsed,
.profile-history-list.is-expanded tr.is-collapsed-mobile {
  display: table-row;
}

.profile-history-list:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%);
}

.profile-history-list + .list-more {
  margin-bottom: 1rem;
  padding-top: 0.55rem;
}

@media (max-width: 720px) {
  .profile-page__portrait {
    width: min(38%, 8.5rem);
  }

  .profile-page.entrypost .profile-page__flow,
  .profile-page.entrypost .flows,
  .profile-page .bdr {
    width: 100%;
    max-width: none;
  }

  .profile-history-list table,
  .profile-history-list tbody,
  .profile-history-list tr,
  .profile-history-list td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .profile-history-list table {
    font-size: var(--fs-xs);
  }

  .profile-history-list tr {
    padding: 0.42rem 0;
  }

  .profile-history-list td {
    padding: 0;
  }

  .profile-history-list td:first-child,
  .lang-en .profile-history-list td:first-child {
    width: auto;
    padding: 0 0 0.15rem;
    white-space: normal;
    font-size: var(--fs-xs);
  }

  .profile-history-list.is-expanded tr.is-collapsed,
  .profile-history-list.is-expanded tr.is-collapsed-mobile {
    display: block;
  }

  .profile-history-list:not(.is-expanded) tr.is-collapsed-mobile {
    display: none;
  }
}

a.hub-door:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(14, 12, 20, 0.28);
}

/* ——— Search results ——— */
.search-results__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.search-results__list a {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.search-results__list a:hover {
  color: var(--violet-hover);
}

/* ——— Inner page shell ——— */
.page-shell {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 5.5vw, 4rem) clamp(1.15rem, 3.5vw, 2.5rem) clamp(2.25rem, 4.5vw, 3.25rem);
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  top: -8rem;
  right: -12rem;
  z-index: 0;
  width: min(155vw, 100rem);
  height: min(130vw, 80rem);
  background: url("../images/hero-orchids.jpg") no-repeat 85% 20% / cover;
  opacity: 0.24;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 78% 72% at 92% 8%,
    #000 0%,
    rgba(0, 0, 0, 0.75) 22%,
    rgba(0, 0, 0, 0.35) 42%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 78% 72% at 92% 8%,
    #000 0%,
    rgba(0, 0, 0, 0.75) 22%,
    rgba(0, 0, 0, 0.35) 42%,
    transparent 72%
  );
}

.page-shell__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.entry-header {
  margin: 0 0 2rem;
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

.entry-header .page-title {
  margin: 0;
}

.entry-header .page-meta {
  margin: 0.55rem 0 0;
}

.error-page__code {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--violet-deep);
}

.error-page__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0.15rem 0 1.5rem;
}

.page-meta__item {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.page-meta__item--diag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(var(--violet-rgb), 0.18);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.1), rgba(var(--violet-rgb), 0.04));
  color: #000000;
  font-family: var(--font-body);
  font-weight: 500;
}

.page-meta__item--date {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ——— Diary archive ——— */
.archive-hero {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.archive-hero .page-title {
  margin-bottom: 0.85rem;
}

.archive-hero__lead {
  margin: 0 0 1.25rem;
}

.chapter-jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.chapter-jump__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.06), rgba(var(--violet-rgb), 0.015));
  border: 1px solid rgba(var(--violet-rgb), 0.12);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.chapter-jump__num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--violet-deep);
  background: rgba(252, 251, 253, 0.95);
  border: 1px solid rgba(var(--violet-rgb), 0.18);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.chapter-jump__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.chapter-jump__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #000000;
}

.chapter-jump__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-jump__link:hover {
  color: var(--violet-deep);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.1), rgba(var(--violet-rgb), 0.03));
  border-color: rgba(var(--violet-rgb), 0.28);
}

.chapter-jump__link:hover .chapter-jump__num {
  color: #fff;
  background: var(--violet-hover);
  border-color: var(--violet-hover);
}

.chapter-block + .chapter-block {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
}

.chapter-block {
  scroll-margin-top: 6rem;
}

.chapter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.chapter-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 500;
}

.chapter-count {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.archive-list {
  display: grid;
  gap: 0;
}

.home-block--records .archive-list {
  border-top: 1px solid var(--line);
}

.archive-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.archive-row:hover .archive-row__title {
  color: var(--violet-hover);
}

.archive-row__date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.archive-row__meta {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: #000000;
  letter-spacing: 0.03em;
}

.archive-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  transition: color 0.25s var(--ease);
}

.archive-row__excerpt {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ——— Entry body ——— */
.entrypost {
  font-size: 1.05rem;
  line-height: 1.9;
}

.entrypost p,
.entrypost li,
.entrypost dd,
.entrypost td,
.entrypost th,
.page-shell p,
.profile-page p,
.contact-intro,
.thanks-body,
.intro-block p,
.section__text {
  font-size: var(--fs-read);
}

.entrypost > *:first-child {
  margin-top: 0;
}

/* Password-protected entry */
.entrypost .post_password-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.entrypost .post_password {
  margin: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.06), rgba(var(--violet-rgb), 0.015));
  border: 1px solid rgba(var(--violet-rgb), 0.14);
}

.entrypost .post_password__label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--violet-deep);
}

.entrypost .post_password__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
}

.entrypost .post_password .passipt {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--stone);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.25s var(--ease);
}

.entrypost .post_password .passipt:focus {
  outline: none;
  border-color: var(--violet-deep);
}

.entrypost .post_password__submit,
.entrypost .post_password input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  padding: 0 1.25rem;
  border: 1px solid var(--violet-deep);
  background: var(--violet-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.entrypost .post_password__submit:hover,
.entrypost .post_password input[type="submit"]:hover {
  background: var(--violet-deep);
  border-color: var(--violet-deep);
  color: #fff;
}

@media (max-width: 780px) {
  .entrypost .post_password__row {
    flex-direction: column;
    align-items: stretch;
  }

  .entrypost .post_password .passipt {
    width: 100%;
  }

  .entrypost .post_password__submit,
  .entrypost .post_password input[type="submit"] {
    width: 100%;
    min-height: 2.75rem;
  }
}

.entrypost h4,
.entrypost h5,
.entrypost h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.entrypost h4 {
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(var(--violet-rgb), 0.18);
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
}

.entrypost h5 {
  margin: 1.85rem 0 0.7rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--violet);
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  color: var(--violet-deep);
}

.entrypost h6 {
  display: inline-block;
  margin: 1.55rem 0 0.55rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--violet-deep);
  border: 1px solid rgba(var(--violet-rgb), 0.28);
  background: rgba(var(--violet-rgb), 0.04);
}

.entrypost h4 + p,
.entrypost h5 + p,
.entrypost h6 + p,
.entrypost h4 + ul,
.entrypost h5 + ul,
.entrypost h6 + ul {
  margin-top: 0.35rem;
}

.entrypost p,
.entrypost ul,
.entrypost ol {
  margin: 0 0 1.15em;
}

.entrypost p.ind {
  padding-left: 0.1rem;
}

.entrypost .mds {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin: 0 0.55em 0.12em 0;
  padding: 0.14em 0.6em 0.14em 0.45em;
  vertical-align: 0.1em;
  background: var(--violet-deep);
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.45;
  white-space: nowrap;
}

.entrypost .mds .icon,
.entrypost .mds i {
  color: #fff;
  font-style: normal;
  font-weight: normal;
  background: none;
}

.entrypost .mds .icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.28em 0 0.28em 0.42em;
  border-color: transparent transparent transparent #fff;
}

.entrypost .mds .fa-arrow-right::before {
  color: #fff;
}

.entrypost .mds.blue {
  background: #42b2e0;
}

.entrypost .delspan {
  display: inline-block;
  margin: 0 0.5em 0.12em 0;
  padding: 0.1em 0.55em;
  border: 1px solid rgba(var(--violet-rgb), 0.4);
  background: rgba(var(--violet-rgb), 0.08);
  color: var(--violet-deep);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: 0.08em;
}

.entrypost ul:not(.point):not(.good):not(.star):not(.asterisk):not(.low),
.entrypost ol:not(.count-ex02):not(.asterisk):not(.steps) {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.entrypost ul:not(.point):not(.good):not(.star):not(.asterisk):not(.low) > li,
.entrypost ol:not(.count-ex02):not(.asterisk):not(.steps) > li {
  position: relative;
  margin: 0 0 0.55rem;
  padding: 0 0 0 1.15rem;
  color: var(--ink);
  line-height: 1.75;
}

.entrypost ul:not(.point):not(.good):not(.star):not(.asterisk):not(.low) > li:last-child,
.entrypost ol:not(.count-ex02):not(.asterisk):not(.steps) > li:last-child {
  margin-bottom: 0;
}

.entrypost ul:not(.point):not(.good):not(.star):not(.asterisk):not(.low) > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.75;
}

.entrypost ol:not(.count-ex02):not(.asterisk):not(.steps) {
  counter-reset: entry-ol;
}

.entrypost ol:not(.count-ex02):not(.asterisk):not(.steps) > li {
  padding-left: 1.65rem;
  counter-increment: entry-ol;
}

.entrypost ol:not(.count-ex02):not(.asterisk):not(.steps) > li::before {
  content: counter(entry-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--violet-deep);
  font-family: var(--font-display);
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: inherit;
}

.entrypost ol.steps {
  list-style: none;
  counter-reset: entry-step;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.entrypost ol.steps > li {
  position: relative;
  margin: 0 0 0.7rem;
  padding: 0 0 0 4.15rem;
  color: var(--ink);
  line-height: 1.75;
  counter-increment: entry-step;
}

.entrypost ol.steps > li:last-child {
  margin-bottom: 0;
}

.entrypost ol.steps > li::before {
  content: "Step." counter(entry-step);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--violet-deep);
  font-family: var(--font-display);
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: inherit;
  white-space: nowrap;
}

.entrypost i,
.entrypost em {
  font-style: normal;
  font-weight: 500;
  color: var(--violet-deep);
  padding: 0;
  background: none;
  background-image: none;
  box-shadow: none;
}

/* ——— Entry lists: point / good / star / spacing ——— */
.entrypost ul.point,
.entrypost ul.good,
.entrypost ul.star {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
}

.entrypost ul.point li,
.entrypost ul.good li,
.entrypost ul.star li {
  position: relative;
  display: block;
  margin: 0 0 0.75rem;
  padding: 0 0 0 1.85rem;
  line-height: 1.8;
  color: var(--ink);
}

.entrypost ul.point li:last-child,
.entrypost ul.good li:last-child,
.entrypost ul.star li:last-child {
  margin-bottom: 0;
}

.entrypost ul.point li::before,
.entrypost ul.good li::before,
.entrypost ul.star li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0;
  border-radius: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.entrypost ul.point li::before {
  content: "!";
  background: var(--violet-deep);
}

.entrypost ul.good li::before {
  content: "✓";
  background: var(--violet-deep);
  font-size: 0.68rem;
}

.entrypost ul.star li::before {
  content: "★";
  background: var(--violet-deep);
  font-size: 0.62rem;
  font-weight: 400;
}

.entrypost ul.low li {
  margin-bottom: 0.5rem;
}

.entrypost ul.low.point li,
.entrypost ul.low.good li,
.entrypost ul.low.star li {
  padding-left: 1.7rem;
  margin-bottom: 0.5rem;
}

.entrypost ul.low.point li:last-child,
.entrypost ul.low.good li:last-child,
.entrypost ul.low.star li:last-child {
  margin-bottom: 0;
}

.entrypost ul.low.point li::before,
.entrypost ul.low.good li::before,
.entrypost ul.low.star li::before {
  top: 0.45rem;
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.65rem;
}

.entrypost ol.count-ex02 {
  list-style: none;
  counter-reset: count-ex;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
}

.entrypost ol.count-ex02 li {
  position: relative;
  margin: 0 0 0.55rem;
  padding: 0 0 0 2rem;
  line-height: 1.8;
  color: var(--ink);
  counter-increment: count-ex;
}

.entrypost ol.count-ex02 li:last-child {
  margin-bottom: 0;
}

.entrypost ol.count-ex02 li::before {
  content: counter(count-ex);
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--violet-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
  letter-spacing: 0;
}

.entrypost .eng {
  letter-spacing: 0.01em;
}

.entrypost blockquote.eng {
  margin: 1.5rem 0 1.75rem;
  padding: 1.15rem 1.25rem 1.05rem;
  border: 0;
  background: rgba(var(--violet-rgb), 0.06);
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.75;
  letter-spacing: 0.015em;
}

.entrypost blockquote.eng p {
  margin: 0 0 0.7em;
}

.entrypost blockquote.eng p:last-child {
  margin-bottom: 0;
}

.entrypost blockquote.eng cite {
  display: block;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(var(--violet-rgb), 0.12);
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.entrypost blockquote.eng cite a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.entrypost blockquote.eng cite a:hover {
  color: var(--violet-deep);
}

.entrypost a.plink {
  display: block;
  height: 0;
  overflow: hidden;
  border: 0;
  text-decoration: none;
  pointer-events: none;
  color: inherit;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.entrypost ol.asterisk,
.entrypost ul.asterisk {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
}

.entrypost ol.asterisk {
  counter-reset: asterisk;
}

.entrypost ol.asterisk.start2 {
  counter-reset: asterisk 1;
}

.entrypost ol.asterisk.start3 {
  counter-reset: asterisk 2;
}

.entrypost ol.asterisk.start4 {
  counter-reset: asterisk 3;
}

.entrypost ol.asterisk li,
.entrypost ul.asterisk li {
  position: relative;
  margin: 0 0 0.5rem;
  padding: 0 0 0 2.35em;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.entrypost ol.asterisk li:last-child,
.entrypost ul.asterisk li:last-child {
  margin-bottom: 0;
}

.entrypost ol.asterisk li {
  counter-increment: asterisk;
}

.entrypost ol.asterisk li::before,
.entrypost ul.asterisk li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--violet-deep);
  font-family: var(--font-body);
  font-size: 0.9em;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: 0;
}

.entrypost ol.asterisk li::before {
  content: "※" counter(asterisk);
}

.entrypost ul.asterisk li::before {
  content: "※";
}

.entrypost ul.asterisk.small li {
  font-size: 0.85rem;
}

.entrypost .asta {
  color: var(--violet-deep);
  font-weight: 500;
  letter-spacing: 0;
}

/* ——— Source / reference lines ——— */
.entrypost p.ref,
.entrypost .ref--inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem 0.7rem;
  align-items: start;
  margin: 0;
  padding: 0.75rem 0 0;
  background: none;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.entrypost :not(p.ref) + p.ref,
.entrypost .ref--inline {
  margin-top: 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.entrypost p.ref + p.ref {
  margin-top: 0.45rem;
  padding-top: 0;
  border-top: 0;
}

.entrypost p.ref:not(:has(+ p.ref)) {
  margin-bottom: 1.35rem;
}

.entrypost .ref--inline {
  display: grid;
  margin-bottom: 0.35rem;
}

.entrypost .ref__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 0.22em;
  padding: 0.32em 0.5em 0.28em;
  border: 1px solid rgba(var(--violet-rgb), 0.28);
  color: var(--violet-deep);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.entrypost p.ref a,
.entrypost .ref--inline a,
.entrypost .ref--caption a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--violet-rgb), 0.3);
  word-break: break-word;
}

.entrypost p.ref a:hover,
.entrypost .ref--inline a:hover,
.entrypost .ref--caption a:hover {
  color: var(--violet-hover);
  text-decoration-color: var(--violet-hover);
}

.entrypost .ref--caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem 0.6rem;
  align-items: start;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.entrypost .ref--caption .ref__label {
  margin-top: 0.1em;
}

.entrypost img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.35rem auto;
}

/* Legacy image size helpers (from theme style.css) */
.entrypost .fimg,
.entrypost .simg,
.entrypost .msimg,
.entrypost .ssimg,
.entrypost .img,
.entrypost p.bnon {
  margin: 1.5rem auto 1.75rem;
}

.entrypost .fimg {
  width: 100%;
}

.entrypost .simg {
  width: 80%;
}

.entrypost .msimg,
.entrypost .ssimg {
  width: 60%;
}

/* Borderless variants: a bit narrower */
.entrypost .simg.bnon {
  width: 70%;
}

.entrypost .ssimg.bnon {
  width: 42%;
}

.entrypost .fimg img,
.entrypost .simg img,
.entrypost .msimg img,
.entrypost .ssimg img,
.entrypost .img img,
.entrypost p.bnon img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--stone);
  padding: 4px;
  background: #fff;
  box-sizing: border-box;
}

.entrypost .bnon img,
.entrypost .fimg.bnon img,
.entrypost .simg.bnon img,
.entrypost .msimg.bnon img,
.entrypost .ssimg.bnon img,
.entrypost .img.bnon img {
  border: 0;
  padding: 0;
  background: transparent;
}

.entrypost .fimg span,
.entrypost .simg span,
.entrypost .msimg span,
.entrypost .ssimg span {
  display: block;
  width: 100%;
  margin-top: 0.5em;
  font-size: 0.8em;
  line-height: 1.8;
  text-align: left;
  color: var(--ink-soft);
}

.entrypost .bdr2 .image.fit,
.entrypost .bdr2 .image {
  display: block;
  max-width: 9.5rem;
  margin: 1.5rem auto;
}

.entrypost .bdr2 img {
  display: block;
  width: 100%;
  max-width: 9.5rem;
  height: auto;
  margin: 0;
}

.entrypost hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}

/* ——— WP galleries ——— */
.entrypost .gallery {
  display: grid;
  gap: 0.5rem 0.5rem;
  width: 70%;
  margin: 1.5rem auto 1.75rem;
  clear: both;
}

.entrypost .gallery.gallery-columns-2 {
  width: 60%;
}

.entrypost .gallery.gallery-columns-2.gallery-size-full,
.entrypost .gallery.gallery-columns-1 {
  width: 100%;
}

.entrypost .gallery::after {
  content: none;
}

.entrypost .gallery br {
  display: none;
}

.entrypost .gallery-item {
  float: none;
  width: auto;
  margin: 0;
  min-width: 0;
}

.entrypost .gallery-icon {
  margin: 0;
}

.entrypost .gallery-icon img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--stone);
  padding: 2px;
  box-sizing: border-box;
}

.entrypost .gallery-caption,
.entrypost .wp-caption-text {
  margin: 0.45rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-align: left;
}

.entrypost .gallery-columns-1 {
  grid-template-columns: minmax(0, 22rem);
}

.entrypost .gallery-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entrypost .gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entrypost .gallery-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entrypost .gallery-columns-5,
.entrypost .gallery-columns-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entrypost .gallery-columns-12 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 780px) {
  .entrypost .fimg,
  .entrypost .simg,
  .entrypost .msimg,
  .entrypost .ssimg,
  .entrypost .simg.bnon,
  .entrypost .img,
  .entrypost p.bnon {
    width: 100%;
  }

  .entrypost .ssimg.bnon {
    width: 68%;
  }

  .entrypost .gallery,
  .entrypost .gallery.gallery-columns-2 {
    width: 100%;
  }

  .entrypost .gallery-columns-12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .entrypost .ssimg.bnon {
    width: 78%;
  }
}

.entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.entry-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.05), rgba(var(--violet-rgb), 0.01));
  border: 1px solid rgba(var(--violet-rgb), 0.12);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.entry-nav__link--next {
  justify-content: flex-end;
  text-align: right;
}

.entry-nav__spacer {
  display: block;
  min-height: 1px;
}

.entry-nav__icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  color: var(--violet-deep);
  background: rgba(252, 251, 253, 0.95);
  border: 1px solid rgba(var(--violet-rgb), 0.18);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.entry-nav__icon svg {
  display: block;
}

.entry-nav__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.entry-nav__label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #000000;
}

.entry-nav__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-nav__link:hover {
  color: var(--violet-deep);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.09), rgba(var(--violet-rgb), 0.025));
  border-color: rgba(var(--violet-rgb), 0.26);
}

.entry-nav__link--prev:hover .entry-nav__icon {
  color: #fff;
  background: var(--violet-hover);
  border-color: var(--violet-hover);
  transform: translateX(-0.12rem);
}

.entry-nav__link--next:hover .entry-nav__icon {
  color: #fff;
  background: var(--violet-hover);
  border-color: var(--violet-hover);
  transform: translateX(0.12rem);
}

.page-shell__inner--read .entry-date,
.entry-date {
  margin: 2rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  background: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.back-row {
  margin-top: 1.5rem;
  text-align: left;
}

.page-contact .back-row {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.page-thanks .back-row {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.thanks-body {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.thanks-body p {
  margin: 0 0 1.1rem;
}

.thanks-body p:last-child {
  margin-bottom: 0;
}

.thanks-serial {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  background: rgba(var(--violet-rgb), 0.35);
  border-left: 2px solid var(--violet);
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.thanks-serial strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--violet-deep);
  letter-spacing: 0.06em;
}

.back-row__link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.06), rgba(var(--violet-rgb), 0.015));
  border: 1px solid rgba(var(--violet-rgb), 0.12);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.back-row__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  color: var(--violet-deep);
  background: rgba(252, 251, 253, 0.9);
  border: 1px solid rgba(var(--violet-rgb), 0.18);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.back-row__icon svg {
  display: block;
}

.back-row__text {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.back-row__link:hover {
  color: var(--violet-deep);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.1), rgba(var(--violet-rgb), 0.03));
  border-color: rgba(var(--violet-rgb), 0.28);
}

.back-row__link:hover .back-row__icon {
  color: #fff;
  background: var(--violet-hover);
  border-color: var(--violet-hover);
  transform: translateX(-0.15rem);
}

/* ——— Contact form ——— */
.contact-intro {
  margin: 0.35rem 0 1.35rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.contact-intro__note {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.contact-intro a,
.contact-form a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-form .form-group {
  margin: 0 0 0.75rem;
}

.contact-form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form .form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--stone);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}

.contact-form input.form-control,
.contact-form textarea.form-control {
  appearance: none;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--violet-deep);
}

.contact-form label.form-control {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  cursor: pointer;
}

/* Prevent stuck Mailform Pro overlays from blocking the page / right-click */
#mfp_loading_screen,
#mfp_overlay_background {
  pointer-events: none;
}

#mfp_loading_screen[style*="display: block"],
#mfp_overlay_background[style*="display: block"] {
  pointer-events: auto;
}

/* Confirm overlay (outside .contact-form) */
#mfp_overlay_inner {
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(14, 12, 20, 0.28);
  padding: 1.5rem 1.35rem 1.35rem;
  color: var(--ink);
  font-family: var(--font-body);
  background: #fff;
}

#mfp_overlay_inner > *:first-child {
  display: block;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--violet-deep);
  text-align: center;
}

table#mfp_confirm_table,
#mfp_overlay_inner table#mfp_confirm_table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0.5rem 0 1.35rem;
  font-size: 0.95rem;
  background: transparent;
}

table#mfp_confirm_table tr,
#mfp_overlay_inner table#mfp_confirm_table tr {
  border: 0;
}

table#mfp_confirm_table tr.mfp_achroma,
table#mfp_confirm_table tr.mfp_colored,
#mfp_overlay_inner table#mfp_confirm_table tr.mfp_achroma,
#mfp_overlay_inner table#mfp_confirm_table tr.mfp_colored {
  background: transparent;
}

table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td,
#mfp_overlay_inner table#mfp_confirm_table th,
#mfp_overlay_inner table#mfp_confirm_table td {
  display: table-cell;
  width: auto;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  letter-spacing: 0.02em;
  line-height: 1.65;
  word-break: break-word;
  font-size: 0.95rem;
}

table#mfp_confirm_table tr:last-child th,
table#mfp_confirm_table tr:last-child td,
#mfp_overlay_inner table#mfp_confirm_table tr:last-child th,
#mfp_overlay_inner table#mfp_confirm_table tr:last-child td {
  border-bottom: 0;
}

table#mfp_confirm_table tr th,
#mfp_overlay_inner table#mfp_confirm_table th {
  width: 8.5rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-deep);
  background: transparent;
}

table#mfp_confirm_table tr td,
#mfp_overlay_inner table#mfp_confirm_table td {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 560px) {
  table#mfp_confirm_table tr th,
  table#mfp_confirm_table tr td,
  #mfp_overlay_inner table#mfp_confirm_table th,
  #mfp_overlay_inner table#mfp_confirm_table td {
    display: block;
    width: 100%;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  table#mfp_confirm_table tr th,
  #mfp_overlay_inner table#mfp_confirm_table th {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }

  table#mfp_confirm_table tr td,
  #mfp_overlay_inner table#mfp_confirm_table td {
    padding-top: 0.15rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
  }
}

#mfp_overlay .mfp_buttons,
.contact-form .mfp_buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding: 0;
  text-align: left;
  clear: both;
}

#mfp_overlay .mfp_buttons {
  justify-content: flex-start;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.contact-form .mfp_buttons .btn,
.contact-form .mfp_buttons .btn-success,
#mfp_overlay .mfp_buttons .mfp_element_button,
#mfp_button_send,
#mfp_button_cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  min-height: 2.85rem;
  margin: 0;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--violet-deep);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.contact-form .mfp_buttons .btn:hover,
.contact-form .mfp_buttons .btn-success:hover,
#mfp_overlay .mfp_buttons .mfp_element_button:hover,
#mfp_button_send:hover {
  background: var(--violet-deep);
  color: #fff !important;
  opacity: 1;
  box-shadow: none;
}

#mfp_button_cancel,
.contact-form .mfp_buttons button.btn.btn-success.reset,
.contact-form .mfp_buttons .btn.btn-success.reset {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 2.85rem;
  margin: 0 0 0 auto;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--ink-soft) !important;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
}

.contact-form .mfp_buttons button.btn.btn-success.reset {
  margin-left: auto;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

#mfp_button_cancel:hover,
.contact-form .mfp_buttons button.btn.btn-success.reset:hover,
.contact-form .mfp_buttons .btn.btn-success.reset:hover {
  color: var(--violet-hover) !important;
  border-color: var(--violet-hover);
  background: transparent;
  opacity: 1;
  box-shadow: none;
}

.contact-form .mfp_err {
  margin: 0.35rem 0 0;
  color: var(--violet-deep);
  font-size: 0.88rem;
}

.contact-form hr {
  display: none;
}

/* ——— Site map strip (above footer) ——— */
.site-map {
  padding: 2rem clamp(1.15rem, 3.5vw, 2.5rem) 1.5rem;
}

body.home .site-map {
  background: var(--lilac-soft);
}

.site-map__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-map a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-map a:hover {
  color: var(--violet-hover);
}

@media (max-width: 780px) {
  .site-map {
    padding: 1.5rem clamp(1.1rem, 4vw, 1.5rem) 1.25rem;
  }

  .site-map__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    text-align: center;
  }

  .site-map a {
    display: inline;
    align-items: unset;
    justify-content: unset;
    gap: 0;
    min-height: 0;
    padding: 0.15rem 0;
    border-bottom: 0;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    line-height: 1.7;
  }

  .site-map a::after {
    content: none;
  }

  .site-map a:not(:last-child)::after {
    content: "/";
    display: inline;
    margin: 0 0.55em;
    color: var(--stone);
    border: 0;
    width: auto;
    height: auto;
    transform: none;
    opacity: 1;
    flex-shrink: unset;
  }

  .site-map a:active,
  .site-map a:hover {
    color: var(--violet-hover);
  }

  .site-map a:active::after,
  .site-map a:hover::after {
    opacity: 1;
    transform: none;
    color: var(--stone);
  }
}

.pagetop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.pagetop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pagetopicon {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pagetop::before {
  content: "↑";
  font-size: 1rem;
}

/* ——— Footer (content preserved; visual refreshed) ——— */
#footer {
  margin-top: auto;
  background:
    linear-gradient(180deg, #252830 0%, var(--footer-bg) 100%);
  color: #fff;
  padding: clamp(2.25rem, 4.5vw, 3.25rem) clamp(1.15rem, 3.5vw, 2.5rem) 0;
}

#footer a {
  color: #fff;
}

#footer a:hover {
  color: var(--lilac);
}

#footer .footer-bn {
  max-width: var(--max);
  margin: 0 auto;
}

#footer .footer-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 1.75rem clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

#footer .loglogo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.7;
}

#footer .loglogo__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: #fff;
}

#footer .loglogo a {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

#footer .loglogo .logo {
  display: block;
  width: min(18rem, 90%);
  margin: 1rem 0 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 1;
}

#footer .banner-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

#footer .linkbn h6 {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
}

#footer .bannerimg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#footer .warn {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #fff;
}

#footer .ftxint {
  font-size: 0.9rem;
  line-height: 1.9;
}

#footer .copyright {
  margin-top: 2rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer .copyright .container,
#footer .copyright .inner {
  max-width: var(--max);
  margin: 0 auto;
}

#footer .copyright p {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #fff;
}

#footer .copyright h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

#footer .fllink {
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 1;
}

/* ——— Animations ——— */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

/* ——— Responsive ——— */
@media (max-width: 720px) {
  .home-block {
    padding: 2.4rem 0 2.6rem;
  }

  .archive-list:not(.is-expanded) .archive-row.is-collapsed-mobile {
    display: none;
  }

  .list-more[data-collapse-range="mobile-only"] {
    display: block;
  }

  .hero__content {
    padding: 5.5rem 1.15rem 2.25rem;
  }
}

@media (max-width: 960px) {
  .guide-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hub-doors {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hub-door {
    border-width: 2px;
  }

  .guide-card {
    min-height: 8.5rem;
  }

  #footer .footer-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.75rem;
  }

  #footer .footer-column {
    width: 100%;
  }

  #footer .loglogo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #footer .loglogo .logo {
    margin-left: auto;
    margin-right: auto;
  }

  #footer .banner-group {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
  }

  #footer .linkbn {
    text-align: center;
  }

  #footer .bannerimg {
    margin: 0 auto;
  }

  #footer .ftxint {
    max-width: 22rem;
    margin: 0 auto;
    padding: 1.15rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    line-height: 2;
  }

  #footer .copyright {
    text-align: center;
  }

  #footer .copyright .inner {
    text-align: center;
  }

  #footer .copyright p {
    text-align: left;
  }

  #footer .copyright p br {
    display: none;
  }
}

@media (max-width: 980px) {
  #header.site-header {
    height: auto;
    min-height: var(--header-h);
    padding: 0;
  }

  .site-header__inner {
    min-height: var(--header-h);
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
  }

  .site-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 6.4rem);
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .site-brand__by {
    padding-left: 0.3em;
  }

  .nav-toggle {
    display: block;
    z-index: 55;
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
  }

  .tool-textsize {
    --ts-h: 1.72rem;
    --ts-pad: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 3.35rem;
    height: var(--ts-h);
    margin: 0 0.2rem 0 0;
    padding: 0;
    border: 1px solid rgba(var(--violet-rgb), 0.2);
    border-radius: 999px;
    background: var(--lilac-soft);
    color: var(--violet-deep);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    z-index: 55;
    overflow: hidden;
    transition: background 0.28s var(--ease), border-color 0.28s var(--ease);
  }

  .tool-textsize:hover,
  .tool-textsize:focus-visible {
    outline: none;
    border-color: rgba(var(--violet-rgb), 0.4);
  }

  .tool-textsize:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--violet-rgb), 0.18);
  }

  .tool-textsize[aria-pressed="true"] {
    background: rgba(var(--violet-rgb), 0.16);
    border-color: rgba(var(--violet-rgb), 0.38);
  }

  .tool-textsize__track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .tool-textsize__knob {
    position: absolute;
    top: var(--ts-pad);
    bottom: var(--ts-pad);
    left: var(--ts-pad);
    right: calc(50% + 1px);
    width: auto;
    height: auto;
    border-radius: 999px;
    background: var(--violet);
    box-shadow: 0 1px 3px rgba(106, 84, 166, 0.22);
    transition: left 0.28s var(--ease), right 0.28s var(--ease);
    pointer-events: none;
  }

  .tool-textsize[aria-pressed="true"] .tool-textsize__knob {
    left: calc(50% + 1px);
    right: var(--ts-pad);
  }

  .tool-textsize__sm,
  .tool-textsize__lg {
    position: relative;
    z-index: 1;
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    transition: color 0.28s var(--ease);
  }

  .tool-textsize__sm {
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
  }

  .tool-textsize__lg {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--violet-deep);
  }

  .tool-textsize[aria-pressed="true"] .tool-textsize__sm {
    color: var(--violet-deep);
  }

  .tool-textsize[aria-pressed="true"] .tool-textsize__lg {
    color: #fff;
  }

  @media (prefers-reduced-motion: reduce) {
    .tool-textsize,
    .tool-textsize__knob,
    .tool-textsize__sm,
    .tool-textsize__lg {
      transition: none;
    }
  }

  .nav-toggle span::before { top: 0.55rem; }
  .nav-toggle span::after { bottom: 0.55rem; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    max-width: 100vw;
    max-height: 100dvh;
    padding: calc(var(--header-h) + 1.15rem) 1.25rem 1.75rem;
    background: rgba(24, 20, 32, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.45s var(--ease);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 45;
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav__list a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
  }

  .site-nav__list a:hover {
    color: #fff;
  }

  .site-nav__list a:hover::after {
    background: #fff;
  }

  .lang-switch {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
  }

  .lang-switch__opt {
    color: #fff;
  }

  .lang-switch__opt:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }

  .lang-switch__opt.is-active,
  .lang-switch__opt.is-active:hover {
    background: #fff;
    color: var(--violet-deep);
  }

  .search-panel summary,
  .nav-mail {
    color: #fff;
  }

  .search-panel summary:hover,
  .nav-mail:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }

  .site-nav__tools {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin-top: 0.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-nav__tools .nav-mail,
  .site-nav__tools .search-panel summary {
    flex-shrink: 0;
  }

  .lang-switch {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    margin-left: auto;
  }

  .search-panel {
    width: auto;
    max-width: none;
  }

  .search-panel[open] {
    flex: 1 1 100%;
    width: 100%;
  }

  .search-panel form {
    position: static;
    inset: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    box-sizing: border-box;
    background: rgba(252, 251, 253, 0.96);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .search-panel input {
    min-width: 0;
    flex: 1 1 auto;
  }

  .search-panel button {
    flex: 0 0 auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Keep header chrome clear so the white close control stays visible on the dark panel */
  body.nav-open #header.site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  body.nav-open .site-brand {
    color: rgba(255, 255, 255, 0.94);
  }

  .nav-toggle[aria-expanded="true"] span {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] span::before,
  .nav-toggle[aria-expanded="true"] span::after {
    background: #fff;
  }

  .nav-toggle[aria-expanded="true"] span::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span::after {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

@media (max-width: 780px) {
  /* ——— Mobile type scale (aligned with wp01adrenal) ——— */
  :root {
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-body: 0.95rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-heading: 1.1rem;
    --fs-xl: 1.3125rem;
    --lh-tight: 1.4;
    --lh-body: 1.75;
    --lh-read: 1.8;
    --fs-read: 0.95rem;
  }

  html[data-body-size="lg"] {
    --fs-read: calc(0.95rem * 1.08);
  }

  body.home,
  body.page-hub {
    --fs-read: 0.95rem;
  }

  body {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .section__label {
    font-size: var(--fs-xs);
    margin-bottom: 0.65rem;
  }

  .section__title {
    font-size: var(--fs-lg);
    line-height: var(--lh-tight);
    margin-bottom: 0.85rem;
  }

  .section__text,
  .intro-block p,
  .contact-intro,
  .thanks-body {
    font-size: var(--fs-body);
    line-height: var(--lh-read);
  }

  .contact-intro__note {
    font-size: var(--fs-sm);
  }

  .page-title {
    font-size: var(--fs-heading);
    line-height: 1.55;
  }

  .page-meta__item {
    font-size: var(--fs-xs);
  }

  .entrypost {
    font-size: var(--fs-body);
    line-height: var(--lh-read);
  }

  .entrypost h4,
  .entrypost h5 {
    font-size: 1.05rem;
  }

  .entrypost h5 {
    padding-left: 0;
    border-left: none;
  }

  .entrypost h6 {
    display: block;
    padding: 0;
    border: none;
    background: none;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
  }

  .diary-latest__date,
  .diary-latest__meta {
    font-size: var(--fs-xs);
  }

  .diary-latest__title {
    font-size: var(--fs-md);
    line-height: var(--lh-tight);
  }

  .diary-latest__new {
    font-size: 0.68rem;
  }

  .guide-list__num {
    font-size: var(--fs-xs);
  }

  .guide-list__title {
    font-size: var(--fs-md);
    line-height: var(--lh-tight);
  }

  .guide-list__go {
    font-size: var(--fs-sm);
  }

  .btn {
    font-size: var(--fs-sm);
  }

  .btn--ink {
    font-size: var(--fs-md);
  }

  .site-map a {
    font-size: var(--fs-sm);
  }

  .entry-nav__label {
    font-size: var(--fs-xs);
  }

  .entry-nav__title {
    font-size: var(--fs-sm);
    white-space: normal;
  }

  .back-row__text {
    font-size: var(--fs-sm);
  }

  .post_password-lead {
    font-size: var(--fs-body);
  }

  .entrypost .post_password__label {
    font-size: var(--fs-xs);
  }

  .entrypost .post_password .passipt,
  .entrypost .post_password__submit,
  .entrypost .post_password input[type="submit"] {
    font-size: var(--fs-sm);
  }

  #footer .loglogo,
  #footer .ftxint {
    font-size: var(--fs-sm);
  }

  #footer .loglogo__title,
  #footer .loglogo a,
  #footer .linkbn h6,
  #footer .warn {
    font-size: var(--fs-xs);
  }

  #footer .copyright p,
  #footer .fllink {
    font-size: var(--fs-xs);
  }

  #footer .copyright h4 {
    font-size: var(--fs-sm);
  }

  .hero {
    min-height: min(62svh, 32rem);
  }

  .hero--hub,
  .hero--hub .hero__content {
    min-height: 100svh;
  }

  .hero--hub .hero__shade {
    background: linear-gradient(rgba(14, 12, 20, 0.12), rgba(14, 12, 20, 0.89) 36.97%, rgba(14, 12, 18, 0.89));
  }

  .hero--hub .hero__content {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    gap: 0.85rem;
  }

  .hero__heading {
    max-width: 100%;
    font-size: var(--fs-xl);
  }

  .hub-sns-line {
    font-size: 0.72rem;
  }

  .hero__brand {
    margin-bottom: 0.85rem;
  }

  body.home:not(.page-hub) .hero__brand {
    margin-bottom: 0;
  }

  .hero__logo {
    width: 100%;
    height: auto;
    max-width: 90%;
  }

  .hero__lead {
    margin-bottom: 1.25rem;
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
  }

  body.home:not(.page-hub) .hero__lead {
    margin-bottom: 0;
  }

  .hero__actions .btn {
    min-height: 2.75rem;
    padding: 0.65rem 1.25rem;
    font-size: var(--fs-sm);
  }

  .diary-latest__item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .archive-hero {
    margin-bottom: 1.35rem;
  }

  .archive-hero .page-title {
    font-size: var(--fs-heading);
    margin-bottom: 0.55rem;
  }

  .archive-hero__lead {
    margin-bottom: 0.95rem;
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
  }

  .chapter-jump {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .chapter-jump__link {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.65rem 1.75rem 0.65rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    -webkit-tap-highlight-color: rgba(var(--violet-rgb), 0.1);
  }

  .chapter-jump__link:hover {
    background: transparent;
    border-color: var(--line);
    color: var(--violet-deep);
  }

  .chapter-jump__link:active {
    background: transparent;
    border-color: var(--line);
  }

  .chapter-jump__link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.15rem;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.6px solid var(--violet);
    border-bottom: 1.6px solid var(--violet);
    transform: translateY(-60%) rotate(-45deg);
    opacity: 0.7;
    pointer-events: none;
  }

  .chapter-jump__num {
    width: 2rem;
    height: 2rem;
    font-size: var(--fs-xs);
    background: transparent;
    border-color: rgba(var(--violet-rgb), 0.28);
  }

  .chapter-jump__link:hover .chapter-jump__num {
    background: transparent;
    color: var(--violet-deep);
    border-color: rgba(var(--violet-rgb), 0.4);
  }

  .chapter-jump__label {
    font-size: var(--fs-xs);
  }

  .chapter-jump__title {
    font-size: var(--fs-sm);
    line-height: var(--lh-tight);
    white-space: normal;
  }

  .chapter-block + .chapter-block {
    margin-top: 2.25rem;
  }

  .chapter-block {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
  }

  .chapter-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
    padding-bottom: 0.7rem;
  }

  .chapter-title {
    font-size: var(--fs-lg);
    line-height: var(--lh-tight);
  }

  .chapter-count {
    flex-shrink: 0;
    font-size: var(--fs-xs);
  }

  .archive-list {
    display: grid;
    gap: 0.5rem;
    border-top: 0;
  }

  .archive-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0;
    padding: 0.9rem 2.1rem 0.9rem 0.9rem;
    border: 1px solid rgba(var(--violet-rgb), 0.14);
    border-bottom-color: rgba(var(--violet-rgb), 0.14);
    background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.05), rgba(var(--violet-rgb), 0.015));
    -webkit-tap-highlight-color: rgba(var(--violet-rgb), 0.12);
  }

  .archive-row::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.95rem;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.6px solid var(--violet);
    border-bottom: 1.6px solid var(--violet);
    transform: translateY(-60%) rotate(-45deg);
    opacity: 0.7;
    pointer-events: none;
  }

  .archive-row:active {
    background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.1), rgba(var(--violet-rgb), 0.04));
    border-color: rgba(var(--violet-rgb), 0.28);
  }

  .archive-row__body {
    display: contents;
  }

  .archive-row__title {
    order: 1;
    flex: 1 0 100%;
    font-size: var(--fs-md);
    line-height: var(--lh-tight);
    color: var(--ink);
  }

  .archive-row__date,
  .archive-row__meta {
    order: 2;
    padding-top: 0;
    margin-bottom: 0;
    font-size: var(--fs-xs);
    line-height: 1.4;
  }

  .archive-row__date {
    flex: 0 0 auto;
  }

  .archive-row__meta {
    flex: 1 1 auto;
    min-width: 0;
    color: #000000;
  }

  .archive-row__meta::before {
    content: "·";
    margin: 0 0.4em;
    color: var(--stone);
  }

  .archive-row__excerpt {
    display: none;
  }

  .entry-nav {
    grid-template-columns: 1fr;
  }

  .entry-nav__link--next {
    justify-content: flex-start;
    text-align: left;
  }

  .entry-nav__link--next .entry-nav__icon {
    order: -1;
  }

  .hero__content {
    padding: 1.25rem 1.1rem 2.5rem;
  }

  /* One flowing line on mobile; PC keeps the <br> */
  .hero__lead-br {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-header__inner {
    gap: 0.25rem;
    padding: 0.5rem 0.7rem;
  }

  .site-brand {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .hero__content {
    padding: 1rem 0.95rem 2.15rem;
  }

  .hero__logo {
    width: 100%;
    height: auto;
    max-width: 90%;
  }

  .hero__actions .btn {
    min-height: 2.65rem;
    padding: 0.6rem 1.15rem;
  }
}

@media (max-width: 560px) {
  #footer .banner-group {
    grid-template-columns: 1fr;
    max-width: 16rem;
  }

  .guide-card__body {
    padding: 1.2rem;
  }

  .page-shell {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
