/*
 * 学習塾ページ「完成画面」セクションのスマートフォン版。
 * 承認済みモバイルカンプを正本とし、PC版には影響させない。
 */
[data-page-id="S13"] .cs-showcase-copy h2 > .cs-showcase-heading-line {
  display: inline;
}

@media (max-width: 720px) {
  body main[data-page-id="S13"] .cs-showcase {
    min-height: 0;
    padding: 70px 0 48px;
    border-top: 18px solid #123f34;
    background:
      radial-gradient(circle, rgb(18 63 52 / 7%) 0 1px, transparent 1.3px) 0 0 / 22px 22px,
      linear-gradient(180deg, #fffdf7 0%, #fbf7ed 100%);
  }

  [data-page-id="S13"] .cs-showcase::before {
    z-index: 0;
    background: none;
    opacity: 1;
  }

  [data-page-id="S13"] .cs-showcase::after {
    position: absolute;
    top: -1px;
    left: 50%;
    z-index: 1;
    width: 0;
    height: 0;
    border-top: 15px solid #123f34;
    border-right: 16px solid transparent;
    border-left: 16px solid transparent;
    content: "";
    transform: translateX(-50%);
  }

  [data-page-id="S13"] .cs-showcase > .cs-wrap {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 36px), 414px);
  }

  [data-page-id="S13"] .cs-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
  }

  [data-page-id="S13"] .cs-showcase-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  [data-page-id="S13"] .cs-showcase-copy::before,
  [data-page-id="S13"] .cs-showcase-copy::after {
    display: none;
  }

  body main[data-page-id="S13"] .cs-showcase-copy h2,
  body main[data-page-id="S13"] .cs-showcase h2 {
    margin: 0;
    color: #123f34;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(1.62rem, 7vw, 1.78rem);
    font-weight: 600;
    line-height: 1.58;
    letter-spacing: .015em;
    text-align: center;
    word-break: keep-all;
  }

  body main[data-page-id="S13"] .cs-showcase-copy h2::after {
    display: block;
    width: 64px;
    height: 4px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: #0b9aa7;
    content: "";
    box-shadow: 0 2px 5px rgb(18 63 52 / 8%);
  }

  [data-page-id="S13"] .cs-showcase-copy h2 > .cs-showcase-heading-line {
    display: inline;
    position: relative;
    z-index: 0;
    white-space: nowrap;
  }

  [data-page-id="S13"] .cs-showcase-copy h2 > .cs-showcase-heading-line-mark {
    background: linear-gradient(transparent 73%, rgb(245 204 79 / 34%) 73% 91%, transparent 91%);
  }

  [data-page-id="S13"] .cs-showcase-copy h2 .doc-word {
    display: inline;
  }

  body main[data-page-id="S13"] .cs-showcase-rule {
    order: -1;
    align-self: center;
    width: 68px;
    height: 5px;
    margin: 0 0 27px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b9aa7 0 67%, #dfaa28 67% 100%);
    box-shadow: 0 2px 5px rgb(18 63 52 / 9%);
  }

  [data-page-id="S13"] .cs-showcase-copy > p:not(.cs-kicker):not(.cs-showcase-note) {
    max-width: none;
    margin: 31px 0 0;
    color: #192f2a;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(.93rem, 3.9vw, 1rem);
    font-weight: 500;
    line-height: 2.02;
    letter-spacing: .018em;
    text-align: left;
  }

  [data-page-id="S13"] .cs-showcase-copy > .cs-showcase-note.cs-showcase-note-desktop {
    display: none;
  }

  [data-page-id="S13"] .cs-device-stage {
    min-height: 375px;
    margin: 0;
  }

  [data-page-id="S13"] .cs-monitor {
    top: 0;
    left: 50%;
    width: min(91%, 360px);
    padding: 6px 6px 10px;
    border: 1px solid #24342f;
    border-radius: 10px;
    background: #121a18;
    box-shadow: 0 18px 34px rgb(18 63 52 / 20%);
    transform: translateX(-50%);
  }

  [data-page-id="S13"] .cs-monitor-screen {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
  }

  [data-page-id="S13"] .cs-monitor-screen img.cs-showcase-mockup-image {
    object-fit: cover;
    object-position: top center;
  }

  [data-page-id="S13"] .cs-monitor-stand {
    width: 114%;
    height: 42px;
    background: linear-gradient(180deg, #65726f 0%, #28312f 58%, #121a18 100%);
    box-shadow: 0 13px 21px rgb(18 63 52 / 18%);
    clip-path: polygon(10% 0, 90% 0, 100% 84%, 96% 100%, 4% 100%, 0 84%);
  }

  [data-page-id="S13"] .cs-phone {
    right: 8%;
    bottom: 74px;
    width: 116px;
    height: 251px;
    padding: 9px 5px 6px;
    border-width: 4px;
    border-radius: 23px;
    box-shadow: 0 16px 30px rgb(18 63 52 / 28%);
    transform: none;
  }

  [data-page-id="S13"] .cs-phone::before {
    top: 3px;
    width: 35px;
    height: 4px;
  }

  [data-page-id="S13"] .cs-phone-screen {
    border-radius: 14px;
  }

  body main[data-page-id="S13"] .cs-device-stage figcaption {
    right: 5px;
    bottom: 0;
    left: 5px;
    color: #435d55;
    font-family: "Noto Sans JP", sans-serif;
    font-size: .69rem;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: .01em;
    text-align: center;
  }
}

