/*
Theme Name: みずの治療室
Author: kernera
Description: みずの治療室 公式サイト カスタムテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: mizuno-treatment
*/

/* ============================================================
   CSS カスタムプロパティ
   ============================================================ */
:root {
    --color-base:    #F8F7F5;
    --color-main:    #81A89A;
    --color-main-dark: #6b9085;
    --color-accent:  #E49B5D;
    --color-accent-dark: #d0894d;
    --color-text:    #333333;
    --color-border:  #DDDDDD;
    --color-success: #5C9E5F;
    --color-error:   #D9534F;
    --color-white:   #ffffff;
    --color-bg-section: #f0efed;

    --font-family: "Noto Sans JP", sans-serif;
    --font-size-base: 16px;
    --line-height: 1.8;

    --max-width: 1200px;
    --gutter: 24px;
    --section-gap: 80px;

    --header-height: 70px;

    --radius: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   リセット・ベース
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-main);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    color: var(--color-main-dark);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   タイポグラフィ
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
    font-weight: 700;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p + p {
    margin-top: 1em;
}

/* ============================================================
   レイアウト
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.page-main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.page-header {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 48px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 1.75rem;
}

.page-content {
    padding: var(--section-gap) 0;
}

.section {
    padding: var(--section-gap) 0;
}

.section--bg {
    background-color: var(--color-bg-section);
}

.section-title {
    font-size: 1.5rem;
    color: var(--color-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 12px auto 0;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn--primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    text-decoration: none;
}

.btn--outline {
    background-color: transparent;
    color: var(--color-main);
    border: 2px solid var(--color-main);
}

.btn--outline:hover {
    background-color: var(--color-main);
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: var(--color-main);
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.8;
}

.site-logo__main {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-main);
}

.site-logo__sub {
    font-size: 0.7rem;
    color: var(--color-text);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* グローバルナビ */
.global-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.global-nav__list a {
    display: block;
    padding: 8px 12px;
    color: var(--color-text);
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: background-color 0.2s, color 0.2s;
}

.global-nav__list a:hover {
    background-color: var(--color-bg-section);
    text-decoration: none;
}

.global-nav__list .nav-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
}

.global-nav__list .nav-cta:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
}

/* ハンバーガー（SP用） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger__line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
    background-color: var(--color-main);
    color: var(--color-white);
    margin-top: var(--section-gap);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.footer-clinic-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 4px;
}

.footer-info a {
    color: var(--color-white);
}

.footer-info a:hover {
    opacity: 0.8;
}

.footer-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-content: flex-start;
}

.footer-nav__list a {
    color: var(--color-white);
    font-size: 0.875rem;
    opacity: 0.85;
}

.footer-nav__list a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   トップページ: ヒーロー
   ============================================================ */
.hero {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: calc(var(--header-height) + 80px) 0 80px;
    text-align: center;
}

.hero__catch {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero__sub {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero__cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   トップページ: 各セクション
   ============================================================ */
/* お知らせ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.news-list__item a {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background-color: var(--color-white);
    color: var(--color-text);
    align-items: baseline;
    transition: background-color 0.2s;
}

.news-list__item a:hover {
    background-color: var(--color-bg-section);
    text-decoration: none;
}

.news-list__date {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #888;
}

.news-list__title {
    font-size: 0.95rem;
}

/* 特徴カード */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ブログカード */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.blog-card a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
}

.blog-card__thumbnail {
    aspect-ratio: 16 / 9;
    background-color: var(--color-bg-section);
    overflow: hidden;
}

.blog-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body {
    padding: 16px;
}

.blog-card__date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px;
}

.blog-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

/* CTA セクション */
.cta-section {
    background-color: var(--color-accent);
    padding: 64px 0;
    text-align: center;
    color: var(--color-white);
}

.cta-section__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.cta-section__sub {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-section .btn--primary {
    background-color: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-white);
    font-size: 1.125rem;
    padding: 16px 48px;
}

.cta-section .btn--primary:hover {
    background-color: var(--color-base);
    border-color: var(--color-base);
    color: var(--color-accent-dark);
}

/* ============================================================
   口コミ
   ============================================================ */
.reviews-embed {
    text-align: center;
    margin-bottom: 24px;
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* ============================================================
   テーブル（料金・受付時間）
   ============================================================ */
.price-table,
.hours-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th,
.price-table td,
.hours-table th,
.hours-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
}

