/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --navy:        #106EB0;
  --navy-deep:   #106EB0;
  --blue:        #106EB0;
  --blue-light:  #3c8bc4;
  --blue-bg:     #e4eff8;
  --red:         #e2241a;
  --red-deep:    #c31a10;
  --gold:        #d69a2c;
  --text:        #222;
  --text-muted:  #555;
  --gray-dark:   #565656;
  --white:       #fff;
  --shadow:      0 6px 24px rgba(10, 60, 110, 0.10);
  --shadow-sm:   0 4px 14px rgba(10, 60, 110, 0.07);
  --radius-pill: 9999px;
  --radius-card: 24px;
  --max:         1094px;
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.page { overflow-x: hidden; }


/* --------------------------------------------------------------------------
   3. Layout Wrappers
   -------------------------------------------------------------------------- */
.wrap {
  padding: 100px 24px 110px;
  position: relative;
}
.wrap--blue {
  background: rgba(204, 228, 255, 0.2791);
  border-radius: 480px 480px 0 0;
}
.wrap--white {
  background: var(--white);
}
.wrap--blue + .wrap--white {
  margin-top: -1px;
}
.wrap--white + .wrap--blue {
  border-radius: 480px 480px 0 0;
  margin-top: 0;
}

/* First pill of each blue wrap overlaps the rounded top edge (half above) */
.hero + .wrap--blue > .section:first-child > .pill,
.wrap--white + .wrap--blue > .section:first-child > .pill {
  margin-top: -150px;
  margin-bottom: 210px;
  z-index: 2;
}

.section {
  max-width: var(--max);
  margin: 0 auto 90px;
}
.section:last-child { margin-bottom: 0; }

/* Awards: wider white card, pill overlaps card top edge (50%) */
.section--awards {
  max-width: 1640px;
  position: relative;
}
.section--awards .pill {
  max-width: 1094px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.section--awards .awards {
  margin-top: -52px;
  padding-top: 120px;
  position: relative;
  z-index: 1;
  max-width: none;
}

/* Education: wider to fit TOP CREW note in 2 lines at 1920px */
.section--edu {
  max-width: 1500px;
}
.section--edu .pill {
  max-width: 1094px;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   4. Marquee — "Service Technology Contest" sliding text
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 20px 0;
  pointer-events: none;
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-rtl 30s linear infinite;
  will-change: transform;
}
.marquee__img {
  height: 120px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  padding-right: 100px;
  display: block;
}
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* --------------------------------------------------------------------------
   5. Hero — 磨いた技術に真心を込めて
   -------------------------------------------------------------------------- */
.hero {
  padding: 90px 24px 140px;
  background: var(--white);
  text-align: center;
}
.hero__title {
  font-size: 44px;
  font-weight: 700;
  color: #106EB0;
  letter-spacing: .08em;
  margin: 0 0 55px;
  line-height: 1.4;
}
.hero__image {
  max-width: 1052px;
  margin: 0 auto;
  overflow: hidden;
}
.hero__image img { width: 100%; }


/* --------------------------------------------------------------------------
   6. Pill — 各セクションの見出しピル
   -------------------------------------------------------------------------- */
.pill {
  position: relative;
  margin: 0 auto 60px;
  padding: 22px 40px;
  background: #106EB0;
  border: 2px solid #106EB0;
  border-radius: var(--radius-pill);
  max-width: 1094px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 0 rgba(13, 77, 134, 0.08);
}
.pill__ja {
  font-size: 30px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: .05em;
  line-height: 1.2;
}
.pill__en {
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: .15em;
  opacity: .9;
}


/* --------------------------------------------------------------------------
   7. Section: サービス技術コンクールとは (Intro)
   -------------------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 56px;
  align-items: flex-start;
  margin-top: 40px;
}
.intro__photo {
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}
.intro__photo img { width: 100%; display: block; }
.intro__head {
  font-size: 22px;
  font-weight: 700;
  color: #106EB0;
  margin: 8px 0 24px;
  line-height: 1.5;
}
.intro__text {
  font-size: 15px;
  line-height: 2;
  margin: 0;
}


/* --------------------------------------------------------------------------
   8. Section: 大会の様子 (Tournament)
   -------------------------------------------------------------------------- */
.tournament {
  max-width: 1195px;
  margin: 0 auto;
  overflow: hidden;
}
.tournament img { width: 100%; }


/* --------------------------------------------------------------------------
   9. Section: 59チーム...全国3位 (Result)
   -------------------------------------------------------------------------- */
.section--result {
  margin-top: 80px;
  text-align: center;
}
.result-banner {
  position: relative;
  max-width: 831px;
  margin: 0 auto;
}
.result-banner__inner {
  background: var(--navy);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  padding: 22px 40px;
  border-radius: 6px;
  letter-spacing: .03em;
}
.result-banner__arrow {
  position: relative;
  width: 100%;
  height: 70px;
}
.result-banner__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-top: 70px solid var(--navy);
}

