@charset "UTF-8";

/* 大きな講座番号は、既存のBarlowの細いウェイトで表示する。 */
@font-face {
  font-family: "Barlow Digits";
  src: url("fonts/barlow/barlow-digits-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
}

/* 追加2セクション。既存LPの可変remに依存せず、本文16pxを保つ。 */
.c-learning-band,
.p-course-lineup,
.p-learning-support {
  --learning-blue: #4d81ca;
  --learning-divider: #b9daf4;
  --learning-pale: #e6f4ff;
  --learning-yellow: #ffc400;
}

.c-learning-band {
  height: auto;
  gap: 12px;
  padding: 32px 20px;
  background: var(--learning-blue);
  scroll-margin-top: 16px;
}

.c-learning-band .c-band__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}

.c-learning-band .c-band__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* SVGは画像内の余白が少ないため、既存メニューの見た目の大きさにそろえる。 */
.p-nav__icon.p-nav__icon--learning img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
}

.c-learning-band .c-band__text {
  min-width: 0;
}

.c-learning-band .c-band__text b {
  font-size: clamp(18px, 3.8vw, 24px);
  line-height: 1.35;
  letter-spacing: .01em;
}

.c-learning-band .c-band__text small {
  margin-top: 4px;
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 1.5;
}

.p-course-lineup,
.p-learning-support {
  --learning-gutter: 20px;
  padding: 24px var(--learning-gutter) calc(56px + var(--section-spacing-extra));
  background: #dfeaf7 url("../img/section_04/sec4_bg.png") no-repeat center top / cover;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.c-learning-intro {
  display: grid;
  grid-template-columns: repeat(100, minmax(0, 1fr));
  grid-template-rows: min-content 1fr;
  align-items: start;
  row-gap: 20px;
  margin-inline: calc(-1 * var(--learning-gutter));
}

.c-learning-intro h2 {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1 / 2 / 58;
  min-width: 0;
  padding: 16px 0 0 var(--learning-gutter);
  line-height: 1;
}

.c-learning-intro img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.c-learning-intro > img {
  grid-area: 1 / 49 / 3 / 101;
  align-self: start;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  /* 室内の背景を残し、写真の境界だけをセクションになじませる。 */
  mask-image: linear-gradient(to right, transparent, #000 18%),
    linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  mask-composite: intersect;
}

.p-learning-support .c-learning-intro > img {
  /* 顔や手元は残し、室内写真の四辺を背景へゆっくり溶け込ませる。 */
  mask-image:
    linear-gradient(to right,
      transparent 0%,
      rgba(0, 0, 0, .12) 12%,
      rgba(0, 0, 0, .65) 28%,
      #000 42%,
      #000 88%,
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, .4) 6%,
      #000 16%,
      #000 78%,
      rgba(0, 0, 0, .65) 90%,
      transparent 100%);
}

.c-learning-intro h2 img {
  margin-top: -10%;
}

.c-learning-lead {
  position: relative;
  z-index: 1;
  grid-area: 2 / 1 / 3 / 58;
  min-width: 0;
  padding-left: var(--learning-gutter);
  /* 既存の「学べること」の1.9remに合わせ、スマホでも18pxを下回らない。 */
  font-size: max(18px, 1.9rem);
  font-weight: 500;
  line-height: 1.65;
}

.p-course-lineup__categories {
  container-type: inline-size;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 18px;
  background: #346fbd url("../img/learning-additions/course-accordion-blue-bg-v1.webp") no-repeat center / cover;
}

.c-learning-intro + .p-learning-support__card {
  margin-top: 24px;
}

.p-learning-support__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(7, 31, 92, .06);
}

.p-course-lineup__category + .p-course-lineup__category {
  border-top: 1px solid rgba(177, 211, 255, .45);
}

.p-course-lineup__category > summary {
  display: block;
  min-height: 120px;
  padding: 22px 24px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s;
}

.p-course-lineup__category > summary::-webkit-details-marker,
.p-section-menu > summary::-webkit-details-marker {
  display: none;
}

