/*
Theme Name: Sawayaka Dental
Theme URI: https://example.com
Author: あなた
Description: 白と青を基調とした歯科クリニック向けWordPressテーマ
Version: 1.0
*/
body {
    margin: 0;
    font-family: "Hiragino Sans", "YuGothic", sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #f2f2f2; 
}

/* 全セクション共通の見出し（下線タイプ） */
section > h2 {
    display: inline-block;
    margin: 0 auto 32px;
    padding-bottom: 10px;
    border-bottom: 5px solid #0066b3;
    font-size: 32px;
    font-weight: 700;
    color: #0066b3;
    text-align: center;
}

@media (max-width: 768px) {
 section > h2 {
    display: inline-block;
    margin: 0 auto 28px;
    padding-bottom: 8px;
    border-bottom: 5px solid #0066b3;
    font-size: 28px;
    font-weight: 700;
    color: #0066b3;
    text-align: center;
}
}

@media (max-width: 450px) {
 section > h2 {
    display: inline-block;
    margin: 0 auto 20px;
    padding-bottom: 6px;
    border-bottom: 5px solid #0066b3;
    font-size: 20px;
    font-weight: 700;
    color: #0066b3;
    text-align: center;
}
}
/* h2 を中央に配置 */
section {
    text-align: center;
}

/* ハンバーガーアイコン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width:50px;
  height:50px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* menu ヘッダークリック遷移 */
[id] {
    scroll-margin-top: 120px;
  }
@media (max-width: 1024px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }
  
@media (max-width: 1024px) {
  [id] {
    scroll-margin-top: 120px;
  }
}
/* iPad用ナビゲーション */
@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 160px;
  }
}
/* モバイル用ナビゲーション */
@media (max-width: 450px) {
  [id] {
    scroll-margin-top:180px;
  }
}
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    width: 80%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .site-nav.active {
    display: block;
  }

  .site-nav ul {
    list-style: none;
    padding: 16px;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    display: block;
  }
}

@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    top: 100%;   /* ← ここが最重要 */
    right: 0;
    width: 80%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .site-nav ul {
    display: block;   /* ← 横並びを解除して縦並びに */
  }

  .site-nav a {
    display: block;              /* ← クリックしやすいように全幅に */
    padding: 12px 0;
  }
}

/* PCでは非表示 */
.mobile-hours-access {
  display: none;
}

/* スマホ・タブレットで表示 */
@media (max-width: 1024px) {
  .mobile-hours-access {
    display: block;
    margin-top: 20px;
    padding: 10px 0;
  }
}

/* セクション共通 */
.section {
    padding: 60px 10%;
}
/* スマホ・タブレット版セクション */
@media (max-width: 768px) {
  .section {
   padding: 40px 10%;
  }
}

.section-narrow {
    padding: 40px 10%;
}

.section.bg-light {
    background: #f7fbff;
}

/* ヘッダー */
header {
    display: flex;
    color: #fff;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8%;
    border-bottom: 1px solid #dde8f7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img{
  width: 90%;
}

header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin: 5px;
}

