/* 全体リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-light: #e0f2ff;
}



body, html {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;          /* 標準文字サイズ */
  line-height: 1.6;         /* 行間を広めにして読みやすく */
 background-color: var(--bg-light)!important;
  color: var(--text-color);
}

html, body {
  overflow-x: hidden;
}


@media (max-width: 360px) {

  body {
    font-size: 14px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  .hero-title { font-size: 18px; }
  .hero-sub   { font-size: 14px; }

  .section-title {
    font-size: 1.2rem;
    padding: 10px 14px;
  }
}


/* --- 共通リセットとベーススタイル --- */
/* フォントを読みやすくモダンなものに設定 */
body {
    font-family: 'Noto Sans JP', sans-serif, Arial, sans-serif;
    line-height: 1.7; /* 行間を広げて読みやすく */
    color: #333; /* 文字色を濃いグレーに */
}






body {
  background: linear-gradient(135deg, #f0faff, #e6f3ff);
  background-attachment: fixed; /* スクロールしても固定される */
  margin: 0;
  padding: 0;
}


.text-black {
  color: #000; /* 黒 */
}

p {
  margin-bottom: 1em; /* 段落間の余白を調整 */
}


header {
  position: relative;
  height: 120px;
  background-image: url('../images/forcss/image15.jpg');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  background-color: #ccc;

  /* ナビの下の余白は残す */
  margin-top: 60px;

  /* heroとの間の余白を消す */
  margin-bottom: 0;
  padding-bottom: 0;
  padding: 0;
}


header h1 {
  font-size: 36px;
  color: #00796b;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3); /* 文字を読みやすく */
}

header p {
  font-size: 18px;
  color: #004d40;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}




/* タブレット用（幅768px以下） */
@media (max-width: 1024px) {
  header {
    height: 80px; /* 少し低めにして拡大を抑える */
    background-position: left center; /* 左側を中心に表示 */
  }

  header h1 {
    font-size: 30px;
  }

  header p {
    font-size: 16px;
  }
}

/* スマホ用（幅768px以下） */
@media (max-width: 768px) {
  header {
    height: 80px; /* 高さをさらに低く */
 background-position: left center; /* 左側を中心に表示 */
  position: relative;
  overflow: visible; /* ← ここを必ず visible に */
  z-index: 100;}

  header h1 {
    font-size: 24px;
  }


  header p {
    font-size: 14px;
  }
 }

.multi-yellow-frame {
  max-width: 1000px;
  margin: 30px auto;
  padding: 28px 32px;
  background: #ffffff;

  font-size: 20px;
  line-height: 1.8;
  color: #3a2f1a; /* 黄と相性の良い濃ブラウン寄り文字 */

  border-radius: 0;

  /* 四重の黄色系枠（内 → 外） */
  box-shadow:
    inset 0 0 0 2px  #fff3b0,  /* 一番内側：淡いクリームイエロー */
    inset 0 0 0 6px  #ffe082,  /* 2本目：やさしいライトイエロー */
    inset 0 0 0 10px #ffca28,  /* 3本目：落ち着いたイエロー */
    inset 0 0 0 14px #f2b705,  /* 一番外側：やや深みのある黄 */

    /* 外側の影（控えめ） */
    0 6px 22px rgba(242, 183, 5, 0.18);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .multi-yellow-frame {
    padding: 22px 18px;
    font-size: 15px;
  }
}





/* サイドバー全体 */
.sidebar {
  width: 100%;      /* 横幅を広げる */
  /* 必要に応じて上限を設定 */
  padding: 20px;
  background-color:black;
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* タイトル */
.sidebar h3 {
  font-size: 20px;
  color: #00796b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px; /* アイコンと文字の間 */
}

/* 電話番号強調 */
.sidebar .tel {
  color: #cc0000;
  font-weight: bold;
}

/* リンクデザイン */
.sidebar a {
  color: #00796b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #004d40;
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    padding: 10px;
  }

  .sidebar h3 {
    font-size: 18px;
  }

  .sidebar .card p {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .sidebar {
    min-width: 0;      /* ← 消す */
    width: 100%;
  }
}



/* 各カード */
.sidebar .card {
  background-color: #ffffff;
  border-left: 4px solid #00796b;  /* アクセントカラー */
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius:0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-container {
  display: flex;          /* 横並びにする */
  gap: 20px;              /* カード同士の間隔 */
  flex-wrap: wrap;        /* 画面幅が狭い場合は折り返す */
}

.card-container .card {
  flex: 1 1 150px;        /* カードの最小幅150pxで均等に拡大 */
}

/* スマホ用（幅768px以下） */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;  /* 縦並びにする */
    gap: 10px;               /* 間隔を少し狭く */
  }

  .card-container .card {
    flex: 1 1 100%;          /* 幅を100%にする */
  }
}

.sidebar,
.card-container,
.card {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.clinic-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;   /* ← 列幅を均等に強制 */
  font-size: 13px;
}



.cta-tel {
    /* ボタンのように目立つデザインに */
    display: block;
    text-align: center;
    padding: 20px;
    background-color: #007bff; /* ブランドカラーに合わせる */
    color: white;
    text-decoration: none;
    border-radius: 8px; /* 角を丸くしてモダンに */
    font-weight: bold;
    transition: background-color 0.3s; /* ホバー時のアニメーション */
}
.cta-tel:hover {
    background-color: #0056b3;
}
.tel-number {
    /* 電話番号は特に大きく、太く */
    font-size: 1.8em;
}


.sidebar {
  padding: 20px;
}

.sidebar-box {
  display: flex;
  flex-direction:row;
  gap: 20px;
}

@media (max-width: 768px) {
  .sidebar-box {
    flex-direction: column;
  }
}


/* 共通カードデザイン */
.sidebar-card {
  background: linear-gradient(135deg, #e6f7ff, #ffffff);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.sidebar-card {
  flex: 1;   /* ← 2枚を均等幅にする */
}

.card h3{
  color: #00796b;
  border-bottom: 2px solid #00796b;
  padding-bottom: 6px;
}

.sidebar-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #0077b6;
  border-bottom: 2px solid #0077b6;
  padding-bottom: 6px;
}




/* お問合せ */
.tel {
  font-size: 20px;
  font-weight: bold;
  color: #d62828;
  margin: 12px 0;
}

.address {
  line-height: 1.7;
}

.btn-access {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
 background: #eef8ff;
  color: #000;
  border-radius: 50px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-access:hover {
 background:#bfe7ff;
  color: #fff;
}


.btn-gastroscopy{
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;

  /* 通常時：青 */
  background: #2f80ed !important;
  color: #fff;

  border-radius:50px;
  font-size: 14px;
  text-decoration: underline; /* ← 文字に下線 */

  transition: background 0.3s ease, color 0.3s ease;
}

.btn-gastroscopy:hover {
  /* hover時：黄色 */
  background: #ffd84d;
  color: #000; /* 黄色に白文字だと見にくいので黒がおすすめ */
}


/* 診療時間 */
.holiday {
  color: #555;
  font-size: 13px;
}

/* サイドバーの「余計な白い親カード」を消す */
.sidebar,
.sidebar-box {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}




/* スライドギャラリーの基本設定 */
.gallery-container {
  position: relative;
  width: 100vw; /* 画面幅いっぱい */
  margin-left: calc(-50vw + 50%); /* 中央寄せ解除して全幅表示 */
  margin-top: 0;   /* 上に少し余白 */
  margin-bottom: 0; /* 下にも余白を追加 */
  padding-top: 56.25%; /* 16:9 比率維持 */
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background-color: #f8f8f8; /* 読み込み中の背景色（任意） */
}



/* 画像 */
.gallery-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

/* アクティブ画像 */
.gallery-container img.active {
  opacity: 1;
  transform: scale(1.05);
}

/* ドットナビ */
.dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
}

.dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dots .active {
  background: #336699;
}

/* スマホ対応 */
@media (max-width: 768px) {
.gallery-container {
  position: relative;
  width: 100vw;
  max-height: 700px;
  overflow: hidden;
padding-top: 70%; /* 16:9 比率維持 */
margin-right: 0;
margin-left: calc(-50vw + 50%);
}



.gallery-container img {
  width: 100%;
  height: auto;
  display: none;
  object-fit: cover;
  opacity:1;
}

.gallery-container img.active {
  display: block;
  opacity: 1;
}

.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dots span.active {
  background-color: #009688; /* 医療系の清潔な青緑 */
}

}

.gallery-overlay {
  position: absolute;
  bottom: 45px;        
  left: 45px;          
  width: 33%;           
  height: 60px;         
  backdrop-filter:none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center;    /* 縦方向中央 */
  padding: 0 16px;
  border-radius: 12px;

  /* フェードイン用 */
  opacity: 0;               
  transform: translateY(20px); 
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;

  overflow: hidden;     
}





.gallery-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 文字スタイル */
.gallery-overlay p {
  font-weight: 600;
  font-size: 20px; 
  text-align: center; 
  color:#fff; /* はっきりした青色 */

  margin: 0;          
  line-height: 1.2;
  white-space: nowrap;  
  overflow: hidden;     
  text-overflow: ellipsis; 
}

/* スマホ対応 */
@media (max-width: 768px) {
  .gallery-overlay {
    width: 70%;        
    height: 30px;
    padding: 0 6px;
  }

  .gallery-overlay p {
    font-size: 14px; 
  }
}


.gallery-swiper {
  width: 100%;
  height: 420px;
  position: relative;
  overflow: hidden;
}

.gallery-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* 基本ナビ */
.logo {position: absolute;  /* 絶対位置で左端固定 */
  left: 20px;        
  color: black;        /* 青系の色に変更 */
  font-weight: bold;     /* 太字 */
  font-size: 1.5rem;     /* 好きな大きさに調整 */
  }

nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 60px; 
  width: 100%;
  background-color: #009688;
  z-index: 1000;
}

.nav-container {
  display: flex;
  height: 100%; 
  justify-content:center;
  align-items: center;
  padding: 15px 20px;
position: relative;  }

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

.menu-toggle {
  display: none;  /* デスクトップでは非表示 */
  font-size: 24px;
  cursor: pointer;
}

/* スマホ用 */
@media (max-width:1085px) {
.nav-links {
  display: none;
  flex-direction: column;
  background-color: #009688;
  width: 100%;

  /* ここで下にずらす */
  position: absolute;
  top: 60px;      /* nav の高さ分 + 下に余白を追加したいなら 60px→80pxなど */
  left: 0;
  z-index: 1000;
}

.nav-links a {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* 開いた状態 */
.nav-links.active {
  display: flex;
}


  .menu-toggle {
    display: block; /* ハンバーガー表示 */
    position: absolute;  /* ← 絶対位置指定 */
    right: 20px;         /* 右から20px（調整可） */
    top: 50%;            /* 縦位置中央 */
    transform: translateY(-50%); /* 完全中央揃え */
    font-size: 28px;
    cursor: pointer;}
}
.menu-toggle::before {
  content: "メニュー";
  margin-right: 8px;
  font-size: 24px;
  line-height: 1;             /* ← 行の高さを1にすることで上下ズレ防止 */
}
/* ハンバーガーメニューが開いたときのメニューリスト */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%; /* headerの高さぶん下げる（←重要） */
  right: 0;
  background: white;
  width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 1000;
transform: translateY(20px);  /* ← 下に20px */
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

 /* アニメーションで下方向に開く */
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.3s ease;
  pointer-events: none; /* 非表示時はクリック不可 */
}
/* メニューを開いた状態 */
.nav-menu.active {
  display: block;
opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* 表示時はクリック可能 */
}

/* 各リンク */
.nav-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.nav-menu a:last-child {
  border-bottom: none;
}



/* ナビ開いた状態 */
.nav-links.active {
  display: flex;
}



nav a:hover {
  text-decoration: underline;
}

/* hero部分をナビ下にぴったり */



.hero-title {
  font-size: 2rem; /* ← メインタイトルの大きさ */
  font-weight: 700;
  line-height: 1.4;
 margin-top: 15px;
}

@media screen and (max-width: 600px) {
  .hero-title{
    font-size: 20px;
  }
}

.hero-title {
  color: #fff;
}


.hero-sub {
  font-size: 1.5rem; /* ← サブタイトルの大きさ */
  margin-top: 10px;
  line-height: 1.6;
text-align: left;
}

@media screen and (max-width: 600px) {
  .hero-sub {
    font-size: 16px;
  }
}

.feature-box {
  display: inline-block;             /* 必要な幅だけ */
    background:#FFE08A;              
  padding: 15px 20px;                /* 内側の余白 */
  border-radius:0;               /* 角丸 */
  border: 1px solid #e2d3c3;         /* ごく薄い茶の線で上品に */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* 少しだけ浮かせる */
  line-height: 1.6;                  /* 読みやすい行間 */
  margin-top: 20px;
}


.feature-box span {
  color: #4a3a2a; /* 読みやすい濃いブラウン系 */
}



h2 {
  margin-left: 20px;   /* ← 左に20pxの余白 */
}


/* メインコンテンツ */
main {
  width: 100%;
  margin:0;
  padding: 0 ;
}


.intro {
  background: #f9f9f9;
  border:none;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1.3rem; 
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}



/* ホバー時に少し浮き上がる */
.intro:hover {
  background: #e0f7ff; /* 淡い水色背景 */
  border-color: #0288d1; /* 枠線を青に */
  box-shadow: 0 8px 16px rgba(2,136,209,0.25); /* 青系シャドウ */
  transform: translateY(-4px);
}



.department-list {
  margin-top: 40px;          /* ボタンとの間に余白 */
  display: flex;
  flex-wrap: wrap;           /* 横並びで折り返し */
  justify-content: center;   /* 中央寄せ */
  gap: 12px;
}


/* お知らせボックス */



.notice-box {
  background:#ffffff;
  border: 4px solid #009688;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow:none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.notice-box:hover {
  background:#ffffff; /* 淡い水色背景 */
  border-color: #0288d1; /* 枠線を青に */
  box-shadow: 0 8px 16px rgba(2,136,209,0.25); /* 青系シャドウ */
  transform: translateY(-4px);
}

/* hover時、タイトルも青く */
.notice-box:hover h2 {
  color: #01579b;
  border-color: #0288d1;
}

.notice-box h2 {
  margin-bottom: 15px;
  font-size: 2em;
  text-align: left;
  color: #00695c;
  border-bottom: 3px solid #009688;
  padding-bottom: 5px;
margin-left: 0;      /* 左の余白をなくす */
  padding-left: 0;     /* 左のパディングもなくす */
  text-align: left;    /* 左寄せ */}

.notice-list {
  list-style: none;
}

.notice-list li {
  padding: 6px 0;
  border-bottom: 1px solid #ccc;
}

.notice-list li:last-child {
  border-bottom: none;
}

/* プロフィールカード */
.profile-card {
  display: flex;
  align-items: flex-start;  /* 上揃え */
  gap: 20px;
  margin: 20px 0;
  flex-wrap: nowrap;        /* 強制的に横並び */
}

/* 写真 */
.profile-photo {
  width: 150px;        /* 幅だけ指定 */
  height: auto;        /* 縦横比を保つ */
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* テキスト側 */
.profile-info {
  flex: 1;             /* 残りのスペースを使う */
  min-width: 200px;    /* 狭くなりすぎないように */
}

/* スマホ対応：画面が狭い時は縦並びにする */
@media (max-width: 750px) {
  .profile-card {
    flex-direction: column;
    align-items: center;  /* 写真を中央に */
    text-align: center;
  }

  .profile-info {
    text-align: left;  /* テキストは左揃えに戻す */
  }
}




/* フッター */
footer {
  text-align: center;
  padding: 15px 10px;
  font-size: 0.8em;
  color: #555;
  background-color: #e0f7f7;
}

/* サイドバーとコンテンツ */
.main-section {
  display: flex;
  gap: 20px;
}

.sidebar {
  flex: 1 1 250px;
  min-width: 250px;
  background-color: #f9f9f9;
  border: 2px solid #336699;
  border-radius:0;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content {
  flex: 3 1 600px;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .main-section {
    flex-direction: column;
  }
  .sidebar, .content {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  nav a {
    display: block;
    margin: 8px 0;
  }
  .profile-card {
    flex-direction: column;
    align-items: center;
  }
  .profile-info {
    flex: 1 1 100%;
  }
}


.first-section {
  background: linear-gradient(135deg, #6dd5ed, #2193b0);
  border:none;
  border-radius:0; /* 角丸を12pxに統一 */
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 少し控えめに通常の影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.first-section h2 {
  margin-top: 0px; /* ← この数値で余白を調整（例：20px〜40px） */
}

@media screen and (max-width: 600px)
{.first-section h2 {
  text-align: center;
}}

@media screen and (max-width: 600px)
{.first-section h3 {
  text-align: center;
}}


/* スマホ表示調整 */
@media (max-width: 768px) {
  .first-content {
    flex-direction: column;
    align-items: center;
  }
  .greeting-photo {
    width: 120px;
    height: 120px;
  }
}


/* ===== スライドと青背景の間の余白を完全になくす ===== */
.mv {
  margin-bottom: 0;
}


.first-section {
  margin-top: 0;
  padding-top: 0;
}




.greeting-section {
  background: #f9f9f9;
  border:none;
  border-radius:0; /* 角丸を12pxに統一 */
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 少し控えめに通常の影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.greeting-section h2 {
  margin-bottom: 20px; /* ← この数値で余白を調整（例：20px〜40px） */
}


@media screen and (max-width: 600px)
{.greeting-section h2 {
  text-align: center;
}}

@media screen and (max-width: 600px)
{.greeting-section h3 {
  text-align: center;
}}

.greeting-section:hover {
  background: #e0f7ff; /* 淡い水色背景 */
  border-color: #0288d1; /* 枠線を青に */
  box-shadow: 0 8px 16px rgba(2,136,209,0.25); /* 青系シャドウ */
  transform: translateY(-4px);
}


.greeting-title {
  margin-bottom: 15px;
  font-size:2rem;
  text-align: left;
  color: #00695c;
  border-bottom: 3px solid #009688;
  padding-bottom: 5px;
margin-left: 0;      /* 左の余白をなくす */
  padding-left: 0;     /* 左のパディングもなくす */
  text-align: left;    /* 左寄せ */
  transition: color 0.3s ease, border-color 0.3s ease;}


/* hover時、タイトルも青く */
.greeting-section:hover .greeting-title {
  color: #0074cc;        /* 青色 */
  border-color: #0074cc; /* 下線も青色 */
}


.greeting-icon {
  width: 32px;    /* アイコンの大きさ */
  height: 32px;
}


.greeting-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.greeting-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.greeting-content p {
  flex: 1;
  line-height: 1.6;
  color: #333;
}

/* スマホ表示調整 */
@media (max-width: 768px) {
  .greeting-content {
    flex-direction: column;
    align-items: center;
  }
  .greeting-photo {
    width: 120px;
    height: 120px;
  }
}


.departments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  justify-content: center;
}

.dept-card {
  width: 120px;              /* 横幅固定 */
  height: 120px;             /* 高さ固定 */
  box-sizing: border-box;    /* paddingを幅に含める */
  display: flex;
  align-items: center;       /* 縦中央 */
  justify-content: center;   /* 横中央 */
  text-align: center;

  background-color: #e0f7fa;
  color: #00796b;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
  padding: 10px;             /* 内側余白 */
}

.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.department-card {
  position: relative;
  display: inline-block;
  padding-bottom: 28px; /* “クリック” の分だけ下の余白を追加 */
}

/* 小さく「クリック」表示 */
.department-card::after {
  content: "詳細ページ";
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 10px;
  color: #555;
  opacity: 0.7;
}

@media (max-width: 360px) {
  .dept-card {
    width: 100px;
    height: 100px;
    font-size: 13px;
  }
}



.profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #f9f9f9;
  border: 2px solid #009688; 
  border-radius: 16px; /* 角を丸く */
  padding: 25px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* 立体感のある影 */
  margin: 25px 0; 
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバーで立体感UP */
}

.profile-card:hover {
  transform: translateY(-5px); /* 上に浮く */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* 影を濃く */
  background-color: #e6fdfd; /* ホバー時に明るく変化 */
}
.profile-photo {
  width: 120px;      /* サイズは自動 */
  height: 120px;     /* 縦横比を保つ */
  border: none;     /* 枠線をなくす */
  border-radius: 0; /* 丸めもなくす */
  box-shadow: none; /* 影がついていたら消す */
  display: block;   /* 余白をなくすためにblock化 */
  max-width: 100%;  /* 横幅がはみ出さないように */
}


.profile-info h3 {
  color: #00695c;
  margin-bottom: 10px;
}

.profile-info h4 {
  margin-top: 15px;
  margin-bottom: 8px;
  color: #004d40;
}

.profile-info ul {
  padding-left: 20px;
}


@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-photo {
    width: 120px;
    height: 120px;
  }}

@media (max-width: 360px) {
  .profile-info {
    min-width: 0;
    width: 100%;
  }
}

.greeting-content {
  display: block;
}


.profile-row {
  display: flex;
  flex-direction: column;   /* ← 縦並びにする */
  align-items: center;       /* 写真と文字を中央寄せ */
  gap: 16px;                 /* 写真と文字の間隔 */
}



.main-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: none;       /* ← 最大幅の制限を解除 */
  margin: 0;             /* ← 中央寄せ解除（左右いっぱい） */
  padding: 0;            /* ← 余白をなくす */
}


/* content セクションのカード風 */
.content {
  background-color: transparent; /* 背景色なし */
  border: none;                  /* 枠なし */
  box-shadow: none;              /* 影なし */
  padding: 0;                 /* 余白はそのままでもOK */
}



.content h1, .content h2 {
  color: #b2ebf2;
  margin-bottom: 15px;
}

.content p {
  line-height: 1.6;
  color: #333;
}

:root {
  --content-width: 90%;   /* ページ幅に対する比率 */
  --max-width: 600px;     /* 最大幅を設定 */
}



.greeting-title {
  margin-bottom: 15px;
  font-size:2rem;
  text-align: left;
  color: #00695c;
  border-bottom: 3px solid #009688;
  padding-bottom: 5px;
margin-left: 0;      /* 左の余白をなくす */
  padding-left: 0;     /* 左のパディングもなくす */
  text-align: left;    /* 左寄せ */
  transition: color 0.3s ease, border-color 0.3s ease;}



.medicine-box h2 {
  margin-bottom: 15px;
  font-size:2rem;
  text-align: left;
  color: #00695c;
  border-bottom: 3px solid #009688;
  padding-bottom: 5px;
margin-left: 0;      /* 左の余白をなくす */
  padding-left: 0;     /* 左のパディングもなくす */
  text-align: left;    /* 左寄せ */
}

.medicine-box p {
  line-height: 1.6;
  color: #004d40;
  font-size: 1rem;
}

.medicine-icon {
  font-size: 1.5em;       /* アイコンの大きさ */
  margin-right: 10px;     /* 文字との間隔 */
  vertical-align: middle; /* 文字と揃える */
}

.medicine-box {
  background-color: #e0f7fa; /* 優しい水色背景 */
  border:none; /* アクセント枠 */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 30px 0;
}

.medicine-box h2 {
  font-size: 1.5rem;
  color: #00796b;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.medicine-box:hover {
  background-color: #b2ebf2;       /* ホバーで少し色を変える */
  transform: translateY(-3px);     /* 軽く浮く */
}

.medicine-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.medicine-table td {
  padding: 10px;
  vertical-align: top;
}

.medicine-table .num {
  font-weight: bold;
  font-size: 1.2em;
  color: #009688;   /* 強調色（緑系） */
  text-align: center;
  width: 40px;
}

.medicine-points {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* スマホでも縦並びになる */
}

@media (max-width: 360px) {
  .point {
    min-width: 100%;
  }
}


.point {
  flex: 1;
  min-width: 250px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.point-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #009688;
  min-width: 32px;
  text-align: center;
}
.point-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.sinnryouzikann {
  max-width: 720px;
  margin: 40px auto 20px;
  padding-left: 12px;
  border-left: 6px solid #009688;
}

.sinnryouzikann span {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #333;
}



/* テーブル全体 */
.clinic-table {
  width: 100%;
  margin: 32px auto;
  border-collapse: collapse;
  background: #ffffff;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

/* 見出しセル（曜日・時間） */
.clinic-table__th {
  padding: 12px 8px;
  border: 1px solid #d9e3ec;
  background: #f1f6fb;
  color: #1f3a4d;
  font-weight: 600;
  white-space: nowrap;
}

/* 左端（時間帯）を強調 */
.clinic-table__th--head {
  background: #e6f0fb;
  font-weight: 700;
}

/* 時間帯（左端）だけ幅を狭くする */
.clinic-table__th--head {
  width: 120px;          /* ← お好みで 100～130px */
  padding: 10px 6px;     /* 横余白も少し詰める */
}


/* 本文セル */
.clinic-table__td {
  padding: 12px 6px;
  border: 1px solid #d9e3ec;
  font-size: 15px;
  font-weight: 700;
}

/* 診療あり */
.clinic-table__td.is-open {
  color: #1e88e5;
}

/* 休診 */
.clinic-table__td.is-close {
  color: #9aa6b2;
}



/* hover（PCのみ） */
@media (hover: hover) {
  .clinic-table tbody tr:hover {
    background: #f8fbff;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .clinic-table {
    font-size: 14px;
  }

  .clinic-table__td {
    font-size: 16px;
    padding: 10px 4px;
  }
}


/* スマホ対応 */
@media (max-width: 400px) {
  .clinic-table {
    font-size: 14px;
  }

  /* 曜日（上段の 月・火・水…） */
  .clinic-table__th {
    font-size: 12px;   /* ← ここを小さく */
    padding: 8px 2px;
  }

  .clinic-table__td {
    font-size: 16px;
    padding: 10px 4px;
  }
}

@media (max-width: 400px) {
  .clinic-table__td {
    font-size: 13px;   /* ← ● ／ を小さく */
    padding: 8px 3px;
  }
}

@media (max-width: 360px) {
  .clinic-table__th--head {
    width: 80px;
    font-size: 11px;
  }
}



/* 診療案内タイトル */
:root {
  --content-width: 90%;   /* ページ幅に対する比率 */
  --max-width: 900px;     /* 最大幅 */
}

/* 診療案内タイトル */
.section-title {
  display: block;
  width: var(--content-width);
  max-width: var(--max-width);
  margin:0;      
  background-color: #009688; /* 緑背景 */
  color: #fff !important;             /* 白文字 */
  text-align: left;          /* 左揃え */
  padding: 12px 24px;        /* 左右に余白を追加 */
  border-radius: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 1px;
}

.big-text {
  margin-left: 40px;   /* 左に余白を追加 */
  line-height: 1.8;    /* 読みやすく */
}

.kamoku {
  margin-left: 40px;    /* 左に余白 */
  margin-right: 40px;   /* 右にも余白を追加 */
  line-height: 1.8;     /* 行間を広げて読みやすく */
}


/* 太い横線 */
.thick-line {
  display: block;
  width: var(--content-width);
  max-width: var(--max-width);
  margin-left: 20px; /* ← 左に余白を追加 */
  height: 6px;
  background-color:#0288d1; /* ← 水色単色 */
  border-radius: 3px;
  border: none;
}


.section-title::before {
  content: "🩺";               /* 万が一HTML内で使わない場合にも対応 */
  display: none;               /* HTML内にあるので非表示 */
}





/* アンカー調整用 */
#naika::before,
#junkan::before,
#shoukaki::before,
#tounyou::before,
#kokyuuki::before,
#shouni::before,
#hifuka::before,
#arerugi::before,
#kenshin::before,
#dock::before,
#yobousesshu::before,
#igan::before,
#sangyoui::before{
  content: "";
  display: block;
  height: 60px;       /* スクロール位置を上にずらしたい分 */
  margin-top: -60px;  /* 見た目を動かさない */
  visibility: hidden; /* 空の要素なので表示しない */
}

/* 診療案内ページ専用の余白調整 */
.page-shinryo .content {
  max-width:100%;
  margin: 0 auto;
}

/* ▼ スマホ（768px以下）では余白を小さくする */
@media (max-width: 768px) {
  .page-shinryo .content {
    padding:16px 20px 16px 6px; /* スマホ用（左右20px） */
  }
}


/* 診療科タイトル（h2）を青色に */
h2 {
  color: #0288d1; /* 青色（落ち着いたトーン） */
}

/* もし特定のページや範囲内だけ変えたい場合 */
.content h2 {
  color: #0288d1;
}


/* ポストイット全体のリスト */
.feature-postit {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
  align-items: flex-start;
}

/* 各ポストイット */
/* 共通設定（今のままでOK） */
.feature-postit li {
  position: relative;
  border: none;
  padding: 15px 20px 15px 28px;
  width: 90%;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 6px auto;
}

/* 左側タグ共通 */
.feature-postit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* ===== 奇数：青 ===== */
.feature-postit li:nth-child(odd) {
  background: #e0f7fa; /* 今の青系 */
}

.feature-postit li:nth-child(odd)::before {
  background-color: #0288d1; /* 青タグ */
}

/* ===== 偶数：濃い緑 ===== */
.feature-postit li:nth-child(even) {
  background: #e6f4ea; /* 薄めの緑背景 */
}

.feature-postit li:nth-child(even)::before {
  background-color: #2e7d32; /* 濃い緑タグ */
}


.feature-postit li:hover {
  background: #b3e5fc;
  transform: scale(1.02);
}

/* スマホ向け調整 */
@media (max-width: 768px) {
  .feature-postit li {
    width: 95%;               /* ← スマホ時はさらに広げる */
    font-size: 0.95rem;       /* ← 文字を少し小さく */
    padding: 12px 16px 12px 24px;
  }
}

.feature-postit li:nth-child(odd) {
  background: #e6f2ff;
}
.feature-postit li:nth-child(even) {
  background: #e8f6ef;
}


.content2 h2 {
  text-align: center;
  margin: 40px 0 30px;
}

.section-icon {
  font-size: 1.4em;
  margin-right: 8px;
  vertical-align: middle;
}

.section-title {
  font-size: 1.5em;
  vertical-align: middle;
}



/* exams セクション全体 */
.exams {
  display: flex;
  flex-direction: column; /* カード縦並び */
  gap: 20px;
}

/* 各検査カード */
.exam-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #f9fdfd;
  border: 2px solid #009688;
  border-radius: 0; /* カード本体は四角 */
  padding: 0;       /* タイトルは別枠で内側に余白を作る */
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  background-color: #e6fdfd;
}

/* タイトル部分を別枠に */
.exam-card .exam-title {
  background-color: #00796b;
  color: #fff;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 1.2rem;
  border-bottom: 2px solid #009688; /* 本体と境界線 */
}

/* 画像・説明部分 */
/* 本文部分を横並びに */
.exam-card .exam-body {
  display: flex;
  align-items: flex-start;
  gap: 15px;           /* 画像とテキストの間隔 */
  padding: 15px 20px;
}

/* 画像を小さめに左寄せ */
.exam-card .exam-body img {
  width: 200px;        /* ここで大きさを調整 */
  height: auto;
  flex-shrink: 0;      /* 縮まないよう固定 */
  border-radius: 0;
  margin: 0;           /* 下の余白は不要 */
}

/* テキスト部分 */
.exam-card .exam-body p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* スマホ幅（〜600pxくらいまで）で縦並びにする */
@media (max-width: 600px) {
  .exam-card .exam-body {
    flex-direction: column;   /* 画像とテキストを縦並びに */
    align-items: center;      /* 画像を中央寄せ */
    text-align: left;         /* テキストは左寄せ */
  }

  .exam-card .exam-body img {
    width: 100%;              /* 横幅いっぱいに調整 */
    max-width: 300px;         /* 大きすぎないように制限 */
    margin-bottom: 10px;      /* テキストとの間に余白 */
  }

  .exam-card .exam-body p {
    font-size: 1rem;          /* 少し読みやすいサイズ */
    line-height: 1.8;         /* 行間を広めに */
  }
}


.main-section {
  display: flex;
  flex-direction: column; /* 縦方向に並べる */
  gap: 30px;             /* セクション間のスペース */
}

/* contentとexamsそれぞれの幅を調整 */
.content, .exams {
  width: 100%;
}


/* 予防接種ページ 枠内右上画像 */
.content2 {
  position: relative;   /* ← これが重要！内部で絶対配置を使うため */
}


  .top-right-image {
    position: static;      /* 固定を解除して普通に流す */
    text-align: left;
    margin-bottom: 20px;
  }

  .top-right-image img {
    width: 80%;
    max-width: 240px;
  }

.top-right-image img {
  display: block;
  margin: 0 auto;
}



.center-title {
  text-align: center;
}


.vaccine-title-wrapper {
  text-align: center;   /* ここで中央寄せ */
}

.vaccine-title {
  position: relative;
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.5rem;
  z-index: 1;
  color:#007bff;
}

.vaccine-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: #d9f7f0;
  border-radius: 50%;
  z-index: -1;
  width: 80vw;  
}


.vaccine-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px auto;
  padding: 0 16px; /* 画面端の余白 */
  max-width: 1200px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
 width: 100%;}

.vaccine-card {
   width: 100%;
  border: 2px solid #009688;
  border-radius: 12px;
  padding:0 12px; /* 画面端の余白 */
  background: #f9fffe;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  word-break: break-word; /* 長い文がはみ出さない */
  overflow: hidden;
}

/* 💙 hover時の変化 */
.vaccine-card:hover {
  background: #e0f7ff; /* 淡い水色背景 */
  border-color: #0288d1; /* 枠線を青に */
  box-shadow: 0 8px 16px rgba(2,136,209,0.25); /* 青系シャドウ */
  transform: translateY(-4px);
}

.vaccine-card h3 {
  color: #00695c;
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 3px solid #009688;
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* hover時、タイトルも青く */
.vaccine-card:hover h3 {
  color: #01579b;
  border-color: #0288d1;
}

.vaccine-card .label {
  font-weight: bold;
  color: #00796b;
  margin-top: 10px;
  transition: color 0.3s ease;
}

/* hover時、ラベルも青く */
.vaccine-card:hover .label {
  color: #0277bd;
}

.vaccine-card p {
  margin: 4px 0 10px;
  line-height: 1.6;
}



/* content セクションのカード風のver2 */

.content2{
  background-color:white;
  border:none;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.content2 p {
  line-height: 1.6;
  color: #333;
}

.big-text {
  font-size: 2rem; /* 相対サイズ */
  /* 例: 16pxが基準なら1.5remは24px */
}


/* プロフィール全体を横並びに */
.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

/* 画像サイズ調整 */
.profile-row img.profile-photo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

/* テキスト部分 */
.profile-row .profile-info {
  flex: 1;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #333;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .profile-row {
    flex-direction: column; /* 画像とテキストを縦並びに */
    align-items: center;    /* 画像を中央寄せ */
    text-align: center;     /* テキストも中央揃えにすると見やすい */
  }

  .profile-row img.profile-photo {
    width: 150px;   /* スマホでは少し大きめでもOK */
    margin-bottom: 10px;
  }

  .profile-row .profile-info {
    text-align: left; /* 中央揃えが見づらければ左寄せに変更 */
  }
}


/* department-list（カード群） */
.department-list {
  display: flex;
  flex-wrap: wrap;           
  gap: 12px;                 
  justify-content: flex-start;  
  margin-top: 40px;          
}

/* 横長カード */
.department-card {
  flex: 0 0 calc(20% - 12px); /* 最大5列表示 */
  height: 80px;               /* 高さ固定で横長 */
  display: flex;
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央 */
  text-align: center;
  padding: 0 15px;            /* 横の余白を追加 */

  background-color: #f0f9f9;
  border: 2px solid #009688;
  border-radius: 12px;
  color: #00796b;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  box-sizing: border-box;
  word-break: break-word;     /* 長い文字を折り返す */
}

.department-card:hover {
  background-color: #9fd6f2;
  transform: translateY(-3px);
}

/* レスポンシブ対応 */

/* 1024px以下：4列表示 */
@media (max-width: 1024px) {
  .department-card {
    flex: 0 0 calc(25% - 12px);
  }
}

/* 768px以下：2列表示 */
@media (max-width: 768px) {
  .department-card {
    flex: 0 0 calc(50% - 12px);
  }
}


.shinnryouannai-box {
  position: relative;
  padding: 25px;
  border-radius:none;
  background: #ffffff;
  overflow: hidden; /* ← 重要：はみ出た背景を切る */

  /* 白いボックスを保ちながら影を少し */
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 背景画像をうっすら表示するレイヤー */
.shinnryouannai-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url("../images/shinnryouannai/img6083.jpg") center/cover no-repeat;

  opacity: 0.18;  /* ← 画像の “うっすら度” をここで調整 */
  z-index: 0;
}


:root{
  --bg:#f6fbff;
  --card:#ffffff;
  --accent:#2b9edb;    /* メインカラー（青）*/
  --muted:#7a8a95;
  --radius:14px;
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 8px 30px rgba(21,39,57,0.08);
  --max-width: 1100px;
  --gap:18px;
  --mobile-break:720px;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* コンテナ（ページ幅に合わせる） */
.kensinn-container{
  max-width: var(--max-width);
  margin: 28px auto;
  padding: 20px;
}

/* 全体レイアウト：価格とカードを横並び（狭いと縦並び） */
.kensinn-row{
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}



/* 検診カード */
.kensinn-box{
  background: linear-gradient(180deg, var(--card), var(--glass));
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  flex:1;
  min-width: 0; /* for ellipsis/overflow */
  border: 1px solid rgba(15,40,60,0.06);
  position: relative;
  overflow: hidden;
}

/* 小さな飾り（右上のバッジ） */


/* タイトル */
.kensinn-text h3{
  margin: 0 0 12px 0;
  font-size:20px;
  letter-spacing: -0.3px;
  color: #073047;
}

/* 本文 */
.kensinn-text{
  color: #1f2f36;
  font-size:15px;
  line-height:1.75;
}

/* 強調リスト（見やすく） */
.kensinn-text strong,
.kensinn-text b{
  color: #0b4f76;
}

/* 箇条書きをより読みやすく */
.kensinn-text ul{
  margin:12px 0 0 18px;
  padding:0;
  color:var(--muted);
}

/* ボタン風リンク（例: お問い合わせ） */
.kensinn-cta{
  display:inline-block;
  margin-top:16px;
  padding:10px 14px;
  border-radius:10px;
  background: linear-gradient(90deg,var(--accent), #1f86c6);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(43,158,219,0.14);
  transition: transform .12s ease, box-shadow .12s ease;
}
.kensinn-cta:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43,158,219,0.18); }

/* 小さい画面対応 */
@media (max-width: var(--mobile-break)){
  .kensinn-row{ flex-direction: column; }
  .price-big{ width:100%; min-width: auto; text-align:left; display:flex; justify-content:space-between; align-items:center; }
  .price-big span{ margin-top:0; text-align:right; font-size:13px; color:var(--muted); }
  .kensinn-box::after{ display:none; }
  .kensinn-text{ font-size:15px; }
}

/人間ドックのページ/
:root{
  --brand:#0177c6;
  --accent:#ffb703; /* 広告感のある強調色 */
  --bg:#f3f7fb;
  --card:#ffffff;
  --muted:#6b7280;
}
body{
  margin:0;
  font-family:"Noto Sans JP", sans-serif;
  background:var(--bg);
  color:#111;
}
/* ヒーロー */
.hero{
  background:linear-gradient(135deg, var(--brand), #3aa0e6);
  color:#fff;
  padding:64px 20px 56px;
  text-align:center;
}
.hero h1{
  font-size:32px;
  margin-bottom:16px;
}
.hero .catch{
  font-size:18px;
  margin-bottom:28px;
}
.price-card{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:18px 56px; /* ← 横をしっかり長く */
  min-width:420px;   /* ← 横長感を固定 */
  background:#fff;
  color:#111;
  border-radius:999px;
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
}

@media(max-width:600px){
  .price-card{
    min-width:0;
    width:100%;      /* スマホは画面いっぱい */
    padding:16px 24px;
  }
}
.price-big{
  font-size:46px;
  font-weight:900;
  letter-spacing:0.05em;
}
.price-unit{
  font-size:16px;
  color:var(--muted);
}
.badge{
  display:inline-block;
  margin-top:16px;
  padding:6px 14px;
  background:var(--accent);
  color:#111;
  font-weight:700;
  border-radius:999px;
}
/* セクション */
.section{
  max-width:1100px;
  margin:-40px auto 0;
  padding:0 20px 64px;
}
.section h2{
  text-align:center;
  font-size:26px;
  margin:48px 0 24px;
}
/* 検査リスト */
.dock-list{
  display:grid;
  grid-template-columns:repeat(3, 1fr); /* PCは3列 */
  gap:20px;
  margin-top:24px;
}

@media(max-width:900px){
  .dock-list{
    grid-template-columns:repeat(2, 1fr); /* タブレット2列 */
  }
}

@media(max-width:520px){
  .dock-list{
    grid-template-columns:1fr; /* スマホは1列 */
  }
}
.dock-item{
  display:flex;              /* ← 横並び */
  align-items:center;
  gap:12px;                  /* アイコンと文字の間隔 */
  padding:14px 16px;
  background:#ffffff;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  font-size:14px;
  line-height:1.4;
}

.dock-item .icon{
  width:42px;
  height:42px;
  flex-shrink:0;             /* ← 文字が長くても縮まらない */
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;            /* 絵文字アイコン用 */
}

.dock-item p{
  margin:0;
}
.dock-item:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 36px rgba(0,0,0,0.12);
}
.dock-item .icon{
  font-size:28px;
  width:36px;
  height:36px;
  flex-shrink:0;
}
.dock-item img.icon{
  width:36px;
  height:36px;
}
.dock-item p{
  margin:0;
  font-size:15px;
  line-height:1.6;
}
/* CTA */
.cta{
  margin-top:56px;
  text-align:center;
}
.cta a{
  display:inline-block;
  padding:18px 40px;
  background:var(--brand);
  color:#fff;
  font-size:18px;
  font-weight:800;
  border-radius:16px;
  text-decoration:none;
  box-shadow:0 10px 28px rgba(1,119,198,0.35);
}
.cta a:hover{opacity:.9}
@media(max-width:600px){
  .hero h1{font-size:24px;}
  .price-big{font-size:36px;}
}


.dock-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 20px;
  margin-top: 24px;
}

@media(max-width:900px){
  .dock-list{
    grid-template-columns: repeat(2, 1fr); /* タブレット */
  }
}

@media(max-width:520px){
  .dock-list{
    grid-template-columns: 1fr; /* スマホ */
  }
}

.price-row{
  display:flex;
  gap:16px;
  flex-wrap:wrap; /* スマホ対策 */
}

.price-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 28px;
  border-radius:999px;   /* 完全な楕円 */
  background:linear-gradient(90deg, #0177c6, #0aa2e3);
  color:#fff;
  box-shadow:0 10px 28px rgba(1,119,198,0.35);
  width:fit-content;
}
.price-main{
  font-size:42px;
  font-weight:900;
  letter-spacing:-0.02em;
}

.price-label{
  font-size:14px;
  font-weight:700;
  opacity:0.9;
}

.price-unit{
  font-size:16px;
  opacity:0.9;
}


.sub-badge .price-main{
  font-size:26px;
  font-weight:800;
}

.sub-badge .price-unit{
  font-size:16px;
}
.sub-badge{
  background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.price-card.sub-badge {
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
}

.price-row {
  display: flex;
  justify-content: center; /* ← 横方向ど真ん中 */
  align-items: stretch;
  gap: 24px;               /* カード間の余白 */
  margin: 0 auto;          /* 念のため */
}



.neo-highlight {
  margin: 50px 0;
  position: relative;
  padding: 0;
}

.neo-band {
  height: 10px;
  background: linear-gradient(90deg, #0177c6, #00a0e9);
  border-radius: 12px;
  margin: 12px 0;
  opacity: 0.9;
}

.neo-inner {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 10px 28px rgba(0, 40, 90, 0.14);
  position: relative;
  z-index: 2;
}

.neo-inner p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
  color: #1a2a3a;
}

.neo-lead {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #003d6b;
}

.neo-inner strong {
  color: #007acc;
  font-weight: 800;
}



.dock-section {
  padding: 30px 20px;
  background: linear-gradient(135deg, #f0faff, #e6f3ff);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.dock-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #0077b6;
  letter-spacing: 0.05em;
}

.dock-list {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 2列で表示 */
  gap: 20px;
}

.dock-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  padding: 15px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dock-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dock-item .icon {
  font-size: 1.8rem;
}
.dock-item p {
  margin: 0;
  line-height: 1.4em;
  color: #333;
}

.dock-list {grid-template-columns: 3fr;}

/* スマホ用：1列表示 */
@media (max-width: 600px) {
  .dock-list {
    grid-template-columns: 1fr;
  }
}

/* セクション全体を画面いっぱいに広げる */
.dock-section {
  width: 100vw;         /* 画面幅いっぱい */
  margin-left: 50%;     
  transform: translateX(-50%);  /* 親の幅に影響されず中央に配置 */
  padding:0;      /* 端すぎるのを防ぐ余白 */
  box-sizing: border-box
}

/* アイテムを横にきれいに並べる */
.dock-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
}



.icon {
  width: 40px;        /* 好きな大きさに調整 */
  height: auto;
  vertical-align: middle; /* ← 文字と高さをそろえるポイント！ */
  margin-right: 6px;  /* 文字との間のスペース */
}

.dock-section {
  width: 100%;
  margin-top: 40px;
  padding:20px;
  margin-bottom: 20px;
}

.dock-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
   margin-bottom: 20px;
}

.dock-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

#aga,
#smoking,
#sangyoui {
  scroll-margin-top: 100px; /* ヘッダー高さ + 余白 */
}


