@charset "utf-8";

/* ==========================================================================
    Variables & Base
   ========================================================================== */
:root {
  --brand: #3fbb5c;
  --brand-dark: #258d43;
  --brand-mid: #77b627;
  --brand-soft: #eaf7e6;
  --brand-pale: #f5fbf2;
  --accent: #85b11a;
  --accent-soft: #f4f8e7;
  --ink: #181818;
  --muted: #5e5e5e;
  --line: #dedede;
  --surface: #fff;
  --background: #eef2ec;
  --focus: #ffb000;
  --hospital: #349bce;
  --hospital-soft: #edf7fb;
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, .07);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, .12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: 1120px;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(159deg, #e6f3e4, #fff);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
    Section Base & Headings
   ========================================================================== */
.section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 64px;
}

.section-heading {
  margin-bottom: 28px;
  text-align: left;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  font-family: 'Noto Sans JP';
}

.section-heading h2 {
  margin: 0;
  padding-left: 12px;
  border-left: 14px solid var(--brand);
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.4;
  text-align: left;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

@media screen and (max-width: 769px) {
  .section-heading {
    margin-bottom: 20px;
    text-align: left;
  }

  .section-heading h2 {
    padding-left: 10px;
    border-left: 10px solid var(--brand);
    font-size: 19px;
    line-height: 1.35;
    text-align: left;
  }
}

/* ==========================================================================
    Hero Area
   ========================================================================== */
.hero {
  background: #167d4e;
  color: #fff;
}

.hero-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 18px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, .7fr);
  align-items: center;
  gap: 44px;
}

.hero-message .eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-message h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  margin-top: 16px;
  color: #eefbf6;
  font-size: 16px;
}

@media screen and (max-width: 769px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px;
  }
}

/* ==========================================================================
    1. Urgent Section (緊急アラート)
   ========================================================================== */
.urgent-section {
  padding-top: 80px;
  padding-bottom: 10px;
}

