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

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #2c3e50;
  line-height: 1.7;
  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;
}

.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;
}

.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: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2c5aa0;
  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;
}

.mobile-menu-btn:hover {
  color: #2c5aa0;
}

.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;
}

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

/* ヒーローセクション */
.hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.6) 0%, rgba(74, 144, 226, 0.6) 100%),
            url('images/annai.png');

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  color: white;
}


.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(44, 90, 160, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(3px);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* メインコンテナ */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* モバイル目次 */
.mobile-toc {
  position: sticky;
  top: 80px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem;
  margin: 0;
}

.toc-details {
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(74, 144, 226, 0.05));
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(44, 90, 160, 0.15);
}

.toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: #2c5aa0;
}

.toc-summary::-webkit-details-marker {
  display: none;
}

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

.toc-details[open] .toc-icon {
  transform: rotate(180deg);
}

.toc-nav {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(44, 90, 160, 0.1);
}

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

.toc-link {
  display: block;
  padding: 0.75rem;
  color: #495057;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.toc-link:hover {
  background: rgba(44, 90, 160, 0.1);
  color: #2c5aa0;
  transform: translateX(5px);
}

.toc-link.active {
  background: rgba(44, 90, 160, 0.15);
  color: #2c5aa0;
}

/* コンテンツラッパー */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
}

/* サイドバー */
.sidebar {
  display: none;
  width: 280px;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar-content {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(44, 90, 160, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c5aa0;
  position: relative;
  padding-bottom: 0.5rem;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

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

.sidebar-list li {
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: #495057;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.chevron-icon {
  margin-right: 0.75rem;
  color: #4a90e2;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(44, 90, 160, 0.1);
  color: #2c5aa0;
  transform: translateX(5px);
}

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

.sidebar-link.active {
  background: rgba(44, 90, 160, 0.15);
  color: #2c5aa0;
}

/* メインコンテンツ */
.main-content {
  flex: 1;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 20px;
  border: 1px solid rgba(44, 90, 160, 0.1);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2, #2c5aa0);
  border-radius: 20px 20px 0 0;
}

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

/* セクション */
.section {
  margin-bottom: 5rem;
  scroll-margin-top: 120px;
  padding: 3rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 4rem 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  letter-spacing: 0.02em;
}

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

.section-header {
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(74, 144, 226, 0.05));
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(44, 90, 160, 0.15);
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2c5aa0, #4a90e2);
}

.section-subtitle {
  color: #495057;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* アコーディオン */
.accordion {
  margin-bottom: 3rem;
}

.accordion-item {
  border: 1px solid rgba(44, 90, 160, 0.15);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.accordion-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c5aa0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-trigger:hover {
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(74, 144, 226, 0.05));
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-icon {
  color: #4a90e2;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-content.active {
  max-height: 2000px;
}

.accordion-body {
  background: rgba(248, 250, 252, 0.5);
  padding: 2rem;
  border-top: 1px solid rgba(44, 90, 160, 0.1);
}

/* テキストコンテンツ */
.text-content {
  color: #495057;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.content-section {
  margin-bottom: 2rem;
}

.content-subtitle {
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.content-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #4a90e2;
}

/* リスト */
.check-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(44, 90, 160, 0.1);
}

.check-item:hover {
  background: rgba(44, 90, 160, 0.05);
  transform: translateX(5px);
}

.check-item::before {
  content: "✓";
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
}

.bullet-list li {
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  border-radius: 50%;
}

/* 在宅診療セクション */
.home-care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.service-section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.service-section:last-child {
  border-bottom: none;
}

.service-header {
  margin-bottom: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.service-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

.service-content {
  max-width: none;
}

/* フローカード */
.flow-card {  
  padding: 3rem;    
  margin-bottom: 3rem;
}

.flow-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

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

.flow-container {
  position: relative;
}

.flow-container::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  height: calc(100% - 3rem);
  width: 3px;
  background: linear-gradient(180deg, #2c5aa0, #4a90e2);
}

.flow-item {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 3rem;
}

.flow-item:last-child {
  margin-bottom: 0;
}

.flow-number {
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  color: white;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
  font-size: 1.125rem;
}

.flow-content {
  padding-left: 0;
}

.flow-step-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: #2c5aa0;
  margin-bottom: 0.75rem;
}

.flow-step-text {
  color: #495057;
  line-height: 1.7;
}

/* コンタクトカード */
.contact-card {
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(74, 144, 226, 0.05));
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(44, 90, 160, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-info {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(44, 90, 160, 0.1);
  text-align: center;
}

.contact-method {
  font-weight: 500;
  color: #2c5aa0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.phone-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #4a90e2;
  margin-bottom: 0.5rem;
}

.phone-hours {
  font-size: 0.95rem;
  color: #6c757d;
}

/* 健康診断セクション */
.info-container {
  padding: 3rem;    
}

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

.health-service {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.health-service:last-child {
  border-bottom: none;
}

.health-service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.health-service-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

.contact-info-box {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(44, 90, 160, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(44, 90, 160, 0.15);
}

.contact-info-title {
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.contact-phone {
  font-weight: 700;
  margin-top: 1rem;
  color: #4a90e2;
  font-size: 1.25rem;
}

/* テーブル */
.schedule-info {
  margin-bottom: 3rem;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
}

.schedule-table th,
.schedule-table td {
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid rgba(44, 90, 160, 0.1);
}

.schedule-table th {
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(74, 144, 226, 0.1));
  font-weight: 600;
  color: #2c5aa0;
}

.time-cell {
  font-weight: 600;
  background: rgba(248, 250, 252, 0.8);
  color: #2c5aa0;
}

.available {
  color: #10b981;
  font-weight: 600;
  font-size: 1.125rem;
}

.unavailable {
  color: #ef4444;
  font-weight: 600;
  font-size: 1.125rem;
}

.schedule-notes {
  margin-top: 2rem;
  padding: 2rem;
}

.notes-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
}

.note {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(44, 90, 160, 0.1);
}

/* 医療DXセクション */
#medical-dx {
  margin-bottom: 5rem;
  scroll-margin-top: 120px;
  padding: 3rem 0;
  position: relative;
}

#medical-dx .text-content {
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(74, 144, 226, 0.05));
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(44, 90, 160, 0.15);
  margin-bottom: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.8;
  color: #495057;
}

#medical-dx .content-section {
  margin-bottom: 2.5rem;
}

#medical-dx .content-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}

#medical-dx .content-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

#medical-dx .check-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

#medical-dx .check-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(44, 90, 160, 0.1);
  color: #495057;
  line-height: 1.6;
}

