/* ====================================================
   横浜校 学校紹介ページ専用スタイル
==================================================== */

/* ========== BG3 背景ラッパー ========== */
.si-yoko__bg3 {
  background-image: var(--bg-pc);
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
}
.si-yoko {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  font-family: 'Noto Sans JP', sans-serif;
  margin-left: calc(50% - 50vw);
  text-align: left;
}
.si-yoko-dotbg {
  background-color: #fdf0f3;
  background-image: radial-gradient(circle, #f4b8c8 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ========== HERO ========== */
.si-yoko__hero { line-height: 0; }
.si-yoko__hero-img {
    padding: 30px 30px 5px 30px;
    width: 100%;
    height: auto;
    display: block;
     box-sizing: border-box;
}
.si-yoko__hero-text {
    padding: 0 30px 0 30px;
}
.si-yoko__hero-text-note {
    padding: 0 30px 5px 30px;
    font-size: 12px;
}

/* ========== Q セクション共通ヘッダー ========== */
.si-yoko__qheader {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #c85ec5 0%, #7c6cc8 60%, #5a60bb 100%);
  border-radius: 50px;
  padding: 10px 22px;
  margin-bottom: 36px;
}
.si-yoko__qheader-text,
.si-yoko .si-yoko__q1 h2.si-yoko__qheader-text,
.si-yoko .si-yoko__q2 h2.si-yoko__qheader-text {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  background-color: transparent;
  margin: 0;
  padding: 0 0 0 50px;
  text-align: center;
  box-sizing: content-box;
}
.si-yoko .si-yoko__q1 h2.si-yoko__qheader-text,
.si-yoko .si-yoko__q2 h2.si-yoko__qheader-text {
  margin-top: -5px;
}

/* ========== Q1 ========== */
.si-yoko__q1 {
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}
.si-yoko__q1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  width: 100%;
  height: 100%;
  background-image: var(--bg-pc);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: left top;
  z-index: 0;
}
.si-yoko__q1-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.si-yoko__top5-head {text-align: center; margin-bottom: 40px; }
.si-yoko__top5-head-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
}
.si-yoko__rank-divider {
  border: none;
  border-top: 1px solid #f09cb5;
  margin: 16px 0 0;
}
.si-yoko__rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.si-yoko__rank-grid > :nth-child(5) {
  grid-column: 1 / 3;
  max-width: 420px;
  margin: 0 auto;
}
.si-yoko__rank-card {
  padding: 0 20px 24px;
  text-align: center;
}
.si-yoko__rank-card-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0;
  margin-top: -5px;
}
.si-yoko__rank-title {
  font-size: 22px;
  font-weight: 700;
  color: #3743B5;
  margin-bottom: 10px;
  margin-top: 15px;
}
.si-yoko__rank-text {
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
  margin-bottom: 18px;
}
.si-yoko__rank-btn {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
}
.si-yoko__rank-btn:hover { opacity: 0.82; }
.si-yoko__rank-btn-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ========== Q2 ========== */
.si-yoko__q2 {
  padding: 56px 40px;
  background-image: var(--bg-pc);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
}
.si-yoko__q2-intro-img {
  padding-top: 50px;
}
.si-yoko__q2-inner { max-width: 900px; margin: 0 auto; }
.si-yoko__q2-intro { text-align: center; margin-bottom: 32px; }
.si-yoko__q2-intro-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.si-yoko__voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.si-yoko__voice-card { position: relative; }
.si-yoko__voice-bubble-wrap {
  position: relative;
  width: 80%;
  margin: 0 auto;
}
.si-yoko__voice-bubble-bg {
    width: 100%;
    height: auto;
    display: block;
}
.si-yoko__voice-bubble-text {
  width: 90%;
  position: absolute;
  top: -10%;
  left: 6%;
  right: 35%;
  bottom: 28%;
  font-size: 13px;
  line-height: 1.75;
  color: #444;
  font-weight: 500;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ========== DATA ========== */
.si-yoko__data { padding: 60px 40px; }
.si-yoko__data-inner { max-width: 900px; margin: 0 auto; }
.si-yoko__data-heading { text-align: center; margin-bottom: 48px; }
.si-yoko__data-heading-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.si-yoko__charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.si-yoko__chart-label {
  display: block;
  position: relative;
  width: 90%;
  margin: 0 auto 16px;
  background: #fff;
  color: #3743B5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  padding: 8px 14px;
  border-radius: 20px;
  box-sizing: border-box;
  text-align: center;
}
.si-yoko__chart-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}
.si-yoko__chart-img { width: 100%; display: block; }
.si-yoko__chart-desc {
  margin-top: 15px;
  line-height: 1.4;
  font-size: 12px;
}
.si-yoko__chart-main { max-width: 380px; margin: 0 auto 16px; }
.si-yoko__data-note {
    font-size: 12px;
    margin-top: 10px;
}

