/* お悩み */
.worries-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5.2rem;
  align-items: center;
}

.worries-inner .worries-box {
  background-color: #F4F4F4;
  width: calc(25% - 5.2rem); /* 4列用 */
  max-width: 250px;
  padding: 2.4rem 0;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

.worries-box .worries-icon {
  width: 40px;
  margin: 0 auto 1.6rem;
}

/* 矢印 */
.icon-box {
    max-width: 50px;
    width: 100%;
    margin: 8rem auto;
}

/* 解決 */
.ranobe-pop h3 .font {
    font-family: "Noto Sans JP", sans-serif;
}
.solution-wrapper .ranobe-pop h3 {
    position: relative;
    display: inline-block; /* 装飾を文字にフィットさせる */
    padding: 0 1.5rem; /* テキストと装飾の間隔調整 */
}
.solution-wrapper .ranobe-pop h3::before,
.solution-wrapper .ranobe-pop h3::after {
    content: "";
    position: absolute;
    bottom: 22px;
    width: 40px;   /* 装飾の長さ（調整可） */
    height: 6px;   /* 太さ4px */
    background: #6285FC;
    border-radius: 4px; /* 丸みを持たせる */
}
.solution-wrapper .ranobe-pop h3::before {
    left: 16px;
    transform: translate(-120%, -50%) rotate(60deg);
}
.solution-wrapper .ranobe-pop h3::after {
    right: 16px;
    transform: translate(120%, -50%) rotate(-60deg);
}

/* 解決 */
.solution-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  background-color: #f8faff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 8rem;
}

.solution-text-box {
  flex: 1;
  text-align: left;
  padding: 12rem 4rem 8rem 8rem;
}

.solution-text-box h4 {
  font-size: 3rem;
  color: #2253E6;
  font-weight: 700;
  margin-bottom: 2.4rem;
}

.solution-img {
  flex: 1;
}
.solution-img img {
    aspect-ratio: 16/9;
     height: 100%;
     object-fit: cover;
}

/* 左上ラベルSOLUTION */
.solution-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto;
    background-color: #6285FC;
    width: fit-content;
    color: #ffffff;
    padding: 1.6rem 6.4rem;
    border-radius: 20px 0 20px 0;
    position: absolute;
}
.solution-number .step {
    font-size: 2rem;
    border-bottom: 1px solid #ffffff;
}
.solution-number .step-number {
    font-size: 3.2rem;
    line-height: 0;
}


/* おすすめ機種 */
section.stared-devices {
  width: 90%;
}
.tab-container.sp-only {
  display: none;
}
.tab-container {
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  border: 5px solid #6285FC;
}

/* 左側のタブリスト */
.tab-menu {
  max-width: 400px;
  width: 100%;
  background: #F8FBFF;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  border-radius: 15px 0 0 15px;
}

.tab-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-radius: 0;
  color: #636363;
}

.tab-menu button.active {
  background: #6285FC;
  color: #fff;
  font-weight: bold;
  overflow: hidden;
}
.tab-menu button:first-child.active {
    border-radius: 10px 0 0 0;
}
.tab-menu button:last-child.active {
    border-radius: 0 0 0 10px;
}
.tab-menu button img.tab-arrow {
  width: 20px;
  height: 20px;
}
.tab-menu button:hover {
    opacity: 0.7;
}
.tab-menu button.active:hover {
    opacity: 1;
}

/* 右側のタブ内容領域 */
.tab-contents {
  flex: 1;
}
.tab-contents-wrapper.pc-only {
    margin: 0 auto;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  padding: 26px 0;
}
.tab-content h3 {
    font-size: 2rem;
    color: #2253E6;
}
.tab-device-wrapper {
    display: flex;/* ---------- 組み合わせの時は横並びに ---------- */
    justify-content: center;
    align-items: center;
    gap: 2.4rem;
    margin: 3.2rem auto -0.8rem;
}
.tab-device-wrapper .icon-box {
    max-width: 25px;
    margin: 0;
}
.tab-device-box {
    max-width: 160px;
    width: 100%;
    min-height: 137px;
    padding: 1.6rem 2rem;
    border-radius: 10px;
}
.tab-device-box p {
    font-size: 1.6rem;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 8px;
}
.tab-device-box .device-box-img img {
    max-height: 100px;
    height: 100%;
    margin: 0 auto;
}
/* 金額 */
.device-price-wrapper {
    display: inline-block;
    position: relative;
    font-weight: 700;
}

