/* 　診断コンテンツ用フォント */
.font-zen {
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.font-kaisei {
  font-family: "Kaisei Opti", serif;
}

/* 診断コンテンツ専用スタイル */
/* 診断コンテナ全体 */
.question-header,
.question-progress,
.answer-options-container {
  margin: 0 auto;
}

/* shindan-top-decoクラスに背景装飾を追加 */
.shindan-top-deco {
  position: relative;
  background-image: url("../img/item/h2-deco.png");
  background-repeat: no-repeat;
  background-position: center center;
  /* 背景画像を中央に配置 */
  background-size: 100% auto;
  /* 幅いっぱいに広がるように変更 */
  padding: 30px 0 24px 0;
  /* 背景画像の高さ分のパディングを追加 */
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  /* 背景画像の高さに合わせて調整 */
}

.shindan-top-deco .badge-content {
  position: relative;
  z-index: 4;
}

/* 診断KVセクション */
.shindan-kv-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  /* 最小高さを設定 */
  overflow: hidden;
}

.kv-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* セクションの高さに合わせる */
  min-height: 500px;
  /* 最小高さを保証 */
  z-index: 1;
}

.kv-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* 上部を固定 */
}

.kv-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

/* リード画像セクション */
.kv-title-section-lead {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  position: relative;
  top: 20px;
}

.kv-title-section-lead-img {
  object-fit: cover;
  max-width: 240px;
  height: auto;
}

/* タイトルセクション */
.kv-title-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.kv-main-title {
  font-family: "Kaisei Opti", serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ff69b4, #f13970);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0px 2px 10px rgba(255, 255, 255, 0.5);
  letter-spacing: 0.8px;
  /* 文字間隔を少し狭く */
  margin: 0;
  max-width: 100%;
  /* 最大幅を設定 */
  position: relative;
}

.kv-main-title::after {
  content: "";
  background-image: url("../img/item/img-icon-search.svg");
  background-size: contain;
  /* 画像を縮小してフィット */
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 20px;
  bottom: -10px;
  display: block;
}

.kv-main-title .title-type {
  font-size: 42px;
  letter-spacing: -1px;
  /* 文字間隔をさらに緩く */
}

/* 診断例セクション */
.kv-examples-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 309px;
  flex: 1;
  justify-content: flex-start;
}

/* リード文 */
.kv-lead {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.lead-decoration-left,
.lead-decoration-right {
  display: flex;
  align-items: center;
  height: 20px;
}

.lead-decoration-right {
  transform: scaleY(-1) rotate(180deg);
}

.decoration-line {
  width: 10.888px;
  height: 10.888px;
}

.lead-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #212121;
  text-align: center;
  white-space: nowrap;
}

.lead-text p {
  margin: 0;
  display: block;
}

/* 診断例 */
.diagnosis-examples {
  position: relative;
  width: 100%;
  height: 118px;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -10px;
}

.diagnosis-example {
  position: absolute;
}

.diagnosis-example.example-1 {
  left: -8px;
  top: -6px;
}

.diagnosis-example.example-2 {
  right: -8px;
  top: -4px;
}

.diagnosis-example.example-3 {
  left: 50%;
  top: 21px;
  transform: translateX(-50%);
}

.example-img {
  width: 108px;
  height: auto;
  display: block;
}

@media (max-width: 320px) {
  .diagnosis-example img {
    width: 100px;
    height: auto;
    display: block;
  }
}

/* チャレンジセクション */
.kv-challenge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.challenge-text {
  font-weight: 500;
  font-size: 14px;
  color: #212121;
  text-align: center;
  margin: 0;
}

.challenge-text .highlight {
  font-weight: 800;
  font-size: 16px;
  color: #ef4d99;
}

.chevron-down {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chevron-icon {
  width: 25px;
  height: 18px;
}

.shindan-section-02 {
  position: relative;
  z-index: 2;
  top: -100px;
  margin-bottom: -100px;
}

.shindan-section-02 .section-lead {
  text-align: center;
  margin: 0;
  position: relative;
  top: -10px;
  z-index: 10;
}

/* 診断バッジ */
.h2-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
  /* 固定高さでキラキラの基準点を安定させる */
  width: 100%;
  /* 幅を100%に設定 */
}