.p-section-menu > summary:focus-visible,
.p-section-menu a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.p-course-lineup__category > summary:focus-visible {
  outline: 3px solid #ffd044;
  outline-offset: -5px;
  background-color: rgba(255, 255, 255, .08);
}

@media (hover: hover) and (pointer: fine) {
  .p-course-lineup__category > summary:hover {
    background-color: rgba(255, 255, 255, .08);
  }
}

.p-course-lineup__category > summary h3 {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 20px;
}

.p-course-lineup__category-number {
  color: #a6cdff;
  font-family: var(--font-numerals), sans-serif;
  font-size: 64px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.035em;
}

.p-course-lineup__category-copy {
  display: block;
  min-width: 0;
}

.p-course-lineup__category-accent {
  display: block;
  width: 22px;
  height: auto;
  margin-bottom: 10px;
}

.p-course-lineup__category-title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.p-course-lineup__category-description {
  display: block;
  margin-top: 4px;
  font-size: clamp(14px, 2.8cqw, 15px);
  font-weight: 400;
  line-height: 1.6;
}

.p-course-lineup__category-description > span {
  display: inline-block;
  white-space: nowrap;
}

.p-course-lineup__toggle {
  display: block;
  width: 40px;
  height: 40px;
  background: url("../img/learning-additions/icons/phosphor/plus-circle-course-gold.svg") no-repeat center / contain;
}

.p-course-lineup__category[open] .p-course-lineup__toggle {
  background-image: url("../img/learning-additions/icons/phosphor/minus-circle-course-gold.svg");
}

.p-course-lineup__body {
  padding: 32px clamp(12px, 3vw, 20px) 36px;
  background: #edf7ff;
}

@container (max-width: 460px) {
  .p-course-lineup__category > summary {
    min-height: 136px;
    padding: 20px 16px;
  }

  .p-course-lineup__category > summary h3 {
    grid-template-columns: 40px minmax(0, 1fr) 32px;
    gap: 10px;
  }

  .p-course-lineup__category-number {
    font-size: 36px;
  }

  .p-course-lineup__category-title {
    font-size: 20px;
  }

  .p-course-lineup__toggle {
    width: 32px;
    height: 32px;
  }
}

.c-learning-list > li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 16px;
  line-height: 1.75;
}

.c-learning-list > li + li {
  border-top: 1px dotted var(--learning-divider);
}

.c-learning-list > li > span:last-child {
  min-width: 0;
}

.c-learning-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--learning-pale);
}

.c-learning-icon img {
  display: block;
  width: 40px;
  height: 40px;
}

/* 講座一覧の3カテゴリーに、白いアイコン面と青い説明欄を共通で適用する。 */
.p-course-lineup__tiles {
  --course-tile-gap: clamp(12px, 3vw, 16px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px var(--course-tile-gap);
}

.p-course-lineup__tiles > li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(59, 115, 196, .12);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.p-course-lineup__tile-number {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--learning-blue);
  font-family: var(--font-numerals), sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.p-course-lineup__tiles > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--course-tile-gap)) / 2);
}

.p-course-lineup__tiles .c-learning-icon {
  flex: 0 0 128px;
  width: 100%;
  height: 128px;
  padding: 24px 16px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.p-course-lineup__tiles .c-learning-icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.p-course-lineup__tiles > li > span:last-child {
  min-width: 0;
  max-width: 100%;
}

.p-course-lineup__label {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 12px 8px 16px;
  color: #fff;
  background: var(--blue);
  line-height: 1.5;
}

.p-course-lineup__label::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 4px;
  margin-bottom: 8px;
  background: url("../img/learning-additions/icons/phosphor/minus-bold-gold.svg") no-repeat center / contain;
}

.p-course-lineup__label > span {
  display: block;
  white-space: nowrap;
}

