/* ===== ENIWA DAIICHI HOSPITAL - COMMON STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600&display=swap');

:root {
  --warm:       #c0392b;
  --warm-dark:  #962d22;
  --warm-light: #fdf0ee;
  --warm-mid:   #e05a4a;
  --accent:     #e8830a;
  --white:      #ffffff;
  --gray-50:    #f8fafb;
  --gray-100:   #eef2f3;
  --gray-300:   #c8d4d6;
  --gray-600:   #6b5c5a;
  --gray-800:   #2e1f1e;
  --text:       #2e1f1e;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(192,57,43,.10);
  --shadow-lg:  0 6px 32px rgba(192,57,43,.18);
  --header-h:   117px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .3s;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; background: var(--warm);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { line-height: 1.3; }
.logo-text .corp { font-size: 10px; color: var(--gray-600); letter-spacing: .05em; }
.logo-text .name { font-size: 18px; font-weight: 700; color: var(--warm-dark); letter-spacing: .03em; }
.header-info { display: flex; align-items: center; gap: 24px; }
.header-tel .label { font-size: 10px; color: var(--gray-600); }
.header-tel .num {
  font-size: 20px; font-weight: 700; color: var(--warm-dark); letter-spacing: .05em;
  display: flex; align-items: center; gap: 6px;
}
.header-tel .num svg { width: 16px; height: 16px; fill: var(--warm); }
.header-btns { display: flex; gap: 8px; }
.btn-access, .btn-recruit, .btn-inquiry {
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 12px; font-weight: 500; white-space: nowrap; transition: all .2s;
}
.btn-access { border: 1.5px solid var(--warm); color: var(--warm); }
.btn-access:hover { background: var(--warm-light); }
.btn-recruit { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-recruit:hover { background: #fff3e8; }
.btn-inquiry { background: var(--warm); color: white; border: 1.5px solid var(--warm); }
.btn-inquiry:hover { background: var(--warm-dark); }

.main-nav {
  background: var(--warm-dark); padding: 0 32px; display: flex;
}
.main-nav > a {
  color: rgba(255,255,255,.88); font-size: 13px; font-weight: 500;
  padding: 13px 20px; display: block; transition: background .2s, color .2s;
  position: relative;
}
.main-nav > a:hover, .main-nav > a.active {
  background: rgba(255,255,255,.12); color: white;
}
.main-nav > a::after {
  content: ''; display: block; position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--accent); transition: left .2s, right .2s;
}
.main-nav > a:hover::after, .main-nav > a.active::after { left: 0; right: 0; }
.hamburger { display: none; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--warm-dark) 0%, var(--warm) 60%, var(--warm-mid) 100%);
  padding: 48px 32px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.07)'/%3E%3C/svg%3E") repeat;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,.5); }
.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 32px); font-weight: 600;
  color: white; letter-spacing: .05em;
}
.page-hero-en {
  font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.6);
  text-transform: uppercase; margin-top: 6px;
}

/* ===== LAYOUT ===== */
.page-body {
  max-width: 1100px; margin: 0 auto;
  padding: 56px 32px;
  display: grid; grid-template-columns: 1fr 260px; gap: 40px;
}
.page-body.wide { grid-template-columns: 1fr; }
.main-content {}

/* ===== SIDEBAR ===== */
.sidebar {}
.sidebar-nav {
  background: white; border-radius: 10px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 24px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.sidebar-nav-title {
  background: var(--warm); color: white;
  padding: 14px 20px; font-size: 13px; font-weight: 700;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s, color .15s; color: var(--gray-800);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { background: var(--warm-light); color: var(--warm-dark); }
.sidebar-nav a.active { background: var(--warm-light); color: var(--warm-dark); font-weight: 700; }
.sidebar-nav a::before { content: '›'; color: var(--warm); font-size: 16px; }

.sidebar-contact {
  background: var(--warm-dark); color: white;
  border-radius: 10px; padding: 24px 20px; text-align: center;
}
.sidebar-contact .sc-label { font-size: 11px; opacity: .8; margin-bottom: 8px; }
.sidebar-contact .sc-tel {
  font-size: 20px; font-weight: 700; letter-spacing: .05em; margin-bottom: 12px;
}
.sidebar-contact .sc-hours { font-size: 11px; opacity: .75; line-height: 1.8; }

/* ===== SECTION ELEMENTS ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-en {
  font-size: 11px; letter-spacing: .2em; color: var(--warm);
  text-transform: uppercase; margin-bottom: 8px; display: block;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px; font-weight: 600; color: var(--gray-800);
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; display: block; height: 3px; width: 48px;
  background: var(--warm); margin: 12px auto 0;
}

/* CONTENT HEADINGS */
.content-h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; font-weight: 600; color: var(--warm-dark);
  padding: 14px 20px; margin: 32px 0 20px;
  border-left: 4px solid var(--warm);
  background: var(--warm-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.content-h2:first-child { margin-top: 0; }
.content-h3 {
  font-size: 16px; font-weight: 700; color: var(--gray-800);
  padding-bottom: 8px; margin: 24px 0 12px;
  border-bottom: 2px solid var(--warm-light);
}
.content-p { font-size: 14px; line-height: 2; color: var(--gray-600); margin-bottom: 16px; }

/* CARD */
.card {
  background: white; border-radius: 10px;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 20px;
}

/* STEP FLOW */
.step-list { list-style: none; }
.step-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--gray-100);
  position: relative;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--warm); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.step-body {}
.step-title { font-size: 15px; font-weight: 700; color: var(--warm-dark); margin-bottom: 6px; }
.step-desc { font-size: 13px; line-height: 1.8; color: var(--gray-600); }
.step-list .step-item + .step-item .step-num::before {
  content: ''; position: absolute; top: 0; left: 19px;
  width: 2px; height: 20px; background: var(--gray-300);
}

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--warm-light); color: var(--warm-dark);
  font-weight: 700; padding: 12px 16px; text-align: left;
  border-bottom: 2px solid var(--warm);
}
.data-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  line-height: 1.7;
}
.data-table tr:hover td { background: var(--gray-50); }

