/* ============================================
   CFO Quiz - Responsive Styles
   Static Resource name: cxo_quiz_style
   ============================================ */

/* --- Outer wrapper --- */
.cxo-wrap {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 0;
  color: #333333;
  font-family: Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  line-height: 1.8;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: cxo;
}

/* --- Page title --- */
.cxo-title-wrap {
  container-type: inline-size;
  container-name: cxo-title;
}

.cxo-title-main {
  font-size: 28px;
  font-weight: bold;
}

.cxo-title-sub {
  margin: 0;
  font-size: 26px;
  font-weight: bold;
}

@container cxo-title (max-width: 350px) {
  .cxo-title-main {
    font-size: 18px !important;
  }
  .cxo-title-sub {
    font-size: 17px !important;
  }
}


/* --- Quiz block --- */
.cxo-quiz-block {
  background: #eaf4fb;
  padding: 40px 60px;
  border-radius: 6px;
  margin-bottom: 48px;
}

.cxo-quiz-label {
  background: #2574a9;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
  margin: 0 auto 22px;
  max-width: 720px;
}

.cxo-quiz-source-title {
  text-align: center;
  color: #0f3b5c;
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 10px;
}

.cxo-quiz-source-img {
  display: block;
  max-width: 460px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.cxo-quiz-source-date {
  max-width: 460px;
  margin: 6px auto 24px;
  text-align: right;
  font-size: 13px;
  color: #555555;
}

.cxo-quiz-question {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* --- Choice pills --- */
.cxo-choice {
  background: #ffffff;
  border-radius: 999px;
  padding: 14px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cxo-choice-letter {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2574a9;
  color: #ffffff;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  font-weight: bold;
}

.cxo-choice-text {
  font-size: 15px;
  line-height: 1.6;
}

/* --- Answer toggle --- */
.cxo-details {
  margin-top: 24px;
}

.cxo-summary {
  font-size: 17px;
  cursor: pointer;
  text-align: center;
  color: #2574a9;
  font-weight: bold;
  list-style: none;
  padding: 8px 0;
}

.cxo-summary::-webkit-details-marker { display: none; }

.cxo-explanation-heading {
  margin-top: 24px;
  color: #0f4f78;
  font-size: 18px;
  font-weight: bold;
}

.cxo-explanation-body {
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.8;
}

.cxo-more-btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: 999px;
  background: #0f4f78;
  color: #ffffff !important;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  box-sizing: border-box;
  margin-top: 28px;
}

.cxo-more-btn:link,
.cxo-more-btn:visited,
.cxo-more-btn:hover,
.cxo-more-btn:active {
  color: #ffffff !important;
  text-decoration: none;
}

/* --- Inner max-width wrapper --- */
.cxo-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

/* --- Section --- */
.cxo-section {
  margin-top: 48px;
}

.cxo-section-title {
  color: #0f4f78;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* --- Check list --- */
.cxo-check-list {
  font-size: 16px;
  font-weight: bold;
}

.cxo-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.cxo-check-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2574a9;
  color: #ffffff;
  text-align: center;
  line-height: 26px;
  font-size: 17px;
  font-weight: bold;
}

.cxo-section-img {
  display: block;
  max-width: 520px;
  width: 100%;
  height: auto;
  margin: 32px auto 0;
}

/* --- Blue bg sections --- */
.cxo-blue-bg {
  background: #eaf4fb;
  padding: 40px 24px;
  border-radius: 6px;
  margin-top: 48px;
}

.cxo-section-text {
  font-size: 16px;
  line-height: 1.8;
}

/* --- Field pills --- */
.cxo-fields-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.cxo-field-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 190px !important;
  min-height: 56px !important;
  padding: 8px 14px !important;
  background: #2574a9 !important;
  border-radius: 26px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-align: center !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

/* --- Badge grid --- */
.cxo-badge-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  margin-top: 24px !important;
  align-items: center !important;
}

.cxo-badge-grid img {
  width: 150px !important;
  height: 150px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
}

.cxo-badge-grid img:last-child {
  width: 165px !important;
  height: 165px !important;
}

/* --- Bullet section --- */
.cxo-bullet-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: bold;
  margin-top: 14px;
}

.cxo-bullet-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2574a9;
  flex-shrink: 0;
}

.cxo-bullet-list {
  padding-left: 22px;
  font-size: 15px;
}

.cxo-bullet-list div {
  margin-bottom: 2px;
}

/* --- Steps --- */
.cxo-steps-bg {
  background: #eaf4fb;
  padding: 40px 24px 80px;
  border-radius: 6px;
  margin-top: 48px;
}

.cxo-steps-card {
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 6px;
  margin-top: 22px;
}

.cxo-step-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}

.cxo-step-row:last-child {
  margin-bottom: 0;
}

.cxo-step-num {
  flex-shrink: 0;
  color: #2385bd;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  min-width: 64px;
  font-size: 13px;
}

.cxo-step-num span {
  font-size: 22px;
  display: block;
}

.cxo-step-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.cxo-step-text {
  font-size: 15px;
  line-height: 1.6;
}

.cxo-step-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 20px;
  border-radius: 999px;
  background: #0f3b5c;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 15px;
  max-width: 200px;
}

.cxo-step-btn:link,
.cxo-step-btn:visited,
.cxo-step-btn:hover,
.cxo-step-btn:active {
  color: #ffffff !important;
  text-decoration: none;
}

/* ============================================
   スマホ用スタイル（コンテナ幅350px以下）
   ============================================ */
@container cxo (max-width: 350px) {

  .cxo-wrap {
    padding: 16px 12px 0;
  }

  .cxo-quiz-block {
    padding: 20px 12px;
  }

  .cxo-quiz-label {
    font-size: 16px;
  }

  .cxo-quiz-question {
    font-size: 15px;
  }

  .cxo-choice {
    border-radius: 14px;
    padding: 12px;
  }

  .cxo-choice-text {
    font-size: 14px;
  }

  .cxo-more-btn {
    font-size: 16px;
    padding: 12px 16px;
  }

  .cxo-section-title {
    font-size: 17px;
  }

  .cxo-check-list {
    font-size: 14px;
  }

  .cxo-section-text {
    font-size: 14px;
  }

  .cxo-field-pill {
    width: 120px;
    font-size: 12px;
    min-height: 48px;
  }

  .cxo-badge-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .cxo-badge-grid img {
    width: 100px !important;
    height: 100px !important;
  }

  .cxo-badge-grid img:last-child {
    width: 110px !important;
    height: 110px !important;
  }

  .cxo-steps-bg {
    padding: 24px 12px 48px;
  }

  .cxo-steps-card {
    padding: 20px 16px;
  }

  .cxo-step-row {
    gap: 12px;
    margin-bottom: 24px;
  }

  .cxo-step-title {
    font-size: 15px;
  }

  .cxo-step-text {
    font-size: 13px;
  }

  .cxo-step-btn {
    font-size: 13px;
    padding: 6px 16px;
  }

  .cxo-blue-bg {
    padding: 24px 12px;
  }

}

/* ============================================
   このページ（executive-quiz）限定：
   ログアウト時はヘッダー行全体（ホームアイコン／検索バー／
   ログインリンクなどを含む帯）を丸ごと非表示にする。
   ログイン時はヘッダーが通常通り表示される。
   （@container の外に置くことで、画面幅に関わらず常に適用されます）
   ============================================ */
.comm-page-custom-executive-quiz:has(.login-link) #header-overlay {
  display: none;
}
