/* お知らせリスト中央寄せ・リストマークも中央 */
.center-latest-news {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}
.center-latest-news li {
  width: 100%;
  text-align: center;
  list-style-position: inside;
}
.center-latest-news {
  list-style-position: inside;
}
/* お知らせセクション タイトル中央寄せ・オレンジ色 */
.news-title {
  text-align: center;
  color: #ef7a00;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.2em;
  letter-spacing: 0.1em;
}

/* お知らせセクションのリンクのvisited色変化を無効化 */
.latest-news li a:visited,
.news-link a:visited {
  color: #ef7a00;
}
/* お知らせ（WordPress最新3件）用 */
.latest-news {
  list-style: none;
  padding: 0;
  margin: 1.5em 0 1em 0;
  text-align: center;
}
.latest-news li {
  font-size: 1.08em;
  margin-bottom: 0.7em;
  border-bottom: 1px solid #ffe0b2;
  padding-bottom: 0.4em;
  text-align: center;
  display: block;
  list-style: none;
}
.latest-news li a {
  color: #ef7a00;
  text-decoration: none;
  font-weight: 500;
}
.latest-news li a:hover {
  text-decoration: underline;
}
.latest-news .date {
  color: #888;
  font-size: 0.98em;
  margin-left: 1.2em;
}
.news-link {
  text-align: right;
  margin-top: 0.5em;
}
.news-link a {
  color: #ef7a00;
  font-weight: bold;
  text-decoration: none;
}
.news-link a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 600px) {
  .footer-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 0.5rem;
  }
  .footer-banner .item {
    max-width: 100%;
    aspect-ratio: 1.8 / 1;
    flex: unset;
  }
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* ← 横スクロールを防止 */
}

#resize-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; /* ← ここは好みで black / rgba でも */
  z-index: 9999;
  pointer-events: none;  /* クリックなどの操作は透過 */
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* --- 全ページ共通のbodyスタイル --- */

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
  text-align: center;
  padding-top: 100px; /* デフォルト：通常ページ用 */
}

/* ===== 見出し・英字小見出し 共通スタイル ===== */
/* 英字小見出し（オレンジ・小文字・太字・英字フォント） */
.section-en, .philosophy-en, .guidelines-title {
  color: #ef7a00;
  font-family: 'Noto Sans JP', 'Noto Serif JP', serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  font-weight: bold;
  text-transform: lowercase;
  margin-bottom: 0.5em;
  display: block;
}

/* メイン見出し */
h1, .philosophy-main {
  font-size: 2rem;
  color: #222;
  font-family: 'Noto Sans JP', 'Noto Serif JP', serif;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* サブ見出し */
h2, .orange-left {
  font-size: 1.5rem;
  color: #ef7a00;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: left;
}

/* サブサブ見出し */
h3, .guidelines-ja {
  font-size: 1.2rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

body.top-page {
  padding-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* 半透明の黒 */
  z-index: 900;
  display: none;
}
.menu-overlay.active {
  display: block;
}


/* トップページ用：透過ヘッダー */
.overlay-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0); /* ← 透過 */
  color: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 通常表示用：白背景ヘッダー（初期は非表示） */
.default-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  color: #333;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}



/* ヘッダーの中身 */
.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴのサイズ */
.logo img {
  height: 50px; /* 縦幅に合わせてロゴも調整 */
}

/* ナビゲーション */
.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px;
  position: relative;
}

.nav-menu li {
  position: relative;
}


