/*****これまでの取り組み*****/
/* =========================================
   Works page Astra container padding reset
========================================= */

.works-page {
  margin-top: 0 !important;
}

.works-hero {
  background: #f1f8f5;
  padding: 40px 20px;
}

.works-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.works-hero-lead {
  max-width: 820px;
  margin: 0 auto;
  line-height: 2;
  text-align: center;
  color: #333;
}

.works-hero-image {
  max-width: 1040px;
  margin: 36px auto 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.works-hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .works-hero-image {
    margin-top: 28px;
    border-radius: 20px;
  }

  .works-hero-image img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-title-block h1 {
    font-size: 30px;
  }

  .works-hero-lead br {
    display: none;
  }
}

.section-lead {
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 2;
  text-align: center;
}

.connect-icon {
  font-size: 32px;
  color: #009b83;
  font-weight: 700;
}

.learning-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0faf5 100%);
  border-radius: 32px;
}

.learning-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 42px 0 34px;
}

.connect-box {
  background: #8fa2ba;
  color: #fff;
  padding: 18px 64px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(13, 27, 47, 0.12);
}

.connect-icon {
  font-size: 48px;
  line-height: 1;
}

.timeline-labels {
  display: grid;
  grid-template-columns: 2fr 2fr 3fr;
  gap: 18px;
  margin: 34px auto 26px;
}

.timeline-labels div {
  border: 2px solid #55b5c7;
  color: #1f2b3a;
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.process-title h3 {
  text-align: center;
  margin: 20px auto 18px;
  font-size: 22px;
}

.process-title h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-green);
  background-color: rgb(0, 155, 131);
  margin: 10px auto 0;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  position: relative;
}

.process-step {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 14px;
  text-align: center;
  border: 2px solid #dff2eb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 44px;
  color: #55b5c7;
  font-size: 22px;
  font-weight: 700;
  z-index: 2;
}

.process-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: #ffd85a;
  color: #0d1b2f;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.process-step h3 {
  min-height: 12px;
  font-size: 14px;
  line-height: 1;
  margin: 0 0 0;
  color: #0d1b2f;
}


.process-skills {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 3px;
  text-align: center;
  border: 2px solid #dff2eb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.process-skills:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 44px;
  color: #55b5c7;
  font-size: 22px;
  font-weight: 700;
  z-index: 2;
}

.process-skills p {
  margin: 0;
}

.process-skills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fffbc2;
  border: 1px solid #fffd77;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
  font-weight: 700;
}

.learning-message strong {
  color: #fff;
}

.learning-message span {
  color: #009b83;
  font-weight: 800;
  font-size: 1.08em;
}

@media (max-width: 1024px) {
  .timeline-labels {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .learning-connect {
    flex-direction: column;
  }

  .connect-box {
    width: 100%;
    text-align: center;
    font-size: 20px;
    padding: 16px 24px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }
}

.learning-message {
  margin: 40px auto 0;
  max-width: 860px;
  background: #0d1b2f;
  color: #fff;
  padding: 28px 36px;
  border-radius: 20px;
  line-height: 2;
  text-align: center;
  font-weight: 700;
}

/* =========================================
   Schools Section
   お取り組み学校・協力企業
========================================= */

.school-section {
  background: #fff;
}

/* セクション自体の縦幅を少し詰める */
.school-section.works-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.school-section .section-lead {
  margin-bottom: 28px;
}

/* 3カラム構成は維持しつつ、全体を少しコンパクトに */
.school-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}

/* カードを小さめに */
.school-card {
  background: #f5fbf8;
  border-radius: 18px;
  padding: 22px 22px 20px;
  border-top: 5px solid #009b83;
}

/* 見出しを小さく */
.school-card h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.school-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background: #fff;
  border-radius: 999px;
  color: #0d1b2f;
  font-size: 14px;
  font-weight: 600;
  transition: .25s;
}

.school-card-tokyo {
  background: #eefaf5;
  border-top: 5px solid #009b83;
}

.school-card-tokyo span {
  border: 1.5px solid #009b83;
}

.school-card-tokyo h3 {
  color: #009b83;
}

.school-card-saitama {
  background: #fff2eb;
  border-top: 5px solid #e77d45;
}

.school-card-saitama span {
  border: 1.5px solid #e77d45;
}

.school-card-saitama h3 {
  color: #e77d45;
}

.school-card-kanagawa {
  background: #eef5ff;
  border-top: 5px solid #4f84d8;
}

.school-card-kanagawa span {
  border: 1.5px solid #4f84d8;
}

