/* ========================================
   診療案内ページ専用スタイル
   ======================================== */

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 遅延アニメーション用 */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ヒーローセクション */
.medical-hero {
  background: linear-gradient(135deg, #f5f9f0 0%, #e8f5e9 50%, #fff8e1 100%);
  padding: 40px 20px 60px;
  position: relative;
  overflow: hidden;
}

.medical-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 195, 74, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.medical-hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.medical-hero-text {
  flex: 1;
  position: relative;
}

.medical-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #7cb342;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.medical-hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #5a4a2f;
  line-height: 2;
  font-weight: 500;
}

.hero-bear-small {
  width: 100px;
  height: auto;
  margin-top: 20px;
  animation: float 3s ease-in-out infinite;
  object-fit: contain;
}

.medical-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-reception-img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}

/* メッセージセクション */
.medical-message {
  text-align: center;
  padding: 50px 30px;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fafffe 0%, #f8fff0 50%, #fffef5 100%);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(139, 195, 74, 0.1);
}

.message-text {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: #5a4a2f;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.8;
}

.message-text-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: #555;
  margin: 12px 0;
  line-height: 1.9;
}

.message-family {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #7cb342;
  font-weight: 700;
  margin-top: 28px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 100%);
  border-radius: 16px;
  display: inline-block;
  border-left: 4px solid #8bc34a;
  line-height: 1.8;
}

/* 診療内容セクション */
.medical-content-section {
  background: linear-gradient(180deg, #fff 0%, #fce4ec 50%, #fff 100%);
  padding: 60px 0;
}

/* メイン診療ボックス */
.medical-main-box {
  background: #fff;
  border: 3px dashed #f8bbd9;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  position: relative;
}

.medical-category-title {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #5a4a2f;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
}

.medical-category-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8bc34a, #ffc107);
  margin: 10px auto 0;
  border-radius: 2px;
}

.medical-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.medical-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.medical-item-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fff9c4 0%, #fff8e1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medical-item-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.3);
}

.medical-item-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.medical-item-label {
  font-size: 0.85rem;
  color: #5a4a2f;
  font-weight: 600;
  line-height: 1.4;
}

/* アレルギーボックス */
.medical-allergy-box {
  background: #fff;
  border: 3px dashed #f8bbd9;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
}

.allergy-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.allergy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.allergy-item-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.15);
  transition: transform 0.3s ease;
}

.allergy-item-icon:hover {
  transform: translateY(-5px) scale(1.05);
}

.allergy-item-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.allergy-item-label {
  font-size: 0.8rem;
  color: #5a4a2f;
  font-weight: 600;
  line-height: 1.4;
}

/* 肌トラブルボックス */
.medical-skin-box {
  background: #fff;
  border: 3px dashed #f8bbd9;
  border-radius: 20px;
  padding: 30px;
}

.skin-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 450px;
  margin: 0 auto;
}

.skin-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skin-item-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
  transition: transform 0.3s ease;
}

.skin-item-icon:hover {
  transform: translateY(-5px) scale(1.05);
}

.skin-item-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.skin-item-label {
  font-size: 0.8rem;
  color: #5a4a2f;
  font-weight: 600;
  line-height: 1.4;
}

/* こんなこともやっていますセクション */
.medical-extra-section {
  background: linear-gradient(180deg, #fce4ec 0%, #fff 30%, #fff 70%, #e8f5e9 100%);
  padding: 60px 0;
  text-align: center;
}

.extra-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.extra-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: #5a4a2f;
  font-weight: 700;
}

.extra-title-deco {
  font-size: 1.5rem;
  color: #8bc34a;
  font-weight: 700;
}

.extra-bear-img {
  width: 256px;
  height: auto;
  margin: 20px auto;
  display: block;
  object-fit: contain;
}

.extra-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 30px auto 0;
}

.extra-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extra-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.extra-item-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.extra-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.extra-item-label {
  font-size: 0.8rem;
  color: #5a4a2f;
  font-weight: 600;
  line-height: 1.5;
}

/* フローティングアニメーション */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .medical-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .medical-hero-text {
    order: 1;
  }

  .medical-hero-image {
    order: 2;
  }

  .hero-reception-img {
    max-height: 180px;
  }

  .hero-bear-small {
    width: 80px;
    margin: 15px auto 0;
    display: block;
    position: relative;
    z-index: 1;
  }

  .medical-items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .medical-item-icon {
    width: 65px;
    height: 65px;
  }

  .medical-item-icon img {
    width: 40px;
    height: 40px;
  }

  .allergy-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .skin-items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .extra-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .extra-item {
    padding: 15px 10px;
  }

  .extra-item-image {
    width: 60px;
    height: 60px;
  }

  .medical-main-box,
  .medical-allergy-box,
  .medical-skin-box {
    padding: 20px 15px;
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .medical-hero {
    padding: 30px 15px 40px;
  }

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

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

  .allergy-item-icon,
  .skin-item-icon {
    width: 60px;
    height: 60px;
  }

  .allergy-item-icon img,
  .skin-item-icon img {
    width: 38px;
    height: 38px;
  }

  .medical-message {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .message-text {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .message-text-sub {
    font-size: 0.9rem;
  }

  .message-family {
    padding: 16px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .hero-bear-small {
    width: 70px;
    display: block;
    visibility: visible;
    opacity: 1;
  }
}
