/* 症状案内ページ・外来ページの症状リンク共通スタイル */
.symptom-links {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 2.5rem 1rem;
  text-align: center;
  background: #fffaf5;
}

.symptom-links h2 {
  margin: 0 0 1.5rem;
  color: #d86d16;
  font-size: 1.65rem;
}

.symptom-department-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(820px, 100%);
  margin: 0 auto;
}

.symptom-department {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  min-height: 150px;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  text-align: left;
  background: #fff;
  border: 1px solid #f2c9a9;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(112, 67, 30, .08);
}

.symptom-department-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.symptom-department-icon img {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
}

.symptom-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.symptom-text-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .65rem 1rem;
  box-sizing: border-box;
  color: #6f390d;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  background: #fff8f0;
  border: 1px solid #efb57f;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.symptom-text-links a:hover,
.symptom-text-links a:focus-visible {
  transform: translateY(-3px);
  border-color: #ef7a00;
  box-shadow: 0 7px 18px rgba(112, 67, 30, .14);
}

.symptom-page {
  color: #333;
  background: #fff;
}

.symptom-page .symptom-hero,
.symptom-page .symptom-content,
.symptom-page .symptom-navigation {
  width: min(920px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.symptom-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.symptom-hero .section-en {
  display: block;
  margin: .5rem 0 .25rem;
  color: #ef7a00;
  font-weight: 700;
  letter-spacing: .08em;
}

.symptom-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.4;
}

.symptom-content {
  padding-bottom: 3rem;
  line-height: 1.95;
  text-align: left;
}

.symptom-content > p:first-child {
  font-size: 1.08rem;
}

.symptom-content section {
  margin: 2.2rem 0;
}

.symptom-content h2 {
  margin: 0 0 1rem;
  padding: .65rem 1rem;
  color: #9c4d0e;
  font-size: 1.35rem;
  text-align: center;
  background: #fff2e5;
  border-bottom: 3px solid #ef7a00;
}

.symptom-content h3 {
  margin: 1.6rem 0 .45rem;
  color: #b65b13;
  font-size: 1.14rem;
  text-align: left;
}

.symptom-content p {
  margin: .65rem 0;
}

.symptom-alert {
  padding: 1.4rem 1.5rem;
  box-sizing: border-box;
  text-align: left;
  background: #fff4f1;
  border: 2px solid #e46b55;
  border-radius: 12px;
}

.symptom-content .symptom-alert {
  width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.symptom-alert h2 {
  color: #a93425;
  background: transparent;
  border-bottom-color: #d9533f;
}

.symptom-alert ul {
  width: auto;
  max-width: 100%;
  margin: 1rem 0;
  padding-left: 1.6rem;
  text-align: left;
  list-style-position: outside;
}

.symptom-alert li {
  margin: .45rem 0;
  padding-left: .25rem;
  line-height: 1.75;
}

.symptom-alert strong {
  color: #a93425;
}

.symptom-check-image {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 1.2rem auto;
  border: 1px solid #f0d4bf;
  border-radius: 14px;
}

.symptom-summary {
  padding: 1.3rem 1.5rem;
  background: #f7faf7;
  border-radius: 12px;
}

.symptom-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 0 4rem;
}

.symptom-navigation a {
  display: inline-block;
  padding: .75rem 1.2rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: #ef7a00;
  border-radius: 6px;
}

@media (max-width: 800px) {
  .symptom-department {
    grid-template-columns: 140px 1fr;
  }

  .symptom-department-icon {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .symptom-links {
    padding: 2rem .8rem;
  }

  .symptom-department {
    grid-template-columns: 92px 1fr;
    min-height: 130px;
    padding: .8rem;
  }

  .symptom-department-icon img {
    width: 72px;
    height: 72px;
  }

  .symptom-text-links {
    gap: .5rem;
  }

  .symptom-text-links a {
    width: 100%;
    min-height: 44px;
    padding: .55rem .7rem;
    font-size: .9rem;
  }

  .symptom-alert,
  .symptom-summary {
    padding: 1rem;
  }
}
