@media screen and (max-width: 820px) {
  body {
    padding-top: 200px !important;
  }
}

.detail {
  color: #111;
}

.content-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.content-status h2 {
  margin: 0 0 10px 10px;
}

.content-status p {
  margin: 0 10px 10px 0;
}

.content-area {
  display: block;
}

.content-detail {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
}

/*
.content-detail div {
    width: 100%;
}
*/

.content-detail .content-image {
  flex: 0 0 auto;
  width: 47%;
  height: 250px;
  text-align: center;
  text-align: -webkit-center;
  border: 1px solid #d5daed;
}

.content-detail .content-image {
  padding: 10px;
  margin: 10px;
}

.content-detail .content-image img {
  width: 80%;
  height: 250px;
  object-fit: contain;
}

.content-detail .content-data {
  width: 50%;
  flex: 1;
  float: right;
  box-sizing: border-box;
  word-break: break-word;
  padding: 0 0 0 50px;
}

.content-detail .content-data .datas {
  padding: 10px 10px 20px 0;
  margin: 10px 10px -5px 0;
  border-top: 1px solid #d5daed;
  border-bottom: 1px solid #d5daed;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 写真横のデータ3番目からは横並びかつ2列折り返し表示 */
.horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; /* 間隔はお好みで調整 */
}

/* 運行会社、路線名など */
.datas .data-detail-text dt {
  color: #999;
  font-size: 14px;
  font-weight: 400;
}

/* 詳細データ */
.detail-datas {
  border: 1px solid #109f98;
  border-radius: 7px;
  margin: 0 10px 24px 10px;
  padding: 20px 32px;
  overflow: hidden;
}

.detail-datas .toggle {
  display: none;
}

.detail-datas .detail-btn-wrapper {
  text-align: center;
  color: #109f98;
  font-size: 18px;
  font-weight: 700;
}

button#open-folding-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.open-folding-detail img:first-child {
  filter: brightness(0) saturate(100%) invert(68%) sepia(68%) saturate(6159%)
    hue-rotate(145deg) brightness(90%) contrast(87%);
}

button#open-folding-detail-sp {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  border: none;
  background: none;
  padding: 0;
  color: #109f98;
}

.accordion-btn-arrow {
  background-color: #109f98;
  border-radius: 50%;
  padding: 4px;
  transition: transform 0.3s ease;
}

/* 詳細データ PC フォールディング */
.toggle {
  display: none;
}

.accordion {
  overflow: hidden;
}

.summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* 矢印回転 */
.arrow {
  transition: transform 0.3s ease;
}

.toggle:checked + .accordion .summary .arrow {
  transform: rotate(180deg);
}

/* 開閉コンテンツ */
.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 12px;
}

.list-detail-datas > p {
  padding-bottom: 12px;
}

.toggle:checked + .accordion .content {
  max-height: 950px;
  padding: 12px;
}

.modal-content .detail-btn-wrapper.summary {
  cursor: none;
}

.list-detail-datas p:first-child {
  margin: 12px 0;
  font-weight: 400;
}

.list-detail-datas table {
  border-collapse: collapse;
  width: 100%;
}

.list-detail-datas th,
.list-detail-datas td {
  border: 1px solid #d5daed;
  padding: 8px 12px;
  text-align: left;
}

.list-detail-datas th {
  background-color: #f8f9fc;
  width: 30%;
}

.list-detail-datas td {
  font-weight: 400;
}

.attention {
  width: 100%;
  display: inline-flex;
  align-items: center;
  background-color: #f8f9fc;
  margin-top: 24px;
  padding: 8px 0;
  justify-content: center;
  gap: 0 0.5rem;
}

.attention img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(0%)
    hue-rotate(151deg) brightness(94%) contrast(85%);
  opacity: 0.3;
  padding-left: 8px;
  height: 18px;
}

.attention p {
  color: #555;
  font-size: 12px;
  font-weight: 400;
  padding-right: 8px;
}

.content-detail-vertical .points {
  margin: 20px auto;
}

.content-detail-vertical .points ul {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0 16%;
}

.product_detail,
.product_favorite {
  margin: 15px auto 0;
  display: flex;
  justify-content: center;
}

.product_favorite .buy-btn {
  color: #ffffff;
  background-color: #fb9f27;
  margin: 0 0 20px 0;
}

.product_favorite .favorite-btn-after {
  color: #fb9f27;
  background-color: #fff;
}

