/* ============================================================
 * HP共通スタイル
 * ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Roboto+Condensed:wght@700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-font-base);
  background: var(--color-white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- Layout ---- */
.page-wrap {
  padding: 80px 0 140px;
  display: flex;
  justify-content: center;
}

.page-inner {
  width: 1200px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Title Banner ---- */
.title-banner {
  background: var(--color-main);
  border-radius: 90px;
  padding: 20px;
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.title-banner h1 {
  font-size: 50px;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.4;
}

/* ---- AI Comment Badge ---- */
.ai-comment-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent-orange);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 5px 20px;
  border-radius: 90px;
  position: relative;
}

.ai-comment-badge::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-accent-orange);
}

/* ---- AI Comment Box ---- */
.ai-comment-box {
  background: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: 20px;
  padding: 30px 40px;
  position: relative;
  width: 100%;
}

.ai-comment-box .ai-comment-badge {
  position: absolute;
  top: -16px;
  left: 28px;
}

.ai-comment-box p {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

/* ---- Section Heading (green pill) ---- */
.section-heading {
  background: var(--color-main);
  border-radius: 90px;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.section-heading span {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}

/* ---- Chart Area ---- */
.chart-area {
  background: var(--color-base);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
}

.chart-area .chart-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.chart-area .chart-canvas-wrap {
  width: 440px;
  height: 370px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-area .chart-legend {
  flex: 1;
  background: var(--color-white);
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Score Item ---- */
.score-item {
  display: flex;
  flex-direction: column;
}

.score-item .score-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  padding-bottom: 5px;
  position: relative;
}

.score-item .score-label::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-main);
}

.score-item .score-label strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-deep);
}

.score-item .score-desc {
  font-size: 14px;
  color: var(--color-font-base);
  line-height: 1.4;
}

/* ---- Match Badge ---- */
.match-badge {
  background: var(--color-base-3);
  border-radius: 5px;
  padding: 10px 0;
  width: 174px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-deep);
  flex-shrink: 0;
}

.match-percent {
  font-family: var(--font-roboto-condensed);
  font-weight: 700;
  color: var(--color-main);
  line-height: 1.4;
}

.match-percent-lg {
  font-size: 120px;
}

.match-percent-lg .unit {
  font-size: 80px;
}

.match-percent-md {
  font-size: 40px;
}

/* ---- Other Jobs Section ---- */
.other-jobs {
  width: 100%;
}

.other-jobs-header {
  background: var(--color-secondary-10);
  border-radius: 10px 10px 0 0;
  padding: 10px 20px;
  text-align: center;
}

.other-jobs-header span {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-secondary-30);
}

.other-jobs-body {
  background: var(--color-secondary-20);
  border-radius: 0 0 10px 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-row {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0px 5px 10px 0px rgba(0, 72, 99, 0.05);
  overflow: hidden;
}

.job-row-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  cursor: pointer;
}

.job-row-name {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  border-right: 1px solid var(--color-line);
  padding-right: 20px;
}

.job-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Buttons ---- */
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(to right, var(--color-btn-blue-from), var(--color-btn-blue-to));
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  padding: 6px 14px 6px 36px;
  border-radius: 20px;
  box-shadow: var(--shadow-btn-1);
  border: none;
  cursor: pointer;
  width: 140px;
  position: relative;
  white-space: nowrap;
}

.btn-blue .icon-plus {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.btn-blue.is-open {
  background: linear-gradient(to right, #737373, #3d4140);
}

.btn-blue.is-open .btn-label::before {
  content: '閉じる';
}

.btn-blue:not(.is-open) .btn-label::before {
  content: '評価を見る';
}

.btn-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: linear-gradient(to bottom, #FF7F00, #DD4B0D);
  color: var(--color-white);
  padding: 40px 30px 30px;
  border-radius: 999px;
  box-shadow: 0px 10px 30px 0px rgba(31, 31, 31, 0.2);
  width: 700px;
  position: relative;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-cta .cta-sub {
  font-size: 14px;
  font-weight: 900;
}

.btn-cta .cta-main {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
}

.btn-cta .cta-inner-btn {
  background: var(--color-white);
  color: var(--color-main);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 40px;
  border-radius: 50px;
}

.btn-cta .cta-arrow {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-accent-orange);
}

.btn-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #737373, #3d4140);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.2);
  width: 280px;
  border: none;
  cursor: pointer;
}

/* ---- Speech Bubbles (CTA area) ---- */
.cta-bubbles {
  position: relative;
  width: 700px;
  height: 50px;
  margin-bottom: 20px;
}

.cta-bubble {
  position: absolute;
  background: var(--color-accent-yellow);
  color: var(--color-accent-brown);
  font-size: 18px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 99px;
  box-shadow: var(--shadow-box-1);
  white-space: nowrap;
}

.cta-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid var(--color-accent-yellow);
}

.cta-bubble.left {
  left: 90px;
}

.cta-bubble.left::after {
  right: 30px;
}

.cta-bubble.right {
  right: 90px;
}

.cta-bubble.right::after {
  left: 30px;
}

