/**
 * Main CSS - 共通スタイル
 * 渋谷文化村通り皮膚科 WordPressテーマ
 */

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

/* CSS変数 */
:root {
    --primary-color: #a69d99;
    --primary-light: #d0c8c4;
    --primary-dark: #8a7f7a;
    --accent-color: #f8f6f5;
    --text-dark: #2c2c2c;
    --text-medium: #666;
    --text-light: #999;
    --white: #ffffff;
    --shadow-light: 0 4px 20px rgba(166, 157, 153, 0.08);
    --shadow-medium: 0 8px 30px rgba(166, 157, 153, 0.12);
    --shadow-heavy: 0 15px 50px rgba(166, 157, 153, 0.15);
    --gradient-primary: linear-gradient(135deg, #a69d99 0%, #8a7f7a 100%);
    --gradient-light: linear-gradient(135deg, #fefefe 0%, #f8f6f5 100%);
}

/* 基本設定 */
body {
    font-family: 'Noto Serif JP', 'ヒラギノ明朝 Pro W3', 'HiraMinPro-W3', 'Times New Roman', '游明朝', 'Yu Mincho', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    font-weight: 300;
    letter-spacing: 0.02em;
    padding-top: 80px;
    /* Header用の余白 */
}

/* 基本的なタイポグラフィ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-color);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 画像 */
img {
    max-width: 100%;
    height: auto;
}

/* コンテナ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: clamp(16px, 5vw, 28px);
    color: var(--primary-color);
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-align: center;
}

/* ユーティリティクラス */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* カード */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(166, 157, 153, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* グリッドシステム */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* パンくずナビ */
.breadcrumb {
    padding: 20px 0;
    background: var(--accent-color);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-item {
    position: relative;
}

.breadcrumb-item:not(.active)::after {
    content: '>';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--text-medium);
}

/* ペジネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .current {
    background: var(--primary-color);
    color: white;
}

/* サーチフォーム */
.search-form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid var(--primary-light);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(166, 157, 153, 0.1);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* リンクスタイル */
.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.link-primary:hover {
    color: var(--primary-dark);
}

/* WordPress固有のクラス */
.wp-post-image {
    width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

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

.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 5px;
}

/* ギャラリー */
.gallery {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* アクセシビリティ */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* フォーカス表示 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* レスポンシブ設計 */
@media (max-width: 1024px) {

    .container,
    .section-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .container,
    .section-container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .grid {
        gap: 20px;
    }

    .card {
        padding: 20px;
    }

    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* プリント用スタイル */
@media print {

    .header,
    .footer,
    .sidebar {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        padding-top: 0;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }
}