/* ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ヘッダー */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.logo a:hover {
  color: #1a4480;
}

.desktop-nav {
  display: none;
  gap: 3rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #2c5aa0;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s ease;
  border-radius: 8px;
}

.mobile-menu-btn:hover {
  color: #2c5aa0;
  background: rgba(44, 90, 160, 0.05);
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 1rem;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #2c5aa0;
  background-color: rgba(44, 90, 160, 0.05);
}

/* メインビジュアル */
.main-visual {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
}

.main-visual-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.main-visual-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
}

/* キャッチフレーズ */
.catchphrase-container-new {
  position: absolute;
  left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

.catchphrase-text-new {
  background: rgba(255, 255, 255, 0.95);
  color: #1e40af;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  display: inline-block;
  line-height: 1.4;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 診療時間ボタン */
.clinic-hours-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  min-width: 120px;
  backdrop-filter: blur(10px);
}

.clinic-hours-toggle:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.toggle-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.toggle-icon.rotate {
  transform: rotate(180deg);
}

/* 診療時間 */
.clinic-hours {
  position: absolute;
  bottom: 6rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  max-width: 300px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.clinic-hours.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

.clinic-hours.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.clinic-hours-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.clinic-hours-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #1e40af, #4a90e2);
}

.clinic-hours-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clinic-hours-table th,
.clinic-hours-table td {
  padding: 0.6rem 0.4rem;
  text-align: center;
  border: 1px solid #e0e8f0;
}

.clinic-hours-table th {
  background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
  color: #1e40af;
  font-weight: 600;
}

.clinic-hours-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.8);
}

