@charset "UTF-8";

/* ========================================

  ナイス！介護
  /assets/css/drill-link.css
  Styles for drill-link prefecture page description sections

======================================== */

/* Drill Link Description Container
---------------------------------------- */
.drill-link-description {
  max-width: 1180px;
  margin: 40px auto;
  width: 95%;
  padding: 20px;
}


/* Drill Link Section
---------------------------------------- */
.drill-link-section {
  margin-bottom: 40px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  padding: 30px;
}



/* Section Content
---------------------------------------- */
.drill-link-section .section-content {
  line-height: 1.8;
  color: #333;
}

.drill-link-section .section-content p {
  margin-bottom: 1em;
  font-size: 1em;
  text-align: left;
  font-weight: normal;
}

.drill-link-section .section-content p:last-of-type:not(.source-citation) {
  margin-bottom: 1em;
}

.drill-link-section .section-content a {
  color: #0073e6;
  text-decoration: underline;
}

.drill-link-section .section-content a:hover {
  color: #005bb5;
  text-decoration: underline;
}

/* Lists for links (Section 3)
---------------------------------------- */
.drill-link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.drill-link-list li {
  margin: 0;
}

.drill-link-divider {
  height: 1px;
  background-color: #ddd;
  margin: 1.5em 0;
  border: none;
}


/* Source Citation
---------------------------------------- */
.drill-link-section .section-content .source-citation {
  margin-top: 1.5em;
  margin-bottom: 0;
  font-size: 0.9em;
  color: #666;
  text-align: left;
  line-height: 1.6;
  font-weight: normal;
}

/* FAQ Styles (Section 2)
---------------------------------------- */
.drill-link-section.section-2 .faq-item {
  margin-bottom: 1.5em;
}

.drill-link-section.section-2 .faq-item:last-child {
  margin-bottom: 0;
}

.drill-link-section.section-2 .faq-question {
  margin-bottom: 0.8em;
  font-weight: bold;
  color: #333;
}

.drill-link-section.section-2 .faq-answer {
  margin-bottom: 0;
  color: #333;
  line-height: 1.8;
}

.drill-link-section.section-2 .faq-divider {
  height: 1px;
  background-color: #ddd;
  margin: 1.5em 0;
  border: none;
}

.drill-link-section.section-2 .faq-divider:last-child {
  display: none;
}

/* Section-specific styles can be added here when needed */

/* Hide empty placeholder sections
---------------------------------------- */
.drill-link-section.section-2:empty,
.drill-link-section.section-3:empty {
  display: none;
}

.drill-link-section.section-2:has(> :only-child.comment),
.drill-link-section.section-3:has(> :only-child.comment) {
  display: none;
}

/* Section Title
---------------------------------------- */
.drill-link-section .section-title {
  font-size: 1.78em;
  font-weight: bold;
  /* letter-spacing: 0.1em; */
  text-align: center;
  padding: 0;
  margin: 0 0 30px 0;
  color: #333;
}

@media screen and (max-width: 750px) {
  .drill-link-description {
    width: 90%;
    margin: 0 auto;
    padding: 0 10px;
  }
  .drilllink .page_title {
    margin-bottom: 14px;
  }
  .drilllink .footer {
    margin-top: -2rem;
  }
  .drilllink .footer > .drill-link-description:first-child {
    padding-top: 30px;
  }
  .drilllink .footer_inner {
    padding-top: 0em;
  }
  .drill-link-section {
    margin-bottom: 30px;
  }
  .drill-link-section h3 {
    font-size: 1.14em !important;
    margin: 0 0 20px 0;
  }
  .drill-link-section .section-content .source-citation {
    font-size: 0.85em;
    margin-top: 1.2em;
  }
  .drill-link-list {
    gap: 6px 12px;
  }
  .drill-link-divider {
    margin: 1.2em 0;
  }
  .drill-link-section .section-content p {
    font-size: 0.9em;
    margin-bottom: 0.9em;
  }
  .drill-link-section.section-2 .faq-item {
    margin-bottom: 1.2em;
  }
  
  .drill-link-section.section-2 .faq-divider {
    margin: 1.2em 0;
  }
}