/* ================= レイアウト ================= */
.layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  min-height: 100vh;
}
/* ================= メイン ================= */
.top img {
  width: 100%;
  display: block;
}
.triple-line {
  background:
    linear-gradient(#000 0 0) top / 100% 3px no-repeat,
    linear-gradient(#007bff 0 0) center / 100% 3px no-repeat,
    linear-gradient(#f58220 0 0) bottom / 100% 3px no-repeat;
  height: 9px;
}
.box_free {
  width: 100%;
  background: #333;
  margin: 0;
  line-height: 0;
  font-size: 0;
  background: url(/free/_img/ttl_free_bg.png) no-repeat;
  background-size: cover;
}
.ttl_free {
  width: 500px;
  margin: 0 auto;
  padding: 16px 0;
}
/* ================= サイド ================= */
.side {
  background: #f58220;
}
.side-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 18px;
}
/* ================= キャラ ================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff, #dbdbdb);
}
.hero img {
  width: 72%;
  display: block;
  margin: 0 auto;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 200%;
  animation: bgScroll 30s linear infinite;

  background-repeat: repeat-y;
  background-size: contain;
  pointer-events: none;
}
.hero::before {
  mix-blend-mode: multiply;
  left: 0;
  background-image: url(/free/_img/bg_left.png);
}
.hero::after {
  mix-blend-mode: multiply;
  right: 0;
  background-image: url(/free/_img/bg_right.png);
}

@keyframes bgScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.rensai-txt {
  background: url(/free/_img/circle.svg) no-repeat bottom right;
  background-size: 15%;
  padding-bottom: 15%;
}
.titles {
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
  padding: 26px 0;
}

.ttl {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  color: var(--orange);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.author {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  margin-top: 6px;
  color: #000;
}
.desc {
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.5;
  border-top: 1px solid #b9b9b9;
  margin-top: 1rem;
  padding-top: 1rem;
  color: #111;
}

/* ================= トビラ ================= */
.tobira {
  padding-bottom: 50px;
  position: relative;
  background: linear-gradient(-140deg, #4b8dc9 70%, #000 50%);
}
.icon_1wa {
  position: absolute;
  width: 18%;
  top: -9%;
  left: 41%;
  z-index: 10;
}
.tobira img {
  width: 100%;
}
.btn {
  margin: 50px auto 0;
  max-width: 500px;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.btn a {
  color: #000;
  font-size: 20px;
  padding: 30px;
  display: block;
  font-weight: bold;
  background-color: #f58220;
  transition: all 0.5s;
}
.btn a:hover {
  color: #f58220;
  background-color: #ffffff;
}

/* ================= BUY NOW ================= */
.buy {
  background: #e8e8e8;
  padding: 100px 0 0;
  background: url(/free/_img/circle2.svg) no-repeat top left #e0e0e0;
  background-size: 15%;
}
.buy_innner {
  max-width: 600px;
  margin: 0 auto;
}
.buy_img {
  margin-bottom: 40px;
}

.buy_ttl {
  color: #000;
  font-size: clamp(24px, 2vw, 40px);
  padding-bottom: 8px;
  font-weight: bold;
  position: relative;
  border-bottom: 4px solid #dc6d31;
  position: relative;
}
.buy_ttl::before {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 30%;
  height: 4px;
  background: #000;
}
.buy_ttl_min {
  color: #666;
}
ul.btnlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px auto 0;
  padding-bottom: 60px;
}
ul.btnlist li {
}
/*  最後の要素だけ横幅フル */
ul.btnlist li:last-child {
  grid-column: 1 / -1;
}
.denshi {
  position: absolute;
  top: -35px;
  width: 280px;
  right: 0;
}
/* ================= 連載ページへリンク ================= */
.mb10 {
  margin: 50px auto !important;
}

/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/********************************SP*********************/

@media (max-width: 768px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
  .ttl_free {
    width: 80%;
  }

  /* ================= レイアウト ================= */
  .layout {
    grid-template-columns: 1fr; /* 1列にする */
    overflow: hidden;
  }
  .side-inner {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .side-box {
    order: 2;
  }
  .side-list {
    order: 1;
  }
  .hero {
    background-size: 28%, 20%;
  }
  .hero img {
    width: 100%;
    display: block;
    margin: 0 auto;
  }

  .titles {
    margin: 0 auto;
    padding: 26px 0;
  }

  .author {
    font-weight: 500;
  }
  /* ================= トビラ ================= */
  .tobira {
    padding-bottom: 30px;
    position: relative;
    background: linear-gradient(-140deg, #4b8dc9 70%, #000 50%);
  }
  .icon_1wa {
    width: 30%;
    top: -15%;
    left: 36%;
  }
  .tobira img {
    width: 100%;
  }
  .btn {
    margin: 30px auto 0;
    width: 80%;
  }
  .btn a {
    font-size: 16px;
    padding: 20px 0;
  }

  /* ================= BUY NOW ================= */

  .buy_innner {
    width: 90%;
  }
  .buy_img {
    width: 40%;
  }
  .denshi {
    width: 200px;
  }
}
