/* スマホ専用スタイル（max-width: 750px）— PC用 index.css は変更しない */

@media screen and (max-width: 750px) {
  /* --- ページ全体 --- */
  body {
    margin: 0;
    overflow-x: hidden;
  }

  .w-default {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page,
  .container,
  .container3,
  .main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .main {
    padding: 12px 15px 16px !important;
    align-items: stretch !important;
  }

  .container {
    width: 100% !important;
  }

  .container3 {
    padding: 0 !important;
  }

  /* サイドバー + メイン → 縦積み */
  .container4 {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    row-gap: 0 !important;
  }

  /* 左サイドバーはモバイルでは非表示（メニュー内に電話番号） */
  .sidebar {
    display: none !important;
  }

  .content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 28px !important;
    flex: 1 1 auto !important;
  }

  .container-parent,
  .container13,
  .information-area,
  .symptoms-holder,
  .table-body-row-data-wrapper,
  .table-body-row-data2,
  .table2,
  .table-body-row-data-container,
  .table-body-row-data4,
  .container25,
  .table3,
  .quick-access,
  .table-body-row-data-frame,
  .table-body-row-data6,
  .table-body-row-data7,
  .table-body-row-data8,
  .table-body-row-data9,
  .instructions-parent,
  .table-body2,
  .operation,
  .table-body-row-data12,
  .table4,
  .table5,
  .frame-parent,
  .time-table,
  .container54,
  .container55,
  .content-inner,

  .table-body-row-data-wrapper,
  .table-body-row-data-container,
  .table-body-row-data-frame,
  .operation {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .table-body-row-data2 {
    padding: 16px 0 40px !important;
  }

  .table-body-row-data4,
  .table-body-row-data6 {
    padding: 16px !important;
  }

  /* --- ヒーロー --- */
  .header {
    min-height: 0 !important;
    background-size: cover;
    background-position: center top;
  }

  .container2 {
    width: 100% !important;
    padding: 48px 0 100px !important;
    overflow: visible !important;
  }

  .h2 {
    font-size: 14px !important;
    line-height: 1.4;
    padding: 0 8px;
  }

  .container13 {
    padding: 8px 0 !important;
  }

  .background4 {
    width: auto !important;
    max-width: 100%;
  }

  /* --- ヒーロー紹介文 --- */
  .hero-intro {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-intro .table-body-row-data2 {
    padding: 16px 0 48px !important;
    align-items: center !important;
  }

  .hero-intro .container14 {
    font-size: var(--fs-22) !important;
    align-items: center !important;
  }

  .hero-intro .h1 {
    font-size: inherit !important;
    text-align: center !important;
    line-height: 1.35;
  }

  .hero-intro__body {
    padding-top: 20px !important;
    gap: 0;
  }

  .hero-intro__body .div7 {
    font-size: var(--fs-16) !important;
    line-height: 1.65 !important;
    text-align: center !important;
  }

  .container14,
  .table2,
  .body-row-data2 {
    width: 100% !important;
    align-items: center !important;
  }

  .h1 {
    font-size: 22px !important;
    text-align: center;
  }

  .div7,
  .div18,
  .whowfcja,
  .div33 {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
  }

  .table-body-row-data3,
  .table-body-row-data5,
  .table-body-row-data11 {
    width: 100% !important;
  }

  .section-bar {
    max-width: 100% !important;
    padding: 14px 12px !important;
    gap: 6px !important;
  }

  .section-bar__title {
    font-size: clamp(15px, 4.5vw, 18.7px) !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    padding: 4px 8px !important;
  }

  /* --- 当院の特徴 --- */
  .features {
    align-items: center !important;
    gap: 0 !important;
  }

  .features__card {
    max-width: 100% !important;
    padding: 28px 16px 24px !important;
    box-shadow: var(--shadow-drop) !important;
  }

  .feature-block {
    padding: 12px 0 18px !important;
  }

  .feature-block__head {
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
  }

  .feature-block__title,
  .feature-block__badge {
    font-size: clamp(15px, 4.2vw, 18.7px) !important;
  }

  .feature-block__num {
    font-size: clamp(15px, 4.2vw, 18.7px) !important;
  }

  .feature-block__body p {
    font-size: var(--fs-16) !important;
    line-height: 1.65 !important;
    text-align: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* --- お悩みセクション（チェックリスト＋メッセージ） --- */
  .timeslot {
    gap: 0 !important;
    width: 100%;
    align-items: center !important;
  }

  .cases-checklist {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 16px !important;
  }

  .cases-checklist .background5 {
    height: auto !important;
    min-height: 36px;
    align-items: flex-start !important;
    padding: 8px 4px !important;
  }

  .cases-checklist .div13,
  .cases-checklist .div14,
  .cases-checklist .div15,
  .cases-checklist .div16,
  .cases-checklist .div17 {
    width: auto !important;
    height: auto !important;
    flex: 1;
    line-height: 1.5 !important;
    font-size: var(--fs-16) !important;
    text-align: left !important;
  }

  .cases-message {
    max-width: 100% !important;
    padding: 20px 0 28px !important;
  }

  .cases-message__lead {
    font-size: clamp(15px, 4.2vw, 18.7px) !important;
    font-weight: 500 !important;
  }

  .cases-message__emphasis {
    font-size: clamp(15px, 4.2vw, 18.6px) !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
  }

  .wrapper {
    flex: 1;
    min-width: 0;
  }

  /* --- 料金表：縦積み --- */
  .instructions-parent {
    gap: 24px !important;
    align-items: center !important;
  }

  .instructions {
    gap: 20px !important;
    width: 100%;
    align-items: center !important;
  }

  .instructions-parent .pricing {
    gap: 0 !important;
    width: 100% !important;
  }

  .instructions-parent .pricing .section-bar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .instructions-parent .pricing .pricing__wrap {
    margin-top: var(--gap-1) !important;
    width: 100% !important;
  }
  
  .operation,
  .pricing {
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    align-items: center !important;
  }

  .pricing__wrap {
    max-width: 100% !important;
    gap: var(--gap-1) !important;
    padding: 0 !important;
    box-shadow: var(--shadow-drop-1) !important;
  }

  .price-table {
    width: 100% !important;
  }

  .price-table__head {
    font-size: clamp(14px, 3.8vw, 16px) !important;
    padding: 14px 8px !important;
  }

  .price-table__row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }

  .price-table__cell {
    min-height: 48px !important;
    padding: 12px 6px !important;
    font-size: clamp(13px, 3.5vw, 16px) !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .price-table__cell--label {
    font-weight: 700 !important;
  }

  .container-icon {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
  }

  /* --- 診療時間テーブル --- */
  .table-body-row-wrapper {
    height: auto !important;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-body-row {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .data15,
  .data40 {
    width: 100% !important;
    min-width: 0 !important;
  }

  .table6,
  .table7 {
    width: 100% !important;
    max-width: 100%;
  }

  .table7 {
    padding: 20px 12px !important;
  }

  .row8,
  .row9 {
    flex-wrap: wrap !important;
    justify-content: center;
  }

  .horizontalborder {
    flex-wrap: wrap;
    justify-content: center;
  }

  .extra-notices {
    padding: 0 4px;
    text-align: left;
  }

  /* --- 下部イラスト：1列 --- */
  .table-body-row2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    grid-template-columns: none !important;
    gap: 20px !important;
    padding: 20px 0 32px !important;
  }

  .data-table-body-row-da {
    width: 100%;
    align-items: center;
  }

  .container-icon2,
  .container-icon4 {
    width: 100% !important;
    max-width: 280px;
  }

  /* --- 画像一般 --- */
  .jpg-icon,
  .jpg-icon2,
  .jpg-icon3,
  .gif-icon {
    width: 100% !important;
    max-width: 280px;
    height: auto !important;
    object-fit: contain;
  }

  /* --- フッター（親の余白を打ち消して全幅背景） --- */
  .footer {
    width: calc(100% + 30px) !important;
    max-width: none !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding: 28px 15px 36px !important;
    box-sizing: border-box;
  }

  .footer {
    font-size: var(--fs-24) !important;
  }

  .footer__logo {
    width: 100%;
    max-width: 313px;
    height: auto;
    min-height: 44px;
    object-fit: contain;
  }

  .footer__tagline {
    font-size: var(--fs-18_7) !important;
  }

  .footer__clinic {
    font-size: inherit !important;
  }

  .footer__phone-box {
    max-width: calc(100% - 30px);
  }

  .footer__note {
    font-size: var(--fs-16) !important;
  }

  .footer__nav-row {
    font-size: 10.5px !important;
    padding-left: 4px;
    padding-right: 4px;
  }

  .footer__copy {
    font-size: 15.1px !important;
    max-width: 100%;
  }

  /* --- 固定ヘッダー + ハンバーガー（Locofy水色ボタン維持） --- */
  .backgroundborder {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 1000;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    min-height: 56px;
    box-sizing: border-box;
    gap: 8px;
  }

  .page {
    padding-top: 72px !important;
  }

  .menu {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto;
    order: 1;
  }

  .container70 {
    height: auto !important;
    min-height: 48px;
    padding: 0 8px 4px !important;
    align-items: center !important;
    gap: 8px;
  }

  .link-1685759154084391400png {
    width: 48px !important;
    height: 48px !important;
  }

  /* .b32 {
    width: auto !important;
    height: auto !important;
    font-size: 13px !important;
    line-height: 1.3;
    flex: 1;
    text-align: left;
  } */

  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    order: 2;
    flex-shrink: 0;
    background-color: #b0cfd2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-inter), Inter, sans-serif;
    cursor: pointer;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  .hamburger-btn:focus-visible {
    outline: 2px solid var(--color-darkcyan);
    outline-offset: 2px;
  }

  #mobile-menu {
    display: none;
    order: 4;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--color-gainsboro);
    padding: 8px 0 12px;
    box-sizing: border-box;
  }

  #mobile-menu.is-open {
    display: flex !important;
  }

  .navmargin {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: left;
  }

  .navmargin .list {
    width: 100% !important;
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0;
  }

  .item,
  .item2 {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding: 12px 16px !important;
    gap: 4px !important;
    align-items: flex-start !important;
    border-bottom: 1px solid var(--color-gainsboro);
  }

  .margin {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 15px 0 !important;
    order: 5;
  }

  .margin .table8,
  .container71,
  .container72 {
    width: 100% !important;
  }

  .link7 {
    width: 100%;
    background: var(--color-mediumseagreen) !important;
    border-radius: 8px;
    padding: 14px !important;
  }

  .link7 .background {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .navmargin .link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .phone-number-area {
    font-size: 16px !important;
  }

  /* モバイル用：ヒーロー直後の予約CTA */
  .mobile-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px 12px;
    margin: 0;
  }

  .container > .mobile-cta {
    padding-top: 8px;
  }

  .mobile-cta__btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: var(--color-mediumseagreen);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    font-family: var(--font-inter), Inter, sans-serif;
    box-sizing: border-box;
  }
}

