@charset "UTF-8";

/* =====================================
   1. 基本設定 (SP基準)
   ===================================== */
.contents {
  /* --- 変数定義 --- */
  /* 余白 */
  --block-inner-padding: 15px 20px 30px;
  /* フォント */
  --font-main: "Noto Sans JP", sans-serif;
  --font-title: "M PLUS U", sans-serif;
  --font-size-base: 13px;
  /* カラー */
  --bg-base: #FFF6A1;
  --text-base: #222;
  --basic-red: #E50012;
  --basic-blue: #009FE8;
  --basic-orange: #EE8100;
  --basic-green: #009844;
  --dark-red: #C4000F;
  --dark-blue: #0088C6;
  --dark-orange: #E25700;
  --dark-green: #00863C;
  --white: #fff;

  /* --- スタイル適用 --- */
  width: 100%;
  margin: 0 auto;
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-base);
  background: var(--bg-base);
  overflow-x: hidden;
}

.contents * {
  box-sizing: border-box;
}

.contents *:focus {
  outline: none;
}

.contents img {
  display: block;
  max-width: 100%;
}

.contents ul,
.contents li,
.contents p {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents a {
  text-decoration: none;
  color: inherit;
}

.contents h2 {
  text-align: center;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

.block-inner {
  padding: var(--block-inner-padding);
}

.pc {
  display: none !important;
}

.sp {
  display: block !important;
}


/* =====================================
   2. 各セクション設定
   ===================================== */
/* メインビジュアル ---------------------- */
.mv-section {
  margin: 0;
  padding: 0;
  background: url("/img/usr/genre/rX4/bg_mv.png") no-repeat center top / 100% auto;
}

/* リード文  ---------------------- */
.read-section {
  padding: 15px 20px 12px;
  position: relative;
  text-align: left;
  z-index: 2;
  border-top: #E5340F 3px solid;
  border-bottom: #E5340F 3px solid;
  background-color: var(--white);
  background-image: url("/img/usr/genre/rX4/bg_read_l.png"), url("/img/usr/genre/rX4/bg_read_r.png");
  background-position: left bottom, right bottom;
  background-repeat: no-repeat;
  background-size: 80px 53px;
}

.open-box {
  position: relative;
}

input[type="checkbox"].on-off {
  position: absolute;
  bottom: 0;
  opacity: 0;
}

.open-label {
  /* margin-top: -4px; */
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.open-label::before {
  content: '続きを読む';
  margin-right: 5px;
  font-weight: 600;
}

.open-label::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--text-base);
  border-bottom: 1px solid var(--text-base);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s;
}

.on-off:checked~.open-label::before {
  content: '閉じる';
}

.on-off:checked~.open-label::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.open {
  height: 45px;
  overflow: hidden;
  position: relative;
}

.on-off:checked~.open {
  height: auto;
}

.open::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to bottom, transparent 15%, var(--white) 90%);
}

.on-off:checked~.open::before {
  background: none;
  z-index: -1;
}

/* バナー(大)エリア ---------------------- */
.banner-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.banner-main-section p {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
}

/* バナー装飾 */
.banner-main li a,
.section-banner li a {
  border: 3px solid var(--white);
  border-radius: 4px;
  display: block;
  background-color: #ffffff;
  overflow: hidden;
}

.banner-main li a img,
.section-banner li a img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.banner-main li a:hover img,
.section-banner li a:hover img {
  opacity: 0.8;
}

/* バナーエリア ---------------------- */
.banner-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: url("/img/usr/genre/rX4/bg_section_s.png") no-repeat center top / 100% auto;
}

.banner-section h2 {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px auto 12px;
  font-family: var(--font-title);
  padding: 12px 0 22px;
  border-radius: 2px;
  background-clip: padding-box;
  background:
    linear-gradient(to bottom, var(--white), var(--white)) no-repeat top center / 100% calc(100% - 8px),
    linear-gradient(45deg, transparent 50%, var(--white) 50%) no-repeat bottom left calc(50% - 5px) / 10px 10px,
    linear-gradient(-45deg, transparent 50%, var(--white) 50%) no-repeat bottom right calc(50% - 5px) / 10px 10px;
  position: relative;
}

