/* ハンバーガーメニューのスタイル */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

/* ハンバーガーメニューのアイコンのスタイル */
.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #333;
    margin-bottom: 4px;
}

.hamburger-line:last-child {
    margin-bottom: 0;
}

/* メニューが開かれたときの背景 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: opacity 3s ease-in-out;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ハンバーガーメニューが開いたときのスタイル */
.menu-content {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background-color: #fff;
    z-index: 2;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
}

.menu-content.active {
    display: block;
    transform: translateX(0);
}

/* メニュー内のリンクスタイル */
.menu-content a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 16px; /* 文字を少し小さくする */
    padding: 10px 0;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
  text-align: center;

  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
@media (max-width: 480px) {
  h1 {
    font-size: 22px;
  }
}

.menu-content a:hover {
    text-decoration: underline;
}

.container h1 {
    text-align: center;
}
/* ===== 医療従事者確認ポップアップ ===== */
#medical-popup-overlay {
    position: fixed;
    inset: 0;
    /* ちょっと暗く + 背景ぼかし（モザイク的見え方） */
    background: rgba(15, 23, 42, 0.6);
    display: flex;  /* 最初から flex にしておく */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* Safari用 */
}

#medical-popup {
    background: #ffffff;
    max-width: 480px;
    width: 90%;
    padding: 24px 22px;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    font-size: 14px;
    line-height: 1.7;
}

#medical-popup h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
}

#medical-popup p {
    margin: 0 0 6px 0;
}

#medical-popup .note {
    font-size: 13px;
    color: #4b5563;
    margin-top: 8px;
}

.occupation-group {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 枠で囲われたボタン風カード */
.occupation-card {
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fdfdfd;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    font: inherit;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.08s ease;
}

.occupation-card:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}

.occupation-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.occupation-sub {
    font-size: 11px;
    color: #6b7280;
}

#medical-popup .hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
}

.medical-popup-logo-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.medical-popup-logo {
    width: 140px;
    height: auto;
}

/* ===========================
   後のやつ
=========================== */

.info-card {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.info-card h2 {
    font-size: 20px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h2 .material-icons {
    font-size: 22px;
    color: #3beaf6;
}

/* Google Map */
.map-embed-wrapper {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #e0fdff;
    border-radius: 6px;
    color: #1a6bd6;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #adc6ff;
}
.map-btn:hover {
    background: #d6e6ff;
    transform: translateY(-1px);
}
.page-nav {
  margin: 64px auto 32px;
  padding: 0 16px;
  max-width: 800px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  text-align: center;
}


.page-nav a {
  font-size: 14px;
  text-decoration: none;
}

.page-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  font-size: 13px;
  color: #4f46e5; 
  text-decoration: none;
}

.page-nav__back .material-icons {
  font-size: 18px;
}

.page-nav__back:hover {
  text-decoration: underline;
}


.page-nav__back:hover {
  text-decoration: underline;
}

.page-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  font-weight: 500;
  color: #4f46e5;          /* 既存リンク系と統一 */
  text-decoration: underline;
}

.page-nav__cta .material-icons {
  font-size: 20px;
}




.page-nav__cta:hover {
  text-decoration: underline;
}

/* ===========================
   横並びカード（2カラム）
=========================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 5px;  /* ← ここが縦の余白を作る */
    width: 100%;
    margin-bottom: 5px; /* カード群の下にも余白追加 */
}

/* カード本体 */
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}


/* 下部リンク */
.bottom-links {
    text-align: center;
    margin-top: 40px;
}

.bottom-links a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.clinic-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: 1fr;
  row-gap: 10px;
}

@media (min-width: 768px) {
  .clinic-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

.clinic-list a {
  font-size: 14px;
  color: #4f46e5;
  text-decoration: none;
}

.clinic-list a:hover {
  text-decoration: underline;
}