/* shindan-top-decoが適用された場合の特別なスタイル */
.shindan-top-deco.h2-badge {
  height: auto;
  /* 背景画像のサイズに合わせる */
  margin: 10px 0;
  /* 左右のマージンを削除 */
}

.shindan-section-02 .diagnosis-grid {
  margin: 0;
}

.badge-content {
  background: linear-gradient(135deg, #ef4d99, #f96372);
  padding: 7px 18px;
  border-radius: 50px;
  display: flex;
  align-items: end;
  gap: 2px;
  position: relative;
}

.badge-text-main {
  font-size: 22px;
  color: #ffffff;
  line-height: 1.2;
}

.badge-text-sub {
  font-size: 17px;
  color: #ffffff;
  line-height: 1.2;
}

/* キラキラマーク（::before と ::after で実装） */
.badge-content::before,
.badge-content::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 24px;
  background-image: url("../img/item/sparkle.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 11;
}

/* 左上のキラキラ */
.badge-content::before {
  left: -10px;
  top: -16px;
}

/* 右上のキラキラ */
.badge-content::after {
  right: -10px;
  top: -14px;
  background-image: url("../img/item/sparkle-right.svg");
}

/* 診断カードグリッド */
.diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

/* 診断カード */
.diagnosis-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  background: #fff;
  box-shadow: 0px 4px 4px 0px rgba(180, 155, 155, 0.25);
  padding: 8px 10px;
  width: 100%;
  margin: 0 auto;
}

.card-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* 診断カードのリンクスタイルをリセット */
.diagnosis-card {
  color: inherit;
  text-decoration: none;
}

.diagnosis-card:hover,
.diagnosis-card:visited,
.diagnosis-card:focus {
  color: inherit;
  text-decoration: none;
}

.diagnosis-card .card-title {
  color: #333;
}

.diagnosis-card:hover .card-title,
.diagnosis-card:visited .card-title,
.diagnosis-card:focus .card-title {
  color: #333;
}

/* 診断カードの画像ホバーエフェクト */
.diagnosis-card .card-image img {
  transition: opacity 0.3s ease;
}

.diagnosis-card:hover .card-image img {
  opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .diagnosis-grid {
    gap: 8px;
  }

  .diagnosis-card {
    width: 100%;
  }
}

/* 質問ヘッダー */
.question-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

/* 質問アイコンコンテナ */
.question-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff69b4, #f13970);
  box-shadow: 0px 5px 15px 0px rgba(255, 107, 157, 0.4);
  flex-shrink: 0;
}

/* 質問アイコン */
.question-icon {
  font-weight: bold;
  font-size: 18px;
  color: #ffffff;
  line-height: 1;
}

/* 質問タイトル */
.question-title {
  font-weight: 500;
  font-size: 18px;
  color: #e91e63;
  margin: 0;
  flex: 1;
  line-height: 1.2;
}

/* 進捗表示 */
.question-progress {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.progress-text {
  font-size: 12px;
  color: #666666;
}

/* 選択肢コンテナ */
.answer-options-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 25px;
}

/* 選択肢スタイル */
.answer-option {
  height: 60px;
  border-radius: 50px;
  border: 1px solid #d55078;
  background: #fdf8fe;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.answer-option label {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 400;
  font-size: 16px;
  color: #000000;
  line-height: 1.4;
  margin: 0;
}

.answer-option input[type="radio"] {
  display: none;
}

/* ホバー状態 */
.answer-option:hover {
  background: rgba(253, 248, 254, 0.5);
  border-color: rgba(213, 80, 120, 0.5);
}

/* アクティブ*/
.answer-option:active {
  background: #ffe5f2;
  border: 2px solid #d55078;
  transform: scale(0.98);
}

/* フォーカス状態 */
.answer-option:focus-within {
  outline: 2px solid #f13970;
}

/* この診断についてセクション */
.diagnosis-about-section {
  background: #f7f9fe;
  padding: 15px 15px;
  margin: 0 auto;
  border-radius: 0;
}

