/* COMMON */
:root {
  --main-color: #E89576;
  --bg-color: #fcfbfa;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 7.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

.hide {
  display: none !important;
}

main {
  padding: 4rem 0;
}

/* HEADER */
header {
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--bg-color);
}
header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .logo {
  display: inline-block;
  width: 18.8rem;
}
header .logo img {
  width: 100%;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid #EAE5E2;
  background: var(--bg-color);
}
footer ul {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
}
footer ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1.3rem 0;
}
footer ul li a img {
  width: 3rem;
  aspect-ratio: 1 / 1;
}
footer ul li a p {
  font-size: 1.4rem;
  font-weight: 600;
  color: #817773;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

/* home.php */
.home {
  margin-top: 0;
}
.home .id_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}
.home .id_wrap .img_wrap {
  background: #fff;
  border-radius: 100%;
  width: 5rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
}
.home .id_wrap .img_wrap img {
  width: 3.2rem;
}
.home .id_wrap .text_wrap .name_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.home .id_wrap .text_wrap .name_wrap p {
  font-size: 2rem;
  font-weight: 600;
}
.home .id_wrap .text_wrap .name_wrap span {
  font-size: 1.6rem;
}
.home .id_wrap .text_wrap > p {
  font-size: 1.4rem;
  color: #817773;
}
.home .today_wrap {
  margin-bottom: 4rem;
}
.home .today_wrap h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.home .today_wrap ul {
  display: flex;
  gap: .8rem;
}
.home .today_wrap ul li {
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}
.home .today_wrap ul li img {
  width: 3rem;
}
.home .today_wrap ul li p {
  font-size: 1.4rem;
  color: #817773;
}
.home .today_wrap ul li span {
  font-size: 1.6rem;
  font-weight: 600;
}
.home .fast_wrap {
  margin-bottom: 4rem;
}
.home .fast_wrap h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.home .fast_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.home .fast_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  padding: 1.5rem 2rem;
  background: #fff;
}
.home .fast_wrap ul li a img {
  width: 3rem;
}
.home .fast_wrap ul li a .text_wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
}
.home .fast_wrap ul li a .text_wrap p {
  font-size: 1.6rem;
  font-weight: 600;
}
.home .fast_wrap ul li a .text_wrap span {
  font-size: 1rem;
  color: #817773;
}
.home .recent_wrap {
  margin-bottom: 4rem;
}
.home .recent_wrap .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.home .recent_wrap .title_wrap h2 {
  font-size: 1.8rem;
  font-weight: 500;
}
.home .recent_wrap .title_wrap a {
  font-size: 1.2rem;
  color: #817773;
}
.home .recent_wrap ul {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.home .recent_wrap ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  padding: 2.2rem 2rem;
}
.home .recent_wrap ul li span {
  font-size: 1.6rem;
  font-weight: 600;
}
.home .recent_wrap ul li p {
  font-size: 1.4rem;
  color: #817773;
}

.home .day_wrap .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.home .day_wrap .title_wrap h2 {
  font-size: 1.8rem;
  font-weight: 500;
}
.home .day_wrap .title_wrap a {
  font-size: 1.2rem;
  color: #817773;
}
.home .day_wrap ul {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.home .day_wrap ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  padding: 2.2rem 2rem;
}
.home .day_wrap ul li span {
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
}
.home .day_wrap ul li p {
  font-size: 1.4rem;
  color: #817773;
  text-align: right;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.3;
}

/* record.php */
.common_category {
  padding-bottom: 1.6rem;
  position: relative;
}
.common_category::after {
  content: '';
  position: absolute;
  left: 2.4rem;
  right: 2.4rem;
  bottom: 0;
  height: 1px;
  background: #EAE5E2;
}
.common_category h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.common_category .category_swiper {
  padding: 0 2.4rem;
}
.common_category .category_swiper .swiper-wrapper {
  align-items: center;
}
.common_category .category_swiper .swiper-slide {
  width: auto;
  margin-right: 1rem;
  border: 1px solid var(--main-color);
  border-radius: 5rem;
  padding: .9rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--main-color);
  white-space: nowrap;
  cursor: pointer;
}
.common_category .category_swiper .swiper-slide:last-child {
  margin-right: 0;
}
.common_category .category_swiper .swiper-slide.active {
  background: var(--main-color);
  color: #fff;
}

