/* ==========================================================================
   Brand Design Tokens (:root)
   旧サイト (WordPress / Ollie 子テーマ「F medical」) の設定値を再現
   ========================================================================== */
:root {
  /* Color Palette */
  --color-primary: #4b74b3;          /* ロゴの青 */
  --color-accent: #f56348;           /* 予約ボタンのオレンジ */
  --color-accent-hover: #d3543d;
  --color-white: #fff;
  --color-tint: #d8e5f8;             /* 薄い青の背景 */
  --color-border: #c9d1de;           /* 罫線 */
  --color-muted: #8fa0b8;            /* 薄い文字・表の罫線 */
  --color-grey: #666a6d;
  --color-black: #202224;
  --color-disabled: #aaabac;
  --color-text: #000;                /* 本文 (旧サイトは色指定が無く黒) */
  --color-fab-bg: rgba(238, 241, 245, 0.95);
  --color-sub-text: #738196;
  --gradient-blue: linear-gradient(90deg, #2b74d9 -6.93%, #41a4d9 100%);
  --gradient-blue-reverse: linear-gradient(270deg, #2b74d9 0%, #41a4d9 106.93%);

  /* Typography */
  --font-sans: "Noto Sans JP", sans-serif;
  --font-en: "Roboto", sans-serif;           /* 英字の見出し (旧サイトは Bold のみ読み込み) */
  --font-sc: "Noto Sans SC", sans-serif;     /* 中国語ページ */
  --font-size-body: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.208), 16px);
  --line-height-body: calc(1px + 2ex + 7px);
  --fs-small: clamp(.7rem, 0.7rem + ((1vw - 0.2rem) * 0.083), .75rem);
  --fs-baseminus: clamp(.82rem, 0.82rem + ((1vw - 0.2rem) * 0.092), .875rem);
  --fs-base: clamp(.9rem, 0.9rem + ((1vw - 0.2rem) * 0.167), 1rem);
  --fs-baseplus: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.333), 1.2rem);
  --fs-baseplusplus: clamp(1.13rem, 1.13rem + ((1vw - 0.2rem) * 0.283), 1.3rem);
  --fs-medium: clamp(1.3rem, 1.3rem + ((1vw - 0.2rem) * 0.5), 1.6rem);
  --fs-large: clamp(1.5rem, 1.5rem + ((1vw - 0.2rem) * 0.833), 2rem);
  --fs-x-large: clamp(2rem, 2rem + ((1vw - 0.2rem) * 1.333), 2.8rem);
  --fs-h1: clamp(24.034px, 1.502rem + ((1vw - 3.2px) * 1.663), 40px);
  --fs-h2: clamp(17.905px, 1.119rem + ((1vw - 3.2px) * 1.052), 28px);
  --fs-h3: clamp(14.642px, 0.915rem + ((1vw - 3.2px) * 0.766), 22px);
  --fs-h4: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.417), 18px);
  --fs-h5: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.208), 16px);

  /* Spacing (WordPress のプリセットと同じ値) */
  --space-s20: 0.44rem;
  --space-s30: 0.67rem;
  --space-s40: 1rem;
  --space-s50: 1.5rem;
  --space-s60: 2.25rem;
  --space-s70: 3.38rem;
  --space-s80: 5.06rem;
  --space-sm: clamp(.5rem, 2.5vw, 1rem);
  --space-md: clamp(1.5rem, 4vw, 2rem);     /* ブロックの標準の間隔・左右の余白 */
  --space-lg: clamp(2rem, 5vw, 3rem);
  --space-xl: clamp(3rem, 7vw, 5rem);
  --space-xxl: clamp(4rem, 9vw, 7rem);
  --space-xxxl: clamp(5rem, 12vw, 9rem);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 5px;
  --radius-fab: 10px;
  --radius-full: 100px;

  /* Shadows */
  --shadow-button: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  --shadow-button-hover: 0 8px 10px 0 rgba(0, 0, 0, 0.25);
  --shadow-panel: 0 0 16px 0 rgba(0, 0, 0, 0.1);
  --shadow-fab: 0 4px 8px 0 rgba(0, 0, 0, 0.3);

  /* Layout */
  --container-max: 1280px;
  --gutter: var(--space-md);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-white);
}

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

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 2%;
  line-height: 150%;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); line-height: 160%; }
h5 { font-size: var(--fs-h5); font-weight: 700; line-height: 160%; }
h6 { font-size: var(--fs-h5); line-height: 160%; }

/* 段落の行の高さは文字サイズごとに計算し直す (旧サイトと同じ) */
:where(p) {
  line-height: var(--line-height-body);
}

