/* --------------------------------------------------------------------
アコーディオンパネル(.js-accordion)
--------------------------------------------------------------------- */

.js-accordion button {
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
}

.js-accordion .js-accordion_content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.6s ease, opacity 0.6s ease;
}

/* 【PC】
--------------------------------- */
.mainframe_ .js-accordion .js-accordion_header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
  padding: 15px;
  cursor: pointer;
}

.mainframe_ .js-accordion .js-accordion_header span {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: left;
  color: #111;
}

.mainframe_ .js-accordion .js-accordion_header i.icon {
  position: relative;
  display: block;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  background: #9e0217;
}

.mainframe_ .js-accordion .js-accordion_header i.icon::before,
.mainframe_ .js-accordion .js-accordion_header i.icon::after {
  content: '';
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  inset: 0;
  margin: auto;
  background-color: #fff;
}

.mainframe_ .js-accordion .js-accordion_header i.icon::before {
  transform: rotate(90deg);
}

/* ＋アイコン動作用 */
.mainframe_ .js-accordion .js-accordion_header.opening-accordion i.icon::before {
  background-color: transparent;
}

/* 【SP】
--------------------------------- */

/* アコーディオンの装飾（.js-accordion）（JS連動コンテンツ）
--------------------------------- */
.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 80px;
  padding: 15px 3%;
  cursor: pointer;
}

.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header span {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: left;
  color: #111;
}

.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header i.icon {
  position: relative;
  display: block;
  width: auto;
  height: 70%;
  aspect-ratio: 1;
  background: #9e0217;
}

.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header i.icon::before,
.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header i.icon::after {
  content: '';
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  inset: 0;
  margin: auto;
  background-color: #fff;
}

.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header i.icon::before {
  transform: rotate(90deg);
}

/* ＋アイコン動作用 */
.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header.opening-accordion i.icon::before {
  background-color: transparent;
}

/* 開く時 */
.wrapper_:not(:has(.mainframe_)) .js-accordion .opening-accordion,
.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header.opening-accordion span,
.wrapper_:not(:has(.mainframe_)) .js-accordion .opening-accordion + .js-accordion_content {
  background: #fff9e2;
}

.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_header.opening-accordion span {
  font-weight: bold;
}

/* 中枠 */
.wrapper_:not(:has(.mainframe_)) .js-accordion .js-accordion_content_inner {
  padding: 5px 3% 10px;
}

/* --------------------------------------------------------------------
パラメーターによるクラス付与(.js-change-active-area)
--------------------------------------------------------------------- */

.js-change-active-area p {
  display: none; }

.js-change-active-area p.active-item {
  display: block; }