/* =========================================================
   Reiwa Zaitaku - カンタン相談チェック（第一審査）独立ページ
   ・共通トーン: public/legal/assets/legal.css と同じ
     デザイントークン・ヘッダー/フッター/CTAスタイルを使用。
   ・診断カード自体のスタイルは public/index.html の
     .check-section 系と統一（コピー元）。
   ========================================================= */
@import url("../../legal/assets/legal.css");

:root{
  --radius:12px;
  --radius-lg:18px;
  --shadow-md:0 6px 24px rgba(16,36,62,.08);
  --max:1160px;
}

/* ================= Page hero（診断ページ用） ================= */
.check-page-hero{
  padding:44px 0 8px;
  background:linear-gradient(180deg, #FBFBFC 0%, #FFFFFF 100%);
}
.check-page-hero .container{max-width:820px}

/* ================= Simple Check（カンタン相談チェック / 第一審査） ================= */
.check-section{padding:24px 0 64px}
.check-section .container{max-width:820px}

.check-card{
  max-width:720px;margin:0 auto;
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  padding:36px 40px;
}
@media (max-width:720px){
  .check-card{padding:24px 20px;border-radius:var(--radius)}
}

/* ---- 入力フォーム ---- */
.check-form-grid{display:flex;flex-direction:column;gap:22px}
.check-field{display:flex;flex-direction:column;gap:10px}
.check-field .check-label{
  font-family:var(--serif);font-weight:700;font-size:14.5px;color:var(--main);
  display:flex;align-items:center;gap:8px;
}
.check-field .check-label .step-badge{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;
  background:var(--main);color:#fff;font-family:var(--sans);font-weight:700;font-size:11.5px;
  flex-shrink:0;
}
.check-radio-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.check-radio-row label{
  display:flex;align-items:center;justify-content:center;
  border:1.5px solid var(--line);border-radius:var(--radius);
  padding:13px 10px;font-size:14.5px;font-weight:500;color:var(--text);
  cursor:pointer;transition:all .15s ease;text-align:center;
}
.check-radio-row input{position:absolute;opacity:0;pointer-events:none}
.check-radio-row label:hover{border-color:var(--main)}
.check-radio-row label.is-checked{
  border-color:var(--main);background:var(--main);color:#fff;font-weight:700;
}
.check-field select{
  width:100%;padding:13px 14px;font-size:14.5px;font-family:inherit;color:var(--text);
  border:1.5px solid var(--line);border-radius:var(--radius);background:#fff;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6B7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:18px;
}
.check-field select:focus{outline:none;border-color:var(--main)}
.check-error-msg{
  display:none;color:#B3261E;font-size:12.5px;font-weight:500;margin-top:-4px;
}
.check-field.has-error select,
.check-field.has-error .check-radio-row label{border-color:#B3261E}
.check-field.has-error .check-error-msg{display:block}

.check-submit-row{margin-top:6px}
.check-submit-row .btn{width:100%;justify-content:center;font-size:16px;min-height:56px}

/* ---- 演出画面 ---- */
.check-loading{display:none;text-align:center;padding:20px 0}
.check-loading.active{display:block}
.check-spinner{
  width:52px;height:52px;margin:0 auto 24px;
  border:4px solid var(--line);border-top-color:var(--main);border-radius:50%;
  animation:check-spin 1s linear infinite;
}
@keyframes check-spin{to{transform:rotate(360deg)}}
.check-loading-list{display:flex;flex-direction:column;gap:14px;max-width:340px;margin:0 auto}
.check-loading-item{
  display:flex;align-items:center;gap:10px;font-size:14px;color:var(--sub);
  opacity:0;transform:translateY(4px);transition:opacity .4s ease,transform .4s ease,color .4s ease;
}
.check-loading-item.active,.check-loading-item.done{opacity:1;transform:none}
.check-loading-item.done{color:var(--main);font-weight:500}
.check-loading-item .ic{
  width:20px;height:20px;flex-shrink:0;border-radius:50%;
  border:2px solid var(--line);display:flex;align-items:center;justify-content:center;
  transition:all .3s ease;
}
.check-loading-item.active .ic{border-color:var(--main)}
.check-loading-item.done .ic{background:var(--tel);border-color:var(--tel)}
.check-loading-item .ic svg{width:11px;height:11px;opacity:0;transition:opacity .2s ease}
.check-loading-item.done .ic svg{opacity:1}

/* ---- 結果画面 ---- */
.check-result{display:none;text-align:center}
.check-result.active{display:block}
.check-result-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:#E6F2ED;color:var(--tel);
  padding:9px 18px;border-radius:100px;
  font-weight:700;font-size:14px;margin-bottom:14px;
}
.check-result-badge svg{width:16px;height:16px}
.check-result h3{
  font-family:var(--serif);font-weight:700;font-size:24px;color:var(--main);margin:0 0 22px;
}
.check-result-info{
  text-align:left;background:var(--bg-2);border-radius:var(--radius);
  padding:18px 20px;margin-bottom:18px;display:flex;flex-direction:column;gap:9px;
}
.check-result-info .row{display:flex;justify-content:space-between;font-size:13.5px;gap:12px}
.check-result-info .row .k{color:var(--sub)}
.check-result-info .row .v{color:var(--text);font-weight:700;text-align:right}
.check-result-points{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:22px;
}
.check-result-points span{
  display:flex;align-items:center;gap:6px;
  font-size:12.5px;color:var(--main);font-weight:500;
  background:var(--bg-2);padding:7px 12px;border-radius:100px;
}
.check-result-points svg{width:13px;height:13px;color:var(--tel);flex-shrink:0}

.check-articles{
  text-align:left;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;margin-bottom:22px;
}
.check-articles-head{
  background:var(--bg-2);padding:11px 16px;font-size:12.5px;font-weight:700;color:var(--main);
  display:flex;align-items:center;gap:7px;
}
.check-articles-head svg{width:14px;height:14px}
.check-articles-list{display:flex;flex-direction:column}
.check-articles-list a{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 16px;font-size:13.5px;color:var(--text);
  border-top:1px solid var(--line);transition:background .15s ease;
}
.check-articles-list a:hover{background:var(--bg-2);color:var(--main)}
.check-articles-list a .arrow{color:var(--sub);flex-shrink:0}

.check-result-ctas{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.check-result-ctas .btn{width:100%;justify-content:center}
.check-result-note{font-size:11.5px;color:var(--sub);line-height:1.7;margin:0}
.check-restart{
  display:inline-block;margin-top:14px;font-size:12.5px;color:var(--sub);
  text-decoration:underline;cursor:pointer;background:none;border:none;
}

.check-disclaimer{
  max-width:720px;margin:18px auto 0;text-align:center;
  font-size:11.5px;color:var(--sub);line-height:1.8;
}
.check-disclaimer a{color:var(--sub);text-decoration:underline}

@media (max-width:520px){
  .check-radio-row{grid-template-columns:1fr}
  .check-result-points{flex-direction:column;align-items:stretch}
}