html {
  scroll-behavior: smooth;
}
/* アクセスセクション */
.access {
  text-align: center;
  padding: 40px 20px;
}


.sangyoui-section {
  padding: 60px 20px;
  background: #f7fffc; /* うすいミント */
}

.sangyoui-header {
  text-align: center;
  margin-bottom: 40px;
}

.sangyoui-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #007f80; /* ミント深め */
}

.sangyoui-header .subtitle {
  font-size: 1.2rem;
  color: #444;
}

/* カード配置 */
.sangyoui-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* カードスタイル */
.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 6px solid #2ac7b5; /* ミントのアクセント */
}

.card h3 {
  margin-bottom: 15px;
  color: #007f80;
}

.card ul {
  padding-left: 20px;
}

.card li {
  margin-bottom: 8px;
}

/* 詳細部分 */
.sangyoui-detail h2 {
  color: #007f80;
  border-left: 6px solid #2ac7b5;
  padding-left: 10px;
  margin-bottom: 10px;
}

.sangyoui-detail p {
  line-height: 1.8;
  margin-bottom: 40px;
}

.subtitle {
  display: block;
!important}
.subtitle {
  float: none;
}
.area-title {
  display: block;
  clear: both;
}



/* 問い合わせBOX */
.contact-box {
  background: #ffffff;
  border-radius:0;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-top: 6px solid #2ac7b5;
}