.banner-section h2::before,
.banner-section h2::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 2px;
  height: 24px;
}

.banner-section h2::before {
  margin-right: 15px;
  transform: rotate(-25deg);
}

.banner-section h2::after {
  margin-left: 15px;
  transform: rotate(25deg);
}

/* バナー 並び */
.section-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-banner li {
  width: calc((100% - 10px) / 2);
}

/* 各セクション個別設定 */
.banner-section--red,
.banner-section--red h2::before,
.banner-section--red h2::after {
  background-color: var(--basic-red);
}

.banner-section--red h2 {
  color: var(--dark-red);
}

.banner-section--blue,
.banner-section--blue h2::before,
.banner-section--blue h2::after {
  background-color: var(--basic-blue);
}

.banner-section--blue h2 {
  color: var(--dark-blue);
}

.banner-section--orange,
.banner-section--orange h2::before,
.banner-section--orange h2::after {
  background-color: var(--basic-orange);
}

.banner-section--orange h2 {
  color: var(--dark-orange);
}

.banner-section--green,
.banner-section--green h2::before,
.banner-section--green h2::after {
  background-color: var(--basic-green);
}

.banner-section--green h2 {
  color: var(--dark-green);
}

.banner-section--white {
  background: none;
  background-color: var(--white);
}

.banner-section--white h2 {
  margin: 15px auto 2px;
}

/* カテゴリエリア ---------------------- */
.category-section {
  padding: 20px 20px 30px;
  background-color: #E2F4FA;
}

.category-section h2 {
  margin: 10px auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1D6983;
}

.category-section h2::before,
.category-section h2::after {
  content: "";
  display: inline-block;
  width: 70px;
  height: 51px;
  margin: 0;
  background-image: url("/img/usr/genre/rX4/title_category.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.category-section h2::after {
  transform: scaleX(-1);
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}

.accordion-item {
  background-color: var(--white);
  border: 1px solid #B5D7E2;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

/* Safari用のデフォルト矢印消し */
.accordion-header::-webkit-details-marker {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-img {
  width: 80px;
  /* 画像のサイズ調整 */
  object-fit: contain;
}

.category-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-base);
}

/* --- ＋とーのアイコン切り替え --- */
.icon-toggle {
  position: relative;
  width: 14px;
  height: 14px;
}

/* 横線 */
.icon-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1a6680;
  transform: translateY(-50%);
}

/* 縦線（＋の時だけ表示） */
.icon-toggle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #1a6680;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

/* 開いた時、縦線を消してーにする */
.accordion-item[open] .icon-toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}


/* --- 中身のリストスタイル --- */
.accordion-content {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #B5D7E2;
}

.accordion-content li {
  border-bottom: 1px solid #B5D7E2;
}

.accordion-content li:last-child {
  border-bottom: none;
}

.accordion-content a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px 15px 25px;
  font-size: 15px;
  color: var(--text-base);
}

.accordion-content a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #1a6680;
  border-right: 2px solid #1a6680;
  transform: rotate(45deg);
}


/* =====================================
   3. PC用設定 (780px以上)
   ===================================== */
