:root {
  --ink: #07090d;
  --panel: #0c1016;
  --line: #1e293b; /* slate-800 */
  --line-hover: #475569; /* slate-600 */
  --fg: #e2e8f0;
  --muted: #94a3b8;
  --accent: #e5566d;
  --nav-hover: #ff9a3c;
  --header-h: 64px;
  --ctl-h: 34px; /* ヘッダー右側の操作部品（お問い合わせ・文字サイズ・言語切替）の共通の高さ */
  color-scheme: dark;
}

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

html {
  /* 文字サイズ変更（A−/A+）は html の font-size（80〜150%）で行い、本文側は rem 指定で追従する */
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
button {
  font-family: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
::selection {
  background: rgba(229, 86, 109, 0.4);
}
.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

/* ---------- ヘッダー（固定） ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}
/* backdrop-filter は本体に付けない（子の fixed オーバーレイの基準が変わるため） */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.header-inner {
  position: relative;
  max-width: 72rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img {
  height: 28px;
  width: auto;
  border-radius: 6px;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* 右端寄せ：お問い合わせ → 言語切替 → ハンバーガー */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
/* メニュー（事務所について・事業内容・強み・ご相談の流れ）は、ヘッダーの中央に置く（≥1024px） */
.nav-group {
  display: none;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.main-nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: safe center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  /* 幅が足りずメニューが収まらない場合は、メニュー内だけ横スクロールにする */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line-hover) transparent;
}
.main-nav::-webkit-scrollbar {
  height: 4px;
}
.main-nav::-webkit-scrollbar-thumb {
  background: var(--line-hover);
  border-radius: 999px;
}
.main-nav a {
  position: relative;
  flex: none;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  padding: 6px 10px;
  transition: color 0.18s ease;
}
/* 下線：左から右へ伸びるアニメーション */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-hover);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}
/* ホバー／キーボードフォーカス（Tab）：文字色をオレンジに＋下線 */
.main-nav a:focus-visible {
  outline: none;
  color: var(--nav-hover);
}
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}
/* :hover はマウスなど、ホバーできる端末だけに適用（タッチで押した状態が残らないように） */
@media (hover: hover) {
  .main-nav a:hover {
    color: var(--nav-hover);
  }
  .main-nav a:hover::after {
    transform: scaleX(1);
  }
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--ctl-h);
  color: #0b0f19;
  font-weight: 700;
  line-height: 1;
  background: #f1f5f9;
  border: 1px solid #f1f5f9;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- 言語切替（ピル型） ---------- */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  box-sizing: border-box;
  height: var(--ctl-h);
  padding: 3px;
  background: #f1f5f9;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #555555;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, filter 0.2s;
}
.lang-btn:hover {
  filter: brightness(1.1);
  background: rgba(0, 0, 0, 0.05);
}
.lang-btn .flag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
}
.lang-btn.active {
  background: #3b82f6;
  color: #ffffff;
}
.lang-btn.active:hover {
  background: #3b82f6;
}

/* ---------- 文字サイズ変更（A− / A+） ---------- */
.fs-switch {
  display: inline-flex;
  align-items: stretch;
  box-sizing: border-box;
  height: var(--ctl-h);
  padding: 3px;
  border: 1px solid var(--line-hover);
  border-radius: 999px;
  flex: none;
}
.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fs-up {
  font-size: 14px;
}
.fs-btn:focus-visible {
  outline: 2px solid var(--nav-hover);
  outline-offset: 1px;
}
.fs-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (hover: hover) {
  .fs-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
  }
}
/* ハンバーガー内の複製は、狭い画面（ヘッダーに入らない幅）のときだけ使う */
.fs-switch-menu {
  display: none;
  margin: 4px 16px 8px;
}

