/*
Theme Name: 5DENTAL
Description: 5DENTAL東京銀座の公式WordPressテーマ
Version: 1.0
Author: 5DENTAL
License: GPL v2 or later
Text Domain: 5dental
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Zen Old Mincho', serif;
    line-height: 1.6;
    color: #595A5D;
}

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

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

/* WordPressの基本クラス */
.wp-block-image {
    margin: 1.5rem 0;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 基本レイアウト */
.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.875rem;
}

.site-main {
    padding: 4rem 0;
}

/* 投稿一覧 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card__thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card__content {
    padding: 1.5rem;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.post-card__title a {
    color: #595A5D;
    text-decoration: none;
}

.post-card__title a:hover {
    color: #787B83;
}

.post-card__meta {
    font-size: 0.875rem;
    color: #787B83;
    margin-bottom: 1rem;
}

.post-card__excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #787B83;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-card__link:hover {
    color: #595A5D;
}

.post-card__arrow {
    transition: transform 0.3s ease;
}

.post-card__link:hover .post-card__arrow {
    transform: translateX(3px);
}

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

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #ffffff;
    color: #595A5D;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #e8e8f0;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #787B83;
    color: #ffffff;
    border-color: #787B83;
}

/* カスタムフォントサイズ */
.orthodontics-content__main-title {
    font-size: 1.875rem !important; /* 30px */
    color: #737484 !important;
}

.h3-gray-bg {
    font-size: 1.625rem !important; /* 26px */
}