/* 基本設定 (PC基準) */
@media only screen and (min-width: 780px) {
  .contents {
    /* --- 変数定義 --- */
    --block-inner-padding: 30px 40px 60px;
    /* フォント */
    --font-size-base: 14px;

    /* --- スタイル適用 --- */
    width: 900px;
    font-size: var(--font-size-base);
  }

  .contents h2 {
    font-size: 28px;
  }

  .pc {
    display: block !important;
  }

  .sp {
    display: none !important;
  }

  /* メインビジュアル ---------------------- */
  .mv-section img {
    width: 680px;
    margin: 0 auto;
  }

  /* リード文  ---------------------- */
  .read-section {
    text-align: center;
    padding: 18px 20px 22px;
    background-size: 120px 80px;
  }

  .open-label {
    justify-content: center;
  }

  /* バナー(大)エリア ---------------------- */
  .banner-main-section p {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
  }

  .banner-main-section {
    margin: 0 30px;
    padding: 48px;
    border-radius: 15px;
  }

  .banner-main {
    gap: 30px;
  }

  /* バナーエリア ---------------------- */
  .banner-section {
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url("/img/usr/genre/rX4/bg_section.png") no-repeat center top / 100% auto;

  }

  .banner-section::before,
  .banner-section::after {
    top: 25px;
    width: 80px;
    height: 80px;
  }

  .banner-section::before {
    left: 30px;
  }

  .banner-section::after {
    right: 30px;
    transform: scaleX(-1);
  }

  .banner-section h2 {
    margin: 14px auto 20px;
    font-size: 30px;
  }

  .banner-section h2::before,
  .banner-section h2::after {
    width: 2px;
    height: 34px;
  }

  .section-banner {
    gap: 15px;
  }

  .section-banner li {
    width: calc((100% - 45px) / 4);
  }

  /* 各セクション個別設定 */
  .banner-section--red,
  .banner-section--red h2::before,
  .banner-section--red h2::after {
    background-color: var(--basic-red);
  }

  .banner-section--red h2 {
    color: var(--dark-red);
  }

  .banner-section--blue,
  .banner-section--blue h2::before,
  .banner-section--blue h2::after {
    background-color: var(--basic-blue);
  }

  .banner-section--blue h2 {
    color: var(--dark-blue);
  }

  .banner-section--orange,
  .banner-section--orange h2::before,
  .banner-section--orange h2::after {
    background-color: var(--basic-orange);
  }

  .banner-section--orange h2 {
    color: var(--dark-orange);
  }

  .banner-section--green,
  .banner-section--green h2::before,
  .banner-section--green h2::after {
    background-color: var(--basic-green);
  }

  .banner-section--green h2 {
    color: var(--dark-green);
  }

  .banner-section--white {
    background: none;
    background-color: var(--white);
  }

  .banner-section--white h2 {
    margin: 15px auto 2px;
  }

  /* カテゴリエリア ---------------------- */
  .category-section h2 {
    margin: 20px auto 15px;
  }

  .category-section h2::before,
  .category-section h2::after {
    width: 80px;
    height: 60px;
  }

  .contents details.accordion-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: auto;
    padding: 8px 0;
  }

  .accordion-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    border-top: none;
  }

  .accordion-header {
    width: 240px;
    flex-shrink: 0;
    border-right: none;
    padding: 10px 20px;
    cursor: default;
    pointer-events: none;
  }

  .category-name {
    font-size: 15px;
  }

  .accordion-content li {
    width: 205px;
    display: block;
  }

  .accordion-content li:nth-child(n+4) {
    border-bottom: none;
  }

  .contents .accordion-content li:nth-last-child(n+1):nth-last-child(-n+3):first-child,
  .contents .accordion-content li:nth-last-child(n+1):nth-last-child(-n+3):first-child~li {
    border-bottom: none !important;
  }

  .accordion-content a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    height: 60px;
    font-size: 14px;
  }

  .accordion-content a::after {
    display: none;
  }

  .accordion-content a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 2px solid #1a6680;
    border-right: 2px solid #1a6680;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -1px;
  }

  .icon-toggle {
    display: none;
  }
}

/* =====================================
   4. システム用
   ===================================== */
.block-genre-page-head {
  margin: 0;
  padding: 0;
}

.page-genre .block-top-event--goods {
  padding: 0;
}

.block-genre-page--sub.block-readmore-contents.js-readmore-contents {
  display: none;
}