.cs-faq-comp {
  --faq-navy: #062b63;
  --faq-teal: #0795a8;
  --faq-line: #55b9c8;
  position: relative;
  overflow: hidden;
  padding: 82px 24px 92px;
  color: var(--faq-navy);
  background-color: #fbfaf6;
  background-image:
    radial-gradient(circle at -2% 3%, rgba(138, 222, 231, .36), transparent 17%),
    radial-gradient(circle at 101% 100%, rgba(132, 218, 229, .35), transparent 17%),
    url('/assets/generated/cram-school-service-content-20260831/paper-v1.webp');
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 720px auto;
}

.cs-faq-comp::before,
.cs-faq-comp::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  pointer-events: none;
  opacity: .3;
  background-image: radial-gradient(circle, rgba(23, 164, 181, .24) 1.4px, transparent 1.6px);
  background-size: 12px 12px;
  mask-image: radial-gradient(circle, #000 0 35%, transparent 72%);
}

.cs-faq-comp::before { top: -64px; left: -62px; }
.cs-faq-comp::after { right: -62px; bottom: -66px; }

.cs-faq-comp__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  margin-inline: auto;
}

.cs-faq-comp h2 {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--faq-navy);
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(36px, 3.2vw, 52px);
  font-weight: 800;
  line-height: 1.44;
  letter-spacing: .035em;
  text-align: center;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: balance;
}

.cs-faq-comp__heading-line {
  display: block;
  width: 142px;
  height: 6px;
  margin: 25px auto 40px;
  background: var(--faq-teal);
}

.cs-faq-comp__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.cs-faq-comp__card {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  padding: 30px 30px 26px;
  border: 1px solid rgba(61, 179, 196, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 12px rgba(7, 38, 70, .16);
}

.cs-faq-comp__question {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 0 0 22px;
  border-bottom: 2px solid var(--faq-line);
}

.cs-faq-comp__mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #10a9b8 0%, #00798e 78%);
  font-family: Georgia, serif;
  font-size: 39px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset -5px -5px 10px rgba(0, 65, 84, .18);
}

.cs-faq-comp h3 {
  margin: 0;
  color: var(--faq-navy);
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .025em;
  line-break: strict;
  word-break: keep-all;
  text-wrap: balance;
}

.cs-faq-comp__answer {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 15px;
  padding-top: 20px;
}

.cs-faq-comp__answer-mark {
  color: #058aa0;
  font-family: Georgia, serif;
  font-size: 45px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.cs-faq-comp__answer p {
  position: relative;
  z-index: 2;
  max-width: 475px;
  margin: 0;
  color: #0c2d60;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.88;
  letter-spacing: .015em;
  line-break: strict;
  word-break: keep-all;
  text-wrap: pretty;
}

.marketing-page .cs-faq-comp h3,
.marketing-page .cs-faq-comp__answer p {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.cs-faq-comp__icon {
  position: absolute;
  z-index: 1;
  right: -5px;
  bottom: 12px;
  width: 150px;
  height: 120px;
  fill: none;
  stroke: #afd9e0;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .48;
}

.cs-faq-comp__icon circle,
.cs-faq-comp__icon rect { vector-effect: non-scaling-stroke; }
.cs-faq-comp__icon--sheet { right: 2px; bottom: 13px; width: 122px; height: 148px; transform: rotate(9deg); }
.cs-faq-comp__icon--speech { right: 8px; bottom: 72px; width: 135px; height: 95px; }
.cs-faq-comp__icon--page { right: -2px; bottom: 12px; width: 142px; height: 112px; transform: rotate(5deg); }

@media (max-width: 980px) {
  .cs-faq-comp__answer p { padding-right: 54px; }
}

@media (max-width: 860px) and (min-width: 721px) {
  .cs-faq-comp__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cs-faq-comp {
    padding: 56px 18px 68px;
    background-size: auto, auto, 520px auto;
  }
  .cs-faq-comp::before,
  .cs-faq-comp::after { width: 160px; height: 160px; }
  .cs-faq-comp h2 {
    font-size: clamp(27px, 7.4vw, 32px);
    line-height: 1.55;
    letter-spacing: .025em;
  }
  .cs-faq-comp__heading-line {
    width: 112px;
    height: 5px;
    margin: 20px auto 28px;
  }
  .cs-faq-comp__grid { grid-template-columns: 1fr; gap: 14px; }
  .cs-faq-comp__card {
    min-height: 0;
    padding: 24px 20px 24px;
    border-color: rgba(11, 108, 130, .16);
    border-radius: 14px;
    box-shadow: 0 5px 12px rgba(7, 38, 70, .17);
  }
  .cs-faq-comp__question {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    min-height: 92px;
    padding: 0 70px 20px 0;
  }
  .cs-faq-comp__mark { width: 50px; height: 50px; font-size: 31px; }
  .cs-faq-comp h3 { font-size: 20px; line-height: 1.55; letter-spacing: .015em; }
  .cs-faq-comp__answer { grid-template-columns: 45px minmax(0, 1fr); gap: 8px; padding-top: 18px; }
  .cs-faq-comp__answer-mark { font-size: 40px; }
  .cs-faq-comp__answer p { padding-right: 0; font-size: 16px; line-height: 1.9; font-weight: 500; }
  .cs-faq-comp__icon { right: 8px; top: 31px; bottom: auto; width: 84px; height: 72px; opacity: .55; }
  .cs-faq-comp__icon--sheet { right: 12px; top: 32px; width: 72px; height: 88px; }
  .cs-faq-comp__icon--speech { right: 10px; top: 39px; width: 82px; height: 60px; }
  .cs-faq-comp__icon--page { right: 8px; top: 37px; width: 84px; height: 66px; }
}

@media (max-width: 400px) {
  .cs-faq-comp { padding-inline: 14px; }
  .cs-faq-comp h2 { font-size: 27px; }
  .cs-faq-comp__card { padding-inline: 16px; }
  .cs-faq-comp__question { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding-right: 58px; }
  .cs-faq-comp__mark { width: 46px; height: 46px; font-size: 29px; }
  .cs-faq-comp h3 { font-size: 18px; }
  .cs-faq-comp__answer { grid-template-columns: 38px minmax(0, 1fr); gap: 7px; }
  .cs-faq-comp__answer-mark { font-size: 36px; }
  .cs-faq-comp__answer p { font-size: 15px; }
}
