:root {
  /* 医療系デザインカラー */
  --primary-color: #FF4DA6;
  --primary-dark: #E63C93;
  --secondary-color: #B38FFF;
  --accent-color: #9FE6F5;
  --text-dark: #333333;
  --text-black: #000000;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  /* 医療系の安心感を演出する柔らかい影 */
  --shadow: 0 2px 15px rgba(255, 77, 166, 0.1);
  --shadow-hover: 0 4px 25px rgba(255, 77, 166, 0.15);
  --shadow-soft: 0 1px 10px rgba(0,0,0,0.06);
  --border-radius: 12px;
  /* 医療系フォント */
  --font-medical: 'Kosugi Maru', -apple-system, BlinkMacSystemFont, 'Yu Gothic Medium', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Kosugi Maru', -apple-system, BlinkMacSystemFont, 'Yu Gothic Medium', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  line-height: 1.7; color: var(--text-dark); background: var(--white);
  font-weight: 400;
}
img, video { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { margin-top: clamp(60px, 12vw, 80px); }

/* Header - 医療系の清潔感 */
header {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  position: fixed; inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(255, 77, 166, 0.08);
}
.wrap { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
header strong { font-size: 24px; color: var(--primary-color); font-weight: 700; }
nav { display: flex; gap: 24px; align-items: center; }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color .3s ease; }
nav a:hover { color: var(--primary-color); }

/* Buttons - 医療系の安心感あるボタン */
.btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 14px 32px; border-radius: var(--border-radius);
  text-decoration: none; font-weight: 600; display: inline-block; text-align: center;
  transition: all .3s ease; border: 2px solid transparent;
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.btn:hover { 
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px); 
  box-shadow: var(--shadow-hover); 
}

.line-image-btn { display: inline-block; transition: transform .3s ease; }
.line-image-btn:hover { transform: scale(1.05); }
.line-image-btn img { max-width: 300px; height: auto; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.line-image-btn.large img { max-width: 400px; }
nav .line-image-btn img { max-width: 180px; }
.mobile-line-btn { display: none; }

/* Main: Hero - 医療系の温かみのあるグラデーション */
.hero {
  background: linear-gradient(135deg, rgba(255, 77, 166, 0.85) 0%, rgba(179, 143, 255, 0.85) 100%),
              url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--white); padding: 100px 0; text-align: center; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 77, 166, 0.75) 0%, rgba(179, 143, 255, 0.75) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; text-align: left; }
.hero-content h1 { font-size: 3rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: .95; }
.hero-image img { border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.3); }

/* Sections */
.section { padding: 60px 0; }
.section:nth-child(even) { background: var(--bg-light); }
.section h2 {
  font-size: 2.2rem; color: var(--text-black); margin-bottom: 24px; text-align: center; font-weight: 700;
  position: relative;
  font-family: 'Kosugi Maru', sans-serif;
  letter-spacing: 0.5px;
}
.section h2::after {
  content:""; display:block; width:88px; height:4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius:4px; margin:12px auto 0;
  box-shadow: 0 2px 8px rgba(255, 77, 166, 0.3);
}
.section p {
  font-size: 1.1rem; color: var(--text-light); text-align: center; max-width: 800px; margin: 0 auto 30px; line-height: 1.9;
}
.section--tight { padding-block: 32px; }
.copy-card { background:#fff; border-radius:12px; box-shadow: var(--shadow); padding:20px; margin:16px auto; max-width: 880px; }
.lead { font-size: clamp(16px,2.5vw,18px); line-height:1.9; color:var(--text-dark); }
.divider { height:1px; background:#eaeaea; margin:24px auto; width:min(92%,880px); }

/* Flow - 医療系の優しいカード */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.flow-step { 
  background: var(--white); 
  border-radius: var(--border-radius); 
  box-shadow: var(--shadow-soft); 
  overflow: hidden; 
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(255, 77, 166, 0.08);
}
.flow-step:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 77, 166, 0.2);
}
.flow-image { height: 200px; overflow: hidden; }
.flow-image img { width: 100%; height: 100%; object-fit: cover; }
.flow-content { padding: 24px; text-align: center; }
.step-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white); font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: 20px; display: inline-block; margin-bottom: 12px; 
  letter-spacing: .5px; font-family: 'Kosugi Maru', sans-serif;
  box-shadow: 0 2px 10px rgba(255, 77, 166, 0.25);
}