.buy-btn {
  width: 400px;
  margin: 10px 0 0 0;
}

.cart-in {
  font-size: 16px;
}

.special-0 {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  padding-bottom: 30px;
}

.special-1 {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid #d5daed;
}

/* 類似写真のレイアウトをTOPのgridのように作ります */
.content-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 10% 0px 10%;
  padding: 30px;
  justify-content: center;
  gap: 16px;
}

.special-2 {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #ffffff;
  /*border-top: 1px solid #D5DAED;*/
}

/* 類似写真のレイアウトをTOPのgridのように作ります */
.content-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 16px 0 0 0;
  border: none;
}

.content-1 .link {
  margin: 30px auto 0;
}

.content-3 {
  padding: 20px 30px;
}

.special-3 {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #f8f9fc;
}

.content-4 {
  padding: 20px 30px;
}

/* 類似写真のレイアウトをTOPのgridのように作ります */
.card-1 {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 5px;
}

.card-1 h3,
.card-1 p {
  width: 100%;
  /* margin: 10px 30px 10px 30px;*/
}

.card-1 a,
.card-1 a img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
}

.card-1 h3 {
  border: solid 2px #109f98;
  padding-left: 5px;
  border-right: none;
  border-top: none;
  border-bottom: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 表示したい行数 */
  overflow: hidden;
}

.special-0 .content-1 {
  display: flex;
  flex-wrap: wrap;
  padding: 30px 0;
  margin: 0;
  justify-content: space-between;
  gap: 0.5%;
}

.card-2 {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* 類似写真のレイアウトをTOPのgridのように作ります */
.card-2 a {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  object-fit: none;
}

/* 類似写真のレイアウトをTOPのgridのように作ります */
.image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-width: 400px;
  margin: 0 auto;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-2 a img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  aspect-ratio: auto;
}

.border-area {
  border: 1px solid #d5daed;
  padding: 20px;
}

/* センター寄せ用 */
.newbook-heading-wrapper {
  text-align: center;
}

/* c_red=h2 内に imgとテキスト入れているので中央に揃えやすくするため inline-flex を採用 */
.c_red {
  color: #d43d44;
  display: inline-flex;
  align-items: center;
}

.c_red img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(36%) saturate(4443%)
    hue-rotate(337deg) brightness(88%) contrast(87%);
}

/* 余白はgapへ対応変更 */
.newbook-title {
  gap: 0 0.5rem;
}

.s_20 {
  font-size: 20px;
}

.s_32 {
  font-size: 32px;
}

.lead-sentence {
  display: flex;
  flex-wrap: wrap;
}

.category-btn-list {
  display: flex;
  width: fit-content;
  margin-right: 3%;
  margin-bottom: 15px;
  color: #109f98;
  padding: 5px 15px 5px 30px;
  border: 1px solid #109f98;
  border-radius: 50px;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  cursor: pointer;
  text-align: center;
  position: relative;
}

.category-btn-list::before {
  content: "";
  position: absolute;
  display: inline-block;
  width: 14px;
  height: 25px;
  left: 8px;
  top: 4px;
  background-color: #109f98;
  mask: url(/html/user_data/assets/icon/btn_ic_search.svg) no-repeat center;
  mask-size: contain;
  -webkit-mask: url(/html/user_data/assets/icon/btn_ic_search.svg) no-repeat
    center;
  -webkit-mask-size: contain;
}

.tab {
  margin: 35px 0 10px;
}

.tab-list {
  display: flex;
  gap: 1px;
}

.tab-item {
  border-radius: 5px 5px 0 0;
  background-color: #109f98;
  border-top: solid 1px #109f98;
  border-right: solid 1px #109f98;
  border-left: solid 1px #109f98;
}

.tab-item.active {
  background-color: #fff;
  border-top: solid 1px #d5daed;
  border-right: solid 1px #d5daed;
  border-left: solid 1px #d5daed;
  font-weight: bold;
  position: relative;
}

.tab-item.active::before {
  content: "";
  width: 100%;
  border-bottom: 3px solid #fff;
  position: absolute;
  bottom: -2px;
  left: 0;
}

.tab-item a {
  color: #fff;
  padding: 0.5em 1.2em;
  display: block;
}

.tab-item.active a {
  color: #111;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  padding: 3%;
  flex-wrap: wrap;
  gap: 20px 20px;
  flex: 10;
}

.tab-panel ul {
  list-style: disc;
  text-indent: -8px;
  margin-left: 24px;
}