header {
    background-color: #c4f8cd; /* 好きな色に変更 */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #0066b3;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

nav a:hover {
    opacity: 0.7;
}

/* メインビジュアル　PC（デフォルト） */
.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 70vh;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy {
    position: absolute;
    left:10%;
    max-width: 40%;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 5px;
}

.hero-copy h1 {
    font-size: 28px;
    line-height: 1.4;
    color: #0066b3;
    font-weight: 600;
}

.hero-copy p {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

/* ▼ タブレット（912px以下） */
@media (max-width: 912px) {
    .hero {
        height: auto; 
    }

    .hero-img {
        width: 100%;
        height: auto; 
        object-fit: cover;
    }

    .hero-copy {
        position: static; /* ← 重ねるのをやめる */
        max-width: 100%;
        margin: 0;
        padding: 20px;
        background: #fff; 
        border-radius: 0;
    }

    .hero-copy h1 {
        font-size: 20px;
        line-height: 1.5;
    }

    .hero-copy p {
        font-size: 16px;
        line-height: 1.7;
        padding: 10px 10%;
    }
}

/* ▼ スマホ（450px以下） */
@media (max-width: 450px) {
    .hero {
        height: auto; 
    }

    .hero-img {
        width: 100%;
        height: auto; 
        object-fit: cover;
    }

    .hero-copy {
        position: static; /* ← 重ねるのをやめる */
        max-width: 100%;
        margin: 0;
        padding: 40px;
        background: #fff; /* ← 読みやすい白背景 */
        border-radius: 0;
    }

    .hero-copy h1 {
        font-size: 18px;
        line-height: 1.5;
    }

    .hero-copy p {
        font-size: 12px;
        line-height: 1.7;
        padding: 10px 10%;
    }
}

/*
   大切にしていること：3カラム＋白いカード化 */
.features {
    padding: 60px 10%;
    background: #f7fbff;
}
@media (max-width: 450px) {
  .features{
    padding: 40px 10%;
    background:#f7fbff;
  }  
}

.feature-box h3 {
    color: #005b99;
}

/* PC：3カラム */
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* カード全体 */
.features-wrapper .feature-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

/* ホバーで少し浮く */
.features-wrapper .feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* 画像 */
.features-wrapper .feature-img {
    width: 100%;
    max-width: 240px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* 見出し（中央揃え＋高さ揃え） */
.features-wrapper .feature-text h3 {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* 本文 */
.features-wrapper .feature-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    padding: 10px 10%;
}

/* タブレット：1カラム */
@media (max-width: 1024px) {
    .features-wrapper {
        grid-template-columns: 1fr;
    }

    .features-wrapper .feature-img {
        max-width: 85%;
        height: 360px;
    }

    .features-wrapper .feature-text h3 {
        font-size: 20px;
        min-height: auto;
    }

    .features-wrapper .feature-text p {
        font-size: 16px;
    }
}
/*  スマホorタブレット*/
@media (max-width: 768px) {
    .features-wrapper {
        grid-template-columns: 1fr;
    }

    .features-wrapper .feature-img {
        max-width: 80%;
        height: 250px;
    }

    .features-wrapper .feature-text h3 {
        font-size: 20px;
        min-height: auto;
    }

    .features-wrapper .feature-text p {
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    .features-wrapper .feature-img {
        max-width: 80%;
        height: 180px;
    } 
    .features-wrapper .feature-text h3 {
        font-size: 16px;
        min-height: auto;
    }

    .features-wrapper .feature-text p {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .features-wrapper .feature-img {
        max-width: 80%;
        height: 140px;
    } 
    }

/* 当院の特徴：3カラム＋白いカード＋揃った文字位置 */
/* PC：3カラム */
.features-wrapper2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

/* カード本体 */
.feature-box2 {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.25s ease;
}

/* ホバーで少し浮く */
.feature-box2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* 画像の高さを統一 → 文字の開始位置が揃う */
.feature-box2 .feature-img {
    width: 100%;
    max-width: 300px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

/* 見出しの高さを揃える → 本文の開始位置が完全に揃う */
.feature-text2 h3 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    height: 65px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #005b99;
}

/* 本文 */
.feature-text2 p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    text-align: left;
    margin-top: 0;
    padding-top: 0;
    padding: 10px 10%;
}
/* 本文の開始位置を完全に揃える */
.feature-text2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 当院の特徴（features-wrapper2）を縦レイアウトに変更 */
.features-wrapper2 .feature-box {
    display: flex;
    flex-direction: column; /* ← 画像 → 文章の縦並び */
    align-items: center;
    text-align: center;
    padding: 30px;
}

/* テキスト部分を中央寄せ */
.features-wrapper2 .feature-text {
    width: 100%;
}

/* タイトルの調整 */
.features-wrapper2 .feature-text h3 {
    text-align: center;
    margin-bottom: 10px;
}
/* PC：3カラム */
.features-wrapper2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* 1024px 以下はすべて 1 カラムにする */
@media (max-width: 1024px) {
    .features-wrapper2 {
        grid-template-columns: 1fr;
    }

    .feature-box2 .feature-img {
        max-width: 85%;
        height: 360px;
    }

    .feature-text2 h3 {
        font-size: 20px;
        min-height: auto;
    }

    .feature-text2 p {
        font-size: 16px;
    }
}

/* タブレット（1カラム） */
@media (max-width: 768px) {
    .features-wrapper2 {
        grid-template-columns: 1fr;
    }

    .feature-box2 .feature-img {
        max-width: 80%;
        height: 250px;
    }

    .feature-text2 h3 {
        font-size: 20px;
        min-height: auto; /* スマホでは高さ固定を解除して自然に */
    }

    .feature-text2 p {
        font-size: 16px;
    }
}
/* スマホ版 */
@media (max-width: 450px) {
    .feature-box2 .feature-img {
        max-width: 80%;
        height: 160px;
    }

    .feature-text2 h3 {
        font-size: 16px;
        min-height: auto; /* スマホでは高さ固定を解除して自然に */
    }

    .feature-text2 p {
        font-size: 12px;
    }
}
/* スマホミニ版 */
@media (max-width: 375px) {
    .feature-box2 .feature-img {
        max-width: 80%;
        height: 140px;
    }
    }

/* 院長挨拶セクション（背景ブルー） */
.greeting {
    padding: 60px 10%;
    background: #f0f8ff;
}
@media (max-width: 460px) {
    .greeting {
        padding: 40px 10%;
    }
}

/*
   ドクター紹介ボタン（トップページ） */
.doctor-intro-btn-wrap {
    text-align: center;
    margin: 30px 0 30px 0;
}

.doctor-intro-btn {
    display: inline-block;
    background: #007acc;
    color: #fff;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: 0.25s ease;
}

.doctor-intro-btn:hover {
    background: #005fa3;
    transform: translateY(-3px);
}


/* スマホ最適化 */
@media (max-width: 768px) {
    .doctor-intro-btn {
        width: 80%;
        padding: 16px;
        font-size: 1.1rem;
    }
}

/* ★ 当院の特徴を2カラムにする */
.features-wrapper2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2カラム */
    gap: 32px;
}

/* 当院の特徴：文章の開始位置を揃える */
.feature-text {
    margin-top: 0;
    padding-top: 0;
}

.features-wrapper2 .feature-text h3 {
    text-align: center;
    min-height: 3em;   /* 見出し2行ぶんの高さを確保 */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* スマホでは1カラムに戻す */
@media (max-width: 768px) {
    .features-wrapper {
        grid-template-columns: 1fr;
    }
}

/* 白背景のカード（追加） */
.greeting-card {
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    background: #ffffff;
}

/* 2カラム構造 */
.greeting-wrapper {
    display: flex;
    gap: 40px;
}

/* 写真＋名前 */
.greeting-photo {
    flex: 1;
    text-align: center;
}

.greeting-photo img {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.director-name {
    margin-top: 24px;
    font-size: 24px;
    color: #005b99;
    font-weight: bold;
}

.greeting {
    position: relative;
    z-index: 1;
}

.greeting-text p {
    text-align: left;
    margin: 0 0 10px 0;
}

.doctor-intro-btn-wrap {
    position: relative;
    z-index: 999;
}

/* テキスト */
.greeting-text {
    flex: 2;
    line-height: 1.8;
    color: #444;
}
@media (max-width: 912px) {
.greeting-text p {
    font-size:12px;
   }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .greeting-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .greeting-card {
        padding: 30px;
    }

    .greeting-text p {
    font-size:16px;
   }

    .greeting-text {
        text-align: left;
        margin-top: 10px;
        font-size: 14px;
        padding: 10px 10%;
    }

    .greeting-photo {
        text-align: center ;
        width: 100% ;
    }

    .greeting-photo img {
        width:80%;
        display: block;
        margin: 0 auto;
    }

    .director-name {
        text-align: center;
        width: 100%; 
        margin-top: 20px;
        font-size: 20px;
    }
}

@media (max-width: 450px) {
    .greeting-text p {
    font-size:14px;
   }
  }
/* スマホミニ用 */
  @media (max-width: 376px) {
    .greeting-text p {
    font-size:12px;
   }
  }
/* スタッフ紹介の個別ページ */
.doctor-item img {
    display: block;
    margin: 0 auto;
}
.breadcrumb-doctor2{
  padding: 0 10%;
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb-doctor2 a {
    color: #007acc;
    text-decoration: none;
}
.breadcrumb-doctor2 a:hover {
    text-decoration: underline;
}
/* 診療科目のページ* カード全体 */
.treatment-passage {
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
#treatment h3{
  color: #005a99;
}

/* 左の写真 */
.treatment-passage img {
    width: 80%;
    padding: 40px;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 右側のテキスト */
.treatment-text {
    flex: 2;
}

.treatment-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.treatment-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
    padding: 10px 10%;
}

/* タブレット対応（院長挨拶と同じ挙動） */
@media (max-width: 768px) {
    .treatment-passage {
        flex-direction: column;
        padding: 20px;
        text-align: left;
    }

    .treatment-passage img {
        max-width: 70%;
        height: 350px;
        display: block;
        margin: 0 auto;
    }
    .treatment-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
   }

.treatment-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}
}
/* スマホ版 */
@media (max-width: 460px) {
    .treatment-passage {
        flex-direction: column;
        padding: 20px;
        text-align: left;
    }

    .treatment-passage img {
        max-width: 70%;
        height: 230px;
    }
    .treatment-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
   }

.treatment-text p {
    font-size: 12px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}
}
@media (max-width: 376px) {

    .treatment-passage img {
        max-width: 65%;
        height: 150px;
    }
    .treatment-text h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
   }

.treatment-text p {
    font-size: 12px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}
}

/* 診療科目  診療科目カード一覧 */
.treatment-button-wrap {
    text-align: center;
    margin-top: 30px;
}

.treatment-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #007acc;
    color: #fff;
    border-radius: 8px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.treatment-btn:hover {
    background: #005a99;
}

.treatment-cards {
    display: grid;
    padding: 60px 10%;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.treatment-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.treatment-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.card-thumb img {
    width: 100%;
    height: 180px; 
    object-fit: contain;
    background: white; 
}

.card-body {
    padding: 15px 18px;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #005b99;
}

.card-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.card-more {
    margin-top: 12px;
    font-weight: bold;
    color: #007acc;
    text-align: right;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.treatment-card:hover .card-more {
    color: #005a99;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: #007acc;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* 診療科目のパンくずリスト*/
.breadcrumb-treatment{
  padding: 0 10%;
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb-treatment a {
    color: #007acc;
    text-decoration: none;
}
.breadcrumb-treatment a:hover {
    text-decoration: underline;
}
.treatment-single h1,
.page-title,
h1 {
    color: #0066b3;          
    text-align: center;   
    margin-bottom: 20px;  /* ← 下の余白調整 */
}

.treatment-single .treatment-content img {
    display: block;
    margin: 20px auto;
}

/* 診療科目ページ全体 */
.treatment-single {
    padding: 60px 10%;
}

/* タイトル */
.treatment-title {
    font-size: 28px;
    text-align: center;
    color: #005b99;
    border-bottom: 2px solid #005b99;
    display: inline-block;
    padding-bottom: 6px;
    margin: 0 auto 32px;
}

/* 本文 */
.treatment-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

/* 本文内の見出し */
.treatment-content h2 {
    font-size: 20px;
    color: #005b99;
    margin-top: 40px;
    border-left: 4px solid #005b99;
    padding-left: 12px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .treatment-single {
    padding: 60px 10%;
  }

  .treatment-title {
    font-size: 22px;
  }

  .treatment-content {
    font-size: 15px;
    padding: 0;
  }

  .treatment-content h2 {
    font-size: 18px;
  }
}

.treatment-page-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.treatment-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  margin-bottom: 40px;
  padding: 0;
}

.treatment-nav li a {
  background: #005b99;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.treatment-block {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.treatment-block h2 {
  font-size: 24px;
  color: #005b99;
  border-bottom: 2px solid #005b99;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.treatment-img {
  margin-bottom: 16px;
}

.treatment-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

/* カード一覧の基本レイアウト */
.treatment-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC：2カラム */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* カードのデザイン調整（任意） */
.treatment-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* カード一覧の基本レイアウト */
.treatment-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC：2カラム */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* カードのデザイン調整（任意） */
.treatment-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* スマホ・タブレット：1カラム */
@media (max-width: 768px) {
    .treatment-cards {
        grid-template-columns: 1fr; /* 1カラム */
        gap: 20px;
    }
}

/* ブログ一覧：画像左・文章右の横並び  横並びレイアウト */
.blog-thumb {
    flex-shrink: 0;
    width: 200px;
}

.blog-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    flex: 1;
}

.blog-item {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.blog-thumb {
  flex: 0 0 200px; /* 固定幅にしたい場合 */
}

.blog-content {
  flex: 1;
}

.blog-thumb {
  flex: 0 0 160px; /* 画像の幅を固定 */
}

.blog-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-item-title2 a {
  text-decoration: none;
  color: #005b99;
}

.blog-item-title2 a:visited {
  color: #333;
}

/* スマホでは縦並びに戻す */
@media (max-width: 768px) {
    .blog-item a {
        flex-direction: column;
        text-align: center;
    }

    .blog-thumb {
        width: 100%;
    }

    .blog-text {
        text-align: center;
    }
}

.blog-single {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 16px;
}


.blog-thumbnail img {
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 6px;
}

.blog-body {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}

.blog-main {
  flex: 1 1 70%;
}

.blog-sidebar {
  flex: 1 1 25%;
  position: sticky;
  top: 40px;
}

.blog-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 24px;
  color: #005b99;
  padding-bottom: 6px;
}

.blog-excerpt {
  font-size: 16px;
  color: #555;
}

.blog-widget {
  margin-bottom: 32px;
}

.blog-widget h3 {
  font-size: 18px;
  color: #005b99;
  margin-bottom: 12px;
  border-left: 4px solid #005b99;
  padding-left: 8px;
}

.blog-widget ul {
  list-style: none;
  padding-left: 0;
}

.blog-widget ul li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .blog-container {
    flex-direction: column;
  }

  .blog-main, .blog-sidebar {
    flex: 1 1 100%;
  }
}
.blog-item a {
  display: flex;
  flex-direction: row; /* 横並び */
  gap: 30px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.blog-thumb {
  flex: 0 0 160px; /* 画像の幅を固定 */
}

.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .blog-thumb img{
    height: 350px;
  }
}

@media (max-width: 450px) {
  .blog-thumb img{
    width:85%;
    height: 180px;
  }
}

.blog-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-item-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #005b99;
}

.blog-excerpt {
  line-height: 1.6;
  color: #444;
}

.blog-item-title2 {
  display: flex;
  flex-direction: row; /* 横並び */
  gap: 30px;
  align-items: flex-start;
  text-decoration: none;
  color: #005b99;
}
@media (max-width: 768px) {
  .blog-item a {
    flex-direction: column;
  }

  .blog-thumb {
    width: 100%;
  }
}

.blog-container {
  display: flex;
  align-items: flex-start; 
  gap: 40px;
}

.blog-sidebar {
  position: sticky;
  top: 40px;
  align-self: flex-start; 
}

.blog-sidebar .blog-widget:first-child {
  margin-top: 80px; 
}

.blog-date {
    text-align: right;
}

/* フォーム */
.form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form label {
    font-weight: 600;
    font-size: 14px;
}

input, select, textarea {
    padding: 10px 12px;
    border: 1px solid #cfd8e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

button,
input[type="submit"] {
    background: #0066b3;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

button:hover,
input[type="submit"]:hover {
    opacity: 0.9;
}

/* フッター */
footer {
    background: #f4f9ff;
    border-top: 1px solid #dde8f7;
    font-size: 18px;
    color: #555;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.column-access p1{
  font-size: 16px;
  color: #333;
}
/* レスポンシブ */
@media (max-width: 768px) {
    footer {
    font-size: 16px;
    }
    .column-access p1{
  font-size:14px; 
    }
}

@media (max-width: 450px) {
    footer {
    font-size: 14px;
    }
    .column-access p1{
  font-size:12px;
    }
}

@media (max-width: 375px) {
    footer {
    font-size: 12px;
    }
    .column-access p1{
  font-size:10px;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    nav ul {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* 背景色を #f7fbff に統一 */
body,
.section.bg-light,
.features,
.greeting,
footer {
background: #f7fbff;
}

.staff-thumb img{
    width: 100%;
    border-radius: 8px;
}

.blog-list {
    list-style: none;
    padding: 0;
}

.content-area {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    overflow: visible;
}

.site-main {
    flex: 1;
    min-width: 0;
}

#secondary {
    width: 280px;
}

/*診療時間 */
.hours-table {
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 80, 150, 0.08);
}

.hours-table th {
  background: #e6f4ff;
  color: #005b99;
}

.hours-note {
  margin-top: 15px;
  color: #555;
  text-align: center;
}

/* アクセス */
.map iframe {
    border-radius: 8px;
}

/* 診療日時＋アクセスの2カラム（PC） */
.two-column {
    padding: 0 5%;    /* ← 左右の余白を少し広げる */
}

.hours-note{
  font-size: 18px;
}
/* 休診日レスポンシブ */
@media (max-width:912px) {
    .hours-note{
  font-size: 14px;
 }
}

@media (max-width:768px) {
    .hours-note{
  font-size: 12px;
 }
}

@media (max-width:460px) {
    .hours-note{
  font-size: 10px;
 }
}

.tel-number{
  font-size: 24px;
}
/* 電話番号レスポンシブ */
@media (max-width:912px) {
    .tel-number{
  font-size: 20px;
 }
}

@media (max-width:768px) {
    .tel-number{
  font-size: 18px;
 }
}

@media (max-width:460px) {
    .tel-number{
  font-size: 16px;
 }
}

/* スマホ対応（縦並び） */
@media (max-width:1024px) {
    .two-column {
        flex-direction: column;
    }
}

/*スマホ最適化（768px以下） */
@media (max-width: 768px) {
    /* 全体の余白を広げて読みやすく */
    body {
        padding: 0;
        margin: 0;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    /* feature-box の余白調整 */
    .feature-box {
        padding: 20px;
        gap: 20px;
    }

    .feature-img {
        width: 100%;
        height: auto;
    }

    /* greeting セクション */
    .greeting-wrapper {
        gap: 10px;
    }

    /* 診療科目カード */
    .treatment-cards {
        grid-template-columns: 1fr ;
        gap: 20px;
    }

    .card-thumb img {
        height: 150px;
        object-fit: cover;
    }

    /* 診療時間＋アクセス */
    .two-column {
        flex-direction: column;
        gap: 20px;
    }

    /* フォームのタップ領域を広げる */
    input, select, textarea {
        font-size: 16px;
        padding: 14px;
    }

    input[type="submit"] {
        padding: 16px;
        font-size: 16px;
    }
}

.greeting {
    position: relative;
    z-index: 1;
}

.doctor-intro-btn-wrap {
  width: 100%;         
  text-align: center;  
}

.doctor-intro-btn {
  width: 200px;         
  display: inline-block;
}

@media (max-width: 1024px) {
    .features-wrapper,
    .features-wrapper2 {
        grid-template-columns: 1fr;
    }
}

/* フッター全体 */
footer {
    background-color: #ffffff;
    color: #0066b3;
    padding: 40px;
    display: flex; 
    flex-direction: column;
}

/* 2カラム（PC） */
.two-column {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 40px;
}

/* 各カラム */
.two-column .column {
    flex: 2;
}

/* 見出し */
.two-column h2 {
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 8px;
}

/* 診療時間テーブル */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* ← 崩れ防止の最重要ポイント */
}

/* スマホ・タブレット版 */
@media (max-width: 1024px) {
.hours-table{
       width: 100%;
    }
}
.hours-table th,
.hours-table td {
    padding: 4px 4px;
    text-align: center;
    color: #005fa3; /* ← ○×が見えるように */
    border-bottom:1px solid #e6f4ff;
    font-size: 14px;
}

@media (max-width: 1024px) {
.hours-table th,
.hours-table td{
    padding: 4px 4px;
    font-size: 12px;
}
}

@media (max-width: 768px) {
.hours-table th,
.hours-table td{
    padding: 3px 3px;
    font-size: 10px;
}
}

@media (max-width: 460px) {
.hours-table th,
.hours-table td{
    padding: 2px 2px;
    font-size: 7px;
}
}

@media (max-width: 350px) {
.hours-table th,
.hours-table td{
    padding: 2px 2px;
    font-size: 6px;
}
}

.hours-table th:first-child {
    text-align: left;
    width: 80px; /* ← 左列の幅を固定して安定させる */
}

.hours-note {
    margin-top: 10px;
    opacity: 0.9;
}

/* アクセス */
.column p {
    color: #005fa3;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Googleマップ */
.map iframe {
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}

/* コピーライト */
footer > div:last-of-type {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
}

/* ▼ スマホ版 */
@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
        gap: 24px;
    }

    .two-column .column {
        width: 100%;
    }

    .hours-table th:first-child {
        width: auto;
    }

    .map iframe {
        width: 100%;
        height: 240px;
    }
}

/* ドクター一覧ページ */
.doctor-title{
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
    color: #0066b3;
}

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px;
}

.doctor-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* スタッフ一覧：写真サイズを300×300に固定 */
.doctor-photo img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}


.doctor-name {
    text-align: center;
    font-size: 24px;
    margin-bottom: 18px;
    color: #005b99;
}

.doctor-profile {
    font-size: 18px;
    padding-left: 40px;
    padding-right: 40px;
    line-height: 1.8;
    color: #333333;
}


@media (max-width: 768px) {
  .doctor-name {
    font-size: 20px;
  }

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 10px;
}
  .doctor-profile {
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-item-title {
    font-size: 16px;
  }

  .blog-excerpt {
    font-size: 14px;
    text-align: left;
    padding: 10px 10%;
  }
}

@media (max-width: 450px) {
  .doctor-name {
    font-size: 16px;
  }

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 10px;
}
  .doctor-profile {
    font-size: 10px;
    line-height: 1.6;
    padding-left: 15px;
    padding-right: 15px;
  }

  .blog-item-title {
    font-size: 14px;
  }

  .blog-excerpt {
    font-size: 12px;
    text-align: left;
  }
}

@media (max-width: 376px) {
   .blog-item-title {
    font-size: 12px;
  }

  .blog-excerpt {
    font-size: 10px;
    text-align: left;
  }
}

/* スタッフブログ（記事ページ）のタイトル中央揃え */
.entry-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 30px;
}

/* アイキャッチ画像を中央揃え */
.post-thumbnail {
    text-align: center;
    margin-bottom: 30px;
}

.post-thumbnail img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
  .site-nav ul {
    display: block; 
  }

  .site-nav li {
    margin: 12px 0;           
  }

  .site-nav a {
    display: block;              
  }

}
@media (max-width: 1024px) {

  .mobile-hours-access table,
  .mobile-hours-access p,
  .mobile-hours-access div {
    margin: 0 ;
    padding: 0 ;
  }

  .mobile-hours-access {
    margin: 0 ;
    padding: 0 ;
  }
}
