/* --------------------------------------------------
   脳検査コンテンツ
   -------------------------------------------------- */
.brain-section {
  width: 98%;
  max-width: 1000px;
  margin: 0 auto 32px;
}

.brain-lead {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 24px;
  padding: 14px 24px;
  background: #fff0f1;
  border-radius: 8px;
  border-left: 4px solid #ff717b;
}

.brain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.brain-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #ff717b;
  border-radius: 0 0 8px 8px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.brain-card__name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.brain-card__sub {
  font-size: 16px;
  font-weight: normal;
  color: #888;
}

.brain-card__price {
  font-size: 28px;
  font-weight: bold;
  color: #ff717b;
  margin: 0;
  line-height: 1.2;
}

.brain-card__price span {
  font-size: 16px;
  font-weight: normal;
  color: #555;
}

.brain-notes {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.brain-notes p {
  margin: 0 0 8px;
}

.brain-notes p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 640px) {
  .brain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brain-lead {
    font-size: 16px;
    text-align: left;
  }

  .brain-card__price {
    font-size: 24px;
  }
}

/* --------------------------------------------------
   さくら医院の特徴カードグリッド
   -------------------------------------------------- */
.nd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 98%;
  max-width: 1000px;
  margin: 0 auto;
}

/* 共通カード */
.nd-feature-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid #ff717b;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nd-feature-card__header {
  padding: 20px 20px 14px;
}

.nd-feature-card__num {
  display: inline-block;
  background: #ff717b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.nd-feature-card__title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

.nd-feature-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.nd-feature-card__body {
  padding: 16px 20px 22px;
  flex: 1;
}

.nd-feature-card__text {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.nd-feature-card__note {
  font-size: 16px;
  color: #888;
  line-height: 1.7;
  margin-top: 10px;
}

/* ヒーローカード（FEATURE 01） */
.nd-feature-card--hero {
  grid-column: 1 / -1;
  flex-direction: row;
  border-top-width: 6px;
}

.nd-feature-card--hero .nd-feature-card__img {
  width: 42%;
  height: auto;
  min-height: 260px;
  flex-shrink: 0;
  order: 2;
}

.nd-feature-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  order: 1;
}

.nd-feature-card--hero .nd-feature-card__header {
  background: #fff8f8;
  padding: 32px 36px 20px;
  flex-shrink: 0;
}

.nd-feature-card--hero .nd-feature-card__num {
  font-size: 0.875rem;
  padding: 4px 16px;
}

.nd-feature-card--hero .nd-feature-card__title {
  font-size: 1.4rem;
  color: #ff717b;
  line-height: 1.4;
}

.nd-feature-card--hero .nd-feature-card__body {
  padding: 20px 36px 32px;
  flex: 1;
}

.nd-feature-card--hero .nd-feature-card__text {
  font-size: 16px;
}

@media screen and (max-width: 640px) {
  .nd-feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nd-feature-card__img {
    height: 180px;
  }

  .nd-feature-card--hero {
    flex-direction: column;
  }

  .nd-feature-card--hero .nd-feature-card__img {
    width: 100%;
    height: 200px;
    order: 1;
  }

  .nd-feature-card__content {
    order: 2;
  }

  .nd-feature-card--hero .nd-feature-card__header {
    padding: 20px 20px 14px;
  }

  .nd-feature-card--hero .nd-feature-card__title {
    font-size: 1.1rem;
  }

  .nd-feature-card--hero .nd-feature-card__body {
    padding: 16px 20px 22px;
  }
}

/* --------------------------------------------------
   目次
   -------------------------------------------------- */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.toc-item:hover {
  border-color: #ff717b;
  box-shadow: 0 2px 8px rgba(255, 113, 123, 0.15);
  color: #ff717b;
  text-decoration: none;
}

.toc-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ff717b;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%;
}

.toc-title {
  flex: 1;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
}

.toc-arrow {
  flex-shrink: 0;
  color: #ff717b;
  font-size: 1.2rem;
  font-weight: bold;
}

@media (max-width: 767px) {
  .toc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .toc-item {
    padding: 14px 16px;
  }
}

/* --------------------------------------------------
   検査数比較
   -------------------------------------------------- */
/* 検査数比較 */
.compare-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 24px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.compare-label {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.compare-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 220px;
}

.compare-bar {
  width: 100px;
  border-radius: 6px 6px 0 0;
}

.compare-bar--kenshin {
  background: #ccc;
}

