/* font */
@import url("https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;700;900&family=Noto+Sans+JP:wght@400;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;700;900&family=Noto+Sans+JP:wght@400;700;800;900&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
main {
  min-height: 70svh;
}

/*--------------------------------
	　ページ全体
--------------------------------*/
html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 1vw, 16px);
  color: var(--text-color);
}

body {
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  margin: 0;
  background-size: contain;
  background-color: #ffedf0;
}

a {
  color: var(--link-color);
  font-weight: 800;
}

a:hover {
  opacity: 0.7;
}

img {
  width: 100%;
  height: auto;
}

span {
  display: inline-block;
}

@media screen and (max-width: 600px) {
  body {
    background-size: contain;
  }
}

@media screen and (max-width: 1150px) {
  .footer__inner {
    display: flex;
    flex-direction: column;
    width: 90%;
  }
}

@media screen and (max-width: 769px) {
  .footer__btn-group {
    padding: 4rem;
  }

  .footer__btn-wrap {
    display: flex;
    max-width: 1120px;
    margin: auto;
    gap: 1rem;
    justify-content: space-around;
    flex-direction: column;
  }

  .footer__btn {
    width: 85%;
    text-align: center;
  }

  .footer__gnav {
    border-bottom: 1px solid #000;
  }

  .footer__gnav:first-of-type {
    border-top: 1px solid #000;
  }

  .footer__gnav_ttl {
    margin-bottom: 0;
    padding-right: 1em;
    transition: background 0.5s;
    background: no-repeat center right/2rem
      url("https://www.melonbooks.co.jp/special/common/components/images/icon/add-line.svg");
  }

  [name="footer-menu"]:checked ~ .footer__gnav_ttl {
    background: no-repeat center right/2rem
      url("https://www.melonbooks.co.jp/special/common/components/images/icon/subtract-line.svg");
  }

  .footer__gnav_ttl,
  .footer__gnav-item {
    padding-block: 1.5em;
    margin-inline: 0.5em;
    list-style: none;
  }

  .footer__gnav_accordion {
    display: grid;
    grid-template-rows: 0fr;
    transition: 250ms grid-template-rows ease;
    transition: all 0.5s;
  }

  [name="footer-menu"]:checked ~ .footer__gnav_accordion {
    grid-template-rows: 1fr;
  }

  .footer__gnav-list {
    gap: 0;
    overflow: hidden;
    margin: 0;
  }

  .footer__gnav-item {
    border-top: 1px solid #0000004d;
    padding-right: 1em;
    list-style: none;
  }

  .footer__link {
    width: 90%;
    margin-inline: auto;
  }

  .footer__appli {
    width: 100%;
  }

  .footer__nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-size: 14px;
  }

  .footer__nav-text {
    display: flex;
    gap: 1rem;
    margin-top: 1.1rem;
    flex-direction: column;
    align-items: center;
  }

  .footer__gnav-wrap {
    display: block;
    width: 90%;
    margin: auto;
  }

  .footer__logo {
    margin-left: -1rem;
  }
}

/*--------------------------------
	共通パーツ
--------------------------------*/

.text,
.text--bold,
.text--s,
.text--ll {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  line-height: 24px;
  font-weight: 500;
  margin: auto;
}

.text--bold {
  font-weight: 800;
  line-height: clamp(24px, 1.5vw, 27px);
}

.text--ll {
  font-size: 1.5rem;
  font-weight: 800;
}

.text--s {
  font-size: clamp(0.875rem, 0.87vw, 1rem);
  line-height: clamp(21px, 1.2vw, 24px);
}

.ttl,
.ttl--l,
.ttl--ss,
.ttl--s,
.ttl--s-dec {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  line-height: clamp(30px, 5vw, 40px);
  font-weight: 800;
  margin: auto;
  text-align: center;
  color: #000;
}

.ttl--l {
  font-size: 1.5rem;
  line-height: 36px;
}

.ttl--ss {
  font-size: 1rem;
  line-height: 1rem;
}

.ttl--s {
  font-size: 1.125rem;
  line-height: 21.6px;
  padding-bottom: 2%;
}

.ttl--s-dec {
  line-height: 23px;
  font-size: 1rem;
}