/* PCではモバイル専用要素を非表示・ヘッダーは従来レイアウト */
.mobile-cta {
  display: none;
}

.hamburger-btn {
  display: none;
}

@media screen and (min-width: 751px) {
  #mobile-menu {
    display: contents;
  }

  .mobile-cta {
    display: none !important;
  }
}

/* 症状リスト（ul化）のリセット */
.table-body-row-data-container {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.table-body-row-data-container > li {
  list-style: none;
}

.br-sp {
  display: inline;
}

@media (min-width:768px) {
  .br-sp {
    display: none;
  }
}

.indent-text{
  text-indent: 1em;
}


/* ベースの設定（元のデザインを完全維持） */
.profile-section {
  margin-bottom: 50px;
  font-size: 15px; /* 元の文字サイズ */
}

.profile-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.profile-label {
  width: 140px;
  flex-shrink: 0;
}

.profile-content {
  flex: 1;
  min-width: 300px;
  line-height: 1.6; /* スマホで文字が詰まりすぎないよう、行間だけ少し確保 */
}

.profile-link {
  color: blue; /* 元のリンク色 */
  text-decoration: underline;
}

/* =========================================
   スマホ表示用（750px以下）
========================================= */
@media screen and (max-width: 750px) {
  .profile-row {
    flex-direction: column; /* 横並びから「縦並び」に変更 */
    margin-bottom: 25px;
  }
  
  .profile-label {
    width: 100%;
    margin-bottom: 5px; /* タイトルと文章の間に少しだけ余白 */
  }
  
  .profile-content {
    min-width: 100%; /* 横幅いっぱいに広げる */
  }
}


/* プロフィール全体の設定 */
.profile-list {
  margin-bottom: 50px;
  font-size: 15px;
  line-height: 1.6; /* 行間を少し広げて読みやすく */
  color: #333;
}

/* 各項目のラッパー（PC時は横並び） */
.profile-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px dotted #ccc; /* 項目間に区切り線を引くと見やすいです */
  padding-bottom: 20px;
}
.profile-item:last-child {
  border-bottom: none;
}