.result-score {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  margin: 20px 0 60px;
  color: var(--red);
  font-weight: 700;
}
.result-score__small {
  font-size: 36px;
  line-height: 0.95;
  color: var(--red);
  font-weight: 700;
}
.result-score__num {
  font-size: 160px;
  line-height: 1;
  font-family: "Oswald", sans-serif;
  color: var(--red);
}
.result-score__unit {
  font-size: 64px;
  line-height: 1;
  color: var(--red);
}
.result-score__text {
  font-size: 36px;
  color: #222;
  font-weight: 700;
  margin-left: 12px;
  line-height: 1;
}

.result-photo {
  max-width: 1178px;
  margin: 0 auto;
  overflow: hidden;
}
.result-photo img { width: 100%; }


/* --------------------------------------------------------------------------
   10. Section: 全国大会の受賞履歴 (Awards)
   -------------------------------------------------------------------------- */
.awards {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-card);
  padding: 70px 60px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 1640px;
  margin: 0 auto;
}
.awards__head:first-child,
.section--awards .awards > :first-child {
  margin-top: 0;
}
.awards__head {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 50px;
  line-height: 1.5;
}
.awards__head em {
  font-style: normal;
  color: var(--red);
  font-size: 32px;
  margin: 0 .1em;
  font-weight: 700;
}

/* Medal row: 優勝 / 準優勝 / 3位 */
.medals {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 50px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.medal {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.medal img {
  display: block;
  object-fit: contain;
}
.medal:nth-child(1) img { width: 243px; height: 308px; }
.medal:nth-child(2) img,
.medal:nth-child(3) img { width: 220px; height: 307px; }

.awards__excellent {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin: 16px 0 50px;
}
.awards__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 40px;
  line-height: 1.5;
}
.awards__title em {
  font-style: normal;
  color: var(--red);
  margin-left: 14px;
}

/* "日本トップレベル..." + icon_champion */
.awards__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.awards__proud {
  font-size: 32px;
  font-weight: 700;
  color: #106EB0;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}
.awards__champion {
  width: 175px;
  height: auto;
  display: block;
}


/* --------------------------------------------------------------------------
   11. Section: 受賞者紹介 (Winners)
   -------------------------------------------------------------------------- */
.winner {
  margin: 0 auto 80px;
  max-width: 1310px;
}
.winner:last-child { margin-bottom: 0; }
.winner__name {
  display: table;
  margin: 0 auto 30px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .12em;
  padding: 18px 110px;
  background: #0A3B5D;
  clip-path: polygon(32px 0, 100% 0, calc(100% - 32px) 100%, 0 100%);
  line-height: 1.2;
}
.winner__image {
  max-width: 1310px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}
.winner__image img { width: 100%; }


/* --------------------------------------------------------------------------
   12. Section: 私たちが目指すべきエンジニアの姿とは (Trainer)
   -------------------------------------------------------------------------- */
.trainer {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 50px 60px 50px 0;
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 30px;
  align-items: flex-start;
  max-width: 1279px;
  margin: 0 auto;
  position: relative;
}
.trainer__avatar {
  width: 370px;
  height: 370px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-left: -85px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.trainer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trainer__body { padding-top: 10px; }

/* Parallelogram name + role banner */
.trainer__namebar {
  color: #fff;
  padding: 14px 70px 14px 40px;
  background: #106EB0;
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  gap: 0;
  margin-bottom: 22px;
  line-height: 1.35;
}
.trainer__name,
.trainer__role { white-space: nowrap; }
.trainer__name { font-size: 22px; font-weight: 700; }
.trainer__role { font-size: 14px; font-weight: 500; }

.trainer__head {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 14px;
}
.trainer__text {
  color: #1A1A1A;
  font-size: 20px;
  font-weight: 400;
  line-height: 40px;
  margin: 0;
}


/* --------------------------------------------------------------------------
   13. Section: 充実した教育体制 (Education)
   -------------------------------------------------------------------------- */
.edu {
  max-width: 1500px;
  margin: 0 auto;
}
.edu__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: stretch;
}
.edu__item {
  overflow: hidden;
  background: var(--gray-dark);
}
.edu__item img { width: 100%; height: 100%; object-fit: cover; }
.edu__note {
  font-size: 15px;
  line-height: 2.4;
  color: var(--text);
  margin: 0;
  text-align: left;
}


/* --------------------------------------------------------------------------
   14. Section: エンジニアを志望する学生さんへ (CTA)
   -------------------------------------------------------------------------- */
.section--cta {
  text-align: center;
  max-width: 1200px;
  margin-top: 80px;
}
.cta__head {
  font-size: 38px;
  font-weight: 700;
  color: #106EB0;
  margin: 0 0 34px;
  letter-spacing: .08em;
}
.cta__desc {
  display: inline-block;
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  color: #1A1A1A;
  text-align: left;
  margin: 0 0 50px;
}
.cta__lead {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 44px;
}
.cta__lead-accent { color: #106EB0; }
.cta__btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 24px 0;
  border-radius: 12px;
  letter-spacing: .08em;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .12);
  width: 100%;
  max-width: 816px;
  margin: 0 auto;
}
.cta__btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
}