.sab-heasing {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding-block: 0.4rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  padding: 0rem 1rem;
}
.question,
.paypay-use,
.contents--check,
.contents--blue {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  padding-block: 4rem;
}
.contents--check-bg {
  background-image: url(../images/paypay-deco.webp), url(../images/sub-bg.svg);
  background-size: contain, auto;
  object-fit: cover;
  background-repeat: no-repeat, repeat;
  background-position: center;
}
.question {
  width: 100%;
  margin: 0;
  padding-block: 4rem;
  background-color: #ff0033;
}
.paypay-use {
  width: 100%;
  margin: 0;
  padding-block: 4rem;
  background-image: url(../images/bg.svg);
}
.paypay-use .contents {
  max-width: 1300px;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
}
.paypay-use--box {
  border-radius: 1rem;
  width: 100%;
  padding: 1rem 0 1rem;
  background-color: #def6c5;
}
.question-inner {
  margin: 5%;
  border-radius: 1rem;
  padding: 2rem;
  background-color: #fff;
}
.question-inner img {
  width: 3%;
  padding-right: 2%;
}
.question-inner-flex {
  display: flex;
  align-items: flex-start;
}
.question-p {
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.content--blue--box {
  width: 100%;
  margin: auto;
}
.content--blue--inner {
  max-width: 940px;
  padding: 2rem;
  border-radius: 2rem;
  border: solid #ff004d 2px;
  margin: auto;
  background-color: #fff;
}
.content--check--inner {
  text-align: center;
  margin: 2rem;
  border-radius: 2rem;
  width: 100%;
  padding: 2rem;
  background-color: #fff;
  align-items: center;
}
.paypay-coupon--inner {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
  box-sizing: border-box;
  align-items: center;
}
.paypay-use--inner {
  border: solid #ff004d 2px;
  border-radius: 2rem;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
  box-sizing: border-box;
  background-color: #ffffff;
  align-items: center;
}
.content--check--inner--h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 3rem;
  color: #ff0033;
  position: relative;
}

.content--check--inner--h3::after {
  content: "";
  display: block;
  border-bottom: double 4px #ff0033;
  margin: 0 auto 16px;
  padding-top: 1rem;
  line-height: clamp(36px, 1.3vw, 36px);
}

.check--inner--bold {
  font-size: 24px;
  text-align: center;
  font-weight: 800;
  padding: 1rem;
}
.content--check--inner--p {
  line-height: 2rem;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  padding: 1rem;
}
.contents__ttl {
  margin: auto;
  text-align: center;
  padding: 0rem 0rem 2rem;
}
.contents__ttl--h2-yellow {
  display: flex;
  text-align: center;
  padding-bottom: 2rem;
}
.contents--blue .contents__ttl {
  color: #fff;
}
.contents__ttl-h2 {
  margin: auto;
  font-weight: 800;
  align-items: center;
  padding-block: 0.4rem;
  color: #000000;
}
.contents__ttl-p-white {
  margin: auto;
  font-weight: 800;
  align-items: center;
  padding-block: 0.4rem;
  color: #ffffff;
  line-height: 130%;
  font-size: 2rem;
  text-align: center;
}
.contents__ttl-p-red {
  color: #ff0033;
  padding-bottom: 2rem;
}
.contents__ttl-h2-yellow {
  color: #fff700;
  font-size: 2.2rem;
  font-weight: 800;
}

.contents__ttl-h2 {
  width: 100%;
}

.contents__ttl-img {
  width: 8rem;
}

.contents--blue .contents__ttl-img {
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(353deg) brightness(97%) contrast(108%);
}

.contents__attention {
  text-align: center;
}

.attention::before,
.contents__attention::before {
  content: "※";
}