.tab-panel li {
  list-style: disc;
  margin: 8px 0;
  font-weight: 400;
}

.terms-of-use-link {
  margin-top: 20px;
}

.tab-panel h2 {
  border-left: solid 3px #109f98;
  text-align: left;
  padding: 0 0 0 10px;
}

.tab-panel div p {
  margin-top: 10px;
}

.terms-of-use-link a {
  color: #109f98;
  display: flex;
  align-items: center;
  gap: 0 8px;
}

.terms-of-use-link a img {
  color: #109f98;
}

.terms-of-use-link a span {
  color: #109f98;
  font-size: 17px;
}

.tab-content:has(.tab-panel.active) {
  border: solid 1px #d5daed;
}

.special-2 .content-3 p {
  font-weight: 400;
}

@media only screen and (max-width: 768px) {
  .card-2 img {
    width: 100% !important;
  }

  .content-status {
    border: none;
    flex-direction: column;
  }

  .content-status h2 {
    margin: 0 0 10px 0;
  }

  .content-status > p:first-of-type {
    font-size: 16px;
  }

  .content-detail {
    flex-direction: column;
    padding-bottom: 32px;
  }

  .content-detail .content-image {
    width: 100%;
  }

  .content-detail .content-data {
    width: 100%;
    float: none;
    padding: 0;
  }

  .ec-grid2 .ec-login__actions img {
    width: auto !important;
  }

  .content-detail .content-image {
    padding: 10px 0;
    margin: 0;
  }

  .content-data .datas {
    margin-bottom: 20px;
  }

  .content-detail .content-data .datas {
    padding: 16px 0;
    margin: 32px 0 0 0;
  }

  .points {
    margin-top: 10px;
  }

  .points ul {
    text-align: right;
  }

  .product_favorite {
    margin-top: 15px;
  }

  .product_favorite a {
    flex: 1;
  }

  .content-1 {
    padding: 30px 0;
    margin: 0;
  }

  .card-1 {
    /* width: calc(70% / 2.5); */
  }

  .special-0 .content-1 {
    justify-content: center;
  }

  .special-0 .content-1 .card-2 {
    margin: 5px;
  }

  .special-1.sp {
    margin: 0 auto;
    /* border-top: none; */
    /* padding-top: 0; */
    padding-bottom: 0;
  }

  .special-1.sp button.c_red {
    display: flex;
    gap: 0 6px;
    margin: 0 auto;
    border: none;
    background-color: transparent;
  }

  .special-1.sp button.c_red {
    font-size: 21px;
  }

  .content-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .horizontal {
    grid-template-columns: none;
  }

  .detail-datas {
    margin: 0 0 24px 0;
    padding: 20px 14px;
  }

  .detail-view-btn {
    display: inline-flex;
    align-items: center;
    /* gap: 4px; */
    background-color: #109f98;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
  }

  .product_detail,
  .product_favorite {
    width: 100%;
    box-sizing: border-box;
  }

  .ec-productRole__btn {
    width: 100%;
  }

  .buy-btn {
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .tab-panel ul {
    text-indent: 0;
    font-size: 14px;
  }

  .tab-panel li {
    font-weight: 400;
    margin: 8px 0;
    line-height: 1.5em;
  }

  .tab-panel p {
    font-size: 14px;
  }

  .terms-of-use-link {
    margin-top: 8px;
  }

  .terms-of-use-link a img {
    height: auto;
  }

  .terms-of-use-link a span {
    font-size: 14px;
  }
}

@media screen and (max-width: 840px) {
  /* お問い合わせボタン */
  .ec-grid2__cell {
    width: 100%;
  }

  .ec-login__actions {
    width: 100%;
  }

  .ec-blockBtn--cancel {
    width: 100%;
  }
}

@media screen and (max-width: 820px) {
  .buy-btn div img {
    width: 22px;
  }
}

.detail-br-sp {
  display: none;
}

@media screen and (max-width: 450px) {
  .detail-br-sp {
    display: inline;
  }
}

@media screen and (max-width: 465px) {
  .special-1.sp button.c_red {
    font-size: 16px;
  }

  .special-1.sp button img {
    height: 16px;
  }
}

@media screen and (max-width: 420px) {
  .detail-btn-wrapper.summary {
    font-size: 14px;
  }

  .list-detail-datas p:first-child {
    font-size: 12px;
  }

  .list-detail-datas th,
  .list-detail-datas td {
    font-size: 14px;
  }
}
