/*
Theme Name: Umekita Case Study
Description: うめきたクリニック 症例紹介 専用テーマ（medicalcollabo.com）
Author: Medical Collabo
Version: 1.1.0
*/

/* ─────────────────────────────────────────
   Design Tokens（header-beauty.php に準拠）
───────────────────────────────────────── */
:root {
    /* フォント：Shippori Mincho＋Noto Sans JP（美容ページ準拠） */
    --mc-font-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
    --mc-font-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

    /* カラー */
    --mc-text:      #0f172a;
    --mc-accent:    #0d9488;
    --mc-accent-lt: #f0fdfa;
    --mc-taupe:     #9f9073;
    --mc-taupe-lt:  #f5f2ed;
    --mc-border:    #e5e7eb;
    --mc-bg:        #faf9f6;
    --mc-white:     #fff;

    /* ヘッダー高さ（header.php と同値） */
    --uklp-header-h: 90px;

    /* コンテンツ最大幅 */
    --mc-max-w: 1200px;
}

/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ボディ：Noto Sans JP（美容ページ footer / body 準拠） */
body {
    font-family: var(--mc-font-gothic);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--mc-text);
    background: var(--mc-white);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────
   見出し：Shippori Mincho（ナビと同フォント）
───────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--mc-font-mincho);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.05em;
    color: var(--mc-text);
}

/* ─────────────────────────────────────────
   Container
───────────────────────────────────────── */
.mc-container {
    width: min(calc(100% - 48px), var(--mc-max-w));
    margin: 0 auto;
}
@media (max-width: 640px) {
    .mc-container { width: min(calc(100% - 32px), var(--mc-max-w)); }
}

/* ─────────────────────────────────────────
   Page Hero（症例一覧ページ上部）
───────────────────────────────────────── */
.mc-page-hero {
    background: var(--mc-taupe-lt);
    padding: 80px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mc-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(159,144,115,.08) 0%, transparent 60%);
    pointer-events: none;
}

/* 英語キャッカー：ナビ letter-spacing (.05em) に合わせつつ上質に */
.mc-page-hero__en {
    font-family: var(--mc-font-mincho);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--mc-taupe);
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* 大見出し：ナビの 18px/700 より大きい 36〜40px */
.mc-page-hero__title {
    font-family: var(--mc-font-mincho);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

/* リード文：本文と同 Noto Sans JP、16px/500 */
.mc-page-hero__lead {
    margin-top: 18px;
    font-family: var(--mc-font-gothic);
    font-size: 16px;
    font-weight: 500;
    color: #666;
    line-height: 2;
    letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   Category Filter
───────────────────────────────────────── */
.mc-filter {
    background: var(--mc-white);
    border-bottom: 1px solid var(--mc-border);
    padding: 20px 0;
}
.mc-filter__list {
    display: flex; flex-wrap: wrap; gap: 8px;
    list-style: none; justify-content: center;
}
.mc-filter__btn {
    display: inline-flex; align-items: center;
    padding: 6px 18px;
    border: 1px solid var(--mc-border);
    border-radius: 100px;
    font-family: var(--mc-font-gothic);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #666;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}
.mc-filter__btn:hover,
.mc-filter__btn.is-active {
    background: var(--mc-accent);
    border-color: var(--mc-accent);
    color: var(--mc-white);
}

/* ─────────────────────────────────────────
   Case Grid（アーカイブ）
───────────────────────────────────────── */
.mc-archive {
    padding: 64px 0 100px;
    background: var(--mc-bg);
}
.mc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 980px) { .mc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 580px)  { .mc-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ─────────────────────────────────────────
   Case Card
───────────────────────────────────────── */
.mc-card {
    background: var(--mc-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.mc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.mc-card__img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ede9e2;
}
.mc-card__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.mc-card:hover .mc-card__img-wrap img { transform: scale(1.04); }

/* カテゴリラベル：ナビ外部表示と同スタイル感 */
.mc-card__category {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    font-family: var(--mc-font-gothic);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mc-taupe);
    padding: 3px 10px;
    border-radius: 2px;
}

.mc-card__body {
    padding: 22px 20px 20px;
    flex: 1; display: flex; flex-direction: column;
}

/* カードタイトル：Shippori Mincho / 17px / 700（ナビより少し小さく） */
.mc-card__title {
    font-family: var(--mc-font-mincho);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin-bottom: 9px;
}
.mc-card__title a { text-decoration: none; color: inherit; }
.mc-card__title a:hover { color: var(--mc-accent); }

/* 抜粋文：本文と同 Noto / 13px / 500 */
.mc-card__excerpt {
    font-family: var(--mc-font-gothic);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.8;
    color: #777;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-card__meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-family: var(--mc-font-gothic);
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    margin-top: auto;
}

/* 詳細リンク：Shippori Mincho / 13px（ナビと同フォント） */
.mc-card__more {
    display: block;
    margin-top: 14px;
    text-align: center;
    padding: 9px;
    border: 1px solid var(--mc-border);
    border-radius: 4px;
    font-family: var(--mc-font-mincho);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--mc-text);
    transition: all .2s ease;
    text-decoration: none;
}
.mc-card:hover .mc-card__more {
    background: var(--mc-accent);
    border-color: var(--mc-accent);
    color: var(--mc-white);
}

/* ─────────────────────────────────────────
   Pagination
───────────────────────────────────────── */
.mc-pagination {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 6px; margin-top: 56px;
}
.mc-pagination a,
.mc-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border: 1px solid var(--mc-border); border-radius: 4px;
    font-family: var(--mc-font-mincho);
    font-size: 14px; font-weight: 700;
    color: var(--mc-text);
    transition: all .2s;
}
.mc-pagination a:hover,
.mc-pagination .current {
    background: var(--mc-accent);
    border-color: var(--mc-accent);
    color: var(--mc-white);
}

/* ─────────────────────────────────────────
   Breadcrumb
───────────────────────────────────────── */
.mc-breadcrumb {
    padding: 14px 0;
    font-family: var(--mc-font-gothic);
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    letter-spacing: 0.04em;
}
.mc-breadcrumb a { color: #aaa; transition: color .2s; }
.mc-breadcrumb a:hover { color: var(--mc-accent); }
.mc-breadcrumb span { margin: 0 6px; }

/* ─────────────────────────────────────────
   Single Case Page
───────────────────────────────────────── */
.mc-single {
    padding: 52px 0 100px;
    background: var(--mc-bg);
}
.mc-single__inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 44px;
    align-items: start;
}
@media (max-width: 980px) { .mc-single__inner { grid-template-columns: 1fr; gap: 28px; } }

/* Case Header（白背景エリア） */
.mc-case-header {
    background: var(--mc-white);
    padding: 44px 0 36px;
    border-bottom: 1px solid var(--mc-border);
}

/* 英語サブ：フッターの brand-kana（16px/500）に準じたサイズ感 */
.mc-case-header__en {
    font-family: var(--mc-font-mincho);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--mc-taupe);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mc-case-header__tag {
    display: inline-block;
    font-family: var(--mc-font-gothic);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mc-accent);
    border: 1px solid var(--mc-accent);
    padding: 2px 12px;
    border-radius: 2px;
    margin-bottom: 14px;
}