/* Strengths - 医療系の信頼感あるカード */
.strengths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.strength-item { 
  background: var(--white); 
  padding: 32px 24px; 
  border-radius: var(--border-radius); 
  box-shadow: var(--shadow-soft); 
  text-align: center; 
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(255, 77, 166, 0.06);
  position: relative;
}
.strength-item:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 77, 166, 0.15);
}
.strength-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.strength-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.strength-item h3 { 
  font-size: 1.2rem; 
  font-weight: 600; 
  color: var(--primary-color); 
  margin-bottom: 12px;
  font-family: 'Kosugi Maru', sans-serif;
}
.strength-item p { color: var(--text-light); font-size: 14px; line-height: 1.6; text-align: center; }

/* Lists */
ol, ul { max-width: 600px; margin: 0 auto; padding-left: 0; }
ol li, ul li {
  background: var(--white); margin-bottom: 16px; padding: 20px; border-radius: var(--border-radius);
  box-shadow: var(--shadow); list-style: none; position: relative; font-size: 1.05rem; transition: transform .3s ease; line-height: 1.6;
}
ol li:hover, ul li:hover { transform: translateY(-2px); }
ol li { counter-increment: step-counter; padding-left: 60px; }
ol { counter-reset: step-counter; }
ol li::before {
  content: counter(step-counter); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  background: var(--primary-color); color: var(--white); width: 30px; height: 30px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center; font-weight:700;
}
ul li::before {
  content:'✓'; position:absolute; left:20px; top:50%; transform:translateY(-50%);
  background: var(--primary-color); color:#fff; width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
}
ul li { padding-left: 60px; }

/* Notices - 医療系の注意書き */
.notice {
  background: rgba(159, 230, 245, 0.1); 
  border: 1px solid var(--accent-color); 
  color: #2c6fbb; 
  padding: 16px;
  border-radius: var(--border-radius); 
  margin-top: 24px; 
  font-size: 14px !important; 
  text-align: left !important;
  font-family: 'Kosugi Maru', sans-serif;
}

/* Price */
.price-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.price-table { text-align: center; }
.price-table img { border-radius: var(--border-radius); box-shadow: var(--shadow); }
.price-info { text-align: left; }
.price-note { margin-top: 16px; font-size: 14px; color: var(--text-light); }

/* Certification */
/* 資格証明セクション - PC時 */
.certification-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}
.certification-image {
  text-align: center;
}
.certification-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}
.certification-info h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  font-weight: 600;
}
.certification-info p {
  margin-bottom: 16px;
  text-align: left;
}
.certification-note {
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--border-radius);
  font-style: italic;
  color: var(--text-light);
}

/* 資格証明セクション - スマホ時（画像を大きく縦積み） */
@media (max-width: 768px) {
  .certification-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .certification-image img {
    width: 100%;
    height: auto;
    max-width: none;
  }
  .certification-info {
    text-align: center;
  }
  .certification-info ul {
    text-align: left;
    margin: 0 auto;
    max-width: 90%;
  }
}
/* Access / Map */
.access-content{
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; justify-items: center; margin-top: 40px;
}
.map-container { display: flex; align-items: center; justify-content: center; width: 100%; }
.map-container iframe { width: 100%; max-width: 720px; height: 320px; border: 0; border-radius: var(--border-radius); margin: 0 auto; display: block; }

/* Contact */
#contact { background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%); }
#contact .container { text-align: center; }
#contact .btn { margin: 8px; min-width: 200px; }

