/* ==============================
   カラー変数（ディープブラウン + ゴールド）
   --c-primary : #3d1f1a  深ブラウン
   --c-dark    : #2a1410  最暗ブラウン
   --c-gold    : #c9a060  ゴールド
   --c-hover   : #f0e8e5  薄ベージュ
   --c-tint    : #f5f0eb  オフホワイト
================================ */

/* ==============================
   リセット & ベース
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'YuGothic', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', 'Meiryo', 'ＭＳ ゴシック', sans-serif;
  font-size: 16px;
  color: #333;
  background: #f0e9e2;
  line-height: 2;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==============================
   ページ幅
================================ */
.pagewidth {
  width: 978px;
  margin: 0 auto;
}

/* ==============================
   ヘッダー
================================ */
#headerwrap {
  background: #fff;
}
#header {
  position: relative;
  height: 170px;
  border-bottom: solid 1px #ddd;
}

/* ヘッダー内レイアウト */
.header-brand-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
  height: 100%;
}
#site-logo {
  flex-shrink: 0;
  padding-top: 10px;
}
#site-logo img { display: block; }

/* 右ブロック */
.rb {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.header_btn {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header_btn img { display: block; height: auto; }
.header_btn_reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 14px;
  background: #3d1f1a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.header_btn_reserve:hover { opacity: 0.85; }
.header_info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header_access { display: flex; align-items: center; gap: 10px; }
.header_tel img, .header_time img { display: block; height: auto; }

/* ==============================
   ナビゲーション
================================ */
#main-menu-container {
  background: #fff;
  border-bottom: solid 2px #3d1f1a;
}
#main-menu {
  display: flex;
  width: 978px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
#main-menu > li {
  position: relative;
}
.hnav_none {
  display: none;
}
#main-menu > li > a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: #333;
  white-space: nowrap;
  transition: background 0.15s;
  border-right: 1px solid #ddd;
}
#main-menu > li:first-child > a { border-left: 1px solid #ddd; }
#main-menu > li > a:hover,
#main-menu > li:hover > a {
  background: #f0e8e5;
  color: #3d1f1a;
}
#main-menu .current-menu-item > a,
#main-menu .current_page_item > a {
  background: #3d1f1a;
  color: #fff;
}

/* サブメニュー */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 2px solid #3d1f1a;
  min-width: 200px;
  z-index: 200;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}
#main-menu > li:hover .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #333;
  border-bottom: 1px dotted #ddd;
  transition: background 0.15s;
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: #f0e8e5; color: #3d1f1a; }

/* ==============================
   ハンバーガーメニュー（モバイル）
================================ */
#menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #ddd;
  cursor: pointer;
}
.ham-lines {
  position: relative;
  width: 28px;
  height: 28px;
}
.ham-lines span,
.ham-lines::before,
.ham-lines::after {
  position: absolute;
  display: block;
  left: 0;
  right: 0;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: all 0.25s;
}
.ham-lines span { top: 13px; }
.ham-lines::before { content: ""; top: 5px; }
.ham-lines::after  { content: ""; top: 21px; }
#menu-button.is-active .ham-lines span { opacity: 0; }
#menu-button.is-active .ham-lines::before { transform: translateY(8px) rotate(45deg); }
#menu-button.is-active .ham-lines::after  { transform: translateY(-8px) rotate(-45deg); }
.ham-text { font-size: 10px; line-height: 1; margin-top: 2px; }

/* モバイルメニュー展開時 */
#main-menu-container.is-active {
  position: fixed;
  z-index: 700;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  background: #f5f0eb;
}
#main-menu-container.is-active #main-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 60px 0 20px;
}
#main-menu-container.is-active #main-menu > li { border-bottom: 1px dotted #ccc; }
#main-menu-container.is-active #main-menu > li > a {
  padding: 12px 20px;
  border: none;
  font-size: 1rem;
}
#main-menu-container.is-active .hnav_none { display: block; }
#main-menu-container.is-active .sub-menu {
  display: block;
  position: static;
  border: none;
  border-top: none;
  box-shadow: none;
  background: #e8e0da;
}
#main-menu-container.is-active .sub-menu li a { padding: 8px 32px; }