/* ページ h1：ナビ 18px/700 より大きい 28〜30px */
.mc-case-header__title {
    font-family: var(--mc-font-mincho);
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.mc-case-header__patient {
    margin-top: 10px;
    font-family: var(--mc-font-gothic);
    font-size: 13px;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   Before/After スライダー
───────────────────────────────────────── */
.mc-compare {
    position: relative; border-radius: 4px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.10); background: #111;
    user-select: none; touch-action: none;
}
.mc-compare__container {
    position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
}
.mc-compare__before-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; pointer-events: none;
}
.mc-compare__after-wrap {
    position: absolute; top: 0; left: 0; bottom: 0; width: 50%; overflow: hidden;
}
.mc-compare__after-img {
    position: absolute; top: 0; left: 0;
    height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.mc-compare__divider {
    position: absolute; top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 3px; background: var(--mc-white);
    box-shadow: 0 0 8px rgba(0,0,0,.3);
    cursor: ew-resize; z-index: 10;
}
.mc-compare__handle {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--mc-white); box-shadow: 0 2px 12px rgba(0,0,0,.2);
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.mc-compare__arrow {
    display: block; width: 7px; height: 7px;
    border-top: 2px solid #666; border-right: 2px solid #666;
}
.mc-compare__arrow--left  { transform: rotate(-135deg); }
.mc-compare__arrow--right { transform: rotate(45deg); }
.mc-compare__range {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: ew-resize; z-index: 20; -webkit-appearance: none;
}

/* Before/After ラベル：フッター brand-name と同フォント感 */
.mc-compare__labels {
    display: flex; justify-content: space-between;
    background: #111; padding: 10px 18px;
}
.mc-compare__label {
    font-family: var(--mc-font-mincho);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
}

/* アイキャッチのみ表示 */
.mc-single-img { border-radius: 4px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.10); }
.mc-single-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ─────────────────────────────────────────
   Case Content（本文エリア）
───────────────────────────────────────── */
.mc-case-content {
    background: var(--mc-white); border-radius: 4px;
    padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-top: 24px;
}