/* ---- Job Detail (Accordion) ---- */
.job-detail {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--color-line);
}

.job-detail.is-open {
  display: block;
}

.job-detail .ai-comment-box {
  margin-bottom: 20px;
}

.job-detail .chart-area {
  margin-bottom: 0;
}

/* ---- Result Hero ---- */
.result-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding-bottom: 40px;
  width: 100%;
}

.result-hero .illust {
  width: 200px;
  height: 275px;
  flex-shrink: 0;
  position: relative;
}

.result-hero .illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-card {
  background: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: 30px;
  box-shadow: 0px 4px 20px 0px rgba(24, 70, 33, 0.1);
  padding: 30px 40px;
  position: relative;
}

.result-card .label {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
}

.result-card .job-name-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 30px;
}

.result-card .job-name {
  font-size: 50px;
  font-weight: 900;
  color: var(--color-accent-orange);
  line-height: 1;
}

.result-card .job-name-suffix {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 4px;
}

.result-card .match-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-card .triangle {
  color: var(--color-main);
  font-size: 30px;
}

/* ---- Notice Text ---- */
.notice-text {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 70px;
}

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.modal-box .modal-title {
  background: var(--color-main);
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-box .modal-desc {
  font-size: 18px;
  margin-bottom: 30px;
}

.modal-box .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.modal-box .modal-actions .btn-gray {
  width: auto;
  padding: 14px 40px;
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--color-btn-orange-from), var(--color-btn-orange-to));
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0px 10px 20px -10px rgba(217, 103, 4, 0.5);
}

/* ---- Loading ---- */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.loading-overlay.is-open {
  display: flex;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-base-3);
  border-top-color: var(--color-main);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-deep);
}

/* ============================================================
 * レスポンシブ対応 (max-width: 750px)
 * ============================================================ */
@media screen and (max-width: 750px) {
  /* ---- Layout ---- */
  .page-wrap {
    padding: 40px 0 80px;
  }

  .page-inner {
    width: 100%;
    padding: 0 16px;
  }

  /* ---- Title Banner ---- */
  .title-banner {
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 20px;
  }

  .title-banner h1 {
    font-size: 24px;
  }

  /* ---- Result Hero ---- */
  .result-hero {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
  }

  .result-hero .illust {
    width: 120px;
    height: 165px;
  }

  .result-card {
    padding: 20px;
  }

  .result-card .job-name {
    font-size: 28px;
  }

  .result-card .job-name-suffix {
    font-size: 16px;
  }

  .result-card .job-name-line {
    margin-bottom: 16px;
  }

  .result-card .match-line {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .match-badge {
    width: auto;
    font-size: 14px;
    padding: 8px 14px;
  }

  .match-percent-lg {
    font-size: 60px;
  }

  .match-percent-lg .unit {
    font-size: 40px;
  }

  /* ---- AI Comment Box ---- */
  .ai-comment-box {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .ai-comment-box p {
    font-size: 15px;
  }

  /* ---- Chart Area ---- */
  .chart-area {
    padding: 20px 12px;
  }

  .chart-area .chart-content {
    flex-direction: column;
    gap: 16px;
  }

  .chart-area .chart-canvas-wrap {
    width: 100%;
    height: 280px;
  }

  .chart-area .chart-legend {
    padding: 16px;
  }

  /* ---- Score Item ---- */
  .score-item .score-label strong {
    font-size: 14px;
  }

  .score-item .score-desc {
    font-size: 13px;
  }

  /* ---- Other Jobs ---- */
  .job-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  .job-row-name {
    font-size: 16px;
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 8px;
    width: 100%;
  }

  .job-row-info {
    width: 100%;
    justify-content: space-between;
  }

  .btn-blue {
    width: auto;
    font-size: 14px;
    padding: 6px 14px 6px 30px;
  }

  .job-detail {
    padding: 16px;
  }

  /* ---- CTA ---- */
  .cta-bubbles {
    width: 100%;
    height: 40px;
    margin-bottom: 16px;
  }

  .cta-bubble {
    font-size: 13px;
    padding: 8px 12px;
  }

  .cta-bubble.left {
    left: 0;
  }

  .cta-bubble.right {
    right: 0;
  }

  .btn-cta {
    width: 100%;
    padding: 24px 20px 20px;
  }

  .btn-cta .cta-sub {
    font-size: 12px;
  }

  .btn-cta .cta-main {
    font-size: 20px;
  }

  .btn-cta .cta-inner-btn {
    font-size: 15px;
    padding: 6px 24px;
  }

  .btn-cta .cta-arrow {
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .btn-gray {
    width: 100%;
    font-size: 16px;
  }

  .notice-text {
    padding-bottom: 40px;
    font-size: 13px;
  }

  /* ---- Modal ---- */
  .modal-box {
    padding: 24px 20px;
  }

  .modal-box .modal-title {
    font-size: 18px;
    padding: 12px 16px;
  }

  .modal-box .modal-desc {
    font-size: 15px;
  }

  .modal-box .modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .modal-box .modal-actions .btn-gray {
    width: 100%;
    padding: 12px 20px;
  }

  .btn-orange {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
  }
}
