/* ============================================
   リセット＆基本設定（トップページのみ）
============================================ */
body.home .front-page-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

body.home .front-page-container * {
    box-sizing: border-box;
}

body.home .front-page-container a {
    color: inherit;
    text-decoration: none;
}

body.home .front-page-container img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

body.home .front-page-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home .front-page-container h1, 
body.home .front-page-container h2, 
body.home .front-page-container h3 {
    margin: 0;
    font-weight: 700;
}

body.home .front-page-container p {
    margin: 0;
}
.pc-only {
    display: inline;
}

.content-width {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ヘッダー
============================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 20px;
    font-weight: 700;
    color: #4A90E2;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.nav-item {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #4A90E2;
}

/* ============================================
   メインビジュアル
============================================ */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 60px 20px;
}

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: #4A90E2;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}

.btn-primary:hover {
    background: #3A7BC8;
    border-color: #3A7BC8;
}

.btn-secondary {
    background: #fff;
    color: #4A90E2;
    border-color: #4A90E2;
}

.btn-secondary:hover {
    background: #E8F4FF;
}

.btn-outline {
    background: transparent;
    color: #333;
    border-color: #ddd;
}

.btn-outline:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

/* ============================================
   数字で見る実績
============================================ */
.stats {
    padding: 40px 0;
    background: #F8FAFB;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.stats-num {
    font-size: 36px;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 8px;
}

.stats-label {
    font-size: 14px;
    color: #666;
}

/* ============================================
   セクション共通
============================================ */
.section {
    padding: 80px 0;
}

.section-gray {
    background: #F8FAFB;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.section-lead {
    font-size: 15px;
    color: #666;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   治療内容カード（シンプル版・アイコンレス）
============================================ */
.genre-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.genre-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    overflow: hidden;
}

.genre-card:hover {
    border-color: #4A90E2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.genre-card-inner {
    padding: 24px 20px;
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.genre-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.genre-count {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.genre-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 44px;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.genre-tags li {
    padding: 4px 10px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.genre-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #4A90E2;
    transition: all 0.3s;
}

.genre-card:hover .genre-more {
    transform: translateX(4px);
}

/* ============================================
   エリア検索
============================================ */
.area-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.area-tab {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.area-tab:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.area-tab.is-active {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}

.area-contents {
    position: relative;
}

.area-content {
    display: none;
}

.area-content.is-active {
    display: block;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.area-list li a {
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.area-list li a:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #E8F4FF;
}

.area-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* ============================================
   クリニックカード
============================================ */
.clinic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.clinic-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.clinic-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.clinic-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.clinic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
    font-size: 14px;
}

.clinic-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: #FF6B9D;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.clinic-body {
    padding: 20px;
}

.clinic-area {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.clinic-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.clinic-name a:hover {
    color: #4A90E2;
}

.clinic-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.clinic-genres li {
    padding: 3px 10px;
    background: #E8F4FF;
    color: #4A90E2;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.clinic-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #4A90E2;
}

.clinic-link:hover {
    text-decoration: underline;
}

/* ============================================
   選ばれる理由
============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   フッター
============================================ */
.site-footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 13px;
    color: #aaa;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 13px;
    color: #aaa;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-text {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .genre-list {
        grid-template-columns: 1fr;
    }
    
    .area-list {
        grid-template-columns: 1fr;
    }
    
    .clinic-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   WordPress管理バー対応
============================================ */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================
   最新記事セクション
============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.post-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.post-thumb {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.post-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.post-cat {
    display: inline-block;
    padding: 3px 10px;
    background: #E8F4FF;
    color: #4A90E2;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.post-title a {
    transition: color 0.3s;
}

.post-title a:hover {
    color: #4A90E2;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.no-posts {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-thumb {
        height: 180px;
    }
}
.post-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
    font-size: 14px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}