/* ---------- ハンバーガー＋フローティングメニュー ---------- */
.menu-wrap {
  position: relative;
}
.menu-toggle {
  position: relative;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s;
}
.menu-toggle:hover {
  border-color: var(--line-hover);
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.floating-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 2;
  width: 80vw;
  margin-top: 8px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.floating-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  transition: background 0.2s ease, color 0.18s ease;
}
/* ホバー／キーボードフォーカス：文字色をアクセントカラーに変える（タッチでは :hover を使わない） */
.floating-menu a:focus-visible {
  outline: none;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}
@media (hover: hover) {
  .floating-menu a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
  }
}
.menu-wrap.is-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}
.menu-wrap.is-open .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Bento グリッド ---------- */
.bento {
  max-width: 72rem;
  margin: 0 auto;
  padding: 16px 20px 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
  border-color: var(--line-hover);
  transform: translateY(-4px);
}
/* フェードイン（JS が有効な場合のみ初期非表示） */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal.is-visible:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

.kicker {
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.card-title {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.prose {
  display: grid;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}
.body {
  font-size: 0.875rem;
  color: var(--muted);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pulse {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  max-width: 46ch;
  margin-top: 32px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s, border-color 0.2s, filter 0.2s;
}
.btn-primary {
  background: var(--fg);
  color: var(--ink);
}
.btn-primary:hover {
  opacity: 0.85;
}
.btn-ghost {
  border-color: var(--line-hover);
}
.btn-ghost:hover {
  border-color: var(--fg);
}
.btn-accent {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  filter: brightness(1.1);
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  padding: 0;
  background: #ffffff; /* 白背景ロゴ用 */
}
.logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.logo-card:hover img {
  transform: scale(1.04);
}

.cert-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.7;
}
.cert-list li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.cert-list li:first-child {
  padding-top: 0;
  border-top: 0;
}
.cert-list b {
  font-weight: 500;
}
.soon {
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--line-hover);
  border-radius: 999px;
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--accent);
}
.cert-list span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.quote-card {
  display: flex;
  align-items: center;
}
.quote {
  padding-left: 24px;
  border-left: 1px solid var(--accent);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
}

.section-head {
  padding-top: 64px;
}
.section-head h2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.section-lead {
  max-width: 60ch;
  font-size: 0.875rem;
  color: var(--muted);
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1;
  transition: border-color 0.3s, color 0.3s;
}
.card:hover .icon-badge {
  border-color: var(--accent);
  color: var(--accent);
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}
.card .en {
  margin: 4px 0 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card h3 + .body {
  margin-top: 12px;
}
.card .en + .body {
  margin-bottom: 24px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.card:hover .tag {
  border-color: var(--line-hover);
  color: var(--fg);
}

.contact {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  padding: 32px 24px;
}
.contact h2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.contact .body {
  max-width: 44ch;
}
.contact .note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--muted);
}
/* フォームを含むカードは浮き上がらせない（入力の妨げになるため） */
.card.contact:hover,
.js .reveal.is-visible.contact:hover {
  transform: none;
}

.contact-form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field-row {
  display: grid;
  gap: 18px;
}
.field label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
}
.field-row {
  align-items: start;
}
.opt {
  line-height: 1;
  margin-left: 8px;
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--ink);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 9rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-hover);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 86, 109, 0.18);
}
.field [aria-invalid="true"] {
  border-color: var(--accent);
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select-wrap select option {
  background: var(--panel);
  color: var(--fg);
}
.select-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.field-error {
  font-size: 0.75rem;
  color: var(--accent);
}
.form-note {
  font-size: 0.75rem;
  color: var(--muted);
}
.form-status {
  min-height: 1.5em;
  font-size: 13px;
  color: var(--fg);
}

/* ---------- 運営者情報・特商法表記 ---------- */
.info-card {
  padding: 8px 24px;
}
.card-sub {
  padding-top: 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
}
.info-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.info-card .dl {
  margin-top: 12px;
}
.dl {
  margin: 0;
}
.dl-row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.8;
}
.dl-row:first-child {
  border-top: 0;
}
.dl dt {
  font-weight: 500;
  color: var(--fg);
}
.dl dd {
  margin: 0;
  color: var(--muted);
}
.dl dd a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-hover);
}
.dl dd a:hover {
  text-decoration-color: var(--accent);
}

