@charset "UTF-8";

/* ==========================================================================
    1. レイヤー優先順位の宣言
   ========================================================================== */
@layer reset, base, components, page;

/* ==========================================================================
    2. baseレイヤー（サイト全体の基本設計）
   ========================================================================== */
@layer base {
  :root {
    /* --- フォント設定 --- */
    --font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    --font-base: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --font-h1: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --font-h2: clamp(0.875rem, 0.7rem + 0.6vw, 1.25rem);
    --font-h3: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
    --font-small: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    
    /* --- カラーパレット --- */
    --primary-color: #998675;
    --secondry-color: #c7b299;
    --tertiary-color: #ddd1c2;
    --accent-color: #736357;
    --accent-color-ore: #d09a57;
    --gray-color: #666666;
    --light-gray-color: #e6e6e6;
    --text-color: #1a1a1a;
    --bg-light: #ebe3da;
    --bg-color: #ffffff;
    --bg-ex-light-color: #f4f4f4;
    --gray-bg: #f5f7fa;
    --border-color: #e0e0e0;

    /* --- ボーダーラディウス --- */
    --radius-sm: 0.4rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.6rem;
    --radius-xl: 2.2rem;

    /* --- シャドウ --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-md-under: 0 4px 7px rgba(0, 0, 0, 0.1);

    /* --- 余白設定 --- */
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(2rem, 4vw, 3rem);
    --space-xl: clamp(3rem, 6vw, 8rem);
    --space-exl: clamp(5rem, 8vw, 10rem);
  }

 
  /* --- 基本スタイル --- */

/* body と html の横スクロール防止 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

  body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

body {
  /* 上部：ノッチ対策 */
  padding-top: constant(safe-area-inset-top); /* iOS < 11.2 */
  padding-top: env(safe-area-inset-top);      /* iOS >= 11.2 */
  
  /* 下部：ホームバー対策 */
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}


  a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  a:hover {
    opacity: 0.7;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.3;
    font-weight: 700;
  }
}

/* ==========================================================================
    3. componentsレイヤー（レイアウト・共通パーツ）
   ========================================================================== */
@layer components {

  /* --- レスポンシブレイアウト --- */
  #wrapper {
    width: 100%;
    background-color: var(--bg-color);
    overflow-x: hidden;
    max-width: 100%;
  }

  /* ========================================================================
    レイアウト
     ======================================================================== */

  /* --- 下層ページ ---*/ 
      .container--low {
        width: min(100% - 2rem, 960px);
        margin-inline: auto;
    }

    /* 入れ子になったcontainer--lowはパディングを引き継がない */
    .container--low .container--low {
        width: 100%;
    }

    /* bg-big内のcontainer--lowも正しく中央寄せ */
    .bg-big .container--low {
        width: min(100% - 2rem, 960px);
        margin-inline: auto;
    }
    
  /* --- コンテナ --- */
  .container,
  .footer {
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
  }

  /* --- 自動グリッド --- */
  .grid-auto {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  }

  /* --- コンテンツエリア（コンテナクエリ） --- */
  .l-content-area {
    container-type: inline-size;
    container-name: content;
  }

  .c-feature-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  @container content (min-width: 600px) {
    .c-feature-block {
      flex-direction: row;
    }
    .c-feature-block > .c-col--main { flex: 2; min-width: 0; }
    .c-feature-block > .c-col--sub  { flex: 1; min-width: 0; }
  }

  .grid-container {
    display: grid;
    gap: var(--space-md);
  }

  .grid-center {
    margin-inline: auto;
    width: fit-content;
  }

  .grid-center a {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: left;
  }

  /* 狭い画面: 1列 */
  @container content (max-width: 599px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  }

  /* 中くらいの画面: 2列 */
  @container content (min-width: 600px) and (max-width: 899px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* 広い画面: 3列 */
  @container content (min-width: 900px) {
    .grid-container {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* --- 2カラム（均等） --- */
  .l-1col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .l-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  @media (min-width: 992px) {
    .l-2col {
      grid-template-columns: 1fr 300px;
    }
  }


  /* ========================================================================
    ヘッダー
     ======================================================================== */

  /* --- 基本スタイル（モバイル） --- */
  #header {
    background-color: white;
    padding: 0;
    /* パディングを削除 */
    position: relative;
  }

  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .header-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    padding: 10px 90px 10px 15px;
    /* 上下左右のパディング */
  }

  /* --- ロゴ --- */
  #branding {
    flex-shrink: 0;
    /* 縮小を防止 */
    order: 1;
    line-height: 1;
    min-width: 150px;
    /* 最小幅を確保 */
  }

  #branding img {
    max-height: 50px;
    /* モバイルでは少し小さめに */
    min-height: 40px;
    /* 最小高さを確保 */
    width: auto;
    display: block;
    vertical-align: top;
  }

  #branding a {
    display: block;
  }

  #site-title h1,
  #site-description h1 {
    margin: 0;
    line-height: 1.8;
    font-size: 10px;
  }

  #site-title,
  #site-description {
    line-height: 1.8;
  }

  /* --- 住所（モバイルでは非表示） --- */
  .head-access {
    display: none;
  }

  /* --- PC/SP表示切り替え --- */
  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
    order: 2;
  }

  /* --- ハンバーガーメニュー --- */
