:root {
  /* Colors */
  --primary-color: #000;
  --accent-teal: #14b8a6;
  --accent-teal-dark: #0f766e;
  /* 変更: アクセシビリティ確保用の濃いティール */
  --accent-blue: #1e6f83;
  --bg-white: #fff;
  --bg-light-gray: #f8fafc;
  --text-dark: #1e293b;
  --text-medium: #475569;
  /* 変更: コントラスト比改善 (#64748b -> #475569) */
  --footer-bg: #fff;
  --footer-text: #1e293b;
  --footer-link: #475569;
  /* 変更: コントラスト比改善 */
  --footer-link-hover: var(--accent-teal);
  --contact-bg-start: var(--accent-teal);
  --contact-bg-end: #227c2a;
  --contact-bg-light: #d2f6ff;
  --font-base: 'Noto Sans JP',
    sans-serif;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: .3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, .1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, .1)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  font-family: var(--font-base);
  color: var(--text-dark);
  scroll-behavior: smooth;
  line-height: 1.6
}

body {
  background-color: var(--bg-white);
  overflow-x: hidden;
  position: relative
}

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  line-height: 1.3
}

h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px
}

h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px
}

h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px
}

p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-medium)
}

.small-text {
  font-size: 14px
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, .1) 50%), linear-gradient(90deg, rgba(255, 0, 0, .02), rgba(0, 255, 0, .01), rgba(0, 0, 255, .02));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  z-index: 5
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px
}

section {
  padding: 80px 0;
  position: relative
}

.text-center {
  text-align: center
}

.mb-8 {
  margin-bottom: 32px
}

.mb-12 {
  margin-bottom: 48px
}

.grid {
  display: grid;
  gap: 24px
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: transform var(--transition), background-color var(--transition);
  cursor: pointer;
  border: none
}

.btn-primary {
  background-color: #005f3d;
  /* 背景色を濃い緑に変更 */
  color: #ffffff;
  /* 文字色を白に設定 */
}

.btn-primary:hover {
  background-color: #004d31;
  /* 変更: ホバー時に少し暗く */
  transform: scale(1.05)
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-teal);
  border: 2px solid var(--accent-teal)
}

.btn-secondary:hover {
  background-color: var(--accent-teal);
  color: #fff;
  transform: scale(1.05)
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: all var(--transition)
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px
}

.logo img {
  height: 40px;
  width: auto
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color var(--transition)
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent-teal)
}

.hamburger {
  display: none;
  cursor: pointer;
  background: 0 0;
  border: none;
  font-size: 24px;
  color: var(--primary-color)
}

.card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover)
}

.card-icon {
  font-size: 48px;
  color: var(--accent-teal);
  margin-bottom: 24px
}

.card-title {
  font-size: 20px;
  margin-bottom: 16px
}

.bg-light {
  background-color: var(--bg-light-gray)
}

.text-teal {
  color: var(--accent-teal);
}

.text-teal-dark {
  color: var(--accent-teal-dark);
}

.bg-contact {
  background: linear-gradient(135deg, var(--contact-bg-start), var(--contact-bg-end));
  color: #fff;
  padding: 100px 0
}

.bg-contact-light {
  background-color: var(--contact-bg-light);
  padding: 60px 0
}

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 24px;
  position: relative;
  z-index: 10
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--footer-text);
  text-decoration: none;
  display: inline-block
}

.footer-info p {
  color: var(--footer-text);
  opacity: .8;
  margin-bottom: 8px
}

.footer-links h2 {
  color: var(--footer-text);
  margin-bottom: 24px;
  font-size: 18px
}

.footer-links ul {
  list-style: none
}

.footer-links li {
  margin-bottom: 12px
}

.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color var(--transition)
}

.footer-links a:hover {
  color: var(--footer-link-hover)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 14px
}

.page-header {
  padding: 120px 0 60px
}

.philosophy-statement {
  padding: 100px 0
}

.philosophy-statement h2 {
  font-size: 40px;
  line-height: 1.6;
  margin: 0
}

.doctor-concept-section {
  padding: 100px 0
}

.three-s-box {
  padding: 60px
}

.privacy-main {
  padding: 120px 0 80px
}

.profile-content {
  padding: 48px
}

.responsive-table td,
.responsive-table th {
  padding: 16px 0
}

.responsive-table th {
  width: 30%;
  font-weight: 700;
  color: var(--primary-color);
  vertical-align: top
}

.responsive-table tr {
  border-bottom: 1px solid #e2e8f0
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0)
}

@media (max-width:1024px) {

  .footer-grid,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:768px) {
  h1 {
    font-size: 28px !important
  }

  h2 {
    font-size: 24px
  }

  h3 {
    font-size: 18px
  }

  section {
    padding: 48px 0
  }

  .container {
    padding: 0 16px
  }

  .hero-section {
    padding-top: 70px !important;
    min-height: 100svh !important
  }

  .hero-section h1 {
    font-size: 26px !important;
    margin-bottom: 16px !important
  }

  .hero-section h2 {
    font-size: 15px !important;
    margin-bottom: 20px !important
  }

  .hero-section p {
    font-size: 14px !important;
    margin-bottom: 28px !important;
    line-height: 1.8 !important
  }

  .btn {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 15px !important
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch
  }

  .bg-contact {
    padding: 60px 0 !important
  }

  .bg-contact-light {
    padding: 40px 0 !important
  }

  .bg-contact-light h2 {
    font-size: 22px !important;
    margin-bottom: 24px !important
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .responsive-table td,
  .responsive-table th {
    display: block;
    width: 100%
  }

  .responsive-table th {
    padding-bottom: 4px;
    border-bottom: none
  }

  .responsive-table td {
    padding-top: 0
  }

  .hamburger {
    display: block
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: .3s ease
  }

  .nav-menu.active {
    left: 0
  }

  .nav-links {
    flex-direction: column;
    gap: 24px
  }

  .accordion-header {
    font-size: 15px !important;
    line-height: 1.5
  }

  [style*="font-size: 40px"] {
    font-size: 32px !important
  }

  .card {
    padding: 20px !important
  }

  .mb-12 {
    margin-bottom: 32px
  }

  .page-header {
    padding: 90px 0 40px !important
  }

  .page-header h1 {
    font-size: 28px !important;
    margin-bottom: 8px !important
  }

  .philosophy-statement {
    padding: 60px 0 !important
  }

  .philosophy-statement h2 {
    font-size: 22px !important;
    line-height: 1.6 !important
  }

  .doctor-concept-section {
    padding: 60px 0 !important
  }

  .doctor-concept-section p {
    font-size: 15px !important
  }

  .three-s-box {
    padding: 32px 20px !important
  }

  .three-s-box ul {
    font-size: 16px !important
  }

  [style*="padding: 48px"][style*="border-radius"] {
    padding: 24px !important
  }

  .grid-cols-4 [style*="grid-column: span 2"] {
    grid-column: span 1 !important
  }

  .privacy-main {
    padding: 90px 0 48px !important
  }
}

@media (max-width:480px) {
  .hero-section h1 {
    font-size: 22px !important;
    line-height: 1.4 !important
  }

  .hero-section h2 {
    font-size: 14px !important
  }

  .hero-section p {
    font-size: 13px !important
  }

  h2 {
    font-size: 22px
  }

  h3 {
    font-size: 16px
  }

  .header-container {
    height: 64px
  }

  .nav-menu {
    top: 64px;
    height: calc(100vh - 64px)
  }

  .card-icon {
    font-size: 36px
  }

  section {
    padding: 36px 0
  }

  .footer-grid {
    gap: 20px
  }
}