.home-page{padding-bottom:92px}

.header-area img{
  width:100%;
  display:block;
}

.card-area{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:0 12px;
  margin-top:-340px;
  position:relative;
  z-index:10;
}

.card{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:18px;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}

.card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.bottom-health-row{
  width:calc(100% - 28px);
  max-width:390px;
  margin:22px auto 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.bottom-card{
  width:100%;
  height:340px;
  padding:14px 12px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(0,0,0,.07);
  display:flex;
  flex-direction:column;
  min-width:0;
}

.bottom-title{
  font-size:15px;
  font-weight:900;
  line-height:1.2;
  margin-bottom:10px;
  white-space:nowrap;
}

.green{color:#147d2d}
.blue{color:#1265c7}

.habit-image{
  width:100%;
  height:78px;
  border-radius:13px;
  background:linear-gradient(180deg,#eaf8ee 0%,#f8fff9 100%);
  margin-bottom:12px;
  position:relative;
  overflow:hidden;
}

.habit-sun{
  position:absolute;
  top:14px;
  left:22px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff3a8;
}

.habit-person{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  font-size:36px;
}

.bottom-small{
  margin:0 0 4px;
  color:#666;
  font-size:12px;
  font-weight:700;
}

.habit-main-title{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.1;
  color:#222;
}

.bottom-desc{
  margin:0 0 10px;
  font-size:12px;
  line-height:1.45;
  color:#555;
}

.bottom-line{
  height:1px;
  background:#eee;
  margin:0 0 8px;
}

.bottom-info{
  margin:3px 0;
  font-size:11px;
  color:#444;
}

.bottom-button{
  width:100%;
  height:36px;
  margin-top:auto;
  border:none;
  border-radius:11px;
  color:#fff;
  font-size:14px;
  font-weight:900;
}

.green-btn{background:#2fac43}
.blue-btn{background:#126fe0}

.steps-time{
  margin:-4px 0 18px;
  font-size:11px;
  color:#666;
}

.steps-number{
  display:flex;
  align-items:flex-end;
  gap:4px;
  margin-bottom:14px;
}

.steps-number strong{
  font-size:30px;
  line-height:1;
  color:#1265c7;
}

.steps-number span{
  font-size:12px;
  font-weight:800;
  color:#222;
  padding-bottom:3px;
}

.steps-goal-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
  font-size:11px;
  color:#444;
}

.steps-goal-row strong{
  color:#1265c7;
  font-size:12px;
}

.steps-bar{
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:3px;
  margin-bottom:16px;
}

.steps-bar span{
  height:13px;
  border-radius:4px;
  background:#ddd;
}

.steps-bar span.on{background:#126fe0}

.steps-detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.steps-detail p{
  margin:0 0 3px;
  font-size:11px;
  color:#666;
}

.steps-detail strong{
  font-size:17px;
  color:#222;
  line-height:1;
}

.steps-detail strong span{
  font-size:10px;
  font-weight:600;
}

@media(max-width:390px){
  .card-area{margin-top:-310px}
}