/* ---------- プライバシーポリシー ---------- */
.policy {
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 0.875rem;
  color: var(--muted);
}
.policy-intro {
  padding-bottom: 20px;
}
.policy-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.policy-item h3 {
  display: flex;
  gap: 0.5em;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--fg);
}
.pv-no {
  flex: none;
  min-width: 1.6em;
  color: var(--muted);
}
.policy-body {
  padding-left: 2.1em;
}
.policy-body p {
  margin-top: 8px;
}
.policy-body p:first-child {
  margin-top: 0;
}
.policy-body ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.policy-body li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.policy-body li::before {
  content: "・";
}
.policy-body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-hover);
  overflow-wrap: anywhere;
}
.policy-body a:hover {
  text-decoration-color: var(--accent);
}
.policy-date {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.footer-brand img {
  height: 24px;
  width: auto;
  border-radius: 5px;
}
.footer-meta {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--fg);
}
.footer-bottom {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 20px calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 479px) {
  .brand-name small {
    display: none;
  }
  .brand-name {
    font-size: 13px;
  }
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .header-right {
    gap: 8px;
  }
  .lang-btn {
    padding: 5px 7px;
    gap: 4px;
  }
  .lang-btn .flag {
    width: 14px;
    height: 10px;
  }
}
@media (min-width: 640px) {
  .header-inner,
  .bento,
  .footer-inner,
  .footer-bottom {
    padding-left: 32px;
    padding-right: 32px;
  }
  .card {
    padding: 32px;
  }
  .hero {
    padding: 40px 32px;
  }
  .contact {
    padding: 40px 32px;
  }
  .quote {
    font-size: 1.5rem;
  }
  .section-head h2,
  .contact h2 {
    font-size: 1.875rem;
  }
}
@media (min-width: 640px) {
  .info-card {
    padding: 12px 32px;
  }
  .dl-row {
    grid-template-columns: 13rem 1fr;
    gap: 24px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .span2,
  .hero,
  .section-head,
  .span4 {
    grid-column: span 2;
  }
  .footer-inner {
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    grid-row: span 2;
    padding: 48px;
  }
  .section-head,
  .span4,
  .quote-card {
    grid-column: span 4;
  }
  .contact {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 56px;
    padding: 56px;
  }
  /* ≥1024px：ロゴ（左）｜メニュー（中央）｜お問い合わせ・言語切替（右）の3列。ハンバーガーは非表示 */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
  }
  .nav-group {
    display: flex;
  }
  .header-right {
    justify-self: end;
  }
  .nav-cta-side {
    display: none;
  }
  .menu-wrap {
    display: none;
  }
}

/* 1024〜1199px：3列の中央配置を保ったまま、メニューとお問い合わせの間隔を確保する */
@media (min-width: 1024px) and (max-width: 1199px) {
  .main-nav {
    gap: 0;
  }
  .header-right {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .floating-menu,
  .menu-overlay {
    transition-duration: 0.01ms !important;
  }
  .pulse {
    animation: none;
  }
}

@media print {
  .site-header {
    position: static;
    box-shadow: none;
  }
  body {
    padding-top: 0;
  }
}

/* <1024px：ハンバーガー表示時も、お問い合わせはヘッダーに出す（狭い画面では小さくする） */
@media (max-width: 1023px) {
  .header-right {
    gap: 6px;
  }
}
@media (max-width: 480px) {
  .brand-name small {
    display: none;
  }
  .lang-btn span {
    display: none;
  }
}

.lang-switch,
.menu-wrap,
.nav-cta {
  flex: none;
}

/* 文字サイズ変更：ヘッダーに収まる幅（641px以上）ではヘッダー、それ未満ではハンバーガー内に表示 */
@media (max-width: 640px) {
  .header-right > .fs-switch {
    display: none;
  }
  .fs-switch-menu {
    display: inline-flex;
  }
}
