/* COMMON */
:root {
  --main-color: #C88EA7;
  --bg-color: #fff9f8;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 7.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  margin-top: 7.5rem;
  padding-bottom: 2.5rem;
}

/* HEADER */
header {
  text-align: center;
  padding: 1.6rem 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: 3.6rem;
}
header .logo img {
  width: 100%;
}
header .back {
  width: 2.4rem;
  aspect-ratio: 1 / 1;
}
header .back img {
  width: 100%;
}
header h1 {
  font-family: 'OngleIpSeaBreeze';
  font-size: 3.2rem;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid var(--main-color);
  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: #E8C8D4;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

/* index.php */
.home {
  margin-top: 2rem;
}
.home .header_wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
}
.home .header_wrap h1 {
  font-family: 'OngleIpSeaBreeze';
  font-size: 3.2rem;
  line-height: 4rem;
  color: var(--main-color);
  text-align: left;
  padding-top: 6.5rem;
}
.home .recent_wrap {
  margin-bottom: 4rem;
}
.home .recent_wrap h2 {
  font-family: 'OngleIpSeaBreeze';
  font-size: 2.4rem;
  margin-bottom: .8rem;
}
.home .recent_wrap .box_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 4px 4px 0px #E6DDE240;
  background: #fff;
  border-radius: 1rem;
  padding: 1.8rem 1.6rem;
}
.home .recent_wrap .box_wrap p {
  font-size: 2rem;
  font-weight: 700;
}
.home .recent_wrap .box_wrap button {
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 3.5rem;
  padding: .6rem 1.2rem;
  border: 1px solid #7c7478;
  color: #7C7478;
}
.home .quick_wrap h2 {
  font-family: 'OngleIpSeaBreeze';
  font-size: 2.4rem;
  margin-bottom: .8rem;
}
.home .quick_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;;
}
.home .quick_wrap ul li a {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  background: #fff;
  box-shadow: 0px 0px 8px 0px #E7DFD240;
  border-radius: 1rem;
  padding: 2rem 0;
}

/* list.php */
.list .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.list .list_wrap ul li a {
  display: block;
  background: #fff url("../img/icon_arrow_right.png") no-repeat calc(100% - 2rem) 50% / 2.4rem;
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: 700;
  padding: 2rem;
  box-shadow: 0px 0px 8px 0px #E7DFD240;
}

/* view.php */
.view .content_wrap {
  text-align: center;
  padding: 5rem 0;
  border-top: 1px solid #E6DDE2;
  border-bottom: 1px solid #E6DDE2;
  /* height: calc(100dvh - 24rem); */
  height: calc(100dvh - 35rem);
  overflow-y: scroll;
}
.view .content_wrap span {
  display: block;
  color: #7C7478;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.view .content_wrap .character {
  font-size: 2rem;
  font-weight: 700;
  line-height: 3.5rem;
  margin-bottom: 1.6rem;
  word-break: break-word;
}
.view .content_wrap .reading {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2.6rem;
  color: var(--main-color);
  margin-bottom: 1.6rem;
}
.view .content_wrap .meaning {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 2rem;
  color: #7c7478;
  word-break: keep-all;
}
.view .content_wrap .title {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 2rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #E6DDE2;
}
.view .control_wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  z-index: 9;
  padding: 4rem 0;
}
.view .control_wrap .bar_wrap {
  margin-bottom: 3rem;
}
.view .control_wrap .bar_wrap .bar {
  width: 100%;
  height: .5rem;
  background: #E6DDE2;
  position: relative;
  border-radius: 3rem;
  margin-bottom: .5rem;
}
.view .control_wrap .bar_wrap .bar .gage {
  width: 50%;
  height: 100%;
  background: var(--main-color);
  border-radius: 3rem;
  position: absolute;
  top: 0;
  left: 0;
}
.view .control_wrap .bar_wrap .state_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.view .control_wrap .bar_wrap .state_wrap p {
  font-family: 1.2rem;
  font-weight: 300;
  color: #7C7478;
}
.view .control_wrap .btn_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.view .control_wrap .btn_wrap button {
  display: flex;
  align-items: center;
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
}
.view .control_wrap .btn_wrap button.disabled {
  opacity: .5;
  pointer-events: none;
}
.view .control_wrap .btn_wrap button.prev img {
  transform: scaleX(-1);
}
.view .control_wrap .btn_wrap button.play {
  width: 3.2rem;
  height: 3.2rem;
}
.view .control_wrap .btn_wrap button.play img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* more.php */
.more .list_wrap {
  padding: 4rem 0;
  border-top: 1px solid #E6DDE2;
}
.more .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.more .list_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.8rem;
  font-weight: 600;
  color: #7c7478;
}

/* info.php */
.info {
  padding-bottom: 4rem;
}
.info .content_wrap {
  padding: 4rem 0 0;
  border-top: 1px solid #E6DDE2;
}
.info .content_wrap p {
  font-size: 1.4rem;
  line-height: 2.5rem;
  color: #7C7478;
}
.info .content_wrap p b {
  display: block;
  font-weight: 600;
}