/* ================================================================
   saikazo-subpage.css
   木古内町国民健康保険病院スタイル サブページ共通

   注意: CSS変数は variables.css で一元管理されています。
   --sz-* プレフィックスの変数を使用してください。
   ================================================================ */

/* ================================================================
   Page Hero（ページヒーロー）
   ================================================================ */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 79, 161, 0.85) 0%, rgba(13, 61, 122, 0.9) 100%);
  z-index: 2;
}

.page-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--sz-white);
  padding: 0 20px;
}

.page-hero__category {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.page-hero__title {
  margin: 0;
  overflow: visible;
}

.page-hero__title-en {
  display: block;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
  white-space: nowrap;
}

.page-hero__title-ja {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ================================================================
   Breadcrumb（パンくずリスト）
   ================================================================ */
.page-breadcrumb {
  background: var(--sz-gray-50);
  border-bottom: 1px solid var(--sz-gray-200);
  padding: 14px 0;
}

.page-breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.page-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-breadcrumb__item::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--sz-gray-400);
  border-right: 1px solid var(--sz-gray-400);
  transform: rotate(45deg);
}

.page-breadcrumb__item:last-child::after {
  display: none;
}

.page-breadcrumb__item a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--sz-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.page-breadcrumb__item a:hover {
  opacity: 0.7;
}

.page-breadcrumb__item a .material-symbols-outlined {
  font-size: 18px;
}

.page-breadcrumb__item:last-child a {
  color: var(--sz-text-light);
  pointer-events: none;
}

/* ================================================================
   Page Container（ページコンテナ）
   ================================================================ */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

/* ================================================================
   Page Main（メインコンテンツ）
   ================================================================ */
.page-main {
  background: var(--sz-white);
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* セクション見出し */
.page-section {
  margin-bottom: 48px;
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sz-text);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--sz-primary);
}

.page-section__title .material-symbols-outlined {
  font-size: 28px;
  color: var(--sz-primary);
}

.page-section__title--sub {
  font-size: 1.25rem;
  border-bottom-width: 2px;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

/* 本文 */
.page-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--sz-text);
}

.page-text p {
  margin: 0 0 1.5em;
}

.page-text p:last-child {
  margin-bottom: 0;
}

/* リスト */
.page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--sz-primary);
  border-radius: 50%;
}

/* テーブル */
.page-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.page-table th,
.page-table td {
  padding: 16px 20px;
  text-align: left;
  border: 1px solid var(--sz-gray-200);
  font-size: 14px;
  line-height: 1.6;
}

.page-table th {
  background: var(--sz-primary);
  color: var(--sz-white);
  font-weight: 600;
  white-space: nowrap;
}

.page-table tbody th {
  background: var(--sz-primary-light);
  color: var(--sz-text);
  width: 160px;
}

.page-table tbody tr:nth-child(even) {
  background: var(--sz-gray-50);
}

/* ボックス */
.page-box {
  background: var(--sz-gray-50);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.page-box--info {
  background: var(--sz-primary-light);
  border-left: 4px solid var(--sz-primary);
}

.page-box--warning {
  background: #fef3cd;
  border-left: 4px solid #ffc107;
}

.page-box--danger {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}

.page-box__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}

.page-box__title .material-symbols-outlined {
  font-size: 22px;
  color: var(--sz-primary);
}

/* ================================================================
   Hours Box（診療時間ボックス）
   ================================================================ */
.hours-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 100%);
  border-radius: 16px;
  padding: 32px;
  border: 2px solid var(--sz-primary);
  box-shadow: 0 4px 20px rgba(0, 123, 199, 0.1);
}

.hours-box__main {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hours-box__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hours-box__label {
  display: inline-block;
  background: var(--sz-primary);
  color: var(--sz-white);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 20px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.hours-box__value {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sz-text);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.hours-box__note {
  background: var(--sz-white);
  border-radius: 8px;
  padding: 16px 24px;
  text-align: center;
}

.hours-box__note p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--sz-text-light);
}

.hours-box__note p:last-child {
  margin-bottom: 0;
}

.hours-box__note strong {
  color: var(--sz-text);
  font-weight: 600;
}

/* ================================================================
   Guide Grid & Cards（案内グリッド＆カード）
   ================================================================ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--sz-white);
  border: 1px solid var(--sz-gray-200);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guide-card:hover {
  border-color: var(--sz-primary);
  box-shadow: 0 8px 24px rgba(0, 123, 199, 0.12);
  transform: translateY(-2px);
}

.guide-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--sz-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card__icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--sz-primary);
}

.guide-card__content {
  flex: 1;
  min-width: 0;
}

.guide-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sz-text);
  margin: 0 0 6px;
}

.guide-card__text {
  font-size: 13px;
  color: var(--sz-text-light);
  margin: 0;
  line-height: 1.6;
}

.guide-card__arrow {
  flex-shrink: 0;
  color: var(--sz-gray-400);
  transition: transform 0.3s ease, color 0.3s ease;
}

.guide-card__arrow .material-symbols-outlined {
  font-size: 24px;
}

.guide-card:hover .guide-card__arrow {
  color: var(--sz-primary);
  transform: translateX(4px);
}

/* ================================================================
   Checklist（チェックリスト）
   ================================================================ */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 24px;
  background: var(--sz-gray-50);
  border-radius: 12px;
  margin-bottom: 24px;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--sz-text);
}

.checklist__item .material-symbols-outlined {
  font-size: 20px;
  color: #22c55e;
}