.header-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--secondry-color);
  border: none;
  cursor: pointer;
  padding: 0 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
  gap: 0;
}

.header-hamburger::before {
  content: 'MENU';
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 40px;
}

.header-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  /* margin-bottom: 4px; は .hamburger-linesのgapで代用されるため削除します */
}

/* アクティブ時（×に変化） */
.header-hamburger.active::before {
  content: 'CLOSE';
}

.header-hamburger.active span:nth-child(1) {
  /* gap:6px + height:2px を考慮し、移動量を8pxにして中心で綺麗にクロスさせます */
  transform: translateY(8px) rotate(45deg);
}

.header-hamburger.active span:nth-child(2) {
  opacity: 0;
  background-color: transparent; /* Safariなどのバグ対策として確実に見えなくします */
  transform: scaleX(0); /* 追加すると中央にスッと縮む綺麗なアニメーションになります */
}

.header-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

  /* --- ナビゲーションメニュー --- */
  /* --- フルスクリーンナビ --- */
  .sp-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sp-nav.open {
    transform: translateX(0);
  }

  /* ロゴエリア */
  .sp-nav__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
  }

  .sp-nav__logo-svg {
    width: 52px;
    height: auto;
  }

  /* --- アイコンカードグリッド（4×1） --- */
  .sp-nav__icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px 16px 12px;
    background: #fff;
  }

  .sp-nav__icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 4px 12px;
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 0;
    text-decoration: none;
    transition: background 0.15s;
  }

  .sp-nav__icon-card:hover {
    background: rgba(115, 99, 87, 0.06);
  }

  .sp-nav__icon-card:active {
    opacity: 0.75;
  }

  .sp-nav__icon-card svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .sp-nav__icon-card span {
    color: var(--accent-color);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.03em;
    line-height: 1.5;
    text-align: center;
  }

  /* --- ナビリスト --- */
  .sp-nav__list {
    list-style: none;
    padding: 12px 16px 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* 通常リスト（ボーダー囲い） */
  .sp-nav__item a.nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--accent-color);
    transition: background 0.15s;
  }

  .sp-nav__item a.nav-btn::after {
    content: '›';
    color: var(--accent-color);
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
  }

  .sp-nav__item a.nav-btn:hover {
    background: rgba(115, 99, 87, 0.06);
  }

  .sp-nav__item a.nav-btn.external::after {
    content: '↗';
    font-size: 14px;
  }

  /* --- 診療メニュー（アコーディオン・ボーダー囲い） --- */
  .sp-nav__accordion-wrap {
    border: 1px solid var(--accent-color);
  }

  .sp-nav__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: transparent;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.03em;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s;
  }

  .sp-nav__accordion-trigger:hover {
    background: rgba(115, 99, 87, 0.06);
  }

  .accordion-icon {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
  }

  .accordion-icon::before,
  .accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .accordion-icon::before {
    width: 11px;
    height: 2px;
    top: 8px;
    left: 3.5px;
  }

  .accordion-icon::after {
    width: 2px;
    height: 11px;
    top: 3.5px;
    left: 8px;
  }

  .sp-nav__accordion-trigger.open .accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
  }

  /* サブメニュー（囲いなし・下層） */
  .sp-nav__submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
  }

  .sp-nav__submenu.open {
    max-height: 700px;
    border-top: 1px solid var(--accent-color);
  }

  .sp-nav__submenu li a {
    display: flex;
    align-items: center;
    padding: 11px 16px 11px 28px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #e8e2de;
    transition: background 0.15s;
  }

  .sp-nav__submenu li:last-child a {
    border-bottom: none;
  }

  .sp-nav__submenu li a::before {
    content: '─';
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 10px;
    opacity: 0.6;
  }

  .sp-nav__submenu li a:hover {
    background: rgba(115, 99, 87, 0.05);
  }

 /* ==========================================================
     PCグローバルメニュー
     ========================================================== */
  
  /* メニュー全体（769px以上でのみ表示） */
  .header-menu {
    display: none;
    background-color: #fff; /* ヘッダーの背景色 */
    /*border-bottom: 1px solid #ddd;*/
  }

  @media (min-width: 769px) {
    .header-menu {
      display: block;
      width: 100%;
      position: relative; 
    }

    /* メニューのラッパー */
    .menuH-wrapper {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      list-style: none;
      margin: 0 auto;
      padding: 0;
      gap: 0;
      max-width: 1200px; /* 必要に応じてヘッダーの最大幅を設定 */
    }

    /* 各メニュー項目 */
    .menuH-wrapper > li {
      /* ★修正ポイント2: ここが relative だとサブメニューが li の幅基準になってしまうので static にする */
      position: static;
      flex: 0 1 auto;
    }

    /* PCメニューリンク */
    .menuH-wrapper > li > a {
      display: block;
      padding: 15px 20px;
      color: var(--primary-color, #998675);
      text-decoration: none;
      font-size: 14px;
      white-space: nowrap;
      transition: background-color 0.3s ease, color 0.3s ease;
      border-right: 1px solid #ddd;
    }

    .menuH-wrapper > li:first-child > a {
      border-left: 1px solid #ddd;
    }

    /* ホバー時 */
    .menuH-wrapper > li > a:hover {
      background-color: var(--tertiary-color, #ddd1c2);
      color: var(--accent-color, #736357);
    }

    /* サブメニューを持つ項目 */
    .menuH-wrapper > li.overNav > a::after {
      content: '▼';
      font-size: 10px;
      margin-left: 5px;
      vertical-align: middle;
    }

    /* ==========================================================
       サブメニュー（ドロップダウン）
       ========================================================== */

    /* サブメニューラッパー */
    .sub-wrapper {
      position: absolute;
      top: 100%;
      /* ★修正ポイント3: 基準が .header-menu になったので left: 0 と width: 100% だけで画面いっぱいになる */
      left: 0;
      width: 100%; 
      background-color: #fff;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
      z-index: 1000;
      
      /* 以前の margin-left ハックは削除 */
    }

    /* ホバー時にサブメニュー表示 */
    .menuH-wrapper > li.overNav:hover .sub-wrapper {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* サブメニューコンテナ */
    .sub-container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 30px 20px;
    }

    /* サブメニュー内部 */
    .sub-inner {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    /* サブメニューの各カテゴリ */
    .sub-overNav {
      font-weight: 700;
      font-size: 16px;
      color: var(--text-color, #1a1a1a);
      margin-bottom: 10px;
    }

    /* サブメニューのリスト */
    .sub-overNav > ul {
      list-style: none;
      margin: 10px 0 0 0;
      padding: 0;
    }

    .sub-overNav > ul > li {
      margin-bottom: 8px;
    }

    .sub-overNav > ul > li > a {
      display: block;
      padding: 5px 0;
      color: var(--gray-color, #666);
      text-decoration: none;
      font-size: 14px;
      font-weight: normal;
      transition: color 0.3s ease, padding-left 0.3s ease;
      position: relative;
    }

    /* サブメニューリンクの左にハイフン */
    .sub-overNav > ul > li > a::before {
      content: '- ';
      color: var(--primary-color, #998675);
    }

    /* サブメニューリンクホバー */
    .sub-overNav > ul > li > a:hover {
      color: var(--primary-color, #998675);
      padding-left: 10px;
    }
  }

  /* ==========================================================
     レスポンシブ調整 (ネストを解除して外に配置)
     ========================================================== */

  /* 画面幅が狭い場合（769px〜1000px） */
  @media (min-width: 769px) and (max-width: 1000px) {
    .menuH-wrapper > li > a {
      padding: 12px 15px;
      font-size: 13px;
    }
    
    /* 文字がはみ出さないようにgapを少し狭くする */
    .sub-inner {
      gap: 15px;
    }
  }

  /* さらに狭い場合（769px〜900px） */
  @media (min-width: 769px) and (max-width: 900px) {
    .menuH-wrapper > li > a {
      padding: 10px 12px;
      font-size: 12px;
    }

    .sub-inner {
      grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
      gap: 20px;
    }
  }

  /* モバイル（768px以下）では非表示 */
  @media (max-width: 768px) {
    .header-menu {
      display: none !important;
    }
  }

  /* --- ヘッダー：タブレット以上（統合・流動的レイアウト） --- */
  @media (min-width: 769px) {
    #header {
      /* 左右の余白を画面幅に応じて可変に（1.25rem=20px, 2.5rem=40px） */
      padding: 20px clamp(1.25rem, 5vw, 2.5rem) 0;
    }

    .header-logo {
      display: flex;
      flex-wrap: nowrap;
      /* 折り返しを防ぎ一行に */
      justify-content: space-between;
      align-items: center;
      /* パーツ間の隙間を 10px 〜 30px で可変 */
      gap: clamp(0.625rem, 2vw, 1.875rem);
    }

    #branding {
      order: 0;
      flex-shrink: 1;
      /* 画面が狭い時にロゴの縮小を許可 */
    }

    #branding img {
      /* ロゴの高さを 50px 〜 80px で可変 */
      height: clamp(3.125rem, 6vw, 5rem);
      width: auto;
      display: block;
    }

    .head-access {
      display: block;
      flex-grow: 1;
      flex-shrink: 1;
      text-align: left;
      padding-left: clamp(0.5rem, 2vw, 1.25rem);
    }

    .head-access p {
      /* 住所の文字サイズを 12px 〜 14px で可変 */
      font-size: clamp(0.75rem, 1vw, 0.875rem);
      margin: 0;
      white-space: nowrap;
      /* 住所の途中で改行させない */
    }

    .head-access img {
      /* 電話番号画像を親要素に合わせて縮小させる */
      width: 100%;
      max-width: 350px;
      height: auto;
      min-width: 250px;
      /* 縮みすぎて数字が消えるのを防ぐ */
      margin-inline: auto;
    }

    /* WEB予約ボタン */
    .button-container {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-shrink: 0;
      /* ボタンが潰れるのを防ぐ */
    }

    .web-reserve-button {
      display: flex;
      align-items: center;
      justify-content: center;
      /* ボタン間の隙間を可変に */
      gap: clamp(0.5rem, 1vw, 0.9375rem);
      background-color: #9d8b7a;
      color: white;
      /* パディングを可変に（上下12-15px, 左右15-20px） */
      padding: clamp(0.75rem, 1.5vw, 0.9375rem) clamp(0.9375rem, 2vw, 1.25rem);
      border: none;
      cursor: pointer;
      text-decoration: none;
      min-width: clamp(11.25rem, 15vw, 13.75rem);
      transition: background-color 0.3s ease;
    }

    .web-reserve-button:hover {
      background-color: #8a7968;
    }

    .globe-icon {
      /* アイコンサイズを 30px 〜 40px で可変 */
      width: clamp(1.875rem, 3vw, 2.5rem);
      height: clamp(1.875rem, 3vw, 2.5rem);
      position: relative;
      flex-shrink: 0;
    }

    .globe-icon::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background-image: url('../img/common/world.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }

    .button-text {
      /* ボタン文字サイズを 16px 〜 20px で可変 */
      font-size: clamp(1rem, 1.5vw, 1.25rem);
      font-weight: 700;
      /* 文字間隔もわずかに可変 */
      letter-spacing: clamp(0.1rem, 0.3vw, 0.25rem);
    }

    /* PC/SP表示切り替え */
    .pc {
      display: block !important;
    }

    .sp {
      display: none !important;
    }

    .header-hamburger {
      display: none;
    }
  }

  /* ========================================================================
    フッター
     ======================================================================== */

  /* --- ロゴ --- */
  .footer .logo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- 地図エリア --- */
  .map {
    width: 100%;
    position: relative;
    /* 追加 */
  }

  .map-inner {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
  }

  .map-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .gmap {
    position: absolute;
    /* 絶対配置に変更 */
    bottom: 20px;
    /* 地図の下から20px */
    left: 50%;
    transform: translateX(-50%);
    /* 中央揃え */
    z-index: 100;
    margin: 0;
  }

  .gmap a {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgba(51, 51, 51, 0.9);
    /* 半透明の黒背景 */
    color: white !important;
    text-decoration: none !important;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    /* 折り返しを防ぐ */
  }

  .gmap a:hover {
    background-color: rgba(51, 51, 51, 1);
    opacity: 1;
  }

  .foot-corp-box {
    width: 100%;
  }

@media (max-width: 768px) {
    #footer .c-feature-block {
        flex-direction: column;
    }
}

  /* PC表示（768px以上）で2列に */
  @media (min-width: 769px) {
    #footer .c-feature-block {
      flex-direction: row;
      gap: 30px;
      align-items: stretch;
    }

    .map {
      flex: 12;
      min-width: 0;
      order: 2;
      position: relative;
      /* 追加 */
    }

    .foot-corp-box {
      flex: 10;
      min-width: 0;
      order: 1;
    }

    .map-inner {
      position: relative;
      width: 100%;
      height: 100%;
      padding-bottom: 0;
    }

    .gmap {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100;
      margin: 0;
    }
  }

  #footer {
    background: var(--gray-bg);
    padding: 4em 0;
  }

  .footer {
    background: var(--gray-bg);
  }

  @media (min-width: 1200px) {
    #footer .c-feature-block {
      gap: 40px;
    }
  }

  /* --- 会社概要テーブル --- */
  .foot-corp table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-top: 1px solid var(--tertiary-color);
    border-bottom: 1px solid var(--tertiary-color);
  }

  .foot-corp tr {
    height: 60px;
  }

  .foot-corp th,
  .foot-corp td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--tertiary-color);
  }

  .foot-corp tr:last-child th,
  .foot-corp tr:last-child td {
    border-bottom: none;
  }

  .foot-corp th {
    position: relative;
    font-weight: 700;
    width: 28%;
    padding-left: 20px;
  }

  .foot-corp th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    border-right: 1px dashed var(--tertiary-color);
  }

  .foot-corp td {
    text-align: left;
    padding-left: 20px;
  }

  .foot-corp a {
    color: rgb(171, 94, 94);
    text-decoration: underline;
  }

  /* --- 診療時間テーブル --- */
  .time-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-md);
  width: 100%;
}