#medical-dx .check-item::before {
  content: "✓";
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2c5aa0, #4a90e2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

#medical-dx p {
  color: #495057;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* 初診の方へセクション */
.first-visit-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(44, 90, 160, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.first-visit-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.visit-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.visit-section:last-child {
  border-bottom: none;
}

.visit-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.visit-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
}

/* スクロールトップボタン */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  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 5px 15px rgba(44, 90, 160, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
  .desktop-nav {
      display: flex;
  }
  
  .mobile-menu-btn {
      display: none;
  }
  
  .mobile-toc {
      display: none;
  }
  
  .content-wrapper {
      flex-direction: row;
      gap: 3rem;
      padding: 3rem 2rem;
  }
  
  .sidebar {
      display: block;
  }
  
  .home-care-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .health-services {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .dx-items {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .first-visit-sections {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .section:nth-child(even) {
      margin-left: -3rem;
      margin-right: -3rem;
      padding: 4rem 3rem;
  }   
}

@media (min-width: 1024px) {
  .hero-section {
      background-attachment: fixed;
  }
  
  .dx-items {
      grid-template-columns: 1fr;
  }
  
  .first-visit-sections {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .content-wrapper {
      padding: 4rem 3rem;
  }
}

/* モバイル専用調整 */
@media (max-width: 767px) {
  .hero-section {
      background-attachment: scroll;
      min-height: 50vh;
  }
  
  .hero-content {
      padding: 2rem 1rem;
      margin: 1rem;
  }
  
  .hero-title {
      font-size: 2rem;
  }
  
  .hero-description {
      font-size: 1rem;
  }
  
  .page-title {
      font-size: 2rem;
  }
  
  .section-title {
      font-size: 1.5rem;
  }
  
  
  .accordion-trigger {
      padding: 1.5rem;
      font-size: 1.125rem;
  }
  
  .accordion-body {
      padding: 1.5rem;
  }
  
  .flow-card {
      padding: 2rem;
  }
  
  .flow-container::before {
      left: 1rem;
  }
  
  .flow-item {
      padding-left: 3rem;
  }
  
  .flow-number {
      width: 2.5rem;
      height: 2.5rem;
      font-size: 1rem;
  }
  
  .contact-card {
      padding: 2rem;
  }
  
  .phone-number {
      font-size: 1.75rem;
  }
  
  .table-container {
      font-size: 0.875rem;
  }
  
  .schedule-table th,
  .schedule-table td {
      padding: 0.75rem 0.5rem;
  }
  
  .dx-item-content {
      margin-left: 0;
      margin-top: 1rem;
  }
  
  .scroll-top-btn {
      bottom: 1rem;
      right: 1rem;
      width: 2.5rem;
      height: 2.5rem;
  }
}

/* 極小画面対応 */
@media (max-width: 480px) {
  .hero-content {
      margin: 0.5rem;
      padding: 1.5rem 1rem;
  }
  
  .content-wrapper {
      padding: 1rem 0.5rem;
  }
  
  .section:nth-child(even) {
      margin-left: -1rem;
      margin-right: -1rem;
      padding: 2rem 1rem;
  }
  
  .page-header {
      padding: 2rem 1rem;
  }
  
  .flow-card,
  .contact-card,
  .info-container,
  .dx-intro,
  .dx-container,
  .first-visit-container {
      padding: 1.5rem;
  }
  
  .phone-number {
      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,
  .sidebar,
  .mobile-toc,
  .scroll-top-btn {
      display: none;
  }
  
  .main-content {
      width: 100%;
      margin: 0;
      padding: 0;
  }
  
  .section {
      page-break-inside: avoid;
      margin-bottom: 2rem;
  }
  
  .hero-section {
      background: none;
      color: #2c3e50;
      min-height: auto;
      padding: 2rem 0;
  }
  
  .hero-content {
      background: none;
      box-shadow: none;
      border: none;
      backdrop-filter: none;
  }
  
  .hero-title {
      color: #2c5aa0;
      text-shadow: none;
  }
  
  .hero-description {
      color: #495057;
      text-shadow: none;
  }
  
  a {
      color: #2c5aa0 !important;
      text-decoration: underline;
  }
  
  .section:nth-child(even) {
      background: none;
      box-shadow: none;
  }
}

/* アクセシビリティ */
.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,
.sidebar-link:focus,
.toc-link:focus,
.accordion-trigger:focus,
.scroll-top-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #4a90e2;
  border-radius: 4px;
}

/* プリファードリデュースドモーション */
@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;
  }
  
  .hero-section {
      background-attachment: scroll;
  }
}

/* RTL（右から左）言語対応 */
[dir="rtl"] .chevron-icon {
  transform: scaleX(-1);
}

[dir="rtl"] .sidebar-link,
[dir="rtl"] .toc-link {
  text-align: right;
}

[dir="rtl"] .flow-container::before {
  right: 1.5rem;
  left: auto;
}

[dir="rtl"] .flow-item {
  padding-right: 4rem;
  padding-left: 0;
}

[dir="rtl"] .flow-number {
  right: 0;
  left: auto;
}

[dir="rtl"] .dx-item-content {
  margin-right: 3rem;
  margin-left: 0;
}

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

.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;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* フッター */
.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);
}

/* レスポンシブ対応：フッター */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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