
:root{
  --orange:#ff7900;
  --orange2:#ff9b22;
  --orange-soft:#fff6ea;
  --orange-border:#ffd5a8;
  --text:#2c2926;
  --muted:#77716b;
  --border:#ece6df;
  --bg:#fffdfa;
  --card:#ffffff;
  --green:#68ad68;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#f5f3ef;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
body{min-width:320px}
.shell{max-width:430px;margin:0 auto;background:var(--bg);min-height:100vh;box-shadow:0 0 24px rgba(0,0,0,.06)}
.common-header img{display:block;width:100%;height:auto}
.nav{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:9px 10px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}
.nav a{display:flex;align-items:center;justify-content:center;min-height:42px;text-decoration:none;color:#a44800;background:#fff8ef;border:1px solid var(--orange-border);border-radius:10px;font-weight:800;font-size:12px}
.nav a.active{background:var(--orange);border-color:var(--orange);color:#fff}
.page{padding:10px 10px 24px}
.section-title{font-size:15px;font-weight:900;margin:8px 0 8px;border-left:4px solid var(--orange);padding-left:7px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.mini-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:9px;min-width:0;box-shadow:0 2px 8px rgba(60,35,10,.035)}
.card-title{font-size:11px;font-weight:900;margin-bottom:7px}
.row{margin-top:5px}
.labelrow{display:flex;justify-content:space-between;gap:4px;font-size:9px;margin-bottom:3px;white-space:nowrap}
.bar{height:6px;background:#f2ede8;border-radius:99px;overflow:hidden}
.fill{height:100%;background:linear-gradient(90deg,var(--orange),var(--orange2));border-radius:99px}
.donut-area{display:flex;align-items:center;gap:7px}
.donut{width:66px;height:66px;border-radius:50%;background:conic-gradient(#ff7900 0 23%,#f3b129 23% 52%,#70b86c 52% 75%,#bfc5ca 75%);position:relative;flex:none}
.donut:after{content:"";position:absolute;inset:15px;background:#fff;border-radius:50%}
.legend{display:grid;gap:3px;font-size:8.5px;flex:1}
.legend div{display:flex;justify-content:space-between;gap:4px}
.sales{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.sales-card{border:1px solid var(--orange-border);background:#fffaf4;border-radius:12px;text-align:center;padding:9px 4px}
.sales-card .ttl{font-size:9px;font-weight:900;color:#c95200;line-height:1.3;min-height:24px}
.sales-card .num{font-size:27px;color:var(--orange);font-weight:900;line-height:1.1;margin-top:4px}
.sales-card .unit{font-size:9px;margin-left:2px}
.summary{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.summary>div{background:#fff;border:1px solid var(--border);border-radius:11px;text-align:center;padding:9px}
.summary span{display:block;color:var(--muted);font-size:9px}
.summary strong{display:block;font-size:20px;margin-top:2px}
.cta{display:flex;width:100%;min-height:46px;align-items:center;justify-content:center;border:0;border-radius:10px;background:linear-gradient(90deg,var(--orange),#ff8d00);color:#fff;text-decoration:none;font-weight:900;font-size:14px;margin-top:9px}
.search{width:100%;height:43px;border:1px solid var(--border);background:#fff;border-radius:10px;padding:0 12px;font-size:16px}
.filters{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
select,textarea{width:100%;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:16px;padding:10px}
.list-head{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:800;margin:10px 1px 7px}
.customer-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:9px;margin-bottom:7px;text-decoration:none;color:inherit;display:block;box-shadow:0 2px 7px rgba(60,35,10,.025)}
.customer-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.person{display:flex;align-items:center;gap:7px;min-width:0}
.avatar{width:33px;height:33px;border-radius:50%;background:#fff1df;border:1px solid #ffd6aa;display:grid;place-items:center;color:var(--orange);font-weight:900;flex:none}
.name{font-size:13px;font-weight:900}
.date{font-size:8.5px;color:var(--muted);margin-top:2px}
.rank{width:33px;height:33px;border-radius:50%;border:1.5px solid var(--orange);display:grid;place-items:center;color:var(--orange);font-weight:900;flex:none}
.rank.c{color:var(--green);border-color:var(--green)}
.customer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}
.field-label{font-size:8px;color:var(--muted)}
.field-value{font-size:9.5px;font-weight:800;line-height:1.35;margin-top:2px}
.back{display:inline-block;text-decoration:none;color:var(--text);font-size:11px;font-weight:800;margin:1px 0 8px}
.profile{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px}
.detail-title{font-size:12px;font-weight:900;margin:10px 0 6px}
.detail-table{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:#fff}
.detail-pair{display:grid;grid-template-columns:1fr 1.05fr;border-bottom:1px solid var(--border);font-size:8.7px;min-width:0}
.detail-pair:nth-child(odd){border-right:1px solid var(--border)}
.detail-pair:nth-last-child(-n+2){border-bottom:0}
.detail-pair b,.detail-pair span{padding:6px 5px;line-height:1.35}
.detail-pair b{background:#fffaf4}
.recommend{margin-top:8px;background:#fff6e8;border:1px solid #ffdbb6;border-radius:10px;padding:10px;font-size:10px;line-height:1.55}
.recommend strong{display:block;font-size:12px;margin-bottom:4px}
.form-group{margin-top:9px}
.form-group label{display:block;font-size:11px;font-weight:900;margin-bottom:5px}
textarea{min-height:82px;resize:vertical}
.note{font-size:9px;color:var(--muted);text-align:center;margin-top:8px}
@media (min-width:700px){
  body{padding:22px}
  .shell{border-radius:22px;overflow:hidden}
}


/* ===== Ver.1.1 mobile readability update ===== */
.common-header{
  background:#fff7ed;
  overflow:hidden;
}
.common-header img{
  width:100%;
  height:auto;
  display:block;
}
.common-header .desktop-header{display:none}
.common-header .mobile-header{display:block;width:100%;height:auto}

.nav{
  gap:7px;
  padding:10px;
}
.nav a{
  min-height:48px;
  font-size:14px;
  line-height:1.2;
  padding:8px 4px;
}

.page{padding:14px 12px 28px}
.section-title{
  font-size:18px;
  margin:12px 0 10px;
  border-left-width:5px;
  padding-left:8px;
}

.grid2{gap:10px}
.mini-card{
  border-radius:14px;
  padding:11px;
}
.card-title{
  font-size:13px;
  margin-bottom:9px;
}
.labelrow{
  font-size:11px;
  gap:5px;
  margin-bottom:4px;
  white-space:normal;
}
.bar{height:8px}
.legend{
  font-size:10.5px;
  gap:4px;
}
.donut{width:76px;height:76px}
.donut:after{inset:17px}

.sales{gap:9px}
.sales-card{
  padding:12px 5px;
  border-radius:14px;
}
.sales-card .ttl{
  font-size:11px;
  min-height:30px;
}
.sales-card .num{font-size:34px}
.sales-card .unit{font-size:11px}

.summary>div{padding:12px}
.summary span{font-size:11px}
.summary strong{font-size:24px}

.cta{
  min-height:52px;
  font-size:16px;
  border-radius:12px;
}

.search{height:48px;font-size:16px}
.filters{gap:8px}
.list-head{font-size:12px;margin:12px 2px 9px}
.customer-card{
  padding:11px;
  border-radius:14px;
  margin-bottom:9px;
}
.avatar{width:38px;height:38px}
.name{font-size:15px}
.date{font-size:10px}
.rank{width:38px;height:38px;font-size:16px}
.customer-grid{gap:7px;margin-top:10px}
.field-label{font-size:9.5px}
.field-value{font-size:11px}

.back{font-size:13px;margin:2px 0 10px}
.profile{padding:12px;border-radius:14px}
.detail-title{font-size:14px;margin:12px 0 7px}
.detail-pair{font-size:10.5px}
.detail-pair b,.detail-pair span{padding:8px 6px}
.recommend{
  padding:12px;
  font-size:12px;
  line-height:1.6;
}
.recommend strong{font-size:14px}
.form-group label{font-size:13px}
.note{font-size:10px}

@media (max-width:360px){
  .card-title{font-size:12px}
  .labelrow{font-size:10px}
  .legend{font-size:9.5px}
  .sales-card .ttl{font-size:10px}
}

@media (min-width:560px){
  .common-header .desktop-header{display:block}
  .common-header .mobile-header{display:none}
}


/* ===== Ver.1.2 responsive summary ===== */
.common-header{
  background:#fff7ed;
  overflow:hidden;
  border-bottom:1px solid #f4dfc7;
}
.common-header img{
  display:block;
  width:100%;
  height:auto;
}
.common-header .desktop-header{display:none}
.common-header .mobile-header{display:block}

.today-summary{
  padding:12px 10px 4px;
  background:var(--bg);
}
.today-title{
  font-size:17px;
  font-weight:900;
  margin:0 0 9px;
  border-left:5px solid var(--orange);
  padding-left:8px;
}
.today-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.today-card{
  background:#fffaf4;
  border:1px solid var(--orange-border);
  border-radius:13px;
  padding:10px 5px 9px;
  text-align:center;
}
.today-card .today-label{
  min-height:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  line-height:1.3;
  font-weight:900;
  color:#a94a00;
}
.today-card .today-value{
  margin-top:5px;
  color:var(--orange);
  font-size:30px;
  line-height:1;
  font-weight:900;
}
.today-card .today-unit{
  font-size:10px;
  color:#a94a00;
  margin-left:2px;
  font-weight:800;
}

.nav{
  position:sticky;
  top:0;
  z-index:20;
  background:#fff;
}

/* Smartphone: larger readable cards, still 2 columns */
@media (max-width:559px){
  .shell{max-width:430px}
  .page{padding-top:12px}
  .grid2{grid-template-columns:1fr 1fr;gap:9px}
  .mini-card{padding:10px}
  .card-title{font-size:13px}
  .labelrow{font-size:10.5px}
  .legend{font-size:10px}
  .sales-card .ttl{font-size:10.5px}
  .sales-card .num{font-size:32px}
}

/* Tablet / PC */
@media (min-width:560px){
  body{padding:22px}
  .shell{
    max-width:1180px;
    border-radius:22px;
    overflow:hidden;
  }
  .common-header .desktop-header{display:block}
  .common-header .mobile-header{display:none}
  .today-summary{
    padding:18px 22px 8px;
  }
  .today-title{
    font-size:22px;
  }
  .today-grid{
    gap:14px;
  }
  .today-card{
    padding:16px 12px 14px;
  }
  .today-card .today-label{
    min-height:auto;
    font-size:14px;
  }
  .today-card .today-value{
    font-size:42px;
  }
  .today-card .today-unit{
    font-size:13px;
  }
  .nav{
    grid-template-columns:repeat(3,minmax(140px,1fr));
    padding:12px 22px;
  }
  .nav a{
    font-size:15px;
    min-height:46px;
  }
  .page{
    padding:18px 22px 32px;
  }
  .section-title{
    font-size:21px;
    margin:16px 0 12px;
  }
  .grid2{
    grid-template-columns:repeat(3,1fr);
    gap:14px;
  }
  .mini-card{
    padding:15px;
  }
  .card-title{
    font-size:15px;
  }
  .labelrow{
    font-size:12px;
  }
  .legend{
    font-size:12px;
  }
  .sales{
    grid-template-columns:repeat(3,1fr);
    gap:14px;
  }
  .sales-card{
    padding:16px 10px;
  }
  .sales-card .ttl{
    font-size:14px;
  }
  .sales-card .num{
    font-size:40px;
  }
  .summary{
    grid-template-columns:repeat(2,minmax(180px,280px));
  }

  /* customer list */
  .customer-card{
    padding:14px;
  }
  .name{font-size:17px}
  .customer-grid{
    grid-template-columns:repeat(4,1fr);
  }
  .field-label{font-size:10px}
  .field-value{font-size:12px}

  /* detail */
  .detail-table{
    grid-template-columns:1fr 1fr;
  }
  .detail-pair{
    font-size:12px;
  }
  .recommend{
    font-size:13px;
  }
}


/* ===== Ver.1.3 actual responsive UI ===== */

/* Summary: always visible directly below the header */
.today-summary{
  display:block;
  padding:14px 12px 10px;
  background:#fffdfa;
  border-bottom:1px solid #f1e8df;
}
.today-title{
  margin:0 0 10px;
  padding-left:8px;
  border-left:5px solid #ff7900;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}
.today-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.today-card{
  min-width:0;
  text-align:center;
  background:#fff8ef;
  border:1px solid #ffc98f;
  border-radius:13px;
  padding:10px 5px;
}
.today-label{
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  line-height:1.25;
  font-weight:900;
  color:#a74a00;
}
.today-value{
  margin-top:5px;
  color:#ff7900;
  font-size:31px;
  line-height:1;
  font-weight:900;
}
.today-unit{
  margin-left:2px;
  font-size:10px;
  font-weight:800;
}
.today-help{
  margin-top:5px;
  color:#7b7068;
  font-size:8px;
  line-height:1.25;
}

/* Mobile keeps the agreed 2-column analytics UI */
@media (max-width:559px){
  .shell{max-width:430px}
  .common-header .desktop-header{display:none}
  .common-header .mobile-header{display:block}
  .grid2{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
}

/* PC must visibly differ from mobile */
@media (min-width:560px){
  body{
    padding:24px;
    background:#f5f3ef;
  }
  .shell{
    max-width:1180px;
    margin:0 auto;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 30px rgba(50,30,10,.08);
  }

  .common-header .desktop-header{display:block}
  .common-header .mobile-header{display:none}

  .today-summary{
    padding:20px 24px 16px;
  }
  .today-title{
    font-size:24px;
    margin-bottom:14px;
  }
  .today-grid{
    gap:16px;
  }
  .today-card{
    padding:18px 14px 16px;
    border-radius:16px;
  }
  .today-label{
    min-height:auto;
    font-size:15px;
  }
  .today-value{
    font-size:46px;
    margin-top:8px;
  }
  .today-unit{
    font-size:14px;
  }
  .today-help{
    font-size:11px;
    margin-top:7px;
  }

  .nav{
    grid-template-columns:repeat(3,minmax(160px,1fr));
    gap:12px;
    padding:14px 24px;
    position:static;
  }
  .nav a{
    min-height:50px;
    font-size:16px;
  }

  .page{
    padding:22px 24px 34px;
  }
  .section-title{
    font-size:22px;
    margin:18px 0 13px;
  }

  /* 6 analytics cards become 3 columns x 2 rows on PC */
  .grid2{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
  .mini-card{
    padding:16px;
    border-radius:15px;
  }
  .card-title{
    font-size:16px;
    margin-bottom:12px;
  }
  .labelrow{
    font-size:13px;
    margin-bottom:5px;
  }
  .bar{
    height:9px;
  }
  .legend{
    font-size:12px;
  }
  .donut{
    width:94px;
    height:94px;
  }
  .donut:after{
    inset:21px;
  }

  .sales{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
  .sales-card{
    padding:18px 12px;
  }
  .sales-card .ttl{
    font-size:14px;
    min-height:auto;
  }
  .sales-card .num{
    font-size:42px;
  }

  .summary{
    grid-template-columns:repeat(2,minmax(220px,300px));
    gap:14px;
  }

  /* customer list gains width without becoming a horizontal table */
  .customer-card{
    padding:16px;
    margin-bottom:12px;
  }
  .customer-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
  }
  .name{font-size:18px}
  .date{font-size:11px}
  .field-label{font-size:11px}
  .field-value{font-size:13px}

  /* customer detail uses the wider PC canvas */
  .profile{
    padding:16px;
  }
  .detail-title{
    font-size:16px;
  }
  .detail-pair{
    font-size:13px;
  }
  .detail-pair b,.detail-pair span{
    padding:10px 8px;
  }
  .recommend{
    padding:16px;
    font-size:14px;
  }
}


/* ===== Ver.1.4 diagnosis UI ===== */
.diagnosis-body{
  margin:0;
  background:#f5f3ef;
  color:#2d3327;
}
.diagnosis-shell{
  max-width:430px;
  margin:0 auto;
  min-height:100vh;
  background:#fffdf8;
}
.diagnosis-header{
  background:#fbfff7;
  border-bottom:1px solid #d9e9bf;
  overflow:hidden;
}
.diagnosis-header img{
  display:block;
  width:100%;
  height:auto;
}
.diagnosis-main{
  padding:14px 12px 28px;
}
.diag-intro{
  text-align:center;
  padding:4px 4px 12px;
}
.diag-step{
  display:inline-block;
  background:#edf7df;
  color:#5d8e2e;
  border:1px solid #c9dfaa;
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  font-weight:800;
}
.diag-intro h1{
  font-size:20px;
  margin:10px 0 6px;
  color:#4d6d2d;
}
.diag-intro p{
  margin:0;
  font-size:13px;
  line-height:1.6;
  color:#676d62;
}
.diag-card{
  background:#fff;
  border:1px solid #dde8cf;
  border-radius:16px;
  padding:14px;
  box-shadow:0 3px 12px rgba(60,80,30,.05);
}
.diag-card fieldset{
  border:0;
  margin:0;
  padding:0;
}
.diag-card legend{
  width:100%;
  font-size:16px;
  font-weight:900;
  line-height:1.5;
  margin-bottom:12px;
}
.choice{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:10px 12px;
  margin-bottom:9px;
  border:1px solid #dce7ce;
  border-radius:12px;
  background:#fbfff7;
  font-size:15px;
  font-weight:700;
}
.choice input{
  width:20px;
  height:20px;
  accent-color:#78a83c;
}
.diag-next{
  width:100%;
  min-height:50px;
  margin-top:8px;
  border:0;
  border-radius:12px;
  background:linear-gradient(90deg,#79a93c,#91bd4e);
  color:#fff;
  font-size:16px;
  font-weight:900;
}
.diag-note{
  margin-top:10px;
  text-align:center;
  font-size:10px;
  line-height:1.5;
  color:#858b7f;
}

@media (min-width:700px){
  .diagnosis-body{padding:24px}
  .diagnosis-shell{
    max-width:1100px;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 30px rgba(45,65,20,.08);
  }
  .diagnosis-main{
    max-width:760px;
    margin:0 auto;
    padding:24px 24px 40px;
  }
  .diag-intro h1{font-size:28px}
  .diag-intro p{font-size:15px}
  .diag-card{padding:22px}
  .diag-card legend{font-size:20px}
  .choice{font-size:16px}
}


/* ===== Ver.1.5 diagnosis workflow ===== */
.diagnosis-header{
  overflow:hidden;
  background:#f8fcef;
  border-bottom:1px solid #d9e9bf;
}
.diagnosis-header img{
  width:100%;
  height:auto;
  display:block;
}
.diag-desktop-header{display:none}
.diag-mobile-header{display:block}

.diag-progress-top{
  margin:2px 0 8px;
}
.diag-progress-bar{
  height:7px;
  margin-top:9px;
  border-radius:99px;
  overflow:hidden;
  background:#e6eedc;
}
#diag-progress-fill{
  height:100%;
  width:10%;
  background:linear-gradient(90deg,#76a93d,#93c452);
  border-radius:99px;
  transition:width .2s ease;
}

.diag-actions{
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:8px;
  margin-top:8px;
}
.diag-back{
  min-height:50px;
  border:1px solid #bcd49a;
  border-radius:12px;
  background:#fff;
  color:#5d7f35;
  font-size:14px;
  font-weight:900;
}
.diag-error{
  min-height:21px;
  padding-top:7px;
  color:#b5422b;
  font-size:12px;
  font-weight:700;
  text-align:center;
}

.diag-result{
  padding:8px 0 10px;
}
.result-kicker{
  display:inline-block;
  border-radius:999px;
  background:#edf7df;
  border:1px solid #c9dfaa;
  color:#5d8e2e;
  padding:6px 12px;
  font-size:12px;
  font-weight:900;
}
.result-rank-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
  padding:14px;
  border:1px solid #dbe8cc;
  border-radius:16px;
  background:#fff;
}
.result-rank{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:50%;
  background:#78a83c;
  color:#fff;
  font-size:30px;
  font-weight:900;
}
.result-title{
  font-size:18px;
  line-height:1.45;
  font-weight:900;
  color:#486c26;
}
.result-score{
  margin-top:4px;
  color:#7c8575;
  font-size:12px;
}
.result-message{
  margin-top:10px;
  padding:13px;
  border-radius:14px;
  background:#f7fbea;
  border:1px solid #dbe8cc;
  font-size:13px;
  line-height:1.7;
}
.result-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}
.result-summary>div{
  padding:10px;
  border:1px solid #dfe8d3;
  border-radius:12px;
  background:#fff;
}
.result-summary span{
  display:block;
  color:#818a7b;
  font-size:9px;
}
.result-summary strong{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.45;
}
.result-note{
  margin:10px 0;
  color:#80877a;
  font-size:10px;
  line-height:1.6;
  text-align:center;
}

@media (max-width:699px){
  .diagnosis-header{
    max-height:none;
  }
  .diag-mobile-header{
    width:100%;
    height:auto;
  }
  .diagnosis-main{
    padding-top:14px;
  }
  .diag-intro h1{
    font-size:22px;
  }
  .diag-card legend{
    font-size:17px;
  }
  .choice{
    min-height:56px;
    font-size:16px;
  }
}

@media (min-width:700px){
  .diag-mobile-header{display:none}
  .diag-desktop-header{display:block}
  .diagnosis-shell{
    max-width:1180px;
  }
  .diagnosis-main{
    max-width:800px;
  }
  .result-title{
    font-size:22px;
  }
  .result-summary strong{
    font-size:13px;
  }
}


/* ===== Ver.1.6 single diagnosis header ===== */
.diagnosis-header{
  display:block;
  overflow:hidden;
  background:#f8fcef;
  border-bottom:1px solid #d9e9bf;
}
.diagnosis-header img{
  display:block !important;
  width:100%;
  height:auto;
  max-width:none;
}

/* 旧Ver.1.5の2画像表示用クラスは使用しない */
.diag-mobile-header,
.diag-desktop-header{
  display:none !important;
}

/* 診断ヘッダーはPC/スマホとも同じ指定画像を1枚だけ表示 */
@media (max-width:699px){
  .diagnosis-header img{
    width:100%;
    height:auto;
  }
}
@media (min-width:700px){
  .diagnosis-header img{
    width:100%;
    height:auto;
  }
}


/* ===== Ver.1.7 database link ===== */
.lead-info-card{
  background:#fff;
  border:1px solid #dce8cd;
  border-radius:16px;
  padding:14px;
  margin-bottom:14px;
  box-shadow:0 3px 12px rgba(60,80,30,.05);
}
.lead-info-title{
  font-size:18px;
  font-weight:900;
  color:#4d6d2d;
  margin-bottom:10px;
}
.lead-info-card label{
  display:block;
  font-size:12px;
  font-weight:800;
  margin:9px 0;
}
.lead-info-card input{
  display:block;
  width:100%;
  min-height:48px;
  margin-top:5px;
  padding:10px 11px;
  border:1px solid #dce7ce;
  border-radius:10px;
  font-size:16px;
  background:#fbfff7;
}





/* ===== Ver.2.0 consolidated fixes ===== */

/* 管理画面ヘッダー：ユーザー指定デザインをそのまま全体表示 */
.admin-image-header{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#fff8ef;
}
.admin-image-header img{
  display:block;
  width:100%;
  height:auto;
}

/* 右側の固定サマリーだけを自然に隠し、数字なしの説明カードに置換 */
.admin-header-mask{
  position:absolute;
  right:3.5%;
  top:30%;
  width:18%;
  height:56%;
  border:1px solid rgba(235,150,65,.35);
  border-radius:18px;
  background:rgba(255,250,243,.96);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow:0 6px 18px rgba(105,60,20,.08);
}
.admin-header-mask-title{
  font-size:15px;
  font-weight:900;
  color:#b75400;
  margin-bottom:9px;
}
.admin-header-mask-text{
  font-size:13px;
  line-height:1.6;
  font-weight:800;
  color:#5c4434;
}

/* スマホでは右側説明カードを隠し、画像全体は崩さない */
@media (max-width:699px){
  .admin-header-mask{
    display:none;
  }
  .admin-image-header img{
    width:100%;
    height:auto;
  }
}

/* 希望エリア詳細入力 */
.area-detail-card{
  background:#fff;
  border:1px solid #dce8cd;
  border-radius:16px;
  padding:14px;
  margin:10px 0 14px;
}
.area-detail-title{
  font-size:18px;
  font-weight:900;
  color:#4d6d2d;
  margin-bottom:6px;
}
.area-detail-card p{
  font-size:12px;
  line-height:1.6;
  color:#6d7567;
}
.area-detail-card label{
  display:block;
  margin:10px 0;
  font-size:12px;
  font-weight:800;
}
.area-detail-card input{
  display:block;
  width:100%;
  min-height:48px;
  margin-top:5px;
  padding:10px 11px;
  border:1px solid #dce7ce;
  border-radius:10px;
  font-size:16px;
  background:#fbfff7;
}

/* 顧客詳細の日本語状態ラベルは丸ではなく可読性優先 */
#d-rank{
  width:auto;
  min-width:84px;
  height:auto;
  min-height:38px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1.3;
}


/* ===== Ver.2.1 visual refinement ===== */

/* 旧ヘッダー関連の置換カードを無効化 */
.admin-header-mask,
.admin-visual-header{
  display:none !important;
}

/* 管理者ヘッダー：上部説明行を除いた基準画像をそのまま全体表示 */
.admin-clean-header{
  width:100%;
  overflow:hidden;
  background:#fff8ef;
}
.admin-clean-header img{
  display:block;
  width:100%;
  height:auto;
}

/* 診断ヘッダー：上部説明行を除いた基準画像をそのまま表示 */
.diagnosis-header{
  width:100%;
  overflow:hidden;
  background:#f8fcef;
}
.diagnosis-header img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  transform:none !important;
}

/* 本日のサマリー：カードデザインを丁寧に */
.today-summary{
  padding:18px 16px 14px;
  background:linear-gradient(180deg,#fffdf9 0%,#fffaf3 100%);
}
.today-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:20px;
  margin:0 0 12px;
  border-left:0;
  padding-left:0;
}
.today-title:before{
  content:"";
  width:5px;
  height:24px;
  border-radius:5px;
  background:linear-gradient(180deg,#ff7900,#ffad42);
}
.today-grid{
  gap:10px;
}
.today-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(160deg,#ffffff 0%,#fff8ef 100%);
  border:1px solid #f3d2b0;
  box-shadow:0 5px 16px rgba(109,62,18,.055);
  padding:13px 8px 12px;
}
.today-card:after{
  content:"";
  position:absolute;
  width:48px;height:48px;
  border-radius:50%;
  right:-18px;top:-18px;
  background:rgba(255,139,22,.07);
}
.today-label{
  font-size:11px;
  color:#8d460c;
}
.today-value{
  font-size:34px;
  letter-spacing:-.02em;
}
.today-help{
  font-size:9px;
  color:#8b8177;
}

/* 共通ナビ */
.nav{
  border-top:1px solid #f4e5d6;
  border-bottom:1px solid #eadfd5;
  background:#fffdf9;
}
.nav a{
  background:#fffaf4;
  border-color:#efc89d;
  color:#91430a;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
}
.nav a.active{
  background:linear-gradient(135deg,#ff7a00,#ff930d);
  color:#fff;
  box-shadow:0 4px 10px rgba(227,105,0,.16);
}

/* 統計カード */
.mini-card{
  border-color:#eadfd5;
  box-shadow:0 4px 14px rgba(76,48,20,.045);
  background:linear-gradient(180deg,#fff 0%,#fffdfa 100%);
}
.card-title{
  color:#403329;
}
.bar{
  background:#f0ece7;
}
.fill{
  background:linear-gradient(90deg,#ff7c00,#ffae3e);
}

/* 営業活用カード */
.sales-card{
  background:linear-gradient(160deg,#fff 0%,#fff7ed 100%);
  box-shadow:0 4px 14px rgba(100,58,19,.04);
}
.sales-card .ttl{
  color:#a34b0b;
}
.sales-card .num{
  color:#ff7600;
}

/* 顧客管理数字 */
.summary>div{
  background:linear-gradient(180deg,#fff,#fffaf4);
  border-color:#eadfd5;
  box-shadow:0 4px 12px rgba(77,49,22,.04);
}
.summary strong{
  color:#3a302a;
}

/* 顧客一覧 */
.customer-card{
  border-color:#e8ded4;
  box-shadow:0 5px 15px rgba(67,45,25,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}
.customer-card:active{
  transform:scale(.995);
}
.avatar{
  background:linear-gradient(145deg,#fff4e8,#ffead0);
  border-color:#ffc98e;
}

/* 診断画面カード */
.diag-card,
.lead-info-card,
.area-detail-card{
  border-color:#d4e5bf;
  background:linear-gradient(180deg,#fff 0%,#fcfff8 100%);
  box-shadow:0 6px 18px rgba(65,96,30,.055);
}
.choice{
  border-color:#d2e4bd;
  background:linear-gradient(180deg,#fcfff8,#f8fcef);
}
.choice:has(input:checked){
  border-color:#83b449;
  background:#f1f8e6;
  box-shadow:inset 0 0 0 1px #83b449;
}
.diag-next{
  background:linear-gradient(135deg,#76a73c,#95c451);
  box-shadow:0 5px 12px rgba(76,121,38,.16);
}
.area-detail-title{
  display:flex;
  align-items:center;
  gap:7px;
}
.area-detail-title:before{
  content:"⌂";
  color:#75a33c;
  font-size:22px;
}

/* PC */
@media (min-width:700px){
  .today-summary{
    padding:22px 24px 18px;
  }
  .today-card{
    padding:18px 14px 16px;
  }
  .today-label{font-size:14px}
  .today-value{font-size:44px}
  .today-help{font-size:11px}
}

/* スマホ */
@media (max-width:699px){
  .admin-clean-header img,
  .diagnosis-header img{
    width:100% !important;
    height:auto !important;
  }
  .today-summary{
    padding:14px 10px 10px;
  }
  .today-title{
    font-size:18px;
  }
}


/* ===== Ver.2.2 full-page audit ===== */

/* 全管理ページ共通ヘッダー */
.admin-clean-header{
  width:100%;
  overflow:hidden;
  background:#fff8ef;
  border-bottom:1px solid #f1ddc7;
}
.admin-clean-header img{
  display:block;
  width:100%;
  height:auto;
}

/* 顧客一覧の営業状態：丸バッジ禁止。日本語が潰れない横長ラベル */
.lead-status{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  min-width:92px;
  max-width:120px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
  letter-spacing:0;
}
.lead-hot{
  color:#c95500;
  background:#fff4e8;
  border-color:#ffad62;
}
.lead-active{
  color:#a46600;
  background:#fff9e9;
  border-color:#e8c66a;
}
.lead-info{
  color:#39764d;
  background:#eff8f1;
  border-color:#a9d2b2;
}
.lead-early{
  color:#657078;
  background:#f4f6f7;
  border-color:#cdd3d7;
}
.detail-lead-status{
  min-width:104px;
  max-width:none;
}

/* 旧rank丸型は営業状態では使わない */
.customer-top .rank{
  display:none;
}

.customer-top{
  align-items:flex-start;
}
.person{
  min-width:0;
  flex:1;
}
.name{
  overflow-wrap:anywhere;
}

.empty-state{
  margin:10px 0;
  padding:18px 14px;
  text-align:center;
  border:1px dashed #e0d6cc;
  border-radius:12px;
  background:#fffdf9;
  color:#756b62;
  font-size:12px;
  line-height:1.7;
}
.inline-link{
  display:inline-block;
  margin-top:6px;
  color:#d96500;
  font-weight:800;
}

/* 顧客詳細 */
.profile{
  gap:12px;
}
.detail-table{
  margin-top:2px;
}
.detail-pair{
  min-width:0;
}
.detail-pair span{
  overflow-wrap:anywhere;
}
#detail-loading{
  padding:22px 12px;
  font-size:13px;
  line-height:1.7;
}

/* スマホ：日本語営業状態が崩れない */
@media (max-width:699px){
  .lead-status{
    min-width:88px;
    max-width:106px;
    padding:6px 8px;
    font-size:10px;
  }
  .detail-lead-status{
    min-width:96px;
    max-width:none;
  }
  .customer-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

/* PC */
@media (min-width:700px){
  .lead-status{
    min-width:112px;
    max-width:none;
    min-height:38px;
    font-size:12px;
  }
}


/* ===== Ver.2.3 analytics color coding ===== */

/* 分析カードごとに役割色を分ける
   操作ボタン・重要営業情報は従来どおりオレンジを維持 */
#dashboard-grid .mini-card{
  --metric-color:#ff7b00;
  --metric-color-2:#ffb24b;
  --metric-soft:#fff7ed;
  --metric-border:#f3d7b8;
}

/* 1 見込み客比率 */
#dashboard-grid .mini-card:nth-child(1){
  --metric-color:#ff7b00;
  --metric-color-2:#ffb24b;
  --metric-soft:#fff7ed;
  --metric-border:#f3d7b8;
}

/* 2 購入予定時期 */
#dashboard-grid .mini-card:nth-child(2){
  --metric-color:#4b8edb;
  --metric-color-2:#8cb9ec;
  --metric-soft:#f3f8fe;
  --metric-border:#cfe0f4;
}

/* 3 希望予算帯 */
#dashboard-grid .mini-card:nth-child(3){
  --metric-color:#55a96c;
  --metric-color-2:#8bc89a;
  --metric-soft:#f2faf4;
  --metric-border:#cee7d5;
}

/* 4 希望物件 */
#dashboard-grid .mini-card:nth-child(4){
  --metric-color:#8b67c7;
  --metric-color-2:#b29adb;
  --metric-soft:#f8f5fc;
  --metric-border:#ded3f0;
}

/* 5 ローン状況 */
#dashboard-grid .mini-card:nth-child(5){
  --metric-color:#d86672;
  --metric-color-2:#eca1aa;
  --metric-soft:#fdf4f5;
  --metric-border:#f0d2d6;
}

/* 6 希望エリア */
#dashboard-grid .mini-card:nth-child(6){
  --metric-color:#3aa6a0;
  --metric-color-2:#78c8c4;
  --metric-soft:#f1fbfa;
  --metric-border:#cde9e7;
}

#dashboard-grid .mini-card{
  background:linear-gradient(180deg,#fff 0%,var(--metric-soft) 100%);
  border-color:var(--metric-border);
}

#dashboard-grid .mini-card .card-title{
  color:var(--metric-color);
}

#dashboard-grid .mini-card .bar{
  background:rgba(0,0,0,.055);
}

#dashboard-grid .mini-card .fill{
  background:linear-gradient(90deg,var(--metric-color),var(--metric-color-2));
}

/* 見込み客比率のドーナツはカテゴリ区分を維持しつつ全体トーンを整える */
#dashboard-grid .mini-card:nth-child(1) .donut{
  background:conic-gradient(
    #ff7b00 0 25%,
    #f2b134 25% 50%,
    #74b66b 50% 75%,
    #b9c1c8 75% 100%
  );
}

/* カード内数値も少し役割色を反映 */
#dashboard-grid .mini-card .labelrow b,
#dashboard-grid .mini-card .legend b{
  color:var(--metric-color);
}

/* 営業カード・CTAはオレンジを維持 */
.sales-card,
.cta,
.nav a.active,
.today-card .today-value{
  --action-orange:#ff7900;
}

/* スマホでも色分けは維持し、派手すぎない彩度にする */
@media (max-width:699px){
  #dashboard-grid .mini-card .card-title{
    font-weight:900;
  }
}

/* ダークではない背景で視認性優先 */
@media (min-width:700px){
  #dashboard-grid .mini-card{
    box-shadow:0 5px 16px rgba(62,49,35,.045);
  }
}


/* ===== Ver.2.4 uploaded headers ===== */

/* 管理画面：ユーザー指定画像をそのまま使用 */
.admin-uploaded-header{
  position:relative;
  width:100%;
  background:#fff;
  padding-top:0;
}
.admin-uploaded-header img{
  display:block;
  width:100%;
  height:auto;
}

/* 画像自体は変更せず、右上に管理者画面ラベルをUIで追加 */
.admin-role-badge{
  position:absolute;
  top:12px;
  right:18px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:7px 14px;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,#f97316,#ea580c);
  box-shadow:0 4px 12px rgba(168,77,0,.18);
  font-size:14px;
  font-weight:900;
  line-height:1;
}
.admin-role-badge:first-letter{
  font-size:19px;
}

/* 診断画面：ユーザー指定画像をそのまま使用 */
.diagnosis-uploaded-header{
  width:100%;
  background:#fff;
}
.diagnosis-uploaded-header img{
  display:block;
  width:100%;
  height:auto;
}

/* 旧ヘッダー指定を確実に無効化 */
.admin-clean-header,
.diagnosis-header{
  display:none !important;
}

/* スマホ */
@media (max-width:699px){
  .admin-role-badge{
    top:7px;
    right:8px;
    min-height:28px;
    padding:5px 9px;
    border-radius:8px;
    font-size:10px;
    gap:4px;
  }
  .admin-uploaded-header img,
  .diagnosis-uploaded-header img{
    width:100% !important;
    height:auto !important;
    transform:none !important;
  }
}

/* PC */
@media (min-width:700px){
  .admin-role-badge{
    top:18px;
    right:24px;
    min-height:42px;
    padding:8px 16px;
    font-size:15px;
  }
}


/* ===== Ver.2.5 demo finalization ===== */

/* 正式採用された管理画面ヘッダー画像をそのまま表示 */
.admin-final-header{
  width:100%;
  background:#fff;
  overflow:hidden;
}
.admin-final-header img{
  display:block;
  width:100%;
  height:auto;
}

/* Ver.2.4までのHTML追加ラベルは使用しない */
.admin-role-badge{
  display:none !important;
}

/* 旧管理ヘッダーは無効 */
.admin-uploaded-header,
.admin-clean-header,
.admin-image-header{
  display:none !important;
}

/* 見込み客状態の日本語が2行に潰れないよう調整 */
#dashboard-grid .mini-card:nth-child(1) .legend{
  gap:8px;
}
#dashboard-grid .mini-card:nth-child(1) .legend span{
  min-width:86px;
  white-space:nowrap;
  font-size:11px;
}

/* 予算の準備状況はグリーンの分析カードを維持 */
#dashboard-grid .mini-card:nth-child(3) .card-title{
  line-height:1.25;
}

/* スマホ */
@media (max-width:699px){
  .admin-final-header img{
    width:100% !important;
    height:auto !important;
    transform:none !important;
  }
  #dashboard-grid .mini-card:nth-child(1) .legend span{
    min-width:76px;
    font-size:10px;
  }
}

/* PC */
@media (min-width:700px){
  #dashboard-grid .mini-card:nth-child(1) .legend span{
    min-width:100px;
    font-size:12px;
  }
}


/* ===== Ver.2.6 rank and score ui ===== */

/* ダッシュボード：A/B/C/Dは画面に出さない */
#dashboard-grid .mini-card:nth-child(1) .legend span{
  min-width:104px;
  white-space:nowrap;
  font-weight:800;
}

/* 顧客一覧：準備度スコア */
.customer-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.score-cell{
  min-width:0;
}
.score-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  min-height:30px;
  padding:4px 9px;
  border-radius:999px;
  background:linear-gradient(135deg,#fff3e7,#ffe0bd);
  border:1px solid #ffb66d;
  color:#c85d00;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

/* 顧客詳細：営業状態＋準備度を並べて表示 */
.detail-status-wrap{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.detail-score-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,#fff3e7,#ffd9ad);
  border:1px solid #ffad62;
  color:#bd5700;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

/* スマホ */
@media (max-width:699px){
  .customer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 12px;
  }
  .score-cell{
    grid-column:span 2;
  }
  .detail-status-wrap{
    justify-content:flex-end;
  }
  .detail-score-badge{
    min-height:34px;
    padding:5px 10px;
    font-size:11px;
  }
}

/* PC */
@media (min-width:700px){
  .score-pill{
    min-width:70px;
    min-height:34px;
    font-size:13px;
  }
  .detail-score-badge{
    min-height:40px;
    padding:7px 14px;
    font-size:13px;
  }
}


/* ===== Ver.2.7 demo privacy ===== */
.demo-privacy-note,
.demo-once-notice{
  margin:12px 0;
  padding:12px 14px;
  border-radius:12px;
  line-height:1.6;
}
.demo-privacy-note{
  border:1px solid #d8e8c6;
  background:#f7fbf1;
  color:#4d6638;
}
.demo-once-notice{
  border:1px solid #f0c999;
  background:#fff7ed;
  color:#9a4b0d;
}
.demo-privacy-note strong,
.demo-once-notice strong{
  display:block;
  margin-bottom:4px;
  font-size:13px;
}
.demo-privacy-note p,
.demo-once-notice p{
  margin:0;
  font-size:11px;
}
input:disabled{
  background:#f2f2f2 !important;
  color:#999 !important;
  cursor:not-allowed;
}
#start-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}
.demo-hidden-restart{
  display:none !important;
}


/* ===== Ver.2.8 demo management ===== */

/* 説明プルダウン */
.ui-help{
  margin-top:10px;
  border-top:1px solid rgba(80,60,40,.10);
  padding-top:8px;
}
.ui-help summary{
  cursor:pointer;
  list-style:none;
  font-size:10px;
  font-weight:900;
  color:#8a5a34;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
}
.ui-help summary::-webkit-details-marker{display:none}
.ui-help summary:after{
  content:"＋";
  font-size:15px;
  line-height:1;
  color:var(--metric-color,#ef7a13);
}
.ui-help[open] summary:after{content:"－"}
.ui-help p{
  margin:7px 0 0;
  padding:8px 9px;
  border-radius:8px;
  background:rgba(255,255,255,.7);
  font-size:10px;
  line-height:1.65;
  color:#685a4e;
  text-align:left;
}

/* 自動採番表示 */
.demo-field{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:4px 12px;
  padding:12px;
  margin:10px 0;
  border:1px solid #d8e8c6;
  border-radius:12px;
  background:#fbfff7;
}
.demo-field span{font-size:11px;color:#6a755e;font-weight:800}
.demo-field strong{font-size:18px;color:#4e6d2e}
.demo-field small{grid-column:2;font-size:10px;color:#8b9384}

/* 顧客一覧：複数選択 */
.bulk-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:10px 0;
  padding:9px 10px;
  border:1px solid #eadfd4;
  border-radius:10px;
  background:#fffdf9;
}
.bulk-select{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  font-weight:800;
  color:#594c42;
}
.bulk-select input,
.customer-check input{
  width:18px;
  height:18px;
  accent-color:#ef7a13;
}
.customer-select-row{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:7px;
  align-items:stretch;
  margin-bottom:8px;
}
.customer-check{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:15px;
}
.customer-select-row .customer-card{
  margin:0;
}

/* 削除UI */
.danger-outline{
  border:1px solid #d66161;
  border-radius:9px;
  background:#fff;
  color:#b33c3c;
  min-height:36px;
  padding:7px 11px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.danger-outline:hover{background:#fff5f5}
.danger-outline:disabled{
  opacity:.4;
  cursor:not-allowed;
}
.admin-danger-zone{
  margin-top:18px;
  padding:12px;
  border:1px solid #efd1d1;
  border-radius:12px;
  background:#fffafa;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.admin-danger-zone strong{
  display:block;
  margin-bottom:3px;
  font-size:12px;
  color:#983d3d;
}
.admin-danger-zone span{
  display:block;
  font-size:10px;
  color:#8b6b6b;
}

/* スマホ */
@media (max-width:699px){
  .ui-help summary{font-size:9px}
  .ui-help p{font-size:9px}
  .bulk-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .bulk-toolbar .danger-outline{width:100%}
  .customer-select-row{
    grid-template-columns:26px minmax(0,1fr);
  }
  .customer-check{padding-top:14px}
  .admin-danger-zone{
    align-items:stretch;
    flex-direction:column;
  }
  .admin-danger-zone .danger-outline{width:100%}
}

/* PC */
@media (min-width:700px){
  .ui-help summary{font-size:11px}
  .ui-help p{font-size:11px}
}


/* ===== Ver.2.9 area input ===== */
.area-example{
  margin:8px 0 12px;
  padding:9px 10px;
  border-radius:9px;
  background:#f5f9ee;
  color:#66745a;
  font-size:11px;
}
.area-example strong{
  color:#4f6b35;
  font-size:13px;
}


/* ===== Ver.2.10 area preferences ===== */
.area-choice-block{
  margin:12px 0;
  padding:12px;
  border:1px solid #d9e8ca;
  border-radius:12px;
  background:#fbfff8;
}
.area-choice-block.optional{
  margin:8px 0 4px;
  background:#fff;
}
.area-choice-title{
  margin-bottom:8px;
  font-size:13px;
  font-weight:900;
  color:#4f6d35;
}
.required-badge{
  display:inline-flex;
  align-items:center;
  margin-left:5px;
  padding:2px 6px;
  border-radius:999px;
  background:#e26b56;
  color:#fff;
  font-size:9px;
  vertical-align:middle;
}
.area-optional{
  margin:8px 0;
  border:1px solid #dfe9d5;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.area-optional summary{
  cursor:pointer;
  padding:10px 12px;
  font-size:11px;
  font-weight:900;
  color:#60764e;
  list-style:none;
}
.area-optional summary::-webkit-details-marker{display:none}
.area-optional summary:after{
  content:"＋";
  float:right;
  color:#78a450;
}
.area-optional[open] summary:after{content:"－"}
.area-optional .area-choice-block{
  border:0;
  border-top:1px solid #edf2e8;
  border-radius:0;
}


/* ===== Ver.2.15 customer detail cards ===== */

.back-link{
  display:inline-block;
  margin:4px 0 14px;
  color:#54483f;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.detail-loading{
  padding:28px 12px;
  text-align:center;
  color:#756b63;
  font-size:13px;
  line-height:1.7;
}

/* 顧客ヘッダー */
.customer-hero-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  padding:18px 20px;
  border:1px solid #eadfd5;
  border-radius:18px;
  background:linear-gradient(145deg,#fff 0%,#fffaf4 100%);
  box-shadow:0 6px 18px rgba(71,46,24,.05);
}

.customer-hero-main{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.customer-avatar-large{
  flex:0 0 auto;
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border:2px solid #ffbe7a;
  border-radius:50%;
  background:#fff4e6;
  color:#ff7800;
  font-size:26px;
}

.customer-hero-copy{
  min-width:0;
}

.customer-hero-copy h1{
  margin:0 0 4px;
  font-size:24px;
  line-height:1.2;
  color:#2e2925;
  overflow-wrap:anywhere;
}

.customer-registered{
  color:#8b837c;
  font-size:11px;
  font-weight:700;
}

.customer-hero-status{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.status-caption{
  flex-basis:100%;
  text-align:right;
  font-size:9px;
  color:#8c8278;
}

/* セクション */
.detail-section{
  margin:18px 0;
}

.detail-section-title{
  position:relative;
  margin:0 0 12px;
  padding-left:14px;
  color:#302b27;
  font-size:19px;
  line-height:1.3;
}

.detail-section-title:before{
  content:"";
  position:absolute;
  left:0;
  top:2px;
  width:5px;
  height:22px;
  border-radius:999px;
  background:linear-gradient(180deg,#ff7900,#ffad42);
}

/* 希望エリア */
.area-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.area-display-card{
  min-height:98px;
  padding:14px;
  border:1px solid #e6ddd5;
  border-radius:14px;
  background:linear-gradient(155deg,#fff 0%,#fbfaf8 100%);
  box-shadow:0 4px 14px rgba(70,45,23,.04);
}

.area-display-card.area-first{
  border-color:#f0c79c;
  background:linear-gradient(155deg,#fffaf4 0%,#fff2e3 100%);
}

.area-number{
  margin-bottom:10px;
  color:#8a7767;
  font-size:10px;
  font-weight:900;
}

.area-first .area-number{
  color:#c9670e;
}

.area-value{
  color:#302b27;
  font-size:18px;
  font-weight:900;
  line-height:1.35;
  overflow-wrap:anywhere;
}

/* 診断カード */
.diagnosis-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.diagnosis-info-card{
  min-height:100px;
  padding:13px;
  border:1px solid #e7dfd8;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 12px rgba(62,43,25,.035);
}

.diagnosis-info-label{
  margin-bottom:9px;
  color:#91857a;
  font-size:10px;
  font-weight:900;
}

.diagnosis-info-value{
  color:#322c27;
  font-size:15px;
  font-weight:900;
  line-height:1.45;
  overflow-wrap:anywhere;
}

/* 軽い色分け */
.diagnosis-calendar{border-color:#cfe1f3;background:#f8fbff}
.diagnosis-home{border-color:#ddcff0;background:#fbf9fe}
.diagnosis-budget{border-color:#cee6d5;background:#f7fcf8}
.diagnosis-loan{border-color:#efd2d6;background:#fff9fa}
.diagnosis-stage{border-color:#f0dcc2;background:#fffbf5}
.diagnosis-company{border-color:#d7dfec;background:#fafcff}
.diagnosis-problem{border-color:#ead7c6;background:#fffaf6}
.diagnosis-consult{border-color:#d0e8e6;background:#f7fcfb}
.diagnosis-residence{border-color:#deded5;background:#fbfbf8}

/* 推奨営業 */
.recommend-card{
  margin:18px 0;
  padding:17px 18px;
  border:1px solid #f0c993;
  border-radius:16px;
  background:linear-gradient(145deg,#fffaf2 0%,#fff3e0 100%);
}

.recommend-title{
  margin-bottom:8px;
  color:#a8560f;
  font-size:15px;
  font-weight:900;
}

.recommend-text{
  color:#4f4136;
  font-size:13px;
  font-weight:700;
  line-height:1.8;
}

/* 対応管理 */
.management-card{
  padding:16px;
  border:1px solid #e7dfd8;
  border-radius:16px;
  background:#fff;
}

.management-label{
  display:block;
  margin:0 0 7px;
  color:#5c5148;
  font-size:11px;
  font-weight:900;
}

.management-select,
.management-memo{
  width:100%;
  border:1px solid #ded6ce;
  border-radius:10px;
  background:#fff;
  color:#302c28;
  font-size:14px;
}

.management-select{
  min-height:46px;
  padding:8px 10px;
  margin-bottom:15px;
}

.management-memo{
  min-height:130px;
  padding:12px;
  resize:vertical;
}

.detail-save-button{
  width:100%;
  margin-top:14px;
  border:0;
  cursor:pointer;
}

/* スマホ */
@media (max-width:699px){
  .customer-hero-card{
    align-items:flex-start;
    padding:14px;
  }

  .customer-avatar-large{
    width:46px;
    height:46px;
    font-size:22px;
  }

  .customer-hero-copy h1{
    font-size:20px;
  }

  .customer-hero-status{
    max-width:135px;
  }

  .area-card-grid{
    grid-template-columns:1fr;
  }

  .area-display-card{
    min-height:82px;
  }

  .area-value{
    font-size:17px;
  }

  .diagnosis-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .diagnosis-info-card{
    min-height:92px;
  }

  .diagnosis-info-value{
    font-size:13px;
  }

  .detail-section-title{
    font-size:18px;
  }
}

/* PC */
@media (min-width:700px){
  .customer-hero-card{
    padding:20px 24px;
  }

  .diagnosis-info-card{
    min-height:110px;
  }
}


/* ===== Ver.2.16 repeated local diagnosis ===== */
#restart-btn:not(.demo-hidden-restart){
  display:block !important;
  width:100%;
  margin-top:14px;
}


/* ===== Ver.2.17 diagnosis result areas ===== */
.result-area-summary{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:2px;
}
.result-area-card{
  min-width:0;
  padding:10px 11px;
  border:1px solid #dce8cf;
  border-radius:11px;
  background:#fbfef8;
}
.result-area-card.primary{
  border-color:#a9c987;
  background:linear-gradient(145deg,#f7fced,#edf7df);
}
.result-area-card span{
  display:block;
  margin-bottom:5px;
  color:#748266;
  font-size:9px;
  font-weight:900;
}
.result-area-card strong{
  display:block;
  color:#3e532d;
  font-size:13px;
  line-height:1.4;
  overflow-wrap:anywhere;
}

@media (max-width:699px){
  .result-area-summary{
    grid-template-columns:1fr;
  }
  .result-area-card{
    padding:10px 12px;
  }
  .result-area-card strong{
    font-size:14px;
  }
}


/* ===== Ver.2.18 customer list ui ===== */

.customer-list-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 14px;
}

.customer-list-title{
  margin:0;
  font-size:24px;
  color:#302b27;
}

.customer-list-sub{
  margin:4px 0 0;
  color:#8a8179;
  font-size:11px;
}

.customer-total-chip{
  min-width:58px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff3e5;
  border:1px solid #ffc78b;
  color:#c45c00;
  text-align:center;
  font-size:14px;
  font-weight:900;
}

.customer-tools-card{
  margin-bottom:10px;
  padding:12px;
  border:1px solid #e9e0d7;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fffaf5);
}

.customer-list-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.customer-list-card{
  padding:14px;
  border:1px solid #e6ddd5;
  border-radius:16px;
  background:linear-gradient(155deg,#fff 0%,#fffdf9 100%);
  box-shadow:0 5px 16px rgba(70,45,23,.045);
}

.customer-list-card-top{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:start;
  gap:8px;
}

.customer-list-person{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.customer-list-avatar{
  width:42px;
  height:42px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid #ffbb73;
  border-radius:50%;
  background:#fff3e5;
  color:#ff7600;
  font-size:20px;
}

.customer-list-name-wrap{min-width:0}

.customer-list-name{
  display:block;
  color:#2f2a26;
  font-size:17px;
  font-weight:900;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.customer-list-date{
  margin-top:3px;
  color:#90877f;
  font-size:9px;
}

.customer-list-state{
  display:flex;
  align-items:flex-end;
  gap:6px;
  flex-direction:column;
}

.customer-list-area-title{
  margin:13px 0 7px 36px;
  color:#7d6e61;
  font-size:10px;
  font-weight:900;
}

.customer-list-areas{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-left:36px;
}

.list-area-card{
  min-width:0;
  padding:9px 10px;
  border:1px solid #dcded5;
  border-radius:10px;
  background:#fafbf8;
}

.list-area-card.primary{
  border-color:#efc28c;
  background:#fff7ec;
}

.list-area-card span{
  display:block;
  margin-bottom:4px;
  color:#8b8177;
  font-size:8px;
  font-weight:900;
}

.list-area-card.primary span{
  color:#c36712;
}

.list-area-card strong{
  display:block;
  color:#38312c;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.customer-list-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:10px 0 0 36px;
}

.customer-list-info-grid>div{
  padding:8px 9px;
  border-radius:9px;
  background:#faf8f6;
}

.customer-list-info-grid span{
  display:block;
  margin-bottom:3px;
  color:#928980;
  font-size:8px;
  font-weight:900;
}

.customer-list-info-grid strong{
  display:block;
  color:#38312c;
  font-size:10px;
  line-height:1.35;
}

.customer-detail-button{
  display:block;
  margin:10px 0 0 36px;
  padding:9px 10px;
  border:1px solid #f0bf8b;
  border-radius:9px;
  background:#fff8f0;
  color:#b95706;
  text-align:center;
  text-decoration:none;
  font-size:10px;
  font-weight:900;
}

/* 診断保存成功/失敗 */
.result-note.save-success{
  border-color:#bcd7a8;
  background:#f4faef;
  color:#48653b;
}
.result-note.save-error{
  border-color:#e6b8b8;
  background:#fff2f2;
  color:#a03f3f;
  font-weight:900;
}

@media (max-width:699px){
  .customer-list-card{
    padding:12px 10px;
  }

  .customer-list-card-top{
    grid-template-columns:24px minmax(0,1fr);
  }

  .customer-list-state{
    grid-column:2;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    margin-top:5px;
  }

  .customer-list-area-title,
  .customer-list-areas,
  .customer-list-info-grid,
  .customer-detail-button{
    margin-left:32px;
  }

  .customer-list-areas{
    grid-template-columns:1fr;
  }

  .customer-list-info-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .list-area-card strong{
    font-size:12px;
  }
}

@media (min-width:900px){
  .customer-list-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* ===== Ver.2.20 UI refinement ===== */

/* 管理画面 → 診断ページ */
.nav{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.nav .diagnosis-link{
  background:#f3f8ec;
  border-color:#b9d499;
  color:#4f6f2f;
}
.nav .diagnosis-link:hover{
  background:#eaf4df;
}

/* 顧客一覧：「顧客詳細を見る」を主CTAとして強く見せる */
.customer-detail-button{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  padding:12px 16px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg,#f57a00,#ff9418);
  color:#fff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow:0 5px 12px rgba(220,101,0,.18);
}
.customer-detail-button:hover{
  filter:brightness(.98);
}
.customer-detail-button:active{
  transform:translateY(1px);
}

/* 顧客詳細：3列のカード背景色を統一
   色分けではなく、文字とラベルで情報を識別する */
.diagnosis-info-card,
.diagnosis-calendar,
.diagnosis-home,
.diagnosis-budget,
.diagnosis-loan,
.diagnosis-stage,
.diagnosis-company,
.diagnosis-problem,
.diagnosis-consult,
.diagnosis-residence{
  background:linear-gradient(180deg,#ffffff 0%,#fffaf5 100%) !important;
  border-color:#eadfd4 !important;
}

/* カード見出しも同系色で統一 */
.diagnosis-info-label{
  color:#9a6a3d;
}
.diagnosis-info-value{
  color:#332d28;
}

/* 希望エリア3カードも同系統へ
   第1希望だけ枠を少し強くして優先度を示す */
.area-display-card,
.area-display-card.area-first{
  background:linear-gradient(180deg,#fff 0%,#fffaf5 100%);
  border-color:#eadfd4;
}
.area-display-card.area-first{
  border-color:#efb978;
  box-shadow:inset 0 0 0 1px rgba(239,185,120,.18);
}
.area-number,
.area-first .area-number{
  color:#a5652f;
}

/* 顧客詳細の推奨営業・対応管理も同系色へ寄せる */
.recommend-card{
  background:linear-gradient(180deg,#fffaf4 0%,#fff5e9 100%);
  border-color:#efc995;
}
.management-card{
  background:linear-gradient(180deg,#fff 0%,#fffdf9 100%);
  border-color:#eadfd4;
}

/* スマホ */
@media (max-width:699px){
  .nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .nav a{
    min-height:44px;
  }
  .customer-detail-button{
    min-height:52px;
    font-size:14px;
    margin-left:32px;
  }
}

/* PC */
@media (min-width:700px){
  .customer-detail-button{
    min-height:50px;
    font-size:14px;
  }
}


/* ===== Ver.2.21 mobile dashboard fix ===== */

/* スマホで「見込み客の状態」の人数が右へはみ出す問題を修正 */
@media (max-width:699px){

  /* 2列レイアウトは維持 */
  #dashboard-grid{
    gap:10px;
    align-items:start;
  }

  #dashboard-grid .mini-card{
    min-width:0;
    overflow:hidden;
    height:auto;
    align-self:start;
  }

  /* 見込み客の状態だけ、ドーナツ→凡例の縦構成にする */
  #dashboard-grid .mini-card:nth-child(1) .donut-area{
    display:block;
  }

  #dashboard-grid .mini-card:nth-child(1) .donut{
    width:92px;
    height:92px;
    margin:6px auto 12px;
    flex:none;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    min-width:0;
    gap:0;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend > div{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:6px;
    width:100%;
    padding:4px 0;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend span{
    min-width:0 !important;
    width:auto;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:10px;
    line-height:1.25;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend b{
    min-width:28px;
    text-align:right;
    white-space:nowrap;
    font-size:10px;
  }

  /* 各分析カードの高さを内容に合わせる */
  #dashboard-grid .mini-card{
    min-height:0;
  }

  #dashboard-grid .mini-card .row{
    margin-bottom:8px;
  }

  #dashboard-grid .mini-card .labelrow{
    gap:6px;
    align-items:flex-start;
  }

  #dashboard-grid .mini-card .labelrow span{
    min-width:0;
    overflow-wrap:anywhere;
    line-height:1.3;
    font-size:10px;
  }

  #dashboard-grid .mini-card .labelrow b{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:10px;
  }

  /* 説明プルダウンもカード幅からはみ出さない */
  #dashboard-grid .ui-help{
    width:100%;
    min-width:0;
  }

  #dashboard-grid .ui-help summary{
    min-width:0;
    gap:4px;
  }

  #dashboard-grid .ui-help p{
    overflow-wrap:anywhere;
  }
}

/* PCは従来レイアウトを維持 */


/* ===== Ver.2.22 mobile dashboard layout ===== */

@media (max-width:699px){

  /* 全体の状況は基本2列 */
  #dashboard-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    align-items:start;
  }

  /* 見込み客の状態だけ横幅100％ */
  #dashboard-grid .mini-card:nth-child(1){
    grid-column:1 / -1;
    padding:14px 16px;
  }

  /* 横長カード内でドーナツと凡例を左右配置 */
  #dashboard-grid .mini-card:nth-child(1) .donut-area{
    display:grid;
    grid-template-columns:120px minmax(0,1fr);
    align-items:center;
    gap:18px;
    margin-top:8px;
  }

  #dashboard-grid .mini-card:nth-child(1) .donut{
    width:108px;
    height:108px;
    margin:0 auto;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
    width:100%;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend > div{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    align-items:center;
    padding:4px 0;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend span{
    min-width:0 !important;
    white-space:nowrap;
    font-size:10px;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend b{
    min-width:34px;
    text-align:right;
    white-space:nowrap;
    font-size:11px;
  }

  /* 1枚目の説明は全幅で下 */
  #dashboard-grid .mini-card:nth-child(1) .ui-help{
    margin-top:12px;
  }

  /* 他のカードは高さを無理に合わせない */
  #dashboard-grid .mini-card:not(:nth-child(1)){
    min-height:0;
    height:auto;
    padding:12px;
  }

  #dashboard-grid .mini-card .card-title{
    margin-bottom:10px;
    font-size:14px;
    line-height:1.25;
  }

  #dashboard-grid .mini-card .row{
    margin-bottom:10px;
  }

  #dashboard-grid .mini-card .labelrow{
    align-items:flex-start;
    gap:6px;
  }

  #dashboard-grid .mini-card .labelrow span{
    min-width:0;
    font-size:10px;
    line-height:1.35;
    overflow-wrap:anywhere;
  }

  #dashboard-grid .mini-card .labelrow b{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:10px;
  }

  #dashboard-grid .mini-card .bar{
    height:8px;
  }

  /* プルダウン見出しを小さく整理 */
  #dashboard-grid .ui-help{
    margin-top:10px;
    padding-top:8px;
  }

  #dashboard-grid .ui-help summary{
    font-size:9px;
  }

  /* セクション間の余白 */
  .section-title{
    margin-top:22px;
  }
}

@media (max-width:420px){
  #dashboard-grid .mini-card:nth-child(1) .donut-area{
    grid-template-columns:96px minmax(0,1fr);
    gap:12px;
  }

  #dashboard-grid .mini-card:nth-child(1) .donut{
    width:92px;
    height:92px;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend span{
    font-size:9px;
  }

  #dashboard-grid .mini-card:nth-child(1) .legend b{
    font-size:10px;
  }
}

/* ===== Ver.2.24 sales follow-up / option UI ===== */
.customer-sama,.detail-sama{font-size:.72em;font-weight:600;color:#8a817a}
.response-pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;background:#f3f4f5;color:#555;font-size:10px;font-weight:700;margin-top:4px}
.contact-today-list{display:grid;gap:8px}
.contact-today-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #e4e5e6;border-radius:10px;background:#fff}
.contact-today-row:nth-child(even){background:#f7f8f8}
.contact-today-row.overdue{background:#fff5ed;border-color:#f1d5bf}
.contact-today-row>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.contact-today-row strong{font-size:13px;color:#3f3a36}.contact-today-row strong small{font-size:9px;color:#8d857f;font-weight:600}
.contact-today-row span{font-size:10px;color:#726b65;line-height:1.35}
.contact-today-row a{flex:0 0 auto;text-decoration:none;background:#fff;border:1px solid #d8dadd;color:#555;padding:7px 10px;border-radius:8px;font-size:10px;font-weight:800}
.contact-list-link{display:block;text-align:center;margin-top:8px;padding:9px;border-radius:8px;background:#f1f2f3;color:#666;text-decoration:none;font-size:10px;font-weight:800}
.sales-option-section{margin-top:26px;padding:18px;border-radius:14px;background:#f1f2f3;border:1px solid #e1e3e5}
.sales-option-heading h2{margin:7px 0 5px;font-size:18px;color:#3f3a36}.sales-option-heading p{margin:0;color:#6d6863;font-size:11px;line-height:1.6}
.option-badge{display:inline-flex;background:#f6eadc;color:#9b5b22;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:900}
.standard-feature-chips,.sales-style-chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.standard-feature-chips span,.sales-style-chips span{background:#fff;border:1px solid #d9dcdf;border-radius:999px;padding:5px 8px;font-size:9px;color:#5f5a56;font-weight:700}
.option-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.option-card{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #dfe1e3;border-radius:10px;padding:11px;min-width:0}
.option-card strong{font-size:11px;color:#403b37}.option-card span{font-size:9px;line-height:1.45;color:#746e69}
.option-details{margin-top:12px;border-top:1px solid #d6d9dc;padding-top:10px}.option-details summary{cursor:pointer;font-size:10px;font-weight:800;color:#5e5955;list-style:none}.option-details summary::after{content:' ＋'}.option-details[open] summary::after{content:' −'}
.option-details-body{font-size:10px;color:#68625e;line-height:1.6}.option-details-body p{margin:7px 0}
.option-consult-cta{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d6dadd;background:#fff;border-radius:10px;padding:12px}
.option-consult-cta>div{display:flex;flex-direction:column;gap:2px}.option-consult-cta strong{font-size:12px;color:#4c433d}.option-consult-cta span{font-size:10px;color:#766f69}
.option-consult-cta a{display:inline-flex;align-items:center;justify-content:center;min-width:170px;padding:9px 12px;border-radius:8px;font-size:11px;font-weight:900;text-decoration:none;background:var(--orange,#ee6f00);color:#fff;box-shadow:0 4px 12px rgba(238,111,0,.18)}
.option-consult-cta a:hover{filter:brightness(.92)}
.contact-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.contact-info-grid>div{background:#f7f7f6;border:1px solid #e5e3df;border-radius:10px;padding:11px;display:flex;flex-direction:column;gap:5px}.contact-info-grid span{font-size:9px;color:#7d756e}.contact-info-grid strong{font-size:10px;line-height:1.4;color:#514b46}
.management-input{width:100%;box-sizing:border-box;border:1px solid #d9d6d2;border-radius:8px;padding:10px;background:#fff;font:inherit}.last-recorded{font-size:10px;color:#777;margin:8px 0 12px}
.result-disclosure{margin-top:12px;border:1px solid #e2ded8;border-radius:10px;background:#fff;padding:10px 12px}.result-disclosure summary{cursor:pointer;list-style:none;font-size:11px;font-weight:900;color:#514943}.result-disclosure summary::after{content:' ＋'}.result-disclosure[open] summary::after{content:' −'}
.rank-guide-grid{display:grid;gap:7px;margin-top:10px}.rank-guide-grid>div{display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:8px;background:#faf8f5}.rank-guide-grid strong{font-size:10px}.rank-guide-grid span{font-size:9px;color:#756d66}
.result-advice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.result-advice-card{border:1px solid #e4dfd9;border-radius:10px;background:#fff;padding:12px}.result-advice-card h3{font-size:11px;margin:0 0 8px;color:#4f4842}.result-advice-card p{font-size:10px;line-height:1.45;margin:4px 0;color:#6c645d}
.demo-badge{display:inline-flex;background:#f7eadc;color:#9c642d;border-radius:999px;padding:3px 6px;font-size:8px;margin-right:3px}.demo-full-info{margin-top:10px;font-size:10px;line-height:1.6;color:#665f59}.demo-full-info ul{padding-left:18px;margin:7px 0}.demo-full-info li{margin:2px 0}

@media(max-width:699px){
  .option-card-grid{grid-template-columns:1fr 1fr}
  .option-consult-cta{align-items:stretch;flex-direction:column}.option-consult-cta a{min-width:0;width:100%;box-sizing:border-box}
  .contact-info-grid{grid-template-columns:1fr}
  .result-advice-grid{grid-template-columns:1fr}
  .contact-today-row{padding:10px}.contact-today-row a{font-size:9px}
}

/* ===== Ver.2.25 experiential diagnosis / readability (final override) ===== */
.diag-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.diag-section-label{font-size:13px;font-weight:900;color:#587c36;letter-spacing:.01em}
.diag-step{font-size:12px;padding:5px 10px}
.question-hint{margin:-4px 0 18px;color:#747d6b;font-size:14px;line-height:1.7}
.diag-card legend{font-size:18px;line-height:1.55}
.choice{font-size:16px;min-height:56px;padding:12px 14px}
.choice span{line-height:1.45}
.diag-back{font-size:14px}
.diag-actions .diag-next{font-size:17px;min-height:54px}
.scale-choice-wrap{padding:8px 0 4px}
.scale-end-labels{font-size:13px;margin-bottom:16px}
.scale-options{align-items:center;gap:6px;padding:4px 2px 0}
.scale-choice{gap:8px}
.scale-dot{width:34px;height:34px;border-width:3px}
.scale-choice:nth-child(1) .scale-dot,.scale-choice:nth-child(7) .scale-dot{width:58px;height:58px}
.scale-choice:nth-child(2) .scale-dot,.scale-choice:nth-child(6) .scale-dot{width:50px;height:50px}
.scale-choice:nth-child(3) .scale-dot,.scale-choice:nth-child(5) .scale-dot{width:42px;height:42px}
.scale-choice:nth-child(4) .scale-dot{width:34px;height:34px}
.scale-choice small{font-size:10px;max-width:92px;min-height:28px}
.scale-choice input:checked + .scale-dot{background:#7cab42;border-color:#6f9e34;transform:scale(1.06)}
.result-kicker{font-size:13px;font-weight:900;color:#668a45;margin-bottom:7px}
.result-current-label{font-size:12px;font-weight:900;color:#78836d;margin-bottom:6px}
.result-hero{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:18px;align-items:center;margin-top:0;padding:20px;border:1px solid #dbe8cc;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fbfff6 100%)}
.result-title{font-size:25px!important;line-height:1.45;color:#3f5f2b}
.result-message{font-size:15px!important;line-height:1.8;margin-top:10px;color:#5f6859}
.result-score-ring strong{font-size:40px}
.result-score-ring span{font-size:11px}
.result-trend-title{font-size:15px}
.trend-row>span{font-size:12px}
.trend-row>b{font-size:11px}
.result-advice-card h3,.result-caution-card h3{font-size:15px!important}
.result-advice-card article strong{font-size:14px}
.result-advice-card article span{font-size:13px;line-height:1.7}
.next-actions p span{font-size:14px}
.result-caution-card p{font-size:14px;line-height:1.75}
.result-summary span{font-size:12px!important}
.result-summary strong{font-size:15px!important}
.result-note{font-size:13px!important;line-height:1.6}
.result-disclosure summary{font-size:14px!important}
.demo-full-info{font-size:13px!important}
/* admin readability */
.today-help,.ui-help summary,.ui-help p{font-size:12px!important}
.contact-today-row strong{font-size:14px!important}
.contact-today-row span{font-size:12px!important}
.contact-today-row a{font-size:11px!important}
.option-card strong{font-size:14px!important}
.option-card span{font-size:12px!important;line-height:1.6!important}
.sales-option-heading p{font-size:13px!important}
.standard-feature-chips span,.sales-style-chips span{font-size:11px!important}
.option-details summary,.option-details-body{font-size:12px!important}
.option-consult-cta strong{font-size:14px!important}
.option-consult-cta span{font-size:12px!important}
@media(max-width:699px){
  .diag-section-label{font-size:12px}
  .diag-card legend{font-size:17px}
  .question-hint{font-size:13px}
  .scale-end-labels{font-size:11px}
  .scale-options{gap:2px}
  .scale-choice:nth-child(1) .scale-dot,.scale-choice:nth-child(7) .scale-dot{width:48px;height:48px}
  .scale-choice:nth-child(2) .scale-dot,.scale-choice:nth-child(6) .scale-dot{width:42px;height:42px}
  .scale-choice:nth-child(3) .scale-dot,.scale-choice:nth-child(5) .scale-dot{width:36px;height:36px}
  .scale-choice:nth-child(4) .scale-dot{width:30px;height:30px}
  .scale-choice small{display:none}
  .result-hero{grid-template-columns:1fr 104px;padding:15px;gap:10px}
  .result-score-ring{width:96px;height:96px}.result-score-ring::before{inset:9px}.result-score-ring strong{font-size:30px}.result-score-ring span{font-size:8px}
  .result-title{font-size:20px!important}.result-message{font-size:13px!important}
}

/* ===== Ver.2.26 experiential diagnosis visual completion ===== */
/* Keep the existing real-estate green/ivory identity. Only the diagnosis experience is refined. */
.diagnosis-body{background:#f4f2ed}
.diagnosis-main{max-width:820px}
.diag-progress-top{margin:2px 0 18px}
.diag-progress-bar{height:7px;background:#e6eddc}
#diag-progress-fill{background:#7eae3e}
.diag-intro{padding:0 4px 18px}
.diag-intro h1{font-weight:900;letter-spacing:.01em}
.diag-card{border-radius:20px;padding:24px 22px 22px;box-shadow:0 8px 26px rgba(69,94,42,.055)}
.diag-card legend{margin-bottom:7px}
.question-hint{margin:0 0 26px}
.card-choice-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.card-choice-wrap .choice{margin:0;justify-content:center;min-height:58px;background:#fff;border:1.5px solid #d6e3c5;border-radius:13px;cursor:pointer;transition:.16s ease}
.card-choice-wrap .choice input{position:absolute;opacity:0;pointer-events:none}
.card-choice-wrap .choice span{display:flex;align-items:center;justify-content:center;width:100%;text-align:center}
.card-choice-wrap .choice:has(input:checked){background:#eef7e3;border-color:#7eae3e;box-shadow:inset 0 0 0 1px #7eae3e;color:#456728;transform:translateY(-1px)}
.card-choice-wrap .choice:hover{border-color:#a9c987}

/* 16Personalities-inspired scale: two endpoint labels + seven visual circles only. */
.scale-choice-wrap{padding:10px 4px 4px}
.scale-end-labels{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;color:#6f7868;font-size:14px;font-weight:800;margin:0 0 18px}
.scale-end-labels span{max-width:44%;line-height:1.4}
.scale-end-labels span:last-child{text-align:right}
.scale-options{display:flex!important;justify-content:space-between;align-items:center!important;gap:12px!important;min-height:78px;padding:0 6px!important}
.scale-choice{display:grid!important;place-items:center;position:relative;min-width:40px;min-height:70px;cursor:pointer}
.scale-choice input{position:absolute;opacity:0;pointer-events:none}
.scale-dot{display:block!important;box-sizing:border-box;border:3px solid #9dc878;background:#fff;border-radius:50%;transition:transform .16s ease,background .16s ease,box-shadow .16s ease,border-color .16s ease}
.scale-choice:nth-child(1) .scale-dot,.scale-choice:nth-child(7) .scale-dot{width:64px!important;height:64px!important}
.scale-choice:nth-child(2) .scale-dot,.scale-choice:nth-child(6) .scale-dot{width:54px!important;height:54px!important}
.scale-choice:nth-child(3) .scale-dot,.scale-choice:nth-child(5) .scale-dot{width:44px!important;height:44px!important}
.scale-choice:nth-child(4) .scale-dot{width:34px!important;height:34px!important;border-color:#cdd5c7}
.scale-choice:nth-child(5) .scale-dot,.scale-choice:nth-child(6) .scale-dot,.scale-choice:nth-child(7) .scale-dot{border-color:#c4d6b1}
.scale-choice input:checked + .scale-dot{background:#7eae3e!important;border-color:#7eae3e!important;box-shadow:0 5px 14px rgba(103,151,52,.22);transform:scale(1.08)!important}
.scale-choice input:focus-visible + .scale-dot{outline:3px solid rgba(126,174,62,.24);outline-offset:4px}
.scale-choice small{display:none!important}
.diag-actions{margin-top:26px;grid-template-columns:1fr 1.55fr;gap:12px}
.diag-back,.diag-actions .diag-next{min-height:56px;border-radius:14px}
.diag-actions .diag-next{background:#7eae3e;box-shadow:0 6px 14px rgba(93,137,45,.16)}
.diag-actions .diag-next:hover{filter:brightness(.97)}

/* Short visual pause before the result, inspired by the reference flow. */
.diag-interstitial{text-align:center;padding:54px 18px 62px}
.interstitial-mini{display:inline-block;padding:7px 12px;border-radius:999px;background:#eef7e3;color:#527a2f;font-size:13px;font-weight:900}
.interstitial-ring{width:132px;height:132px;margin:24px auto 18px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#7eae3e 0 288deg,#e9efe2 288deg 360deg);position:relative}
.interstitial-ring::after{content:"";position:absolute;inset:11px;border-radius:50%;background:#fffdf8}
.interstitial-ring strong{position:relative;z-index:1;font-size:33px;color:#476b2b}
.diag-interstitial h2{font-size:22px;color:#3f5f2b;margin:0 0 8px}
.diag-interstitial p{font-size:14px;color:#70776a;line-height:1.7;margin:0}

/* Result = visual dashboard first, detailed prose second. */
.diag-result{padding-top:6px}
.result-hero{grid-template-columns:minmax(0,1fr) 174px!important;padding:24px!important;border-radius:20px!important;background:linear-gradient(135deg,#fff 0%,#f7fceb 100%)!important;box-shadow:0 8px 25px rgba(71,96,43,.05)}
.result-current-label{font-size:13px!important;color:#6f7b67!important}
.result-title{font-size:27px!important;line-height:1.4!important}
.result-message{border:0!important;background:transparent!important;padding:7px 0 0!important;margin-top:4px!important;font-size:14px!important;line-height:1.75!important}
.result-score-ring{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;align-content:center;position:relative;background:conic-gradient(#7eae3e 0 var(--score-deg,0deg),#e7edde var(--score-deg,0deg) 360deg);text-align:center}
.result-score-ring::before{content:"";position:absolute;inset:11px;border-radius:50%;background:#fff}
.result-score-ring strong,.result-score-ring span{position:relative;z-index:1}
.result-score-ring strong{font-size:43px!important;line-height:1;color:#344629}
.result-score-ring span{display:block;max-width:84px;margin-top:6px;font-size:10px!important;line-height:1.3;color:#717a6b}
.result-trend-card{margin-top:14px;padding:17px;border:1px solid #e0e8d6;border-radius:16px;background:#fff}
.result-trend-title{font-weight:900;color:#4c6239;margin-bottom:12px}
.trend-row{display:grid;grid-template-columns:82px minmax(0,1fr) 128px;gap:11px;align-items:center;margin:10px 0}
.trend-bar{height:10px;border-radius:99px;background:#edf1e9;overflow:hidden}
.trend-bar i{display:block;height:100%;border-radius:99px;background:#7eae3e;transition:width .35s ease}
.trend-row>b{text-align:right;color:#54634a;font-weight:800}
.result-advice-grid{gap:12px!important}
.result-advice-card{border-radius:16px!important;padding:17px!important;border-color:#e0e5d9!important;box-shadow:0 4px 14px rgba(77,93,55,.035)}
.result-advice-card h3{margin-bottom:12px!important;color:#3f5132!important}
.result-advice-card article{padding:12px 0;border-top:1px solid #edf0e9}
.result-advice-card article:first-of-type{border-top:0;padding-top:0}
.result-advice-card article strong{display:block;margin-bottom:4px;color:#4a5d3c}
.result-advice-card article span{display:block;color:#6d7469;max-height:0;overflow:hidden;opacity:0;transition:max-height .25s ease,opacity .2s ease}
.result-advice-card article.is-open span{max-height:180px;opacity:1}
.mini-detail-toggle{border:0;background:transparent;padding:5px 0 0;color:#668b41;font-size:11px;font-weight:900;cursor:pointer}
.next-actions p{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:9px;padding:10px 0;margin:0!important;border-top:1px solid #edf0e9}
.next-actions p:first-of-type{border-top:0}
.next-actions p b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#7eae3e;color:#fff}
.result-caution-card{margin-top:12px;padding:16px 18px;border:1px solid #eadfb9;border-radius:15px;background:#fffaf0}
.result-caution-card h3{margin:0 0 7px;color:#6d5b2d}
.result-caution-card p{margin:0!important}

@media(max-width:699px){
  .diagnosis-main{padding-left:14px;padding-right:14px}
  .diag-card{padding:20px 16px}
  .card-choice-wrap{grid-template-columns:1fr}
  .scale-options{gap:4px!important;padding:0!important}
  .scale-choice{min-width:30px}
  .scale-choice:nth-child(1) .scale-dot,.scale-choice:nth-child(7) .scale-dot{width:50px!important;height:50px!important}
  .scale-choice:nth-child(2) .scale-dot,.scale-choice:nth-child(6) .scale-dot{width:43px!important;height:43px!important}
  .scale-choice:nth-child(3) .scale-dot,.scale-choice:nth-child(5) .scale-dot{width:36px!important;height:36px!important}
  .scale-choice:nth-child(4) .scale-dot{width:29px!important;height:29px!important}
  .diag-actions{grid-template-columns:.9fr 1.5fr;gap:9px}
  .result-hero{grid-template-columns:1fr!important;text-align:left;padding:18px!important}
  .result-score-ring{width:118px;height:118px;justify-self:start;margin-top:5px}
  .result-score-ring strong{font-size:34px!important}
  .trend-row{grid-template-columns:72px minmax(0,1fr);gap:8px}
  .trend-row>b{grid-column:2;text-align:left;margin-top:-4px;font-size:11px!important}
}

/* Ver.2.27 | 診断フェーズ分離・意識診断UI */
.diag-phase-transition{
  margin:18px auto 0;
  max-width:760px;
  padding:52px 28px 46px;
  text-align:center;
  border:1px solid #dbe8cc;
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#f9fdef 100%);
  box-shadow:0 10px 28px rgba(77,101,48,.06);
}
.phase-step-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 13px;
  border-radius:999px;
  background:#edf6df;
  color:#557b33;
  font-size:13px;
  font-weight:900;
}
.diag-phase-transition h2{
  margin:18px 0 8px;
  color:#3f5f2b;
  font-size:25px;
  line-height:1.45;
}
.diag-phase-transition p{
  max-width:560px;
  margin:0 auto 28px;
  color:#687060;
  font-size:15px;
  line-height:1.8;
}
.diag-phase-transition .diag-next{
  width:min(440px,100%);
  min-height:56px;
  margin:0 auto;
  border-radius:14px;
}
.scale-caption{
  min-height:28px;
  margin-top:14px;
  text-align:center;
  color:#587c36;
  font-size:13px;
  font-weight:800;
}
@media (max-width:640px){
  .diag-phase-transition{padding:38px 18px 34px;border-radius:18px}
  .diag-phase-transition h2{font-size:21px}
  .diag-phase-transition p{font-size:13px}
  .scale-caption{font-size:12px}
}

/* ===== Ver.2.28 mobile-first progressive result / compact diagnosis flow ===== */
.start-benefit-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.start-benefit-chips span{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border:1px solid #d7e5c8;border-radius:999px;background:#f7fbea;color:#557735;font-size:12px;font-weight:900}
.diagnosis-compact-header{display:none;align-items:center;justify-content:space-between;gap:10px;max-width:820px;margin:0 auto 14px;padding:10px 14px;border:1px solid #dbe8cc;border-radius:14px;background:#fff}
.diagnosis-compact-header>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.diagnosis-compact-header strong{font-size:14px;color:#3f5f2b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.diagnosis-compact-header span{font-size:11px;color:#75806d}
.diagnosis-compact-header b{flex:0 0 auto;display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf6df;color:#557b33;font-size:11px}
.result-open-btn{width:min(440px,100%);min-height:58px;margin:24px auto 0;border-radius:14px}
.result-next-primary{margin-top:12px}
.result-more-details{margin-top:12px;border:1px solid #dfe6d7;border-radius:16px;background:#fff;overflow:hidden}
.result-more-details>summary{cursor:pointer;list-style:none;padding:16px 18px;font-size:14px;font-weight:900;color:#4b6338;background:#f8fbf3}
.result-more-details>summary::after{content:' ＋';float:right}
.result-more-details[open]>summary::after{content:' −'}
.result-more-details .result-advice-grid{margin:0;padding:12px;background:#fff}
.result-more-details .result-caution-card{margin-top:0}

@media (max-width:699px){
  body.diagnosis-active .diagnosis-uploaded-header{display:none}
  body.diagnosis-active .diagnosis-compact-header{display:flex}
  body.diagnosis-active .diag-intro{display:none}
  body.diagnosis-active .diag-progress-top{margin-top:0}
  body.diagnosis-active .diagnosis-main{padding-top:0}
  .diagnosis-compact-header{position:sticky;top:6px;z-index:20;box-shadow:0 5px 18px rgba(66,87,45,.06)}
  .diag-card{margin-top:8px}
  .diag-phase-transition{margin-top:8px;min-height:56vh;display:flex;flex-direction:column;justify-content:center}
  .diag-interstitial{min-height:58vh;display:flex;flex-direction:column;justify-content:center;padding:34px 16px 42px}
  .result-kicker{margin-top:2px}
  .result-hero{margin-top:6px}
  .result-trend-card{margin-top:10px}
  .result-next-primary{margin-top:10px;padding:15px!important}
  .result-next-primary h3{margin-bottom:8px!important}
  .result-next-primary .next-actions p,.result-next-primary p{padding:8px 0}
  .result-more-details>summary{padding:15px 16px;font-size:13px}
  .result-more-details .result-advice-grid{padding:10px}
  .result-disclosure{padding:12px 14px}
  .result-note{margin-top:10px}
  .start-benefit-chips span{font-size:11px;padding:5px 9px}
  .lead-info-card label:has(#lead-phone),.lead-info-card label:has(#lead-email){display:none}
  .demo-privacy-note p{font-size:12px;line-height:1.6}
}

@media (min-width:700px){
  .result-more-details>summary{display:none}
  .result-more-details{border:0;background:transparent;overflow:visible}
  .result-more-details .result-advice-grid{padding:0;margin-top:12px}
}

/* ===== Ver.2.29 visual-first result + LINE detail split ===== */
.result-visual-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.result-visual-card{min-height:122px;padding:16px;border:1px solid #dfe8d5;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#fbfdf7 100%);display:flex;flex-direction:column;justify-content:center}
.result-visual-card span{font-size:12px;font-weight:800;color:#7a846f;margin-bottom:8px}
.result-visual-card strong{font-size:20px;line-height:1.35;color:#405f2f}
.result-visual-card small{font-size:11px;line-height:1.5;color:#7b8176;margin-top:6px}
.result-line-cta{margin-top:14px;padding:18px;border:1px solid #d9e8cb;border-radius:18px;background:linear-gradient(135deg,#f6fbea 0%,#fff 100%);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center}
.result-line-cta>div{min-width:0}
.line-cta-kicker{display:inline-block;font-size:11px;font-weight:900;color:#6d8e4d;background:#edf6df;border-radius:999px;padding:5px 9px;margin-bottom:7px}
.result-line-cta h3{margin:0 0 6px;font-size:18px;color:#3e5c2e}
.result-line-cta p{margin:0;font-size:13px;line-height:1.65;color:#687061}
.result-line-cta button{min-width:240px;min-height:52px;border:0;border-radius:12px;background:#7fb43b;color:#fff;font-size:14px;font-weight:900;padding:0 18px;box-shadow:0 5px 14px rgba(95,137,45,.16)}
.result-line-cta button:disabled{opacity:.58;cursor:not-allowed}
.result-line-cta>small{grid-column:1/-1;font-size:10px;color:#8a8e83}
/* WEB visible result is intentionally concise. Long-form findings stay behind disclosure / future LINE delivery. */
@media(max-width:699px){
  .result-visual-summary{grid-template-columns:1fr;gap:9px;margin-top:10px}
  .result-visual-card{min-height:auto;padding:14px 16px}
  .result-visual-card span{font-size:11px;margin-bottom:4px}
  .result-visual-card strong{font-size:18px}
  .result-line-cta{grid-template-columns:1fr;padding:16px;margin-top:10px}
  .result-line-cta h3{font-size:17px}
  .result-line-cta p{font-size:12px}
  .result-line-cta button{width:100%;min-width:0}
  .result-more-details,.condition-disclosure,.demo-info-disclosure{margin-top:9px}
}

/* Ver.2.30 result page: visual proposal first / long-form detail to LINE */
.result-visual-card{position:relative;overflow:hidden;border-width:1px}
.result-visual-card::before{content:"";position:absolute;left:0;top:0;right:0;height:5px}
.result-visual-card.tone-green{background:linear-gradient(180deg,#f6fbef 0%,#fff 100%);border-color:#cfe2b8}
.result-visual-card.tone-green::before{background:#7fb43b}
.result-visual-card.tone-blue{background:linear-gradient(180deg,#f2f8fc 0%,#fff 100%);border-color:#c9dce8}
.result-visual-card.tone-blue::before{background:#6fa8c7}
.result-visual-card.tone-peach{background:linear-gradient(180deg,#fff6ec 0%,#fff 100%);border-color:#efd5b5}
.result-visual-card.tone-peach::before{background:#e7a55a}
.result-section-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:13px}
.result-section-heading span{font-size:11px;font-weight:800;color:#87907c;letter-spacing:.03em}
.result-section-heading strong{font-size:20px;line-height:1.35;color:#3e582f}
.result-guidance-board{margin-top:14px;padding:18px;border:1px solid #dbe6cf;border-radius:18px;background:#fff}
.result-guidance-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.guidance-step{min-height:126px;padding:16px;border-radius:15px;display:flex;flex-direction:column;justify-content:center;gap:9px;border:1px solid transparent}
.guidance-step span{font-size:10px;font-weight:900;letter-spacing:.06em}
.guidance-step strong{font-size:16px;line-height:1.55;color:#38432f}
.guidance-step.step-1{background:#f5faed;border-color:#d0e2b9}.guidance-step.step-1 span{color:#6d9e31}
.guidance-step.step-2{background:#f2f8fc;border-color:#ccdfeb}.guidance-step.step-2 span{color:#5b94b6}
.guidance-step.step-3{background:#fff5ea;border-color:#efd6b6}.guidance-step.step-3 span{color:#c98538}
.result-company-help{margin-top:14px;padding:18px;border:1px solid #e4dbc9;border-radius:18px;background:linear-gradient(180deg,#fffdf8 0%,#fff 100%)}
.company-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.company-help-card{min-height:126px;padding:16px;border-radius:15px;border:1px solid #e4e5df;background:#fff;display:flex;flex-direction:column;gap:7px}
.company-help-card b{font-size:16px;line-height:1.35;color:#3f4539}
.company-help-card span{font-size:12px;line-height:1.7;color:#697064}
.help-finance{border-top:5px solid #6fa8c7}.help-property{border-top:5px solid #7fb43b}.help-consult{border-top:5px solid #e7a55a}
.company-help-note{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#f7f4ec;color:#6e6657;font-size:11px;line-height:1.65}
.result-line-cta{border:2px solid #b9d89a!important;background:linear-gradient(135deg,#eff9e5 0%,#fff 72%)!important;box-shadow:0 8px 20px rgba(111,155,63,.08)}
.line-cta-kicker{display:inline-block;margin-bottom:5px;padding:4px 8px;border-radius:999px;background:#dff0cb;color:#547a2e;font-size:10px;font-weight:900}
.line-report-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.line-report-tags span{padding:5px 9px;border-radius:999px;background:#fff;border:1px solid #cfe1bc;color:#607a49;font-size:10px;font-weight:800}
.line-report-data{display:none!important}
#trend-timing{background:#7fb43b!important}#trend-condition{background:#e4aa52!important}#trend-finance{background:#6fa8c7!important}#trend-decision{background:#9b83bd!important}#trend-consult{background:#dd8a72!important}

@media(max-width:720px){
  .result-guidance-board,.result-company-help{padding:15px;margin-top:10px}
  .result-section-heading strong{font-size:18px}
  .result-guidance-steps,.company-help-grid{grid-template-columns:1fr;gap:8px}
  .guidance-step,.company-help-card{min-height:auto;padding:13px 14px}
  .guidance-step{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:10px}
  .guidance-step span{margin:0}.guidance-step strong{font-size:15px}
  .company-help-card b{font-size:15px}.company-help-card span{font-size:11px}
  .result-line-cta{padding:15px!important}
  .line-report-tags{margin-top:8px}
}


/* ===== Ver.2.31 readiness gauges ===== */
.result-readiness-panel{margin-top:14px;padding:18px;border:1px solid #e1e5dc;border-radius:18px;background:#fff}
.readiness-gauge-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.readiness-gauge-card{padding:14px 10px 16px;border:1px solid #e4e5e1;border-radius:16px;background:#fff;text-align:center;position:relative;overflow:hidden}
.readiness-gauge-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px}
.readiness-gauge-card>span{display:block;font-size:12px;font-weight:900;color:#5e6558;margin:4px 0 10px}
.readiness-gauge-card>b{display:block;min-height:34px;margin-top:9px;font-size:11px;line-height:1.45;color:#5b6256}
.readiness-gauge-card.tone-green::before{background:#7fb43b}.readiness-gauge-card.tone-orange::before{background:#e6a141}.readiness-gauge-card.tone-blue::before{background:#6ea7c8}.readiness-gauge-card.tone-purple::before{background:#8e79b8}.readiness-gauge-card.tone-coral::before{background:#d8846f}
.mini-gauge{--gauge-color:#7fb43b;--gauge-deg:0deg;width:96px;height:96px;margin:0 auto;border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center;background:conic-gradient(var(--gauge-color) 0 var(--gauge-deg),#edf0ea var(--gauge-deg) 360deg)}
.mini-gauge::before{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}
.mini-gauge strong,.mini-gauge em{position:relative;z-index:1;font-style:normal}
.mini-gauge strong{font-size:30px;line-height:1;color:#df7c1f;font-weight:900}
.mini-gauge em{font-size:12px;line-height:1;margin:10px 0 0 2px;color:#8d8d86;font-weight:900}
.readiness-note{margin:14px 2px 0;font-size:10px;line-height:1.55;color:#8a8a83;text-align:center}
.result-score-ring strong{color:#df7c1f!important}.result-score-ring span{font-size:10px!important}.result-score-ring::after{content:"%";position:relative;z-index:1;font-size:15px;font-weight:900;color:#8d8d86;margin-top:-31px;margin-left:52px}
.result-score-ring span{margin-top:22px!important}
@media(max-width:899px){.readiness-gauge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:699px){.result-readiness-panel{padding:15px}.readiness-gauge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.readiness-gauge-card{padding:12px 8px 14px}.mini-gauge{width:88px;height:88px}.mini-gauge strong{font-size:28px}.readiness-gauge-card:last-child{grid-column:1/-1;max-width:50%;width:100%;justify-self:center}.readiness-gauge-card>b{font-size:10px}.readiness-note{font-size:9px}}


/* ===== Ver.2.32 action flow + sample property proposal ===== */
.result-guidance-steps{position:relative}
.result-guidance-steps .guidance-step{position:relative}
@media(min-width:700px){
  .result-guidance-steps .guidance-step:not(:last-child)::after{content:"→";position:absolute;right:-18px;top:50%;transform:translateY(-50%);z-index:3;font-size:27px;font-weight:900;color:#e39a43;background:#fff;border-radius:999px;line-height:1;padding:3px}
}
@media(max-width:699px){
  .result-guidance-steps .guidance-step:not(:last-child){margin-bottom:26px}
  .result-guidance-steps .guidance-step:not(:last-child)::after{content:"↓";position:absolute;left:50%;bottom:-27px;transform:translateX(-50%);font-size:23px;font-weight:900;color:#e39a43;line-height:1}
}
.result-property-recommendations{margin-top:14px;padding:18px;border:1px solid #e6ddcf;border-radius:18px;background:linear-gradient(180deg,#fffaf3 0%,#fff 100%)}
.property-recommendation-lead{margin:6px 0 14px;color:#716c64;font-size:12px;line-height:1.6}
.sample-property-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sample-property-card{overflow:hidden;border:1px solid #dedfd9;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(73,64,47,.05)}
.demo-property-photo{height:190px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden;border-bottom:1px solid rgba(0,0,0,.06);background:#edf2e7}
.demo-property-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.demo-property-photo::after{content:"";position:absolute;inset:auto 0 0 0;height:48%;background:linear-gradient(to top,rgba(22,27,20,.58),rgba(22,27,20,0));pointer-events:none}
.property-photo-a{background:linear-gradient(150deg,#eaf5df 0%,#cfe4bd 58%,#b9d2aa 100%)}
.property-photo-b{background:linear-gradient(150deg,#e8f2f7 0%,#c4dce8 58%,#adcbdc 100%)}
.property-photo-c{background:linear-gradient(150deg,#fff0df 0%,#efd5b6 58%,#dfbd94 100%)}
.demo-property-photo span,.demo-property-photo strong{position:relative;z-index:2;align-self:flex-start;background:rgba(255,255,255,.94);padding:4px 8px;border-radius:999px;margin-left:12px}
.demo-property-photo span{font-size:10px;color:#67615a;margin-bottom:6px}
.demo-property-photo strong{font-size:14px;color:#2f402c;margin-bottom:12px}
.sample-property-body{padding:14px}
.sample-property-badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#f4f0e8;color:#8b683c;font-size:9px;font-weight:800}
.sample-property-body h4{font-size:17px;line-height:1.45;color:#3d4639;margin:9px 0 5px}
.sample-property-price{font-size:22px;line-height:1.2;font-weight:900;color:#df7f28;margin-bottom:7px}
.sample-property-body p{font-size:12px;color:#706f69;margin:0 0 9px}
.sample-property-match{display:block;padding:9px 10px;border-radius:9px;background:#f5f9ef;color:#4e683d;font-size:11px;line-height:1.5}
.sample-property-nearby{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.sample-property-nearby span{padding:5px 7px;border:1px solid #e4e4df;border-radius:7px;background:#fafafa;color:#6f6f69;font-size:10px}
.sample-property-note{font-size:9px;line-height:1.55;color:#88847d;margin:11px 0 0}
@media(max-width:699px){
  .result-property-recommendations{padding:15px;margin-top:10px}
  .sample-property-grid{grid-template-columns:1fr;gap:10px}
  .sample-property-card{display:grid;grid-template-columns:42% 58%}
  .demo-property-photo{height:auto;min-height:190px;border-bottom:none;border-right:1px solid rgba(0,0,0,.06)}
  .sample-property-body{padding:12px}
  .sample-property-price{font-size:19px}
}

.sample-property-card.is-primary-match{border-color:#b8d79e;box-shadow:0 6px 18px rgba(89,132,55,.10)}
.other-property-type{margin-top:14px;border:1px solid #dfe5d7;border-radius:12px;background:#fff}
.other-property-type summary{cursor:pointer;padding:12px 14px;font-weight:800;color:#49613c;list-style:none}
.other-property-type summary::after{content:" ＋"}
.other-property-type[open] summary::after{content:" −"}
.other-property-type .sample-property-grid{padding:0 12px 12px}


/* ===== Ver.2.34 mobile result priority / progress fixes ===== */
.mobile-result-toggle{display:none}
@media(max-width:699px){
  /* completion cards should feel like a transition, not another long page */
  .diag-phase-transition{min-height:auto!important;padding:24px 18px 22px!important;margin-top:8px!important;justify-content:flex-start!important}
  .diag-phase-transition h2{margin:12px 0 6px!important;font-size:20px!important}
  .diag-phase-transition p{margin-bottom:18px!important;line-height:1.55!important}
  .diag-phase-transition .diag-next{min-height:52px!important}
  .diag-interstitial{min-height:auto!important;padding:26px 16px 30px!important}

  /* priority on mobile: current position -> recommended properties -> next actions */
  .result-property-recommendations{order:2;margin-top:10px!important}
  .result-readiness-panel{order:4}
  .result-visual-summary{order:5}
  .result-guidance-board{order:3}
  .result-line-cta{order:6}
  .result-disclosure{order:7}
  .diag-result{display:flex;flex-direction:column}
  .result-kicker{order:0}.result-hero{order:1}

  /* detailed readiness is opt-in on mobile */
  .mobile-result-toggle{display:block;order:4;width:100%;margin:10px 0 0;padding:13px 15px;border:1px solid #d8e4cb;border-radius:12px;background:#fff;color:#4b6338;font-weight:900;text-align:left}
  .result-readiness-panel.mobile-result-collapsible{display:none}
  .result-readiness-panel.mobile-result-collapsible.mobile-open{display:block}

  /* compact the three diagnosis-point cards into one concise block */
  .result-visual-summary{grid-template-columns:1fr!important;gap:0!important;border:1px solid #dfe8d5;border-radius:16px;overflow:hidden;background:#fff}
  .result-visual-card{min-height:auto!important;border:0!important;border-radius:0!important;padding:12px 14px!important;border-bottom:1px solid #edf0e9!important}
  .result-visual-card:last-child{border-bottom:0!important}
  .result-visual-card span{margin-bottom:3px!important;font-size:10px!important}
  .result-visual-card strong{font-size:17px!important}
  .result-visual-card small{font-size:10px!important}

  /* property cards are stacked: photo first, details second */
  .sample-property-card{display:block!important}
  .demo-property-photo{height:220px!important;min-height:0!important;border-right:0!important;border-bottom:1px solid rgba(0,0,0,.06)!important}
  .sample-property-body{padding:15px!important}
  .sample-property-body h4{font-size:18px!important;line-height:1.4!important}
  .sample-property-price{font-size:24px!important}
  .sample-property-body p{font-size:13px!important}
  .sample-property-match{font-size:12px!important;padding:10px 11px!important}
  .sample-property-nearby span{font-size:11px!important}

  /* keep alternate property type closed and visually secondary */
  .other-property-type{margin-top:10px}
  .other-property-type summary{font-size:13px}
}

/* Ver.2.35: screen state safety — hidden must always win over responsive layout rules */
[hidden] { display: none !important; }
\n\n/* ===== Ver.2.36 diagnosis start visual refresh ===== */\n.start-home-visual{\n  margin:14px 0 16px;\n  padding:14px;\n  border:1px solid #d8e5c8;\n  border-radius:16px;\n  background:linear-gradient(180deg,#fbfff7 0%,#f5faee 100%);\n  overflow:hidden;\n}\n.start-home-copy{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}\n.start-home-copy strong{font-size:17px;line-height:1.45;color:#3f6130}\n.start-home-copy span{font-size:12px;line-height:1.55;color:#6c7467}\n.start-home-images{display:grid;grid-template-columns:1fr 1fr;gap:10px}\n.start-home-card{position:relative;margin:0;border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 5px 16px rgba(61,92,44,.10);min-width:0}\n.start-home-card img{display:block;width:100%;height:150px;object-fit:cover}\n.start-home-card figcaption{position:absolute;left:9px;bottom:9px;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.94);color:#34482b;font-size:12px;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.08)}\n.start-home-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}\n.start-home-benefits div{padding:10px 8px;border:1px solid #e0e9d6;border-radius:11px;background:rgba(255,255,255,.86);text-align:center}\n.start-home-benefits b{display:block;font-size:12px;color:#466538;margin-bottom:2px}\n.start-home-benefits span{display:block;font-size:10px;line-height:1.45;color:#747a6e}\n@media(max-width:699px){\n  .start-home-visual{margin:12px 0 14px;padding:12px;border-radius:14px}\n  .start-home-copy strong{font-size:16px}\n  .start-home-copy span{font-size:11px}\n  .start-home-images{gap:8px}\n  .start-home-card img{height:118px}\n  .start-home-card figcaption{left:7px;bottom:7px;padding:5px 9px;font-size:11px}\n  .start-home-benefits{gap:6px;margin-top:10px}\n  .start-home-benefits div{padding:8px 5px}\n  .start-home-benefits b{font-size:10px}\n  .start-home-benefits span{font-size:9px}\n}\n

/* ===== Ver.2.37 diagnosis start illustration ===== */
.start-simple-visual{
  margin:12px auto 16px;
  padding:8px 10px 4px;
  max-width:520px;
  text-align:center;
  background:#fff;
}
.start-simple-visual img{
  display:block;
  width:100%;
  max-width:430px;
  height:auto;
  margin:0 auto;
  object-fit:contain;
}
@media(max-width:699px){
  .start-simple-visual{margin:10px auto 14px;padding:4px 6px 0;max-width:360px}
  .start-simple-visual img{max-width:300px}
}


/* ===== Ver.2.38 start spacing / completion polish ===== */
.start-simple-visual{
  margin:2px auto 10px !important;
  padding:0 10px 0 !important;
}
.start-simple-visual img{
  margin-top:-10px !important;
}

/* 100% completion ring must visually close the full circle */
.interstitial-ring{
  width:136px;
  height:136px;
  margin:16px auto 14px;
  background:conic-gradient(from 0deg,#7eae3e 0 360deg) !important;
  box-shadow:0 0 0 1px rgba(126,174,62,.10);
}
.interstitial-ring::before{
  content:"";
  position:absolute;
  z-index:3;
  left:50%;
  top:-5px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#5f942d;
  transform:translateX(-50%);
  box-shadow:0 0 0 4px #fffdf8;
}
.interstitial-ring::after{
  inset:11px;
}
.interstitial-ring strong{
  font-size:34px;
}
.completion-copy{
  text-align:center;
}
.completion-copy>span{
  display:inline-block;
  margin:0 0 7px;
  color:#7c6a48;
  font-size:13px;
  font-weight:900;
  letter-spacing:.05em;
}
.completion-copy h2{
  margin:0 0 8px;
}
.diag-interstitial{
  padding-top:34px;
}

@media(max-width:699px){
  .start-simple-visual{margin:0 auto 8px !important;padding:0 4px !important}
  .start-simple-visual img{margin-top:-14px !important;max-width:285px !important}
  .diag-interstitial{padding:22px 16px 26px !important}
  .interstitial-ring{width:128px;height:128px;margin:14px auto 12px}
  .interstitial-ring strong{font-size:32px}
  .completion-copy>span{font-size:12px}
}

/* ===== Ver.2.39 start illustration crop + score percent alignment ===== */
.start-simple-visual{
  margin-top:8px!important;
  padding-top:0!important;
  padding-bottom:4px!important;
}
.start-simple-visual img{
  display:block;
  width:min(430px,72vw)!important;
  height:auto!important;
  margin:0 auto!important;
}
.result-score-ring::after{content:none!important;display:none!important}
.result-score-ring{align-content:center!important;justify-items:center!important}
.result-score-ring .result-score-value{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:flex-start;
  justify-content:center;
  line-height:1;
  margin:0;
}
.result-score-ring .result-score-value strong{
  position:static!important;
  display:block;
  margin:0!important;
  line-height:.95!important;
  color:#df7c1f!important;
}
.result-score-ring .result-score-value sup{
  position:static!important;
  display:block;
  margin:4px 0 0 3px!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:900;
  color:#8d8d86;
}
.result-score-ring>span{
  margin-top:7px!important;
  max-width:none!important;
  font-size:9px!important;
  white-space:nowrap;
}
@media(max-width:699px){
  .start-simple-visual{margin-top:4px!important;padding-bottom:2px!important}
  .start-simple-visual img{width:min(330px,82vw)!important}
  .result-score-ring .result-score-value sup{font-size:12px!important;margin-top:3px!important}
  .result-score-ring>span{margin-top:6px!important;font-size:8px!important}
}


/* ===== Ver.2.40 score ring + compact summary balance ===== */
.result-score-summary-wrap{
  display:grid;
  grid-template-columns:150px minmax(150px,1fr);
  align-items:center;
  gap:14px;
  min-width:300px;
}
.result-score-summary{
  display:grid;
  gap:7px;
}
.result-score-summary>div{
  border:1px solid #dfe8d5;
  border-radius:11px;
  background:#fff;
  padding:8px 10px;
  line-height:1.25;
}
.result-score-summary small{
  display:block;
  margin-bottom:3px;
  font-size:9px;
  color:#7d8675;
  font-weight:800;
}
.result-score-summary strong{
  display:block;
  font-size:12px;
  color:#36542a;
  font-weight:900;
}
.result-score-summary>div:first-child{border-color:#f1d0a8;background:#fffaf3}
.result-score-summary>div:first-child strong{color:#df7c1f;font-size:16px}
@media(min-width:700px){
  .result-hero{grid-template-columns:minmax(0,1fr) 330px!important}
}
@media(max-width:699px){
  .result-score-summary-wrap{
    grid-template-columns:132px minmax(0,1fr)!important;
    gap:12px!important;
    min-width:0!important;
    width:100%;
    margin-top:12px;
    align-items:center;
  }
  .result-score-ring{
    width:128px!important;
    height:128px!important;
    justify-self:center!important;
    margin:0!important;
  }
  .result-score-summary{gap:6px}
  .result-score-summary>div{padding:7px 8px;border-radius:9px}
  .result-score-summary small{font-size:8px}
  .result-score-summary strong{font-size:10px;line-height:1.35}
  .result-score-summary>div:first-child strong{font-size:14px}
}

/* Ver.2.41: 管理画面 LINE詳細レポート案 */
.line-report-admin-card{border:1px solid #d9dfd3;border-radius:16px;background:linear-gradient(135deg,#f7fbf2 0%,#fff 72%);padding:16px}
.line-report-admin-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.line-report-admin-head>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.line-report-admin-kicker{font-size:10px;font-weight:800;color:#7a8a70}
.line-report-admin-head strong{font-size:17px;color:#3d5d30;line-height:1.35}
.line-report-copy{border:0;border-radius:10px;background:#ef7a18;color:#fff;font-weight:900;font-size:12px;padding:10px 14px;white-space:nowrap;cursor:pointer}
.line-report-tags-admin{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.line-report-tags-admin span{border:1px solid #d7e3cb;background:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;color:#60774f}
.line-report-admin-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.line-report-admin-summary>div{border:1px solid #e0e5dc;border-radius:10px;background:#fff;padding:10px}
.line-report-admin-summary span{display:block;font-size:10px;color:#7c8476;margin-bottom:3px}
.line-report-admin-summary strong{font-size:13px;color:#3e4d39;line-height:1.4}
.line-report-text{white-space:pre-wrap;word-break:break-word;margin:0;border:1px solid #e1e5dd;border-radius:12px;background:#fff;padding:14px;font-family:inherit;font-size:12px;line-height:1.85;color:#4d514a;max-height:420px;overflow:auto}
.line-report-admin-note{display:block;margin-top:10px;font-size:9.5px;color:#8b8e88;line-height:1.55}
@media(max-width:700px){
  .line-report-admin-head{flex-direction:column}
  .line-report-copy{width:100%}
  .line-report-admin-summary{grid-template-columns:1fr}
  .line-report-text{font-size:13px;max-height:360px}
}

/* ===== Ver.2.42 sales journey / contact task / future LINE report ===== */
.contact-task-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 10px}
.contact-task-summary>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid #e1e3e5;border-radius:10px;background:#fff}
.contact-task-summary span{font-size:11px;color:#6e6863;font-weight:800}.contact-task-summary strong{font-size:20px;color:#e97817}
.contact-today-list{display:grid;gap:9px}
.contact-task-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid #e0e2e4;border-left:5px solid #d1d5d7;border-radius:11px;background:#fff}
.contact-task-card.task-today{border-left-color:#efa348;background:#fffaf3}.contact-task-card.task-overdue{border-left-color:#dc766d;background:#fff6f4}.contact-task-card.task-priority{border-left-color:#6da8cf;background:#f7fbff}
.contact-task-main{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.contact-task-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.contact-task-name strong{font-size:14px;color:#37322e}.contact-task-name small{font-size:9px;color:#8b837d}
.rank-mini{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:900;background:#f3f3f3;color:#666}.rank-A{background:#fff0df;color:#d56a0b}.rank-B{background:#eef7e7;color:#598534}.rank-C{background:#eef6fb;color:#4c83a5}.rank-D{background:#f2f0f8;color:#746a96}
.contact-task-tags{display:flex;flex-wrap:wrap;gap:5px}.contact-task-tags span{font-size:10px;font-weight:800;padding:4px 7px;border-radius:999px;background:#fff;border:1px solid #e2e2e2;color:#625c57}
.contact-task-card p{margin:0;font-size:11px;color:#746e68;line-height:1.45}
.contact-task-card>a{flex:0 0 auto;text-decoration:none;padding:8px 11px;border:1px solid #d9dcdf;border-radius:8px;background:#fff;color:#4d4945;font-size:11px;font-weight:900}
.area-more{margin-top:9px;padding-top:7px;border-top:1px solid #e8e8e8}.area-more summary{cursor:pointer;list-style:none;font-size:11px;font-weight:900;color:#2a9b9a}.area-more summary::after{content:' ＋'}.area-more[open] summary::after{content:' −'}.area-more>div{margin-top:8px}
.sales-journey-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1.35fr auto 1fr auto 1fr;align-items:center;gap:7px;padding:12px;border:1px solid #e1e5dd;border-radius:13px;background:#fbfcfa}
.sales-journey-flow>div{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:7px;border-radius:9px;background:#fff;border:1px solid #e4e7e0}.sales-journey-flow>div.active{background:#f0f8e8;border-color:#b9d79e}
.sales-journey-flow b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#7cb341;color:#fff;font-size:10px}.sales-journey-flow span{font-size:10px;font-weight:900;color:#4b5146;text-align:center}.sales-journey-flow i{font-style:normal;color:#e88a2e;font-weight:900}
.sales-conversation-card{padding:15px;border:1px solid #dce4d5;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f8fcf5 100%)}
.sales-conversation-lead{margin:0 0 12px;font-size:12px;line-height:1.65;color:#686f63}
.sales-talk-points{display:grid;gap:8px}.sales-talk-points>div{display:flex;align-items:flex-start;gap:9px;padding:10px;border-radius:10px;background:#fff;border:1px solid #e3e6df}.sales-talk-points b{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#e98a31;color:#fff;font-size:11px;flex:0 0 auto}.sales-talk-points span{font-size:12px;line-height:1.6;color:#41463e;font-weight:700}
.followup-question-box{margin-top:11px;padding:12px;border-radius:11px;background:#fff5e8;border:1px solid #f0d2ae}.followup-question-box span{display:block;font-size:10px;color:#a06c34;font-weight:900;margin-bottom:5px}.followup-question-box strong{display:block;font-size:13px;line-height:1.6;color:#4e4438}
.line-report-text{white-space:pre-wrap;font-family:inherit;font-size:12px;line-height:1.8;background:#fff;border:1px solid #e3e7df;border-radius:11px;padding:14px;max-height:420px;overflow:auto;color:#464a43}

@media(max-width:699px){
  .contact-task-summary{grid-template-columns:repeat(3,1fr);gap:6px}.contact-task-summary>div{flex-direction:column;align-items:flex-start;padding:8px}.contact-task-summary span{font-size:9px}.contact-task-summary strong{font-size:18px}
  .contact-task-card{display:block;padding:12px;border-left-width:5px}.contact-task-card>a{display:block;margin-top:10px;text-align:center;width:100%;box-sizing:border-box;padding:10px;font-size:11px}
  .contact-task-name strong{font-size:14px}.contact-task-card p{font-size:11px}
  .sales-journey-flow{grid-template-columns:1fr;gap:5px}.sales-journey-flow i{transform:rotate(90deg);text-align:center;line-height:1}.sales-journey-flow>div{min-height:38px}.sales-journey-flow span{font-size:11px}
  .sales-conversation-lead{font-size:11px}.sales-talk-points span{font-size:11px}.followup-question-box strong{font-size:12px}
  .line-report-text{font-size:11px;line-height:1.75;max-height:360px}
}

/* ===== Ver.2.45 dashboard focused layout ===== */
/* PC: overall dashboard stays as-is. Today's contact cards use two columns. */
.contact-priority-grid,
.contact-other-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.contact-today-list{display:block}
.contact-task-card{
  min-width:0;
  align-items:stretch;
  background:#fff;
}
.contact-task-card.task-priority{
  background:#f2faec;
  border-color:#cfe3bd;
  border-left-color:#79ad43;
}
.contact-task-card>a{
  align-self:center;
  min-width:132px;
  padding:10px 14px;
  border:1px solid #b9d49f;
  border-radius:9px;
  background:#eef7e7;
  color:#b75a13;
  font-size:13px;
  font-weight:900;
  text-align:center;
}
.contact-task-card>a:hover{
  background:#e6f2dc;
  color:#9e4708;
}
.contact-other-details{
  margin-top:12px;
}
.contact-other-details>summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  box-sizing:border-box;
  padding:13px 16px;
  border-radius:10px;
  background:#df650d;
  color:#fff;
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
}
.contact-other-details>summary::-webkit-details-marker{display:none}
.contact-other-details>summary::after{content:' ＋';font-size:17px;font-weight:900}
.contact-other-details[open]>summary::after{content:' −'}
.contact-other-details>summary strong{font-size:14px;color:#fff}
.contact-other-details[open] .contact-other-grid{margin-top:12px}

@media(max-width:699px){
  /* Overall status: one clean column on mobile only. */
  #dashboard-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  #dashboard-grid .mini-card,
  #dashboard-grid .mini-card:nth-child(1),
  #dashboard-grid .mini-card:not(:nth-child(1)){
    grid-column:auto !important;
    width:100%;
    box-sizing:border-box;
  }

  /* Today's contact cards: two columns on mobile as requested. */
  .contact-priority-grid,
  .contact-other-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .contact-task-card{
    display:flex;
    flex-direction:column;
    gap:9px;
    padding:11px;
    border-left-width:4px;
  }
  .contact-task-main{min-width:0}
  .contact-task-name{gap:5px;flex-wrap:wrap}
  .contact-task-name strong{font-size:13px;line-height:1.3}
  .contact-task-name strong small{font-size:9px}
  .contact-task-tags{gap:5px;flex-wrap:wrap}
  .contact-task-tags span{font-size:9px}
  .contact-task-card p{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
  .contact-task-card>a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    min-height:42px;
    box-sizing:border-box;
    margin-top:auto;
    padding:9px 7px;
    font-size:12px;
    line-height:1.25;
  }
  .contact-other-details>summary{
    min-height:48px;
    padding:12px 10px;
    font-size:13px;
    text-align:center;
  }
  .contact-other-details>summary strong{font-size:13px}
}

@media(max-width:380px){
  .contact-priority-grid,
  .contact-other-grid{gap:7px}
  .contact-task-card{padding:9px}
  .contact-task-name strong{font-size:12px}
  .contact-task-card>a{font-size:11px}
}

/* ===== Ver.2.46 management color unification =====
   User-selected soft orange family for ALL management pages.
   Diagnosis page is intentionally excluded. Destructive delete UI keeps its warning red. */
body:not(.diagnosis-body){
  --admin-accent:#ffbe7b;
  --admin-accent-hover:#f7b269;
  --admin-accent-soft:#fff4e6;
  --admin-accent-border:#e8b16f;
  --admin-accent-text:#7a4a1a;
  --orange:var(--admin-accent);
  --orange2:#ffd29f;
  --orange-soft:var(--admin-accent-soft);
  --orange-border:var(--admin-accent-border);
}

/* Primary navigation / action buttons */
body:not(.diagnosis-body) .nav a,
body:not(.diagnosis-body) .nav .diagnosis-link,
body:not(.diagnosis-body) .customer-detail-button,
body:not(.diagnosis-body) .contact-task-card>a,
body:not(.diagnosis-body) .detail-save-button,
body:not(.diagnosis-body) .line-report-copy,
body:not(.diagnosis-body) .option-consult-cta a,
body:not(.diagnosis-body) .cta,
body:not(.diagnosis-body) .contact-list-link,
body:not(.diagnosis-body) .back-link,
body:not(.diagnosis-body) .inline-link{
  background:var(--admin-accent-soft) !important;
  border-color:var(--admin-accent-border) !important;
  color:var(--admin-accent-text) !important;
  box-shadow:none !important;
}
body:not(.diagnosis-body) .nav a.active,
body:not(.diagnosis-body) .customer-detail-button:hover,
body:not(.diagnosis-body) .contact-task-card>a:hover,
body:not(.diagnosis-body) .detail-save-button:hover,
body:not(.diagnosis-body) .line-report-copy:hover,
body:not(.diagnosis-body) .option-consult-cta a:hover,
body:not(.diagnosis-body) .cta:hover{
  background:var(--admin-accent) !important;
  border-color:var(--admin-accent-border) !important;
  color:var(--admin-accent-text) !important;
}
body:not(.diagnosis-body) .nav a.active,
body:not(.diagnosis-body) .cta,
body:not(.diagnosis-body) .detail-save-button,
body:not(.diagnosis-body) .line-report-copy,
body:not(.diagnosis-body) .option-consult-cta a{
  background:var(--admin-accent) !important;
  color:var(--admin-accent-text) !important;
}

/* Badges / pills / chips */
body:not(.diagnosis-body) .rank-mini,
body:not(.diagnosis-body) [class*="rank-"] ,
body:not(.diagnosis-body) .response-pill,
body:not(.diagnosis-body) .score-pill,
body:not(.diagnosis-body) .detail-score-badge,
body:not(.diagnosis-body) .lead-status,
body:not(.diagnosis-body) .detail-lead-status,
body:not(.diagnosis-body) .customer-hero-status,
body:not(.diagnosis-body) .option-badge,
body:not(.diagnosis-body) .standard-feature-chips span,
body:not(.diagnosis-body) .sales-style-chips span,
body:not(.diagnosis-body) .line-report-tags-admin span,
body:not(.diagnosis-body) .contact-task-tags span,
body:not(.diagnosis-body) .customer-total-chip{
  background:var(--admin-accent-soft) !important;
  border-color:var(--admin-accent-border) !important;
  color:var(--admin-accent-text) !important;
}

/* Toggle / disclosure actions that previously used strong orange */
body:not(.diagnosis-body) .contact-other-details>summary,
body:not(.diagnosis-body) details>summary.option-summary,
body:not(.diagnosis-body) .area-more summary{
  background:var(--admin-accent) !important;
  border-color:var(--admin-accent-border) !important;
  color:var(--admin-accent-text) !important;
}
body:not(.diagnosis-body) .contact-other-details>summary strong{
  color:var(--admin-accent-text) !important;
}

/* Small orange accents on management pages */
body:not(.diagnosis-body) .section-title,
body:not(.diagnosis-body) .today-title:before{
  border-color:var(--admin-accent) !important;
  background:var(--admin-accent) !important;
}
body:not(.diagnosis-body) .sales-card .num,
body:not(.diagnosis-body) .contact-task-summary strong,
body:not(.diagnosis-body) .today-value{
  color:var(--admin-accent-text) !important;
}

/* Keep destructive actions clearly destructive */
body:not(.diagnosis-body) .danger-outline{
  background:#fff !important;
  color:#c93f3f !important;
  border-color:#e98d8d !important;
}

/* ===== Ver.2.47 management heading palette =====
   Keep Ver.2.46 button/badge colors unchanged.
   Reduce orange repetition by using a soft green family only for section headings. */
body:not(.diagnosis-body){
  --admin-heading-bg:#eef7e8;
  --admin-heading-border:#b9d69f;
  --admin-heading-text:#467236;
}

body:not(.diagnosis-body) .section-title{
  background:var(--admin-heading-bg) !important;
  color:var(--admin-heading-text) !important;
  border:1px solid var(--admin-heading-border) !important;
  border-left:5px solid var(--admin-heading-text) !important;
  border-radius:10px;
  padding:9px 12px;
}

body:not(.diagnosis-body) .today-title{
  background:var(--admin-heading-bg) !important;
  color:var(--admin-heading-text) !important;
  border:1px solid var(--admin-heading-border) !important;
  border-radius:10px;
  padding:9px 12px;
}
body:not(.diagnosis-body) .today-title:before{
  background:var(--admin-heading-text) !important;
  border-color:var(--admin-heading-text) !important;
}

body:not(.diagnosis-body) .detail-section-title,
body:not(.diagnosis-body) .customer-list-area-title,
body:not(.diagnosis-body) .customer-list-title{
  color:var(--admin-heading-text) !important;
}
body:not(.diagnosis-body) .detail-section-title{
  background:var(--admin-heading-bg) !important;
  border:1px solid var(--admin-heading-border) !important;
  border-radius:10px;
  padding:9px 12px !important;
}
body:not(.diagnosis-body) .detail-section-title:before{
  background:var(--admin-heading-text) !important;
}

/* Explicitly preserve the Ver.2.46 button/badge palette. */
body:not(.diagnosis-body) .nav a.active,
body:not(.diagnosis-body) .cta,
body:not(.diagnosis-body) .contact-other-details>summary,
body:not(.diagnosis-body) details>summary.option-summary,
body:not(.diagnosis-body) .area-more summary{
  background:var(--admin-accent) !important;
}

/* ===== Ver.2.48 focused management refinements =====
   Keep Ver.2.46/2.47 palette; only the requested management details are adjusted. */

/* Today's contact: priority cards should not carry a filled green background. */
body:not(.diagnosis-body) .contact-task-card.task-priority{
  background:#fff !important;
  border-left-color:#78a95a !important;
}

/* Customer management: restore a meaningful third metric and use the full row. */
body:not(.diagnosis-body) .customer-management-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
body:not(.diagnosis-body) .customer-management-summary>div{
  width:100%;
  box-sizing:border-box;
}

/* Customer-detail header: remove the filled status area; keep badges readable on white. */
body:not(.diagnosis-body) .customer-hero-status{
  background:transparent !important;
}
body:not(.diagnosis-body) .customer-hero-card{
  background:#fff !important;
}

/* Customer list CTA: requested brown outline, while preserving the soft button fill. */
body:not(.diagnosis-body) .customer-detail-button{
  border:1.5px solid #9a6534 !important;
  color:#7a4a1a !important;
}

/* Section headings: give text a little more breathing room. */
body:not(.diagnosis-body) .section-title,
body:not(.diagnosis-body) .today-title,
body:not(.diagnosis-body) .detail-section-title{
  line-height:1.45 !important;
  padding-top:11px !important;
  padding-bottom:11px !important;
}

@media(max-width:699px){
  body:not(.diagnosis-body) .customer-management-summary{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  body:not(.diagnosis-body) .customer-management-summary>div{
    padding:9px 6px;
  }
  body:not(.diagnosis-body) .customer-management-summary span{
    font-size:9px;
    line-height:1.25;
  }
  body:not(.diagnosis-body) .customer-management-summary strong{
    font-size:20px;
  }
}

/* ===== Ver.2.49 focused list/detail refinements ===== */
/* Customer list: all three preferred-area cards use the same soft green family. */
body:not(.diagnosis-body) .customer-list-areas .list-area-card,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.primary{
  background:#f2f8ed !important;
  border-color:#bfd7aa !important;
  box-shadow:none !important;
}
body:not(.diagnosis-body) .customer-list-areas .list-area-card span,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.primary span{
  color:#5e7f4a !important;
}
body:not(.diagnosis-body) .customer-list-areas .list-area-card strong{
  color:#2f3f2b !important;
}

/* Customer detail headings: soft green full-width title, with an unbroken left accent. */
body:not(.diagnosis-body) .detail-section-title{
  position:relative !important;
  overflow:hidden;
  padding-left:18px !important;
}
body:not(.diagnosis-body) .detail-section-title:before{
  top:0 !important;
  bottom:0 !important;
  height:auto !important;
  width:5px !important;
  border-radius:0 4px 4px 0 !important;
}

/* Customer-detail diagnosis cards: restore visual grouping with a calm, repeating palette.
   This overrides the old all-beige rule so adjacent cards are easier to scan on mobile. */
body:not(.diagnosis-body) .diagnosis-info-card{
  background:#fff !important;
  border-color:#dde3dc !important;
}
body:not(.diagnosis-body) .diagnosis-consult,
body:not(.diagnosis-body) .diagnosis-budget,
body:not(.diagnosis-body) .diagnosis-residence{
  background:#f2f8ed !important;
  border-color:#bfd7aa !important;
}
body:not(.diagnosis-body) .diagnosis-calendar,
body:not(.diagnosis-body) .diagnosis-area,
body:not(.diagnosis-body) .diagnosis-stage{
  background:#eef7fb !important;
  border-color:#b9d7e8 !important;
}
body:not(.diagnosis-body) .diagnosis-loan,
body:not(.diagnosis-body) .diagnosis-problem{
  background:#fff4ef !important;
  border-color:#e9c7b8 !important;
}
body:not(.diagnosis-body) .diagnosis-home,
body:not(.diagnosis-body) .diagnosis-company{
  background:#f5f1fb !important;
  border-color:#d6c8e8 !important;
}
body:not(.diagnosis-body) .diagnosis-info-label{
  color:#6b625a !important;
}
body:not(.diagnosis-body) .diagnosis-info-value{
  color:#2f2c29 !important;
}

/* Mobile: one diagnosis card per row; preserve the natural question order. */
@media(max-width:699px){
  body:not(.diagnosis-body) .diagnosis-card-grid{
    grid-template-columns:1fr !important;
    gap:9px !important;
  }
  body:not(.diagnosis-body) .diagnosis-info-card{
    min-height:0 !important;
    padding:12px 14px !important;
  }
}

/* Shared footer for every page. */
.meo-footer{
  margin:30px auto 16px;
  padding:14px 16px;
  text-align:center;
  border-top:1px solid #e6dfd7;
  font-size:12px;
  line-height:1.5;
}
.meo-footer a{
  color:#6f563f;
  font-weight:800;
  text-decoration:none;
}
.meo-footer a:hover{ text-decoration:underline; }
.diagnosis-body .meo-footer a{ color:#55783a; }

/* ===== Ver.2.50 admin readability / color rhythm ===== */
/* 顧客詳細 > 診断結果：PCの列色を固定。スマホでも green→blue→pink の順を維持 */
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-green{
  background:#f3faed !important;
  border-color:#b9d89d !important;
}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-blue{
  background:#eef7fc !important;
  border-color:#b9dbea !important;
}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-pink{
  background:#fff3ee !important;
  border-color:#efc5b5 !important;
}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-green .diagnosis-info-label{color:#537848 !important;}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-blue .diagnosis-info-label{color:#4a7385 !important;}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-pink .diagnosis-info-label{color:#99604b !important;}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-value{color:#25211e !important;}

/* LINE未来レポート：記事として読める濃さ・サイズへ */
.line-report-admin-head strong{font-size:19px !important;color:#315326 !important;}
.line-report-admin-kicker{font-size:11px !important;color:#5f7455 !important;}
.line-report-text{
  font-size:15px !important;
  line-height:1.9 !important;
  color:#292723 !important;
  background:#fff !important;
  letter-spacing:.01em;
}
.line-report-admin-note{font-size:11px !important;color:#6f6b65 !important;}
@media (max-width:699px){
  .line-report-text{font-size:15px !important;line-height:1.95 !important;max-height:520px !important;}
  .line-report-admin-head strong{font-size:18px !important;}
}

/* 顧客一覧 > 希望エリア：第1/第2/第3希望を固定色 */
.list-area-card.area-tone-first{
  background:#f3faed !important;
  border-color:#b9d89d !important;
}
.list-area-card.area-tone-second{
  background:#eef7fc !important;
  border-color:#b9dbea !important;
}
.list-area-card.area-tone-third{
  background:#fff3ee !important;
  border-color:#efc5b5 !important;
}
.list-area-card.area-tone-first span{color:#537848 !important;}
.list-area-card.area-tone-second span{color:#4a7385 !important;}
.list-area-card.area-tone-third span{color:#99604b !important;}
.list-area-card.area-tone-first strong,
.list-area-card.area-tone-second strong,
.list-area-card.area-tone-third strong{color:#2f2a26 !important;}


/* ===== Ver.2.52 refinement: tone-matched label colors ===== */
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-green .diagnosis-info-label,
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-green .diagnosis-info-value{color:#496d3d !important;}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-blue .diagnosis-info-label,
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-blue .diagnosis-info-value{color:#3f6473 !important;}
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-pink .diagnosis-info-label,
body:not(.diagnosis-body) #diagnosis-card-grid .diagnosis-info-card.tone-pink .diagnosis-info-value{color:#865642 !important;}

body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-first span,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-first strong{color:#496d3d !important;}
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-second span,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-second strong{color:#3f6473 !important;}
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-third span,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-third strong{color:#865642 !important;}

/* ===== Ver.2.53 definitive preferred-area palette =====
   Legacy Ver.2.49 used a more-specific all-green rule with !important.
   These selectors intentionally match/exceed that specificity so each
   preference card keeps its own background color. */
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-first{
  background:#f3faed !important;
  border-color:#b9d89d !important;
  box-shadow:none !important;
}
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-second{
  background:#eef7fc !important;
  border-color:#b9dbea !important;
  box-shadow:none !important;
}
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-third{
  background:#fff3ee !important;
  border-color:#efc5b5 !important;
  box-shadow:none !important;
}
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-first span,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-first strong{color:#496d3d !important;}
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-second span,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-second strong{color:#3f6473 !important;}
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-third span,
body:not(.diagnosis-body) .customer-list-areas .list-area-card.area-tone-third strong{color:#865642 !important;}
