/* 工房Yas — 参照: 大栄鉄工所系ダークUI（黒×白×金×赤） */
:root {
  --bg: #050505;
  --bg-panel: #0c0c0e;
  --bg-panel-2: #111114;
  --text: #f4f2ed;
  --text-muted: #9b9790;
  --gold: #c9a03a;
  --gold-bright: #e3bc4e;
  --gold-dim: rgba(201, 160, 58, 0.45);
  --red: #c41e2a;
  --red-deep: #8b1420;
  --line: rgba(244, 242, 237, 0.1);
  --line-gold: rgba(201, 160, 58, 0.35);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  --latin: "Cormorant Garamond", "Times New Roman", "Noto Serif JP", serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold-bright);
}

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

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line-gold);
}

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

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-toggle {
  flex-shrink: 0;
  font-family: var(--latin);
  font-size: 0.68rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: none;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(218, 195, 120, 0.45);
  background: transparent;
  color: var(--gold-dim);
  cursor: pointer;
  line-height: 1.2;
  border-radius: 2px;
}

.lang-toggle:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.site-logo:hover {
  color: inherit;
}

.site-logo__en {
  font-family: var(--latin);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 1.28rem;
  color: var(--text);
}

.site-logo__ja {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gold-dim);
  letter-spacing: 0.18em;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

.site-nav a:hover .site-nav__en {
  color: var(--red);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-nav a[aria-current="page"] .site-nav__en {
  color: var(--gold-dim);
}

.site-nav__ja {
  line-height: 1.35;
}

.site-nav__en {
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-dim);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  box-shadow:
    0 -6px 0 var(--text),
    0 6px 0 var(--text);
}

/* hero */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: grid;
  align-items: end;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(3, 3, 4, 0.75) 0%, rgba(3, 3, 4, 0.45) 42%, rgba(8, 4, 6, 0.88) 100%),
    radial-gradient(ellipse 80% 50% at 70% 40%, rgba(139, 20, 32, 0.15), transparent 55%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.92) contrast(1.05);
}

/* ユーザー提供ヒーロー：左側の余暗部にタイトルを乗せやすく */
.hero--user-photo .hero__media img {
  object-position: 58% center;
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem var(--space) 5.25rem;
}

.hero--splash {
  align-items: center;
}

.hero__inner--splash {
  padding-block: 3rem;
}

.hero__heading {
  margin: 0;
  max-width: 20em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 5.8vw, 3.45rem);
  line-height: 1.45;
  letter-spacing: 0.16em;
  color: var(--text);
  text-shadow:
    0 0 1.5em rgba(5, 5, 5, 0.85),
    0 0 0.08em rgba(5, 5, 5, 0.6);
}

.hero__scroll {
  position: absolute;
  right: var(--space);
  bottom: 1.75rem;
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
  color: var(--gold-dim);
}

/* sections */
.section {
  padding-block: clamp(3.25rem, 8vw, 5.75rem);
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section__contain {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space);
}

.section__contain--split {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.section__news-head {
  margin-bottom: 1rem;
}

.section__news-head .section__title {
  margin-bottom: 0.15rem;
}

.section__kicker {
  margin: 0;
  font-family: var(--latin);
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 1.125rem;
  margin: 0 0 1.25rem;
  color: var(--gold);
}

.section__title--inline {
  margin-bottom: 0;
}

.section__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.section__head--numbered {
  border-top: 2px solid var(--red-deep);
  box-shadow: 0 -1px 0 var(--line-gold) inset;
  padding-top: 1rem;
}

.section__index {
  display: block;
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.section__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 38em;
}

.section__body {
  min-width: 0;
}

.prose p {
  margin: 0 0 1.25em;
  color: rgba(244, 242, 237, 0.88);
}

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

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* news */
.section--news {
  background: var(--bg-panel);
  padding-block: 1.5rem;
}

.news-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-strip li {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.news-strip li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-strip time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 500;
}

@media (max-width: 520px) {
  .news-strip li {
    grid-template-columns: 1fr;
  }
}

.section--gallery {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: end;
}

.gallery-fig {
  margin: 0;
}

.gallery-fig img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.95);
}

.gallery-fig figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  border-left: 2px solid var(--gold);
  padding-left: 0.65rem;
}

.gallery-fig--accent {
  margin-top: clamp(2rem, 6vw, 3.75rem);
}

.section--profile {
  background: var(--bg-panel-2);
}

.profile-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.timeline li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline span:first-child {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.06em;
}

@media (max-width: 580px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.section--workshop {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 100%);
}

.workshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.workshop-visual {
  position: relative;
}

.workshop-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
  opacity: 0.6;
}

.workshop-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 1rem;
  display: block;
}

.price-list > div {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.price-list > div:first-child {
  padding-top: 0;
}

.price-list dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.price-list dd {
  margin: 0;
  color: rgba(244, 242, 237, 0.88);
}

.price-list ul {
  margin: 0;
  padding-left: 1.15rem;
}

.price-list li {
  margin: 0.25rem 0;
}

.fine {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* calendar */
.calendar-dummy {
  padding-top: 0.5rem;
}

.calendar-dummy__title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: 0.1em;
}

.calendar-dummy__note {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cal-month {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 500;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.cal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  display: inline-block;
}

.dot--ok {
  background: var(--gold);
}

.dot--few {
  background: #e85d4c;
}

.dot--no {
  background: #4a282c;
}

.cal-grid {
  font-size: 0.72rem;
  border-top: 2px solid var(--red-deep);
}

.cal-grid__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0.5rem 0;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--line);
}

.cal-grid__body {
  display: flex;
  flex-direction: column;
}

.cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 3.1rem;
  border-bottom: 1px solid var(--line);
}

.cal-cell {
  position: relative;
  padding: 0.35rem 0.25rem 1.15rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.cal-cell:last-child {
  border-right: none;
}

.cal-cell--muted {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.02) 4px,
    rgba(255, 255, 255, 0.02) 5px
  );
}

.cal-day {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.cal-day--muted {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.cal-slots {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.cal-slots--ok {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 160, 58, 0.45);
}

.cal-slots--few {
  background: #e85d4c;
}

.cal-slots--no {
  background: #4a282c;
}

.company-block {
  font-style: normal;
}

.company-address {
  margin: 0 0 1.25rem;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text);
}

.company-address strong {
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: 0.14em;
  font-weight: 500;
}

.company-access {
  margin: 0 0 1.5rem;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.company-contact {
  margin: 0;
}

.company-contact > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: rgba(244, 242, 237, 0.9);
}

.company-contact dt {
  color: var(--text-muted);
  font-weight: 500;
}

.company-contact dd {
  margin: 0;
}

.section--company {
  background: var(--bg-panel);
  padding-bottom: 3rem;
}

.site-footer {
  background: #020202;
  color: rgba(244, 242, 237, 0.7);
  border-top: 1px solid var(--line-gold);
}

.site-footer__spread {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.75rem) var(--space);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  font-size: 0.86rem;
  line-height: 1.75;
}

.site-footer__brand {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-footer__lead {
  margin: 0;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.site-footer__col-title {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
}

.site-footer__linklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__linklist a {
  display: inline-block;
  padding: 0.15rem 0;
  color: rgba(244, 242, 237, 0.75);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer__linklist a:hover {
  color: var(--gold-bright);
  border-bottom-color: rgba(201, 160, 58, 0.45);
}

.site-footer__address,
.site-footer__tel,
.site-footer__mail {
  margin: 0 0 0.4rem;
}

.site-footer__tel a,
.site-footer__mail a {
  color: inherit;
  text-decoration: none;
}

.site-footer__tel a:hover,
.site-footer__mail a:hover {
  color: var(--gold-bright);
}

.site-footer__inner--bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--space) 1.35rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__copy {
  margin: 0;
  opacity: 0.72;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

/* トップ — ギャラリー自動スクロール（右から左へ） */
.home-marquee-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(1.65rem, 4vw, 2.35rem);
}

.home-marquee-section__title {
  margin: 0 auto 1.15rem;
  padding-inline: var(--space);
  max-width: var(--max);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.12rem);
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.home-marquee__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
}

.home-marquee__track {
  display: flex;
  width: max-content;
  animation: home-marquee-rtl 50s linear infinite;
  will-change: transform;
}

@keyframes home-marquee-rtl {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee__track {
    animation: none;
  }
}

.home-marquee__group {
  display: flex;
  align-items: stretch;
  gap: clamp(0.65rem, 2vw, 1.1rem);
  padding-inline: clamp(0.5rem, 2vw, 1rem);
  flex-shrink: 0;
}

.home-marquee__item {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(9.5rem, 28vw, 17.5rem);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(244, 242, 237, 0.06);
  background: var(--bg-panel-2);
}

.home-marquee__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  vertical-align: middle;
}

.home-marquee__more {
  margin: 1.15rem auto 0;
  padding-inline: var(--space);
  max-width: var(--max);
  text-align: right;
  font-size: 0.85rem;
}

.home-marquee__more a {
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .site-footer__spread {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer__spread {
    grid-template-columns: 1fr;
  }
}

.prose--narrow {
  max-width: 40em;
  margin-inline: auto;
}

/* 下層ページ */
.page-main {
  padding-top: 0;
}

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) var(--space) 1.75rem;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--latin);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-dim);
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: 0.2em;
  color: var(--text);
}

@media (max-width: 860px) {
  .site-header__bar {
    padding: 0.45rem var(--space);
    align-items: center;
  }

  /* ロゴを横並びにしてバーの縦長さを抑える */
  .site-header__brand {
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
  }

  .site-logo {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }

  .site-logo__en {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
  }

  .site-logo__ja {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
    white-space: nowrap;
  }

  .lang-toggle {
    font-size: 0.6rem;
    padding: 0.28rem 0.45rem;
    line-height: 1;
  }

  .nav-toggle {
    display: block;
    padding: 0.35rem;
    align-self: center;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(8, 8, 10, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  body.nav-open .site-nav {
    max-height: 36rem;
  }

  body.nav-open .site-header {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  }

  .site-nav a {
    padding: 0.75rem var(--space);
    border-bottom: 1px solid var(--line);
  }

  .site-nav li:last-child a {
    border-bottom: none;
  }

  .section__contain--split {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-fig--accent {
    margin-top: 0;
  }

  .workshop-layout {
    grid-template-columns: 1fr;
  }

  .hero__scroll {
    display: none;
  }
}

/* 極細幅：はみ出しを抑えつつヘッダーは1行構成を維持 */
@media (max-width: 400px) {
  .site-header__bar {
    padding: 0.38rem calc(var(--space) * 0.85);
    gap: 0.5rem;
  }

  .site-header__brand {
    gap: 0.3rem;
  }

  .site-logo {
    gap: 0.28rem;
  }

  .site-logo__en {
    font-size: 0.92rem;
  }

  .site-logo__ja {
    font-size: 0.5rem;
    letter-spacing: 0.07em;
    max-width: min(10.5rem, 34vw);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-toggle {
    font-size: 0.53rem;
    padding: 0.22rem 0.34rem;
  }
}