/* 共通ナビゲーションリンク */
.nav-menu li a {
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 1rem 0.5rem;
  transition: color 0.3s ease;
}
/* デフォルト色 */
.nav-menu li a { color: white; }
.nav-menu li a:hover { color: #f57c00; }
/* overlay-header用（白文字） */
.overlay-header .nav-menu li a { color: white; }
.overlay-header .nav-menu li a:hover { color: #f57c00; }
/* default-header用（黒文字） */
.default-header .nav-menu li a { color: #333; }
.default-header .nav-menu li a:hover { color: #f57c00; }

.nav-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ef7d00;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 220px;
  z-index: 1001;
}

.nav-menu li:hover > .submenu {
  display: block;
}

/* --- overlay-header 用（白文字） --- */
.overlay-header .nav-menu li a {
  color: white;
}

.overlay-header .nav-menu li a:hover {
  color: #f57c00;
}

/* --- default-header 用（黒文字） --- */
.default-header .nav-menu li a {
  color: #333;
}

.default-header .nav-menu li a:hover {
  color: #f57c00;
}
/* ハンバーガーのバー色（透過時は白） */

/* ハンバーガーメニューのバー色 */
.menu-toggle .bar { background-color: white; }
.default-header .menu-toggle .bar { background-color: #333; }


/* サブメニュー共通 */
.submenu li a,
.submenu-right li a {
  color: white;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.submenu li a:hover,
.submenu-right li a:hover {
  background-color: #ff9f40;
}
.submenu .submenu-right {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #ef7d00;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 220px;
}
.submenu li:hover > .submenu-right {
  display: block;
}

/* ハンバーガーメニューの見た目 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1100;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* モバイル対応（768px以下） */

@media screen and (max-width: 980px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #fff5e8;
    position: fixed; 
    top: 0;
    right: 0;
    height: 100%;
    width: 40%;
    padding: 2rem 1rem;
    text-align: left;
    z-index: 1001; /* ← menu-overlayより上 */
    box-shadow: -2px 0 6px rgba(0,0,0,0.3);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu.active li a {
    color: #333 !important;  /* ← 強制的に黒文字に */
  }
  .nav-menu li a:hover {
    color: #f57c00 !important;  
  }
  .menu-toggle {
    display: flex;
  }
}

/* トップ動画 */
.video-hero {
  position: relative;
  width: 100%;
  height: 85vh;   /* ← 必要に応じて調整 */
  overflow: hidden;
}

.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 発熱外来お知らせボックス --- */
.covid-box {
  max-width: 80%;
  margin: 3rem auto;
  background-color: #fff3e0;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  line-height: 2;
  color: #333;
}

.covid-title {
  color: #ef7a00;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.covid-red {
  color: #d32f2f;
  font-weight: bold;
}

.covid-tel {
  margin-top: 1.5rem;
  color: #ef7a00;
  font-size: 1.4rem;
  font-weight: bold;
}

/* お知らせセクション */

.news {
  padding: 2rem;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.news-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.center-news h2 {
  text-align: center;
}
.center-news .latest-news {
  width: 100%;
}
.center-news .news-link {
  width: 100%;
}

.news h2 {
  margin-bottom: 1rem;
}


.link-right {
  text-align: right;
  margin-top: 1rem;
}

/* Aboutセクション */
/* --- Slickカルーセルセクション --- */
.about-carousel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.slick-carousel {
  width: 100%;
}

.slick-slide {
  width: 50% !important;  /* ← 強制的に2枚並び */
  box-sizing: border-box;
  padding: 0 10px;
}

.slick-track {
  display: flex;
}


.slick-carousel .image-wrapper {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.slick-carousel .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slick-carousel p {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  color: #333;
}


/* 矢印の色をオレンジに（背景が白なので） */
.slick-prev:before,
.slick-next:before {
  color: #ef7a00;
  font-size: 32px;
}

/* スマホ時の幅調整 */
@media screen and (max-width: 768px) {
  .about-carousel {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }
}


/* 診療時間テーブル */
.schedule {
  padding: 3rem 1rem;
  background: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
}

.schedule h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.schedule-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  color: #333;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ccc;
  padding: 0.8rem 0.5rem;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  background-color: #fff;  /* ← デフォルトは白 */
}

.schedule-table thead th {
  background-color: #fdf2e9;  /* ← 上の曜日行 */
  font-weight: bold;
}

.schedule-table tbody th {
  background-color: #fdf2e9;  /* ← 左の時間列 */
  font-weight: bold;
}

.schedule-table .small-text {
  font-size: 0.8rem;
  color: #666;
}

.schedule .note {
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  line-height: 1.8;
  margin-top: 1rem;
}

.schedule .closed {
  color: #d32f2f;
  font-weight: bold;
}


/* アクセスセクション */
.access-section {
  background-color: #ffffff;
  padding: 3rem 1rem;
}

.access-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.access-section .section-en {
  color: #ef7a00;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.access-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* ← 高さ揃えポイント */
  max-width: 960px;
  margin: 0 auto;
  gap: 2rem;
}

/* 地図エリア */
.map-box {
  flex: 1 1 400px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  flex-grow: 1;
  border-radius: 8px;
  border: none;
  display: block;
}

/* 住所情報エリア */
.access-info {
  flex: 1 1 400px;
  background-color: #fff8f0;
  padding: 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access-info h3 {
  color: #ef7a00;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .access-container {
    flex-direction: column;
    align-items: center;
  }

  .map-box,
  .access-info {
    width: 100%;
  }

  .map-box iframe {
    height: 300px;
  }
}


/*　フッター　*/

footer {
  background: #ffffff;
  padding: 2rem;
  text-align: center;
}

.footer-inner nav a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.contact-buttons {
  margin-top: 1rem;
}

.contact-buttons .btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f57c00;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

/* フッターバナー */
.footer-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background: #fafafa;
}

.footer-banner .item {
  position: relative;
  flex: 1 1 250px;
  max-width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.footer-banner .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.footer-banner .item:hover img {
  transform: scale(1.05);
}

/* グラデーションを重ねる擬似要素 */
.footer-banner .item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;  /* ← 左側 40%にグラデーションを敷く */
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}

/* ラベルの白抜き文字 */
.footer-banner .label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 2;  /* グラデーションの上に文字を出す */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

@media screen and (max-width: 980px) {
  .footer-banner .item {
    flex: 1 1 48%;
    max-width: 48%;
  }
}

/* コンタクトセクション背景ぼかし */
.contact-cta {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 1rem;
  background: url("../img/gazo69.jpg") no-repeat center center;
  background-size: cover;
}

.contact-overlay {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-block {
  background: white;
  display: flex;
  flex-direction: column;  /* 縦並び */
  align-items: center;     /* ← ここが中央揃えのポイント！ */
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  text-align: center;      /* 中の文字も中央揃えに */
}

.contact-block .label {
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 1rem;
  white-space: nowrap;
}

.contact-block .content {
  flex: 1;
}

.tel-large {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #f57c00;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #e65100;
}

.tel-icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

/* フッターのロゴサイズ調整 */
.footer-inner img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}
/* ナビ部分をオレンジに */
.footer-inner .footer-nav {
  background-color: #ffa345; /* 明るめオレンジ */
  padding: 1rem 0;
  margin-top: 1rem;
}

.footer-inner .footer-nav a {
  color: #000;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: nomal;
}

.footer-inner .footer-nav a:hover {
  color: #ffd7b6;
}

/* コピーライトだけ濃いオレンジに */
.footer-inner small {
  display: block;
  background-color: #ec7700; /* 濃いオレンジ */
  color: white;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  margin-top: 0;
}
.footer-bottom {
  display: block;
  width: 100%;
  background-color: #ec7700;  /* 濃いオレンジ */
  color: white;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

/* オレンジボタン　*/
.orange-btn {
  display: inline-block;
  background: #ec7700;
  color: #fff;
  padding: 12px 32px;
  border-radius: 0;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.orange-btn:hover {
  background: #ff9900;
}

/* recruit.html専用：画面幅いっぱい画像中央揃え（改良版） */
.recruit-fullwidth-imgs {
  width: auto;
  margin: 0;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}
.recruit-fullwidth-imgs img {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  min-width: 100vw;
  height: auto;
  display: block;
}

/* recruit.html専用：body,mainのリセットでズレ防止 */
body.recruit-fullwidth-page {
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: visible !important;
}
.recruit-fullwidth-imgs {
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
}
.recruit-fullwidth-imgs img {
  width: 80% !important;
  max-width: 80vw !important;
  min-width: 0 !important;
  margin: 0 auto 2rem auto !important;
  display: block;
  position: static !important;
  left: auto !important;
  transform: none !important;
}
