/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Author: 久保陽子
Author URI: https://lifesupport-animal-hsp.com/
Description: Astraテーマの子テーマ。北摂ライフサポート動物病院用。白背景・黒文字・オレンジボタン・茶色アクセント・Google Fonts。
*/

/* ===== お知らせ・コラムセクション ===== */
.news-column-tabs.bg-light-green {
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
    background-color: #EDFBE2;
}

.news-column-tabs.bg-light-green .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* タブコンテナの幅制限 */
.news-column-tabs.bg-light-green .tab-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* タブのH2タイトル */
.news-column-tabs h2 {
    font-family: 'Playfair Display', serif;
    color: #8b4513;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1.5rem;
}

/* タブ部分 */
.tabs {
  display: flex;
  gap: 0;
  position: relative;
  z-index: 10;
  margin-bottom: -1px;
}
.tab-button {
  all: unset;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f8f8f8 !important;
  border: 1px solid #A05219 !important;
  padding: 8px 12px !important;
  width: 200px !important;
  height: 50px !important;
  color: #A05219 !important;
  font-weight: bold !important;
  border-radius: 6px 6px 0 0 !important;
  font-size: 14px !important;
  cursor: pointer !important;
}
.tab-button.active {
  background-color: #ffffff !important;
  color: #A05219 !important;
  border-bottom: 1px solid #fff !important;
  z-index: 12 !important;
}
.tab-button:hover:not(.active) {
  background-color: #FFE4B5 !important;
}
.tab-button .section-title {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

/* tabs-lineは不要 */
.tabs-line { display: none; }

/* タブコンテンツ */
.tab-content {
  display: none;
  border: 1px solid #A05219;
  padding: 0;
  background-color: #ffffff;
  position: relative;
  z-index: 8;
}
.tab-content.active {
  display: block;
}

/* 投稿リスト */
.post-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 12px 0;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.post-item:hover {
  background-color: #f9f9f9;
}

.post-item:first-child { margin-top: 9px; }

.date {
  min-width: 80px;
  color: #666;
  margin-left: 20px;
}
.tags-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag-item {
  color: #A05219;
}
.title {
  flex: 1;
  margin-right: 10px;
}

.post-item:hover {
  background-color: #f9f9f9;
}

.jump-btn {
  margin-left: auto;          /* ← これで右端に固定 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #ff6600;
  color: #ffffff;
  border-radius: 50%;
  margin-right: 10px;
  font-weight: bold;
  flex-shrink: 0;
  transition: all 0.2s;
  pointer-events: none;       /* 行リンクを邪魔しない */
}

.post-item:hover .jump-btn {
  background-color: #ff6600;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* 投稿リスト下部 */
.post-footer {
  border-top: none;  /* 既存の線を消す */
  /* その他のスタイルはそのまま */
  padding: 10px 0 0 0;
  display: flex;
  justify-content: flex-end;
  background-color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.post-footer .btn {
  border-radius: 30px;
  background-color: #ff6600;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}
.post-footer .btn:hover {
  background-color: #ff6600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}



/* お知らせ・コラム一覧のコンテナ */
.news-column-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 投稿リスト */
.post-list {
    background-color: #ffffff;
    border: 2px solid #8B6F47;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

/* 各投稿アイテム */
.post-item {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    transition: background-color 0.3s ease;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item:hover {
    background-color: #f9f9f9;
}

/* 投稿日 */
.post-date {
    font-size: 16px;
    color: #666;
    min-width: 120px;
    margin-right: 30px;
}

/* 投稿タイトル */
.post-title {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 矢印ボタン */
.post-arrow {
    width: 50px;
    height: 50px;
    background-color: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 20px;
}

.post-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.post-arrow span {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

/* ページネーション */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #FF6B00;
    color: #ffffff;
}

.pagination .current {
    background-color: #FF6B00;
    color: #ffffff;
}

/* スマホ表示用(コラム一覧ページ) */
@media (max-width: 768px) {
    /* ページヘッダーの調整 */
    .news-column-container .page-header {
        padding: 0;
    }
    
    .news-column-container .page-eyecatch img {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }
    
    /* 投稿リストのレイアウト */
    .post-list .post-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 4px 15px;
        padding: 10px;
        align-items: start;
    }
    
    /* 1行目:日付 */
    .post-list .post-date {
        grid-column: 1;
        grid-row: 1;
        min-width: auto;
        margin-left: 10px;
        font-size: 14px;
        line-height: 1.5; /* 修正: タグと高さを揃える */
        display: flex;
        align-items: center;
    }
    
    /* 1行目:タグ */
    .post-list .tags-wrapper {
        grid-column: 2 / 4;
        grid-row: 1;
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        line-height: 1.5; /* 追加 */
    }
    
    .post-list .tag-item {
        line-height: 1.5; /* 追加 */
    }
    
    /* 2行目:タイトル */
    .post-list .post-title {
        grid-column: 1 / 3;
        grid-row: 2;
        margin: 0 0 0 10px;
        line-height: 1.3;
        display: flex;
        align-items: center;
        min-height: 45px;
    }
    
    /* 2行目:ボタン */
    .post-list .post-arrow {
        grid-column: 3;
        grid-row: 2;
        margin: 0 10px 0 0;
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
    }
    
    .post-list .post-arrow span {
        font-size: 20px;
    }
}

/* スマホ表示用(TOPページのお知らせ・コラムタブ) */
@media (max-width: 768px) {
    /* タブコンテナの横幅を広げる */
    .news-column-tabs.bg-light-green .tab-container {
        max-width: 100%;
        padding: 20px 0;
    }
    
    .news-column-tabs.bg-light-green .container {
        max-width: 100%;
        padding: 0;
    }
    
    .tabs {
        width: 100%;
    }
    
    .tab-button {
        height: 30px !important;
        padding: 6px 12px !important;
        font-size: 16px !important;
    }
    
    .tab-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* タブ内の投稿リスト */
    .tab-content .post-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 4px 15px;
        padding: 10px;
        align-items: start;
    }
    
    .tab-content .date {
        grid-column: 1;
        grid-row: 1;
        min-width: auto;
        margin-left: 10px;
        font-size: 14px;
        line-height: 1.5; /* 修正: タグと高さを揃える */
        display: flex;
        align-items: center;
    }
    
    .tab-content .tags-wrapper {
        grid-column: 2 / 4;
        grid-row: 1;
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        line-height: 1.5; /* 追加 */
    }
    
    .tab-content .tag-item {
        line-height: 1.5; /* 追加 */
    }
    
    .tab-content .title {
        grid-column: 1 / 3;
        grid-row: 2;
        margin: 0 0 0 10px;
        line-height: 1.3;
        min-height: 45px;
        display: flex;
        align-items: center;
    }
    
    .tab-content .jump-btn {
        grid-column: 3;
        grid-row: 2;
        margin: 0 10px 0 0;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
    }
}

/* スマホ表示用(コラム一覧ページのヘッダー下の余白調整) */
@media (max-width: 768px) {
    .news-column-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .news-column-container .page-header {
        padding: 0;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .news-column-container .page-eyecatch {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .news-column-container .page-eyecatch img {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
        margin-top: 0 !important;
    }
}
/* =====診療案内===== */
.info-section {
    padding: 40px 20px;
    background-color: #EDFBE2; /* 修正：新しい背景色 */
}
.info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}
.info-image {
    width: 60%;
}
.info-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}
.info-text {
    width: 40%;
}

.info-text p {
    margin: 8px 0; /* 上下の余白を調整 */
    line-height: 1.6; /* 行の高さを調整 */
}

/* ボタンの余白も調整 */
.info-text .btn {
    display: inline-block;
    margin: 5px 0;
}

/* スマホ表示用（診療案内セクション） */
@media (max-width: 768px) {
    .info-section .info-container {
        display: flex;
        flex-direction: column;
    }

    /* 画像を上に */
    .info-section .info-image {
        order: 1;
        width: 100%;
        margin-bottom: 0px;
    }

    .info-section .info-image img {
        width: 100%;
        height: auto;
    }

    /* 右側のテキストを下に */
    .info-section .info-text {
        order: 2;
        width: 100%;
    }
}


/* ===== 初診・理念・特徴・診療科目・院長・アクセス ===== */
.news-column-tabs h2, .info-section, .philosophy-section, .features, .icon-section, .director, .access-section-wrapper {
    padding: 40px 20px;
}
.info-section h2, .philosophy-section h2, .features h2, .features .section-title h2, .icon-section h2, .director h2, .access-section-wrapper h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #8b4513;
}

/* 特徴 */
body.home .features-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

body.home .feature-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.home .feature-main {
  display: flex !important;
  gap: 30px;
  align-items: flex-start;
}

body.home .feature-image {
  flex: 0 0 200px;
}

body.home .feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

body.home .feature-content {
  flex: 1;
}

body.home .feature-footer {
  display: flex;
  justify-content: flex-end !important; /* ボタン右端固定 */
  margin-top: 10px;
}

body.home .feature-content h3 {
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #ff6600;
}

body.home .feature-content p {
  margin: 0;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  body.home .feature-main {
    flex-direction: column !important;
  }
  body.home .feature-footer {
    justify-content: flex-start !important;
  }
}



/* 病院理念 */
.philosophy-section {
    padding: 60px 20px;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}
.philosophy-item {
    margin-bottom: 30px;
}

.philosophy-item h3 {
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #ff6600;
    background-color: #ffffff;
    display: inline-block;
}
.philosophy-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 10px;
}


/* 診療科目 */
.icon-section-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.icon-section-items a {
    display: block;
    width: 200px;
    height: 120px;
    flex: 0 0 200px; /* 修正：flex-shrinkを0に設定 */
    transition: transform 0.3s ease;
}
.icon-section-items a:hover {
    transform: scale(1.05);
}
.icon-section-items img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* スマホ表示用（診療科目セクション） */
@media (max-width: 768px) {
    .icon-section-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }
    
    .icon-section-items a {
        width: 100%;
    }
    
    .icon-section-items a img {
        width: 100%;
        height: auto;
    }
}

/* 院長紹介 */
.director img {
    max-width:300px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* アクセス */
.access-section-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.access-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    flex-wrap: nowrap; /* 折り返しを防ぐ */
}

.access-left { 
    width: 40%; 
    flex: 0 0 40%; /* 修正：flexアイテムの固定幅 */
}
.access-left img { 
    width: 100%; 
    height: auto; 
    border-radius: 12px; 
    margin-bottom: 15px; 
}
.access-right { 
    width: 60%; 
    flex: 0 0 60%; /* 修正：flexアイテムの固定幅 */
}
.access-map iframe { 
    width: 100%; 
    height: 300px; 
    border: 0; 
    border-radius: 12px; 
}
.access-info a { 
    color: #ff6600; 
    text-decoration: none; 
}
.access-info a:hover { 
    color: #cc4400; 
}

/* ===== 背景色セクション共通（全幅表示対応） ===== */
.bg-white, .bg-light-green {
    width: 100vw; /* 修正：ビューポート全幅に変更 */
    margin-left: 50%;
    transform: translateX(-50%); /* 修正：中央寄せのため */
    padding: 40px 0;
    box-sizing: border-box;
}
.bg-white { 
    background-color: #ffffff; 
}
.bg-light-green { 
    background-color: #EDFBE2; /* 修正：新しい背景色 */
}
.bg-white .container, .bg-light-green .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== セクション個別の背景色設定 ===== */
/* 1. お知らせ・コラム：緑 */
.news-column-tabs {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #EDFBE2;
}

/* 2. 診療案内：白 */
.info-section {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
}

/* 3. 病院理念：緑 */
.philosophy-section {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #EDFBE2;
    padding: 60px 0;
    max-width: none; /* 修正：max-widthを解除 */
    margin-bottom: 0;
}
.philosophy-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 4. 特徴：白 */
.features {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 40px 0;
}
.features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 5. 診療科目：緑*/
.icon-section {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #EDFBE2;
    padding: 40px 0;
}
.icon-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 6. 院長：白 */
.director {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 40px 0;
}
.director .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 8. アクセス：緑 */
.access-section-wrapper {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #EDFBE2;
    padding: 20px 0;
    max-width: none; /* 修正：max-widthを解除 */
    margin-bottom: 0;
}
.access-section-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* スマホ表示用（アクセスセクション） */
@media (max-width: 768px) {
    .access-container {
        display: flex;
        flex-direction: column;
    }
    
    .access-left {
        order: 1;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .access-left img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }
    
    .access-info {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }
    
    .access-right {
        order: 2;
        width: 100%;
        margin-top: 0;
    }
    
    .access-map iframe {
        width: 100%;
        height: 300px;
    }
}

/* ===== 汎用ページセクション（コンテナ風） ===== */
.page-section {
    background-color: #EDFBE2;
    position: relative;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.page-section > * {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page-section img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-section div {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page-section { 
    background-color: #EDFBE2;
    position: relative;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* コンテンツを1200px幅に収める内側のラッパー */
.page-section > * {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-section h2 {
    color: #8b4513;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.page-section h3 {
    color: #8b4513;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #ff6600;
    background: linear-gradient(90deg, #fff 0%, #fff 100%);
}

.page-section h4 {
    color: #8b4513;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: left;
}

.page-section ul { 
    list-style: none; 
    padding-left: 0; 
}
.page-section ul li { 
    padding-left: 25px; 
    position: relative; 
    margin-bottom: 8px; 
    line-height: 1.6;
}
.page-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #333;
    font-weight: bold;
}
/* 番号付きリスト（ol）のスタイル */
.page-section ol {
    padding-left: 0;
    list-style: none;
    counter-reset: item;
}
.page-section ol li {
    padding-left: 30px;
    margin-bottom: 8px;
    position: relative;
    counter-increment: item;
    line-height: 1.6;
}
.page-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #333;
    font-weight: normal;
}

/* 段落のスタイル */
.page-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

/* チェックリストのスタイル */
/* チェックマーク画像は横並び（inline）にする */
.page-section img[alt="チェック"] {
    display: inline-block !important;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    margin-left: 0 !important;
    margin-bottom: 0;
}

/* チェックマーク以外の通常画像はそのまま */
.page-section img:not([alt="チェック"]) {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========================================
   アイキャッチ画像をヘッダー直下に全幅表示
======================================== */

/* アイキャッチをヘッダー直下に表示 */
.ast-article-single,
.ast-article-post {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.entry-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.page .ast-featured-image,
.page .post-thumbnail,
.ast-featured-image,
.post-thumbnail {
    margin: 0 !important;
    padding: 0 !important;
}
/* 最初のコンテンツブロックの上余白を削る */
.page .entry-content > *:first-child {
    margin-top: 0 !important;
}
/* ===== PC用：固定ページのアイキャッチ調整 ===== */
@media (min-width: 769px) {
    body.page {
        padding-top: 120px !important;  /* 120px → 141px に変更 */
    }
    body.admin-bar.page {
        padding-top: 120px !important;  /* 152px → 173px に変更（141 + 32） */
    }
    body.page .site-content {
        padding-top: 0 !important;
    }
    body.admin-bar.page .site-content {
        padding-top: 0 !important;
    }
    /* アイキャッチ画像の余白を0に */
    body.page .entry-content > .wp-block-image:first-child,
    body.page .wp-block-post-featured-image:first-child,
    body.page .entry-content > .wp-block-post-featured-image:first-child {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* アイキャッチ画像のコンテナのpadding/marginをリセット */
.wp-block-post-featured-image {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* アイキャッチ画像の幅を統一 */
.page .entry-content > .wp-block-image:first-child img,
.ast-featured-image img,
.post-thumbnail img,
.wp-block-post-featured-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

/* アイキャッチ画像のコンテナも統一 */
.page .entry-content > .wp-block-image:first-child,
.ast-featured-image,
.post-thumbnail {
    width: 100% !important;
    max-width: 100% !important;
}

/* ast-article-single のpaddingをリセット（アイキャッチ画像のみ） */
.ast-article-single .wp-block-post-featured-image {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
}

/* ページ全体のコンテンツ幅を制限 */
.site-content {
    background-color: #EDFBE2;
    padding-top: 0 !important;
}

.site-content > .ast-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    padding-top: 0 !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
body .entry-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ast-container,
.site-content .ast-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* ===== スタッフ紹介専用スタイル ===== */
.page-section .staff-member { 
    margin-bottom: 60px; 
}

.page-section .staff-content { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    align-items: flex-start; 
    margin-bottom: 20px; 
}

.page-section .staff-image {
    flex: 0 0 200px;
}

.page-section .staff-image img { 
    width: 200px; 
    height: 200px;
    object-fit: cover;
    border-radius: 5px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-section .staff-text { 
    flex: 1; 
    min-width: 300px;
}

.page-section .staff-text h3 { 
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #ff6600;
}

.page-section .staff-text p { 
    margin: 10px 0; 
    line-height: 1.7; 
    color: #555;
}

.page-section .staff-details { 
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap; 
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-section .staff-experience, 
.page-section .staff-qualification { 
    min-width: 250px; 
}

.page-section .staff-experience {
    flex: 3;
}

.page-section .staff-qualification {
    flex: 2;
}

.page-section .staff-experience h4, 
.page-section .staff-qualification h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    padding-bottom: 8px;
    display: inline-block;
}

.page-section .staff-experience-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.page-section .staff-experience-list li { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 8px; 
    align-items: flex-start;
}

.page-section .staff-experience-list .year { 
    width: 150px; 
    color: #000;
    flex-shrink: 0;
}

.page-section .staff-experience-list .workplace { 
    flex: 1; 
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-section .staff-qualification ul { 
    padding-left: 20px; 
    margin: 0; 
}

.page-section .staff-qualification ul li { 
    margin-bottom: 6px; 
    color: #555;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-section {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 20px 0;
        box-sizing: border-box;
    }
    
    .page-section h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .page-section h3 {
        font-size: 18px;
    }
    
    .page-section .staff-member {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .page-section .staff-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .page-section .staff-image {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .page-section .staff-image img {
        width: 200px;
        height: 200px;
    }
    
    .page-section .staff-text {
        width: 100%;
        min-width: auto;
        text-align: left;
    }
    
    .page-section .staff-details {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .page-section .staff-experience,
    .page-section .staff-qualification {
        width: 100%;
        min-width: auto;
    }
    
    .page-section .staff-experience-list li {
        flex-direction: column;
        gap: 5px;
    }
    
    .page-section .staff-experience-list .year {
        width: auto;
    }
    
    .page-section .staff-experience-list .workplace {
        white-space: normal;
    }
    
    .page-section > * {
        padding: 0 20px;
        max-width: 100%;
    }
}

/* スマホ表示用のチェックマーク調整 */
@media (max-width: 768px) {
    .page-section img[alt="チェック"] {
        display: inline-block !important;
        vertical-align: middle;
        margin-right: 8px;
        margin-bottom: 0 !important;
    }
    
    .page-section h4 + div {
        line-height: 1.8;
    }
}

/* チェックリスト用のdivは横幅いっぱいに */
.page-section h4 + div {
    display: block;
    width: 100%;
}

/* チェック項目を横並びにする */
.page-section h4 + div img[alt="チェック"] {
    display: inline-block !important;
    width: 20px;
    height: 20px;
    vertical-align: top;
    margin-right: 8px;
    margin-bottom: 0;
    float: none;
}

/* スマホ用の調整 */
@media (max-width: 768px) {
    .page-section h4 + div {
        width: 100%;
        box-sizing: border-box;
        line-height: 2;
    }
}

/* チェックリスト用のdivの調整 */
.page-section h4 + div {
    padding: 0 20px !important;
    margin-bottom: 20px;
}

.page-section h4 + div img[alt="チェック"] {
    display: inline !important;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    margin-left: 0 !important;
}

/* スマホ用 - チェックマークとテキストを同じ行に */
@media (max-width: 768px) {
    .page-section h4 + div {
        padding: 0 20px !important;
        line-height: 2;
    }
    
    .page-section h4 + div br {
        display: block;
        content: "";
        margin-top: 8px;
    }
}

/* ===== 共通スタイル ===== */
body {
    background-color: #EDFBE2 !important;
    color: #000; /* 必要なら文字色も調整 */
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding-top: 141px; /* ヘッダー固定分の余白 */
}

body.admin-bar {
    padding-top: 141px; /* ヘッダー120 + 管理バー32 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #000000;
    margin: 0 0 10px 0;
}

/* リンク色 */
a {
    color: #ff6600;
    text-decoration: none;
}
a:hover {
    color: #cc4400;
}

/* ボタン（丸み30pxに統一） */
button, .btn, input[type="submit"], .btn-line, .btn-online {
    background-color: #ff6600;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;  /* ← アニメーション追加 */
    font-weight: bold;
}

button:hover, .btn:hover, input[type="submit"]:hover, .btn-line:hover, .btn-online:hover {
    background-color: #ff6600;  /* ← 色を変えずに統一 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);  /* ← 影を追加 */
    transform: translateY(-2px);  /* ← 浮き上がり効果 */
    color: #ffffff;  /* ← 文字色を白に指定！ */
}

/* アクセントに茶色 */
hr, .accent-brown {
    border-color: #8b4513;
}

/* 固定ページタイトル非表示 */
.page .entry-title,
.page .page-title,
.page .entry-header h1 {
    display: none !important;
}

/* 固定ページの余白調整 */
.page {
    padding-top: 0px !important;
}
.admin-bar .page {
    padding-top: 0px !important;
}
.customize-partial-edit-shortcuts-shown .page {
    padding-top: 0px !important;
}
.page .site-content,
.page .ast-container,
.page .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.page .entry-content > *:first-child {
    margin-top: 0 !important;
}
.page .wp-block-image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ===== ヘッダー ===== */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    overflow: visible !important;
    font-family: 'Playfair Display', serif;
}

.header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #eee !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 60px !important;
    flex-wrap: nowrap !important;
}

.header-left img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.header-left span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    justify-content: center !important;
}

.header-right .btn-line,
.header-right .btn-online {
    margin-left: 10px;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 30px;
}

/* ヘッダー下ナビ */
.header-bottom {
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* メニューリストの設定 */
.header-bottom .main-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 5px 0 !important;
    flex-wrap: nowrap !important;
    min-height: 50px !important;
}

/* メニューアイテムの設定 */
.header-bottom .main-menu li {
    margin: 0 15px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* メニューリンクの設定 */
.header-bottom .main-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    line-height: 1.2;
    text-align: center;
}

/* 肉球アイコン */
.header-bottom .main-menu li .paw-icon {
    position: absolute;
    left: -3px;
    top: 50%;
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    pointer-events: none;
    background-image: url('http://lifesupport-animal-hsp.com/wp-content/uploads/2025/09/メニューアイコン.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header-bottom .main-menu li img {
    display: none !important;
}

/* ホバー時の効果 */
.header-bottom .main-menu li:hover .paw-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    animation: floatUp 0.5s ease-out;
}

.header-bottom .main-menu li:hover a {
    color: #ff6600;
    transform: translateX(8px);
}

/* 浮上アニメーション */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

/* ハンバーガーメニューボタン - デフォルトは非表示 */
.mobile-menu-toggle {
    display: none;
}

/* スマホ・タブレット */
/* スマホ・タブレット */
@media (max-width: 768px) {
    /* デスクトップメニューを非表示 */
    nav.header-bottom.desktop-menu {
        display: none !important;
    }
    
    /* 通常ページ用 */
    body {
        padding-top: 90px !important;  /* 70px → 90px に変更 */
    }
    
    body.admin-bar {
        padding-top: 122px !important;  /* 102px → 122px に変更（90 + 32） */
    }
    
    /* 固定ページ全体の調整 */
    body.page {
        padding-top: 90px !important;  /* 70px → 90px に変更 */
    }
    
    body.admin-bar.page {
        padding-top: 122px !important;  /* 102px → 122px に変更 */
    }
    
    /* コンテンツエリアの余白をゼロに */
    body.page .site-content {
        padding-top: 0 !important;
    }
    
    body.admin-bar.page .site-content {
        padding-top: 0 !important;
    }
    
    /* アイキャッチ画像の余白をゼロに */
    body.page .wp-block-post-featured-image,
    body.page figure.wp-block-post-featured-image,
    body.page .entry-content > .wp-block-post-featured-image:first-child,
    body.page .entry-content > .wp-block-image:first-child {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* HOMEページ全体の調整 */
body.home {
    padding-top: 90px !important;  /* 70px → 90px に変更 */
}
body.admin-bar.home {
    padding-top: 122px !important;  /* 102px → 122px に変更 */
}
/* primary（メインコンテンツ）を上に引き上げる */
body.home #primary {
    margin-top: 0px !important;
    padding-top: 0 !important;
}
body.admin-bar.home #primary {
    margin-top: 0px !important;
}
/* site-mainも念のため */
body.home .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ヒーロー画像自体の余白削除 */
body.home .hero {
    margin: 0 !important;
    padding: 0 !important;
}

body.home .hero img {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
    
    /* ヘッダー上部 */
    .header-top {
        padding: 12px 15px !important;
        min-height: 60px !important;
    }
    
    /* ロゴエリア */
    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 0px !important;
    }
    
    .header-left img {
        height: 65px !important;
    }
    
    .header-left span {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
    
    /* PCのボタンを隠す */
    .header-right .btn-line,
    .header-right .btn-online {
        display: none !important;
    }
    
    /* ハンバーガーメニューボタンを表示 */
/* ハンバーガーメニューボタンを表示 */
.mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 50px;
    background-color: #ff6600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle .menu-text {
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    display: block;
}
    
    /* ハンバーガーメニュー アクティブ時 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
    
    /* モバイルメニュー - 初期状態は非表示 */
    .mobile-menu {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 9998;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* メニューが開いているとき */
    .mobile-menu.mobile-menu-open {
        display: block !important;
    }
    
    .mobile-menu .main-menu {
        flex-direction: column !important;
        padding: 20px 15px !important;
        gap: 0 !important;
    }
    
    .mobile-menu .main-menu li {
        margin: 0 !important;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu .main-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu .main-menu li a {
        display: block !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        text-align: left !important;
    }
    
    .mobile-menu .main-menu li .paw-icon {
        display: none !important;
    }
}

/* ===== ヘッダー画像 ===== */
.header-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.ast-plain-container.ast-no-sidebar #primary,
.header-image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.custom-header-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* ===== ヘッダーとアイキャッチの間の余白を削除 ===== */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-plain-container .ast-article-post,
.ast-plain-container .ast-article-single,
#primary,
.site-content,
.ast-container,
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ast-featured-img,
.single-featured-image-header,
.ast-single-post .post-thumb-img-content,
.entry-header,
.wp-block-image:first-child,
.entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.wp-block-image,
.wp-block-image img {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block;
}

.ast-container > *:first-child {
    margin-top: 0 !important;
}

/* ===== 投稿ページ専用スタイル ===== */

/* 投稿ページ全体のコンテナ */
.single-post .site-content {
    background-color: #EDFBE2;
}

.single-post .content-area {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 記事本体部分の余白（タイトル〜ナビゲーション）*/
.single-post article > * {
    padding-left: 40px;
    padding-right: 40px;
}

.single-post article {
    padding-top: 60px;
}

/* Astraテーマのデフォルトレイアウトを上書き */
.single-post .ast-container {
    max-width: 1200px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* アイキャッチ画像 */
.single-post .post-thumbnail {
    width: 100%;
    margin-bottom: 30px;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* タイトル（左寄せ）*/
.single-post .entry-title {
    text-align: left;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
    color: #000000;
}

/* 本文 */
.single-post .entry-content {
    margin-bottom: 50px;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000;
}

/* 本文内のリンク */
.single-post .entry-content a {
    color: #ff6600;
    text-decoration: none;
}

.single-post .entry-content a:hover {
    color: #cc4400;
}

/* ナビゲーション */
.post-navigation-custom {
    margin: 50px 0 0 0;
    padding: 0;
    border: none;
}

.post-navigation-custom .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.post-navigation-custom .nav-previous,
.post-navigation-custom .nav-next {
    flex: 1;
}

.post-navigation-custom .nav-previous {
    text-align: left;
}

.post-navigation-custom .nav-next {
    text-align: right;
}

.post-navigation-custom .nav-list {
    flex: 0 0 auto;
    text-align: center;
}

/* 前へ・次へリンク */
.post-navigation-custom .nav-previous a,
.post-navigation-custom .nav-next a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.post-navigation-custom .nav-previous a:hover,
.post-navigation-custom .nav-next a:hover {
    color: #cc4400;
}

/* 一覧へボタン（共通スタイルに準拠）*/
.post-navigation-custom .btn-list {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6600;
    color: #ffffff !important;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.post-navigation-custom .btn-list:hover {
    background-color: #ff6600;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* クリニック情報セクション */
.clinic-info-section {
    margin-top: 60px;
    padding-top: 0;
}

/* バー全幅（コンテナ幅いっぱい）*/
.clinic-info-bar {
    width: 100%;
    height: 2px;
    background-color: #8b4513;
    margin-bottom: 40px;
}

.clinic-info-content {
    display: flex;
    gap: 40px;
    padding: 0 40px 60px;
}

.clinic-text {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
}

.clinic-map {
    flex: 1;
    display: flex;
}

/* ロゴと病院名を横並び */
.clinic-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.clinic-logo {
    flex-shrink: 0;
}

.clinic-logo img {
    max-width: 100px;
    height: auto;
}

.clinic-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
    color: #000000;
}

.clinic-address,
.clinic-parking {
    margin-bottom: 10px;
    color: #000;
    font-size: 16px;
}

.clinic-hours {
    margin-top: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.clinic-hours img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clinic-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 8px;
}

/* スマホ対応（上下左右20px余白）*/
@media (max-width: 768px) {
    .single-post article > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .single-post article {
        padding-top: 30px;
        padding-bottom: 30px; /* ★ 下の余白も追加 */
    }
    
    .single-post .ast-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .single-post .entry-title {
        font-size: 1.5em;
    }
    
    /* ★ ナビゲーションの下余白を調整 */
    .post-navigation-custom {
        margin: 20px 0 20px 0; /* 下に余白追加 */
    }
    
    /* スマホでも横一列表示 */
    .post-navigation-custom .nav-links {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .post-navigation-custom .nav-previous,
    .post-navigation-custom .nav-next {
        flex: 0 0 auto;
        width: auto;
    }
    
    .post-navigation-custom .nav-list {
        flex: 0 0 auto;
        width: auto;
    }
    
    .post-navigation-custom .nav-previous,
    .post-navigation-custom .nav-next {
        text-align: center;
    }
    
    /* 一覧ボタンをスマホで少し小さく */
    .post-navigation-custom .btn-list {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* スマホでもロゴと病院名を横並び */
    .clinic-header {
        gap: 15px;
    }
    
    /* スマホのロゴサイズ */
    .clinic-logo img {
        max-width: 60px;
    }
    
    /* スマホの病院名のサイズ */
    .clinic-name {
        font-size: 1em;
    }
    
    /* スマホの住所・駐車場の文字サイズ */
    .clinic-address,
    .clinic-parking {
        font-size: 14px;
    }
    
    /* クリニック情報を縦並びに */
    .clinic-info-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px 40px;
    }
    
    .clinic-map iframe {
        min-height: 300px;
    }
}

/* ★ 強制的に余白を調整（テスト用）*/
@media (max-width: 768px) {
    .single-post .content-area {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }
    
    .clinic-info-section {
        margin-top: 40px !important;
    }
}

/* スマホのコンテナ下部の余白を追加 */
@media (max-width: 768px) {
    .single-post .content-area {
        margin-bottom: 40px !important; /* コンテナの下に緑の余白を追加 */
    }
}