/* 余白はブロックの並び (Layout) で付けるので、要素の既定の余白は消す (詳細度 0) */
:where(h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, blockquote, hr) {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

sub {
  line-height: 0.1;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* 文字色 (旧サイトのカラーパレット) */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.text-tint { color: var(--color-tint); }
.text-border { color: var(--color-border); }
.text-muted { color: var(--color-muted); }
.text-grey { color: var(--color-grey); }
.text-black { color: var(--color-black); }

/* グラデーションの文字 */
.text-gradient {
  background-color: #2b74d9;
  background-image: var(--gradient-blue);
  background-size: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 背景色 */
.bg-primary { background-color: var(--color-primary); }
.bg-white { background-color: var(--color-white); }
.bg-tint { background-color: var(--color-tint); }
.bg-black { background-color: var(--color-black); }
.bg-gradient { background-image: var(--gradient-blue); }
p.bg-primary,
p.bg-white,
p.bg-tint,
p.bg-gradient {
  padding: var(--space-sm);
}

/* 文字サイズ (旧サイトのプリセット) */
.fs-small { font-size: var(--fs-small); }
.fs-baseminus { font-size: var(--fs-baseminus); }
.fs-base { font-size: var(--fs-base); }
.fs-baseplus { font-size: var(--fs-baseplus); }
.fs-baseplusplus { font-size: var(--fs-baseplusplus); }
.fs-medium { font-size: var(--fs-medium); }
.fs-large { font-size: var(--fs-large); }
.fs-x-large { font-size: var(--fs-x-large); }

.font-en { font-family: var(--font-en); }
.font-sc { font-family: var(--font-sc); }

/* スマホのみ改行 */
@media (min-width: 680px) {
  .br-sp { display: none; }
}

/* リンク色 (ブロック内のリンクを指定色に) */
.links-primary a:not(.btn) { color: var(--color-primary); }
.links-white a:not(.btn) { color: var(--color-white); }
.links-muted a:not(.btn) { color: var(--color-muted); }
.links-black a:not(.btn) { color: var(--color-black); }

/* 旧サイトの個別の指定 (余白・サイズなど) を置き換えたクラスは、他の指定より優先させるためファイル末尾に置く */

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 本文 (中の余白が外に突き抜けないように) */
.entry {
  display: flow-root;
}

/* ブロックを縦に並べる (WordPress の flow レイアウト: 間隔 = --flow-space) */
.entry,
.site-main div,
.cover-content,
.column,
.access-panel {
  --flow-space: var(--space-md);
}

:where(.entry, .site-main div:not(.flex):not(.columns):not(.btn-group):not(.page-header), .cover-content, .column) > * + * {
  margin-top: var(--flow-space);
}

.flow-0 { --flow-space: 0; }
.flow-sm { --flow-space: var(--space-sm); }
.flow-md { --flow-space: var(--space-md); }
.flow-16 { --flow-space: 16px; }

/* 子要素の最大幅 (中央寄せ) */
[class*="measure-"] > * {
  max-width: var(--measure);
  margin-inline: auto;
}
.measure-start > * {
  margin-left: 0;
}

/* 画面幅いっぱいに広げる (背景色の帯は中身に左右の余白を付ける) */
.full-bleed {
  margin-inline: calc(50% - 50vw);
}
.full-bleed:not(.cover) {
  padding-inline: var(--gutter);
}

/* 横並び (WordPress の flex レイアウト) */
.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}
:where(.flex) > * {
  margin: 0;
}
/* 横並びの中の画像は縮めない */
.flex > .figure {
  flex-shrink: 0;
}
.flex-col {
  flex-direction: column;
  align-items: flex-start;
}
.nowrap { flex-wrap: nowrap; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.self-center { align-self: center; }

/* 段組み */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.column {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 5px;
}
.column[class*="basis-"] {
  flex-grow: 0;
}
@media (min-width: 782px) {
  .columns {
    flex-wrap: nowrap;
  }
}
@media (max-width: 781px) {
  .columns:not(.columns-nostack) > .column {
    flex-basis: 100%;
  }
}

/* 空白 */
.spacer {
  margin: 0;
}

/* ページ内リンクの飛び先 */
.anchor {
  height: 0;
}

/* ==========================================================================
   Typography (本文)
   ========================================================================== */
/* セクション見出し (下線: グレー + 左側だけ青のグラデーション) */
.section-title {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border-bottom: 5px solid var(--color-border);
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 22%;
  height: 5px;
  background: var(--gradient-blue);
}
p.section-title {
  font-size: inherit;
}

/* 英字のサブタイトル */
.section-heading > * + * {
  margin-top: 0;
}
.section-title-en {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 8%;
  background-color: #2b74d9;
  background-image: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-heading > .section-title-en {
  margin-top: 8px;
}

/* 本文の h3 (左に青い線) */
.entry h3:not([class]),
.entry h3.text-center,
.entry h3[class*="mb-"],
.entry h3[class*="fs-"] {
  padding-left: 16px;
  border-left: 4px solid;
  border-image: var(--gradient-blue) 1;
  color: var(--color-primary);
}

/* 参考文献などの囲み */
.post-reference {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--color-tint);
  line-height: 200%;
  letter-spacing: 0.32px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.btn {
  display: inline-block;
  position: relative;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  word-break: break-word;
  box-sizing: border-box;
}
.btn:hover {
  text-decoration: none;
}

.btn-block {
  width: 100%;
}
.btn-half {
  width: calc(50% - var(--space-md) / 2);
}

/* 標準のボタン (青・角丸 5px) */
.btn-default {
  padding: .5em 1em;
  border-radius: 5px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-small);
}
.btn-default:hover {
  text-decoration: underline;
}

/* 青のグラデーション + 右に矢印 */
.btn-primary {
  min-width: 280px;
  height: 60px;
  padding: 12px 48px 12px 24px;
  border-radius: var(--radius-full);
  background: var(--gradient-blue);
  box-shadow: var(--shadow-button);
  color: var(--color-white);
  font-size: 20px;
  line-height: 36px;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white) url("/assets/icons/button-arrow.svg") center / 30px no-repeat;
}
.btn-primary:hover {
  background: var(--gradient-blue-reverse);
  box-shadow: var(--shadow-button-hover);
}

/* オレンジの予約ボタン */
.btn-accent {
  padding: 16px 22px 16px 28px;
  border-radius: 50px;
  background-color: var(--color-accent);
  box-shadow: var(--shadow-button);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 2%;
}
.btn-accent:hover {
  box-shadow: var(--shadow-button-hover);
}
.btn-icon {
  margin-right: 8px;
  vertical-align: sub;
}

/* 白地 + 右に青い丸矢印 */
.btn-white {
  padding: 12px 42px 12px 20px;
  border-radius: 50px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-button);
  color: #202224;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.28px;
}
.btn-white::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: url("/assets/icons/ArrowForwardFilled_wh.svg") center / 16px no-repeat, var(--gradient-blue);
}
.btn-white:hover {
  box-shadow: var(--shadow-button-hover);
}