/* record.php */
.record section {
  padding: 2.4rem 0 0;
}
.record .all .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.record .all .title_wrap a {
  font-size: 1.4rem;
  font-weight: 300;
  color: #817773;
}
.record .all .title_wrap button img {
  width: 2rem;
}
.record .all .list_wrap {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.record .all .list_wrap .item_wrap h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.record .all .list_wrap .item_wrap .item_area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.record .all .list_wrap .item_wrap .item_area:not(:last-of-type) {
  margin-bottom: 1rem;
}
.record .all .list_wrap .item_wrap .item_area .item_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  padding: 2.2rem 2rem; 
  flex: 1;
}
.record .all .list_wrap .item_wrap .item_area .item_box p {
  font-size: 1.6rem;
  font-weight: 600;
}
.record .all .list_wrap .item_wrap .item_area .item_box span {
  font-size: 1.4rem;
  color: #817773;
}
.record .all .list_wrap .item_wrap .item_area button img {
  width: 2.4rem;
}
.record .all .calendar_wrap .date_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #EAE5E2;
  padding-bottom: 2rem;
}
.record .all .calendar_wrap .date_wrap button img {
  width: 2.4rem;
}
.record .all .calendar_wrap .date_wrap h2 {
  font-family: 'Pretendard';
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-color);
}
.record .all .calendar_wrap .table_wrap {
  margin-top: 2.4rem;
}
.record .all .calendar_wrap .table_wrap .week_wrap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.record .all .calendar_wrap .table_wrap .week_wrap span {
  font-family: 'Pretendard';
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 3%;
}
.record .all .calendar_wrap .table_wrap .day_wrap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2.2rem;
  padding-top: 2.4rem;
}
.record .all .calendar_wrap .table_wrap .day_wrap .day_box {
  position: relative;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.record .all .calendar_wrap .table_wrap .day_wrap .day_box .num {
  font-family: 'Pretendard';
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0%;
}
.record .all .calendar_wrap .table_wrap .day_wrap .day_box.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--main-color);
  border-radius: 1rem;
}
.record .all .calendar_wrap .table_wrap .day_wrap .day_box.active .num {
  color: var(--main-color);
}
.record .all .calendar_wrap .table_wrap .day_wrap .day_box.dot::after {
  content: '';
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--main-color);
}

