/* CSS Document - Southern Kusatsu Stomach & Colon Endoscopy Clinic Checkup Landing Page */

/* Design Tokens & Variables */
:root {
  /* Colors */
  --primary: hsl(154, 27%, 33%);       /* Warm calming forest green */
  --primary-light: hsl(154, 27%, 45%);
  --primary-bg: hsl(154, 15%, 96%);
  --accent: hsl(36, 45%, 54%);        /* Elegant gold accent */
  --accent-light: hsl(36, 45%, 94%);
  --text-dark: #2c3531;                /* Warm slate text */
  --text-muted: #5e6b66;
  --bg-light: #fbfaf7;                 /* Premium warm white */
  --bg-white: #ffffff;
  
  /* Font Families */
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;

  /* Spacing */
  --header-height: 80px;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 6px -1px rgba(62, 109, 88, 0.05), 0 2px 4px -1px rgba(62, 109, 88, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(62, 109, 88, 0.08), 0 4px 6px -2px rgba(62, 109, 88, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(62, 109, 88, 0.12), 0 10px 10px -5px rgba(62, 109, 88, 0.06);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Common Components */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(62, 109, 88, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 109, 88, 0.35);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(196, 156, 94, 0.25);
}

.btn-secondary:hover, .btn-secondary:active {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 109, 88, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Typography & Layouts */
.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 24px;
}

.section-line {
  display: none;
}

.section-intro {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--text-muted);
}

.plan-note-legal {
  display: inline-block;
  font-size: 0.88rem;
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.note-legal-items {
  display: inline-block;
  font-size: 0.95rem;
}

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

.highlight {
  color: var(--accent);
}

/* Utility Classes for Responsive Display */
.sp-only {
  display: none !important;
}
.pc-only {
  display: inline !important;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list .btn-nav-back {
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

.nav-list .btn-nav-back:hover {
  background-color: rgba(196, 156, 94, 0.05);
}

.nav-list .btn-nav-back::after {
  background-color: var(--accent);
  left: 16px;
  bottom: 6px;
}

.nav-list .btn-nav-back:hover::after {
  width: calc(100% - 32px) !important;
}

.nav-list .btn-nav-home {
  color: var(--primary);
  font-weight: 700;
  border: 1px solid var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

.nav-list .btn-nav-home:hover {
  background-color: rgba(62, 109, 88, 0.05);
}

.nav-list .btn-nav-home::after {
  background-color: var(--primary);
  left: 16px;
  bottom: 6px;
}

.nav-list .btn-nav-home:hover::after {
  width: calc(100% - 32px) !important;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-tel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-tel-header:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--bg-white);
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 53, 49, 0.9) 0%, rgba(62, 109, 88, 0.6) 50%, rgba(251, 250, 247, 0.1) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--bg-white);
}

.hero-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hero-actions .btn-outline {
  border-color: var(--bg-white);
  color: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 24px;
  border-radius: 12px;
}

.hero-actions .btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary);
}

.tel-label {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
}

.tel-number {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: -3px;
}

.hero-tel-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Pain Points Section */
.pain-section {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding-bottom: 40px;
}

.pain-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 60px 48px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pain-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.pain-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  padding-top: 4px;
  letter-spacing: -0.02em;
}

.pain-footer {
  border-top: 1px dashed rgba(62, 109, 88, 0.15);
  padding-top: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover,
.feature-card.reveal-active:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-image-wrapper {
  position: relative;
  padding-top: 66%; /* Aspect ratio 3:2 */
  overflow: hidden;
}

.feature-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-img,
.feature-card.reveal-active:hover .feature-img {
  transform: scale(1.08);
}

.feature-content {
  padding: 32px 24px;
  position: relative;
  flex-grow: 1;
}

.feature-num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(62, 109, 88, 0.08);
  position: absolute;
  top: 10px;
  right: 24px;
  line-height: 1;
}

.feature-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Plans Section */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 60px;
}

