/* ==========================================================================
   Worries (こんなお悩みありませんか？)
   ========================================================================== */
.worries {
  padding: 32px 0;
  background-color: var(--color-base);
}

.worries__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.worries__title em {
  font-style: normal;
  color: var(--color-blue-text);
}

.worries__deco {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* SP版: 右側のL字装飾はdeco-right.svg(元は「┌」向き)を180度回転させ、
   Figma通り「┘」(縦線が右側・横線が下側)向きにする。左側は無回転のまま。
   位置調整用にposition:relative + topで現在位置から少し下へずらす。 */
.worries__deco--right {
  position: relative;
  top: 9px;
  transform: rotate(180deg);
}

.worries__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.worries__card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  border: 2px solid var(--color-main);
  border-radius: 8px;
  background-color: var(--color-base);
}

.worries__card-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.worries__card-text {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
}

.worries__cta {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.worries__cta-btn {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--color-accent);
  font-weight: 900; /* 共通クラス.c-cta-btnのfont-weight:700をここで意図的に上書き */
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
}

/* SP版: 濃いオレンジの背面装飾はボタン(.worries__cta-btn)の「中」ではなく、
   親(.worries__cta)の直下にボタンと兄弟(sibling)として配置している。
   z-index:-1に依存せず、両方を明示的な正のz-indexで管理することで、
   祖先のスタッキングコンテキストの解釈に依存しない、確実な前後関係にする。
   ・.worries__cta            : position:relative(基準)
   ・.worries__cta-btn-deco   : z-index:1(背面)
   ・.worries__cta-btn        : z-index:2(前面) */
.worries__cta-btn-deco {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 100%;
  height: 100%;
  background-color: var(--color-accent-dark);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 768px) {
  .worries {
    padding: 76px 0;
  }

  /* セクションタイトル: Figma上、テキスト自体の幅は装飾で制限されておらず
     自然な2行幅(min-content)。装飾はその外側(テキスト幅+約9pxの隙間)に
     独立して配置され、左は上端、右は33px下がった位置に来る
     コーナーブラケットになっている。テキスト幅を狭めないよう、
     コンテナはテキストにフィットさせ、装飾はコンテナの外側(負のoffset)に置く。 */
  .worries__title {
    position: relative;
    display: table;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    font-size: 3.2rem;
  }

  .worries__title span {
    display: block;
  }

  .worries__deco {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
  }

  .worries__deco--left {
    left: -59px;
  }

  .worries__deco--right {
    right: -59px;
    top: 33px;
    transform: rotate(180deg);
  }

  .worries__cards {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 29px;
    margin-top: 48px;
  }

  .worries__card {
    width: 390px;
    max-width: 100%;
    flex-shrink: 0;
    flex-direction: column;
    padding: 26px 20px;
    border-width: 4px;
    gap: 3px;
  }

  .worries__card-icon {
    width: 70px;
    height: 70px;
  }

  .worries__card-text {
    margin-top: 10px;
    font-size: 2rem;
    text-align: center;
  }

  .worries__cta {
    margin-top: 48px;
  }

  .worries__cta-btn {
    width: auto;
    padding: 18px 32px;
    font-size: 2.4rem;
    white-space: nowrap;
    /* z-index/position:absoluteの::beforeに依存せず、box-shadowで
       背面の濃いオレンジの「影」を直接描画する(スタッキングコンテキストの
       影響を受けないため、環境差が出にくい)。 */
    box-shadow: 8px 9px 0 0 var(--color-accent-dark);
  }

  .worries__cta-btn-deco {
    /* PC版はbox-shadowで代替するため非表示(SP版のみ表示) */
    display: none;
  }
}

