/* ================================================================
   池田脳神経外科 共通スタイルシート
   Responsive / HTML5 / 2026 Renewal
   ================================================================ */

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

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  color: #333;
  background: #f8f9fa;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a7a3a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0d5a28; }
img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background: #1a7a3a;
  color: #fff;
  font-size: 0.76rem;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top a { color: #fff; font-weight: 700; }

.header-main { padding: 10px 0; }
.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  overflow: hidden;
}
.site-logo .logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.site-logo .logo-img img { height: 26px; width: auto; }

/* Desktop Nav */
.main-nav { display: flex; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.80rem;
  font-weight: 500;
  color: #444;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.current { color: #1a7a3a; border-bottom-color: #1a7a3a; }

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #333; position: absolute; left: 10px;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile Nav */
.mobile-nav { display: none; background: #fff; border-top: 2px solid #1a7a3a; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; font-size: 1rem; color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav a:hover { background: #f0faf3; }
.mobile-nav a img { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; }

/* ================================================================
   MAIN / PAGE CONTENT
   ================================================================ */
.page-main {
  padding: 2.5rem 0 3rem;
}

.breadcrumb {
  font-size: 0.80rem;
  color: #888;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: #1a7a3a; }
.breadcrumb a::after { content: ' › '; color: #ccc; margin: 0 4px; }

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a5c2e;
  border-left: 5px solid #1a7a3a;
  padding-left: 14px;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* Section blocks */
.content-block {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e8e8e8;
}
.content-block h2 {
  font-size: 1.15rem;
  color: #1a7a3a;
  border-bottom: 2px solid #e8f5e9;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.content-block h3 {
  font-size: 1rem;
  color: #2a5a3a;
  margin: 1.2rem 0 0.5rem;
  padding-left: 10px;
  border-left: 3px solid #4CAF50;
}
.content-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin: 1rem 0 0.3rem;
}
.content-block p { margin-bottom: 0.7rem; font-size: 0.95rem; color: #444; }
.content-block ol,
.content-block ul { margin: 0.5rem 0 0.8rem 1.5rem; font-size: 0.95rem; color: #444; }
.content-block li { margin-bottom: 0.4rem; line-height: 1.7; }
.content-block img { border-radius: 8px; margin: 0.8rem 0; }
.content-block dl { font-size: 0.95rem; }
.content-block dt { font-weight: 700; color: #333; margin-top: 0.8rem; }
.content-block dd { color: #555; margin-left: 1.5rem; margin-bottom: 0.5rem; }

/* Two-column layout inside content block */
.two-col {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.two-col .col-img { flex: 0 0 auto; max-width: 240px; }
.two-col .col-text { flex: 1; min-width: 200px; }

/* Green callout box */
.callout-green {
  background: #e8f5e9;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}
.callout-green p { color: #2e5a2e; font-size: 0.9rem; margin-bottom: 0.4rem; }

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.8rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.schedule-table th {
  background: #1a7a3a;
  color: #fff;
  padding: 10px 16px;
  font-weight: 500;
  white-space: nowrap;
}
.schedule-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
  background: #fff;
}
.schedule-table td:nth-child(1),
.schedule-table td:nth-child(2) {
  white-space: nowrap;
}
.schedule-table tr:last-child td { border-bottom: none; }

/* Vaccine table */
.vaccine-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}
.vaccine-table th {
  background: #1a7a3a;
  color: #fff;
  padding: 10px 14px;
  font-weight: 500;
  text-align: left;
}
.vaccine-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  vertical-align: top;
}
.vaccine-table tr:nth-child(even) td { background: #f8faf8; }

/* Sub-nav links (director pages) */
.sub-nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.sub-nav a {
  display: inline-block;
  background: #fff;
  border: 2px solid #1a7a3a;
  color: #1a7a3a;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}
.sub-nav a:hover, .sub-nav a.current {
  background: #1a7a3a;
  color: #fff;
}

/* News list */
.news-list { max-width: 860px; }
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}
.news-date {
  flex-shrink: 0;
  background: #e8f5e9;
  color: #1a7a3a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

/* Menu grid (top page) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.menu-item {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 0.8rem;
  text-align: center;
  border: 1px solid #e8e8e8;
  transition: all 0.25s;
  color: #333;
}
.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  border-color: #1a7a3a;
}
.menu-item img {
  width: 80px; height: 80px;
  margin: 0 auto 0.8rem;
  border-radius: 14px;
  transition: transform 0.2s;
}
.menu-item:hover img { transform: scale(1.06); }
.menu-item span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Section title */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a7a3a;
  text-align: center;
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  background: linear-gradient(90deg, #1a7a3a, #4CAF50);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 60%, #fff 100%);
  padding: 2.5rem 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5c2e;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.hero-text h1 span { color: #4CAF50; }
.hero-text p { font-size: 0.95rem; color: #555; margin-bottom: 1.5rem; }
.hero-image { flex: 1; max-width: 500px; }
.hero-image img {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.tel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a7a3a;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(26,122,58,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tel-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26,122,58,0.38);
}
.tel-cta-note { display: block; font-size: 0.75rem; color: #888; margin-top: 6px; }

/* Info cards (top page) */
.info-bar { background: #fff; padding: 2rem 0; border-bottom: 1px solid #e0e0e0; }
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-card {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e8e8e8;
}
.info-card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.info-card h3 { font-size: 1rem; color: #1a7a3a; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.85rem; color: #555; }

/* Blog section */
.blog-section { padding: 2.5rem 0; background: #fff; }
.blog-banners {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-card {
  display: block;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: all 0.2s;
  max-width: 300px;
  width: 100%;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}
.blog-card img { width: 100%; }
.blog-card .blog-desc { padding: 10px 14px; font-size: 0.80rem; color: #555; }

/* Access */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}
.access-map img { border-radius: 10px; margin: 0 auto; }

/* Column list */
.column-list { display: flex; flex-direction: column; gap: 0.6rem; }
.column-cat {
  font-size: 1rem;
  font-weight: 700;
  color: #1a7a3a;
  margin: 1.5rem 0 0.5rem;
  padding-left: 10px;
  border-left: 4px solid #4CAF50;
}
.column-link {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s;
  font-size: 0.92rem;
  color: #333;
  gap: 10px;
}
.column-link:hover {
  border-color: #1a7a3a;
  background: #f0faf3;
  transform: translateX(4px);
}
.column-link::before {
  content: '▶';
  color: #1a7a3a;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Gallery (media) */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.media-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: all 0.2s;
}
.media-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.07);
}
.media-item img { width: 100%; object-fit: cover; }
.media-item p { padding: 10px 12px; font-size: 0.8rem; color: #555; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #1a3a1a;
  color: #aaa;
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 0.8rem; }
.footer-col p, .footer-col a {
  font-size: 0.80rem;
  color: #aaa;
  line-height: 2;
}
.footer-col a:hover { color: #4CAF50; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo img { width: 34px; height: 34px; border-radius: 8px; }
.footer-logo span { color: #fff; font-weight: 700; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid #2a4a2a;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: #666;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  html { font-size: 17px; }
  .main-nav { display: none; }
  .hamburger { display: block; }

  .hero .container { flex-direction: column; gap: 1.5rem; text-align: center; }
  .hero-text h1 { font-size: 1.5rem; }
  .hero-image { max-width: 100%; }
  .tel-cta { width: 100%; justify-content: center; }

  .info-cards { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .access-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .media-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .header-top { display: none; }
  .site-logo .logo-img img { height: 22px; }

  .hero { padding: 1.5rem 0; }
  .hero-text h1 { font-size: 1.25rem; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .menu-item { padding: 1rem 0.5rem; }
  .menu-item img { width: 60px; height: 60px; }

  .two-col { flex-direction: column; }
  .two-col .col-img { max-width: 100%; }

  .news-item { flex-direction: column; gap: 0.4rem; }
  .media-gallery { grid-template-columns: 1fr; }
  .sub-nav { gap: 0.5rem; }
  .content-block { padding: 1.2rem; }
  .page-title { font-size: 1.2rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .mobile-nav, .hamburger { display: none !important; }
  body { background: #fff; }
  .content-block { border: 1px solid #ccc; box-shadow: none; }
}