/* --------------------------------------------------------------------------
   15. Responsive (≤ 900px / Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {

  /* Layout wrappers */
  .wrap { padding: 60px 16px 80px; }
  .wrap--blue,
  .wrap--white + .wrap--blue { border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
  .hero + .wrap--blue > .section:first-child > .pill,
  .wrap--white + .wrap--blue > .section:first-child > .pill {
    margin-top: -90px;
    margin-bottom: 120px;
  }
  .section { margin-bottom: 60px; }
  .section--awards .awards { padding-top: 80px; margin-top: -36px; }

  /* Hero */
  .hero { padding: 60px 16px 50px; }
  .hero__title { font-size: 26px; margin-bottom: 34px; }

  /* Pill */
  .pill { padding: 16px 24px; margin-bottom: 40px; }
  .pill__ja { font-size: 18px; }
  .pill__en { font-size: 11px; }

  /* Marquee */
  .marquee { padding: 10px 0; }
  .marquee__img { height: 64px; padding-right: 60px; }

  /* Section 1: Intro — stack vertically */
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .intro__photo { max-width: 360px; margin-left: auto; margin-right: auto; }
  .intro__head { font-size: 16px; margin: 8px 0 14px; }
  .intro__text { font-size: 13px; line-height: 1.9; }

  /* Section 3: Result */
  .result-banner__inner { font-size: 18px; padding: 16px 20px; }
  .result-banner__arrow { height: 50px; }
  .result-banner__arrow::before {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 50px solid var(--navy);
  }
  .result-score__small { font-size: 22px; }
  .result-score__num { font-size: 96px; }
  .result-score__unit { font-size: 42px; }
  .result-score__text { font-size: 22px; }

  /* Section 4: Awards */
  .awards { padding: 40px 20px; }
  .awards__head { font-size: 18px; }
  .awards__head em { font-size: 20px; }
  .awards__title { font-size: 18px; }
  .awards__title em { display: block; margin: 6px 0 0; }
  .medals { gap: 12px; }
  .medal:nth-child(1) img,
  .medal:nth-child(2) img,
  .medal:nth-child(3) img {
    width: 100%;
    max-width: 120px;
    height: auto;
  }
  .awards__footer {
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }
  .awards__proud { font-size: 16px; line-height: 1.5; }
  .awards__champion { width: 90px; flex-shrink: 0; }

  /* Section 5: Winners */
  .winner__name { font-size: 20px; padding: 14px 70px; }

  /* Section 6: Trainer — stack with centered avatar */
  .trainer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }
  .trainer__avatar { width: 200px; height: 200px; margin: 0 auto; }
  .trainer__namebar {
    margin: 0 auto 18px;
    padding: 12px 60px 12px 30px;
    align-self: center;
  }
  .trainer__name { font-size: 18px; }
  .trainer__role { font-size: 12px; }
  .trainer__body { text-align: left; }
  .trainer__head { font-size: 16px; margin: 0 0 10px; }
  .trainer__text { font-size: 13px; line-height: 2; }

  /* Section 7: Education — stack taisei images */
  .edu__row { grid-template-columns: 1fr; gap: 20px; }
  .edu__item img { max-width: 100%; display: block; margin: 0 auto; }
  .edu__note { font-size: 12px; line-height: 2; }

  /* Section 8: CTA */
  .cta__head { font-size: 24px; }
  .cta__desc {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 30px;
  }
  .cta__desc br { display: none; }
  .cta__lead { font-size: 16px; }
  .cta__btn { padding: 16px 0; font-size: 18px; }
}