/* ========== 入学前は知らなかった ========== */
.si-yoko__unknown { padding: 60px 40px; }
.si-yoko__unknown-inner { max-width: 700px; margin: 0 auto; }
.si-yoko__unknown-title {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  background: #fff;
  color: #3743B5;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 35px;
  border-radius: 30px;
  text-align: center;
}
.si-yoko__unknown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.si-yoko__unknown-grid > :nth-child(3) {
  grid-column: 1 / 3;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.si-yoko__unknown-card-wrap {
  position: relative;
  width: 100%;
}
.si-yoko__unknown-card-bg {
  width: 100%;
  height: auto;
  display: block;
}
.si-yoko__unknown-card-text {
  position: absolute;
  top: 0%;
  left: 20%;
  right: 10%;
  bottom: 30%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  color: #444;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ========== SATISFACTION ========== */
.si-yoko__satis {
  padding: 30px 40px 60px 40px;
  background-image: var(--bg-pc);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
}
.si-yoko__satis-inner { max-width: 900px; margin: 0 auto; }
.si-yoko__satis-heading-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}
.si-yoko__satis-desc {
  font-size: 14px;
  line-height: 1.9;
  color: #fff;
  text-align: center;
  margin-bottom: 36px;
}
.si-yoko__satis-voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.si-yoko__satis-voice {
  width: 100%;
}
.si-yoko__satis-bubble-wrap {
  position: relative;
  width: 100%;
}
.si-yoko__satis-bubble-bg {
  width: 85%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.si-yoko__satis-bubble-text_1 {
  position: absolute;
  top: 0%;
  left: 15%;
  right: 20%;
  bottom: 35%;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  font-weight: 500;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.si-yoko__satis-bubble-text_2 {
  position: absolute;
  top: 0%;
  left: 15%;
  right: 20%;
  bottom: 20%;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  font-weight: 500;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ========== CTA ========== */
.si-yoko__cta { padding: 60px 40px; text-align: center; }
.si-yoko__cta-inner { max-width: 700px; margin: 0 auto; }
.si-yoko__cta-bubble-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}
.si-yoko__cta-title {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  font-size: 50px;
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  padding: 0 40px;
  text-align: center;
}
.si-yoko__cta-illust { max-width: 420px; width: 100%; display: block; margin: 0 auto 24px; }
.si-yoko__cta-text {
  width: 95%;
  font-size: 14px;
  line-height: 1.9;
  color: #3743B5;
  font-weight: 500;
  margin: 0 auto;
  text-align: left;
}
.si-yoko__cta-btns { display: flex; justify-content: center; gap: 20px; }
.si-yoko__cta-btn {
  display: inline-block;
  background: #f9c0d0;
  color: #444;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 36px 10px;
  border-radius: 50px;
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.2s;
}
.si-yoko__cta-btn:hover { opacity: 0.82; color: #444; }
.si-yoko__cta-btn small { display: block; font-size: 12px; font-weight: 400; }

/* ========== PC ========== */
@media screen and (min-width: 769px) {
  .si-yoko__hero {
    width: 50%;
    margin: 0 auto;
    line-height: normal;
  }
  .si-yoko__q1 { width: 60%; margin: 0 auto; padding-bottom: 180px; }
  .si-yoko__q1-inner { max-width: 720px; }
  .si-yoko__top5-head-img { padding-top: 30px; max-width: 440px; }

  .si-yoko .si-yoko__q1 h2.si-yoko__qheader-text,
  .si-yoko .si-yoko__q2 h2.si-yoko__qheader-text {
    font-size: 35px;
  }

  .si-yoko__rank-grid { gap: 24px; }

  .si-yoko__rank-grid > :not(:nth-child(5)) {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .si-yoko__rank-grid > :nth-child(1)::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -12.5px;
    width: 1px;
    height: calc(100% + 12px);
    background-color: #f09cb5;
    z-index: 2;
    pointer-events: none;
  }
  .si-yoko__rank-grid > :nth-child(3)::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -12.5px;
    width: 1px;
    height: calc(100% + 12px);
    background-color: #f09cb5;
    z-index: 2;
    pointer-events: none;
  }
  .si-yoko__rank-grid > :nth-child(1)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 10px;
    top: calc(100% + 12px);
    height: 1px;
    background-color: #f09cb5;
    z-index: 2;
    pointer-events: none;
  }
  .si-yoko__rank-grid > :nth-child(2)::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 0;
    top: calc(100% + 12px);
    height: 1px;
    background-color: #f09cb5;
    z-index: 2;
    pointer-events: none;
  }

  .si-yoko__rank-card-img { margin-top: 0; }
  .si-yoko__rank-divider { display: none; }
  .si-yoko__rank-btn { margin-top: auto; }

  .si-yoko__rank-grid > :nth-child(5) {
    max-width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-areas:
      "image title"
      "image text";
    gap: 8px 16px;
    text-align: left;
    align-items: center;
    padding: 24px 0;
  }
  .si-yoko__rank-grid > :nth-child(5) .si-yoko__rank-card-img {
    grid-area: image;
    width: 100%;
    margin-top: 0;
  }
  .si-yoko__rank-grid > :nth-child(5) .si-yoko__rank-title {
    grid-area: title;
    align-self: end;
    text-align: left;
    padding-left: 24px;
  }
  .si-yoko__rank-grid > :nth-child(5) .si-yoko__rank-text {
    grid-area: text;
    align-self: start;
    margin-bottom: 0;
    padding-left: 24px;
    padding-right: 40px;
  }
  .si-yoko__q2 {
    width: 60%;
    margin: 0 auto;
    padding-bottom: 150px;
  }
  .si-yoko__q2-intro-img {
    max-width: 400px;
    margin-top: 70px;
    margin-bottom: 50px;
  }
  .si-yoko__voice-bubble-text {
    font-size: 15px;
    top: 8%;
  }
  .si-yoko__voice-card {
    display: flex;
    align-items: flex-start;
  }
  .si-yoko__data-inner { max-width: 1100px; }
  .si-yoko__charts-grid { gap: 48px 80px; }
  .si-yoko__chart-label { font-size: 20px; padding: 10px 30px; }
  .si-yoko__chart-desc { font-size: 18px; }
  .si-yoko__data-heading-img { max-width: 500px; }
  .si-yoko__chart-main {
    max-width: 700px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .si-yoko__chart-main .si-yoko__chart-label {
    width: fit-content;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 0;
    flex-basis: 100%;
  }
  .si-yoko__chart-main .si-yoko__chart-img {
    max-width: 380px;
    flex-shrink: 0;
  }
  .si-yoko__chart-main .si-yoko__data-note-chart-desc {
    flex: 1;
    padding-left: 50px;
    padding-top: 150px;
  }
  .si-yoko__unknown-title {
    font-size: 16px;
    padding: 10px 35px;
  }
  .si-yoko__unknown-inner { max-width: 960px; }
  .si-yoko__unknown-title {
    font-size: 28px;
    padding: 14px 48px;
    margin-bottom: 36px;
  }
  .si-yoko__unknown-grid { gap: 32px; }
  .si-yoko__unknown-grid > :nth-child(3) { max-width: 560px; }
  .si-yoko__unknown-card-text { font-size: 18px; }
  .si-yoko__satis-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "img desc"
      "voices voices";
    column-gap: 40px;
    align-items: center;
  }
  .si-yoko__satis-heading-img {
    grid-area: img;
    max-width: 440px;
    margin: 0;
  }
  .si-yoko__satis-desc {
    grid-area: desc;
    text-align: left;
    margin-bottom: 0;
    font-size: 18px;
  }
  .si-yoko__satis-voices {
    grid-area: voices;
    margin-top: 40px;
  }
  .si-yoko__cta-inner {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "bubble bubble"
      "illust text"
      "btns   btns";
    column-gap: 48px;
    align-items: center;
  }
  .si-yoko__cta-bubble-img {
    width: 100%;
    max-width: 700px;
    height: 280px;
    object-fit: fill;
    margin: 0 auto 15px;
  }
  .si-yoko__cta-inner > div { grid-area: bubble; }
  .si-yoko__cta-title {
    font-size: 36px;
    padding: 0 60px;
    padding-bottom: 75px;
  }
  .si-yoko__cta-illust {
    grid-area: illust;
    max-width: 100%;
    margin: 0;
  }
  .si-yoko__cta-text {
    grid-area: text;
    text-align: left;
    margin: 0;
    width: 100%;
    font-size: 18px;
  }
  .si-yoko__cta-btns { grid-area: btns; }
}

/* ========== SP ========== */
@media screen and (max-width: 768px) {
  .si-yoko__bg3 {
    background-image: var(--bg-sp);
  }
  .si-yoko__q1::before {
    background-image: var(--bg-sp);
  }
  .si-yoko__satis {
    background-image: var(--bg-sp);
  }
  .si-yoko__q2 {
    background-image: var(--bg-sp);
  }
  .si-yoko__q1, .si-yoko__q2, .si-yoko__data,
  .si-yoko__unknown, .si-yoko__satis, .si-yoko__cta { padding: 40px 16px; }
  .si-yoko__qheader-text { font-size: 15px; }
  .si-yoko__rank-grid { grid-template-columns: 1fr; }
  .si-yoko__rank-grid > :nth-child(5) { grid-column: auto; max-width: 100%; }
  .si-yoko__voice-grid { grid-template-columns: 1fr; }
  .si-yoko__voice-bubble-text { font-size: 12px; right: 25%; bottom: 22%; }
  .si-yoko__charts-grid { grid-template-columns: 1fr; }
  .si-yoko__unknown-grid { grid-template-columns: 1fr; }
  .si-yoko__unknown-grid > :nth-child(3) { grid-column: auto; max-width: 100%; margin: 0; }
  .si-yoko__unknown-card-bg { width: 80%; margin: 0 auto; }
  .si-yoko__satis-voices { grid-template-columns: 1fr; }
  .si-yoko__satis-char { width: 100px; }
  .si-yoko__cta-title { font-size: 25px; padding: 0 15px 20px; margin-top: -80px; }
  .si-yoko__cta-btns { flex-direction: column; align-items: center; }
}