.contact-box h2 {
  font-size:32px;
}

.contact-box .tel {
  font-size: 1.6rem;
  font-weight: bold;
  color: #007f80;
  margin: 15px 0;
}

.wide-box {
  width: 90vw;
  max-width: 1000px;
  margin: 20px auto;

  padding: 20px;
  background: #fff;

  border: 4px double #333;

  font-size: 1.1rem;
  line-height: 1.6;

  box-sizing: border-box;
}


.wide-box {
    width: 100%;
    max-width: none;
    padding: 14px;}

.wide-box {
  max-width: 100%;
  box-sizing: border-box;
}




/* 横並びの枠 */
.photo-row {
  display: flex;
  gap: 60px;             /* 画像の間隔 */
  justify-content: center;
  flex-wrap: wrap;       /* スマホで縦並びに自動調整 */
  margin: 20px 0;
}

/* 画像のスタイル（①の角変形） */
.access-photo img {
  width: 100%;
  max-width: 450px;      /* 横幅の最大値 */
  border-radius: 40px 10px 40px 10px; /* ← 変形した角丸 */
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}


.multi-blue-frame {
  max-width: 1000px;
  margin: 30px auto;
  padding: 28px 32px;
  background: #ffffff;

  font-size: 20px;
  line-height: 1.8;
  color: #1a2f4a; /* 青と相性の良い濃紺系 */

  border-radius: 0;

  /* 四重の青系枠（内 → 外） */
  box-shadow:
    inset 0 0 0 2px  #e0f7ff,  /* 一番内側：淡いシアン */
    inset 0 0 0 6px  #81d4fa,  /* 2本目：ライトブルー */
    inset 0 0 0 10px #42a5f5,  /* 3本目：標準的なブルー */
    inset 0 0 0 14px #1e88e5,  /* 一番外側：やや深い青 */

    /* 外側の影（控えめ） */
    0 6px 22px rgba(30, 136, 229, 0.18);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .multi-blue-frame {
    padding: 22px 18px;
    font-size: 15px;
  }
}