/* スマホでも説明文を見出し直下、講座カードをPCと同じ2列に保つ。 */
@media (max-width: 599px) {
  .c-learning-intro {
    row-gap: 8px;
  }

  .c-learning-lead {
    font-size: clamp(12px, 1.9rem, 18px);
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .p-course-lineup__tiles > li {
    font-size: clamp(12px, 2.8vw, 16px);
  }

  .p-course-lineup__tile-number {
    top: 8px;
    left: 9px;
    font-size: 20px;
  }

  .p-course-lineup__tiles .c-learning-icon {
    flex-basis: clamp(96px, 24vw, 128px);
    height: clamp(96px, 24vw, 128px);
    padding: 20px 10px 10px;
  }

  .p-course-lineup__tiles .c-learning-icon img {
    width: clamp(56px, 16vw, 88px);
    height: clamp(56px, 16vw, 88px);
  }

  .p-course-lineup__label > span {
    max-width: 100%;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

.p-course-lineup__examples-title {
  margin: 28px 0 16px;
  color: var(--learning-blue);
  font-size: 16px;
  font-weight: 700;
}

.p-course-lineup__body--examples > p {
  padding-inline: 4px;
}

.p-learning-support__card {
  --support-card-gutter: clamp(16px, 4vw, 24px);
  margin-top: 40px;
  padding: 0 var(--support-card-gutter) clamp(32px, 6vw, 40px);
  background: #fff;
  border-radius: 16px;
}

.p-learning-support__label {
  position: relative;
  container-type: inline-size;
  width: calc(100% + var(--support-card-gutter) + var(--support-card-gutter));
  margin-inline: calc(-1 * var(--support-card-gutter));
  aspect-ratio: 1220 / 224;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  /* 1420×1108の素材から、上段の帯（101,274 / 1220×224）だけを表示する。 */
  background: var(--learning-blue) url("../img/learning-additions/headlines/support-label-band-v3-no-underline.webp") no-repeat 50.5% 30.9955% / 116.3935% 494.6429%;
  color: #fff;
}

/* 文字サイズは帯の幅に追従させる。 */
.p-learning-support__label > span {
  position: absolute;
  inset: 17% 4% 30%;
  display: grid;
  place-items: center;
  font-size: clamp(15px, 3.4vw, 28px);
  font-size: clamp(15px, 5.2cqw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .035em;
  white-space: nowrap;
  text-align: center;
}

.p-learning-support__headline {
  margin: clamp(24px, 5vw, 32px) 0 0;
  line-height: 1;
}

.p-learning-support__headline img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
}

.p-learning-support__headline--progress {
  position: relative;
  aspect-ratio: 1643 / 553;
  overflow: hidden;
}

/* 既存PNGの透明余白を表示枠から外し、参照画像と同じ文字の大きさにする。 */
.p-learning-support__headline--progress img {
  position: absolute;
  top: -41.41%;
  left: -5.60%;
  width: 107.97%;
  margin: 0;
}

.p-learning-support__progress {
  margin-top: clamp(20px, 4vw, 28px);
}

.p-learning-support__progress > img {
  display: block;
  width: 100%;
  height: auto;
}

.p-learning-support__progress figcaption {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.75;
  text-align: right;
}

.p-learning-support__description {
  margin-top: 24px;
  font-size: clamp(16px, 1.9rem, 19px);
  line-height: 1.6;
  text-align: center;
}

.p-learning-support__description > span {
  display: inline-block;
  white-space: nowrap;
}

.p-learning-support__question-visual {
  margin: clamp(20px, 4vw, 28px) -8px 16px;
}

.p-learning-support__question-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.p-learning-support__card mark {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  color: inherit;
  background: #ffcf3f;
  font-weight: 700;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.p-learning-support__benefits {
  margin-top: 8px;
}

.p-learning-support__benefits > li {
  gap: 18px;
  padding: 8px 0;
  font-size: clamp(16px, 2rem, 20px);
  font-weight: 500;
  line-height: 1.5;
}

.p-learning-support__benefits > li + li {
  border-top: 1px dashed #a6d7fb;
}

.p-learning-support__benefits .c-learning-icon {
  flex: 0 0 clamp(48px, 6.4rem, 64px);
  height: clamp(48px, 6.4rem, 64px);
  background: #e6f4ff;
}

.p-learning-support__benefits .c-learning-icon img {
  width: 66%;
  height: auto;
}

.p-learning-support__note {
  margin-top: 8px;
  font-size: clamp(12px, 1.4rem, 14px);
  line-height: 1.6;
}

@media (max-width: 479px) {
  .p-learning-support__benefits > li {
    gap: 12px;
  }
}

/* JS無効時と、PCサイドメニューを表示しない中間幅で使う目次。 */
.p-section-menu {
  margin: 24px 20px;
  border: 1px solid #b9daf4;
  border-radius: 12px;
  background: #fbf9fa;
  font-size: 16px;
  line-height: 1.75;
}

.p-section-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}

.p-section-menu > summary::after {
  content: "+";
  font-size: 24px;
}

.p-section-menu[open] > summary::after {
  content: "−";
}

.p-section-menu nav {
  padding: 0 16px 12px;
}

.p-section-menu li {
  border-top: 1px dotted #b9daf4;
}

.p-section-menu a {
  display: block;
  padding: 12px 0;
  overflow-wrap: anywhere;
}

/* スマホの固定ヘッダーと、ネイティブdialogによるセクションメニュー。 */
.p-mobile-header {
  display: none;
}

.p-mobile-menu {
  position: fixed;
  inset: 0 0 auto auto;
  width: min(360px, calc(100% - 24px));
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: #fff;
  box-shadow: -8px 0 32px rgba(7, 31, 92, .12);
  font-size: 16px;
  line-height: 1.5;
}

.p-mobile-menu[open] {
  display: flex;
  flex-direction: column;
}

.p-mobile-menu:not([open]) {
  display: none;
}

.p-mobile-menu::backdrop {
  background: rgba(7, 31, 92, .4);
}

.p-mobile-menu__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0 20px;
  border-bottom: 1px solid var(--blue-pale);
}

.p-mobile-menu__head h2 {
  font-size: 20px;
  font-weight: 700;
}

.p-mobile-menu__close {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue-lite);
}

.p-mobile-menu__close img {
  width: 24px;
  height: 24px;
}

.p-mobile-menu__nav {
  min-height: 0;
  padding: 8px 20px max(16px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.p-mobile-menu__nav li + li {
  border-top: 1px solid var(--blue-pale);
}

.p-mobile-menu__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.p-mobile-menu__nav img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.p-mobile-menu__nav a:hover {
  color: var(--blue);
}

.p-mobile-header a:focus-visible,
.p-mobile-header button:focus-visible,
.p-mobile-menu a:focus-visible,
.p-mobile-menu button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

html.is-mobile-menu-open,
html.is-mobile-menu-open body {
  overflow: hidden;
}

@media (max-width: 767px) {
  html.has-mobile-menu {
    --mobile-header-height: calc(64px + env(safe-area-inset-top, 0px));
    scroll-padding-top: calc(var(--mobile-header-height) + 8px);
  }

  .has-mobile-menu .p-mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--mobile-header-height);
    padding: env(safe-area-inset-top, 0px) 12px 0 16px;
    border-bottom: 1px solid var(--blue-pale);
    background: #fff;
  }

  .p-mobile-header__logo img {
    display: block;
    width: 152px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
  }

  .p-mobile-header__button {
    display: grid;
    flex: 0 0 52px;
    place-content: center;
    justify-items: center;
    gap: 2px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--blue-lite);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }

  .p-mobile-header__button img {
    width: 28px;
    height: 28px;
  }

  .has-mobile-menu .l-page {
    padding-top: var(--mobile-header-height);
  }

  .has-mobile-menu .p-mv__logo,
  .has-mobile-menu .p-section-menu {
    display: none;
  }

  .has-mobile-menu .p-mv__inner {
    padding-top: 3.6rem;
  }

  .has-mobile-menu .p-mv__copy {
    margin-top: 0;
  }
}

@media (min-width: 560px) {
  .p-course-lineup,
  .p-learning-support {
    --learning-gutter: 34px;
  }
}

@media (min-width: 1280px) {
  .p-section-menu {
    display: none;
  }

  .l-side--right .l-side__inner {
    padding-top: 20px;
    padding-bottom: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .p-nav__item--addition .p-nav__text {
    min-width: 0;
  }

  .p-nav__item--addition .p-nav__text b {
    font-size: 1.6rem;
    line-height: 1.35;
  }
}