.flex--row {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.box__ttl {
  margin: auto;
  width: 70%;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .contents,
  .contents--check,
  .contents--blue {
    padding-block: 2.5rem;
  }

  .contents--blue {
    width: 100%;
  }

  .contents {
    width: 100%;
  }

  .contents__ttl {
    padding: 0rem 0rem 1rem;
  }

  .flex--row {
    flex-direction: column;
  }

  .box__ttl {
    width: 89%;
  }

  .sab-heasing {
    font-size: 1rem;
    text-align: center;
  }

  .contents__attention {
    padding-block: 1rem;
  }
}

/*--------------------------------
	MV
--------------------------------*/

.mv {
  padding-top: 64px;
  width: 100%;
  display: flex;
  justify-content: center;
  background-size: contain;
}
.mv img {
  max-width: 100%;
}
@media screen and (max-width: 600px) {
  .mv__img {
    width: 100%;
  }
  .mv {
    padding-top: 48px;
  }
}

/*--------------------------------
	トップ
--------------------------------*/
.top__img {
  width: 40%;
}

.top__text {
  text-align: center;
}

@media screen and (max-width: 600px) {
  .top__img {
    width: 95%;
  }
}

/*--------------------------------
	新機能1
--------------------------------*/

.function-pay {
  width: 100%;
  margin: auto;
  padding: 2rem;
  box-sizing: border-box;
  background-color: #ffffff;
  align-items: center;
  background-image: url(../images/bg.svg);
}

.function-pay__box {
  max-width: 950px;
  padding-top: 2rem;
  width: 100%;
}

.function-pay__img {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  width: 30%;
  height: auto;
  border: solid #727272 2px;
}

.red-text {
  font-weight: 800;
  color: #ff0033;
}
.red-text-tt {
  font-weight: 800;
  color: #ff0033;
}
.red-text-step2{
  color: #ff0033;
  font-weight: 400;
}
.red-text-step4{
  color: #FF0033;
}
.point-text {
  padding-top: 1rem;
  font-size: 0.6rem;
  text-align: center;
  color: #000;
}
.point-white {
  width: 100%;
  font-size: 11px;
  text-align: left;
  color: #ffffff;
}
.point-black {
  text-align: left;
  font-size: 11px;
  color: #000000;
}

.function-pay__img2 {
  padding: 1rem 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  width: 75%;
}

.function-pay__a {
  color: #ffe500;
  text-decoration: none;
}

.function-pay-box {
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  gap: 2rem;
}

.function-pay__text {
  padding-bottom: 1rem;
  font-weight: 800;
  font-size: 16px;
  color: #000000;
}

.function-pay__text_2 {
  font-weight: 800;
  font-size: 22px;
  color: #000000;
  text-align: left;
}

.function-pay-box .function-pay__text {
  color: #000;
}

@media screen and (max-width: 600px) {
  .function-pay__img {
    width: 110%;
  }

  .function-pay__text {
    text-align: left;
  }
}

/*--------------------------------
	新機能2
--------------------------------*/

.paypay__img {
  padding: 1rem 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  width: 50%;
  border: solid #000 1px;
}

.paypay__text {
  text-align: center;
  color: #fff;
}

.step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0 2rem;
}

.step__ttl-group {
  width: 100%;
  margin: auto;
  text-align: center;
}

.step__ttl {
  text-align: center;
  background: #ff0033;
  padding: 0.5rem;
  border-radius: 0.3rem;
  width: 80%;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.step__sub-ttl {
  margin: auto;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 3rem;
}

.step__title {
  width: 100%;
  margin: auto;
  text-align: center;
}

.step__title-txt {
  margin: auto;
  background: #ffffff;
  width: 20%;
  border-radius: 0.2rem;
  margin-bottom: 0.5rem;
  padding-block: 0.5rem;
}

.step__img-box {
  width: 80%;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  justify-content: center;
  background-color: #fff;
  padding: 1rem;
  border-radius: 15px;
  border: 2px solid #666666;
}

.step__arrow {
  width: 3%;
}

.step__a {
  color: red;
}

.step__img,
.step3__img {
  width: 60%;
  padding: 1rem 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
}

.step3__img {
  width: 70%;
}

.step__text {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  line-height: 2rem;
}
.step__btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0.5rem 3rem;
  background: #e23c00;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  color: #ffffff;
}

.step__btn::after {
  content: "→";
  font-size: 1rem;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translate(-50%, -50%);
}

@media screen and (max-width: 600px) {
  .paypay__img {
    width: 80%;
  }
  .contents__ttl-img {
    width: 20%;
  }
  .contents__ttl-h2-yellow {
    font-size: 1.8rem;
    font-weight:800;
  }
  .step__title-txt {
    width: 50%;
    margin: auto;
  }

  .step__ttl {
    width: 85%;
  }

  .step__sub-ttl {
    font-size: 1.3rem;
  }

  .step__img-box {
    align-items: center;
    flex-direction: column;
  }

  .step__img,
  .step3__img {
    width: 90%;
  }
}

