/* ホーム・ダッシュボード */
.routine-record{display:flex;flex-direction:column;gap:6px;text-align:left;font:inherit;color:var(--text);cursor:pointer;touch-action:manipulation}
.routine-record:not(:disabled):hover{border-color:var(--orange);background:var(--soft)}
.routine-record[aria-pressed="true"]{border-color:var(--green-strong);background:var(--soft)}
.routine-record [data-record-status]{font-size:11px;font-weight:700;color:var(--muted)}
.routine-record[aria-pressed="true"] [data-record-status]{color:var(--green-strong)}
.routine-record:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.routine-record:disabled{cursor:default}
.home__primary[hidden]{display:none}
#dots [role="img"].dot--today{cursor:default}
.home__hero{margin:0 0 16px;padding:18px;border:1px solid var(--line);border-radius:var(--r-hero);background:linear-gradient(135deg,var(--hero-grad-1),var(--hero-grad-2));box-shadow:var(--shadow-soft)}
.home__hero--guide{margin-bottom:14px}
.home__eyebrow{margin:0 0 4px;font-size:12px;font-weight:700;color:var(--ink-orange)}
.home__title{margin:0 0 6px;font-size:21px;font-weight:900;line-height:1.35}
.home__lead{margin:0 0 15px;font-size:13px;color:var(--muted);line-height:1.6}
.home__progress{display:inline-flex;align-items:center;min-height:28px;margin:0 0 14px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-orange);font-size:12px;font-weight:700}
.home__primary,.home__secondary{min-height:46px;padding:9px 14px;border:1px solid var(--orange-cta);border-radius:var(--r-btn);background:var(--orange-cta);color:#fff;font:700 14px/1.2 inherit;cursor:pointer;touch-action:manipulation}
.home__primary:hover{background:#c9671c}
.home__secondary{width:100%;margin-top:10px;border-color:var(--line-strong);background:var(--surface);color:var(--text)}
.home__secondary:hover{background:var(--soft)}
.home__section{margin:0 0 16px}
.home__section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 9px}
.home__section-head h2{margin:0;font-size:25px;font-weight:900}
.home__text-link{padding:3px 0;border:0;background:transparent;color:var(--ink-orange);font:700 12px/1.3 inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.home__routine{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.home__routine-card{display:flex;flex-direction:column;gap:6px;min-height:86px;padding:12px}
.home__routine-card span{font-size:11px;color:var(--muted);font-weight:700}
.home__routine-card strong{font-size:13px;line-height:1.45}
.home__week{margin:0 0 16px;padding:14px}
.home__week-dots{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center}
.home__day{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;color:var(--muted)}
.home__day.is-today{font-weight:900;color:var(--text)}
.home__day-dot{width:20px;height:20px;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface-2)}
.home__day-dot.is-done{border-color:var(--green-strong);background:var(--green-strong)}
.home__day.is-today .home__day-dot{outline:2px solid var(--orange);outline-offset:2px}
.home__week-copy{margin:12px 0 0;font-size:12px;color:var(--muted);line-height:1.5}
.home__explore{grid-column:1 / -1;margin-top:12px;padding:20px 14px 14px;border-top:1px solid var(--line-strong);border-radius:0 0 var(--r-card) var(--r-card);background:var(--surface-2)}
.home__explore-head{margin-bottom:12px}
.home__explore-head h2{margin:0;font-size:15px;font-weight:900}
.home__explore-head p{margin:5px 0 0;font-size:px;color:var(--muted);line-height:1.6}
.home__explore .home__shortcut{box-shadow:none}
.home__shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.home__shortcut{display:flex;flex-direction:column;gap:4px;min-height:82px;text-align:left;color:var(--text);cursor:pointer}
.home__shortcut strong{font-size:13px}
.home__shortcut span{font-size:11px;color:var(--muted);line-height:1.4}
.home__shortcut:hover,.home__guide-card:hover{border-color:var(--orange);background:var(--soft)}
.home__guide-list{display:grid;gap:10px}
.home__guide-card{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;color:var(--text);cursor:pointer}
.home__guide-card strong{font-size:14px}
.home__guide-card span{font-size:11px;color:var(--muted);text-align:right}
.home-empty-state{margin:0 0 16px}
.home-empty-state h2{margin:0 0 6px;font-size:17px}
.home-empty-state p{margin:0 0 14px;font-size:13px;color:var(--muted)}
.bottom-nav{order:-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:2px;margin:0 0 10px;padding:0 0 8px;border-bottom:1px solid var(--line-soft)}
.bottom-nav__item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:43px;padding:4px 2px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:700 10px/1.2 inherit;cursor:pointer}
.bottom-nav__item span:first-child{font-size:17px;line-height:1}
.bottom-nav__item:hover{background:var(--soft);color:var(--text)}
.bottom-nav__item.is-active{background:var(--chip-active-bg);color:var(--ink-orange)}
.bottom-nav__item.is-done{color:var(--green-strong)}
.dock .bottom-nav__item.is-locked{opacity:1;cursor:pointer}
.appbar .progress[hidden]{display:none}
.dock{flex-wrap:wrap}

/* 診断前の案内はPCの2カラムをまたいで中央に置き、未完成な空白を減らす。 */
@media (min-width:1024px){
  .screen > .home-empty-state{grid-column:1 / -1;width:min(100%,640px);justify-self:center}
}

/* 長い画面でも固定ドックの下に内容を隠さない。 */
.dock{background:var(--surface);box-shadow:0 -4px 14px rgba(70,45,20,.08)}
.screen{padding-bottom:calc(152px + env(safe-area-inset-bottom))}

@media (max-width:430px){
  .screen{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
  .home__hero{margin-bottom:9px;padding:13px}
  .home__title{font-size:17px}
  .home__lead{margin-bottom:10px;font-size:11px}
  .home__progress{margin-bottom:10px;font-size:11px}
  .home__primary,.home__secondary{min-height:40px;font-size:12px}
  .home__section{margin-bottom:10px}
  .home__routine-card{min-height:70px;padding:9px}
  .home__routine-card strong{font-size:11px}
  .home__week{margin-bottom:10px;padding:10px}
  .home__shortcut{min-height:66px;padding:10px}
  .home__guide-card{padding:11px}
  .home__guide-card strong{font-size:12px}
  .bottom-nav{margin-bottom:6px;padding-bottom:4px}
  .bottom-nav__item{min-height:35px;font-size:9px}
  .bottom-nav__item span:first-child{font-size:15px}
}
