
:root{
  --bg:#f7f6f2;--card:#fff;--text:#232323;--muted:#6b6b67;
  --line:#e7e4dc;--accent:#D8893B;--soft:#eef3f0;--warm:#f5efe4;
}
*{box-sizing:border-box}
html{font-size:16px}
body{
  margin:0;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",
  "Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;
}
.container{max-width:720px;margin:0 auto;padding:12px 12px 32px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;margin:12px 0}
.hero{padding:20px 18px}
.eyebrow{font-size:13px;color:var(--muted);font-weight:700;letter-spacing:.04em;margin-bottom:6px}
h1{font-size:27px;line-height:1.35;margin:4px 0 10px}
h2{font-size:21px;line-height:1.45;margin:0 0 12px}
h3{font-size:17px;line-height:1.5;margin:16px 0 6px}
p{font-size:16px;line-height:1.75;margin:8px 0}
.lead{font-size:18px;line-height:1.65}
.muted{color:var(--muted)}
.big-score{font-size:58px;font-weight:800;line-height:1;margin:10px 0 4px}
.score-note{font-size:13px;line-height:1.6;color:var(--muted);margin-top:10px}
.btn{display:block;width:100%;min-height:52px;padding:14px 16px;border:0;border-radius:14px;background:var(--accent);color:#fff;font-size:17px;font-weight:700;text-decoration:none;text-align:center;margin:10px 0;cursor:pointer}
.btn.sub{background:#eceae4;color:#222}
.answers{display:grid;gap:10px}
.answer{display:flex;gap:12px;align-items:center;min-height:58px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;font-size:16px;line-height:1.5}
.answer input{width:22px;height:22px;flex:0 0 auto}
.progress{height:9px;background:#e8e6e0;border-radius:10px;overflow:hidden;margin:14px 0 20px}
.progress>div{height:100%;background:var(--accent)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.metric{background:#f4f3ef;border:1px solid var(--line);border-radius:14px;padding:14px}
.metric .label{font-size:14px;color:var(--muted)}
.metric b{display:block;font-size:28px;margin-top:4px}
.notice{padding:14px;border-radius:14px;background:var(--soft);line-height:1.7}
.warm{background:var(--warm)}
.warn{background:#fff1e8}
.nav{display:flex;justify-content:space-between;gap:10px;align-items:center}
.small{font-size:13px;line-height:1.6}
.result-type{font-size:26px;font-weight:800;line-height:1.35;margin:6px 0}
.subtype{font-size:15px;color:var(--muted);margin-bottom:12px}
.rank-card{padding:14px 0;border-bottom:1px solid var(--line)}
.rank-card:last-child{border-bottom:0}
.rank-no{display:inline-flex;width:28px;height:28px;border-radius:50%;align-items:center;justify-content:center;background:var(--soft);font-weight:800;margin-right:6px}
.action-card{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:14px;margin:10px 0;background:#fff}
.action-no{display:flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;font-weight:800}
.action-text{font-size:16px;line-height:1.65;font-weight:700}
details{border-top:1px solid var(--line);padding:12px 0}
details:first-of-type{border-top:0}
summary{cursor:pointer;font-weight:700;font-size:16px;line-height:1.5}
.evidence-source{font-size:13px;color:var(--muted);margin-top:4px}
.evidence-link{display:inline-block;margin-top:7px;font-size:14px;font-weight:700}
.weight-row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.weight-row:last-child{border-bottom:0}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:9px 7px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}
input,select{width:100%;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:12px;font-size:16px;background:#fff}
.desktop-only{display:block}

@media(max-width:600px){
  .container{padding:8px 10px 28px}
  .card{padding:16px;margin:10px 0;border-radius:16px}
  .hero{padding:18px 16px}
  h1{font-size:25px}
  h2{font-size:20px}
  h3{font-size:16px}
  p{font-size:16px;line-height:1.7}
  .big-score{font-size:54px}
  .grid{grid-template-columns:1fr 1fr;gap:8px}
  .metric{padding:12px}
  .metric b{font-size:25px}
  .result-type{font-size:24px}
  table{display:block;overflow-x:auto;white-space:nowrap}
}

.mini-list{display:grid;gap:8px;margin:16px 0;font-size:15px;font-weight:700}
.metric-note{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.35}
.finish-card{text-align:left}
.admin-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:10px 2px 2px}
.admin-head h1{margin:0}.admin-export,.back-link{font-size:14px;font-weight:800;color:var(--accent);text-decoration:none;padding:10px 4px}
.admin-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.stat-box{background:#f4f3ef;border:1px solid var(--line);border-radius:14px;padding:13px}
.stat-box span{display:block;font-size:12px;color:var(--muted);font-weight:700}.stat-box b{display:block;font-size:26px;margin-top:4px}
.section-title{display:flex;align-items:end;justify-content:space-between;padding:8px 4px 0}
.person-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px;margin:10px 0}
.person-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.person-no{font-size:12px;color:var(--muted);font-weight:700}
.person-card h3{font-size:20px;margin:3px 0 8px}.status-badge{display:inline-block;font-size:12px;font-weight:800;border-radius:999px;padding:6px 9px;white-space:nowrap}
.status-completed{background:#eaf3ee;color:#315c4f}.status-in_progress{background:#fff1d8;color:#7a5714}.status-not_started{background:#efefef;color:#666}
.person-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.person-grid>div{background:#f6f5f1;border-radius:12px;padding:10px}
.person-grid span,.person-result span{display:block;font-size:12px;color:var(--muted);font-weight:700}.person-grid b{display:block;font-size:16px;margin-top:3px}
.person-result{background:var(--warm);border-radius:13px;padding:12px;margin:8px 0 12px}.person-result b{display:block;font-size:17px;line-height:1.45;margin:3px 0}
.person-result small{display:block;color:var(--muted);line-height:1.5}.admin-detail-btn{min-height:46px;font-size:15px;margin:0}
.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-meta span{display:block;font-size:12px;color:var(--muted);font-weight:700}
.detail-meta b{display:block;font-size:14px;line-height:1.45;margin-top:3px;word-break:break-word}.detail-score{font-size:52px;font-weight:800;line-height:1}.detail-score span{font-size:16px}
.detail-result{margin-top:14px}.tag-wrap{display:flex;flex-wrap:wrap;gap:8px}.interest-tag{display:inline-flex;border-radius:999px;padding:8px 10px;font-size:13px;font-weight:800;background:#f1f1ed}
.level-3{background:#e7f1ec;color:#315c4f}.level-2{background:#f4efe2;color:#6b5626}.level-1{background:#f1f1ed;color:#666}
.answer-list{margin-top:8px}.answer-row{padding:12px 0;border-bottom:1px solid var(--line)}.answer-row:last-child{border-bottom:0}
.answer-q{font-size:14px;line-height:1.55;font-weight:700}.answer-value{font-size:13px;color:var(--muted);margin-top:4px}
@media(max-width:600px){.admin-stats{grid-template-columns:repeat(2,1fr)}.stat-box:last-child{grid-column:span 2}.detail-meta{grid-template-columns:1fr 1fr}}

.finish-card{text-align:left}


/* Ver.1.3.1: 開閉箇所を見落としにくくする */
summary.attention-summary{
  color:#c62828;
  font-weight:800;
}
summary.attention-summary::marker{
  color:#c62828;
}
summary.attention-summary::-webkit-details-marker{
  color:#c62828;
}

.compare-box{margin-top:14px;padding:13px;border-radius:14px;background:#f7f3ea;border:1px solid var(--line)}
.compare-box p{margin-bottom:0}.compare-box.peer{background:#f2f6f2}
.related-box,.solution-box{margin-top:10px;padding:11px 12px;border-radius:12px}
.related-box{background:#f5f4f0}.solution-box{background:#eef5ef}
.related-box b,.solution-box b{font-size:13px}.related-box p,.solution-box p{margin:4px 0 0;font-size:14px;line-height:1.65}
summary.attention-summary{color:#c62828;font-weight:800}
summary.attention-summary::marker{color:#c62828}
summary.attention-summary::-webkit-details-marker{color:#c62828}
.finish-card{text-align:left}
form label+select, form select+label, form input+label{margin-top:12px}

:root{--cream:#F8F2E8;--cream2:#F3E5D3;--orange:#D8893B;--orange-dark:#B9682D;--brown:#5E412F;--brown-soft:#7B5B45}
body{background:var(--cream)} h1,h2,h3{color:var(--brown)}
.top-title{color:var(--brown)} .top-title:after{content:"";display:block;width:72px;height:4px;border-radius:999px;background:var(--orange);margin-top:10px}
.deep-badge{display:inline-block;background:var(--cream2);color:var(--orange-dark);font-weight:800;border-radius:999px;padding:7px 11px;margin:8px 0 12px}
.top-categories{font-weight:700;color:var(--brown-soft);margin:12px 0 18px}.price-box{background:#F5E9D7}
.btn,.top-cta{background:var(--orange);color:#fff}.btn:hover{background:var(--orange-dark)}
summary.attention-summary{color:var(--orange-dark);font-weight:800} summary.attention-summary::marker{color:var(--orange-dark)}
.admin-export,.back-link{color:var(--orange-dark)} .stat-box{background:#F7EBDD}.stat-box b{color:var(--orange-dark)}
.person-result{background:#F7EBDD}.person-meta-line{font-size:13px;color:var(--brown-soft);margin:4px 0}
.segment-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.segment-card{border:1px solid #E6D6C5;background:#FFF9F2;border-radius:14px;padding:12px}
.segment-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.segment-level{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:999px;font-weight:900}
.level-高{background:#F4D1AD;color:#8A4B1F}.level-中{background:#F6E5D1;color:#9A6B3D}.level-低{background:#EEE7DF;color:#776B62}
.segment-score{font-size:12px;color:var(--brown-soft);margin-top:6px}.deep-result-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.deep-result-row span{font-size:13px;color:var(--muted)}.deep-result-row b{text-align:right;color:var(--brown)}
.finish-card{text-align:left}
@media(max-width:600px){.segment-grid{grid-template-columns:1fr}}

.card.warn{background:#FCE7CF;border:2px solid #D8893B;box-shadow:0 4px 14px rgba(94,65,47,.08)}
.card.warn .eyebrow{color:#A95F25}.card.warn h2{color:#6A4027}.card.warn p{color:#4F3B2E}
.venue-setting-card{background:#FFF8EF;border:2px solid #E7C39D}.admin-setting-btn{margin-top:16px}

/* Ver.1.6.1: 管理画面の保存操作を明確化 */
.save-success{
  background:#F4D5B2;
  border:2px solid #D8893B;
  color:#6A4027;
  font-weight:800;
  border-radius:14px;
  padding:13px 15px;
  margin:10px 0 14px;
}
.current-setting-box{
  background:#F8EBDD;
  border:1px solid #E3C39F;
  border-radius:12px;
  padding:12px 14px;
  margin:12px 0 16px;
  color:#5E412F;
  font-size:14px;
  line-height:1.7;
}
.current-setting-title{
  font-weight:900;
  color:#B9682D;
  margin-bottom:4px;
}
.admin-setting-btn{
  width:100%;
  cursor:pointer;
  border:none;
  appearance:none;
  -webkit-appearance:none;
  touch-action:manipulation;
}
.admin-setting-btn:active{
  transform:translateY(1px);
  opacity:.88;
}

/* Ver.1.6.2 結果画面：自己評価・自己満足度 */
.self-title{font-size:15px;font-weight:800;color:#7B5B45;margin:12px 0 4px}
.satisfaction-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:4px 0 14px}
.satisfaction-label{font-size:28px;font-weight:900;line-height:1.25;color:#5E412F}
.satisfaction-number{font-size:44px;line-height:1;font-weight:900;color:#D8893B;white-space:nowrap}
.satisfaction-number span{font-size:18px;color:#7B5B45;margin-left:2px}
.satisfaction-meter{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;margin:8px 0 14px}
.meter-segment{height:15px;border-radius:999px;background:#E9DDD0;border:1px solid #DDCBB8}
.meter-segment.active{background:#D8893B;border-color:#D8893B}
.satisfaction-message{margin:10px 0 6px;color:#4F3B2E;font-weight:700;line-height:1.7}
.top-title::after,.top-title:after{display:none!important;content:none!important}
@media(max-width:600px){
  .satisfaction-label{font-size:24px}
  .satisfaction-number{font-size:40px}
  .satisfaction-meter{gap:4px}
}

/* Ver.1.6.3：4項目を2×2カードで表示 */
.check-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:12px 0;
}
.check-card{
  background:#FFF8EF;
  border:1px solid #E4CDB4;
  border-radius:14px;
  padding:12px;
  min-width:0;
}
.check-name{font-size:15px;font-weight:900;color:#5E412F}
.check-label{font-size:13px;font-weight:800;color:#B9682D;margin:3px 0 8px}
.mini-meter{
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:2px;
}
.mini-meter span{
  height:8px;
  border-radius:999px;
  background:#E9DDD0;
}
.mini-meter span.active{background:#D8893B}
.check-level{
  margin-top:5px;
  text-align:right;
  font-size:12px;
  color:#7B5B45;
  font-weight:800;
}

/* 総合結果への影響 */
.impact-title{
  margin-top:14px;
  font-size:14px;
  font-weight:900;
  color:#5E412F;
}
.impact-list{margin:8px 0}
.impact-row{margin:11px 0}
.impact-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:5px;
}
.impact-name{font-weight:900;color:#5E412F}
.impact-label{
  min-width:30px;
  text-align:center;
  border-radius:999px;
  padding:3px 8px;
  font-size:12px;
  font-weight:900;
}
.impact-高{background:#F4D1AD;color:#8A4B1F}
.impact-中{background:#F6E5D1;color:#9A6B3D}
.impact-低{background:#EEE7DF;color:#776B62}
.impact-meter{
  height:12px;
  background:#E9DDD0;
  border-radius:999px;
  overflow:hidden;
}
.impact-meter span{
  display:block;
  height:100%;
  background:#D8893B;
  border-radius:999px;
}
@media(max-width:420px){
  .check-card{padding:10px}
  .check-name{font-size:14px}
  .check-label{font-size:12px}
}


/* Ver.1.7.2: 5年後の見た目診断結果 */
.future-result-box{
  margin:16px 0 20px;
  padding:18px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #f1d4b6;
}
.future-result-title{
  font-size:22px;
  font-weight:800;
  color:#4a2d1f;
  margin-bottom:10px;
}
.future-result-lead{
  margin:0 0 8px;
  font-size:15px;
  color:#5e5149;
}
.future-result-answer{
  font-size:21px;
  line-height:1.55;
  font-weight:800;
  color:#a84f12;
}
.future-result-note{
  margin:10px 0 0;
  font-size:12px;
  line-height:1.6;
  color:#75675f;
}

/* Ver.1.8.0 */
.admin-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.test-badge{display:inline-block;font-size:11px;padding:3px 7px;border-radius:999px;background:#efe8df;color:#6d5848}
.test-person-card{border-style:dashed;opacity:.92}
.admin-score-summary{display:flex;align-items:baseline;gap:12px;margin:12px 0 8px}
.admin-score-summary b{font-size:30px}.admin-score-summary span{font-weight:700}
.venue-public-box{margin-top:14px}.admin-login-card{max-width:520px;margin:40px auto}
.metric small{display:block;margin-top:4px;color:#75675f}
@media(max-width:640px){.admin-actions{justify-content:flex-start}}


/* Ver.1.8.1 */
.detail-fold{
  margin:18px 0;
}
.detail-fold-summary{
  cursor:pointer;
  font-weight:800;
  font-size:17px;
  padding:16px 18px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #f1d4b6;
  color:#6b3c20;
}
.detail-fold[open] .detail-fold-summary{
  margin-bottom:14px;
}
.detail-fold-body .card{
  margin-top:12px;
}


/* Ver.1.8.2 管理者結果プレビュー */
.admin-row-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-preview-btn{background:#fff7ed;color:#8b4513;border:1px solid #e8c39e}
.admin-preview-bar{
  max-width:960px;margin:0 auto 14px;padding:12px 16px;border-radius:12px;
  background:#2f2a26;color:#fff;display:flex;justify-content:space-between;
  align-items:center;gap:14px;flex-wrap:wrap
}
.admin-preview-bar b{display:block;margin-bottom:3px}
.admin-preview-bar span{font-size:12px;opacity:.85}
.admin-preview-bar a{color:#fff;font-weight:700;text-decoration:underline}
@media(max-width:640px){.admin-row-actions .btn{width:100%;text-align:center}}