.clinic-hours-note {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scroll-indicator svg {
  margin-top: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 重要なお知らせ */
.important-notice {
  background: linear-gradient(135deg, #fff8e6, #ffeaa7);
  border-top: 1px solid #ffe0b2;
  border-bottom: 1px solid #ffe0b2;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.important-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.notice-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #ff9500, #e67700);
  border-radius: 50%;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

.notice-label {
  font-weight: 600;
  color: #e67700;
  margin-right: 0.5rem;
}

.notice-link {
  color: #e67700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.notice-link:hover {
  color: #d9480f;
}

/* アクションボタン */
.action-buttons {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  margin: 0.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #4a90e2, #2c5aa0);
  color: white;
  border: 1px solid #4a90e2;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2c5aa0, #1a4480);
  color: white;
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: #4a90e2;
  border: 2px solid #4a90e2;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: #2c5aa0;
  color: #2c5aa0;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* セクション共通 */
.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.2), transparent);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 3rem;
  position: relative;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
  border-radius: 2px;
}

/* お知らせ */
.news-section {
  background: white;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(224, 232, 240, 0.5);
  transition: all 0.3s ease;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: rgba(74, 144, 226, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.news-date {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(224, 232, 240, 0.5);
}

.news-category {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-category-red {
  background: linear-gradient(135deg, #ffebee, #fce4ec);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.2);
}

.news-category-blue {
  background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
  color: #1565c0;
  border: 1px solid rgba(21, 101, 192, 0.2);
}

.news-category-yellow {
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  color: #f57f17;
  border: 1px solid rgba(245, 127, 23, 0.2);
}

.news-category-green {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.news-link {
  color: #1f2937;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  line-height: 1.5;
}

.news-link:hover {
  color: #4a90e2;
}

.news-more {
  text-align: right;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  color: #4a90e2;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  border-radius: 12px;

}

.link-arrow:hover {
  color: #2c5aa0;
  background: rgba(74, 144, 226, 0.1);
  transform: translateX(5px);
}

.arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  background: linear-gradient(135deg, #4a90e2, #2c5aa0);
  border-radius: 50%;
  color: white;
  transition: transform 0.3s ease;
}

.link-arrow:hover .arrow-icon {
  transform: translateX(3px);
}

/* 診療案内 */
.services-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.services-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.services-intro {
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(44, 90, 160, 0.1);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(74, 144, 226, 0.3);
}

.service-header {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(44, 90, 160, 0.05));
  border-bottom: 1px solid rgba(44, 90, 160, 0.1);
  position: relative;
}

.service-icon {
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.icon-circle {
  width: 4rem;
  height: 4rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(74, 144, 226, 0.2);
}

.internal-icon,
.respiratory-icon,
.homecare-icon {
  background: linear-gradient(135deg, #b3d7ff, #e3f2fd);
  position: relative;
}

.icon-circle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c5aa0;
  margin: 0;
  letter-spacing: 0.02em;
}

.service-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-description {
  color: #1f2937;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.service-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.service-example {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(44, 90, 160, 0.1));
  border-radius: 20px;
  font-size: 0.875rem;
  color: #2c5aa0;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.service-example:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(44, 90, 160, 0.2));
  transform: translateY(-2px);
}

.service-footer {
  margin-top: auto;
  border-top: 1px solid rgba(44, 90, 160, 0.1);
  padding-top: 1.5rem;
}

.service-link {
  color: #4a90e2;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.service-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: #2c5aa0;
}

.service-link:hover::after {
  transform: translateX(3px);
}

.service-buttons {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* 医院紹介 */
.about-section {
  background: white;
  padding: 5rem 0;
}

.about-content {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 3rem;
  border-radius: 20px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.about-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

.about-text p {
  color: #1f2937;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(44, 90, 160, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(74, 144, 226, 0.3);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(44, 90, 160, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid rgba(74, 144, 226, 0.2);
}

.doctor-icon,
.facility-icon,
.access-icon {
  color: #4a90e2;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.feature-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  color: #4a90e2;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(74, 144, 226, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.feature-link:hover {
  color: #2c5aa0;
  background: rgba(74, 144, 226, 0.1);
  transform: translateX(3px);
}

.feature-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.feature-link:hover::after {
  transform: translateX(2px);
}

/* 在宅診療 */
.homecare-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.homecare-card {
  max-width: 1200px;
  margin: 0 auto;
}

.homecare-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.homecare-content-area {
  padding: 3rem;
  position: relative;
}

.homecare-subtitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  position: relative;
  padding-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.homecare-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4a90e2, #2c5aa0);
  border-radius: 3px;
}

.homecare-description {
  color: #1f2937;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.homecare-features {
  list-style: none;
  margin-bottom: 2.5rem;
  padding: 0;
}

.homecare-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #1f2937;
  padding: 0.75rem;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 226, 0.1);
  transition: all 0.3s ease;
}

.homecare-feature-item:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateX(5px);
}

.homecare-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background: linear-gradient(135deg, #4a90e2, #2c5aa0);
  border-radius: 50%;
}

.homecare-link {
  display: inline-flex;
  align-items: center;
  color: #4a90e2;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.homecare-link:hover {
  color: #2c5aa0;
  background: rgba(74, 144, 226, 0.15);
  transform: translateX(5px);
}

.homecare-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  background: linear-gradient(135deg, #4a90e2, #2c5aa0);
  border-radius: 50%;
  color: white;
  transition: transform 0.3s ease;
}

.homecare-link:hover .homecare-arrow {
  transform: translateX(4px);
}

.homecare-image-area {
  background: linear-gradient(135deg, #b8d8f8, #e3f2fd);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 300px;
  position: relative;
}

.homecare-image-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(74, 144, 226, 0.1), rgba(44, 90, 160, 0.1));
}

.homecare-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* お問い合わせ */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(44, 90, 160, 0.1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a90e2;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #4a90e2;
  display: inline-block;
  letter-spacing: 0.02em;
}

.contact-phone-number {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(44, 90, 160, 0.05));
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.phone-icon-large {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2, #2c5aa0);
  color: white;
  padding: 0.75rem;
  margin-right: 1rem;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.phone-large {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.02em;
}

.contact-note {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(44, 90, 160, 0.05));
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.contact-note p {
  color: #1f2937;
  margin: 0;
  line-height: 1.6;
}

.contact-hours-title {
  font-weight: 700;
  color: #2c5aa0;
  margin: 2rem 0 1rem 0;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.contact-hours-table th,
.contact-hours-table td {
  padding: 0.875rem 0.5rem;
  border: 1px solid rgba(224, 232, 240, 0.5);
  font-size: 0.875rem;
  text-align: center;
}

.table-header {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(44, 90, 160, 0.1));
}

.contact-hours-table th {
  color: #2c5aa0;
  font-weight: 600;
}

.contact-hours-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

.contact-hours-note {
  font-size: 0.875rem;
  color: #666;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(224, 232, 240, 0.5);
}

/* FAQ */
.faq-container {
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid rgba(44, 90, 160, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(74, 144, 226, 0.05);
}

.faq-question span {
  color: #4a90e2;
  font-weight: 500;
  font-size: 0.875rem;
}

.faq-icon {
  color: #4a90e2;
  transition: transform 0.3s ease;
}

.faq-icon.rotate {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(248, 250, 252, 0.8);
}

.faq-answer.show {
  max-height: 200px;
  padding: 1rem 1.25rem;
}

.faq-answer p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* アクセス */
.access-section {
  padding: 5rem 0;
  background: white;
}

.access-container {
  max-width: 1200px;
  margin: 0 auto;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.access-image {
  order: 2;
}

.clinic-exterior {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(74, 144, 226, 0.1);
}

.access-info {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.access-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #2c5aa0;
  display: inline-block;
  letter-spacing: 0.02em;
}

.access-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(44, 90, 160, 0.1);
  transition: all 0.3s ease;
}

.access-detail:hover {
  background: rgba(74, 144, 226, 0.05);
  transform: translateX(5px);
}

.access-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

.access-detail span {
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.5;
}

.access-note {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.access-transport {
  margin-top: 2rem;
}

.access-transport-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.access-transport-list {
  list-style: none;
  padding: 0;
}

.access-transport-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: #1f2937;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(44, 90, 160, 0.1);
  transition: all 0.3s ease;
}

.access-transport-list li:hover {
  background: rgba(74, 144, 226, 0.05);
  transform: translateX(3px);
}

.bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  border-radius: 50%;
  margin-right: 0.75rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.access-more {
  margin-top: 2rem;
}

.access-link {
  display: inline-flex;
  align-items: center;
  color: #2c5aa0;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  background: rgba(44, 90, 160, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(44, 90, 160, 0.2);
}

.access-link:hover {
  color: #1a4480;
  background: rgba(44, 90, 160, 0.15);
  transform: translateX(5px);
}

.access-arrow {
  margin-left: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.access-link:hover .access-arrow {
  transform: translateX(4px);
}

/* フッター */
.footer {
  background: linear-gradient(135deg, #0a4b87, #1e40af);
  color: white;
  padding: 5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-subtitle {
  color: #bfdbfe;
  margin-top: 0.5rem;
  font-style: italic;
}

.footer-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-detail:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.footer-icon {
  color: #93c5fd;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-note {
  font-size: 0.875rem;
  color: #bfdbfe;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-map {
  width: 100%;
  height: 18rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-iframe {
  border-radius: 15px;
  width: 100%;
  height: 100%;
}

.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 4rem 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.footer-nav-section h3 {
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
}

.footer-nav-list li {
  margin-bottom: 0.75rem;
}

.footer-nav-link {
  color: white;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  display: block;
  border-radius: 4px;
}

.footer-nav-link:hover {
  color: #93c5fd;
  transform: translateX(5px);
}

.footer-copyright {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.875rem;
  color: #93c5fd;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* スクロールトップボタン */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(44, 90, 160, 0.5);
  background: linear-gradient(135deg, #1a4480, #2c5aa0);
}

/* ユーティリティクラス */
.min-h-screen {
  min-height: 100vh;
}

.bg-white {
  background-color: white;
}

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

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .main-visual {
    height: 600px;
  }

  .catchphrase-text-new {
    font-size: 2.5rem;
  }

  .clinic-hours {
    bottom: 2rem;
    right: 2rem;
  }

  .clinic-hours-toggle {
    display: none;
  }

  .clinic-hours.hide {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .homecare-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .homecare-image-area {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-image {
    order: 1;
  }

  .access-info {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 3rem;
  }

  .homecare-subtitle {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .catchphrase-container-new {
    left: 1rem;
  }

  .catchphrase-text-new {
    font-size: 1.5rem;
    padding: 0.4rem 1rem;
  }

  .main-visual {
    height: 400px;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .homecare-content-area {
    padding: 2rem;
  }

  .homecare-subtitle {
    font-size: 1.5rem;
  }

  .homecare-description {
    font-size: 0.9rem;
  }

  .homecare-feature-item {
    font-size: 0.9rem;
  }

  .homecare-image-area {
    order: -1;
  }

  .contact-container {
    padding: 2rem;
  }

  .access-info {
    padding: 2rem;
  }

  .scroll-top-btn {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 480px) {
  .catchphrase-text-new {
    font-size: 1.25rem;
    padding: 0.3rem 0.8rem;
  }

  .main-visual {
    height: 350px;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card,
  .feature-card {
    padding: 1.5rem;
  }

  .homecare-content-area,
  .contact-container,
  .access-info {
    padding: 1.5rem;
  }

  .phone-large {
    font-size: 1.5rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* スクロールアニメーション */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1a4480, #2c5aa0);
}

/* 印刷スタイル */
@media print {
  .header,
  .scroll-top-btn,
  .clinic-hours-toggle,
  .scroll-indicator {
    display: none;
  }

  .main-visual {
    height: auto;
    min-height: 200px;
  }

  .section {
    page-break-inside: avoid;
    margin-bottom: 2rem;
    padding: 2rem 0;
  }

  .main-visual-bg {
    display: none;
  }

  .catchphrase-text-new {
    color: #2c5aa0;
    background: white;
    box-shadow: none;
  }

  a {
    color: #2c5aa0 !important;
    text-decoration: underline;
  }

  .footer {
    background: #333;
    color: white;
  }
}

/* アクセシビリティ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* フォーカススタイル */
*:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

.nav-link:focus,
.mobile-nav-link:focus,
.btn:focus,
.service-link:focus,
.feature-link:focus,
.homecare-link:focus,
.access-link:focus,
.footer-nav-link:focus,
.scroll-top-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
  border-radius: 8px;
}

/* プリファードリデュースドモーション */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .main-visual-bg {
    background-attachment: scroll;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* RTL（右から左）言語対応 */
[dir="rtl"] .catchphrase-container-new {
  right: 2rem;
  left: auto;
}

[dir="rtl"] .clinic-hours {
  left: 2rem;
  right: auto;
}

[dir="rtl"] .clinic-hours-toggle {
  left: 1rem;
  right: auto;
}

[dir="rtl"] .scroll-top-btn {
  left: 2rem;
  right: auto;
}

[dir="rtl"] .news-meta {
  flex-direction: row-reverse;
}

[dir="rtl"] .service-icon,
[dir="rtl"] .feature-icon {
  margin-left: 1.5rem;
  margin-right: 0;
}

[dir="rtl"] .homecare-checkmark,
[dir="rtl"] .access-icon,
[dir="rtl"] .footer-icon {
  margin-left: 0.75rem;
  margin-right: 0;
}

[dir="rtl"] .homecare-arrow,
[dir="rtl"] .access-arrow,
[dir="rtl"] .arrow-icon {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* 追加のユーティリティクラス */
.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

/* パフォーマンス最適化 */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* コンテンツローダー */
.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading.loaded {
  opacity: 1;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 追加のボタンスタイル */
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* 追加のカードスタイル */
.card-elevated {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-flat {
  box-shadow: none;
  border: 1px solid rgba(44, 90, 160, 0.2);
}

/* グリッドヘルパー */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   右サイド固定 WEB予約タブ（縦書き・青）
========================= */
.side-booking-tab {
  position: fixed;
  right: 0;                      /* 画面右端に固定 */
  top: 30%;                      /* 画面中央に配置 */
  transform: translateY(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;     /* 縦書き */
  text-orientation: mixed;
  text-decoration: none;
  user-select: none;
  background-color: #2f80ed;     /* ベースの青 */
  color: #fff;
  font-weight: bold;
  padding: 18px 12px;
  border-radius: 12px 0 0 12px;  /* 右端に沿う丸み */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.side-booking-tab:hover {
  transform: translateY(-50%) translateX(-2px);
  filter: brightness(1.06);
}

.side-booking-tab:active {
  transform: translateY(-50%) translateX(0);
  filter: brightness(0.98);
}

.side-booking-text {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 16px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* スマホ最適化 */
@media (max-width: 767px) {
  .side-booking-tab {
    min-height: 150px;
    padding: 16px 10px;
    top: 30%;
    transform: translateY(-50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
  }

  .side-booking-text {
    font-size: 15px;
  }
}

/* ヘッダー高さの基準（必要に応じて調整） */
:root { --header-height: 64px; }

/* モバイル時の診療時間ポップ */
@media (max-width: 767px) {
  .clinic-hours {
    position: fixed;            /* absolute → fixed */
    top: calc(var(--header-height) + 12px);
    right: 1rem;
    left: 1rem;                 /* 画面端に張り付かないよう左右に余白 */
    bottom: auto;
    max-width: none;            /* 横幅制約を外す */
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow: auto;             /* 高さが足りないときスクロール */
    z-index: 100;               /* ヘッダーより前面 */
  }
  .clinic-hours.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px); /* 固定配置用の微調整 */
    pointer-events: none;
  }
  .clinic-hours.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}
/* ×ボタン（モバイル表示） */
.clinic-hours {
  position: absolute; /* 既存 */
  /* position: fixed にしている場合でもそのままでOK */
}
.clinic-hours-close{
  position:absolute;
  top:8px;
  right:8px;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.08);
  background:#ffffff;
  color:#1e40af;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.clinic-hours-close:hover{ transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,0,0,.16); }
.clinic-hours-close:active{ transform:none; }

/* デスクトップでは×を出さない（常時表示のままにする） */
@media (min-width:768px){
  .clinic-hours-close{ display:none; }
}
/* 診療時間パネルと×ボタンを最前面に */
.clinic-hours {
  z-index: 10010;          /* 予約タブ(9999)より上 */
}
.clinic-hours-close {
  z-index: 10020;          /* 念のためさらに上 */
  position: absolute;
}

/* パネルが開いている間は予約タブのクリック無効化＆半透明 */
.hours-open .side-booking-tab {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(10%);
}

/* モバイル時：パネルを少し左へ寄せてタブと距離を取る */
@media (max-width: 767px) {
  .clinic-hours {
    right: 4.5rem;   /* 既存の right:1rem を上書きしてタブ分だけ逃がす */
    left: 1rem;
  }
}
/* --- モバイル：パネルを左右いっぱい（適度な余白のみ）で表示 --- */
@media (max-width: 767px){
  .clinic-hours{
    position: fixed !important;
    top: calc(var(--header-height, 64px) + 12px);
    left: 12px;                 /* 画面端の余白だけ残す */
    right: 12px;                /* ← タブ回避をやめて全体を表示 */
    bottom: auto;
    max-width: none;
    width: auto;
    max-height: calc(100dvh - var(--header-height, 64px) - 24px);
    overflow: auto;
    border-radius: 14px;
    padding: 16px 14px 18px;
    z-index: 10010;
  }
  .clinic-hours-close{ top:10px; right:10px; }
  .clinic-hours-title{
    position: sticky; top: 0; background:#fff; z-index:1;
  }
}
/* 予約タブは常にクリック可能に */
.hours-open .side-booking-tab{
  pointer-events: auto;
  opacity: 1;
  filter: none;
}