@media (max-width: 500px) {
  .btn-primary {
    font-size: 16px;
  }
}
@media (max-width: 400px) {
  .btn-accent {
    padding: 16px 18px 16px 24px;
    font-size: 16px;
    line-height: 20px;
  }
  .btn-accent .btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Content Blocks (リスト・表・画像・区切り線・カバー画像)
   ========================================================================== */
/* リストの字下げ (左右の余白と同じ) */
:where(.entry ul, .entry ol) {
  padding-left: var(--space-md);
}

/* 青いチェックマークのリスト */
.list-check {
  list-style: none;
}
.list-check li {
  margin-bottom: 8px;
}
.list-check li::before {
  content: "";
  display: inline-block;
  width: 33px;
  height: 33px;
  margin-right: 8px;
  background: url("/assets/icons/blue-check-circle.svg") center / contain no-repeat;
  transform: translateY(6px);
}

/* 青い点のリスト */
.list-dot li::marker {
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* 表 */
.table-scroll {
  overflow-x: auto;
}
.table-wrap table {
  width: 100%;
  font-size: var(--fs-base);
}
.table-wrap td,
.table-wrap th {
  padding: .5em;
  border: 1px solid;
  word-break: normal;
}
.table-wrap thead {
  border-bottom: 3px solid;
}
.table-wrap figcaption {
  margin-top: .5em;
  font-size: 13px;
  text-align: center;
}
.table-fixed {
  table-layout: fixed;
}
.table-stripes tbody tr:nth-child(odd) {
  background-color: #f0f0f0;
}
.table-stripes td,
.table-stripes th {
  border-color: transparent;
}
.table-wrap .border-0,
.table-wrap .border-0 td,
.table-wrap .border-0 th {
  border: 0;
}

/* 料金表 */
.table-price thead {
  background-color: var(--color-tint);
  border: 1px solid var(--color-muted);
}
.table-price th,
.table-price tr,
.table-price td {
  border: 1px solid var(--color-muted);
}
.table-price th:last-of-type {
  min-width: 100px;
}

/* 画像 */
.figure img {
  max-width: 100%;
  height: auto;
}
.figure-center {
  display: table;
  margin-inline: auto;
}
.figure-right {
  float: right;
  margin-left: 2em;
}
.figure figcaption {
  margin-top: .5em;
  font-size: 13px;
  text-align: center;
}
.img-16x9 {
  aspect-ratio: 16 / 9;
}
.img-contain {
  object-fit: contain;
}
.img-cover {
  object-fit: cover;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.gallery .figure {
  flex: 1 1 0;
}
.gallery .figure {
  position: relative;
  display: flex;
}
.gallery .figure img {
  width: 100%;
}
/* 画像の高さを揃えて切り抜く */
.gallery-cropped .figure img {
  height: 100%;
  object-fit: cover;
}
/* キャプションは画像の下部に重ねる */
.gallery .figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 3em .77em .7em;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3) 70%, transparent);
  color: var(--color-white);
  font-size: 13px;
  text-align: center;
}

/* 区切り線 */
hr {
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
}
hr.divider-dotted {
  height: 1px;
  border: 0;
  background: repeating-linear-gradient(90deg, currentColor, currentColor 2px, transparent 2px, transparent 5px);
}

/* 画像 + テキスト (WordPress の media-text ブロック) */
.media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  align-items: center;
}
.media-text-right {
  grid-template-columns: 1fr 50%;
}
.media-text-figure img {
  width: 100%;
}
.media-text-body {
  padding: 0 8%;
}
.media-text > * {
  margin: 0;
}
@media (max-width: 600px) {
  .media-text,
  .media-text-right {
    grid-template-columns: 100%;
  }
  .media-text-right > .media-text-figure {
    order: -1;
  }
  .media-text-body {
    padding: 8% 0 0;
  }
}

/* 埋め込み (地図など) */
.embed iframe {
  max-width: 100%;
  border: 0;
}

/* カバー画像 (背景写真の上に文字) */
.cover {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: var(--space-lg);
  overflow: hidden;
  color: var(--color-white);
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.cover[class*="cover-dim-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--cover-overlay, #000);
  opacity: var(--cover-dim, 0.5);
}
.cover-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
}
.full-bleed > .cover-content {
  padding-inline: var(--gutter);
}
.cover.full-bleed {
  margin-top: 0;
}
.cover-rounded img {
  border-radius: 5px;
}

/* ==========================================================================
   Header (ロゴ・メニュー・言語切り替え・お問い合わせ)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 11;   /* スマホのメニューを予約ボタン (z-index: 10) より前に */
  padding: 10px 20px;
}

.header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-max);
  height: 85px;
  margin-inline: auto;
  padding: 0 20px;
  border-radius: 4px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-panel);
}