/* 見出し部分（好きなもの、など） */
.profile-title {
  width: 140px;
  flex-shrink: 0;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px; /* スマホで縦に落ちた時の余白 */
}
.profile-title::after {
  content: "："; /* CSSでコロンを付与 */
}

/* 説明文エリア */
.profile-desc {
  flex: 1;
  min-width: 300px;
  margin: 0;
}

.profile-desc p {
  margin: 0 0 10px 0; /* 段落ごとの余白 */
}
.profile-desc p:last-child {
  margin-bottom: 0;
}

/* 箇条書きリストの設定 */
.likes-list {
  margin: 0;
  padding-left: 20px; /* リストのインデント */
}
.likes-list li {
  margin-bottom: 10px; /* リスト項目間の余白 */
}

/* 補足テキスト（括弧の中身など） */
.note {
  display: block; /* 改行させる */
  font-size: 0.9em; /* 少し小さく */
  color: #666;      /* 少し薄いグレーに */
  margin-top: 4px;
}

/* リンクの設定 */
.text-link {
  color: #0056b3;
  text-decoration: underline;
}
.text-link:hover {
  text-decoration: none;
}

/* =========================================
   スマホ表示用（750px以下）
========================================= */
@media screen and (max-width: 750px) {
  .profile-item {
    flex-direction: column; /* 強制的に縦並びに変更 */
  }
  
  .profile-title {
    width: 100%;
    margin-bottom: 10px;
    color: var(--color-limegreen, #32cd32); /* スマホ時は見出しに色をつけると見やすいです */
  }
  
  .profile-desc {
    min-width: 100%; /* 横幅いっぱいにする */
  }
  
  .likes-list {
    padding-left: 1.2em; /* スマホ画面の無駄な余白を減らす */
  }
}




/* --- スマホ画面（768px以下）用：ヘッダー完全版 --- */
@media screen and (max-width: 768px) {
  
  /* 1. ヘッダーの大枠 */
  header.backgroundborder {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important; /* ★追加：無駄に広がった高さを自動でピタッと収める */
    min-height: 0 !important; /* ★追加：元の固定高さを打ち消す */
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* 2. メニューの中身 */
  #mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important;
    z-index: 999 !important;
  }

  /* 3. ロゴとテキストのグループ */
  header.backgroundborder .menu {
    flex: 1 1 auto !important;
    width: auto !important; 
    min-width: 0 !important;
    margin: 0 !important;
  }

  .container70 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
  }

  .site-branding {
    flex-shrink: 0 !important;
    margin-right: 8px !important;
  }

  /* 4. 文字の隙間（行間）をキュッと詰める */
  .b32 {
    position: static !important;
    transform: none !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    line-height: 1.1 !important; /* ★ 1.3 から 1.1 に縮めて行間を詰める */
  }

  /* ★ block を inline-block に戻して2重改行を防ぐ */
  .logo-sub {
    font-size: 10px !important; 
    display: inline-block !important; 
  }
  .logo-main {
    font-size: 14px !important;
    display: inline-block !important;
  }

  /* 5. メニューボタン */
  #hamburger-btn {
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    position: relative !important;
  }
  /* 6. ヘッダー直下の無駄な空白を消す */
  .page, main {
    padding-top: 0 !important; /* 過去の72pxの余白をリセット */
    margin-top: 0 !important;
  }
  
  /* もし画像自体に余白がついている場合の念押し */
  .container {
    margin-top: 0 !important;
  }
}