.plan-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(62, 109, 88, 0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.plan-card:hover,
.plan-card.reveal-active:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.plan-header {
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(62, 109, 88, 0.08);
}

.plan-badge, .plan-badge-highlight, .plan-badge-premium {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.plan-badge {
  background-color: var(--primary-bg);
  color: var(--primary);
}

.plan-badge-highlight {
  background-color: var(--accent-light);
  color: var(--accent);
}

.plan-badge-premium {
  background: linear-gradient(135deg, var(--accent), #9a763c);
  color: var(--bg-white);
  box-shadow: 0 2px 6px rgba(154, 118, 60, 0.25);
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.plan-price {
  margin-bottom: 16px;
}

.price-val {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.price-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.plan-image {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.plan-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.plan-list-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.plan-features {
  list-style: none;
  font-size: 0.85rem;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.plan-features li.highlight-item {
  font-weight: 700;
  color: var(--primary);
}

.plan-features li.highlight-item::before {
  color: var(--primary);
}

.plan-footer {
  padding: 24px;
  border-top: 1px solid rgba(62, 109, 88, 0.05);
}

.plan-footer .btn {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Standalone & Options */
.standalone-plans-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 48px;
  margin-top: 48px;
}

.standalone-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.standalone-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

.standalone-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.standalone-cards-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.standalone-card {
  background-color: var(--bg-white);
  border: 1px solid rgba(62, 109, 88, 0.12);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.standalone-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.standalone-card h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.standalone-card-body {
  margin-bottom: 24px;
  flex-grow: 1;
}

.standalone-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.standalone-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.standalone-card-desc span {
  display: inline-block;
}

.standalone-card p strong {
  font-family: var(--font-en);
  font-size: 1.55rem;
  color: var(--primary);
}

.standalone-card-footer {
  margin-top: auto;
}

.standalone-card-footer .btn {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Flow Section */
.flow-steps {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 20px;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 39px;
  bottom: 10px;
  width: 2px;
  background-color: rgba(62, 109, 88, 0.15);
}

.flow-step {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

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

.flow-num-col {
  flex-shrink: 0;
  width: 80px;
}

.flow-num {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px rgba(62, 109, 88, 0.15);
  position: relative;
  z-index: 2;
}

.flow-content-col {
  flex-grow: 1;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: var(--transition);
}

.flow-step:hover .flow-content-col {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.flow-content-col h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.flow-content-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.flow-step-image {
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 480px;
}

.flow-img {
  width: 100%;
  height: auto;
  display: block;
}

.flow-step-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
  max-width: 640px;
}

.flow-sub-image {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.flow-img-half {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.img-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(44, 53, 49, 0.7);
  color: var(--bg-white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Access Section Updates */
.small-container {
  max-width: 960px !important;
  margin: 0 auto;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid rgba(62, 109, 88, 0.08);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
}

.access-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid rgba(62, 109, 88, 0.05);
}

.access-clinic-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.access-postal {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.access-address {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.access-tel {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(62, 109, 88, 0.1);
  padding-bottom: 24px;
}

.access-tel .phone-link {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--primary);
  margin-left: 8px;
}

.access-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.access-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.feature-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Access Details Grid & Photo Card */
.access-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.access-photo-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(62, 109, 88, 0.08);
}

.access-btn-wrapper {
  margin-top: 32px;
}

.access-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  font-weight: 700;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  background-color: transparent;
  transition: var(--transition);
}

.access-map-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.access-map-btn svg {
  margin-right: 8px;
}

/* CTA Footer Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(154, 27%, 24%) 100%);
  color: var(--bg-white);
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.btn-tel-cta {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--bg-white);
  transition: var(--transition);
}

.btn-tel-cta:hover {
  color: var(--accent);
}

.cta-tel-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.cta-tel-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 0;
  font-size: 0.85rem;
}

.footer-logo {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Interactive Modal */
.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 53, 49, 0.7);
  backdrop-filter: blur(8px);
}

.modal-wrapper {
  position: relative;
  background-color: var(--bg-light);
  width: 94%;
  max-width: 900px;
  height: 88vh;
  max-height: 800px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
}

.name-flex-container {
  display: flex;
  gap: 12px;
  width: 100%;
}

.booking-modal.active .modal-wrapper {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 30;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* Modal Progress */
.modal-progress {
  display: flex;
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(62, 109, 88, 0.1);
  padding: 24px 40px;
}

.progress-step {
  flex-grow: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  position: relative;
}

.progress-step::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--transition);
}

.progress-step.active {
  color: var(--primary);
  font-weight: 700;
}

.progress-step.active::after {
  background-color: var(--primary);
}

/* Modal Body Layout */
.modal-body-layout {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  height: 0;
}

.modal-main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px;
  background-color: var(--bg-white);
}

.modal-sidebar-calc {
  width: 320px;
  background-color: var(--bg-light);
  border-left: 1px solid rgba(62, 109, 88, 0.1);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Sidebar Calculator */
.sidebar-calc-header {
  padding: 24px;
  background-color: var(--primary-bg);
  border-bottom: 1px solid rgba(62, 109, 88, 0.1);
}

.sidebar-calc-header h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-calc-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.calc-section {
  margin-bottom: 24px;
}

.calc-section h5 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(62, 109, 88, 0.08);
  padding-bottom: 6px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.calc-options-list {
  list-style: none;
  font-size: 0.85rem;
}

.calc-options-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.calc-options-list li .empty-msg {
  color: var(--text-muted);
  font-style: italic;
}

.calc-option-remove {
  color: red;
  cursor: pointer;
  margin-left: 5px;
}

.sidebar-calc-footer {
  padding: 24px;
  background-color: var(--bg-white);
  border-top: 1px solid rgba(62, 109, 88, 0.1);
}

.total-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.total-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.total-val-box {
  display: flex;
  align-items: baseline;
  color: var(--primary);
}

.total-val {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
}

.total-unit {
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 4px;
}

.modal-nav-buttons {
  display: flex;
  gap: 12px;
}

.modal-nav-buttons button {
  flex-grow: 1;
}

/* Step Panes */
.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}

.pane-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.pane-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.highlight-text {
  color: var(--accent);
  font-weight: 500;
}

/* Step 1: Radio Card Grid */
.radio-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-card-body {
  background-color: var(--bg-white);
  border: 2px solid rgba(62, 109, 88, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.radio-card input[type="radio"]:checked + .radio-card-body {
  border-color: var(--primary);
  background-color: var(--primary-bg);
  box-shadow: 0 6px 18px rgba(62, 109, 88, 0.16);
  transform: translateY(-2px);
}

.radio-card input[type="radio"]:checked + .radio-card-body::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(62, 109, 88, 0.3);
}

.radio-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--bg-light);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.radio-badge.highlight {
  background-color: var(--accent-light);
  color: var(--accent);
}

.radio-badge.premium {
  background-color: var(--text-dark);
  color: var(--bg-white);
}

.radio-badge.outline {
  border: 1px solid var(--primary-light);
  color: var(--primary);
  background-color: transparent;
}

.radio-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.radio-price {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.radio-price small {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.radio-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Step 2: Options UI */
.option-category-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.opt-cat-title {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(62, 109, 88, 0.15);
  padding-bottom: 8px;
}

.options-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  background-color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 109, 88, 0.08);
  transition: var(--transition);
}

.checkbox-option:hover {
  border-color: var(--primary-light);
}

.checkbox-option input[type="checkbox"] {
  margin-top: 6px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.chk-desc {
  flex-grow: 1;
}

.chk-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.chk-price {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent);
  margin-left: 12px;
  white-space: nowrap;
  display: inline-block;
}

.chk-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Step 3: Input Grid */
.input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.date-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.booking-time-note {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 500;
  background-color: rgba(62, 109, 88, 0.05);
  border: 1px solid rgba(62, 109, 88, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group.full-width {
  grid-column: span 2;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.required {
  color: red;
  margin-left: 2px;
}

.input-group input, .input-group select, .input-group textarea {
  font-family: var(--font-jp);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 109, 88, 0.2);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 109, 88, 0.1);
}

.dob-select-container {
  display: flex;
  gap: 8px;
}

.dob-select-container select {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

/* Step 4: Success Details */
.success-icon-wrapper {
  width: 72px;
  height: 72px;
  background-color: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

.success-title {
  margin-bottom: 16px;
}

.success-summary {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto 24px;
}

.final-invoice {
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 109, 88, 0.1);
  padding: 20px;
  margin-top: 20px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(62, 109, 88, 0.05);
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--primary);
}

.invoice-val-total {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.success-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* Animation Utilities (Intersection Observer triggers) */
.scroll-reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
  transform: translateY(30px);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .map-container iframe {
    height: 300px;
  }
  .access-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .access-card {
    padding: 24px 20px;
  }
  .access-clinic-name {
    font-size: 1.2rem;
  }
  .access-address {
    font-size: 1.1rem;
  }
  .access-tel {
    font-size: 1rem;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
  .access-tel .phone-link {
    font-size: 1.3rem;
  }
  .access-feature-item {
    gap: 12px;
  }
  .feature-icon-circle {
    width: 38px;
    height: 38px;
  }
  .feature-icon-circle svg {
    width: 18px;
    height: 18px;
  }
  .access-photo-img {
    height: 220px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact desktop header for screen widths 1024px to 1320px to prevent wrapping/crowding */
@media (max-width: 1320px) and (min-width: 1024px) {
  .header-container {
    padding: 0 16px;
  }
  .logo-main {
    font-size: 1.1rem;
  }
  .logo-sub {
    font-size: 0.68rem;
  }
  .nav-list {
    gap: 12px;
  }
  .nav-list a {
    font-size: 0.85rem;
  }
  .nav-list .btn-nav-back {
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 18px;
  }
  .nav-list .btn-nav-back::after {
    left: 12px;
    bottom: 5px;
  }
  .nav-list .btn-nav-back:hover::after {
    width: calc(100% - 24px) !important;
  }
  .nav-list .btn-nav-home {
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 18px;
  }
  .nav-list .btn-nav-home::after {
    left: 12px;
    bottom: 5px;
  }
  .nav-list .btn-nav-home:hover::after {
    width: calc(100% - 24px) !important;
  }
  .header-cta {
    gap: 10px;
  }
  .btn-tel-header {
    font-size: 1.0rem;
    gap: 4px;
  }
  .btn-tel-header svg {
    width: 14px;
    height: 14px;
  }
  .header-cta .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1120px) and (min-width: 1024px) {
  .logo-sub {
    display: none;
  }
}

/* Mobile Menu layout triggers at 1023px and below */
@media (max-width: 1023px) {
  .sp-only {
    display: inline !important;
  }
  .pc-only {
    display: none !important;
  }
  .logo-main {
    font-size: 0.9rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .logo-sub {
    font-size: 0.625rem;
    margin-top: 1px;
    letter-spacing: -0.01em;
  }
  .header-container {
    padding: 0 12px;
  }
  .header-cta .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .site-header {
    height: 70px;
  }
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 24px;
    z-index: 99;
    border-top: 1px solid rgba(62, 109, 88, 0.08);
  }
  .site-nav.active {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-list {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .header-cta .btn-tel-header {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline !important;
  }
  body {
    font-size: 15px;
  }
  .feature-card-title {
    font-size: 1.05rem;
    line-height: 1.4;
  }
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .hero-section {
    height: auto;
    padding: 120px 0 80px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-lead {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .hero-lead-sub {
    font-size: 0.95rem;
    display: inline-block;
    white-space: nowrap;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pain-section {
    margin-top: 0;
    padding-top: 40px;
  }
  .pain-card {
    padding: 32px 20px;
  }
  .pain-card .section-title {
    font-size: 1.4rem;
  }
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pain-item {
    gap: 12px;
  }
  .pain-icon {
    width: 36px;
    height: 36px;
  }
  .pain-icon svg {
    width: 18px;
    height: 18px;
  }
  .pain-text {
    font-size: 0.84rem;
    line-height: 1.5;
    padding-top: 2px;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-card {
    margin-bottom: 8px;
  }
  .plan-header {
    padding: 8px 12px 6px 12px;
  }
  .plan-name {
    font-size: 1.15rem;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  .price-val {
    font-size: 1.65rem;
  }
  .plan-price {
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.1;
  }
  .plan-badge, .plan-badge-highlight, .plan-badge-premium {
    margin-bottom: 6px;
    padding: 2px 8px;
    font-size: 0.65rem;
  }
  .plan-sub {
    font-size: 0.65rem;
  }
  .plan-image {
    display: block;
    height: 150px;
  }
  .plan-body {
    padding: 8px 12px;
  }
  .plan-desc {
    font-size: 0.75rem;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  .plan-list-title {
    font-size: 0.75rem;
    margin-bottom: 4px;
    font-weight: 700;
  }
  .plan-features {
    font-size: 0.75rem;
  }
  .plan-features li {
    padding-left: 16px;
    margin-bottom: 2px;
  }
  .plan-footer {
    padding: 6px 12px 8px 12px;
  }
  .plan-footer .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .standalone-plans-container {
    padding: 32px 16px;
    margin-top: 32px;
  }
  .standalone-cards,
  .standalone-cards-2col {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .standalone-card {
    padding: 20px 16px;
    max-width: 480px;
    width: 100%;
  }
  .standalone-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }
  .standalone-card p {
    font-size: 0.85rem;
  }
  .standalone-card p strong {
    font-size: 1.65rem;
  }
  .standalone-card-desc {
    font-size: 0.75rem;
  }
  .flow-steps::before {
    left: 19px;
  }
  .flow-num-col {
    width: 40px;
  }
  .flow-num {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    box-shadow: 0 0 0 4px rgba(62, 109, 88, 0.15);
  }
  .flow-step-images {
    grid-template-columns: 1fr;
  }
  .flow-img-half {
    height: 140px;
  }
  
  /* Modal responsive */
  .modal-wrapper {
    height: 90vh;
    max-height: none;
  }
  .modal-progress {
    padding: 12px 10px;
  }
  .progress-step {
    font-size: 0.8rem;
  }
  .progress-step::after {
    bottom: -12px;
  }
  .modal-body-layout {
    flex-direction: column;
    flex-grow: 1;
    height: 0 !important; /* Force flex constraint for iOS scrollability */
    min-height: 0;
    overflow: hidden;
  }
  
  .name-flex-container {
    flex-direction: column;
    gap: 8px;
  }

  .dob-select-container {
    gap: 4px;
  }

  .input-group input, .input-group select, .input-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .modal-main-content {
    padding: 16px;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  .checkbox-option {
    padding: 10px 12px;
    gap: 8px;
  }
  br.mobile-only + .chk-price {
    margin-left: 0;
    margin-top: 4px;
    display: inline-block;
  }
  .options-checklist {
    gap: 8px;
  }
  .option-category-box {
    padding: 14px;
    margin-bottom: 14px;
  }
  .opt-cat-title {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  .pane-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  .pane-subtitle {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  .modal-sidebar-calc {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid rgba(62, 109, 88, 0.1);
    background-color: var(--bg-white);
  }
  .modal-sidebar-calc .sidebar-calc-header,
  .modal-sidebar-calc .sidebar-calc-body {
    display: none;
  }
  .sidebar-calc-footer {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background-color: var(--bg-white);
    box-shadow: 0 -4px 12px rgba(62, 109, 88, 0.06);
  }
  .total-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .total-label {
    margin-bottom: 0;
  }
  .total-val {
    font-size: 1.6rem;
  }
  .modal-nav-buttons {
    gap: 12px;
  }
  .modal-nav-buttons button {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .radio-card-grid {
    grid-template-columns: 1fr;
  }
  .input-grid,
  .date-input-grid {
    grid-template-columns: 1fr;
  }
  .input-group.full-width {
    grid-column: span 1;
  }
  .booking-time-note {
    margin-top: 12px !important;
    margin-bottom: 16px;
    padding: 10px 14px;
  }
}

/* ==========================================
   7. Tumor Accordion Styles (Interactive Checkbox List)
   ========================================== */
.checkbox-option-accordion {
  margin-bottom: 16px;
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 109, 88, 0.08);
  overflow: hidden;
  transition: var(--transition);
}

.checkbox-option-accordion:hover {
  border-color: var(--primary-light);
}

.tumor-accordion {
  width: 100%;
}

.accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  cursor: pointer;
  background-color: var(--bg-light);
  border: 1px solid rgba(62, 109, 88, 0.15);
  border-radius: var(--radius-sm);
  list-style: none; /* Hide default arrow */
  transition: var(--transition);
}

.accordion-summary:hover {
  background-color: var(--primary-bg);
  border-color: var(--primary);
}

.accordion-summary::-webkit-details-marker {
  display: none; /* Hide Safari arrow */
}

/* Custom interactive toggle button */
.accordion-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  border: 1px solid var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-toggle-btn .toggle-text::after {
  content: 'を表示 ＋';
}

.accordion-summary:hover .accordion-toggle-btn {
  background-color: var(--primary);
  color: var(--bg-white);
}

details[open] {
  border: 1px solid rgba(62, 109, 88, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

details[open] .accordion-summary {
  border: none;
  border-bottom: 1px dashed rgba(62, 109, 88, 0.15);
  background-color: var(--bg-light);
}

details[open] .accordion-toggle-btn {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

details[open] .accordion-toggle-btn .toggle-text::after {
  content: 'を閉じる －';
}

details[open] .accordion-summary:hover .accordion-toggle-btn {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.accordion-content {
  padding: 20px 24px;
  background-color: var(--bg-white);
}

.tumor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 20px;
}

.tumor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  background-color: var(--bg-light);
  border-radius: 6px;
  border: 1px solid rgba(62, 109, 88, 0.05);
  transition: var(--transition);
}

.tumor-item:hover {
  border-color: var(--primary-light);
  background-color: var(--primary-bg);
}

.tumor-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.tumor-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.tumor-name small {
  display: block;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .tumor-grid {
    grid-template-columns: 1fr;
  }
  .accordion-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .accordion-toggle-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .note-legal-items {
    font-size: 0.82rem;
    letter-spacing: -0.01em;
  }
}

/* ==========================================
   8. Preview Password Gate Styles
   ========================================== */
.password-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 53, 49, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.5s ease;
}

.password-gate-card {
  background-color: var(--bg-light);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(62, 109, 88, 0.1);
  box-sizing: border-box;
}

.password-gate-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.password-gate-card h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
  font-family: var(--font-jp);
}

.password-gate-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.password-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.password-input-wrapper input {
  flex-grow: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 109, 88, 0.2);
  outline: none;
  font-size: 1rem;
  font-family: var(--font-jp);
  box-sizing: border-box;
}

.password-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 109, 88, 0.1);
}

.password-input-wrapper button {
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-jp);
  transition: var(--transition);
  white-space: nowrap;
}

.password-input-wrapper button:hover {
  background-color: var(--primary-light);
}

.password-error-msg {
  color: #d93025;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 20px;
  margin-top: 8px;
}

.password-gate-shake {
  animation: gateShake 0.4s ease;
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@media (max-width: 480px) {
  .password-gate-card {
    padding: 30px 20px;
  }
  .password-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .password-input-wrapper button {
    width: 100%;
    padding: 14px;
  }
}

/* Custom styling for Flatpickr (Blue for available, Red for unavailable) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #c97d7d !important;       /* Muted red/gray text */
  background: #f2f2f2 !important;  /* Grayed out background */
  cursor: not-allowed !important;
  opacity: 0.55;                   /* Lower opacity for grayed-out effect */
  font-weight: normal !important;
}

.flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay) {
  color: #2b5c8f !important;       /* Medical/Deep Blue for available dates */
  font-weight: 700 !important;
}

.flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay):hover {
  background-color: #eaf2fb !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

/* Custom error styles for validation */
.input-error-border {
  border-color: #ea5455 !important;
  box-shadow: 0 0 0 2px rgba(234, 84, 85, 0.2) !important;
}

.input-error-msg {
  color: #ea5455;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 4px;
  display: block;
  animation: slideDownFade 0.2s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