.logo {
  flex-shrink: 0;
}
.logo img {
  width: 260px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* メニュー (PC) */
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item > a,
.submenu a {
  position: relative;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
/* サブメニューのある項目 (当院について) はホバーで下線 */
.has-submenu > a:hover {
  text-decoration: underline;
}

/* サブメニュー */
.submenu-toggle {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: url("/assets/icons/chevron-down.svg") center / 12px no-repeat;
  cursor: pointer;
}
/* サブメニューが開いている間は矢印を上向きに */
.has-submenu:hover > .submenu-toggle,
.has-submenu:focus-within > .submenu-toggle,
.submenu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: var(--color-white);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.1s linear;
}
.submenu a {
  display: block;
  padding: .5em 1em;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.submenu-toggle[aria-expanded="true"] + .submenu {
  visibility: visible;
  opacity: 1;
}

.menu-toggle,
.menu-close,
.nav-cta {
  display: none;
}

/* 言語切り替え */
.lang-switcher {
  position: relative;
}
.lang-toggle {
  padding: 0.5em;
  border: 0;
  background: none;
  font-size: 1.2em;
  cursor: pointer;
}
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ccc;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.lang-menu[hidden] {
  display: none;
}
.lang-menu a {
  display: block;
  padding: 0.5em 1em;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu a:hover {
  background-color: #f0f0f0;
}

/* お問い合わせボタン (ヘッダー) */
.btn-header {
  height: 40px;
  padding: 8px 20px 8px 48px;
  border-radius: 50px;
  background: var(--gradient-blue);
  color: var(--color-white);
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}
.btn-header::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 16px;
  width: 24px;
  height: 24px;
  background: url("/assets/icons/send.svg") center / contain no-repeat;
}
.btn-header:hover {
  background: var(--gradient-blue-reverse);
  box-shadow: var(--shadow-button);
}

/* ==========================================================================
   Page Header (固定ページ・一覧の見出し: 背景写真 + すりガラスの見出し)
   ========================================================================== */
.page-header {
  display: flex;
  justify-content: center;
  padding: 90px 0 116px;
}
/* 写真はページの最上部 (ヘッダーの裏) から敷く */
.page-header-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 378px;
  max-width: none;
  object-fit: cover;
}
.page-header + .container {
  margin-top: var(--space-md);
  padding-bottom: var(--space-xxl);
}
.page-title {
  width: auto;
  padding: 4px 32px;
  line-height: 60px;
  border-radius: 2px;
  background: linear-gradient(95deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.50) 100%);
  backdrop-filter: blur(10px);
  text-align: center;
}

/* ==========================================================================
   Front Page Hero (トップ・各国ページ上部)
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 73px;
}
.hero-body {
  grid-area: 1 / 1 / 2 / 2;
}
.hero-body-inner {
  width: 580px;
  max-width: 100%;
  margin: auto;
}
.hero-text {
  padding: 40px 0;
}
.hero-scroll {
  grid-area: 2 / 1 / 3 / 2;
  height: 328px;
}
.hero-images {
  grid-area: 1 / 2 / 3 / 3;
}
.hero-tagline {
  position: relative;
}
.hero-tagline::after {
  content: "";
  position: absolute;
  width: calc(100% - 180px - 36px);
  height: 3.737px;
  margin: 10px 18px 0;
  background: var(--gradient-blue);
}
.scroll-mark {
  width: 328px;
  border-bottom: 1px solid #41a4d9;
  color: #41a4d9;
  text-align: right;
  transform: rotate(-90deg) translateX(-150px);
}

/* ==========================================================================
   Modules (各ページの部品)
   ========================================================================== */
/* 画像の上のラベル (トップのサービス紹介) */
.image-label-wrapper .cover-content {
  position: absolute;
  bottom: 0;
}
.image-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-radius: 2px;
  background: linear-gradient(91deg, rgba(43, 116, 217, 0.80) 26.37%, rgba(65, 164, 217, 0.32) 100%);
  backdrop-filter: blur(5px);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  line-height: 50px;
}
.service-cta,
.image-label-wrapper .btn-group {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

/* お知らせの一覧 */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-item {
  display: flex;
  gap: 120px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  line-height: 32px;
}
.news-item:last-child {
  border-bottom: 1px solid var(--color-border);
}
.news-date {
  flex: 0 0 137px;
  color: var(--color-black);
  font-weight: 500;
  letter-spacing: 1.6px;
}
.news-title {
  overflow: hidden;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.32px;
  text-overflow: ellipsis;
  text-decoration: underline;
}

/* 受診の流れ (矢印) */
.process-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  background-color: #4b74b3;
}
.process-arrow::after {
  content: "";
  position: absolute;
  right: -54px;
  width: 0;
  height: 0;
  border-top: 70px solid transparent;
  border-bottom: 70px solid transparent;
  border-left: 54px solid var(--arrow-color, #4b74b3);
  filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.25));
}
.process-arrow img {
  width: 56px;
  height: 56px;
}
.process-column:nth-child(2) .process-arrow { --arrow-color: #4a84c2; background-color: #4a84c2; z-index: -1; }
.process-column:nth-child(3) .process-arrow { --arrow-color: #4594d0; background-color: #4594d0; z-index: -2; }
.process-column:nth-child(4) .process-arrow { --arrow-color: #419fda; background-color: #419fda; z-index: -3; }
.process-column:nth-child(n+2) .process-arrow img {
  transform: translateX(20px);
}
.blue-bg-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-image: var(--gradient-blue);
}
.round-num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
}

/* 4つの枠 (当院について・初めての方へ) */
.four-blocks-with-lists {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  justify-content: space-around;
  align-content: start;
}
.four-blocks-with-lists > div {
  margin-top: 0;
}
.four-blocks-with-lists-card {
  height: 347px;
}

/* 横幅いっぱいの帯 (初めての方へ) */
.full-width-band-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.full-width-band-inner {
  position: relative;
  transform: translateY(-200px);
}

/* 証明書料金の計算式 (料金表) */
.label-rectangle {
  flex-shrink: 0;
}

/* よくある質問 */
.faq-list {
  margin: 0;
}
.faq-item {
  width: 100%;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.faq-question-text {
  display: grid;
  flex: 1;
  grid-template-columns: 40px auto;
  padding-right: 50px;
}
.faq-question-text::before {
  content: "Q";
  display: block;
  width: 27px;
  height: 27px;
  margin-right: 8px;
  padding: 3px 6px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
  line-height: 100%;
}
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: url("/assets/icons/ControlPointOutlined.svg") center / contain no-repeat;
}
.faq-question[aria-expanded="true"] .faq-icon {
  background-image: url("/assets/icons/RemoveCircleOutlineOutlined.svg");
}
.faq-answer {
  display: grid;
  grid-template-columns: 40px auto;
  margin-top: var(--space-md);
  padding: 0 50px 0 40px;
}
.faq-answer[hidden] {
  display: none;
}
.faq-answer > * {
  grid-column: 2;
}
.faq-answer::before {
  content: "A";
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 27px;
  height: 27px;
  margin-right: 8px;
  padding: 1.4px 4.8px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
  line-height: 100%;
}

/* ==========================================================================
   Posts (お知らせの記事)
   ========================================================================== */
.entry-post {
  padding-block: var(--space-xxl);
}
.post-title {
  font-size: var(--fs-h1);
  line-height: 60px;
}
.post-featured {
  margin-top: var(--space-lg);
}
.post-featured img {
  width: 100%;
  height: 378px;
  object-fit: cover;
}
.post-date {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.1em;
  background-color: #2b74d9;
  background-image: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.entry-post .entry-content > * + * {
  margin-top: var(--space-md);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: calc(var(--space-lg) + var(--space-md));
  padding: var(--space-s40) 0;
}
.post-nav a {
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.32px;
}
.post-nav-prev::before,
.post-nav-next::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--color-primary) center / 16px no-repeat;
}
.post-nav-prev::before {
  margin-right: 12px;
  background-image: url("/assets/icons/incircle-arrow-left.svg");
}
.post-nav-next::after {
  margin-left: 12px;
  background-image: url("/assets/icons/incircle-arrow-right.svg");
}