/* Footer */
footer { background: var(--text-dark); color: var(--white); padding: 40px 0; }
footer .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 14px; }
.muted { color: #b2bec3; text-decoration: none; font-size: 14px; }
.muted:hover { color: var(--white); }

/* Floating CTA */
.floating-cta{
  position: sticky; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid #eee; padding: 10px 14px;
}
.floating-cta .container { padding: 0; }
.floating-cta .btn { width: 100%; padding: 14px 16px; font-size: 16px; box-shadow: var(--shadow); }

/* Responsive */
@media (max-width: 1024px) {
  .grid { gap: 40px; }
}
@media (max-width: 900px) {
  .access-content { grid-template-columns: 1fr; justify-items: stretch; }
}
@media (max-width: 768px) {
  nav { display: none; }
  header .line-image-btn { display: none !important; } /* 冒頭の乱立防止：SPはヒーローの1つだけ */
  .mobile-line-btn { display: inline-block; }
  .line-image-btn img { max-width: 200px; }
  .line-image-btn.large img { max-width: 280px; }
  nav .line-image-btn img { max-width: 120px; }

  /* Specialized Navigation - Mobile */
  .navigation-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
  }

  .navigation-card {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .navigation-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .navigation-description {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .navigation-features li {
    font-size: 12px;
    margin: 6px 0;
  }

  .navigation-btn {
    padding: 22px 25px;
    font-size: 16px;
    border-radius: 16px;
    margin-top: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    min-height: 70px;
    align-items: center;
  }

  .navigation-btn span {
    flex: 1;
    text-align: left;
    font-weight: 700;
  }

  .btn-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .navigation-footer {
    margin-top: 30px;
    padding-top: 25px;
  }

  .navigation-note {
    font-size: 11px;
    margin-bottom: 15px;
  }

  .general-consultation p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .consultation-btn {
    transform: scale(0.85);
  }

  .consultation-btn:hover {
    transform: scale(0.9);
  }

  .grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero { padding: 56px 0; }
  .hero-content h1 { font-size: clamp(20px, 6vw, 28px); }
  .hero-content p { font-size: 15px; margin-bottom: 20px; }

  .section { padding: 28px 0; }
  .section h2 { font-size: clamp(18px, 5.2vw, 24px); margin-bottom: 16px; }
  .section p { font-size: 15px; margin-bottom: 20px; padding-inline: 4px; }

  .flow-grid { gap: 16px; }
  .flow-image { height: 160px; }
  .flow-content { padding: 16px; }
  .strengths-grid { gap: 16px; }
  .strength-item { padding: 20px 16px; }
  .price-content { grid-template-columns: 1fr; gap: 16px; }
  .map-container iframe { max-width: 100%; height: 300px; }
  .floating-cta { display: block; }
}
@media (min-width: 769px) {
  /* PCでも固定CTAを出す場合はこのブロックを削除 */
  .floating-cta { display: none; }
}

/* Specialized Navigation Section */
.specialized-navigation {
  background: linear-gradient(135deg, rgba(255, 77, 166, 0.02) 0%, rgba(179, 143, 255, 0.02) 100%);
  position: relative;
}

.specialized-navigation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FF4DA6' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: -1;
}

.navigation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

@media (max-width: 900px) {
  .navigation-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 35px 0;
  }
}

.navigation-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 77, 166, 0.1);
}

.navigation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: all 0.3s ease;
}

.pill-navigation::before {
  background: linear-gradient(90deg, #FF4DA6 0%, #E63C93 100%);
}

.diet-navigation::before {
  background: linear-gradient(90deg, #B38FFF 0%, #9775fa 100%);
}

.navigation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 77, 166, 0.2);
}

.navigation-icon {
  text-align: center;
  margin-bottom: 20px;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 77, 166, 0.1) 0%, rgba(179, 143, 255, 0.1) 100%);
  border: 2px solid rgba(255, 77, 166, 0.2);
  transition: all 0.3s ease;
}

.pill-navigation:hover .icon-circle {
  background: linear-gradient(135deg, rgba(255, 77, 166, 0.2) 0%, rgba(230, 60, 147, 0.2) 100%);
  border-color: #FF4DA6;
  transform: scale(1.1);
}

.diet-navigation:hover .icon-circle {
  background: linear-gradient(135deg, rgba(179, 143, 255, 0.2) 0%, rgba(151, 117, 250, 0.2) 100%);
  border-color: #B38FFF;
  transform: scale(1.1);
}

.navigation-content h3 {
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Kosugi Maru', sans-serif;
}

.navigation-description {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.navigation-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.navigation-features li {
  color: var(--text-light);
  font-size: 13px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navigation-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 25px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: 25px;
  font-family: 'Kosugi Maru', sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.pill-btn {
  background: linear-gradient(135deg, #FF4DA6 0%, #E63C93 100%);
  border: 2px solid transparent;
}

.diet-btn {
  background: linear-gradient(135deg, #B38FFF 0%, #9775fa 100%);
  border: 2px solid transparent;
}

.navigation-btn:hover {
  transform: translateY(-3px) translateX(3px);
  box-shadow: 0 8px 30px rgba(255, 77, 166, 0.4);
}

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

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

.diet-btn:hover {
  box-shadow: 0 8px 30px rgba(179, 143, 255, 0.4);
}

.btn-arrow {
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navigation-btn:hover .btn-arrow {
  transform: translateX(5px) scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.navigation-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 77, 166, 0.1);
}

.navigation-note {
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 20px;
}

.general-consultation p {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Kosugi Maru', sans-serif;
}

.consultation-btn {
  display: inline-block;
  transform: scale(0.9);
}

.consultation-btn:hover {
  transform: scale(0.95);
}

/* Motion & hover guard */
@media (hover:none){
  .btn:hover, .flow-step:hover, .line-image-btn:hover { transform:none; box-shadow: var(--shadow); }
  .navigation-card:hover, .navigation-btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}