/* TAG */
.tag {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: 3px; font-weight: 500;
}
.tag-warm { background: var(--warm-light); color: var(--warm); }
.tag-accent { background: #fff3cc; color: #a07000; }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

/* GRID CARDS */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card-grid.col2 { grid-template-columns: repeat(2, 1fr); }
.dept-card {
  background: white; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  transition: all .2s;
}
.dept-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.dept-card-head {
  background: var(--warm); color: white;
  padding: 18px 20px; display: flex; align-items: center; gap: 12px;
}
.dept-card-head svg { width: 22px; height: 22px; stroke: rgba(255,255,255,.8); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.dept-card-head-title { font-size: 15px; font-weight: 700; }
.dept-card-body { padding: 16px 20px; }
.dept-card-body p { font-size: 12px; line-height: 1.8; color: var(--gray-600); }
.dept-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 12px; color: var(--warm); font-weight: 600;
}
.dept-card-link:hover { text-decoration: underline; }

/* EMERGENCY BANNER */
.emergency-banner {
  background: var(--warm-dark); color: white;
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.emergency-banner .left { display: flex; align-items: center; gap: 16px; }
.emergency-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.emergency-icon svg { width: 28px; height: 28px; stroke: white; fill: none; stroke-width: 1.5; }
.emergency-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.emergency-sub { font-size: 13px; opacity: .8; }
.emergency-tel {
  font-size: 28px; font-weight: 700; letter-spacing: .05em;
  display: flex; align-items: center; gap: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-800); color: white; padding: 56px 32px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo .name { font-size: 18px; font-weight: 700; color: var(--warm-mid); }
.footer-logo .corp { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer-info { font-size: 12px; line-height: 2; color: rgba(255,255,255,.65); }
.footer-info strong { color: white; }
.footer-col-title {
  font-size: 13px; font-weight: 700; color: var(--warm-mid);
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { list-style: none; }
.footer-links li { padding: 5px 0; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,.65); transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--warm-mid); }
.footer-links a:hover { color: white; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 11px; color: rgba(255,255,255,.4);
}

/* ===== SCROLL CTA ===== */
.scroll-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
}
.scroll-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 16px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); cursor: pointer; transition: all .2s; gap: 6px;
}
.scroll-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.scroll-btn-tel { background: var(--warm); color: white; }
.scroll-btn-tel:hover { background: var(--warm-dark); transform: scale(1.05); }
.scroll-btn-top { background: white; color: var(--gray-600); border: 1px solid var(--gray-300); }
.scroll-btn-top:hover { background: var(--gray-50); transform: scale(1.05); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .header-top { padding: 0 20px; height: 60px; }
  .header-info { display: none; }
  .hamburger {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--warm-dark); position: relative; }
  .hamburger span::before, .hamburger span::after {
    content: ''; position: absolute; left: 0; width: 24px; height: 2px; background: var(--warm-dark);
  }
  .hamburger span::before { top: -7px; }
  .hamburger span::after { top: 7px; }
  .main-nav { display: none; flex-direction: column; padding: 0; }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .page-body { grid-template-columns: 1fr; padding: 32px 20px; }
  .sidebar { order: -1; }
  .sidebar-nav { position: static; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.col2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .emergency-banner { flex-direction: column; text-align: center; }
  .emergency-banner .left { flex-direction: column; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}
