/* MedReach™ — Subpage Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-0: #0a0a0a; --bg-1: #111111; --bg-2: #1a1a1a;
  --text: #f0f0f0; --text-mute: #999999; --text-dim: #666666;
  --line: #222222; --line-strong: #333333;
  --gold-1: #b8860b; --gold-2: #d4a843; --gold-3: #e8c860;
  --gold-grad: linear-gradient(135deg, #b8860b, #d4a843 50%, #e8c860);
  --font-en: 'Playfair Display', serif;
  --font-jp-serif: 'Noto Serif JP', serif;
  --font-jp-sans: 'Noto Sans JP', sans-serif;
  --container: 1240px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-jp-sans); font-size: 15px; line-height: 1.8; color: var(--text); background: var(--bg-0); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* Header (same as LP) */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,10,10,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: all 0.4s ease; }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header-logo { display: flex; align-items: baseline; gap: 0; }
.header-logo .logo-main { font-family: var(--font-en); font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.header-logo .logo-sub { font-family: var(--font-en); font-size: 11px; font-weight: 400; color: var(--text-mute); letter-spacing: 0.08em; margin-left: 10px; position: relative; padding-left: 12px; }
.header-logo .logo-sub::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; transform: translateY(-50%); background: var(--line-strong); }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-mute); transition: color 0.3s; }
.header-nav a:hover { color: var(--text); }
.header-nav a.nav-cta { border: 1px solid var(--gold-1); padding: 8px 20px; border-radius: 2px; color: var(--gold-2); }
.header-nav a.nav-cta:hover { background: var(--gold-1); color: #fff; }
.hamburger { display: none; width: 28px; height: 20px; position: relative; cursor: pointer; }
.hamburger span { display: block; position: absolute; width: 100%; height: 1.5px; background: var(--text); transition: 0.3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }
@media (max-width: 768px) {
  .header-inner { padding: 0 24px; }
  .hamburger { display: block; }
  .header-nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: rgba(10,10,10,0.95); backdrop-filter: blur(14px); flex-direction: column; justify-content: center; gap: 40px; transition: right 0.4s ease; }
  .header-nav.open { right: 0; }
}

/* Sub-hero */
.sub-hero { padding: 140px 0 64px; background: var(--bg-1); }
.breadcrumb { font-size: 12px; color: var(--text-dim); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-mute); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold-2); }
.sub-hero h1 { font-family: var(--font-en); font-size: clamp(40px, 5vw, 64px); font-weight: 400; }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.filter-btn { padding: 8px 20px; font-size: 12px; letter-spacing: 0.1em; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-mute); background: transparent; cursor: pointer; transition: all 0.3s; }
.filter-btn.active, .filter-btn:hover { border-color: var(--gold-1); color: var(--gold-2); background: rgba(184,134,11,0.08); }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 64px 0; }
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .card-grid { grid-template-columns: 1fr; } }

/* Case Card */
.case-card { background: var(--bg-2); border-radius: 2px; overflow: hidden; transition: all 0.3s ease; display: block; position: relative; }
.case-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-grad); }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(184,134,11,0.3); }
.case-card:hover .case-img img { transform: scale(1.06); }
.case-img { aspect-ratio: 16/10; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-body { padding: 28px; }
.case-cat { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.case-body h3 { font-family: var(--font-jp-serif); font-size: 17px; font-weight: 700; margin-bottom: 12px; line-height: 1.6; }
.case-body p { font-size: 13px; color: var(--text-mute); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Detail page */
.detail-wrap { padding: 64px 0 140px; max-width: 800px; margin: 0 auto; }
.detail-hero-img { aspect-ratio: 16/9; overflow: hidden; border-radius: 2px; margin-bottom: 32px; position: relative; }
.detail-hero-img::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-grad); z-index: 1; }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.detail-badge { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-2); border: 1px solid var(--gold-1); padding: 4px 12px; border-radius: 999px; }
.detail-date { font-family: var(--font-en); font-size: 13px; color: var(--text-dim); }
.detail-title { font-family: var(--font-jp-serif); font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; line-height: 1.4; margin-bottom: 24px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.detail-tags span { font-size: 11px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-dim); }

/* Detail body */
.detail-body { line-height: 2.1; color: var(--text-mute); }
.detail-body h2 { font-family: var(--font-jp-serif); font-size: 26px; font-weight: 700; color: var(--text); margin: 48px 0 16px; padding-left: 16px; border-left: 3px solid var(--gold-1); }
.detail-body h3 { font-family: var(--font-jp-serif); font-size: 19px; font-weight: 700; color: var(--gold-3); margin: 32px 0 12px; }
.detail-body p { margin-bottom: 20px; }
.detail-body a { color: var(--gold-2); text-decoration: underline; }
.detail-body ul, .detail-body ol { margin: 16px 0; padding-left: 24px; }
.detail-body li { margin-bottom: 8px; }
.detail-body img { border-radius: 2px; margin: 24px 0; }

/* Detail footer */
.detail-footer { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.detail-footer a { font-size: 13px; color: var(--gold-2); transition: color 0.3s; }
.detail-footer a:hover { color: var(--gold-3); }

/* News list page */
.news-page-list { padding: 48px 0 140px; }
.news-page-row { display: flex; align-items: center; gap: 24px; padding: 24px 16px; border-bottom: 1px solid var(--line); transition: all 0.3s ease; }
.news-page-row:hover { background: rgba(184,134,11,0.04); padding-left: 28px; }
.news-page-row .ndate { font-family: var(--font-en); font-size: 14px; color: var(--gold-2); min-width: 110px; }
.news-page-row .ncat { font-size: 10px; letter-spacing: 0.12em; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-dim); white-space: nowrap; }
.news-page-row .ntitle { font-size: 15px; flex: 1; }
.news-page-row .narrow { opacity: 0; transition: opacity 0.3s; color: var(--gold-2); }
.news-page-row:hover .narrow { opacity: 1; }
@media (max-width: 768px) { .news-page-row { flex-wrap: wrap; gap: 8px; } .news-page-row .ntitle { width: 100%; } }

/* Footer */
.footer { background: var(--bg-0); padding: 80px 0 32px; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold-grad); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .footer-logo { font-family: var(--font-en); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-mute); line-height: 1.8; }
.footer-links h4 { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13px; color: var(--text-mute); margin-bottom: 10px; transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-dim); }
.footer-bottom a { color: var(--text-dim); margin-left: 24px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 12px; } }
