/* 診断カード（質問）のスタイル */
.question-card { position: relative; background: #fff; border: 1px solid #282828; border-radius: 20px; padding: 56px 28px; }
.question-title { font-weight: 700; font-size: 18px; text-align: center; }
.question-actions { display: flex; gap: 16px; justify-content: center; }
.question-actions button { min-width: 140px; padding: 8px 24px; border-radius: 9999px; border: none; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform .15s ease, background-color .3s ease, box-shadow .2s ease; }
.question-actions .btn-yes { background: #44aeea; color: #fff; }
.question-actions .btn-no { background: #44aeea; color: #fff; }
.question-actions button:hover { transform: translateY(-1px); }
.question-actions button:active { transform: translateY(0); }
.question-actions button.is-pressed { transform: scale(0.96); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* はい/いいえ：スマホは縦並び、PCは横並び */
@media (max-width: 640px) {
  .question-actions { flex-direction: column; align-items: center; gap: 12px; }
}

/* removed unused .diagnose-button */

.shindan-stage {max-width: 820px; margin: 0 auto; }

/* removed unused .result-title and .result-container */

.p-education_block {
  background: #fff; border: 1px solid #282828; border-radius: 20px;
}
.p-education_block_head {
  display: block;
}

.u-box-point {
  font-size: var(--t-lv4);
  font-weight: 700;
  line-height: 1.5;
  color: #fac55c;
}

.cta-diagnose {
  background-color: #44aeea !important;
}

.is-hidden { display: none !important; }

/* removed unused .result-card* */

/* 結果表示（Figmaスタイル準拠） */
.result-hero { background: #fff; border: 1px solid #282828; border-radius: 20px; padding: 32px 24px; width: 100%; max-width: 820px; margin: 0 auto; text-align: center; }
.result-logoWrap { display: flex; justify-content: center; margin-bottom: 12px; }
.result-logo { width: clamp(140px, 45vw, 400px); max-width: 100%; height: auto; display: block; object-fit: contain; }
.result-logo-fallback { display: none; font-weight: 700; font-size: 18px; }
.result-headline { font-size: var(--t-lv3); font-weight: 700; margin: 8px 0 12px; }
.result-suitability { font-weight: 700;  font-size: var(--t-lv3); display: flex; justify-content: space-between; align-items: center; max-width: 560px; margin: 0 auto 8px; }
.result-suitability .suit-jamf { color: #778EB1; }
.result-suitability .suit-kandji { color: #fac55c; }

.result-suitabilityBar { margin-bottom: 12px; }
.suit-bar { position: relative; height: 10px; width: 100%; max-width: 560px; margin: 0 auto; background: #e9ecef; border-radius: 8px; overflow: hidden; }
.suit-bar_jamf { height: 100%; width: 0%; background: #778EB1; transition: width .6s ease; }
.suit-bar_kandji { position: absolute; right: 0; top: 0; height: 100%; width: 0%; background: #fac55c; transition: width .6s ease; }
.result-desc { color: #333; line-height: 1.8; }
/* removed unused .result-actions */


/* removed unused .result-consult-card, .result-consult-text */

/* removed unused .result-product* */

/* 見出しのポイント色（Kandji/Jamfで色分け）
   注意: :first-of-type は要素のタグ型基準のため、.p-education_blockList が
   その親内で最初の div でないと一致しない。Selectors Level 4 の
   :nth-child(1 of .class) を使って「そのクラスの最初/最後」を指定する。 */
#shindanApp .p-education_blockList:nth-child(1 of .p-education_blockList) .p-education_block_head .u-box-point { color: #fac55c; }
#shindanApp .p-education_blockList:nth-last-child(1 of .p-education_blockList) .p-education_block_head .u-box-point { color: #778EB1; }

#shindanApp .p-education_blockList:nth-child(1 of .p-education_blockList) a.p-business_card_unit::after,
#shindanApp .p-education_blockList:nth-child(1 of .p-education_blockList) a.p-business_card_unit::before { border-color: #fac55c !important; }
#shindanApp .p-education_blockList:nth-last-child(1 of .p-education_blockList) a.p-business_card_unit::after,
#shindanApp .p-education_blockList:nth-last-child(1 of .p-education_blockList) a.p-business_card_unit::before { border-color: #778EB1 !important; }

/* 詳細カード（リンク）の枠色：ホバー時の色切替 */
#shindanApp a.p-business_card_unit { display: block; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
#shindanApp a.p-business_card_unit:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.result-ctaWide { margin-top: 20px; padding: 16px; text-align: center; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; }
.result-ctaWide img { display: block; margin-left: auto; margin-right: auto; height: auto; }

/* 個別相談会バナー画像の横幅（PC:50% / SP:100%） */
@media screen and (max-width: 1023px) {
  .l-grid>.l-grid_item {
width: 100%;
  }
}
.result-ctaDual { margin-top: 16px; padding: 16px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; }
.result-ctaDual_actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* アニメーション定義 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* 質問カードのスライドアニメーション */
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutLeft { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-24px); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(24px); } }

.question-card.slide-in-left { animation: slideInLeft .35s ease both; }
.question-card.slide-in-right { animation: slideInRight .35s ease both; }
.question-card.slide-out-left { animation: slideOutLeft .2s ease both; }
.question-card.slide-out-right { animation: slideOutRight .2s ease both; }

.anim-fade { animation: fadeIn .4s ease both; }
.anim-fadeUp { animation: fadeUp .4s ease both; }
.anim-pop { animation: popIn .6s ease both; }

/* 進捗バーのグラデーション演出 */
@keyframes gradientMove { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.shindan-progress_bar.pulse { background-size: 200% 100%; animation: gradientMove .6s ease; }

/* ロゴのぼかし解除（リビール） */
@keyframes unblur { from { filter: blur(8px); opacity: .6; } to { filter: blur(0); opacity: 1; } }
.result-logo.reveal { animation: unblur .9s ease both; }

/* 適合度バーのストライプ演出 */
@keyframes stripeMove { from { background-position: 0 0; } to { background-position: 28px 0; } }
.suit-bar_jamf.is-animating,
.suit-bar_kandji.is-animating {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 10px, rgba(255,255,255,0) 10px 20px);
  background-size: 28px 28px;
  animation: stripeMove 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.shindan-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.shindan-progress_track { flex: 1; height: 8px; background: #f3f4f6; border-radius: 9999px; overflow: hidden; }
.shindan-progress_bar { height: 100%; width: 0%; background: linear-gradient(90deg, #44aeea 0%, #268ad2 100%); border-radius: 9999px; transition: width .35s ease; box-shadow: 0 0 1px rgba(0,0,0,0.06) inset; }
.shindan-progress_meta { font-size: 14px; color: #333; min-width: 48px; text-align: right; }

/* 診断ブロックへスクロールした際の上部余白 */
#shindanApp { scroll-margin-top: 200px; }

.restart-button { border: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: color .2s ease; }
.restart-button:hover { color: #777; }
.restart-button { position: sticky; left: 0; bottom: 16px; margin-top: 12px; }

/* 結果カード下部の再開ボタン配置（黒枠の下に中央寄せ） */
.result-restart { margin-top: 16px; max-width: 820px; margin-left: auto; margin-right: auto; text-align: left; }
.result-stage .restart-button { position: static; margin-top: 12px; }

/* 再開ボタンの矢印アイコン */
.restart-button .i-arrow {
  display: inline-block;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url('/apple/assets/img/icons/dark/ic_arrow_right.svg') no-repeat center / contain;
  mask: url('/apple/assets/img/icons/dark/ic_arrow_right.svg') no-repeat center / contain;
  transform: scaleX(-1); /* left-pointing */
  color: #111;
  transition: transform .2s ease;
}
.restart-button:hover .i-arrow { color: #777; }

/* シェアセクション（左：文言 / 右：ボタン群） */
.result-share_inner {
  display: grid;
  grid-template-columns: auto 1fr; /* 左：ラベル / 右：ボタン群 */
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 12px;
}
.result-share_label { margin: 0; font-weight: 700; color: #223; grid-column: 1; font-size: var(--t-large); }
.result-share_actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: 0; width: auto; justify-content: center; align-items: center; grid-column: 2; }
/* PC時にグローバルの .c-btn のマージンを無効化 */
.result-share_actions .c-btn { margin: 0 !important; flex: 0 0 auto; width: auto !important; display: inline-flex !important; }

/* フィードバック表示エリア（右側に固定幅を確保、行の高さは固定） */
.result-share_feedback { display: none; height: 0; margin: 0; padding: 0; }

.shindan-shareSection {
  padding: 32px;
  border-radius: 16px;
  background-color: #ebebeb;

}

/* アイコン＋テキストのシェアボタン */
.share-btn {
  --brand: #44aeea;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  border-radius: 9999px;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 1.5px 6px rgba(18,32,64,0.05);
}

.share-btn:hover {
  background: var(--brand);
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(18,32,64,0.12);
}

/* 各サービスのブランドカラー */
.share-x { --brand: #111; }
.share-copy { --brand: #44aeea; }

@media (max-width: 640px) {
  .result-share_inner { grid-template-columns: 1fr; row-gap: 8px; }
  /* モバイル時は縦並びにするため両方とも1列目に配置 */
  .result-share_label { grid-column: 1; }
  .result-share_actions { grid-column: 1; margin-left: 0; justify-content: center; }
  .result-share_feedback { display: none; }
}

/* さらに小さい画面向けにコンパクト化 */
@media (max-width: 420px) {
  .share-btn { font-size: 13px; padding: 5px 10px 5px 8px; }
}

/* PC: 中央寄せ + result-suitability と同幅（背景なし） */
@media (min-width: 641px) {
  .result-share_inner {
    grid-template-columns: 1fr;
    justify-items: center; /* 中央寄せ */
    row-gap: 6px;
    padding: 0; /* 余白をなくす */
    background: transparent; /* 背景なし */
    border: 0; 
    border-radius: 0;
    max-width: 560px; /* result-suitability と同幅 */
    margin: 0 auto; /* 中央に配置 */
  }
  .result-share_label { grid-column: 1; text-align: center; }
  .result-share_actions { grid-column: 1; justify-content: center; }
  .result-share_feedback { display: none; }
}

/* 結果カード下部の再開ボタン配置（黒枠の下に中央寄せ） */
.result-restart { margin-top: 16px; max-width: 820px; margin-left: auto; margin-right: auto; text-align: left; }
.result-stage .restart-button { position: static; margin-top: 12px; }

/* 再開ボタンの矢印アイコン */
.restart-button .i-arrow {
  display: inline-block;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url('/apple/assets/img/icons/dark/ic_arrow_right.svg') no-repeat center / contain;
  mask: url('/apple/assets/img/icons/dark/ic_arrow_right.svg') no-repeat center / contain;
  transform: scaleX(-1); /* left-pointing */
  color: #111;
  transition: transform .2s ease;
}

.restart-button:hover .i-arrow { color: #777; }


/* 左向きに反転 */
.restart-button .i-area { transform: scaleX(-1); }

@media (max-width: 768px) {
  .result-container { flex-direction: column; }
}

/* 共有用の簡易トースト（コピー完了などの通知） */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  z-index: 9999;
  background: rgba(18, 32, 64, 0.95);
  color: #fff;
  border-radius: 9999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 24px rgba(18,32,64,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.u-visuallyHidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