.inquiry-urgent {
  margin: 0 auto;
  padding: 15px 20px 20px;
  background: #fff8eb;
  border: 1.5px solid #f3d59b;
  border-left: 6px solid #d97706;
  border-radius: var(--radius-sm);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.inquiry-urgent h2 {
  margin: 0;
  color: #b45309;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inquiry-urgent h2::before {
  content: "⚠️";
  font-size: 24px;
}

.inquiry-urgent p {
  margin: 10px 0 0;
  color: #332211;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

@media screen and (max-width: 769px) {
  .inquiry-urgent {
    padding: 15px 16px 18px;
  }
}

/* ==========================================================================
    2. Finder Section (キーワード検索)
   ========================================================================== */
.finder {
  padding: 30px;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(63, 187, 92, 0.12);
}

.search-label {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
  font-size: 16px;
}

.search-control {
  position: relative;
}

.search-control svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  color: var(--brand);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-control input {
  width: 100%;
  min-height: 58px;
  padding: 13px 60px 13px 54px;
  color: var(--ink);
  background: var(--brand-pale);
  border: 2px solid #bcd8d1;
  border-radius: 15px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-control input::-webkit-search-cancel-button,
.search-control input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-control input:focus {
  background: #fff;
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(63, 187, 92, 0.25);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #888;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .2s ease;
}

.search-clear.visible {
  display: flex !important;
}

.search-clear:hover {
  color: #181818;
}

.search-tags {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-btn {
  padding: 6px 14px;
  background: #eaf7e6;
  border: 1px solid #3fbb5c;
  border-radius: 20px;
  color: #258d43;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color .2s ease;
}

.tag-btn:hover {
  background: #d3f0cb;
}

@media screen and (max-width: 769px) {
  .search-guidance {
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .finder {
    padding: 20px 16px;
  }

  .search-control input {
    padding-right: 52px;
  }

  .search-clear {
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

/* ==========================================================================
    3. FAQ Section (タブ・ツールバー・アコーディオンリスト)
   ========================================================================== */
.faq-section {
  padding-top: 54px;
}

.faq-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(63, 187, 92, 0.12);
  margin-bottom: 24px;
}

.category-tab[data-category="all"] {
  grid-column: span 2;
}

.category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  border-color: var(--brand);
  background: var(--brand-pale);
}

.category-tab.active {
  color: #fff !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

.category-tab .count {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-dark);
  padding-top: 2px;
}

.category-tab.active .count {
  color: #fff !important;
  opacity: 0.95;
}

.faq-toolbar {
  margin: 8px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-count strong {
  color: var(--brand);
  font-size: 18px;
}

.close-all {
  min-height: 42px;
  padding: 8px 13px;
  color: var(--brand);
  background: transparent;
  border: 1px solid #a6cbc3;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease;
}

.close-all:hover {
  background: var(--brand-soft);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid #d8d8d8;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: #9ecbc1;
}

.faq-item summary {
  min-height: 76px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--brand-pale);
}

.faq-item summary:hover .question-title {
  color: var(--brand-dark);
}

.q-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 12px 12px 12px 4px;
  font-weight: 900;
}

.faq-category {
  display: block;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.question-title {
  margin: 0;
  font-size: 17px;
  font-weight: bold;
  color: var(--ink);
  transition: color 0.2s ease;
}

.chevron {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 50%;
  transition: transform .2s ease, background-color .2s ease;
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
  background: #167d4e;
}

.answer {
  padding: 22px 28px 15px 74px;
  color: #333;
  border-top: 1px solid var(--line);
}

.answer ul {
  list-style-type: disc;
  padding-left: 1.4em;
  margin-top: 8px;
  margin-bottom: 16px;
}

.answer ul li {
  margin-bottom: 6px;
}

.answer > * + * {
  margin-top: 16px;
}

.answer p {
  margin: 0;
}

.faq-item .answer p + p {
  margin-top: 12px;
}

.faq-item .answer .faq-note {
  margin-top: 12px;
  color: #555;
}

.answer p + ol.steps {
  margin-top: 8px;
}

.answer ol.steps {
  margin-top: 8px;
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
  counter-reset: answer-step;
}

.answer ol.steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  counter-increment: answer-step;
}

.answer ol.steps li:last-child {
  margin-bottom: 0;
}

.answer ol.steps + p {
  margin-top: 24px;
}

.answer ol.steps li::before {
  content: counter(answer-step);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  margin-top: 1px;
  transform: translateY(-1.2px);
}

@media screen and (max-width: 769px) {
  .faq-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .category-tab[data-category="all"] {
    grid-column: span 2;
  }

  .category-tab {
    min-height: 48px;
    font-size: 14px;
    padding: 6px 4px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .category-tab .count {
    font-size: 13px;
  }

  .faq-item summary {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    padding: 14px;
  }

  .faq-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin: 12px 0 16px;
  }
  
  .result-count {
    align-self: flex-start;
  }
  
  .close-all {
    min-height: 44px;
    font-size: 14px;
  }

  .answer {
    padding: 18px 18px 22px 18px;
  }
}

/* ==========================================================================
    Pagination & Empty State
   ========================================================================== */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #aac7c0;
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

.empty-state-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--brand-pale);
  border: 1px solid #cce3d8;
  border-radius: var(--radius-sm);
  text-align: left;
  display: inline-block;
  max-width: 560px;
}

.empty-state-note p {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
}

.empty-state-note strong {
  color: var(--brand-dark);
}

.pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid #dcdcdc;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-pale);
  color: var(--brand-dark);
}

.page-btn.active {
  color: #fff !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  cursor: default;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

.page-btn.prev,
.page-btn.next {
  padding: 0 16px;
}

/* ==========================================================================
   5. Inquiry Form CTA Area (お問い合わせエリア：注意事項・フォーム誘導)
   ========================================================================== */
.inquiry-cta {
  margin-top: 100px;
  padding: 64px 20px 80px;
  color: #fff;
  background: linear-gradient(135deg, #42ab60, #0a673c);
  text-align: center;
}

.inquiry-cta-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.inq_ttl {
  color: #fff;
  font-weight: bold;
  font-size: clamp(22px, 4.5vw, 34px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.inquiry-cta-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  margin-bottom: 8px;
}

.integrated-cards-wrapper {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  color: var(--ink);
}

.contact-cards-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* --- カード群の共通スタイル (枠線なし白カード) --- */
.inquiry-cta .hospital-note,
.inquiry-cta .feature-note,
.inquiry-cta .safe-list,
.inquiry-cta .contact-card.good-list {
  padding: 22px 24px;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #1f2937;
  box-sizing: border-box;
}

/* --- 1. 病院向け案内（統合分） --- */
.inquiry-cta .hospital-note h3 {
  margin: 0 0 12px;
  color: #b45309;
  font-size: 20px;
  font-weight: bold;
}

.inquiry-cta .hospital-note p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
}

.inquiry-cta .hospital-note ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.inquiry-cta .hospital-note ul li {
  margin-top: 8px;
}

/* --- 2. 機能に関するご注意 --- */
.inquiry-cta .feature-note > div {
  margin-bottom: 12px;
}

/* 「ご注意」ラベル（赤背景・白抜き文字） */
.inquiry-cta .feature-note > div strong {
  display: inline-block;
  padding: 4px 12px 2px;
  background: #dc2626;
  color: #ffffff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
}

.inquiry-cta .feature-note > span {
  display: block;
  color: #1f2937;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.7;
}

/* --- 3. 個人情報送信に関する重要なお願い --- */
.inquiry-cta .safe-list h3 {
  margin: 0 0 12px;
  color: #b45309;
  font-size: 18px;
  font-weight: bold;
}

.inquiry-cta .safe-list ul {
  margin: 0;
  padding-left: 1.2em;
  color: #1f2937;
}

.inquiry-cta .safe-list ul li {
  margin-top: 15px;
}

/* --- 4. お知らせいただくとスムーズな項目 --- */
.inquiry-cta .contact-card.good-list h3 {
  margin: 0 0 12px;
  color: #065f46;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-symbol {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
}

.inquiry-cta .contact-card.good-list ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0;
  color: #1f2937;
}

/* --- ボタン周り --- */
.inquiry-cta-note {
  margin: 80px 0 30px;
  color: #eefbf6;
  font-size: 18px;
  font-weight: 700;
}

.inquiry-button {
  min-width: 360px;
  min-height: 64px;
  padding: 16px 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0a673c;
  background: #fff;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.inquiry-button span {
  display: inline-block;
  font-style: normal;
  color: inherit;
  transition: transform 0.25s ease;
}

.inquiry-button:hover {
  background: #eaf7e6;
  color: #0a673c;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.inquiry-button:hover span {
  color: inherit;
  transform: translateX(6px);
}

/* ==========================================================================
   レスポンシブ (スマホ向け)
   ========================================================================== */
@media screen and (max-width: 769px) {
  .inquiry-cta {
    margin-top: 40px;
    padding: 48px 16px 52px;
  }

  .contact-cards-flex {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inquiry-cta .hospital-note,
  .inquiry-cta .feature-note,
  .inquiry-cta .safe-list,
  .inquiry-cta .contact-card.good-list {
    padding: 18px 16px;
  }

  .inquiry-button {
    width: 100%;
    min-width: auto;
    padding: 16px 20px;
    font-size: 1.05rem;
  }
}