.record .bottle .category_wrap ul,
.record .diaper .category_wrap ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.record .bottle .category_wrap ul li,
.record .diaper .category_wrap ul li {
  flex: 1;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
  padding: .9rem 0;
  text-align: center;
  border-radius: 5rem;
}
.record .bottle .category_wrap ul li.active,
.record .diaper .category_wrap ul li.active {
  background: var(--main-color);
  color: #fff;
}
.record .bottle .mount_wrap,
.record .pump .mount_wrap {
  background: #fff;
  border-radius: 1rem;
  padding: 2.4rem;
  text-align: center;
  margin-top: 2.4rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  margin-bottom: 2.4rem;
}
.record .bottle .mount_wrap span,
.record .pump .mount_wrap span {
  display: block;
  font-size: 1.6rem;
  color: #817773;
  margin-bottom: 1.6rem;
}
.record .bottle .mount_wrap .mount_box,
.record .pump .mount_wrap .mount_box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.record .bottle .mount_wrap .mount_box button img,
.record .pump .mount_wrap .mount_box button img {
  width: 2.4rem;
}
.record .bottle .mount_wrap .mount_box p,
.record .pump .mount_wrap .mount_box p {
  font-size: 2.4rem;
  font-weight: 600;
}
.common_insert_wrap {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.common_insert .title {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.common_insert .input_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid #817773;
}
.common_insert .input_box em {
  font-size: 1.4rem;
}
.common_insert .input_box em img {
  width: 2rem;
}
.common_insert .input_box input,
.common_insert .input_box select {
  width: 100%;
  font-size: 1.6rem; 
}
.common_insert .check_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.common_insert .check_wrap input[type="checkbox"] {
  display: none;
}
.common_insert .check_wrap label {
  display: block;
  width: 100%;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  border-radius: 5rem;
  padding: .9rem 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
}
.common_insert .check_wrap input[type="checkbox"]:checked + label {
  background: var(--main-color);
  color: #fff;
}
.save_btn {
  display: block;
  width: 100%;
  background: var(--main-color);
  color: #fff;
  border-radius: 1rem;
  text-align: center;
  padding: 2rem 0;
  font-size: 2rem;
  font-weight: 500;
}

.record .diaper .category_wrap.feces {
  display: none;
  margin-top: 4rem;
}
.record .diaper .category_wrap.feces span {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem; 
}
.record .diaper .color_wrap {
  margin-top: 4rem;
  margin-bottom: 4rem;
}
.record .diaper .color_wrap span {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.record .diaper .color_wrap ul {
  display: flex;
  gap: .8rem;
}
.record .diaper .color_wrap ul li {
  text-align: center;
  background: #fff;
  width: 100%;
  padding: 2rem 0;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
}
.record .diaper .color_wrap ul li.active {
  border: 1px solid var(--main-color);
}
.record .diaper .color_wrap ul li i {
  display: block;
  width: 3rem;
  aspect-ratio: 1 / 1;
  background: #AEAEAE;
  border-radius: 100%;
  margin: 0 auto 1rem;
}
.record .diaper .color_wrap ul li.yellow i {
  background: #FBCC10;
}
.record .diaper .color_wrap ul li.brown i {
  background: #834A2B;
}
.record .diaper .color_wrap ul li.green i {
  background: #51832B;
}
.record .diaper .color_wrap ul li p {
  font-size: 1.6rem;
  font-weight: 600;
}
.record .diaper .save_btn {
  margin-top: 4rem;
}
.record .pump .mount_wrap {
  margin: 0;
  margin-bottom: 2.4rem;
}
.record .pump .mount_wrap:first-of-type {
  margin-bottom: 1rem;
}

/* health.php */
.health .prepare .category_wrap {
  margin: 2.4rem 0;
}
.health .prepare .category_wrap ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.health .prepare .category_wrap ul li {
  flex: 1;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
  padding: .9rem 0;
  text-align: center;
  border-radius: 5rem;
}
.health .prepare .category_wrap ul li.active {
  background: var(--main-color);
  color: #fff;
}
.health .list_wrap > ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.health .list_wrap > ul > li {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  padding: 2rem;
  background: #fff;
}
.health .list_wrap ul li .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.health .list_wrap ul li .title_box h2 {
  font-size: 1.8rem;
  font-weight: 600;
}
.health .list_wrap ul li .title_box span {
  display: block;
  width: fit-content;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  padding: .5rem 1.4rem;
  border-radius: 5rem;
}
.health .list_wrap ul li .date_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.health .list_wrap ul li .date_box .reco_box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.health .list_wrap ul li .date_box .reco_box span {
  display: block;
  font-size: 1.4rem;
  color: #817773;
}
.health .list_wrap ul li .date_box .reco_box p {
  font-size: 1.6rem;
  font-weight: 500;
}
.health .list_wrap ul li .date_box .dday {
  display: block;
  width: fit-content;
  background: var(--main-color);
  color: #fff;
  border-radius: 5rem;
  font-size: 1.2rem;
  padding: .5rem 1.4rem;
}
.health .list_wrap ul li button {
  display: block;
  width: 100%;
  border-radius: 1rem;
  padding: 1rem 0;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
}
.health .list_wrap ul li button.write {
  background: var(--main-color);
  color: #fff;
}
.health .modify_wrap .title_box,
.growth .modify_wrap .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.health .modify_wrap .title_box span,
.growth .modify_wrap .title_box span {
  font-size: 1.4rem;
  font-weight: 300;
  color: #817773;
}
.health .modify_wrap .title_box,
.growth .modify_wrap .title_box {
  margin: 2.6rem 0 1.6rem;
}
.health .modify_wrap .title_box button img,
.growth .modify_wrap .title_box button img {
  width: 2rem;
}
.health .exam .list_wrap {
  margin-top: 2.4rem;
}
.health .exam .list_wrap ul li.done .title_box span {
  background: var(--main-color);
  color: #fff;
}
.health .exam .list_wrap ul li.done .date_box .dday {
  display: none;
}
.health .exam .list_wrap ul li.done button {
  background: #fff;
  color: var(--main-color);
  opacity: .5;
  pointer-events: none;
}
.health .hospital .add_btn,
.health .medicine .add_btn {
  display: block;
  width: 100%;
  background: var(--main-color);
  text-align: center;
  color: #fff;
  border-radius: 1rem;
  padding: 1.7rem 0;
  font-size: 1.6rem;
  font-weight: 500;
  margin: 2.4rem 0 1.6rem;
}
.health .hospital .list_wrap .top_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.health .hospital .list_wrap .top_box p {
  font-size: 1.8rem;
  font-weight: 600;
}
.health .hospital .list_wrap .top_box span {
  font-size: 1.4rem;
  color: #817773;
}
.health .hospital .list_wrap .info_box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.health .hospital .list_wrap .info_box .box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.health .hospital .list_wrap .info_box .box span {
  display: block;
  font-size: 1.4rem;
  color: #817773;
}
.health .hospital .list_wrap .info_box .box p {
  font-size: 1.6rem;
  font-weight: 500;
}
.health .medicine .list_wrap ul li .top_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.health .medicine .list_wrap ul li .top_box .title {
  font-size: 1.8rem;
  font-weight: 600;
}
.health .medicine .list_wrap ul li .top_box .info_box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}
.health .medicine .list_wrap ul li .top_box .info_box .mount_box {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.health .medicine .list_wrap ul li .top_box .info_box .mount_box i {
  display: block;
  width: .1rem;
  height: 1.2rem;
  background: #EAE5E2;
}
.health .medicine .list_wrap ul li .top_box .info_box .mount_box p {
  font-size: 1.4rem;
}
.health .medicine .list_wrap ul li .top_box .info_box .freq_box {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.health .medicine .list_wrap ul li .top_box .info_box .freq_box p, 
.health .medicine .list_wrap ul li .top_box .info_box .freq_box i {
  font-size: 1.4rem;
  color: #817773;
}
.health .medicine .list_wrap ul li .check_wrap span {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.health .medicine .list_wrap ul li .check_wrap ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.health .medicine .list_wrap ul li .check_wrap ul li {
  width: 100%;
  padding: .9rem 0;
  text-align: center;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 5rem;
}
.health .medicine .list_wrap ul li .check_wrap ul li.active {
  background: var(--main-color);
  color: #fff;
}
.health .medicine .common_insert .input_box select {
  width: fit-content;
  background: url("../img/icon_arrow_down.png") no-repeat 100% 50% / 2rem;
  padding-right: 3rem;
  text-align: right;
}

/* growth.php */
.growth h1 {
  font-size: 2.4rem;
  font-weight: 600;
  padding-bottom: 1.6rem;
}
.growth .main_wrap .profile_wrap {
  display: flex;
  gap: .8rem;
}
.growth .main_wrap .profile_wrap .profile_box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
  padding: 2rem 0;
}
.growth .main_wrap .profile_wrap .profile_box img {
  width: 3rem;
}
.growth .main_wrap .profile_wrap .profile_box span {
  display: block;
  font-size: 1.4rem;
  color: #817773;
}
.growth .main_wrap .profile_wrap .profile_box p {
  font-size: 1.6rem;
  font-weight: 600;
}
.growth .main_wrap .recent_wrap {
  border: 1px solid #EAE5E2;
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  margin: 1.6rem 0 2.4rem;
}
.growth .main_wrap .recent_wrap p {
  font-size: 1.4rem;
  font-weight: 300;
  color: #817773;
}
.growth .main_wrap .link_btn {
  display: block;
  width: 100%;
  background: var(--main-color);
  border-radius: 1rem;
  color: #fff;
  text-align: center;
  padding: 1.6rem 0;
  font-size: 1.6rem;
  font-weight: 500;
}
.growth .graph_wrap {
  margin-top: 4rem;
}
.growth .graph_wrap h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.growth .graph_wrap .graph_box {
  background: #fff;
  padding: 2.4rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
}
.growth .graph_wrap .category_wrap {
  margin-bottom: 1.6rem;
}
.growth .graph_wrap .category_wrap ul {
  display: flex;
  gap: 1rem;
}
.growth .graph_wrap .category_wrap ul li {
  width: 100%;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  padding: .9rem 0;
  border-radius: 5rem;
  border: 1px solid var(--main-color);
  color: var(--main-color);
}
.growth .graph_wrap .category_wrap ul li.active {
  background: var(--main-color);
  color: #fff;
}
.growth .graph_wrap .table_wrap {
  margin-top: 1rem;
  border: 1px solid #EAE5E2;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.growth .graph_wrap .table_wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.growth .graph_wrap .table_wrap table td {
  border: 1px solid #EAE5E2;
  width: 33.3%;
  font-size: 1.2rem;
  font-weight: 300;
  text-align: center;
  padding: 1.2rem 0;
}
/* 바깥 테두리는 .table_wrap 이 그리므로, 칸의 바깥쪽 선은 지워서 모서리에서 잘리지 않게 한다. */
.growth .graph_wrap .table_wrap table tr:first-child td {
  border-top: 0;
}
.growth .graph_wrap .table_wrap table tr:last-child td {
  border-bottom: 0;
}
.growth .graph_wrap .table_wrap table td:first-child {
  border-left: 0;
}
.growth .graph_wrap .table_wrap table td:last-child {
  border-right: 0;
}
.growth .graph_wrap .table_wrap table tr.active td {
  background: #FFF5F0;
  font-size: 1.4rem;
  font-weight: 400;
}
.growth .week_wrap {
  margin-top: 4rem;
}
.growth .week_wrap h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.growth .week_wrap .date_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.growth .week_wrap .date_wrap button img {
  width: 2.4rem;
}
.growth .week_wrap .date_wrap p {
  font-size: 1.4rem;
}
.growth .week_wrap .list_wrap {
  margin-top: 1rem;
}
.growth .week_wrap .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.growth .week_wrap .list_wrap ul li {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
}
.growth .week_wrap .list_wrap ul li > p {
  font-size: 1.8rem;
  font-weight: 600;
}
.growth .week_wrap .list_wrap ul li .text_box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}
.growth .week_wrap .list_wrap ul li .text_box p {
  font-size: 1.6rem;
  font-weight: 500;
}
.growth .week_wrap .list_wrap ul li .text_box p b {
  font-size: 2rem;
  font-weight: 600;
  color: var(--main-color);
}
.growth .week_wrap .list_wrap ul li .text_box span {
  font-size: 1.4rem;
  color: #817773;
}

/* growth_record.php */
.growth_record h1 {
  border-bottom: 1px solid #EAE5E2;
}

/* init_profile.php */
.init .title_wrap {
  margin-bottom: 5rem;
}
.init .title_wrap h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.init .title_wrap p {
  font-size: 1.4rem;
  line-height: 2rem;
  color: #817773;
}
.init .option_wrap {
  margin-top: 4rem;
  border-top: 1px solid #EAE5E2;
  border-bottom: 1px solid #EAE5E2;
  padding: 1.6rem 0;
}
.init .option_wrap .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.init .option_wrap .title_box h2 {
  font-size: 1.4rem;
  font-weight: 300;
  color: #817773;
}
.init .option_wrap .title_box img {
  width: 2rem;
}
.init .option_wrap .common_insert_wrap {
  margin-top: 1.6rem;
}
.init .start_btn {
  display: block;
  width: 100%;
  background: var(--main-color);
  border-radius: 1rem;
  text-align: center;
  color: #fff;
  padding: 2rem 0;
  margin-top: 6rem;
  font-size: 2rem;
  font-weight: 500;
}
.init_wrap {
  margin-bottom: 0 !important;
}

/* more.php */
.more h1 {
  font-size: 2.4rem;
  font-weight: 600;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #EAE5E2;
}
.more ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.4rem;
}
.more ul li {
  background: #fff;
  padding: 2.4rem 2rem;
  border-radius: 1rem;
  box-shadow: 0px 0px 4px 0px #EAE5E2;
}
.more ul li a,
.more ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.more ul li img {
  width: 2rem;
}
.more ul li a {
  font-size: 1.6rem;
  font-weight: 600;
}
.more ul li .title_wrap p {
  font-size: 1.6rem;
  font-weight: 600;
}
.more ul li .content_wrap {
  margin-top: 2.4rem;
}
.more ul li .content_wrap p {
  font-size: 1.2rem;
  color: #817773;
  line-height: 1.8rem;
}
.more ul li .content_wrap p b {
  font-weight: 600;
}

/* 기능 구현용 추가 */
.empty_text {
  text-align: center;
  font-size: 1.4rem;
  color: #817773;
  padding: 4rem 0;
}
.save_btn.line {
  background: #fff;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  padding: 1.6rem 0;
  font-size: 1.6rem;
  margin-top: 1rem;
}
button, a, .swiper-slide, .category_wrap li, .color_wrap li, .day_box:not(.empty), .check_wrap li {
  cursor: pointer;
}

/* init_profile.php - 성별 라디오 (체크박스와 동일한 형태) */
.init .radio_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.init .radio_wrap input[type="radio"] {
  display: none;
}
.init .radio_wrap label {
  display: block;
  width: 100%;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  border-radius: 5rem;
  padding: .9rem 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
}
.init .radio_wrap input[type="radio"]:checked + label {
  background: var(--main-color);
  color: #fff;
}

/* record.php - 대변 상태는 대변이 포함된 경우에만 노출 */
.record .diaper .category_wrap.feces.on {
  display: block;
}

/* growth.php - 성장 그래프 */
.growth .graph_wrap .graph {
  position: relative;
  width: 100%;
  height: 22rem;
}
.growth .graph_wrap .graph canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 날짜 · 시간 입력 : 브라우저 기본 아이콘을 숨기고, 표시용 input + 지정 아이콘으로 대체 */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button,
input[type="time"]::-webkit-clear-button,
input[type="datetime-local"]::-webkit-clear-button {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}
.common_insert .input_box {
  position: relative;
}
.common_insert .input_box .date_view {
  cursor: pointer;
}
.common_insert .input_box .date_real {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* record.php - 수유량 / 유축량 숫자 직접 입력 */
.record .mount_wrap .mount_box p {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.record .mount_wrap .mount_box .mount_input {
  width: 6rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #EAE5E2;
  border-radius: 0;
  background: none;
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
}
.record .mount_wrap .mount_box .mount_input:focus {
  outline: none;
  border-bottom-color: var(--main-color);
}
/* 수유량 칸이 숨겨졌을 때(모유 · 혼합) 아래 입력칸과의 간격 */
.record .bottle .mount_wrap.hide + .common_insert_wrap {
  margin-top: 2.4rem;
}

/* health.php - 복용량 단위 '기타' 직접 입력칸 : 3글자 폭만 차지하고 오른쪽 끝에 붙인다 */
.health .medicine .common_insert .input_box #medicine_unit_etc {
  flex: none;
  width: 5rem;
  text-align: right;
}

/* more.php - 앱 이용 안내 펼치기 / 접기 (내용은 jQuery slideDown / slideUp) */
.more ul li .title_wrap {
  cursor: pointer;
}
.more ul li .title_wrap + .content_wrap {
  display: none;
}
.more ul li .title_wrap img {
  transition: transform .3s ease;
}
.more ul li.open .title_wrap img {
  transform: rotate(180deg);
}

/* index.php - 홈 카드(li) 안의 빈 목록 안내 : 카드가 이미 padding 을 가지고 있어서 공통 .empty_text 의 여백은 뺀다.
   공통 .empty_text(padding: 4rem 0)는 기록 · 병원 · 약 목록에서 그대로 쓴다. */
.home .recent_wrap ul li .empty_text,
.home .day_wrap ul li .empty_text {
  width: 100%;
  padding: 0;
  text-align: center;
}

/* record.php - 전체 목록의 기록을 누르면 수정 화면으로 들어간다 */
.record .all .list_wrap .item_wrap .item_area .item_box {
  cursor: pointer;
}

/* record.php - 전체 탭 '0000.00.00 기록·캘린더 보기' 에서 날짜 강조 */
.record .all .title_wrap a b {
  margin-right: .2rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--main-color);
}

/* ADS (애드센스 배너: app_ad) */
li:has(.ads_wrap) {display: block !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; border: 0 !important; background: none !important;}
ins.adsbygoogle[data-ad-status="unfilled"] {display: none !important;}
.ads_wrap {display: flex; justify-content: center; margin: 15px 0;}
.ads_sm .adsbygoogle {display: inline-block; width: 300px !important; height: 50px !important;}
.ads_mid .adsbygoogle {display: inline-block; width: 336px !important; height: 98px !important;}
.ads_big .adsbygoogle {display: inline-block; width: 336px !important; height: 280px !important;}
/* 광고 위아래 간격 (app_ad 의 class 인자) */
.ads_wrap.mt-0 {margin-top: 0;}
.ads_wrap.mt-24 {margin-top: 24px;}
.ads_wrap.mt-40 {margin-top: 40px;}
.ads_wrap.mb-0 {margin-bottom: 0;}
.ads_wrap.mb-40 {margin-bottom: 40px;}
/* 목록 사이 광고: 앞뒤 카드 버튼과 붙지 않게 30px 이상 띄운다 */
.ads_wrap.my-30 {margin: 30px 0;}