.access h2 {
  font-size: 1.8em;
  color: #00695c;
  margin-bottom: 20px;
  border-bottom: 3px solid #009688;
  display: inline-block;
  padding-bottom: 6px;
}

.access-info {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
/* 地図部分 */
.map-container {
  position: relative;
  width: 100vw;          /* ← 画面幅いっぱいに表示 */
  max-width: none;       /* ← 上限を解除して全幅対応 */  height: 450px;         /* ← 高さをしっかり確保 */
  margin: 0 calc(-50vw + 50%); /* ← セクション中央基準で横にはみ出す裏技 */
  border-radius: 0;       /* ← 画面端まで広げるなら角丸をなくす */
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 「Googleマップで見る」ボタン */
.map-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #0078D7;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.2s, transform 0.2s;
  z-index: 2;
}

.map-btn:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}

.access-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.access-item {
  background: #f9f9f9;
  border-top: 8px solid #009688; /* ← 緑ラインを上に */
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 0; /* ← 真四角に */
}

.access-item h3 {
  color: #00695c;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.access-item p {
  margin: 0;
  line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .access h2 {
    font-size: 1.5em;
  }



.tel-link {
  color: #1e88e5;        /* 青色 */
  text-decoration: none; /* 下線を消す */
  font-weight: 600;      /* 任意：少し見やすく */
}

.tel-link:hover,
.tel-link:visited,
.tel-link:active {
  color: #1e88e5;
  text-decoration: none;
}


  .map-container {
    height: 320px;     /* スマホでは高さを少し抑える */
    margin: 0;
    width: 100%;
    border-radius: 8px;
  }

  .map-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
}
@media (max-width: 600px) {
  .access-item {
    padding: 16px;
  }
  .access-item h3 {
    font-size: 1.2em;
  }
}


