/* ================================================================
   加須病院スタイル ヘッダー CSS
   ================================================================ */

/* ================================================================
   CSS変数
   ================================================================ */
:root {
  --header-height: 115px;
  --header-nav-height: 50px;
  --header-bg: #fff;
  --header-nav-bg: #1a365d;
  --header-text: #333;
  --header-accent: #114FA1;
  --header-accent-light: #e8f4fc;
}

/* ================================================================
   PC ヘッダー上段
   ================================================================ */
.sz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sz-header__top {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.sz-header__top-inner {
  width: 98%;
  max-width: none;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ロゴ */
.sz-header__logo {
  flex-shrink: 0;
}

.sz-header__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sz-header__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.sz-header__logo-icon img {
  height: 40px;
  width: auto;
}

.sz-header__logo-text {
  display: flex;
  flex-direction: column;
}

.sz-header__logo-sub {
  font-size: 18px;
  font-weight: 700;
  color: var(--header-accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 右側エリア（2段構成） */
.sz-header__right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
}

/* ナビ行（メインナビ + ボタン） */
.sz-header__nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ユーティリティ */
.sz-header__utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.sz-header__util-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  font-size: 11px;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sz-header__util-btn:hover {
  color: var(--header-accent);
  background: var(--header-accent-light);
}

.sz-header__util-btn .material-symbols-outlined {
  font-size: 18px;
}

.sz-header__util-btn--border {
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
}

.sz-header__util-btn--accent {
  color: #dc2626;
}

.sz-header__util-btn--accent:hover {
  background: #fef2f2;
}

/* 電話番号 */
.sz-header__tel {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  margin-left: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--header-accent);
  text-decoration: none;
  background: var(--header-accent-light);
  border: 2px solid var(--header-accent);
  border-radius: 30px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sz-header__tel:hover {
  background: var(--header-accent);
  color: #fff;
}

.sz-header__tel .material-symbols-outlined {
  font-size: 22px;
}

/* ================================================================
   PC ナビゲーション（1行統合・白背景・黒文字）
   ================================================================ */
.sz-header__nav {
  background: transparent;
}

.sz-header__nav-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sz-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sz-nav__item {
  position: relative;
}

.sz-nav__link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1a365d;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sz-nav__link:hover,
.sz-nav__item.is-active .sz-nav__link {
  color: var(--header-accent);
}

/* アクティブ時の下線 */
.sz-nav__item.is-active .sz-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--header-accent);
  border-radius: 2px 2px 0 0;
}

/* ナビボタン */
.sz-nav__btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.sz-nav__btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sz-nav__btn .material-symbols-outlined {
  font-size: 16px;
}

.sz-nav__btn--access {
  background: #0a7852;
  color: #fff;
}

.sz-nav__btn--access:hover {
  background: #059669;
}

.sz-nav__btn--schedule {
  background: #a5500f;
  color: #fff;
}

.sz-nav__btn--schedule:hover {
  background: #ea580c;
}

/* ================================================================
   メガメニュー（saikazo.org準拠デザイン - 中央配置）
   ================================================================ */
.sz-mega {
  position: fixed;
  top: var(--header-height, 90px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sz-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* オーバーレイ（黒シャドー）- ヘッダー下から開始 */
.sz-mega__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.sz-mega__container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px; /* 固定幅で統一 */
  max-width: 95vw;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.sz-mega__panel {
  display: none;
}

.sz-mega__panel.is-active {
  display: block;
}

.sz-mega__inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.sz-mega__inner--wide {
  flex-direction: column;
  padding: 50px 60px;
}

.sz-mega__inner--split {
  flex-direction: column;
  padding: 50px 60px;
}

.sz-mega__left {
  width: 35%;
  max-width: 350px;
  flex-shrink: 0;
}

.sz-mega__image {
  height: 100%;
  min-height: 280px;
}

.sz-mega__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sz-mega__right {
  flex: 1;
  padding: 50px 60px;
}

/* メガメニューヘッダー */
.sz-mega__header {
  margin-bottom: 30px;
}

.sz-mega__header--bar {
  padding-bottom: 20px;
  border-bottom: 3px solid var(--header-accent);
}

.sz-mega__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--header-accent);
  text-decoration: none;
}

.sz-mega__title:hover {
  text-decoration: underline;
}

.sz-mega__title .material-symbols-outlined {
  font-size: 20px;
}

/* メガメニューカード（saikazo.org準拠） */
.sz-mega__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sz-mega__card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px 20px;
  padding-right: 60px;
  min-height: 90px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sz-mega__card:hover {
  border-color: var(--header-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sz-mega__card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
}

.sz-mega__card-icon--blue {
  background: #e0f2fe;
}
.sz-mega__card-icon--blue .material-symbols-outlined { color: #0284c7; }

.sz-mega__card-icon--green {
  background: #d1fae5;
}
.sz-mega__card-icon--green .material-symbols-outlined { color: #059669; }

.sz-mega__card-icon--teal {
  background: #ccfbf1;
}
.sz-mega__card-icon--teal .material-symbols-outlined { color: #0d9488; }

.sz-mega__card-icon--orange {
  background: #fed7aa;
}
.sz-mega__card-icon--orange .material-symbols-outlined { color: #ea580c; }

.sz-mega__card-icon--purple {
  background: #ede9fe;
}
.sz-mega__card-icon--purple .material-symbols-outlined { color: #7c3aed; }

.sz-mega__card-txt {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1a365d;
  line-height: 1.5;
}

.sz-mega__card-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--header-accent);
  border-radius: 50%;
  color: #fff;
}

.sz-mega__card-arrow .material-symbols-outlined {
  font-size: 16px;
}

/* メガメニューグリッド */
.sz-mega__grid {
  display: grid;
  gap: 8px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sz-mega__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.sz-mega__grid li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.sz-mega__grid li a:hover {
  color: var(--header-accent);
}

.sz-mega__grid li a .material-symbols-outlined {
  font-size: 16px;
  color: var(--header-accent);
}

/* メガメニュー特集リンク */
.sz-mega__featured {
  margin-top: 24px;
}

.sz-mega__featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #f5f0e6;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sz-mega__featured-link:hover {
  background: #ebe4d4;
}

/* メガメニュー分割レイアウト（地域医療連携） */
.sz-mega__body--split {
  display: flex;
  gap: 40px;
}

.sz-mega__column {
  flex: 1;
}

.sz-mega__column-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}

.sz-mega__column-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sz-mega__column-header {
  margin-bottom: 16px;
}

.sz-mega__column-header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--header-accent);
  text-decoration: none;
}

.sz-mega__column-header a:hover {
  text-decoration: underline;
}

.sz-mega__column-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sz-mega__column-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.sz-mega__column-list li a:hover {
  color: var(--header-accent);
}

.sz-mega__column-list li a .material-symbols-outlined {
  font-size: 14px;
  color: var(--header-accent);
}

/* ================================================================
   SP ヘッダー
   ================================================================ */
.sz-header-sp {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sz-header-sp__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.sz-header-sp__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sz-header-sp__logo img {
  height: 28px;
}

.sz-header-sp__logo span {
  font-size: 13px;
  font-weight: 700;
  color: var(--header-accent);
}

.sz-header-sp__btns {
  display: flex;
  gap: 8px;
}

.sz-header-sp__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sz-header-sp__btn--tel {
  background: var(--header-accent);
  color: #fff;
}

.sz-header-sp__btn--menu {
  background: var(--header-nav-bg);
}

/* ハンバーガー */
.hamburger {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.sz-header-sp__btn--menu[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sz-header-sp__btn--menu[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.sz-header-sp__btn--menu[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ================================================================
   SP メニューパネル（中央展開）
   ================================================================ */
.sz-sp-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sz-sp-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sz-sp-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.sz-sp-menu__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 92%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.sz-sp-menu.is-open .sz-sp-menu__panel {
  transform: translate(-50%, -50%) scale(1);
}

/* メニューヘッダー */
.sz-sp-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.sz-sp-menu__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sz-sp-menu__logo img {
  height: 28px;
}

.sz-sp-menu__logo span {
  font-size: 13px;
  font-weight: 700;
  color: var(--header-accent);
}

.sz-sp-menu__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  cursor: pointer;
}

.sz-sp-menu__close .material-symbols-outlined {
  font-size: 24px;
  color: #666;
}

/* クイックカード */
.sz-sp-menu__quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 20px;
  background: #f9fafb;
}

.sz-sp-menu__quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--header-accent);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sz-sp-menu__quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sz-sp-menu__quick-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 8px;
}

.sz-sp-menu__quick-icon--blue { background: #dbeafe; }
.sz-sp-menu__quick-icon--blue .material-symbols-outlined { color: #1d4ed8; }
.sz-sp-menu__quick-icon--green { background: #dcfce7; }
.sz-sp-menu__quick-icon--green .material-symbols-outlined { color: #16a34a; }
.sz-sp-menu__quick-icon--teal { background: #ccfbf1; }
.sz-sp-menu__quick-icon--teal .material-symbols-outlined { color: #0d9488; }
.sz-sp-menu__quick-icon--orange { background: #ffedd5; }
.sz-sp-menu__quick-icon--orange .material-symbols-outlined { color: #ea580c; }
.sz-sp-menu__quick-icon--purple { background: #f3e8ff; }
.sz-sp-menu__quick-icon--purple .material-symbols-outlined { color: #7c3aed; }

.sz-sp-menu__quick-txt {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.4;
}

.sz-sp-menu__quick-arrow {
  margin-top: 8px;
  color: var(--header-accent);
}

.sz-sp-menu__quick-arrow .material-symbols-outlined {
  font-size: 16px;
}

/* ナビゲーションセクション */
.sz-sp-menu__nav {
  padding: 20px;
}

.sz-sp-menu__section {
  margin-bottom: 24px;
}

.sz-sp-menu__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--header-accent);
  text-decoration: none;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--header-accent);
}

.sz-sp-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sz-sp-menu__list--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 16px;
}

.sz-sp-menu__list li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.sz-sp-menu__list li a:hover {
  color: var(--header-accent);
}

.sz-sp-menu__list li a .material-symbols-outlined {
  font-size: 14px;
  color: var(--header-accent);
}

.sz-sp-menu__featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: #f5f0e6;
  border-radius: 24px;
  text-decoration: none;
}

/* 分割レイアウト（地域医療連携） */
.sz-sp-menu__split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sz-sp-menu__column-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
}

.sz-sp-menu__column-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sz-sp-menu__column-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--header-accent);
  text-decoration: none;
  margin-bottom: 8px;
}

.sz-sp-menu__column-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sz-sp-menu__column-list li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  font-size: 12px;
  color: #333;
  text-decoration: none;
}

.sz-sp-menu__column-list li a .material-symbols-outlined {
  font-size: 12px;
  color: var(--header-accent);
}

/* ================================================================
   検索パネル
   ================================================================ */
.sz-search {
  position: fixed;
  inset: 0;
  z-index: 1002;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sz-search.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sz-search__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.sz-search__inner {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sz-search__form {
  flex: 1;
  display: flex;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.sz-search__input {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
  border: none;
  outline: none;
}

.sz-search__submit {
  padding: 16px 24px;
  background: var(--header-accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

.sz-search__close {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.sz-search__close .material-symbols-outlined {
  font-size: 28px;
  color: #666;
}

/* ================================================================
   レスポンシブ
   ================================================================ */
@media (max-width: 1024px) {
  .sz-header__top,
  .sz-header__nav,
  .sz-mega {
    display: none;
  }

  .sz-header-sp {
    display: block;
  }
}

@media (min-width: 1025px) {
  .sz-header-sp,
  .sz-sp-menu {
    display: none;
  }
}

/* メインコンテンツのパディング */
.saikazo-main {
  padding-top: 120px;
}

@media (max-width: 1024px) {
  .saikazo-main {
    padding-top: 64px;
  }
}
