/* 基本リセット＆共通設定 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
.container {
    width: 90%;
    max-width: 1200px; /* お好みの最大幅に調整可能 */
    margin: 0 auto;
    overflow: hidden;
}
/* ヘッダー */
header {
    background: #336699;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}
/* Hero セクション全体 *//* ─── ２カラム共通 ─── */
.two-col .container {
  display: flex;
  justify-content: center;    /* 中央寄せ */
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem auto;
  flex-wrap: wrap;            /* 小画面は縦積み */
}

/* カラム幅を45%ずつに */
.two-col .col {
  flex: 1 1 45%;
  box-sizing: border-box;
}

/* 画像カラム */
.two-col .image img {
  display: block;
  width: 100%;      /* カラム幅いっぱいに */
  height: auto;
  margin: 0 auto;   /* 中央寄せ */
  border-radius: 4px;
}

/* テキストカラム */
.two-col .text {
  flex: 1 1 45%;
  color: #333;
  line-height: 1.6;
}

/* 見出し */
.two-col .text h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #222;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .two-col .container {
    flex-direction: column;
    text-align: center;
  }
  .two-col .col {
    flex: 1 1 100%;
  }
  .two-col .image img {
    width: 80%;
  }
}


/* サービスセクション */
.services {
    background-color: #FFF;
    padding: 2rem 0;
}
.services h2 {
    margin-bottom: 0.5rem;
    font-size: 20px;
}

/* サービスボックス＆アイテム */
.service-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.service-item {
    flex: 1 1 45%;
    max-width: 350px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.service-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.service-item h3,
.service-item h4 {
    margin-top: 10px;
}
.service-item h3 {
    font-size: 24px;
}
.service-item h4 {
    font-size: 20px;
}
.service-item p {
    margin-top: 10px;
    font-size: 16px;
    color: #5d4037;
    text-align: left;
}
@media (max-width: 768px) {
    .service-box {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }
    .service-item {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0 auto 20px;
    }
    .service-item p {
        font-size: 14px;
        text-align: center;
    }
    .services h2 {
        font-size: 20px;
    }
    .service-item h3 {
        font-size: 20px;
    }
    .service-item h4 {
        font-size: 18px;
    }
}

/* 医院概要 */
.clinic-container {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
}
.clinic-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}
.clinic-table tr {
    border-bottom: 1px solid #ddd;
}
.clinic-table td {
    padding: 10px;
    text-align: left;
}
.clinic-table tr:last-child {
    border-bottom: none;
}
.clinic-table td:first-child {
    font-weight: bold;
    width: 50%;
}
.clinic-table td:last-child {
    width: 50%;
}
.clinic-table td a {
    color: #336699;
    text-decoration: none;
}
.clinic-table td a:hover {
    text-decoration: underline;
}

/* 医院紹介 */
.director-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}
.director-image {
    flex: 1;
    max-width: 50%;
    margin-right: 20px;
}
.director-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.director-details {
    flex: 1;
    max-width: 50%;
    text-align: left;
}
@media (max-width: 768px) {
    .director-container {
        flex-direction: column;
    }
    .director-image,
    .director-details {
        max-width: 100%;
        margin: 0 auto;
    }
    .clinic-table td {
        font-size: 16px;
    }
}

/* 診療時間＆アクセス（Info-Mapセクション） */
#info-map .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 768px) {
    #info-map .container {
        grid-template-columns: 1fr;
    }
}

/* 診療時間テーブル（Responsive Table） - 常に横長表示 */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.responsive-table th,
.responsive-table td {
    padding: 4px;
    font-size: 13px;
    word-wrap: break-word;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ccc;
}
/* スマホ時はさらにコンパクトに */
@media (max-width: 768px) {
    .responsive-table th,
    .responsive-table td {
        padding: 2px;
        font-size: 16px;
    }
}

/* テーブルの表示切替：PC版は横長テーブル、スマホ版は縦長テーブル */
@media (min-width: 769px) {
  .horizontal-table {
    display: table;
  }
  .vertical-table {
    display: none;
  }
}
@media (max-width: 768px) {
  .horizontal-table {
    display: none;
  }
  .vertical-table {
    display: table;
  }
}

/* フッター */
footer {
    background: #336699;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
footer p {
    margin: 0;
}