/* ==============================
   メインコンテンツ
================================ */
#body { background: #f0e9e2; }
#layout { }
#content { }

/* ==============================
   スライダー
================================ */
.slider-wrap {
  width: 978px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}
.slide { flex: 0 0 100%; }
.slide img { width: 100%; display: block; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
}
.slider-dots button.active {
  background: #fff;
  opacity: 1;
}

/* ==============================
   コンテンツセクション共通
================================ */
.section {
  width: 978px;
  margin: 0 auto;
  padding: 30px 0;
}
.section + .section { border-top: 1px solid #eee; }

.section-title {
  font-size: 1.15rem;
  color: #3d1f1a;
  font-weight: bold;
  border-bottom: 1px solid #3d1f1a;
  padding-bottom: 6px;
  margin-bottom: 20px;
}
.section-title--mark::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  background: #c9a060;
  vertical-align: baseline;
}
.section-subtitle {
  font-size: 1rem;
  color: #3d1f1a;
  font-weight: bold;
  margin: 16px 0 8px;
}

/* 矯正治療について カード（写真＋題目） */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.treat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e3d8cf;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.treat-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.treat-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.treat-label {
  position: relative;
  display: block;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: bold;
  color: #3d1f1a;
  border-top: 1px solid #eee;
}
.treat-label::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-style: solid;
  border-width: 0 0 12px 12px;
  border-color: transparent transparent #c9a060 transparent;
}
.treat-card:hover .treat-label { color: #b88e4e; }

/* バナーグリッド */
.bnr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.bnr-grid a { display: block; }
.bnr-grid img { display: block; }

/* 5つの特徴 外観背景セクション */
.section--clinic-bg {
  position: relative;
  padding: 22px 20px;
  border-radius: 10px;
  overflow: hidden;
}
.section--clinic-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/clinic-exterior.jpg') center 20%/cover no-repeat;
  filter: brightness(0.82);
  z-index: 0;
}
.section--clinic-bg > * { position: relative; z-index: 1; }
.section--clinic-bg .section-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
}

/* 5つの特徴 テキストカード */
.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
  max-width: 820px;
}
.feature {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}
.feature-label {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(201, 160, 96, 0.82);
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 5px 9px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  border: 1px solid #fff;
  border-radius: 50%;
  font-size: 0.68rem;
  line-height: 1;
}
.feature-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 9px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.feature-sub {
  font-size: 0.68rem;
  color: #5b4d43;
  margin-bottom: 2px;
}
.feature-main {
  font-size: 0.82rem;
  font-weight: bold;
  color: #2a1410;
  line-height: 1.3;
}