.time-table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  text-align: center;
}

.time-table thead th {
  background: var(--secondry-color);
  font-weight: 700;
  white-space: nowrap;
  font-size: clamp(11px, 2.5vw, 14px); /* 11px-14px */
  padding: clamp(0.4em, 1vw, 0.75em);
}

.time-table th,
.time-table td {
  padding: clamp(0.4em, 1vw, 0.75em) clamp(0.2em, 0.5vw, 0.5em);
  font-size: clamp(10px, 2.2vw, 14px); /* 10px-14px */
  border-bottom: 1px solid var(--secondry-color);
  white-space: nowrap;
}

/* 診療時間列（左端）*/
.time-table tbody th {
  font-size: clamp(9px, 2vw, 13px); /* 9px-13px */
  text-align: center;
}

/* ●マークのサイズ */
.time-table .brown {
  font-size: clamp(12px, 2.5vw, 16px); /* 12px-16px */
  display: inline-block;
}

/* 小さいスマホ用（380px以下） */
@media (max-width: 380px) {
  .time-table thead th {
    font-size: 10px;
    padding: 0.4em 0.15em;
  }
  
  .time-table th,
  .time-table td {
    font-size: 9px;
    padding: 0.4em 0.15em;
  }
  
  .time-table tbody th {
    font-size: 8px;
  }
  
  .time-table .brown {
    font-size: 11px;
  }
}