.compare-bar--dock {
  background: #ff717b;
}

.compare-card--dock .compare-label {
  color: #ff717b;
}

.compare-num {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.compare-card--kenshin .compare-num {
  color: #999;
}

.compare-card--dock .compare-num {
  color: #ff717b;
}

.compare-num span {
  font-size: 18px;
  font-weight: normal;
  margin-left: 4px;
}

.compare-desc {
  font-size: 16px;
  color: #555;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.compare-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 60px;
}

.compare-times {
  display: inline-block;
  background: #ff717b;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.compare-icon {
  font-size: 24px;
  color: #ff717b;
}

.compare-intro {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  text-align: center;
}

.compare-note {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 0;
  text-align: center;
}

@media screen and (max-width: 640px) {
  /* 縦→横グラフに切り替え */
  .compare-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 24px 0 16px;
  }

  .compare-card {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .compare-bar-wrap {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    flex: 1;
  }

  .compare-bar-wrap .compare-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    width: auto;
    padding: 0;
    white-space: nowrap;
  }

  .compare-card--kenshin .compare-bar-wrap .compare-label {
    color: #555;
  }

  .compare-card--dock .compare-bar-wrap .compare-label {
    color: #fff;
  }

  .compare-bar {
    height: 44px !important;
    border-radius: 0 6px 6px 0;
  }

  .compare-card--kenshin .compare-bar {
    width: 42%;
  }

  .compare-card--dock .compare-bar {
    width: 100%;
  }

  .compare-num {
    font-size: 24px;
    width: 64px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
  }

  .compare-num span {
    display: block;
    font-size: 13px;
  }

  .compare-desc {
    display: none;
  }

  .compare-arrow {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    gap: 8px;
  }

  .compare-icon {
    display: inline-block;
    transform: rotate(90deg);
    font-size: 20px;
  }

  .compare-times {
    font-size: 14px;
  }

  .compare-intro,
  .compare-note {
    text-align: left;
  }
}

/* オプション検査セクション */
.option-lead-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.option-lead-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  background: linear-gradient(135deg, #ff717b, #ffb8bd);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  color: #fff;
  flex-shrink: 0;
}