/*--------------------------------
	プレゼント
--------------------------------*/

.present {
  background-color: #fff955;
}

.present__text {
  text-align: center;
  margin-block: 1rem;
  width: 90%;
}

.present__attention {
  display: flex;
  margin-block: 1rem;
  width: 90%;
}

.buy-box {
  max-width: 70%;
}
.l-container {
  width: 100%;
}
.question-inner-box {
  margin: auto;
  padding: 2rem;
  align-items: center;
}
.question-inner img {
  width: 7%;
}
.question-p {
  padding-bottom: 24px;
}
.step-flex {
  display: flex;
}
/*--------------------------------
	　レスポンシブ
--------------------------------*/

@media screen and (min-width: 600px) {
  .sp {
    display: none;
  }

  .pc {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
  .ttl--s {
    font-size: 1rem;
    padding-bottom: 4%;
  }
  .paypay-use--inner {
    width: 90%;
    padding: 1.5rem;
  }
  .red-text {
    white-space: nowrap;
  }
  .contents__ttl--h2-yellow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0rem 0rem 2rem;
  }
  .question-inner-flex {
    display: flex;
    align-items: flex-start;
  }
  .question-inner img {
    width: 12%;
  }
  .step__ttl {
    text-align: center;
    background: #ff0033;
    padding: 0.5rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    color: #fff;
  }
  .step-box {
    margin: 20px;
  }
  .point-white {
    font-size: 11px;
  }
  .question-inner-box {
    margin: auto;
    padding: 0rem;
    align-items: center;
  }
  .question-p {
    text-align: left;
    padding-bottom: 24px;
  }
  .function-pay__text {
    text-align: center;
  }
  .function-pay__text_2 {
    font-weight: bold;
    font-size: 20px;
    color: #000000;
    text-align: center;
  }
  .contents--check-bg {
    background-image: none, url(../images/sub-bg.svg);
  }
}
/* --- レイアウト全体 --- */
.c_accordion_section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
      gap: 1rem;
}

/* 幅をSTEP3(80%)に統一 */
.step__ttl-group,
.c_accordion {
  width: 90%;
  max-width: 1000px;
}

.step_sub_title {
  margin: 20px 0;
  font-weight: bold;
  font-size: 1.2rem;
}

/* --- 白いバーのボタン --- */
.c_accordion_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #fff; /* 背景白 */
  color: #000;            /* 文字黒 */
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  padding-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 右端の黒い四角アイコン */
.plus_box {
  position: absolute;
  right: 15px;
  width: 22px;
  height: 22px;
  background: #000;
  border-radius: 4px;
}

.plus_box::before,
.plus_box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: 0.3s;
}

.plus_box::before {
  transform: translate(-50%, -50%) rotate(90deg); /* 縦棒 */
}

/* 開いた時にマイナスにする */
.c_accordion input:checked + .c_accordion_btn .plus_box::before {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* --- アコーディオンの開閉 --- */
.c_accordion input { display: none; }
.c_accordion_content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s;
}
.c_accordion input:checked ~ .c_accordion_content {
  grid-template-rows: 1fr;
}
.c_accordion_inner { overflow: hidden; }

/* --- 3列レイアウトと矢印 --- */
.step-flex {
  display: flex;
  align-items: center; /* 矢印を中央に */
  justify-content: space-between;
  padding: 30px 0;
}

.step-item {
  flex: 1;
  text-align: center;
}

.step__text_s {
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 15px;
  min-height: 4.5em; /* テキストの高さを揃える */
}

.step__img-frame {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
}

.step__arrow {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 50px; 
}

/* スマホ対応 */
@media screen and (max-width: 769px) {
  .step-flex {
    flex-direction: column;
  }
  .step__arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  .step__text_s {
    min-height: auto;
  }
}
.step-flex {
  display: flex;
  justify-content: center;
      align-items: center;
  padding: 2rem 10px;
  width: 100%;
  box-sizing: border-box;
  gap: 15px;
}

.step-item {
  flex: 0 1 220px;
  text-align: center;
}

.step__img-frame {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  max-width: 500px;
}
.large-img-frame {
  width: 100%;
  min-width: 470px;
}
@media screen and (max-width: 769px) {
.large-img-frame {
min-width: 200px;
}
}

.box-01{
  aspect-ratio: 2 / 2;
}