/* 文字の後ろに線（背景色）を引く */
.device-price-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2.5em; /* 文字の下に敷く */
    width: 100%;
    height: 15px; /* 線の太さを調整 */
    background-color: #e0e6ff; /* 好きな色に変更 */
    z-index: 0;
}

/* 文字を前面に出す */
.device-price-wrapper > span {
    position: relative;
    z-index: 1;
}

.device-price-wrapper .price {
    font-weight: 700;
    font-size: 6.5rem;
    padding: 0 0.8rem;
}
.device-price-wrapper .yen {
    font-size: 4rem;
}
.device-price-wrapper .slash, 
.device-price-wrapper .week {
    font-size: 2.5rem;
}

.tab-content .contact-button {
  margin-top: 2.4rem;
}

/* よくある質問 */
.faq-section {
    max-width: 1000px;
    width: 100%;
    text-align: left;
    margin: 0 auto;
    border: 5px solid #6285FC;
    border-radius: 20px;
}
.faq-section:first-child {
    margin: 0 auto;
}
.answer-text {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.faq-mark {
    flex-shrink: 0;
    color: #6285FC;
    margin-right: 2.4rem;
    font-weight: 700;
}
.answer-text .faq-mark {
    color: #FF7979;
}
.faq-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.faq-item {
    border-bottom: 1px solid #6285FC;
}
.faq-item:last-of-type {
    border-bottom: none;
}
.faq-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}
.faq-category-title {
    font-weight: bold;
    margin-bottom: 2.4rem;
  }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    background: #ffffff;
    border: none;
    padding: 2.4rem;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
    border-radius: 20px;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    font-size: 30px;
    color: #6285FC;
}

.faq-item.active .faq-question::after {
    content: '−';
    color: #6285FC;
    font-size: 30px
}
.faq-text {
  font-weight: 700;
}
.faq-answer {
    height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.5s ease;
    padding-left: 2.4rem;
    padding-right: 6.4rem;
}
.faq-item:last-child .faq-answer {
  border-radius: 0 0 20px 20px; /* 下だけ角丸 */
}



/* お悩み */
/* --- タブレット（2列） --- */
@media screen and (max-width: 1024px) {
  .worries-inner {
    gap: 2.4rem;
  }
  .worries-inner .worries-box {
    width: calc(40% - 2.4rem);
    max-width: none;
  }
  .worries-box .worries-icon {
    width: 30px;
    margin: 0 auto 0.8rem;
}
}

/* --- スマホ（1列） --- */
@media screen and (max-width: 599px) {
  .worries-inner {
    gap: 4rem;
  }
  .worries-inner .worries-box {
    width: 90%;
  }
}

/* 解決 */
@media screen and (max-width: 1120px) {
.solution-inner {
    width: 90%;
}
.solution-text-box {
    padding: 10rem 4rem ;
}
.solution-number {
    padding: 1.6rem 4rem;
}
.solution-text-box h4 {
    font-size: 2.5rem;
}
}
@media screen and (max-width: 768px) {
.solution-inner {
    margin: 0 auto 4rem;
}
.solution-text-box {
    padding: 6.4rem 2.4rem 3.2rem;
}
.solution-text-box h4 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}
.icon-box {
    max-width: 30px;
    margin: 4rem auto;
}
.solution-wrapper .ranobe-pop h3 {
    font-size: 1.8rem;
}
.solution-wrapper .ranobe-pop h3::before,
.solution-wrapper .ranobe-pop h3::after {
    bottom: 14px;
    width: 30px;   /* 装飾の長さ（調整可） */
    height: 4px;   /* 太さ4px */
}
/* SOLUTIONラベル */
.solution-number {
    padding: 1.2rem 2.4rem;
}
.solution-number .step {
    font-size: 1.4rem;
}
.solution-number .step-number {
    font-size: 2.5rem;
    margin-bottom: 0.1em;
}
}
@media screen and (max-width: 700px) {
.solution-inner {
    display: block;
}
.solution-img img {
    height: auto;
}
}