/* 内部 h2：Shippori Mincho / 18px（ナビと同サイズ） */
.mc-case-content h2 {
    font-family: var(--mc-font-mincho);
    font-size: 18px; font-weight: 700; letter-spacing: 0.06em;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--mc-border);
}

/* 本文段落：Noto Sans JP / 16px / 500 / line-height 2.0 */
.mc-case-content p {
    font-family: var(--mc-font-gothic);
    font-size: 16px; font-weight: 500;
    line-height: 2.0; color: #444;
    margin-bottom: 1.4em;
    letter-spacing: 0.02em;
}
.mc-case-content p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────
   Sidebar
───────────────────────────────────────── */
.mc-case-sidebar { display: flex; flex-direction: column; gap: 18px; }

.mc-detail-box {
    background: var(--mc-white); border-radius: 4px;
    padding: 26px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* サイドバー見出し：フッター .ggu-sitemap__heading（16px/600/letter .07em）に準拠 */
.mc-detail-box__title {
    font-family: var(--mc-font-gothic);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--mc-taupe);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

/* 詳細テーブル：フッター .ggu-sitemap__item（15px/500）に近いサイズ感 */
.mc-detail-table { width: 100%; border-collapse: collapse; }
.mc-detail-table tr { border-bottom: 1px solid #f3f4f6; }
.mc-detail-table tr:last-child { border-bottom: 0; }
.mc-detail-table th {
    width: 90px; padding: 10px 0;
    font-family: var(--mc-font-gothic);
    font-size: 13px; font-weight: 600;
    color: #999; vertical-align: top; white-space: nowrap;
}
.mc-detail-table td {
    padding: 10px 0 10px 10px;
    font-family: var(--mc-font-gothic);
    font-size: 15px; font-weight: 500;
    color: var(--mc-text); line-height: 1.7;
    letter-spacing: 0.03em;
}

.mc-precautions {
    font-family: var(--mc-font-gothic);
    font-size: 14px; font-weight: 500;
    line-height: 1.9; color: #666;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   CTA Box（サイドバー下部）
───────────────────────────────────────── */
.mc-cta-box {
    background: var(--mc-taupe); border-radius: 4px;
    padding: 26px; text-align: center; color: var(--mc-white);
}
.mc-cta-box__label {
    font-family: var(--mc-font-mincho);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.2em; opacity: .75; margin-bottom: 8px;
    text-transform: uppercase;
}
.mc-cta-box__title {
    font-family: var(--mc-font-mincho);
    font-size: 18px; font-weight: 700;
    letter-spacing: 0.05em; margin-bottom: 18px; line-height: 1.5;
}
.mc-cta-btn {
    display: block; padding: 13px; border-radius: 4px;
    font-family: var(--mc-font-mincho);
    font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
    margin-bottom: 8px; transition: all .2s ease;
    text-align: center; text-decoration: none;
}
.mc-cta-btn--tel  { background: var(--mc-white); color: var(--mc-text); }
.mc-cta-btn--tel:hover  { background: #f5f5f5; }
.mc-cta-btn--web  { background: var(--mc-accent); color: var(--mc-white); }
.mc-cta-btn--web:hover  { background: #0b7a70; }
.mc-cta-box__note {
    font-family: var(--mc-font-gothic);
    font-size: 11px; font-weight: 500;
    opacity: .65; margin-top: 6px; line-height: 1.6;
}

/* ─────────────────────────────────────────
   Disclaimer
───────────────────────────────────────── */
.mc-disclaimer {
    background: #faf7f2; border: 1px solid #e7dfd2;
    border-radius: 4px; padding: 18px 22px; margin-top: 28px;
}
.mc-disclaimer p {
    font-family: var(--mc-font-gothic);
    font-size: 12px; font-weight: 500;
    line-height: 1.9; color: #999; margin: 0;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   Back Link
───────────────────────────────────────── */
.mc-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mc-font-mincho);
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.05em; color: var(--mc-taupe);
    padding-bottom: 2px; border-bottom: 1px solid transparent;
    transition: border-color .2s; margin-bottom: 24px;
    text-decoration: none;
}
.mc-back-btn:hover { border-color: var(--mc-taupe); }

/* ─────────────────────────────────────────
   Empty State
───────────────────────────────────────── */
.mc-empty { text-align: center; padding: 80px 0; color: #bbb; }
.mc-empty p {
    font-family: var(--mc-font-mincho);
    font-size: 16px; font-weight: 500; line-height: 2;
}

/* ─────────────────────────────────────────
   Utility
───────────────────────────────────────── */
.mc-visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