/* ================================================================
   Page Sidebar（サイドバー）
   ================================================================ */
.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--sz-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.sidebar-box__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sz-text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sz-primary);
}

.sidebar-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-box__list li {
  border-bottom: 1px solid var(--sz-gray-100);
}

.sidebar-box__list li:last-child {
  border-bottom: none;
}

.sidebar-box__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--sz-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-box__list a::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--sz-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-box__list a:hover {
  color: var(--sz-primary);
}

/* サイドバー お問い合わせ */
.sidebar-box--contact {
  background: var(--sz-primary);
  color: var(--sz-white);
}

.sidebar-box--contact .sidebar-box__title {
  color: var(--sz-white);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-box__tel {
  margin: 0 0 8px;
}

.sidebar-box__tel a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--sz-white);
  text-decoration: none;
}

.sidebar-box__tel .material-symbols-outlined {
  font-size: 28px;
}

.sidebar-box__time {
  font-size: 12px;
  text-align: center;
  margin: 0 0 16px;
  opacity: 0.9;
}

.sidebar-box__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--sz-white);
  color: var(--sz-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-box__btn:hover {
  background: var(--sz-gray-100);
}

.sidebar-box__btn .material-symbols-outlined {
  font-size: 20px;
}

/* ================================================================
   Page CTA（ページ下部CTA）
   ================================================================ */
.page-cta {
  background: var(--sz-gray-100);
  padding: 60px 20px;
}

.page-cta__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.page-cta__item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--sz-white);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cta__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page-cta__item > .material-symbols-outlined {
  font-size: 48px;
  color: var(--sz-primary);
}

.page-cta__text {
  flex: 1;
}

.page-cta__label {
  font-size: 12px;
  color: var(--sz-text-light);
  margin: 0 0 4px;
}

.page-cta__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sz-text);
  margin: 0;
}

.page-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--sz-primary);
  color: var(--sz-white);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.page-cta__link:hover {
  background: var(--sz-primary-dark);
}

.page-cta__item--access > .material-symbols-outlined {
  color: var(--sz-accent);
}

/* ================================================================
   Responsive - Tablet
   ================================================================ */
@media (max-width: 1024px) {
  .page-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px 60px;
  }

  .page-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ================================================================
   Responsive - Mobile
   ================================================================ */
@media (max-width: 768px) {
  .page-hero {
    height: 240px;
  }

  .page-hero__category {
    font-size: 11px;
    padding: 4px 14px;
    margin-bottom: 12px;
  }

  .page-hero__title-en {
    font-size: 12px;
  }

  .page-hero__title-ja {
    font-size: 1.75rem;
  }

  /* Hours Box Mobile */
  .hours-box {
    padding: 24px 16px;
  }

  .hours-box__main {
    flex-direction: column;
    gap: 20px;
  }

  .hours-box__value {
    font-size: 1.5rem;
  }

  .hours-box__note {
    padding: 12px 16px;
  }

  .hours-box__note p {
    font-size: 13px;
  }

  /* Guide Grid Mobile */
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-card {
    padding: 16px;
    gap: 12px;
  }

  .guide-card__icon {
    width: 48px;
    height: 48px;
  }

  .guide-card__icon .material-symbols-outlined {
    font-size: 24px;
  }

  .guide-card__title {
    font-size: 15px;
  }

  /* Checklist Mobile */
  .checklist {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 10px;
  }

  .checklist__item {
    font-size: 14px;
  }

  .page-breadcrumb {
    padding: 12px 0;
  }

  .page-breadcrumb__list {
    font-size: 12px;
  }

  .page-container {
    padding: 32px 16px 48px;
  }

  .page-main {
    padding: 28px 20px;
    border-radius: 8px;
  }

  .page-section__title {
    font-size: 1.25rem;
    gap: 10px;
  }

  .page-section__title .material-symbols-outlined {
    font-size: 24px;
  }

  .page-table th,
  .page-table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .page-table tbody th {
    width: 100px;
  }

  .page-sidebar {
    grid-template-columns: 1fr;
  }

  .page-cta {
    padding: 40px 16px;
  }

  .page-cta__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-cta__item {
    padding: 24px 20px;
    flex-wrap: wrap;
  }

  .page-cta__item > .material-symbols-outlined {
    font-size: 36px;
  }

  .page-cta__title {
    font-size: 16px;
  }

  .page-cta__link {
    width: 100%;
    margin-top: 12px;
  }
}

/* ================================================================
   NOTE: Wearable (280px) styles removed - not present in saikazo.org
   ================================================================ */

/* ================================================================
   コンテンツ用ユーティリティ
   ================================================================ */

/* 2カラムレイアウト */
.page-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .page-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* カード */
.page-card {
  background: var(--sz-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.page-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-card:hover .page-card__img img {
  transform: scale(1.05);
}

.page-card__body {
  padding: 24px;
}

.page-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sz-text);
  margin: 0 0 12px;
}

.page-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sz-text-light);
  margin: 0;
}

/* ボタン */
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--sz-primary);
  color: var(--sz-white);
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: var(--sz-primary-dark);
  transform: translateY(-2px);
}

.page-btn--outline {
  background: transparent;
  color: var(--sz-primary);
  border: 2px solid var(--sz-primary);
}

.page-btn--outline:hover {
  background: var(--sz-primary);
  color: var(--sz-white);
}

.page-btn--accent {
  background: var(--sz-accent);
}

.page-btn--accent:hover {
  background: #d44800;
}

.page-btn .material-symbols-outlined {
  font-size: 20px;
}
