/* sub0302 - 歯科医院選びチェックリスト（アコーディオン） */

.p0302-check {
  width: 100%;
  background-color: #ffffff;
  padding: 56px 0 64px;
}

.p0302-check__inner {
  box-sizing: border-box;
  max-width: 1323px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.p0302-check__title {
  margin: 0 0 28px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #222222;
}

.p0302-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p0302-item {
  border-radius: 20px;
  background: linear-gradient(90deg, #f8fcff 0%, #d5ecff 100%);
  overflow: hidden;
}

/* 헤더 (버튼) */
.p0302-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.p0302-item__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 68px;
  padding: 5px 12px;
  border-radius: 9999px;
  background-color: #2d7ecd;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  white-space: nowrap;
}

/* 2글자 라벨은 자간을 벌려 3글자 라벨과 폭을 맞춘다 */
.p0302-item__label--spread {
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

.p0302-item__question {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #333333;
}

.p0302-item__chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #7ba7d4;
  transition: transform 0.3s ease;
}

.p0302-item.is-open .p0302-item__chevron {
  transform: rotate(180deg);
}

/* 패널 (grid-template-rows 로 높이 애니메이션) */
.p0302-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.p0302-item.is-open .p0302-item__panel {
  grid-template-rows: 1fr;
}

.p0302-item__panel-inner {
  overflow: hidden;
}

.p0302-item__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 20px 22px;
}

.p0302-item__image {
  display: block;
  width: 180px;
  height: auto;
  flex-shrink: 0;
}

.p0302-item__text {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  color: #333333;
}

@media (min-width: 768px) {
  .p0302-check {
    padding: 80px 0 96px;
  }

  .p0302-check__title {
    margin-bottom: 40px;
    font-size: 28px;
  }

  .p0302-list {
    gap: 16px;
  }

  .p0302-item {
    border-radius: 30px;
  }

  .p0302-item__header {
    gap: 14px;
    padding: 24px 30px;
  }

  .p0302-item__label {
    min-width: 84px;
    padding: 6px 16px;
    font-size: 16px;
  }

  .p0302-item__question {
    font-size: 22px;
  }

  .p0302-item__chevron {
    width: 26px;
    height: 26px;
  }

  .p0302-item__content {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 4px 30px 26px;
  }

  .p0302-item__image {
    width: 220px;
  }

  .p0302-item__text {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .p0302-check {
    padding: 110px 0 123px;
  }

  .p0302-check__title {
    margin-bottom: 59px;
    font-size: 36px;
  }

  .p0302-list {
    gap: 22px;
  }

  .p0302-item {
    border-radius: 40px;
  }

  .p0302-item__header {
    gap: 18px;
    padding: 35px 41px;
  }

  .p0302-item__label {
    min-width: 105px;
    padding: 8px 20px;
    font-size: 22px;
  }

  .p0302-item__question {
    font-size: 34px;
  }

  .p0302-item__chevron {
    width: 34px;
    height: 34px;
  }

  .p0302-item__content {
    gap: 57px;
    padding: 8px 55px 26px;
  }

  .p0302-item__image {
    width: 247px;
  }

  .p0302-item__text {
    font-size: 20px;
    line-height: 2.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p0302-item__panel,
  .p0302-item__chevron {
    transition: none;
  }
}