.option-lead-count {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.option-lead-unit {
  font-size: 16px;
  font-weight: bold;
}

.option-lead-text {
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
  color: #444;
}

.option-age-heading {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 24px;
  padding: 10px 0;
  border-top: 2px solid #ffb8bd;
  border-bottom: 2px solid #ffb8bd;
}

.option-age-label {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  color: #ff717b;
  background: #fff0f1;
  border-left: 4px solid #ff717b;
  border-radius: 4px;
  padding: 10px 16px;
  margin: 24px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.option-age-sub {
  font-size: 16px;
  font-weight: normal;
  color: #888;
}

@media screen and (max-width: 640px) {
  .option-lead-wrap {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }
  .option-lead-num {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
  .option-lead-count {
    font-size: 38px;
  }
}

/* コースと料金 タブ切り替え */
.course-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 0;
  width: 98%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.course-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px 14px;
  background: #f0f0f0;
  border: 2px solid #ddd;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.course-tab:hover {
  background: #ffe6e8;
  border-color: #ffb8bd;
}

.course-tab--active {
  background: #fff;
  border-color: #ff717b;
  z-index: 1;
}

.course-tab--recommend {
  padding-top: 28px;
  transform: translateY(-6px);
  background: #fff0f1;
  border-color: #ff717b;
}

.course-tab--recommend.course-tab--active {
  background: #fff;
}

.course-tab-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff717b;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.course-tab-name {
  font-size: 17px;
  font-weight: bold;
  color: #333;
}

.course-tab--active .course-tab-name,
.course-tab--recommend .course-tab-name {
  color: #ff717b;
}

.course-tab-price {
  font-size: 16px;
  color: #666;
}

.course-tab--active .course-tab-price,
.course-tab--recommend .course-tab-price {
  color: #ff717b;
  font-weight: bold;
}

/* コース詳細パネル */
.course-detail {
  width: 98%;
  max-width: 1000px;
  margin: 0 auto 32px;
  border: 2px solid #ddd;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.course-detail--recommend {
  border-color: #ff717b;
}

.course-detail-inner {
  padding: 32px 40px;
}

.course-catch {
  font-size: 16px;
  color: #ff717b;
  font-weight: bold;
  margin-bottom: 6px;
}

.course-name {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  border-bottom: 2px solid #ffb8bd;
  padding-bottom: 10px;
}

.course-price-main {
  font-size: 32px;
  font-weight: bold;
  color: #ff717b;
  margin-bottom: 16px;
}

.course-price-main span {
  font-size: 16px;
  font-weight: normal;
  color: #555;
  margin-left: 4px;
}

.course-price-wrap {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.course-price-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-price-label {
  font-size: 16px;
  color: #777;
  background: #f5f5f5;
  padding: 2px 10px;
  border-radius: 4px;
}

.course-desc {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 12px;
}

.course-note {
  font-size: 16px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 16px;
}

.course-link-wrap {
  text-align: center;
  margin-top: 16px;
}

@media screen and (max-width: 640px) {
  .course-tabs {
    gap: 6px;
  }
  .course-tab {
    padding: 12px 8px 10px;
  }
  .course-tab--recommend {
    padding-top: 24px;
  }
  .course-tab-name {
    font-size: 16px;
  }
  .course-tab-price {
    font-size: 16px;
  }
  .course-detail-inner {
    padding: 20px 16px;
  }
  .course-price-main {
    font-size: 24px;
  }
  .course-price-wrap {
    flex-direction: column;
    gap: 12px;
  }
}

/* 三大疾患 横並びカード */
.sandai-lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: center;
}

.sandai-wrap {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  width: 98%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.sandai-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sandai-title {
  font-size: 20px;
  font-weight: bold;
  color: #ff717b;
  border-bottom: 2px solid #ffb8bd;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.sandai-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.sandai-list li {
  font-size: 16px;
  line-height: 1.7;
  padding: 6px 0 6px 18px;
  border-bottom: 1px dashed #eee;
  position: relative;
  color: #444;
}

.sandai-list li:last-child {
  border-bottom: none;
}

.sandai-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff717b;
  font-weight: bold;
}

.sandai-note {
  text-align: center !important;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  width: 98%;
  max-width: 1000px;
  margin: 0 auto;
}

@media screen and (max-width: 640px) {
  .sandai-wrap {
    flex-direction: column;
  }
  .sandai-card {
    padding: 20px 16px;
  }
  .sandai-note {
    text-align: left !important;
  }
}

/* 受診してほしい方 カードリスト */
.who-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.who-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 2px solid #ffb8bd;
  border-left: 6px solid #ff717b;
  border-radius: 8px;
  padding: 16px 20px;
  width: calc(50% - 8px);
  box-sizing: border-box;
}

.who-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  background: #ff717b;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  line-height: 1;
}

.who-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

@media screen and (max-width: 640px) {
  .who-item {
    width: 100%;
  }
  .who-num {
    min-width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .who-text {
    font-size: 16px;
  }
}

/* アコーディオン */
.accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.accordion-item {
  width: calc(50% - 6px);
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item input {
  display: none;
}

.accordion-title_men,
.accordion-title_woman {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 0 !important;
  box-sizing: border-box;
  border-radius: 0;
}

.accordion-title_men::after,
.accordion-title_woman::after {
  content: '▼';
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s;
}

.accordion-item input:checked ~ .accordion-title_men::after,
.accordion-item input:checked ~ .accordion-title_woman::after {
  transform: rotate(-180deg);
}

.accordion-title_men {
  background-color: #3aafca;
}

.accordion-title_woman {
  background-color: #f07070;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
  border: 0 solid #eee;
  border-top: none;
}

.accordion-item input:checked ~ .accordion-content {
  max-height: 100vh;
  border-width: 1px;
}

.casep_men {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #3aafca;
  margin: 0 !important;
  padding: 6px 14px;
  display: block;
}

.casep_woman {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #f07070;
  margin: 0 !important;
  padding: 6px 14px;
  display: block;
}

.accordion-content p:not(.casep_men):not(.casep_woman) {
  text-align: left;
  padding: 6px 14px 10px;
  margin: 0;
  font-size: 16px;
  border-bottom: 1px dashed #eee;
}

.accordion-content p:last-child {
  border-bottom: none;
}

.n-graph img {
  width: 60%;
}

@media screen and (max-width: 640px) {
  .accordion {
    flex-direction: column;
    gap: 10px;
  }

  .accordion-item {
    width: 100%;
  }

  .accordion-title_men,
  .accordion-title_woman {
    font-size: 16px;
    padding: 14px 16px;
  }

  .n-graph img{
    width: 100%;
  }
}