.school-card-kanagawa h3 {
  color: #4f84d8;
}

/* 小さいカード群 */
.school-small-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.school-small-group .school-card {
  min-height: auto;
}

/* タブレット */
@media (max-width: 1024px) {
  .school-grid {
    grid-template-columns: 1fr 1fr;
  }

  .school-small-group {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .school-section.works-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .school-grid,
  .school-small-group {
    grid-template-columns: 1fr;
  }

  .school-small-group {
    grid-column: auto;
  }

  .school-card {
    padding: 20px;
  }

  .school-card h3 {
    font-size: 18px;
  }

  .school-card ul {
    font-size: 13px;
    line-height: 1.7;
  }
}

.works-page {
  width: 100%;
  overflow-x: hidden;
  margin-top: 0 !important;
  color: #222;
  background: #fff;
}

.works-hero h1,
.works-section h2 {
  font-size: 32px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 700;
}

.works-hero p {
  max-width: 760px;
  margin: 0 auto;
  line-height: 2;
  text-align: center;
}

.section-en {
  color: #009b83;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.works-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  padding: 34px 20px 30px;
  text-align: center;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid #dff2eb;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 155, 131, 0.12);
  top: -45px;
  right: -35px;
}

.stat-card::after {
  content: "RESULT";
  position: absolute;
  top: 18px;
  left: 18px;
  color: #009b83;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.result-note {
  margin-top: 32px;
  text-align: right;
  font-size: 13px;
  color: #7b8794;
}

.stat-number {
  display: inline-block;
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  color: #0d1b2f;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.stat-text {
  display: inline-block;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  color: #0d1b2f;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.stat-unit {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  margin-left: 6px;
  color: #0d1b2f;
  position: relative;
  z-index: 1;
}

.stat-card p {
  margin: 18px auto 0;
  padding-top: 16px;
  max-width: 180px;
  font-size: 14px;
  line-height: 1.7;
  color: #46515c;
  border-top: 1px solid #d8ebe4;
  position: relative;
  z-index: 1;
}

.stat-card:nth-child(1) {
  background: linear-gradient(180deg, #0d1b2f 0%, #142844 100%);
  color: #fff;
  border-color: #0d1b2f;
}

.stat-card:nth-child(1)::before {
  background: rgba(255, 216, 90, 0.18);
}

.stat-card:nth-child(1)::after {
  color: #ffd85a;
}

.stat-card:nth-child(1) .stat-number,
.stat-card:nth-child(1) .stat-unit,
.stat-card:nth-child(1) p {
  color: #fff;
}

.stat-card:nth-child(1) p {
  border-top-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 56px;
  }

  .stat-card {
    padding: 32px 20px 28px;
  }
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.case-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.case-card-flyer .case-image {
  background: #f7fbf8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.case-card-flyer .case-image img {
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  padding: 32px;
}

.case-label {
  color: #009b83;
  font-size: 13px;
  font-weight: 700;
}

.case-body h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.case-body p {
  line-height: 1.9;
}

.case-body ul {
  margin-top: 16px;
  padding-left: 20px;
  line-height: 1.8;
}

.works-result {
  background: #f1f8f5;
  max-width: none;
}

.works-result>* {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.result-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.result-card span {
  display: block;
  font-size: 36px;
  color: #009b83;
  font-weight: 700;
  margin-bottom: 16px;
}

.result-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.result-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.result-rate .before,
.result-rate .after {
  font-weight: 800;
  color: #00a88f;
  line-height: 1;
}

.result-rate .arrow {
  font-size: 42px;
  color: #00a88f;
  line-height: 1;
}

.result-rate .arrow::before {
  content: "→";
}



.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.process-flow div {
  background: #0d1b2f;
  color: #fff;
  padding: 20px 10px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}

.future-section {
  background: #f0faf5;
  border-radius: 32px;
  padding: 86px 32px;
}

.future-card-wrap {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.future-card {
  background: #fff;
  border-radius: 26px;
  padding: 42px 36px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

.future-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -40px;
  top: -40px;
  background: rgba(0, 155, 131, 0.12);
}

.future-before {
  border-top: 8px solid #d9d2bd;
}

.future-after {
  background: #0d1b2f;
  color: #fff;
  border-top: 8px solid #009b83;
}

.future-label {
  color: #009b83;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.future-after .future-label {
  color: #ffd85a;
}

.future-card h3 {
  font-size: 25px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.future-after h3 {
  color: #fff;
}

.future-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 2;
}

.future-card li {
  margin-bottom: 4px;
}

.future-arrow-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.future-arrow-card span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #009b83;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 155, 131, 0.25);
}

@media (max-width: 768px) {
  .future-section {
    padding: 62px 20px;
    border-radius: 24px;
  }

  .future-card-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .future-arrow-card span {
    transform: rotate(90deg);
  }

  .future-card {
    padding: 34px 26px;
  }

  .future-card h3 {
    font-size: 21px;
  }
}

/* works page layout fix */

.works-page .works-section,
.works-page .outcome-inner {
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.works-page .works-hero,
.works-page .outcome-section {
  width: 100%;
}

.works-page .section-head {
  text-align: center;
}

.works-page .section-lead {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Astraの余白に引っ張られる場合の補正 */
body .works-page {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Works page top background full fix
   これまでの取り組み：トップの白背景を消す
========================================= */

/* Astra側の本文上余白を消す */
body:has(.works-page) .site-content,
body:has(.works-page) .ast-container,
body:has(.works-page) .entry-content {
  background: #fff;
}


/* トップヒーローを画面幅いっぱいに広げる */
.works-page .works-hero {
  background: #f1f8f5;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding: 40px 20px;
}

/* ヒーロー内の中身だけ中央寄せに戻す */
.works-page .works-hero>* {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content>.works-page:first-child {
  margin-top: 0;
}

/* Astraが固定ページに入れる余白対策 */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container.ast-no-sidebar #primary {
  padding-top: 0;
  margin-top: 0;
}

/* 固定ページタイトルや不要余白がある場合 */
body.page .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page .works-page .works-hero {
  margin-top: 0 !important;
}

/* =========================================
   Works Mobile Simplify
========================================= */

/* PCではスマホ簡略版を非表示 */
.process-mobile-summary,
.school-mobile-summary {
  display: none;
}

@media (max-width: 768px) {

  /* 全体の縦の圧を少し軽くする */
  .works-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 24px;
    line-height: 1.55;
  }

  .section-lead {
    font-size: 13px;
    line-height: 1.9;
  }

  .result-card {
    padding: 10px;
  }

  .result-grid {
    gap: 10px;
  }

  .result-rate {
    flex-direction: column;
    gap: 4px;
  }

  .result-rate .arrow {
    font-size: 36px;
  }

  .result-rate .arrow::before {
    content: "↓";
  }

  /* 実績カードは少しコンパクトに */
  .stats-grid {
    gap: 16px;
  }

  .stat-card {
    padding: 22px 18px;
  }

  .stat-number,
  .stat-text {
    font-size: 32px;
  }

  .stat-card p {
    font-size: 12px;
    line-height: 1.7;
  }

  /* 事例紹介カードを少し軽く */
  .case-card {
    display: block;
    border-radius: 18px;
  }

  .case-body {
    padding: 20px 18px;
  }

  .case-body h3 {
    font-size: 19px;
  }

  .case-body p,
  .case-body li {
    font-size: 13px;
    line-height: 1.8;
  }

  /* PC用の細かい7ステップはスマホでは非表示 */
  .learning-connect,
  .timeline-labels,
  .process-timeline {
    display: none;
  }

  /* スマホ用3ステップを表示 */
  .process-mobile-summary {
    display: grid;
    gap: 16px;
    margin-top: 28px;
  }

  .process-mobile-step {
    background: #fff;
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #009b83;
  }

  .process-mobile-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #009b83;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .process-mobile-step h3 {
    color: #0d1b2f;
    font-size: 18px;
    margin: 0 0 8px;
  }

  .process-mobile-step p {
    color: #0d1b2f;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
  }

  .learning-message {
    margin-top: 28px;
    padding: 22px 18px;
    font-size: 13px;
    line-height: 1.9;
  }

  /* PC用の詳細学校一覧はスマホでは非表示 */
  .school-grid {
    display: none;
  }

  /* スマホ用学校サマリーを表示 */
  .school-mobile-summary {
    display: grid;
    gap: 14px;
    margin-top: 28px;
  }

  .school-mobile-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    border-left: 5px solid #009b83;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  }

  .school-mobile-card h3 {
    color: #0d1b2f;
    font-size: 18px;
    margin: 0 0 8px;
  }

  .school-mobile-card p {
    color: #0d1b2f;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
  }

  /* 最後の未来セクションもスマホでは軽く */
  .future-card-wrap {
    gap: 16px;
  }

  .future-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .future-card h3 {
    font-size: 19px;
    line-height: 1.6;
  }

  .future-card li {
    font-size: 13px;
    line-height: 1.8;
  }

  .future-arrow-card {
    display: none;
  }
}