@charset "UTF-8";
@import url(./global/_variable.css);

/* プログラミング部門ページ */
/* second.css（下層ページ共通パーツ）を前提に、プログラミング部門カラー(--main_c/--grad_main)の */
/* 上書きとこのページ固有のセクションのみを記載する */
/* ============================================ */

/* ヒーロー・共通見出し（部門カラー） */
/* ============================================ */

.second-main {
  background: var(--grad_main);
}
.second-ttl::after {
  background: var(--grad_main);
}

/* 作品テーマ（プログラミング部門のみ） */
/* ============================================ */

.programing-theme {
  position: relative;
  padding: 80px 0;
  @media (width <= 896px) {
    padding: 56px 0;
  }
}
.programing-theme__wrap {
  position: relative;
}
.programing-theme__box {
  margin-top: 40px;
  text-align: center;
  @media (width <= 896px) {
    margin-top: 32px;
  }
}
.programing-theme__free {
  color: var(--main_c);
  font-size: clamp(2rem, -3.8947rem + 10.5263vw, 4rem); /* 64~32(1200~896) */
  font-weight: 800;
  line-height: 1.2;
}
.programing-theme__txt {
  word-break: keep-all;
  margin-top: 20px;
  font-size: clamp(0.9375rem, 0.3849rem + 0.9868vw, 1.125rem); /* 18~15(1200~896) */
  line-height: 1.8;
}

/* 対象（部門カラー） */
/* ============================================ */

.second-target {
  background: var(--grad_bg);
}
.second-target__who {
  color: var(--main_c);
  font-size: clamp(1.5rem, -1.4474rem + 5.2632vw, 2.5rem); /* 40~24(1200~896) */
}

/* 賞について（部門カラー） */
/* ============================================ */

.second-award__group-ttl {
  border-left-color: var(--main_c);
}
.second-award__grade {
  grid-template-columns: repeat(2, 1fr);
  @media (width <= 600px) {
    grid-template-columns: 1fr;
  }
}
.second-award__grade-item {
  border-color: var(--main_c);
}
.second-award__grade-ttl {
  color: var(--main_c);
}
.second-award__grade-txt {
  border-top-color: color-mix(in srgb, var(--main_c) 30%, transparent);
}
.second-award__special-item {
  background: var(--grad_main);
}

/* 応募期間（部門カラー） */
/* ============================================ */

.second-schedule {
  background: var(--grad_bg);
}

/* 審査基準（部門カラー） */
/* ============================================ */

.second-criteria__btn a {
  background: var(--grad_main);
}

/* 過去の最優秀作品（TOPから移設） */
/* ============================================ */

.past {
  position: relative;
  padding: 80px 0;
  background: var(--grad_bg);
  @media (width <= 896px) {
    padding: 56px 0;
  }
}
.past-wrap {
  position: relative;
}
.past-catch {
  word-break: keep-all;
  margin-top: 32px;
  font-size: calc((18 / 16) * 1rem); /* 18px */
  text-align: center;
  @media (width <= 896px) {
    margin-top: 24px;
  }
}
.past-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  @media (width <= 896px) {
    gap: 24px;
    margin-top: 32px;
  }
}
.past-item {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 calc((100% - 64px) / 3);
  background: #fff;
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  @media (width <= 896px) {
    flex-basis: calc((100% - 24px) / 2);
  }
  @media (width <= 600px) {
    flex-basis: 100%;
  }
}
.past-movie {
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.past-movie a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    background: url(../images/btn_movie.svg) no-repeat center / contain;
    transform: translate(-50%, -50%);
    @media (width <= 896px) {
      width: 44px;
      height: 44px;
    }
  }
}
.past-movie img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.past-badge {
  position: absolute;
  top: -14px;
  right: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 4px;
  background: var(--grad_emerald);
  border-radius: 50%;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--navy_c) 20%, transparent);
  color: #fff;
  font-size: calc((14 / 16) * 1rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  @media (width <= 896px) {
    width: 64px;
    height: 64px;
    font-size: calc((12 / 16) * 1rem);
  }
}
.past-item.--kaiketsu .past-badge {
  background: var(--grad_main);
}
.past-item.--entame .past-badge {
  background: var(--grad_purple);
}
.past-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
  @media (width <= 896px) {
    padding: 16px;
  }
}
.past-category {
  margin-bottom: 8px;
}
.past-category__item {
  text-align: center;
  padding: 3px 12px;
  background: var(--navy_c);
  color: #fff;
  font-size: clamp(0.75rem, 0.3816rem + 0.6579vw, 0.875rem); /* 14~12(1200~896) */
  font-weight: 700;
}
.past-ttl {
  color: var(--navy_c);
  font-size: clamp(1rem, 0.2632rem + 1.3158vw, 1.25rem); /* 20~16(1200~896) */
  font-weight: 800;
}
.past-txt {
  flex: 1;
  margin-top: 8px;
  font-size: clamp(0.8125rem, 0.4441rem + 0.6579vw, 0.9375rem); /* 15~13(1200~896) */
  line-height: 1.8;
}

/* スキルUP！（TOPと同内容） */
/* ============================================ */

.skillup {
  position: relative;
  padding: 80px 0;
  @media (width <= 896px) {
    padding: 56px 0;
  }
}
.skillup-wrap {
  position: relative;
}
.skillup-container {
  margin-top: 48px;
  @media (width <= 896px) {
    margin-top: 32px;
  }
}
.skillup-catch {
  color: var(--main_c);
  font-size: clamp(1.25rem, 0.1447rem + 1.9737vw, 1.625rem); /* 26~20(1200~896) */
  font-weight: 800;
  text-align: center;
}
.skillup-txt {
  margin-top: 20px;
  font-size: clamp(0.9375rem, 0.5481rem + 0.7692vw, 1.125rem); /* 18~15(1200~896) */
  line-height: 2;
}
.skillup-detail {
  margin-top: 28px;
  padding: 32px;
  background: var(--bg_c);
  border-radius: 12px;
  @media (width <= 896px) {
    padding: 20px;
  }
  > dt {
    padding-bottom: 10px;
    border-bottom: 2px solid color-mix(in srgb, var(--main_c) 30%, transparent);
    color: var(--navy_c);
    font-size: clamp(0.9375rem, 0.3849rem + 0.9868vw, 1.125rem); /* 18~15(1200~896) */
    font-weight: 700;
  }
  > dd {
    margin-top: 14px;
  }
}
.skillup-detail__txt {
  font-size: clamp(0.875rem, 0.6154rem + 0.5128vw, 1rem); /* 16~14(1200~896) */
  line-height: 1.9;
}
.skillup-detail__note {
  margin-top: 10px;
  font-size: clamp(0.75rem, 0.3816rem + 0.6579vw, 0.875rem); /* 14~12(1200~896) */
  padding-left: 1em;
  text-indent: -1em;
}

/* お問い合わせ（背景色の交互配置調整） */
/* ============================================ */

.contact {
  background: var(--grad_bg);
}

/* 応募導線（部門カラー） */
/* ============================================ */

.second-action__item > a {
  background: var(--grad_main);
}