.map-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* 実際のマップ */
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}




/* ==========================
   ごあいさつエリア
========================== */

.greeting-section {
  background: white;
  padding: 40px 25px;
  margin: 40px auto;
  border-radius:0;
  border: 1px solid #dce3eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.profile-photo {
  width: 170px !important;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.profile-info h3 {
  font-size: 20px;
  color: #1e4a73;
}

/* ==========================
   お薬セクション
========================== */

.medicine-box {
  background: #ffffff;
  padding: 40px 25px;
  border-radius:0;
  border: 1px solid #dce3eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.medicine-points .point {
  display: flex;
  gap: 15px;
  background: #f1f7ff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* ==========================
   フッター
========================== */
footer {
  background: #1a365d;
  color: white;
  padding: 20px;
  text-align: center;
}


/* ===== メインビジュアル ===== */
.mv {
  position: relative;
  overflow: hidden;
  background: #000;
  height: 70vh;        /* 画面高さの70% */
  min-height: 560px;   /* 小さい画面の保険 */
  max-height: 820px;   /* デカすぎ防止 */
}

/* Swiper */


.swiper-slide {
  background-size: cover;
  background-position: center;
  transform: none;
  transition: none;
}

.swiper-slide-active {
  transform:none;
}

/* 背景画像 */
.slide1 { background-image: url(../images/index/img6086b.jpg); }
.slide2 { background-image: url(../images/index/img6066a.jpg); }
.slide3 { background-image: url(../images/index/waiting.jpg); }
.slide4 { background-image: url(../images/index/img6079a.jpg); }
.slide5 { background-image: url(../images/special/img6707.jpg); }
.slide6 { background-image: url(../images/special/img6729.jpg); }


/* コピー */
.mv-copy {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8%;
  color: #fff;
  max-width: 700px;
}


.mv-copy h1 {
  font-size: 42px;
  line-height: 1.4;
  margin-top: 70px;
  animation: fadeUp 1.4s ease both;
}

@media (max-width: 350px) {
.mv-copy h1 {
  font-size: 30px;
}}

.mv-copy p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 28px;
  animation: fadeUp 1.8s ease both;
}
.mv-copy p {
  margin-top: 170px;
}

.mv-copy h1 {color: #fff !important;
}

.mv-copy p {
color: #fff !important;
}


.mv-text {
  color: #fff !important;
}


.mv-btn {
  display: inline-block;
  width: fit-content;
  padding: 14px 28px;
  background: #007bc7;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  animation: fadeUp 2.2s ease both;
}

.mv-btn {
  margin-top: 0px; 
 margin-bottom: 100px;
}


.mv-btn:hover {
  background: #005fa0;
}

/* フェードアップ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mv-slider,
.mv-slider .swiper-wrapper,
.mv-slider .swiper-slide {
  height: 100%;
}



/* ===== スマホ ===== */
@media (max-width: 768px) {
  .mv {
    height: 320px;
  }

  .mv-copy {color: #fff;
    padding: 0 6%;
  }

  .mv-copy h1 {color: #fff;
    font-size: 24px;margin-top:120px;
  }

  .mv-copy p {color: #fff;
    font-size: 20px;
  }

  .mv-btn {
    padding: 10px 20px;
    font-size: 14px;margin-bottom:140px;
  }
}

@media (max-width: 350px) {
.mv-copy h1 {color: #fff;
  font-size: 20px;
}}


img, table, iframe {
  max-width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .mv-copy p {
    padding: 24px; ma
  }
}

@media (max-width: 768px) {
  .mv-copy btn{
    padding:none;
  }
}

@media (max-width: 768px) {
.mv-copy p {color: #fff;
  margin-bottom:15px;
}}

@media (max-width: 500px) {
  .mv {
    height: 300px;
  }

  .mv-copy {
    padding: 0 6%;
  }

  .mv-copy h1 {
    font-size: 24px;margin-top:200px;
color: #fff;  }

  .mv-copy p {
    font-size: 20px;margin-top:140px;
 color: #fff; }

  .mv-btn {
    font-size: 14px;margin-bottom:200px;
  }
}

@media (max-width: 340px)  
{.mv-copy h1 {
    font-size: 20px;margin-top:340px;
color: #fff;  }.mv-btn {
    font-size: 14px;margin-bottom:320px;
  }
 .mv-copy p {
    font-size: 16px;margin-top:160px;
 color: #fff; }
 }

body { background:#fff !important; }

/* MV の文字は PC・スマホ共通で白固定 */
.mv, 
.mv *, 
.mv-copy, 
.mv-copy h1, 
.mv-copy p {
  color: #fff !important;
}


/* ===== MVの白い半透明レイヤーを完全に消す ===== */
.mv::before,
.mv::after,
.mv-slider::before,
.mv-slider::after,
.swiper-slide::before,
.swiper-slide::after {
  content: none !important;
  display: none !important;
}

.mv {
  position: relative;
}
.mv-slider {
  position: relative;
  z-index: 1;
}
.mv-copy {
  position: absolute;
  z-index: 5;
  color: #fff;
}
.mv-copy h1,
.mv-copy p,
.mv-copy a {
  color: #fff !important;
  opacity: 1 !important;
}

.notice-box {
  background: #fff !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
.notice-box * {
  background: transparent;
}

.mv::before,
.mv::after {
  display: none !important;
}


.mv-copy {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