/* 中型スマホ用（381px-480px） */
@media (min-width: 381px) and (max-width: 480px) {
  .time-table thead th {
    font-size: 11px;
    padding: 0.5em 0.2em;
  }
  
  .time-table th,
  .time-table td {
    font-size: 10px;
    padding: 0.5em 0.2em;
  }
  
  .time-table tbody th {
    font-size: 9px;
  }
  
  .time-table .brown {
    font-size: 12px;
  }
}

/* タブレット以上（481px-768px） */
@media (min-width: 481px) and (max-width: 768px) {
  .time-table thead th {
    font-size: 12px;
  }
  
  .time-table th,
  .time-table td {
    font-size: 11px;
  }
  
  .time-table tbody th {
    font-size: 10px;
  }
  
  .time-table .brown {
    font-size: 14px;
  }
}

/* PC（769px以上） */
@media (min-width: 769px) {
  .time-table thead th {
    font-size: 16px;
  }
  
  .time-table th,
  .time-table td {
    font-size: 14px;
    padding: 0.75em 0.5em;
  }
  
  .time-table tbody th {
    font-size: 16px;
  }
  
  .time-table .brown {
    font-size: 16px;
  }
}

  /* ========================================================================
    共通パーツ
     ======================================================================== */

  /* --- 見出し --- */
  .h1 {
    font-size: 11px;
    font-weight: 300;
    line-height: 1.7;
  }

  .heading_eng {
    font-size: var(--font-h3);
    letter-spacing: 0.3rem;
    text-align: center;
    margin-bottom: var(--space-sm);
  }

  .heading-primary {
    font-size: var(--font-h2);
    letter-spacing: 0.3rem;
    position: relative;
    text-align: center;
    margin-bottom: var(--space-md);
  }

  /* --- ボタン --- */
  .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1em 2.5em;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
  }

  .btn--accent {
    background-color: var(--accent-color);
  }

  /* --- Page Top ボタン --- */
  .pagetop {
    width: 64px;
    height: 64px;
    display: block;
    position: fixed;
    bottom: 0;
    right: 1px;
    z-index: 9999;
    cursor: pointer;
  }

  .pagetop::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 64px 64px;
    border-color: transparent transparent #543f32 transparent;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .pagetop svg {
    width: 13px;
    height: 16px;
    fill: #fff;
    transition: 0.2s ease-out;
    position: absolute;
    bottom: 12px;
    right: 11px;
  }

  /* --- ViewMore（ボタン）--- */
  .view-btn {
    padding-right: 2em;
    text-align: right;
  }

  .link-box {
    border: 1px solid #666;
    text-align: center;
    max-width: 300px;
    margin: 1em auto;
    font-family: 'lubik', sans-serif;
    font-weight: 400;
    position: relative;
  }

  a.link-box {
    color: #666;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5em;
    text-decoration: none;
  }

  .link-box .arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -40px;
    margin: auto;
    width: 75px;
    height: 20px;
  }


  /* --- CTA横固定（PCのみ） -- */

  @media (min-width: 769px) {
    .side-fixed-menu {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      z-index: 1000;
      gap: 4px;
    }

    .side-fixed-menu__item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background-color: var(--primary-color);
      color: #fff;
      text-decoration: none;
      width: 56px;
      padding: 16px 0;
      cursor: pointer;
      transition: width 0.25s ease, background-color 0.25s ease, padding 0.25s ease;
      overflow: hidden;
      position: relative;
    }

    .side-fixed-menu__item__U {
      border-radius: 10px 0 0 0;
      -webkit-border-radius: 10px 0 0 0;
      -moz-border-radius: 10px 0 0 0;
      -ms-border-radius: 10px 0 0 0;
      -o-border-radius: 10px 0 0 0;
      margin-bottom: var(--space-sm);
    }

    .side-fixed-menu__item__D {
      border-radius: 0 0 0 10px;
      -webkit-border-radius: 0 0 0 10px;
      -moz-border-radius: 0 0 0 10px;
      -ms-border-radius: 0 0 0 10px;
      -o-border-radius: 0 0 0 10px;
    }



    /* アイコン */
    .side-fixed-menu__icon {
      width: 1.5rem;
      line-height: 1;
      flex-shrink: 0;
    }

    /* 縦書きテキスト */
    .side-fixed-menu__label {
      writing-mode: vertical-rl;
      text-orientation: upright;
      font-weight: 600;
      letter-spacing: 0.05em;
      line-height: 1;
      white-space: nowrap;
    }
  }

  /* --- CTA固定フッター（モバイルのみ） --- */
  .cta-footer {
    display: none;
  }

  @media (max-width: 768px) {
    .cta-footer {
      display: flex;
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background-color: var(--primary-color);
      z-index: 1000;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .cta-buttons {
      display: flex;
      align-items: flex-start;
      width: 100%;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .cta-buttons li {
      flex: 1;
      border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .cta-buttons li:last-child {
      border-right: none;
    }

    .cta-button {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px;
      color: white;
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      text-align: center;
      transition: background-color 0.3s ease;
      height: 100%;
      letter-spacing: 0.5px;
      object-fit: contain;
    }

    .cta-button:hover,
    .cta-button:active {
      background-color: rgba(255, 255, 255, 0.1);
    }

    body {
      padding-bottom: 60px;
    }
  }

  /* ========================================================================
    ユーティリティクラス
     ======================================================================== */

  /* --- テキストサイズ --- */
  .u-text-sm {
    font-size: var(--font-small)
  }

   .u-text-md {
    font-size: var(--font-h2)
  }

   .u-text-lg {
    font-size: var(--font-h1)
  }

/* 小さいスマホ */
@media (max-width: 480px) {
  .u-font-s {
  font-size: clamp(0.75rem, 0.6rem + 0.5vw, 1rem); /* 12px-16px */
}
}

/* 大きいスマホ・タブレット */
@media (min-width: 481px) and (max-width: 768px) {
  .u-font-s {
  font-size: clamp(0.8125rem, 0.65rem + 0.6vw, 1.125rem); /* 13px-18px */
}
}

/* PC */
@media (min-width: 769px) {
  .u-font-s {
  font-size: clamp(0.875rem, 0.7rem + 0.6vw, 1.25rem); /* 14px-20px */
  }
}
  
  /* ==========================================================
    全画面背景セクション
   ========================================================== */

  /* bg-bigセクション全体を全画面幅に */
  .bg-big {
    position: relative;
    margin-left: calc((100% - 100vw) / 2);
    margin-right: calc((100% - 100vw) / 2);
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

  /* コンテナは中央寄せで幅制限 */
  .bg-big .container {
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
  }

  /* --- ボックス --- */
  [class^="u-box"] {
    padding: var(--space-md, 1.5rem);
    /*border-radius: 8px;*/
    margin-bottom: var(--space-md, 1.5rem);
    background-color: #fff;
  }

  .u-box--border {
    border: 1px solid var(--border-color, #e0e0e0);
  }

  .u-box--border_secondry {
    border: 1px solid var(--secondry-color);
  }

  .u-box--bg {
    background-color: var(--gray-bg, #f9f9f9);
    border: none;
  }

  .u-box--primary {
    border: 1px solid var(--primary-color, #007bff);
    border-left-width: 6px;
    background-color: #f0f8ff;
  }

  .u-box--tertiary {
    background-color: var(--tertiary-color);
  }

  .u-box--accent {
    border: 1px solid var(--accent-color, #ff8c00);
    border-left-width: 6px;
    background-color: #fffaf0;
  }

  .u-box--shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  a.u-box--shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }

  .u-box--scroll {
    height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #ddd);
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
  }

  /* --- 画像 --- */
  .bl-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
  }

  /* 親要素いっぱいに広げる（小さい画像でも余白を出さない） */
  .bl-img--full {
    width: 100%;
    height: auto;
    display: block;
  }

  .img-border {
    padding: 4px;
    border: 1px solid #ccc;
    background: #fff;
}

  /* -- シャドウ -- */
  .shadow-sm {
    box-shadow: var(--shadow-sm);
  }

  .shadow-md {
    box-shadow: var(--shadow-md);
  }

  .shadow-lg {
    box-shadow: var(--shadow-lg);
  }

  .box-shadow--grey {
    box-shadow: 10px 10px 0px 0px rgba(224, 224, 224, 1);
  }

/*　--- マーカー ---*/
.marker01 {
    display: inline;
    background: linear-gradient(rgba(251, 242, 213, 0) 60%, rgba(251, 242, 213, 1) 60%, rgba(251, 242, 213, 1) 90%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* dt・見出しなどブロック要素に使う場合：
   display:block のまま width:fit-content でテキスト幅に背景を絞る
   → margin-bottom が有効になり、行末まで伸びない */
dt.marker01,
h1.marker01, h2.marker01, h3.marker01,
h4.marker01, h5.marker01, h6.marker01,
p.marker01, li.marker01 {
    display: block;
    width: fit-content;
}

.line01 {
        border-bottom: 2px solid var(--secondry-color);
        padding-bottom: 0.2em;
    }

  /* 矢印線 */
  .arrow-line {
    position: relative;
    width: 60%;
    height: 2px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    margin-left: auto;
  }

  /* 斜め左上の線（矢印の先端） - 横線の右端から伸びる */
  .arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    transform-origin: right center;
    transform: rotate(30deg);
    /* 正の角度で左上に */
  }

  /* レスポンシブ調整 */
  @media (max-width: 480px) {
    .arrow-line {
      height: 1px;
    }

    .arrow-line::after {
      width: 12px;
      height: 1px;
    }
  }

  @media (min-width: 481px) {
    .arrow-line::after {
      width: 15px;
    }
  }

  @media (min-width: 769px) {
    .arrow-line::after {
      width: 18px;
    }
  }

  @media (min-width: 1024px) {
    .arrow-line::after {
      width: 20px;
    }
  }

  @media (min-width: 1200px) {
    .arrow-line::after {
      width: 22px;
    }
  }

  /* --- aタグをブロッククリック ---*/
  /* aタグをブロック要素に */
  a.bl-link {
    display: block;
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 親要素の色を継承 */
  }

  /* ホバー時のスタイル（お好みで） */
  a.bl-link:hover {
    opacity: 0.3;
    transition: opacity 0.2s;
  }

  /* --- カラー --- */
  .brown {
    color: var(--secondry-color);
  }

  .underline {
    text-decoration: underline;
  }

  .u-text-pink {
    color: #e12c86;
  }

  .u-text-brown {
    color: #d55500;
}

  .u-text-ore {
   color: var(--accent-color-ore);
}

  .u-text-gray-ore {
    color: var(--secondry-color);
}

  .bg-white {
    background: #fff;
  }

  .bg-light-A {
    background: var(--bg-light);
  }

  .bg-light-B {
    background: var(--tertiary-color);
  }

  .bg-light-C {
    background: var(--bg-ex-light-color);
  }

  .bg-light-D {
    background: var(--light-gray-color);
  }

  .bg-light-E {
    background: var(--secondry-color);
  }

  /* --- 線色 --- */
  .border-w {
  border-color:  #fff;
}

  /* --- 配置 --- */
  .a-left {
    text-align: left;
  }

  .a-right {
    text-align: right;
  }

  .a-center {
    text-align: center;
  }

  .m-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* --- 余白 --- */
  /* 上下のみマージン */
  .u-mb-sm {
    margin-bottom: var(--space-sm) !important;
  }

  .u-mb-md {
    margin-bottom: var(--space-md) !important;
  }

  .u-mb-lg {
    margin-bottom: var(--space-lg) !important;
  }

  .u-mb-0 {
    margin-bottom: 0 !important;
  }

  .u-mt-sm {
    margin-top: var(--space-sm) !important;
  }

  .u-mt-md {
    margin-top: var(--space-md) !important;
  }

  .u-mt-lg {
    margin-top: var(--space-lg) !important;
  }

  /* 左右のみマージン */

  .u-mr-sm {
    margin-right: var(--space-sm) !important;
  }

  .u-mr-md {
    margin-right: var(--space-md) !important;
  }

  .u-mr-lg {
    margin-right: var(--space-lg) !important;
  }

  .u-ml-sm {
    margin-left: var(--space-sm) !important;
  }

  .u-ml-md {
    margin-left: var(--space-md) !important;
  }

  .u-ml-lg {
    margin-left: var(--space-lg) !important;
  }

  /* 全方向のパディング */
  .u-p-sm {
    padding: var(--space-sm);
  }

  .u-p-md {
    padding: var(--space-md);
  }

  .u-p-lg {
    padding: var(--space-lg);
  }

  /* 上下のみ（block方向） */
  .u-pb-sm {
    padding-block: var(--space-sm);
  }

  .u-pb-md {
    padding-block: var(--space-md);
  }

  .u-pb-lg {
    padding-block: var(--space-lg);
  }

   /* 左右のみ（inline方向） */
  .u-pi-sm {
    padding-inline: var(--space-sm);
  }

  .u-pi-md {
    padding-inline: var(--space-md);
  }

  .u-pi-lg {
    padding-inline: var(--space-lg);
  }

  /* パディング（上のみ） */
.u-pu-sm {
    padding-top: var(--space-sm);
  }

.u-pu-md {
    padding-top: var(--space-md);
  }

.u-pu-lg {
    padding-top: var(--space-lg);
  }

  /* パディングなし（下） */
  .u-pt-0 {
    padding-top: 0;
  }
  /* パディングなし（下） */
  .u-pb-0 {
    padding-bottom: 0;
  }

  /* セクション用：上下をゆったり空ける */
  .section-padding {
    padding-block: var(--space-lg);
  }

  /* 画面いっぱい要素 */
  .vw100 {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    /* これで強制的に画面中央へ配置されます */
  }

  /* 1200px制限のあるサイトの場合の補正 */
  @media (min-width: 1200px) {
    .vw100 {
      /* スクロールバーによる横揺れを防ぐための調整 */
      margin-left: 0;
      margin-right: 0;
    }
  }
}