/* ---------- お悩みタブレット（アコーディオン） ---------- */
@media (max-width: 1000px) {
.tab-container.sp-only {
    display: block;
    overflow: hidden;
    width: 95%;
}
.pc-only {
    display: none;
}
.tab-content h3 {
    color: #6285fc;
}
.tab-content.active {
  padding: 0;
}
.tab-container {
    flex-direction: column;
    box-shadow: none;
  }

  .tab-menu {
    display: none; /* 左メニューは非表示 */
  }

  .tab-contents {
    padding: 0;
    overflow: hidden;
  }
  .tab-item {
    border-bottom: 1px solid #ffffff;
  }

.tab-item:last-child {
  border: none;
}
.tab-container.sp-only .tab-item:first-child .tab-toggle {
    border-radius: 15px 15px 0 0; /* 左上・右上 */
}

/* 最後のタブで、閉じているときだけ角丸 */
.tab-container.sp-only .tab-item:last-child .tab-toggle:not(.active) {
    border-radius: 0 0 15px 15px;
}

/* 開いた時は角丸なし */
.tab-container.sp-only .tab-item:last-child .tab-toggle.active {
    border-radius: 0;
}
/* ＋マーク */
.tab-toggle::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* アクティブ時（−マーク） */
.tab-toggle.active::after {
  content: '−';
  color: #ffffff;
}

.tab-container.sp-only .tab-toggle {
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    font-size: 20px;
    border: none;
    background: #6285FC;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

.tab-container.sp-only .tab-body {
    padding-right: 16px;
    padding-left: 16px;
    display: none;
    transition: height 0.4s ease, padding 0.4s ease;
    box-sizing: border-box;
  }
.tab-container.sp-only .tab-body h3 {
    color: #2253E6;
}
.tab-container.sp-only .tab-body.active {
    display: block;
  }
.tab-container.sp-only .tab-item .tab-arrow {
  width: 15px;
}
.tab-container.sp-only .tab-item .tab-body a {
  display: block;
}
.device-price-wrapper::after {
    bottom: 2em;
}
.tab-container.sp-only .tab-item .tab-body a {
  margin: 1.6rem auto 0;
}
}
/* ---------- おすすめSP（アコーディオン） ---------- */
@media (max-width: 768px) {
.tab-container.sp-only .tab-toggle {
    font-size: 1.6rem;
    padding: 1.6rem;
}
.tab-toggle::after {
    font-size: 2rem;
}
}
@media (max-width: 550px) {
.tab-container.sp-only .tab-body h3 {
  font-size: 1.4rem;
}
.tab-container.sp-only .tab-body {
    padding: 0 8px;
}
.tab-device-wrapper {
    gap: 1rem;
    margin: 4rem auto 0;
}
.tab-device-box {
  max-width: 110px;
  padding: 1.6rem;
  min-height: fit-content;
  position: relative;
}
.tab-device-box .device-box-img img {
    max-height: 60px;
}
.tab-device-box p {
    font-size: 1.2rem;
    font-weight: 600;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
}
.tab-device-wrapper .icon-box {
    max-width: 20px;
}

.device-price-wrapper .price {
    font-size: 4rem;
}
.device-price-wrapper .yen, .device-price-wrapper .slash {
    font-size: 3rem;
}
.device-price-wrapper .week {
    font-size: 2rem;
}
.device-price-wrapper::after {
    bottom: 1em;
    height: 10px;
}
.tab-container.sp-only .tab-item .tab-body a {
  margin: 2.4rem auto 0;
}
}

/* よくある質問 */
@media (max-width: 1120px) {
.faq-section {
    width: 90%;
}
}
@media screen and (max-width: 768px) {
.faq-section {
    width: 90%;
    margin: 4rem auto;
}
.faq-question {
    padding: 1.6rem;
    padding-right: 4rem;
    align-items: start;
}
.faq-answer {
    padding-left: 1.6rem;
    padding-right: 5rem;
}
.faq-mark {
    font-size: 1.6rem;
    margin-right: 1rem;
    margin-top: 0.2em;
}
.faq-text {
    font-size: 1.6rem;
    color: #000000;
}
.faq-item.active .faq-question::after {
    font-size: 2rem;
    right: 1.6rem;
}
.faq-question::after {
    font-size: 2rem;
    right: 1.6rem;
}
.faq-category-title {
    font-size: 2rem;
}
}