.step__arrow-unit {
  flex: 0 0 30px;
  display: flex;
  justify-content: center;
}


.step-flex {
  align-items: center !important; 
}

.step__arrow-unit {
  flex: 0 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.arrow-icon {
  position: relative;
  width: 30px;
  height: 4px;
  background: #000;
  display: block;
}

.arrow-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #000;
}
/* アコーディオン・ステップ全体のレイアウト */
.c_accordion_section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.step__ttl, .c_accordion, .c_accordion2 {
  width: 90%;
  max-width: 1000px;
}

/* チェックボックスを完全に隠す */
.c_accordion input[type="checkbox"], 
.c_accordion2 input[type="checkbox"] {
  display: none !important;
}

/* アコーディオンの開閉挙動 */
.c_accordion_content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-out;
  overflow: hidden;
}

.c_accordion input:checked ~ .c_accordion_content {
  grid-template-rows: 1fr;
}

/* ボタンとアイコン */
.c_accordion_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
}

.plus_box {
  position: absolute;
  right: 15px;
  width: 22px;
  height: 22px;
  background: #000;
  border-radius: 4px;
}

.plus_box::before, .plus_box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.plus_box::before {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: 0.3s;
}

.c_accordion input:checked + .c_accordion_btn .plus_box::before {
  opacity: 0;
}

/* --- 内部パーツの配置（PC版） --- */
.step-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 10px;
  gap: 15px;
}

.step-flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 30px;
}

.step-item {
  flex: 0 1 220px;
  text-align: center;
}

.step-item.is-full {
  flex: none;
  width: 100%;
  max-width: 500px;
}

.step__text_s {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 4.5em; /* PCで画像を横に並べるための高さ確保 */
  display: flex;
  align-items: center;
  justify-content: center;
}



/* 矢印のデザイン */
.step__arrow-unit {
  flex: 0 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px; /* PC横並び時の位置 */
}

/* 縦並び・下向き指定の矢印 */
.step__arrow-unit.is-down,
.step-flex-column .step__arrow-unit {
  margin-top: 0;
  padding: 15px 0;
  transform: rotate(90deg);
}

.arrow-icon {
  position: relative;
  width: 25px;
  height: 4px;
  background: #000;
  display: block;
}

.arrow-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #000;
}
.qa-btn{
  color: #fff;
    border: 2px solid #ffffff;
    border-radius: 0;
    padding: 1rem;
    text-decoration: none;
    border-radius: 999px;
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    max-width: 300px;
    position: relative;
    min-width: 250px;
}

.qa-btn::after  {
  content: "▶";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translate(-50%, -50%);
}

/* --- スマホ対応（769px以下） --- */
@media screen and (max-width: 769px) {
  .c_accordion, .c_accordion2 {
    width: 90%;
  }
  .qa-btn{
  color: #fff;
    border: 2px solid #ffffff;
    border-radius: 0;
    padding: 1rem;
    text-decoration: none;
    border-radius: 999px;
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
    max-width: 300px;
    position: relative;
}

.qa-btn::after  {
  content: "▶";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translate(-50%, -50%);
}

  .step-flex, .step-flex-column {
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px 0;
  }

  .step-item {
    flex: none !important;
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto !important;
  }

  .step__text_s {
    min-height: auto !important;
    margin-bottom: 10px;
  }

  .step__arrow-unit {
    transform: rotate(90deg) !important;
    margin: 15px auto !important;
    flex: none !important;
  }

  .step__img-frame {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
}

@media screen and (max-width: 769px) {
  .step__arrow-unit {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  .step-flex {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .step-item {
    width: 100%;
    max-width: 250px;
  }
  .step__arrow-unit {
    flex: none;
    transform: rotate(90deg);
    padding: 10px 0;
  }
  /* すべてのアコーディオンのチェックボックスを非表示 */
.c_accordion input[type="checkbox"] {
  display: none !important;
}

/* 開閉アニメーションの基本設定 */
.c_accordion_content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
  overflow: hidden;
}

/* チェックが入った時だけ中身を表示 */
.c_accordion input:checked ~ .c_accordion_content {
  grid-template-rows: 1fr;
}

/* プラスアイコンをマイナスにする挙動 */
.c_accordion input:checked + .c_accordion_btn .plus_box::before {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}
}