@media (max-width: 390px) {
  body main[data-page-id="S13"] .cs-showcase {
    padding-top: 66px;
  }

  [data-page-id="S13"] .cs-showcase > .cs-wrap {
    width: calc(100% - 34px);
  }

  body main[data-page-id="S13"] .cs-showcase-copy h2,
  body main[data-page-id="S13"] .cs-showcase h2 {
    font-size: 1.58rem;
  }

  [data-page-id="S13"] .cs-showcase-copy > p:not(.cs-kicker):not(.cs-showcase-note) {
    font-size: .92rem;
  }

  [data-page-id="S13"] .cs-device-stage {
    min-height: 359px;
  }

  [data-page-id="S13"] .cs-phone {
    right: 7%;
    bottom: 72px;
    width: 110px;
    height: 238px;
  }
}

@media (min-width: 721px) and (max-width: 820px) {
  body main[data-page-id="S13"] .cs-showcase {
    min-height: 0;
    padding: 76px 0 56px;
    border-top: 18px solid #123f34;
    background:
      radial-gradient(circle, rgb(18 63 52 / 7%) 0 1px, transparent 1.3px) 0 0 / 22px 22px,
      linear-gradient(180deg, #fffdf7 0%, #fbf7ed 100%);
  }

  body main[data-page-id="S13"] .cs-showcase::after {
    position: absolute;
    top: -1px;
    left: 50%;
    z-index: 1;
    width: 0;
    height: 0;
    border-top: 15px solid #123f34;
    border-right: 16px solid transparent;
    border-left: 16px solid transparent;
    content: "";
    transform: translateX(-50%);
  }

  body main[data-page-id="S13"] .cs-showcase > .cs-wrap {
    width: min(calc(100% - 64px), 640px);
  }

  body main[data-page-id="S13"] .cs-showcase-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body main[data-page-id="S13"] .cs-showcase-copy {
    max-width: none;
    padding: 0;
  }

  body main[data-page-id="S13"] .cs-showcase-copy h2 {
    color: #123f34;
    font-size: 2.25rem;
    line-height: 1.52;
    text-align: center;
  }

  body main[data-page-id="S13"] .cs-showcase-copy h2::after {
    display: block;
    width: 72px;
    height: 4px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: #0b9aa7;
    content: "";
  }

  body main[data-page-id="S13"] .cs-showcase-rule {
    width: 76px;
    height: 5px;
    margin: 0 auto 28px;
    background: linear-gradient(90deg, #0b9aa7 0 67%, #dfaa28 67% 100%);
  }

  body main[data-page-id="S13"] .cs-showcase-copy > p:not(.cs-kicker):not(.cs-showcase-note) {
    max-width: 560px;
    margin: 30px auto 0;
    color: #192f2a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 2;
  }

  body main[data-page-id="S13"] .cs-showcase-copy > .cs-showcase-note.cs-showcase-note-desktop {
    display: none;
  }

  body main[data-page-id="S13"] .cs-device-stage {
    min-height: 500px;
  }

  body main[data-page-id="S13"] .cs-monitor {
    top: 0;
    left: 50%;
    width: min(88%, 560px);
    transform: translateX(-50%);
  }

  body main[data-page-id="S13"] .cs-monitor-screen {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  body main[data-page-id="S13"] .cs-phone {
    right: 5%;
    bottom: 74px;
    width: 142px;
    height: 304px;
  }

  body main[data-page-id="S13"] .cs-device-stage figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    color: #435d55;
    font-size: .72rem;
    line-height: 1.75;
    text-align: center;
  }
}
