/* ===============================
   共通レイアウト
   =============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px 相当 */
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: #333;
  background-color: #ffffff;
}

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

a {
  color: #1e73be;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.innerBox {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===============================
   ヘッダー
   =============================== */
#headerTop {
  border-top: 4px solid #000;
  background: #f7f7f7;
  font-size: 1.3rem;
}

#site-description {
  padding: 4px 0;
}

#header {
  border-bottom: 1px solid #eee;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

#site-title img {
  height: 56px;
  width: auto;
}

/* ===============================
   グローバルナビ
   =============================== */
#navToggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

#navToggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: #333;
  transition: transform 0.2s, opacity 0.2s;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.menu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  font-size: 1.3rem;
  color: #333;
}

.menu li a strong {
  font-size: 1.4rem;
}

.menu li span {
  font-size: 1.1rem;
  color: #999;
}

.menu li.current_page_item a strong {
  color: #000;
}

/* ===============================
   トップメインビジュアル
   =============================== */
#topMainBnr img {
  width: 100%;
  display: block;
}

/* ===============================
   2カラムレイアウト
   =============================== */
.layout-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 16px 40px;
}

#content {
  flex: 1 1 0;
  min-width: 0;
}

#content-main {
  width: 100%;
}

.sideTower {
  width: 260px;
  flex: 0 0 260px;
}

/* ===============================
   カード・共通パーツ
   =============================== */
.card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 16px 16px 20px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0;
  font-size: 2rem;
  border-left: 4px solid #000;
  padding-left: 8px;
}

.section-more {
  font-size: 1.3rem;
}

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

.notice-center {
  text-align: center;
  margin-top: 8px;
  font-weight: bold;
}

.img-responsive {
  display: block;
  margin: 0 auto;
}

/* ===============================
   お知らせ一覧（トップ）
   =============================== */
.infoItem + .infoItem {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

.infoTitle {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.infoMeta {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: #777;
}

.infoExcerpt {
  margin: 0;
  font-size: 1.4rem;
}

/* ===============================
   サイドバー
   =============================== */
.sideWidget .img-responsive {
  border-radius: 4px;
}

.fb-frame {
  border: 1px dashed #ccc;
  padding: 8px;
  border-radius: 4px;
  background: #fafafa;
}

.fb-placeholder {
  font-size: 1.3rem;
  text-align: center;
  margin: 0;
}

/* ===============================
   ページタイトル & パンくず
   =============================== */
#pageTitBnr {
  background: #000;
  color: #fff;
  padding: 16px 0;
}

#pageTitInner #pageTit {
  margin: 0;
  font-size: 2.4rem;
}

#panList {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

#panListInner ul {
  list-style: none;
  margin: 0;
  padding: 6px 16px;
  font-size: 1.3rem;
}

#panListInner li {
  display: inline;
}

/* ===============================
   診療案内ページ
   =============================== */
.entry-content h2 {
  font-size: 2rem;
  border-left: 4px solid #000;
  padding-left: 8px;
  margin: 0 0 8px;
}

.entry-content h3 {
  font-size: 1.8rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  margin-top: 0;
}

.entry-content p {
  margin-top: 0;
}

.indent {
  padding-left: 1.5em;
}

.mainFootContact {
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 8px;
}

.mainFootTxt {
  margin: 0;
  text-align: center;
}

.mainFootTel {
  font-weight: bold;
  font-size: 1.8rem;
}

.mainFootTime {
  font-size: 1.4rem;
  display: inline-block;
  margin-top: 4px;
}

/* ===============================
   フッター
   =============================== */
#footer {
  margin-top: auto;
  background: #f4f4f4;
  border-top: 1px solid #ddd;
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px;
  gap: 16px;
}

#footerOutline {
  margin: 0;
  display: flex;
  gap: 12px;
}

#footerOutline dt {
  flex-shrink: 0;
}

.footer-logo {
  height: 48px;
  width: auto;
}

#footerOutline dd {
  margin: 0;
  font-size: 1.4rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.4rem;
}

#siteBottom {
  background: #e9e9e9;
  font-size: 1.2rem;
  text-align: center;
  padding: 6px 0;
}

.small {
  font-size: 1.2rem;
}

/* ===============================
   余白ユーティリティ
   =============================== */
.mb-16 {
  margin-bottom: 16px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mt-40 {
  margin-top: 40px;
}

/* ===============================
   レスポンシブ対応
   =============================== */
@media (max-width: 959px) {
  .sideTower {
    width: 100%;
    flex: 1 1 100%;
  }

  .layout-two-column {
    flex-direction: column;
  }

  .footer-flex {
    flex-direction: column;
  }

  #footerOutline {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .header-flex {
    flex-wrap: wrap;
  }

  #site-title img {
    height: 48px;
  }

  #navToggle {
    display: block;
  }

  #gMenu {
    width: 100%;
    margin-top: 8px;
    display: none;
  }

  #gMenu.is-open {
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
  }

  .menu li a {
    align-items: flex-start;
    padding: 10px 4px;
    border-top: 1px solid #eee;
  }

  /* ハンバーガー変形 */
  #navToggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  #navToggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  #navToggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  #pageTitInner #pageTit {
    font-size: 2.1rem;
  }

  .card {
    padding: 14px;
  }
}