.price-table th,
.hours-table th {
    background-color: var(--color-main);
    color: var(--color-white);
    font-weight: 700;
    text-align: left;
}

.price-table td:last-child {
    text-align: right;
    font-weight: 700;
    font-size: 1.125rem;
}

.price-table tr:last-child td,
.hours-table tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   お知らせ・ブログ一覧
   ============================================================ */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-list__item a {
    display: flex;
    gap: 20px;
    align-items: baseline;
    padding: 20px 24px;
    background-color: var(--color-white);
    color: var(--color-text);
    transition: background-color 0.2s;
}

.post-list__item a:hover {
    background-color: var(--color-bg-section);
    text-decoration: none;
}

.post-list__date {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #888;
}

.post-list__title {
    font-size: 1rem;
    line-height: 1.6;
}

.post-list--empty {
    padding: 40px;
    text-align: center;
    color: #888;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

/* ============================================================
   記事詳細
   ============================================================ */
.post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.post-date {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 8px;
}

.post-title {
    font-size: 1.75rem;
    line-height: 1.4;
}

.post-body {
    line-height: 2;
}

.post-body h2 { font-size: 1.375rem; margin: 2em 0 1em; color: var(--color-main); }
.post-body h3 { font-size: 1.125rem; margin: 1.5em 0 0.75em; }
.post-body p  { margin-bottom: 1em; }
.post-body ul, .post-body ol { margin: 1em 0 1em 1.5em; list-style: revert; }
.post-body img { max-width: 100%; height: auto; margin: 1.5em auto; border-radius: var(--radius); }

.post-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

/* パンくずリスト */
.breadcrumb {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--color-main);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ============================================================
   お問い合わせ・予約
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.contact-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 16px;
}

.contact-card__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.contact-card__note {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.7;
}

.contact-card .btn {
    margin-top: 16px;
    width: 100%;
}

/* 注意書き */
.notice-box {
    background-color: #fff8f0;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin-top: 32px;
    font-size: 0.9rem;
}

/* ============================================================
   アクセス
   ============================================================ */
.map-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.access-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.access-info-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.access-info-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-main);
}

/* ============================================================
   サイトマップ
   ============================================================ */
.sitemap-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.sitemap-list__section h2 {
    font-size: 1rem;
    color: var(--color-main);
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sitemap-list__section ul {
    list-style: none;
}

.sitemap-list__section ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.sitemap-list__section ul li a {
    color: var(--color-text);
}

/* ============================================================
   プライバシーポリシー
   ============================================================ */
.privacy-content h2 {
    font-size: 1.125rem;
    color: var(--color-main);
    margin: 2em 0 0.75em;
}

.privacy-content p,
.privacy-content ul {
    margin-bottom: 1em;
    line-height: 1.9;
}

.privacy-content ul {
    padding-left: 1.5em;
    list-style: disc;
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* ============================================================
   レスポンシブ: タブレット (〜1023px)
   ============================================================ */
@media (max-width: 1023px) {
    :root {
        --section-gap: 60px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   レスポンシブ: スマートフォン (〜767px)
   ============================================================ */
@media (max-width: 767px) {
    :root {
        --section-gap: 48px;
        --header-height: 60px;
    }

    h1 { font-size: 1.375rem; }
    h2 { font-size: 1.25rem; }

    /* ヘッダー */
    .global-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-white);
        overflow-y: auto;
        padding: 24px;
        z-index: 99;
    }

    .global-nav.is-open {
        display: block;
    }

    .global-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .global-nav__list a {
        padding: 16px 8px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
    }

    .global-nav__list .nav-cta {
        margin-top: 16px;
        border-radius: var(--radius);
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    /* ヒーロー */
    .hero__catch {
        font-size: 1.375rem;
    }

    /* 特徴グリッド */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* ブロググリッド */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* フッター */
    .footer-inner {
        grid-template-columns: 1fr;
    }

    /* テーブル */
    .price-table,
    .hours-table {
        display: block;
        overflow-x: auto;
    }

    /* アクセス */
    .access-info-grid {
        grid-template-columns: 1fr;
    }

    /* サイトマップ */
    .sitemap-list {
        grid-template-columns: 1fr;
    }
}
