* {
  margin: 0;
  padding: 0;
}

/* ----------メイン---------- */
.contents-detail {
  background: #ffffff;
  min-height: 100vh;
}
h2 {
  margin-top: 20px;
  text-align: center;
}
a {
  text-decoration: none;
}

.pipe-line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pipe {
  height: 20px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.line {
  width: 50%;
  border: solid 1px #555555;
  border-left: none;
  border-top: none;
  border-bottom: none;
  z-index: 50;
}
.white {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  width: 20px;
  height: 30px;
  z-index: 49;
}
.green {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1fffb;
  width: 20px;
  height: 30px;
  z-index: 49;
}
.blue {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fcfc;
  width: 20px;
  height: 30px;
  z-index: 49;
}
.sp-on {
  display: none;
}
.sp,
.arrow {
  display: block;
}

@media screen and (max-width: 820px) {
  .sp-on {
    display: block;
  }
  .sp,
  .arrow {
    display: none;
  }
}

/* ----------商品詳細---------- */
.detail {
  display: flex;
  position: relative;
  background-color: rgb(255, 255, 255);
  padding: 100px 15% 100px 15%;
  z-index: 1;
}
.bg-blue-1 {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  left: 0;
  width: 80%;
  height: 80%;
  background-color: #f8fcfc;
  /* background-color: #27cece; */
  z-index: -1;
}
.content-area {
  flex: 8;
  display: flex;
  padding: 30px;
  border: solid 1px;
  background-color: rgb(255, 255, 255);
  border-color: #555555;
  border-radius: 20px;
  z-index: 0;
}
.author-data {
  margin-top: 10px;
}
.content-image {
  flex: 3;
  float: left;
  width: 30%;
}
.content-image img {
  width: 100%;
}
.img-list {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 30px 0;
  align-items: center;
  justify-content: space-between;
}
.img-list img {
  display: flex;
  flex-direction: column;
  align-items: center;
}



.content-data {
  flex: 7;
  float: right;
  box-sizing: border-box;
  word-break: break-word;
  padding: 0 0 0 50px;
}
.content-status {
  width: 100%;
  font-size: 14px;
  padding: 10px 0 10px 0;
}
.content-status > p:first-of-type {
  margin-bottom: 10px;
}
.content-status h2 {
  border: solid 3px #109F98;
  border-right: none;
  border-top: none;
  border-bottom: none;
  text-align: left;
  padding: 0 0 0 10px;
  margin-bottom: 10px;
}
.status-author-name,
.status-price,
.status-release,
.status-size,
.status-pages {
  font-size: 16px;
  font-weight: bold;
}

.status-detail {
  display: flex;
  gap:50px;
}
.content-text {
  padding: 10px 0 10px 0;
  border: solid 1px #d5daed;
  border-right: none;
  border-left: none;
  border-bottom: none;
}



@media screen and (max-width: 820px) {
  .detail {
    display: block;
    padding: 10px 3% 20px 3%;
  }
  .bg-blue-1 {
    display: none;
  }
  .content-area {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 20px 10px 20px;
  }
  .content-image {
    width: 80%;
  }
  .content-status {
    margin-bottom: 20px;
    padding: 10px 0 20px 0;
    border: solid 1px #d5daed;
    border-right: none;
    border-left: none;
    border-top: none;
  }
  .content-status h2 {
    border: solid 3px #109F98;
    border-right: none;
    border-top: none;
    border-bottom: none;
    text-align: left;
    margin-bottom: 10px;
    margin-top: 5px;
  }
  .content-data {
    flex: none;
    float: none;
    padding: 0 0 0 0;
   position:relative;
  }

  .content-data img{
    width:50%;
}
  .content-data h2 {
    font-size: 14px;
  }
  .status-detail {
    display: flex;
    justify-content: start;
  }
  .content-text {
    margin-top: 10px;
    border-top: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin-bottom:50px;
    position:relative;
  }

  .content-text::after{
    content:"";
    width:100%;
    height:80px;
    position:absolute;
    bottom:0;
    background: linear-gradient(transparent, #FFF);
  }

  .content-text.show{
    -webkit-line-clamp: none;
}

  .content-text.show::after{
    display:none;
}

  .list-link.more.hide{
    display:none !important;
}

  .sp-space {
    margin-right: 30px;
  }
  .author-history {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* ----------購入エリア---------- */
.buy-area {
  flex: 2;
  height: 450px;
  padding: 30px 20px 30px 40px;
  border: solid 1px;
  border-color: #555555;
  border-radius: 0 20px 20px 0;
  background-color: #f1fffb;
  border-left: none;
  margin-left: -15px;
  z-index: -1;
}
.price-line {
  margin-bottom: 14px;
}
.price {
  font-size: 2vw;
  font-weight: bold;
}
.cart-in {
  font-size: 0.8vw;
}
@media screen and (max-width: 820px) {
  .price {
    font-size: 16px;
  }
  .cart-in {
    font-size: 14px;
  }
}

iframe[name^="__privateStripeFrame"],
div[class*="ElementsApp"],
div[class*="_PrivateStripeElement"],
div[class*="StripeElement"] {
  display: none !important;
}

.postage {
  font-size: 12px;
}
.quantities {
  display: flex;
  align-items: center;
  margin: 10px 0 10px 0;
  font-size: 14px;
}
.quantities p {
  width: 30%;
}
.quantities input {
  width: 70%;
  height: 30px;
}

.buy-btn {
  display: flex;
  width: 100%;
  margin: 20px 0 10px 0;
  background-color: #e8353e;
  color: #ffffff;
  padding: 10px;
  border: none;
  border-radius: 50px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: center;
}
.buy-btn div {
  display: flex;
  align-items: center;
  margin: auto;
}
.buy-btn div img {
  margin-right: 10px;
}
.arrow {
  padding-right: 5px;
}
.buy-btn:hover {
  background-color: #97272c;
}

.amazon{
  margin: 20px 0 10px 0;
}

.amazon{
  margin: 20px 0 10px 0;
}

.amazon a{
  display:block;
  width:80%;
  margin: 0 auto;
}

.amazon p{
  text-align:center;
}

.amazon a img{
  width:100%;
}

@media screen and (max-width: 820px) {
  .buy-area {
    height: auto;
    margin-left: 0;
    margin-top: 15px;
    padding: 40px 20px 30px 20px;
    border: solid 1px;
    border-color: #555555;
    border-radius: 20px;
  }
  .price-line {
    margin-bottom: 5px;
  }
  .quantities p {
    width: 20%;
  }
  .quantities input {
    width: 80%;
  }
  .buy-btn {
    margin: 0 auto;
    justify-content: center;
    width: 60%;
  }
  .sp,
  .arrow {
    display: none;
  }
  .buy-btn div img {
    width: 34px;
  }
}

.favorite-btn {
  display: flex;
  width: 100%;
  margin: 20px 0 10px 0;
  background-color: #fb9f27;
  color: #ffffff;
  padding: 10px;
  border: none;
  border-radius: 50px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: center;
}
.favorite-btn div {
  display: flex;
  align-items: center;
  margin: auto;
}
.favorite-btn div img {
  margin-right: 10px;
}

.arrow {
  padding-right: 5px;
}
.favorite-btn:hover {
  background-color: #a06922;
}
@media screen and (max-width: 820px) {
  .buy-area {
    height: auto;
    margin-left: 0;
    margin-top: 15px;
    padding: 40px 20px 30px 20px;
    border: solid 1px;
    border-color: #555555;
    border-radius: 20px;
  }
  .price-line {
    margin-bottom: 5px;
  }
  .quantities p {
    width: 20%;
  }
  .quantities input {
    width: 80%;
  }
  .favorite-btn {
    margin: 10px auto;
    justify-content: center;
    width: 60%;
  }
  .sp,
  .arrow {
    display: none;
  }
  .favorite-btn div img {
    width: 30px;
  }
}

.favorite-btn-after {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 20px 0 10px 0;
  justify-content: space-between;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #fb9f27;
  border-radius: 50px;
  color: #fb9f27;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.favorite-btn-after div {
  display: flex;
  align-items: center;
  margin: auto;
}
/* .favorite-btn-after div img {
  margin-right: 10px;
} */

/* .favorite-btn-after:hover {
  background-color: #fb9f27;
  color: #fff;
} */

@media screen and (max-width: 820px) {
  .buy-area {
    height: auto;
    margin-left: 0;
    margin-top: 15px;
    padding: 40px 20px 30px 20px;
    border: solid 1px;
    border-color: #555555;
    border-radius: 20px;
  }
  .price-line {
    margin-bottom: 5px;
  }
  .quantities p {
    width: 20%;
  }
  .quantities input {
    width: 80%;
  }
  .favorite-btn-after {
    margin: 10px auto;
    justify-content: center;
    width: 60%;
  }
  .sp,
  .arrow {
    display: none;
  }
  .favorite-btn-after div img {
    width: 30px;
  }
}

/* ---------試し読みリンク---------- */
.list-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: 2px solid #109F98;
  border-radius: 50px;
  overflow: hidden;
  white-space: nowrap;
  margin: 20px auto;
  position: relative;
  background-color:#FFF;
  width:fit-content;
}

.content-image p{
  width:fit-content;
  margin:0 auto;
}

/* 丸アイコン */
.btn-l {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #109F98;
  width: 50px;
  height: 50px;
  color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
}

/* テキストボタン */
.list-btn {
  display: flex;
  align-items: center;
  padding: 5px 20px;
  font-weight: bold;
  font-size: 16px;
  color: #109F98;
  background-color: #ffffff;
  height: 38px;
  white-space: nowrap;
}

/* ホバー時反転 */
.list-link:hover {
  background-color: #109F98;
  color: #ffffff;
}
.list-link:hover .list-btn {
  background-color: #109F98;
  color: #ffffff;
}
.list-link:hover .btn-l {
  background-color: #ffffff;
  color: #109F98;
}
.list-link:hover .btn-l img {
  filter: invert(48%) sepia(93%) saturate(600%) hue-rotate(76deg)
    brightness(89%) contrast(92%);
}

.button-wrap {
  text-align: center;
}
@media screen and (max-width: 820px) {
  .list-btn {
    width: 65%;
  }
  .list-link {
    display: flex;
    width:fit-content;
    justify-content:space-between;
  }

  .list-link.more{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    display:flex !important;
  }
}

@media screen and (max-width: 820px) {
  .list-btn {
    /* ボタンの高さ= font-size + padding-top,bottom */
    height: 23px;
    font-size: 13px;
    padding: 5px 30px 5px 20px;
    color: #109F98;
    font-weight: bold;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .btn-l {
    width: 34px;
    height: 34px;
  }
}

/* ----------関連商品----------- */
/* -----------閲覧履歴---------- */
.special-2 {
  background-color: #f1fffb;
  padding-top: 50px;
  padding-bottom: 50px;
}
.content-2 {
  display: flex;
  flex-wrap: wrap;
  margin: 0 10% 0 10%;
  padding: 30px;
  border: solid 1px;
  border-bottom: none;
  border-right: none;
  border-left: none;
  border-color: #555555;
  justify-content: space-between;
}
.lank {
  position: absolute;
  top: 0;
  left: 0px;
  background: linear-gradient(to top left, transparent 50%, #fffb0c 50%);
  color: black;
  font-weight: bold;
  z-index: 20;
  text-align: center;
  line-height: 50px;
  width: 50px;
  height: 50px;
  filter: drop-shadow(3px 3px 3px rgb(0, 0, 0));
}
.lank-num {
  position: absolute;
  top: -10px;
  left: 10px;
}
.card-2 {
  width: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.card-2 h3,
.card-2 p {
  width: 100%;
  /*margin: 10px 30px 10px 30px;*/
}
.card-2 a,
.card-2 a img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
}
.card-2 h3 {
  border: solid 2px #109F98;
  padding-left: 5px;
  border-right: none;
  border-top: none;
  border-bottom: none;
}
@media screen and (max-width: 820px) {
  .special-2 {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .special-2 h2 {
    font-size: 16px;
  }
  .content-2 {
    margin: 0 3% 0 3%;
    padding: 20px;
  }
  .card-2 {
    width: calc(100% / 3 - 10px);
  }
  .card-2 h3,
  .card-2 p {
    margin:0;
    font-size: 14px;
  }
}

/* ----------コンテンツデータ----------*/

.detail-data {
  background-color: #ffffff;
  padding-top: 30px;
  padding-bottom: 30px;
}

.detail-data h2,
.special-2 h2 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.detail-data h2 img,
.special-2 h2 img {
  margin: 0 10px;
  width: 25px;
}

.data-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0px 10% 40px 10%;
  padding: 30px;
  border: solid 1px;
  border-color: #555555;
  border-radius: 20px;
  justify-content: space-between;
}

.data-list td span{
  font-weight: bold;
}

.author-data {
  align-items: flex-start;
}
.author-data img {
  flex: 2;
  float: left;
}
.author-profile {
  flex: 8;
  float: right;
  padding: 20px;
  box-sizing: border-box;
  word-break: break-word;
}
.author-profile p {
  width: 100%;
  margin: 0;
  line-height: 1.6;
}
.author-name p {
  font-weight: bold;
}
@media screen and (max-width: 820px) {
  .detail-data h2 {
    font-size: 16px;
  }
  .author-data img {
    float: none;
  }
  .author-profile {
    float: none;
  }
  .data-list {
    display: block;
    font-size: 12px;
    padding: 15px;
  }
  .author-data {
    display: inline-block;
    text-align: center;
  }
  .author-profile {
    padding: 5px;
    text-align: left;
  }
  .author-name {
    text-align: center;
  }
}
