/*
Theme Name: Hieda Clinic Theme
Author: Hieda
Description: Hieda ClinicのオリジナルWordPressテーマ
Version: 1.0
*/

html {
  scroll-padding-top: 100px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
}

.logo img {
  width: 50px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.sub-text {
  font-size: 11px;
  color: #666;
}

.main-text {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: bold; /* グナバ文字を太字に */
}

header nav ul li a:hover {
  color: #0066cc;
}

header {
  background-image: url('images/pagetitle_back.png');
  background-size: cover;
  background-position: center;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

/* 左側のロゴだけを1.5cm右へ動かす */
header .logo {
  margin-left: 1.5cm;
}

main { /*イメージ画像３枚スライドを最初に表示 */
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 40px;
}

.slideshow {
  position: relative;
  width: 800px; /* 横幅の仮サイズです。後で調整できます */
  height: 400px; /* 高さの仮サイズです */
  overflow: hidden;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideAnimation 12s infinite; /* 全体の時間を12秒に */
}

/* 3枚の画像を順番に表示する仕組み（合計6秒で1サイクル、1枚あたり2秒） */
.slide-img:nth-child(1) {
  animation-delay: 0s;
}
.slide-img:nth-child(2) {
  animation-delay: 4s;
}
.slide-img:nth-child(3) {
  animation-delay: 8s;
}

@keyframes slideAnimation {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

/* ここから診療案内セクションのスタイル */
.clinic-guide {
  text-align: left;
  margin-bottom: 50px;
}

.clinic-guide h2 {
  font-size: 24px;
  color: #2e8b57; /* ここで緑色（例: 深い緑）を指定します */
  margin-bottom: 15px;
}

.clinic-guide p {
  font-size: 15px;
  color: #666;
  margin-bottom: 30px;
  padding-left: 1.5cm; /* 文章だけを1.5センチ右にずらす */
}

/* 2枚の写真を横並びにする設定 */
.guide-images {
  display: flex;
  justify-content: center;
  gap: 20px; /* 写真同士の隙間 */
}

.image-item {
  width: 45%;
  max-width: 400px;
  text-align: center; /* 文字を中央揃えにする */
}

.image-item img {
  height: 250px;   /* 高さをピクセル単位で固定します */
  width: auto;     /* 高さに合わせて幅を自動調整し、アスペクト比を保ちます */
  border-radius: 8px;
}

.image-item p {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

/* ここから診療時間セクション全体 */
.clinic-schedule {
  margin-top: 50px;
  text-align: center;
  padding: 20px;
}

/* 受付時間の上下並び */
.time-info-box {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

.time-card {
  display: flex;
  align-items: center;
  background-color: #f4f9f5; /* 薄い緑の背景 */
  border: 1px solid #cce0d0;
  border-radius: 6px;
  overflow: hidden;
}

/* オレンジから「グリーン」に変更したバッジ部分 */
.time-badge {
  background-color: #2e8b57; /* 深みのあるグリーン */
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 14px;
}

.time-text {
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* 休診日や案内文のスタイル */
.holiday-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.label-orange {
  color: #2e8b57; /* ここもグリーンに合わせる場合 */
  font-weight: bold;
  margin-right: 5px;
}

.notice-text {
  font-size: 14px;
  color: #c0392b; /* 注意書きの赤文字 */
  margin-bottom: 30px;
}

/* スケジュール表のデザイン */
.schedule-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

.schedule-table th, .schedule-table td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: center;
  font-size: 16px;
}

/* 表のヘッダー（曜日部分）の背景をグリーンに */
.schedule-table th {
  background-color: #eaf2ed; /* 薄いグリーン */
  color: #2e8b57;
  font-weight: bold;
}

/* ○と×の色合い調整 */
.schedule-table td {
  color: #2e8b57; /* ○をグリーンにする場合 */
  font-weight: bold;
}

/* 午後 と 検査が主体の文字を赤文字にするスタイル */
.red-text {
  color: #e74c3c; /* 鮮やかな赤色 */
  font-weight: bold;
}

/* 流れる文字の枠組み */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
  background-color: #eaf2ed; /* 薄い緑の背景 */
  border-radius: 6px;
  padding: 10px 0;
}

/* 休診日に文字が流れるアニメーションの設定 */
.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
  color: #045125; /* 濃いグリーンに変更 */
  font-weight: bold;
  font-size: 16px;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

.access-section {
  text-align: left;
  margin-bottom: 50px;
  overflow: hidden;
}

.access-section h2 {
  font-size: 24px;
  color: #2e8b57;
  margin-bottom: 15px;
  padding-left: 8cm;
}

.access-section p {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  padding-left: 9cm;
}

.map-container {
  text-align: center;
  margin-top: 20px;
  padding: 0 20px;
}

/* 2つの地図を横並びにして中央に配置する */
.map-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
}

/* 2枚の地図の大きさと高さを完全に揃える設定 */
.map-box img {
  width: 45%;
  height: 250px;
  object-fit: contain;
  border: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* フッターのデザイン */
footer {
  background-image: url('images/foot_back.jpg');
  background-size: cover;
  background-position: center;
  color: #333;
  text-align: center;
  padding: 40px 20px;
  margin-top: 50px;
  border-top: 1px solid #eaeaea;
}

.footer-inner p {
  margin: 8px 0;
  font-size: 14px;
}

.footer-logo {
  font-weight: bold;
  font-size: 16px;
  color: #045125;
}

.copyright {
  font-size: 12px;
  color: #666;
  margin-top: 15px;
}

.doctor-section h2 {
  color: #045125;
}

.doctor-info h3 {
  color: #045125;
}

.footer-tel {
  color: #045125;
  font-weight: bold;
  font-size: 20px;
  margin: 15px auto;
  padding: 8px 20px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 健康診断予約ページ用スタイル */
.reserve-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border: 2px solid #008f4c;
  border-radius: 8px;
}
.reserve-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}
.reserve-subtitle {
  text-align: center;
  font-size: 14px;
  color: #008f4c;
  margin-bottom: 30px;
  font-weight: bold;
}
.notice-box {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 25px;
}
.badge-required {
  background-color: #d9534f;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
}
.badge-optional {
  background-color: #777;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
}
.form-group label {
  font-weight: bold;
  color: #333;
}
.form-control, .form-select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}
.form-note {
  font-size: 12px;
  color: #008f4c;
  margin-top: 5px;
}
.text-red {
  color: #d9534f !important;
}
.checkbox-area {
  margin: 20px 0;
}
.checkbox-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.form-submit-area {
  text-align: center;
  margin-top: 30px;
}
.submit-btn-green {
  background-color: #008f4c;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 60px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}
.submit-btn-green:hover {
  background-color: #00753d;
}

.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.captcha-left {
  date: flex;
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-left input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.captcha-left label {
  font-size: 14px;
  color: #222;
  cursor: pointer;
  font-weight: normal;
}
.captcha-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.captcha-img {
  width: 55px;
  height: auto;
  display: block;
}