/* リセットCSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 基本スタイル */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* コンテナ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* サイトコンテナ */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ヘッダー */
.site-header {
  position: relative;
  background: linear-gradient(to bottom, #e0f2fe, #bae6fd);
  padding-top: 2rem;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, transparent 0%, transparent 50%, rgba(255,255,255,0.3) 51%, rgba(255,255,255,0.3) 52%, transparent 53%);
  background-size: 120% 120%;
  background-position: center;
  opacity: 0.7;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 1.5rem;
}

.header-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #1e3a8a;
}

.header-subtitle {
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.header-title-wrapper {
  position: relative;
  display: inline-block;
}

.header-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .header-title {
    font-size: 3rem;
  }
}

.header-subtitle-large {
  font-size: 1.875rem;
  font-weight: 900;
  color: #111827;
}

@media (min-width: 768px) {
  .header-subtitle-large {
    font-size: 2.25rem;
  }
}

.header-badge {
  position: absolute;
  top: -1.5rem;
  right: -4rem;
  background-color: #38bdf8;
  color: white;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: bold;
  transform: rotate(12deg);
  line-height: 1.2;
  text-align: center;
}

.header-image {
  margin-top: 1rem;
}

.header-image img {
  height: 6rem;
  display: inline-block;
}

/* 特徴アイコン */
.feature-icons {
  background-color: #111827;
  color: white;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.5rem;
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-icon {
  background-color: #eab308;
  border-radius: 9999px;
  padding: 0.5rem;
  margin-bottom: 0.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  font-size: 0.75rem;
  line-height: 1.2;
}

.highlight {
  color: #eab308;
  font-weight: bold;
}

/* トップクリニックセクション */
.top-clinics-section {
  background: linear-gradient(to bottom, #bae6fd, #7dd3fc);
  padding: 2rem 0 4rem;
  position: relative;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background-color: white;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-badge {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0284c7;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.section-title-group {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title-text {
  font-size: 1.25rem;
  font-weight: bold;
}

.section-title-highlight {
  font-size: 3rem;
  font-weight: 900;
  color: #eab308;
  margin: 0 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* クリニックカード */
.clinic-ranking {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.clinic-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clinic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.clinic-card-grid {
  display: grid;
  grid-template-columns: 1fr 3fr 8fr;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: bold;
  font-size: 1.125rem;
  color: white;
}

.rank-1 {
  background-color: #eab308;
}

.rank-2 {
  background-color: #6b7280;
}

.rank-3 {
  background-color: #9ca3af;
}

.clinic-logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e5e7eb;
}

.clinic-logo img {
  max-height: 4rem;
  object-fit: contain;
}

.clinic-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-item {
  border-right: 1px solid #e5e7eb;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.info-item:last-child {
  border-right: none;
}

.info-label {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.rating-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.clinic-card:hover .rating-circle {
  transform: scale(1.05);
}

.rating-excellent {
  background-color: #ef4444;
}

.rating-good {
  background-color: #eab308;
}

.rating-great {
  background-color: #10b981;
}

.rating-text {
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.price-text {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  text-align: center;
  line-height: 1.2;
}

.clinic-tagline {
  background-color: #f3f4f6;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.clinic-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.btn-detail {
  background-color: #1f2937;
  color: white;
}

.btn-detail:hover {
  background-color: #111827;
}

.btn-official {
  background-color: #dc2626;
  color: white;
}

.btn-official:hover {
  background-color: #b91c1c;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.5rem 1rem;
  font-size: 1.125rem;
}

/* クリニック選びの落とし穴セクション */
.clinic-warning-section {
  background-color: #1f2937;
  color: white;
  padding: 3rem 0;
  position: relative;
}

.clinic-warning-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ef4444, #eab308, #38bdf8);
}

.warning-content {
  max-width: 800px;
  margin: 0 auto;
}

.warning-header {
  text-align: center;
  margin-bottom: 2rem;
}

.warning-subtitle {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.warning-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.warning-highlight {
  font-size: 1.875rem;
  font-weight: bold;
  color: #facc15;
}

.warning-text {
  margin-bottom: 1.5rem;
}

.warning-text p {
  margin-bottom: 1rem;
}

.text-danger {
  color: #f87171;
  font-weight: bold;
}

.text-bold {
  font-weight: bold;
}

.highlight-box {
  background-color: #facc15;
  color: #1f2937;
  font-weight: bold;
  padding: 0 0.25rem;
}

.price-comparison {
  background-color: white;
  color: #111827;
  border: 2px solid #374151;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: #dc2626;
  margin-bottom: 1.5rem;
}

.clinic-comparison {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

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

.price-tag {
  background-color: #1f2937;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.clinic-building {
  height: 6rem;
  width: 5rem;
  margin: 0 auto;
  border: 2px solid #1f2937;
  position: relative;
  background-color: white;
  transition: transform 0.3s ease;
}

.clinic-item:hover .clinic-building {
  transform: translateY(-5px);
}

.building-a .windows {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.building-a .window {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #7dd3fc;
}

.building-a .door {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  width: 2rem;
  height: 2.5rem;
  background-color: #7dd3fc;
  border: 1px solid #1f2937;
}

.building-b .windows {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.building-b .window-row {
  width: 4rem;
  height: 0.75rem;
  background-color: #7dd3fc;
  border: 1px solid #1f2937;
}

.building-c .window-side {
  position: absolute;
  right: 0.5rem;
  top: 2rem;
  width: 2.5rem;
  height: 1.5rem;
  background-color: #7dd3fc;
  border: 1px solid #1f2937;
}

.building-c .door {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  width: 2rem;
  height: 2.5rem;
  background-color: #7dd3fc;
  border: 1px solid #1f2937;
}

.clinic-name {
  margin-top: 0.5rem;
  font-weight: bold;
}

.important-point {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.important-point::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/placeholder.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.point-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
}

.point-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.point-period {
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.point-period span {
  font-size: 1.25rem;
  font-weight: bold;
}

.point-conclusion {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ef4444;
}

/* 比較表セクション */
.comparison-section {
  padding: 3rem 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  background-color: #e0f2fe;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #d1d5db;
  padding: 1rem;
}

.comparison-table th {
  background-color: #e0f2fe;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}

.comparison-table td {
  font-size: 0.875rem;
}

.table-clinic {
  display: flex;
  align-items: center;
}

.table-rank {
  background-color: #eab308;
  color: white;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
}

.table-rank.rank-2 {
  background-color: #6b7280;
}

.table-rank.rank-3 {
  background-color: #9ca3af;
}

.table-clinic-name {
  font-weight: bold;
}

.table-rating {
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

.table-rating i {
  color: #f59e0b;
  font-size: 0.75rem;
}

.table-rating span {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.table-rating-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.table-rating-circle p {
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.table-rating-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.table-price {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.treatment-list {
  list-style-type: disc;
  list-style-position: inside;
  font-size: 0.75rem;
}

.table-feature {
  font-size: 0.75rem;
}

/* クリニック詳細カード */
.clinic-detail-blocks {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.clinic-detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  scroll-margin-top: 5rem;
  transition: box-shadow 0.2s ease;
}

.clinic-detail-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
  background-color: #f3f4f6;
  padding: 1rem;
}

.medal-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.medal-badge {
  position: relative;
}

.medal-circle {
  width: 4rem;
  height: 4rem;
  background-color: #eab308;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.medal-ribbon {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 2rem;
  height: 2rem;
  background-color: #eab308;
  border-radius: 9999px;
  transform: rotate(45deg);
}

.medal-silver {
  background-color: #6b7280;
}

.medal-bronze {
  background-color: #9ca3af;
}

.clinic-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0284c7;
}

.clinic-stars {
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

.clinic-stars i {
  color: #f59e0b;
}

.rating-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ef4444;
  margin-left: 0.5rem;
}

.clinic-logo-large {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background-color: white;
}

.clinic-logo-large img {
  height: 10rem;
  object-fit: contain;
}

.clinic-details {
  border-top: 1px solid #e5e7eb;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table td {
  border: 1px solid #e5e7eb;
  padding: 1rem;
}

.detail-label {
  background-color: #e0f2fe;
  text-align: center;
  font-weight: bold;
  width: 33.333333%;
}

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

.detail-free {
  color: #ef4444;
  font-weight: bold;
}

.detail-notes {
  padding: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.detail-highlight {
  padding: 1.5rem;
}

.highlight-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta-button {
  padding: 1rem;
  background-color: #f3f4f6;
}

/* FAQ セクション */
.faq-section {
  padding: 3rem 0;
  background-color: #f9fafb;
}

.faq-accordion {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.faq-item:hover {
  background-color: rgba(240, 249, 255, 0.5);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
  display: none;
}

.faq-question.active + .faq-answer {
  display: block;
}

/* お問い合わせフォーム */
.contact-section {
  padding: 3rem 0;
  background-color: white;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.required-mark {
  color: #ef4444;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  width: 100%;
  transition: box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-submit {
  text-align: center;
  margin-top: 0.5rem;
}

/* フッター */
.site-footer {
  background-color: #111827;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-about p {
  color: #d1d5db;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(0.25rem);
}

.footer-links i {
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

.footer-disclaimer p {
  color: #d1d5db;
  font-size: 0.875rem;
}

.footer-copyright {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}