.p-sub-category {
  margin: 30px 20px;
  padding: 0;
  list-style-type: none;
}

.p-sub-category::after {
  display: block;
  clear: both;
  content: '';
}

.p-sub-category__item {
  float: left;
  box-sizing: border-box;
  width: 48%;
  margin:10px 1%;
  padding: 7px 5px;
  background:#eeeeee;
  border-radius:5px;
}


.p-sub-category__item:hover{
  background-color: #87cefa;   /* ホバー時に少し色が濃くなる */
  cursor: pointer;
}

.p-sub-category__image {
  display: block;
  margin-right: 5px;
  width:70px!important;
}

.p-sub-category__link {
  display: flex;
  transition: opacity .2s;
  text-decoration: none;
  color: #333;
  align-items: center;
  text-align:center;
}

.p-sub-category__link:hover {
  opacity: .66;
}

.p-sub-category__link:active {
  opacity: 1;
}

.p-sub-category__name {
  line-height: 1.3;
  display: block;
  padding-left: .8em;
}

.p-sub-category__name::before {
  position: absolute;
  top: 0;
  left: 0;
  content: '-';
}

@media screen and (min-width: 600px) {
  .p-sub-category {
    margin-right: 0;
    margin-left: 0;
  }

  .p-sub-category__item {
    width: 23%;
    margin:10px 1%;
    padding: 10px 10px;
  }

  .p-sub-category__item:nth-child(4n + 1) {
    clear: both;
  }
}

@media screen and (max-width: 599px) {
  .p-sub-category__item:nth-child(2n + 1) {
    clear: both;}
  
}


 /********* シリーズ説明文 ***********/

.series_explanation {
  padding: 0;
  max-width: 1200px;
  margin: auto;
}

.info-block-series {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 40px;
  flex-wrap: nowrap;
}

.info-image-series {
  flex: 0 0 55%;
  max-width: 55%;
  width: 100%;
  height: auto;
}

.info-text-series {
  flex: 0 0 45%;
  max-width: 45%;
  font-size: 16px;
  line-height: 180%;
  color: #444;
}

.info-text-series h3 {
  font-size: 24px;
  line-height: 150%;
  margin-bottom: 16px;
  color: #555555;
}

@media (max-width: 768px) {
  .series_explanation {
    padding: 0 10px;
  }

  .info-block-series {
    flex-direction: column !important;
    gap: 20px;
    flex-wrap: wrap;
  }

  .info-text-series,
  .info-image-series {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .info-text-series h3 {
    font-size: 20px;
  }
}


/* シリーズ用 スタッフコメント*/

/* セクション全体 */
.staff-comments-section {
  background-color: #fafafa;
  padding: 30px 25px;
  margin: 30px 0;
}

/* セクションタイトル */
.section-title {
  font-size: 1.4rem;
  color: #444;
  margin:0 0 20px;
  border-left: 5px solid #999;
  padding-left: 15px;
}

/* コメントブロック以下は前回のスタイルと共通 */
.staff-comment-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: sans-serif;
}

.staff-profile {
  text-align: center;
  width: 90px;
  flex-shrink: 0;
}

.staff-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.staff-name {
  font-size: 0.5rem;
  margin-top: 6px;
  color: #333;
  font-weight:bold;
  line-height:normal;
}

.staff-comment {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 5px 20px;
  flex: 1;
  position: relative;
}

.staff-comment::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #f0f0f0;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .staff-comment-block {
    flex-direction: row;
    align-items: flex-start;
  }

  .staff-photo {
    width: 65px;
    height: 65px;
  }

  .staff-profile {
    width: 75px;
  }

  .staff-comment::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
  }
}


/* シリーズで絞り込みボタン */

.sr_search{
  width:100%;
  text-align:center;
  padding:15px 0;
  margin-bottom:0 !important;
  background-color:#eeeeee;
  border-radius:5px;}
  
a .sr_search {color:#333333;}
a:hover .sr_search {background-color:#87cefa;}


/* シリーズトップ 2枚画像表示 */

.series_imgsec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 10px;
  box-sizing: border-box;
}

.series_img-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5%;
}

.series_img-row img {
  width: calc((100% - 5%) / 2); /* 2枚＋間に5%のマージン */
  height: auto;
  display: block;
}

.series_imgsec_txt {
  margin-top: 30px;
  text-align: center;
}

.series_imgsec_txt h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.series_imgsec_txt hr {
  width: 60px;
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 auto 15px auto;
}

.series_imgsec_txt p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  .series_img-row {
    flex-direction: column;
    gap: 20px;
  }

  .iseries_img-row img {
    width: 100%;
  }
}