/* ==============================
   お知らせリスト
================================ */
.topics-list { border-top: 1px solid #ddd; }
.topics-list li {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.topics-list .date { color: #888; font-size: 0.85rem; white-space: nowrap; }
.topics-list a { color: #333; }
.topics-list a:hover { color: #c9a060; text-decoration: underline; }
.topics-more { text-align: right; margin-top: 10px; }
.topics-more a {
  color: #3d1f1a;
  font-size: 0.85rem;
  border: 1px solid #3d1f1a;
  padding: 3px 12px;
}
.topics-more a:hover { background: #3d1f1a; color: #fff; }

/* ==============================
   サブページ共通
================================ */
.subpage-header {
  background: #f5f0eb;
  border-bottom: 2px solid #3d1f1a;
  padding: 20px 0;
}
.subpage-header h1 {
  width: 978px;
  margin: 0 auto;
  font-size: 1.5rem;
  color: #3d1f1a;
  font-weight: bold;
}
.subpage-content {
  width: 978px;
  margin: 30px auto 50px;
}

/* ==============================
   矯正治療のメリット
================================ */
.checklist { margin: 16px 0; }
.checklist li {
  padding: 5px 0 5px 20px;
  position: relative;
  border-bottom: 1px dotted #ddd;
  font-size: 0.95rem;
}
.checklist li::before { content: "□"; position: absolute; left: 0; color: #c9a060; }
.merit-effects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.merit-effect-item {
  background: #faf7f4;
  padding: 14px;
  border: 1px solid #3d1f1a;
  border-left: 3px solid #c9a060;
}
.merit-effect-item h4 { color: #3d1f1a; margin-bottom: 6px; font-size: 0.95rem; }
.merit-effect-item p { font-size: 0.88rem; }

/* ==============================
   装置と治療の流れ
================================ */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 16px 0;
}
.device-item { text-align: center; }
.device-item img { margin: 0 auto 8px; border: 1px solid #eee; }
.device-item h4 { font-size: 0.9rem; color: #3d1f1a; font-weight: bold; }
.device-item p { font-size: 0.82rem; margin-top: 4px; line-height: 1.6; }

.flow-steps { margin: 16px 0; }
.flow-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}
.flow-step-num {
  background: #3d1f1a;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.flow-step-body h4 { color: #3d1f1a; font-size: 0.95rem; margin-bottom: 4px; }
.flow-step-body p { font-size: 0.88rem; line-height: 1.7; }

/* ==============================
   治療費
================================ */
.cost-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.cost-table th, .cost-table td { border: 1px solid #ccc; padding: 9px 12px; text-align: center; }
.cost-table th { background: #3d1f1a; color: #fff; }
.cost-table tr:nth-child(even) td { background: #faf7f4; }
.cost-note { font-size: 0.82rem; color: #666; margin-top: 8px; }

/* ==============================
   よくある質問
================================ */
.faq-list { margin: 16px 0; }
.faq-item { border: 1px solid #ddd; margin-bottom: 14px; }
.faq-q {
  background: #3d1f1a;
  color: #fff;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: bold;
  display: flex;
  gap: 8px;
}
.faq-q::before { content: "Q."; font-weight: bold; flex-shrink: 0; }
.faq-a {
  padding: 14px 16px;
  background: #faf7f4;
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-a::before { content: "A."; color: #c9a060; font-weight: bold; flex-shrink: 0; }

/* ==============================
   お問い合わせ
================================ */
.contact-info {
  background: #faf7f4;
  border: 1px solid #ddd;
  border-top: 2px solid #3d1f1a;
  padding: 20px;
  margin-bottom: 30px;
}
.contact-form { max-width: 700px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; }
.required {
  background: #c00;
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f9f9f9;
}
.form-group textarea { height: 150px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #3d1f1a; background: #fff; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 0.9rem; }
.form-check input { margin-top: 4px; flex-shrink: 0; }
.btn-submit {
  background: #3d1f1a;
  color: #fff;
  border: none;
  padding: 12px 48px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  display: block;
  margin: 0 auto;
}
.btn-submit:hover { background: #2a1410; }
.hidden { display: none; }

/* ==============================
   医院案内
================================ */
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table th, .info-table td { border: 1px solid #ddd; padding: 9px 12px; font-size: 0.9rem; vertical-align: top; }
.info-table th { background: #f5f0eb; width: 30%; font-weight: bold; color: #3d1f1a; }
.time-table { width: 100%; border-collapse: collapse; max-width: 460px; }
.time-table th, .time-table td { border: 1px solid #ddd; padding: 7px 12px; font-size: 0.88rem; }
.time-table th { background: #3d1f1a; color: #fff; width: 40%; }
.affiliated ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-top: 10px; }
.affiliated li { font-size: 0.88rem; padding: 3px 0; border-bottom: 1px dotted #ddd; }
.access-block { margin: 20px 0; }
.access-block iframe { width: 100%; height: 300px; border: none; }

/* ==============================
   お知らせ一覧・詳細
================================ */
.topics-index { width: 978px; margin: 30px auto 50px; }
.topics-index-list { border-top: 1px solid #ddd; }
.topics-index-list li { border-bottom: 1px solid #ddd; padding: 12px 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.topics-index-list .date { color: #888; font-size: 0.85rem; white-space: nowrap; }
.topics-index-list a { color: #333; }
.topics-index-list a:hover { color: #c9a060; text-decoration: underline; }

.topic-detail { width: 978px; margin: 30px auto 50px; }
.topic-date { color: #888; font-size: 0.85rem; margin-bottom: 4px; }
.topic-title {
  font-size: 1.3rem;
  color: #3d1f1a;
  font-weight: bold;
  border-bottom: 1px solid #3d1f1a;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.topic-body { white-space: pre-wrap; line-height: 1.9; font-size: 0.95rem; }
.back-link { margin-top: 40px; }
.back-link a {
  color: #3d1f1a;
  border: 1px solid #3d1f1a;
  padding: 7px 18px;
  font-size: 0.88rem;
  display: inline-block;
}
.back-link a:hover { background: #3d1f1a; color: #fff; }

/* ==============================
   サンクスページ
================================ */
.thanks-wrap { text-align: center; padding: 80px 20px; }
.thanks-wrap h1 { font-size: 1.6rem; color: #3d1f1a; margin-bottom: 20px; }
.thanks-wrap p { margin-bottom: 8px; font-size: 0.95rem; }
.btn-home {
  display: inline-block;
  margin-top: 24px;
  background: #3d1f1a;
  color: #fff;
  padding: 10px 32px;
  font-size: 0.95rem;
}
.btn-home:hover { background: #2a1410; }

/* ==============================
   フッター（ライトベージュ）
================================ */
#footerwrap {
  border-top: 3px solid #c9a060;
  background: #ece3d8;
  margin-top: 40px;
}
#footer { }
.footer-inner {
  width: 978px;
  margin: 0 auto;
  padding: 30px 0 16px;
}
.footer-top {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* ブランド・連絡先 */
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo-img {
  display: block;
  max-width: 230px;
  height: auto;
  mix-blend-mode: multiply;
}
.footer-address {
  font-size: 0.85rem;
  color: #5a4738;
  line-height: 1.65;
}
.footer-tel {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-tel .tel-label {
  background: #c9a060;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
}
.footer-tel a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3d1f1a;
  letter-spacing: 0.01em;
}
.footer-tel a:hover { color: #b88e4e; }
.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.footer-badge {
  display: inline-block;
  border: 1px solid #c9a060;
  color: #a87f3e;
  font-size: 0.76rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 3px;
}
.footer-access-btn {
  display: inline-block;
  background: #c9a060;
  color: #fff;
  font-size: 0.88rem;
  font-weight: bold;
  padding: 8px 24px;
  border-radius: 4px;
  transition: background 0.2s;
}
.footer-access-btn:hover { background: #b88e4e; }

/* 診療時間 */
.footer-hours { flex: 0 0 auto; }
.footer-hours-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: #3d1f1a;
  margin-bottom: 8px;
}
.footer-time-table { border-collapse: collapse; font-size: 0.85rem; }
.footer-time-table th, .footer-time-table td {
  border: 1px solid #d8c7b2;
  padding: 7px 16px;
  color: #5a4738;
}
.footer-time-table th {
  background: rgba(201,160,96,0.18);
  color: #8a6a32;
  font-weight: bold;
  white-space: nowrap;
}

/* フッターナビ */
#footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  border-top: 1px solid #d8c7b2;
  padding-top: 14px;
  margin-bottom: 14px;
  list-style: none;
}
#footer-nav li { position: relative; }
.nav02.menu-item-has-children { position: relative; }
#footer-nav > li > a {
  display: block;
  padding: 2px 14px 2px 0;
  font-size: 0.85rem;
  color: #5a4738;
}
#footer-nav > li > a:hover { color: #b88e4e; text-decoration: underline; }
#footer-nav .sub-menu {
  display: block;
  position: static;
  border: none;
  box-shadow: none;
  background: transparent;
  padding-left: 12px;
}
#footer-nav .sub-menu li a {
  font-size: 0.8rem;
  color: #7a6354;
  padding: 1px 0;
  border: none;
}
#footer-nav .sub-menu li a:hover { color: #b88e4e; text-decoration: underline; }

.footer-credit {
  border-top: 1px solid #d8c7b2;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-credit p { font-size: 0.78rem; color: #8a7361; }
.footer-credit .build-num {
  font-size: 0.62rem;
  color: #b3a18d;
  margin-left: auto;
  opacity: 0.7;
}

/* ==============================
   ページトップボタン
================================ */
#pc-backtop {
  display: block;
  position: fixed;
  z-index: 500;
  bottom: 50px;
  right: 50px;
  opacity: 0;
  transition: opacity 0.3s;
}
#pc-backtop.is-visible { opacity: 1; }
#pc-backtop.is-visible:hover { opacity: 0.7; }
#pc-backtop img { display: block; width: 40px; height: auto; }

/* ==============================
   子どもの矯正
================================ */
.habit-list { margin: 16px 0; }
.habit-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px dotted #ddd;
  font-size: 0.92rem;
}
.habit-list li::before { content: "▶"; position: absolute; left: 0; color: #c9a060; font-size: 0.75rem; top: 11px; }
.habit-list strong { color: #3d1f1a; }

/* リスク・副作用 */
.risk-list { margin: 16px 0; }
.risk-list li {
  padding: 7px 0 7px 16px;
  position: relative;
  border-bottom: 1px dotted #eee;
  font-size: 0.9rem;
}
.risk-list li::before { content: "・"; position: absolute; left: 0; color: #3d1f1a; }

/* CTAボタン */
.cta-btn {
  display: inline-block;
  background: #3d1f1a;
  color: #fff;
  padding: 12px 36px;
  font-size: 0.95rem;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}
.cta-btn:hover { background: #2a1410; }

/* ==============================
   レスポンシブ（1080px以下）
================================ */
@media screen and (max-width: 1080px) {
  .pagewidth { width: 100%; padding: 0 12px; }

  /* ヘッダー */
  #header { height: auto; padding-bottom: 8px; padding-top: 4px; }
  .header-brand-container { flex-wrap: wrap; gap: 6px; padding: 6px 12px; }
  #site-logo { padding-top: 0; }
  #site-logo img { max-width: 180px; }
  .rb { align-items: flex-start; }
  .header_btn img { max-height: 36px; }
  .header_access { flex-wrap: wrap; }
  .header_tel img, .header_time img { max-height: 30px; }

  /* ナビ */
  #main-menu-container { }
  #main-menu { width: 100%; flex-direction: row; flex-wrap: wrap; }
  #main-menu > li > a { padding: 8px 10px; font-size: 0.8rem; }
  .sub-menu { min-width: 160px; }

  /* コンテンツ */
  .slider-wrap, .section { width: 100%; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .subpage-header h1 { width: 100%; padding: 0 12px; }
  .subpage-content { width: 100%; padding: 0 12px; }
  .topics-index, .topic-detail { width: 100%; padding: 0 12px; }

  /* 治療費テーブル */
  .cost-table { font-size: 0.78rem; }
  .cost-table th, .cost-table td { padding: 6px 6px; }

  /* フッター */
  .footer-inner { width: 100%; padding: 16px 12px; }
  .footer-top { flex-direction: column; gap: 16px; }
  .affiliated ul { grid-template-columns: 1fr; }
  .merit-effects { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 640px) {
  /* ---- ハンバーガー表示 ---- */
  #menu-button { display: flex; }
  #main-menu-container:not(.is-active) { display: none; }

  /* ---- ヘッダー ---- */
  #header { height: auto; min-height: 56px; padding: 8px 16px 8px 12px; }
  .header-brand-container { padding: 0; align-items: center; }
  #site-logo img { max-width: 160px; }
  /* 電話・時間・SNS・ボタンは小さく折りたたむ */
  .rb { gap: 2px; }
  .header_btn img { max-height: 28px; }
  .header_tel img { max-height: 22px; }
  .header_time img { max-height: 22px; }

  /* ---- ナビ（開いた状態） ---- */
  #main-menu-container.is-active #main-menu > li > a { font-size: 1.05rem; padding: 14px 20px; }

  /* ---- スライダー ---- */
  .slider-wrap { width: 100%; }

  /* ---- セクション共通 ---- */
  .section { padding: 20px 16px; }
  .section-title { font-size: 1rem; }
  .section-subtitle { font-size: 0.92rem; }

  /* ---- サブページ ---- */
  .subpage-header { padding: 14px 0; }
  .subpage-header h1 { font-size: 1.2rem; padding: 0 16px; }
  .subpage-content { padding: 0 16px; margin: 20px auto 36px; }

  /* ---- バナーグリッド ---- */
  .bnr-grid { flex-direction: column; }
  .bnr-grid img { width: 100%; }

  /* ---- 5つの特徴 ---- */
  .features { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ---- 矯正治療について ---- */
  .treat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .treat-label { font-size: 0.85rem; padding: 10px 8px; }

  /* ---- 装置グリッド ---- */
  .device-grid { grid-template-columns: 1fr; }

  /* ---- 悪影響グリッド ---- */
  .merit-effects { grid-template-columns: 1fr; }

  /* ---- フローステップ ---- */
  .flow-step { gap: 12px; padding: 12px 0; }
  .flow-step-num { width: 28px; height: 28px; font-size: 0.85rem; }
  .flow-step-body h4 { font-size: 0.9rem; }

  /* ---- テーブル（横スクロール） ---- */
  .cost-table { font-size: 0.75rem; min-width: 460px; }
  .cost-table th, .cost-table td { padding: 5px 6px; }
  .info-table { font-size: 0.83rem; }
  .info-table th { width: 36%; }
  .time-table { max-width: 100%; font-size: 0.83rem; }

  /* ---- 提携医院 ---- */
  .affiliated ul { grid-template-columns: 1fr; }

  /* ---- CTAボタン ---- */
  .cta-btn { display: block; text-align: center; padding: 14px 20px; font-size: 0.95rem; }
  .btn-submit { width: 100%; padding: 14px 20px; }

  /* ---- FAQ ---- */
  .faq-q { font-size: 0.88rem; padding: 10px 12px; }
  .faq-a { font-size: 0.85rem; padding: 10px 12px; }

  /* ---- お知らせ ---- */
  .topics-index { padding: 0 16px; }
  .topic-detail { padding: 0 16px; }
  .topics-list li { flex-direction: column; gap: 2px; }
  .topics-index-list li { flex-direction: column; gap: 2px; }

  /* ---- フッター ---- */
  .footer-inner { padding: 24px 16px 16px; }
  .footer-top { flex-direction: column; gap: 22px; }
  .footer-tel a { font-size: 1.35rem; }
  .footer-time-table { font-size: 0.8rem; width: 100%; }
  .footer-time-table th, .footer-time-table td { padding: 5px 10px; }
  .footer-hours { width: 100%; }
  #footer-nav { flex-direction: column; gap: 0; }
  #footer-nav > li > a { padding: 6px 0; font-size: 0.9rem; }
  #footer-nav .sub-menu li a { padding: 3px 0; }
  .footer-credit { flex-wrap: wrap; gap: 8px; }

  /* ---- Google Map ---- */
  .access-block iframe { height: 240px; }
}