/* セクションヘッダー */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.header-line {
  flex: 1;
  height: 1px;
  background: #cccccc;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

/* セクションタイトル */
.section-title {
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  margin: 0 0 6px 0;
  line-height: 1.6;
}

/* 区切り線 */
.divider-line {
  width: 100%;
  height: 1px;
  background: #cccccc;
  margin: 10px 0;
}

/* 診断情報 */
.diagnosis-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-main {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.diagnosis-image {
  flex-shrink: 0;
}

.diagnosis-image img {
  width: 168px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0px 4px 8px rgba(186, 146, 146, 0.1);
}

@media (max-width: 340px) {
  .diagnosis-image img {
    width: 100px;
    height: auto;
    display: block;
  }
}

.diagnosis-description {
  flex: 1;
  min-width: 0;
}

.diagnosis-description p {
  margin: 0;
}

.diagnosis-about-section .date {
  text-align: right;
  font-size: 12px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

/* タグ */
.diagnosis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.tag {
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 400;
  font-size: 12px;
  color: #666666;
  line-height: 1.6;
  display: inline-block;
  background: linear-gradient(69deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 制作者情報 */
.creator-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-logo img {
  width: 56px;
  height: auto;
  object-fit: contain;
}

.creator-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-label {
  font-size: 12px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

.creator-name {
  font-size: 14px;
  color: #212121;
  line-height: 1.4;
  margin: 0;
}

.creator-description {
  text-align: center;
  max-width: 345px;
}

.creator-description p {
  text-align: left;
  margin: 0;
}

/* 診断結果セクション */
.diagnosis-result-section {
  margin: 10px auto;
}

.diagnosis-result-section p {
  margin: 0;
}

.result-header {
  text-align: center;
  margin-bottom: 8px;
}

.result-title {
  font-weight: bold;
  font-size: 24px;
  color: #e91e63;
  line-height: 1.4;
  margin: 0;
}

.result-description p:last-child {
  margin-bottom: 0;
}

/* プロ相談誘導セクション */
.consultation-section {
  margin: 20px auto;
}

.consultation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.consultation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.consultation-subtitle {
  font-weight: 600;
  font-size: 18px;
  color: #212121;
  line-height: 1.2;
  margin: 0;
}

.consultation-title {
  font-weight: bold;
  font-size: 24px;
  color: #f13970;
  text-align: center;
  margin: 0 0 8px 0;
}

.consultation-description {
  text-align: left;
}

.consultation-description p {
  margin: 0 0 8px 0;
}

.consultation-description p:last-child {
  margin-bottom: 0;
}

.consultation-description strong {
  font-weight: bold;
}

/* 恋ラボCTAセクション */
.koilabo-cta-section {
  margin: 0px auto;
}

.cta-container {
  border: 2px solid #ffb6c1;
  border-radius: 8px;
  padding: 18px 15px 15px 15px;
  position: relative;
  min-height: 200px;
  background: linear-gradient(146deg, #fff8fe 6.28%, #fffafc 99.61%);
}

.cta-counselor-image {
  position: absolute;
  top: -12px;
  left: 14px;
  width: 85px;
  height: 96px;
  z-index: 2;
}

.cta-counselor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cta-content {
  margin-left: 85px;
  padding-left: 10px;
}

.cta-title {
  font-weight: 400;
  font-size: 18px;
  color: #d63384;
  text-shadow: rgba(255, 182, 193, 0.3) 0px 1px 2px;
  margin: 0;
}

@media (max-width: 340px) {
  .cta-title {
    font-size: 12px;
  }

  .cta-container {
    padding: 10px 10px 10px 10px;
  }

  .cta-counselor-image {
    position: absolute;
    top: -16px;
    left: 8px;
    width: 85px;
    height: 96px;
    z-index: 2;
  }

  .cta-content {
    margin-left: 74px;
    padding-left: 10px;
  }
}

@media (max-width: 360px) {
  .cta-title {
    font-size: 16px;
  }
}

.cta-description {
  margin-bottom: 18px;
}

.cta-description p {
  font-size: 14px;
  color: #212121;
  line-height: 1.4;
  margin: 20px 0 8px 0;
}

.cta-description p:last-child {
  margin-bottom: 0;
}

.cta-description strong {
  font-weight: bold;
}

.cta-button-wrapper {
  text-align: center;
}

.cta-button-wrapper .btn-def {
  height: auto;
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  font-size: 16px;
  line-height: 1.2;
  width: 100%;
}

/* シェアボタンセクション */
.share-section {
  max-width: 345px;
  margin: 30px auto;
  padding: 0 15px;
}

.share-container {
  text-align: center;
}

.share-title {
  font-weight: 400;
  font-size: 16px;
  color: #212121;
  line-height: 1.4;
  margin: 0 0 16px 0;
  text-align: center;
  position: relative;
}

.share-title {
  display: inline-block;
}

.share-title::before,
.share-title::after {
  margin: 0 .4em;
}

.share-title::before {
  content: "";
  width: 1px;
  height: 16px;
  position: absolute;
  left: -14px;
  top: 3px;
  background: #212121;
  transform: rotate(-17deg);
}

.share-title::after {
  content: "";
  width: 1px;
  height: 16px;
  position: absolute;
  right: -14px;
  top: 3px;
  background: #212121;
  transform: rotate(17deg);
}


.share-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.share-button {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* アイコンサイズ調整 */
.share-icon img {
  width: 52px;
  height: 52px;
}

/* 追加 */
.sr-caption {
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  text-align: center;
}

#sr-type {
  font-weight: 700;
  font-size: 24px;
  line-height: 140%;
  color: #E91E63;
  text-align: center;
  word-break: break-all;
}

/* パターンA */
.counselor-list.shuffle-a>li:nth-child(1) {
  order: 3
}

.counselor-list.shuffle-a>li:nth-child(2) {
  order: 1
}

.counselor-list.shuffle-a>li:nth-child(3) {
  order: 5
}

.counselor-list.shuffle-a>li:nth-child(4) {
  order: 2
}

.counselor-list.shuffle-a>li:nth-child(5) {
  order: 4
}

/* パターンB（適当に増やす） */
.counselor-list.shuffle-b>li:nth-child(1) {
  order: 2
}

.counselor-list.shuffle-b>li:nth-child(2) {
  order: 5
}

.counselor-list.shuffle-b>li:nth-child(3) {
  order: 1
}

.counselor-list.shuffle-b>li:nth-child(4) {
  order: 4
}

.counselor-list.shuffle-b>li:nth-child(5) {
  order: 3
}

/* パターンC */
.counselor-list.shuffle-c>li:nth-child(1) {
  order: 5
}

.counselor-list.shuffle-c>li:nth-child(2) {
  order: 2
}

.counselor-list.shuffle-c>li:nth-child(3) {
  order: 4
}

.counselor-list.shuffle-c>li:nth-child(4) {
  order: 1
}

.counselor-list.shuffle-c>li:nth-child(5) {
  order: 3
}

/* パターンD */
.counselor-list.shuffle-d>li:nth-child(1) {
  order: 4
}

.counselor-list.shuffle-d>li:nth-child(2) {
  order: 3
}

.counselor-list.shuffle-d>li:nth-child(3) {
  order: 2
}

.counselor-list.shuffle-d>li:nth-child(4) {
  order: 5
}

.counselor-list.shuffle-d>li:nth-child(5) {
  order: 1
}

/* 追加 11/5 */

.line-block {
  position: relative;
  padding: 24px 22px;
  border-radius: 10px;
  background: url(../img/item/bg-linecta.png) no-repeat center / cover;
}

.line-block__title {
  text-align: center;
  margin-top: 0;
}

.line-block .btn-line {
  width: 100%;
  margin-top: 10px;
  padding: 13px 10px;
}

.line-block__sub {
  font-size: 14px;
  text-align: center;
  line-height: 140%;
  font-weight: 400;
  color: #212121;
  margin-top: 16px;
}

.copy-box {
  position: relative;
}

#js-copytext {
  width: 100%;
  height: 48px;
  border: 2px solid #AFAFAF;
  border-radius: 50px;
  background: #fff;
  font-size: 16px;
  line-height: 140%;
  font-weight: 400;
  color: #808080;
  padding: 13px 24px;
  margin-top: 8px;
}

#js-copybtn {
  position: absolute;
  right: 22px;
  display: block;
  top: 0;
  bottom: 0;
  margin: auto;
}

#js-copybtn:hover {
  opacity: .5;
  cursor: pointer;
}

.js-copyalert {
  display: none;
  text-align: center;
  color: #fff;
  background: #525252;
  border: 1px solid #ccc;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  width: 228px;
  left: 0;
  right: 0;
  bottom: 60px;
  margin: auto;
  font-weight: 500;
  height: 44px;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
}

.js-copyalert.on {
  display: flex;
}

.line-block__img {
  text-align: center;
  margin-top: 24px;
}

.line-block__img img {
  width: 100%;
  height: auto;
}

.filter-text {
  background: linear-gradient(to top, #ffffff, #000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  height: 64px;
}