/* お知らせ一覧 (カテゴリー・投稿者) */
.page-header-archive {
  margin-top: var(--space-md);
}
.page-header-archive .page-title {
  line-height: 150%;
}
.archive {
  margin-top: var(--space-md);
}
.archive .section-title {
  font-size: var(--fs-h1);
  line-height: 60px;
}
.archive > .news-list {
  margin-top: calc(var(--space-md) + var(--space-sm));
}
/* 一覧の記事タイトル: 1行なら高さ 60px、折り返すと本文の行の高さずつ増える (旧サイトと同じ) */
.news-heading {
  padding-block: calc((60px - 1lh) / 2);
  font-size: 16px;
  font-weight: 500;
  line-height: var(--line-height-body);
}
.news-heading .news-title {
  line-height: inherit;
}
.news-list-archive .news-date {
  font-size: 16px;
}
.pagination {
  margin-top: var(--space-md);
}
.pagination-list {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination-list > li:only-child:has(.pagination-next) {
  margin-left: auto;
}
.pagination-prev,
.pagination-next {
  display: inline-block;
  padding: .5em 1em;
  border-radius: 5px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.pagination-prev:hover,
.pagination-next:hover {
  text-decoration: underline;
}

/* 404 */
.not-found {
  padding: var(--space-xxl) 0 var(--space-xxxl);
}
.not-found > * + * {
  margin-top: var(--space-md);
}

/* ==========================================================================
   Floating Action Buttons (画面右下の予約ボタン)
   ========================================================================== */
.fab {
  position: fixed;
  right: 0;
  bottom: 20px;
  z-index: 10;
  width: 326px;
}
.fab.is-hidden {
  display: none;
}
.fab-primary {
  padding: 16px 20px;
  border-radius: var(--radius-fab) 0 0 var(--radius-fab);
  background: var(--color-fab-bg);
  box-shadow: var(--shadow-fab);
}
.fab-booking {
  font-size: var(--fs-base);
}
.fab-text {
  margin-top: 16px;
  text-align: center;
}
.fab-hours {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.fab-text > p {
  margin-top: 8px;
}
.fab-secondary {
  display: block;
  margin-top: 8px;
  padding: 8px 0;
  border-radius: var(--radius-fab) 0 0 var(--radius-fab);
  background: var(--gradient-blue);
  box-shadow: var(--shadow-fab);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 160%;
  text-align: center;
  text-decoration: none;
  opacity: 0.95;
}
.fab-secondary-icon {
  width: 24px;
  height: 24px;
  vertical-align: text-bottom;
}

/* ==========================================================================
   Access (フッター上のアクセス・診療時間)
   ========================================================================== */
.access-wrapper {
  display: flex;
  margin-top: var(--space-md);
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: url("/assets/images/access-bg.webp") center / cover no-repeat;
}
.access-panel {
  max-width: 1280px;
  padding: 40px;
  border-radius: 2px;
  background-color: var(--color-white);
}
.access-panel > * + * {
  margin-top: var(--space-md);
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.access-info { grid-column: 1; grid-row: 1; }
.access-map { grid-column: 2; grid-row: 1 / span 2; }
.access-hours { grid-column: 1; grid-row: 2; }
.access-grid > * + * {
  margin-top: var(--space-md);
}
.access-info > * + *,
.access-map > * + *,
.access-hours > * + * {
  margin-top: var(--space-md);
}
.access-info > .logo-text-sub {
  margin-top: 0;
}
.logo-text-sub {
  margin-left: 154px;
  color: var(--color-sub-text);
  font-size: 12px;
}

/* 住所などのアイコン付きリスト */
.icon-list {
  display: grid;
  grid-template-columns: max-content auto;
}
.icon-list dt {
  display: flex;
  grid-column-start: 1;
  height: 27px;
  font-weight: 700;
}
.icon-list dt::before {
  width: 24px;
  margin-right: 8px;
}
.icon-list dd {
  grid-column-start: 2;
  margin-bottom: 12px;
  margin-left: 40px;
}
.icon-list dd > span {
  display: block;
  line-height: 160%;
}
.icon-address::before { content: url("/assets/icons/LocationonOutlined.svg"); }
.icon-station::before { content: url("/assets/icons/TrainOutlined.svg"); }
.icon-tel::before { content: url("/assets/icons/telGradient.svg"); }
.icon-form::before { content: url("/assets/icons/webformGradient.svg"); }

.map-embed {
  position: relative;
  height: 0;
  padding-bottom: 81.5%;
  overflow: hidden;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-link {
  color: var(--color-primary);
}
.map-link-arrow {
  margin-left: 4px;
  vertical-align: middle;
}

/* 診療時間の表 */
.hours-table {
  margin-bottom: 20px;
  border-spacing: 0;
}
.table-wrap .hours-table {
  width: auto;
}
.hours-table thead {
  border-bottom: 1px solid var(--color-muted);
}
.hours-table th,
.hours-table td {
  padding: 15px;
  border: 0;
  border-bottom: 1px solid var(--color-muted);
  text-align: center;
}
.hours-dash {
  display: inline-block;
  width: 10px;
  height: 6px;
  margin: 0 6px;
  border-top: 1px solid var(--color-black);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.site-footer a {
  color: var(--color-white);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 40px 24px;
}
.footer-logo {
  width: 260px;
  height: 60px;
}
.social-links {
  display: flex;
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}
.social-links li {
  transition: transform 0.1s ease;
}
.social-links li:hover {
  transform: scale(1.1);
}
.social-link-x {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--color-primary) url("/assets/icons/x.svg") center / 18px no-repeat;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-md);
  width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.copyright {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 16px 0;
  border-top: 1px solid var(--color-white);
  font-size: var(--fs-small);
  text-align: center;
}

/* ==========================================================================
   Landing Pages (English / 中文 / インフルエンザ出張)
   ========================================================================== */
.site-header + .site-main > .container-lp:first-child {
  margin-top: var(--space-md);
}
.page-zh {
  font-family: var(--font-sc);
}
.lang-select {
  padding: 2px;
  font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* メニューをハンバーガーに (旧サイトと同じ 1200px) */
@media (max-width: 1200px) {
  .header-actions {
    flex-direction: row-reverse;
  }
  .menu-toggle {
    display: block;
    width: 41px;
    height: 44px;
    padding: 0;
    border: 0;
    background: url("/assets/icons/hamburger.svg") center / contain no-repeat;
    cursor: pointer;
  }
  .global-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    padding: 56px 0 15px;
    background-color: var(--color-white);
  }
  .global-nav.is-open {
    display: block;
    animation: menu-fade-in 0.1s ease-out forwards;
  }
  .menu-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 16px;
    width: 31px;
    height: 38px;
    padding: 0;
    border: 0;
    background: url("/assets/icons/close.svg") center / contain no-repeat;
    cursor: pointer;
  }
  .nav-list {
    display: block;
    padding: 24px;
    border-top: 1px dashed var(--color-muted);
  }
  .nav-item {
    display: block;
    margin: 8px 0;
  }
  .nav-item > a {
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: var(--fs-base);
  }
  /* 先頭にアイコン (下線・矢印は無し) */
  .nav-item > a::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: center / contain no-repeat;
  }
  .nav-icon-hospital > a::before { background-image: url("/assets/icons/LocalHospitalOutlined.svg"); }
  .nav-icon-yen > a::before { background-image: url("/assets/icons/CurrencyYenFilled.svg"); }
  .nav-icon-person > a::before { background-image: url("/assets/icons/PersonOutlineOutlined.svg"); }
  .nav-icon-document > a::before { background-image: url("/assets/icons/TextSnippetOutlined.svg"); }
  .nav-icon-help > a::before { background-image: url("/assets/icons/HelpOutlineOutlined.svg"); }
  .submenu-toggle {
    display: none;
  }
  .submenu {
    position: static;
    min-width: 0;
    margin-top: 32px;
    padding: 0 0 8px 32px;
    border: 0;
    visibility: visible;
    opacity: 1;
  }
  .submenu li + li {
    margin-top: 16px;
  }
  .submenu a {
    display: inline-block;
    font-size: var(--fs-base);
  }
  .nav-cta {
    display: block;
    padding: 20px;
    background: #eef1f5;
  }
  .icon-list {
    grid-template-columns: auto;
  }
  .icon-list dd {
    grid-column-start: 1;
    margin: 0 0 16px;
  }
}

@media (min-width: 680px) and (max-width: 1200px) {
  .access-map { grid-column: 2; grid-row: 1; }
  .access-hours { grid-column: 1 / span 2; grid-row: 2; }
}

@media (max-width: 800px) {
  .header-actions {
    gap: 16px;
  }
  .logo img {
    width: 150px;
  }
  .btn-header {
    padding: 8px 20px;
    font-size: 12px;
  }
  .btn-header::before {
    display: none;
  }
}

/* 段組みを縦に (WordPress の columns ブロック) */
@media (max-width: 781px) {
  .process-columns-wrapper.process-columns-wrapper {
    gap: 0;
    padding-right: 0;
  }
  .process-column {
    display: flex;
  }
  .process-arrow {
    width: 120px;
    height: 240px;
  }
  .process-arrow::after {
    right: 0;
    bottom: -110px;
    border-top: 40px solid var(--arrow-color, #4b74b3);
    border-right: 60px solid transparent;
    border-bottom: 70px solid transparent;
    border-left: 60px solid transparent;
  }
  .process-arrow img {
    width: 40px;
    height: 40px;
  }
  .process-column:nth-child(n+2) .process-arrow img {
    transform: translateY(16px);
  }
  .process-column > div {
    flex: 1;
    padding-top: 24px;
  }
  .process-column > div.border-right {
    border-right: 0;
  }
  .process-column:nth-child(n+2) > div {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 680px) {
  .post-featured img {
    height: 324px;
  }
  .site-header {
    padding: 0;
  }
  /* トップのヒーローは画面幅いっぱい */
  .entry-hero > .hero {
    margin-inline: calc(var(--gutter) * -1);
  }
  .entry-hero > .hero + * {
    margin-top: 0;
  }
  .page-header {
    padding: 70px 0 100px;
  }
  .page-header-img {
    height: 324px;
  }
  .hero {
    grid-template-columns: 68px auto;
    margin: 0;
    padding: 0;
  }
  .hero-body {
    grid-area: 1 / 1 / 2 / 3;
    padding: 40px 32px 120px 0;
    background-color: var(--color-tint);
  }
  .hero-body-inner {
    width: auto;
    padding: 20px;
    background-color: var(--color-white);
    font-size: 28px;
    letter-spacing: 1.4px;
  }
  .hero-scroll { grid-area: 2 / 1 / 3 / 2; }
  .hero-images { grid-area: 2 / 2 / 3 / 3; }
  .scroll-mark {
    transform: rotate(-90deg) translateX(-150px) translateY(-130px);
  }
  .news-item {
    flex-direction: column;
    gap: 8px;
  }
  /* トップのお知らせはスマホでタイトル → 日付の順 (旧サイトと同じ) */
  .news-list-latest .news-item {
    flex-direction: column-reverse;
  }
  .news-date {
    flex-basis: auto;
  }
  .four-blocks-wrapper {
    gap: 10px;
  }
  /* 個別の余白指定 (ユーティリティ) より優先させるため、クラスを重ねて詳細度を上げる */
  .four-blocks.four-blocks {
    flex-basis: 170px;
    padding: 24px 4px;
    font-size: 14px;
  }
  /* 料金の計算例: 縦並びに (ユーティリティより優先させるためクラスを重ねる) */
  .format-equation.format-equation,
  .format-equation-title.format-equation-title,
  .format-equation-sub.format-equation-sub {
    flex-direction: column;
  }
  .format-equation-title.format-equation-title {
    align-items: flex-start;
  }
  .format-equation > p:nth-of-type(2) {
    transform: rotate(90deg);
  }
  .label-rectangle.label-rectangle {
    flex-basis: 32px;
  }

  /* 予約ボタン: 画面下に横並び */
  .fab {
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: auto;
    padding: 8px 20px 20px;
    background: var(--color-fab-bg);
    box-shadow: var(--shadow-fab);
  }
  .fab-primary {
    flex: 1;
    padding: 10px 16px;
    border-radius: 0;
    background: inherit;
    box-shadow: none;
  }
  .fab-text {
    display: none;
  }
  .fab-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    padding: 16.5px 0;
    border-radius: 100px;
  }
  .fab-secondary-icon {
    width: 32px;
    height: 32px;
  }
  .fab-secondary-text {
    width: 44px;
    margin-top: 4px;
    font-size: 11px;
    line-height: 100%;
  }
  .fab-secondary-trim {
    display: none;
  }

  /* アクセス */
  .access-bg-mobile {
    width: 100%;
    height: 160px;
    background: url("/assets/images/access-bg.webp") center / cover no-repeat;
  }
  .access-wrapper {
    padding: 0;
    background: none;
  }
  .access-panel {
    width: 100%;
    padding: 64px 16px;
  }
  /* 列幅は一番幅の狭い要素 (診療時間の表) に合わせる (旧サイトと同じ) */
  .access-grid {
    grid-template-columns: min-content;
  }
  .access-info { grid-column: 1; grid-row: 1; }
  .access-map { grid-column: 1; grid-row: 2; }
  .access-hours { grid-column: 1; grid-row: 3; }
  .hours-dash {
    height: 10px;
    margin: 6px 0 4px;
    transform: rotate(90deg) translateY(4px);
  }
  .hours-table th,
  .hours-table td {
    padding: 8px;
    font-size: 14px;
  }
  .hours-table th { line-height: 120%; }
  /* 時間の列は最小幅にして「11:00 | 14:30」と縦に並べる */
  .hours-table td:first-child { width: 1px; }
  .hours-table td { line-height: 14px; }
  .logo-text-sub {
    margin-left: 86px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    justify-content: flex-start;
    width: auto;
    margin-top: 24px;
  }
}

@media (min-width: 681px) {
  .access-bg-mobile {
    display: none;
  }
}

@media (max-width: 600px) {
  .btn-header {
    width: 40px;
    padding: 0;
  }
  .btn-header-label {
    display: none;
  }
  .btn-header::before {
    display: block;
    top: 8px;
    left: 8px;
    background-image: url("/assets/icons/mail.svg");
  }
}


@media (max-width: 400px) {
  .fab {
    gap: 8px;
  }
  .fab-secondary {
    width: 72px;
    height: 72px;
    padding: 13px 0;
    border-radius: 50%;
  }
  .four-blocks-wrapper {
    flex-direction: column;
  }
  .four-blocks {
    width: 240px;
  }
}

@media (max-width: 1220px) {
  .four-blocks-with-lists {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}
@media (max-width: 680px) {
  .four-blocks-with-lists {
    grid-template-columns: 1fr;
  }
}

/* スマホのメニューを開くときのフェードイン */
@keyframes menu-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Utilities (旧サイトでブロックごとに指定されていた余白・文字サイズなど)
   ※ 他の指定より優先させるため末尾に置く。使われているものだけ
   ========================================================================== */
/* @utilities-start (build で使われているものだけ出力) */
.mx-0 { margin-left: 0; margin-right: 0; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mt-15 { margin-top: 15px; }
.mt-16 { margin-top: 16px; }
.mt-64 { margin-top: 64px; }
.mt-80 { margin-top: 80px; }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-15 { margin-bottom: 15px; }
.mb-64 { margin-bottom: 64px; }
.mb-80 { margin-bottom: 80px; }
.mb-100 { margin-bottom: 100px; }
.p-0 { padding: 0; }
.p-lg { padding: var(--space-lg); }
.p-10 { padding: 10px; }
.p-40 { padding: 40px; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-6 { padding-left: 6px; padding-right: 6px; }
.px-8 { padding-left: 8px; padding-right: 8px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.pt-0 { padding-top: 0; }
.pt-sm { padding-top: var(--space-sm); }
.pt-xl { padding-top: var(--space-xl); }
.pt-5 { padding-top: 5px; }
.pt-8 { padding-top: 8px; }
.pt-16 { padding-top: 16px; }
.pt-40 { padding-top: 40px; }
.pt-80 { padding-top: 80px; }
.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-5 { padding-bottom: 5px; }
.pb-8 { padding-bottom: 8px; }
.pb-16 { padding-bottom: 16px; }
.pb-24 { padding-bottom: 24px; }
.pb-40 { padding-bottom: 40px; }
.pb-64 { padding-bottom: 64px; }
.pb-80 { padding-bottom: 80px; }
.pl-13 { padding-left: 13px; }
.pr-lg { padding-right: var(--space-lg); }
.pr-14 { padding-right: 14px; }
.aspect-square { aspect-ratio: 1; min-height: 0; }
.basis-27 { flex-basis: 27px; }
.basis-33p { flex-basis: 33.33%; }
.basis-65 { flex-basis: 65px; }
.basis-66p { flex-basis: 66.66%; }
.basis-100p { flex-basis: 100%; }
.basis-120 { flex-basis: 120px; }
.basis-150 { flex-basis: 150px; }
.basis-280 { flex-basis: 280px; }
.border { border: 1px solid var(--color-tint); }
.border-0 { border: 0; }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.border-right { border-right: 1px solid var(--color-tint); }
.border-top { border-top: 1px solid var(--color-border); }
.border-1 { border: 1px solid var(--color-border); }
.cover-img-pos-76-41 { object-position: 76% 41%; }
.cover-overlay-black { --cover-overlay: var(--color-black); }
.cover-dim-50 { --cover-dim: 0.5; }
.cover-dim-70 { --cover-dim: 0.7; }
.cover-overlay-577aac { --cover-overlay: #577aac; }
.flex-col { flex-direction: column; }
.fs-20 { font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.625), 20px); }
.fs-21 { font-size: clamp(14.082px, 0.88rem + ((1vw - 3.2px) * 0.721), 21px); }
.fs-22 { font-size: clamp(14.642px, 0.915rem + ((1vw - 3.2px) * 0.766), 22px); }
.fs-24 { font-size: clamp(15.747px, 0.984rem + ((1vw - 3.2px) * 0.86), 24px); }
.fs-25 { font-size: clamp(16.293px, 1.018rem + ((1vw - 3.2px) * 0.907), 25px); }
.fs-29 { font-size: clamp(1.146rem, 1.146rem + ((1vw - 0.2rem) * 1.09), 1.8rem); }
.fs-32 { font-size: clamp(20px, 1.25rem + ((1vw - 3.2px) * 1.25), 32px); }
.fs-35 { font-size: clamp(1.352rem, 1.352rem + ((1vw - 0.2rem) * 1.413), 2.2rem); }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.gap-0 { gap: 0; }
.gap-lg { gap: var(--space-lg); }
.gap-md-0 { gap: var(--space-md) 0; }
.gap-sm { gap: var(--space-sm); }
.gap-xl { gap: var(--space-xl); }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.lh-normal { line-height: 1.5; }
.lh-2 { line-height: 2; }
.measure-64 { --measure: 64px; }
.measure-280 { --measure: 280px; }
.measure-1280 { --measure: 1280px; }
.min-h-32 { min-height: 32px; }
.min-h-200 { min-height: 200px; }
.min-h-270 { min-height: 270px; }
.min-h-281 { min-height: 281px; }
.min-h-625 { min-height: 625px; }
.nowrap { flex-wrap: nowrap; }
.rounded { border-radius: 5px; }
.rounded-pill { border-radius: 100px; }
.rounded-sm { border-radius: 2px; }
.spacer-60 { height: 60px; }
.spacer-100 { height: 100px; }
.spacer-180 { height: 180px; }
.tracking-lg { letter-spacing: 2.56px; }
.tracking-sm { letter-spacing: 0.44px; }
.tracking-xl { letter-spacing: 3.94px; }
.tracking-xxl { letter-spacing: 8.61px; }
.tracking-1 { letter-spacing: 1px; }
/* @utilities-end */
