@charset "UTF-8";

/* ========================================
   page/top.css
   トップページ専用
   ======================================== */

body.home .p-cb {
  display: block;
}

body.home .p-cb__item {
  margin-top: 56px;
}

/* ========================================
   main visual
   ======================================== */

body.home .p-header-slider {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 122, 67, 0.88), rgba(9, 94, 51, 0.82)),
    linear-gradient(180deg, #dff4e6, #f5fbf7);
}

body.home .p-header-slider__item {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 62vh;
}

body.home .p-header-content {
  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
  padding: 100px 0 90px;
}

body.home .p-header-content__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

body.home .p-header-content__eyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home .p-header-content__title {
  display: inline-block;
  padding: 0;
}

body.home .p-header-content__title span {
  display: block;
  font-size: clamp(2.8rem, 4vw, 5.2rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

body.home .p-header-content__lead {
  margin-top: 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.8rem;
  line-height: 1.9;
}

body.home .p-header-content__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.p-hero__sub {
  display: block;
  font-size: 0.7em !important;
  margin-top: 6px;
}

body.home .p-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-main-dark);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

body.home .p-hero-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

body.home .p-hero-btn--sub {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

body.home .p-header-slider__item-img {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ========================================
   alert（重要告知）
   ======================================== */

body.home .p-index-alert {
  margin-block: 24px;
}

body.home .p-index-alert__text {
  padding: 18px 22px;
  background: #fff4e5;
  border: 1px solid #f0d4a8;
  border-left: 6px solid #f59e0b;
  color: #7a4e00;
  font-size: 1.5rem;
  line-height: 1.8;
}

body.home .p-index-alert strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 700;
}

/* ========================================
   summary
   ======================================== */

body.home .p-index-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

body.home .p-index-summary__item {
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fcfa, #f1f7f3);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

body.home .p-index-summary__label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text-light);
  font-size: 1.3rem;
  font-weight: 700;
}

body.home .p-index-summary__value {
  display: block;
  color: var(--color-main-dark);
  font-size: 2rem;
  line-height: 1.5;
  font-weight: 700;
}

/* ========================================
   common cards on top
   ======================================== */

body.home .p-index-content01,
body.home .p-index-content03,
body.home .p-index-content07,
body.home .p-index-support__card {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}

/* ========================================
   purpose
   ======================================== */

body.home .p-index-content01 {
  margin-top: 36px;
  padding: 56px 40px;
  text-align: center;
}

body.home .p-section-title,
body.home .p-cb__item-title,
body.home .entry-title {
  color: var(--color-main-dark);
  font-size: clamp(2.4rem, 2.8vw, 3rem);
  line-height: 1.45;
  font-weight: 700;
}

body.home .p-index-content01__desc {
  max-width: 880px;
  margin: 0 auto;
  font-size: 1.7rem;
  color: var(--color-text-light);
  line-height: 1.95;
}

/* ========================================
   three boxes
   ======================================== */

body.home .p-index-content02 {
  margin-top: 40px;
}

body.home .p-three-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.home .p-three-box__item a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(14, 122, 67, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home .p-three-box__item a:hover {
  transform: translateY(-4px);
  opacity: 1;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

body.home .p-article12__header {
  position: relative;
  z-index: 3;
  padding: 28px 24px 0;
}

body.home .p-article12__title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-main-dark);
  transition: color 0.3s ease;
}

body.home .p-article12__desc {
  position: relative;
  z-index: 3;
  padding: 12px 24px 110px;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

body.home .p-article12__img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  overflow: hidden;
  background: #dfe8e2;
  z-index: 1;
  transition: height 0.5s ease;
}

body.home .p-article12__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

body.home .p-three-box__item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.home .p-three-box__item a:hover .p-article12__img {
  height: 100%;
}

body.home .p-three-box__item a:hover .p-article12__img img {
  transform: scale(1.05);
}

body.home .p-three-box__item a:hover::after {
  opacity: 1;
}

body.home .p-three-box__item a:hover .p-article12__title,
body.home .p-three-box__item a:hover .p-article12__desc {
  color: #fff;
}

/* ========================================
   support section
   ======================================== */

body.home .p-index-support__card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 34px;
  background: linear-gradient(135deg, rgba(14, 122, 67, 0.08), rgba(14, 122, 67, 0.02));
}

body.home .p-index-support__title {
  margin: 0 0 10px;
  color: var(--color-main-dark);
  font-size: 2.4rem;
  line-height: 1.5;
  font-weight: 700;
}

body.home .p-index-support__desc {
  margin: 0;
  color: var(--color-text-light);
  font-size: 1.6rem;
  line-height: 1.9;
}

body.home .p-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--color-main);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

body.home .p-support-btn:hover {
  background: var(--color-main-dark);
  opacity: 1;
}

/* ========================================
   info section
   ======================================== */

body.home .p-index-content07 {
  padding: 48px 40px;
}

body.home .tcdce-body {
  display: grid;
  gap: 24px;
}

body.home .p-home-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.home .p-home-info-card {
  padding: 24px;
  border-radius: 18px;
  background: #f7f9f8;
  border: 1px solid var(--color-border);
}

body.home .p-home-info-card p,
body.home .p-home-info-card .tcdce-box {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 1.6rem;
  line-height: 1.9;
}

body.home .custom_box strong {
  color: var(--color-text);
}

body.home .p-home-info__time {
  font-size: 1.4rem;
}

/* ========================================
   news
   ======================================== */

body.home .p-index-content03 {
  padding: 48px 40px;
}

body.home .p-cb__item-header {
  margin-bottom: 12px;
}

body.home .p-news-list {
  display: block;
}

body.home .p-news-list__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

body.home .p-article04__date {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.04em;
}

body.home .p-article04__title {
  font-size: 1.7rem;
  line-height: 1.7;
  font-weight: 600;
}

body.home .p-article04__title a:hover {
  color: var(--color-main);
  opacity: 1;
}

/* ========================================
   responsive
   ======================================== */

@media (max-width: 1024px) {
  body.home .p-cb__item {
    margin-top: 44px;
  }

  body.home .p-header-slider__item {
    min-height: 56vh;
  }

  body.home .p-header-content {
    padding: 80px 0 72px;
  }

  body.home .p-index-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  body.home .p-three-box {
    grid-template-columns: 1fr;
  }

  body.home .p-three-box__item a {
    min-height: 300px;
  }

  body.home .p-article12__desc {
    padding-bottom: 96px;
  }

  body.home .p-article12__img {
    height: 58%;
  }

  body.home .p-index-support__card,
  body.home .p-home-info-grid {
    grid-template-columns: 1fr;
  }

  body.home .p-index-content01,
  body.home .p-index-content03,
  body.home .p-index-content07 {
    padding-inline: 32px;
  }
}

@media (max-width: 767px) {
  body.home .p-cb__item {
    margin-top: 32px;
  }

  body.home .p-header-slider__item {
    min-height: auto;
  }

  body.home .p-header-content {
    width: min(100% - 28px, var(--content-width));
    padding: 60px 0 56px;
  }

  body.home .p-header-content__eyebrow {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  body.home .p-header-content__title span {
    font-size: clamp(2.8rem, 8vw, 3.8rem);
    line-height: 1.4;
  }

  body.home .p-header-content__lead {
    margin-top: 14px;
    font-size: 1.5rem;
    line-height: 1.8;
  }

  body.home .p-header-content__buttons {
    flex-direction: column;
    gap: 10px;
  }

  body.home .p-hero-btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }

  body.home .p-index-alert {
    margin-block: 20px;
  }

  body.home .p-index-alert__text {
    padding: 16px 16px 16px 18px;
    font-size: 1.4rem;
  }

  body.home .p-index-alert strong {
    font-size: 1.5rem;
  }


  body.home .p-index-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.home .p-index-summary__item {
    padding: 16px 16px;
    border-radius: 16px;
  }

  body.home .p-index-summary__value {
    font-size: 1.8rem;
  }

  body.home .p-index-content01,
  body.home .p-index-content03,
  body.home .p-index-content07,
  body.home .p-index-support__card {
    padding: 32px 20px;
    border-radius: 18px;
  }

  body.home .p-section-title,
  body.home .p-cb__item-title,
  body.home .entry-title,
  body.home .p-index-support__title {
    font-size: 2.2rem;
  }

  body.home .p-index-content01 {
    margin-top: 28px;
    text-align: left;
  }

  body.home .p-index-content01__desc {
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.85;
  }

  body.home .p-three-box {
    gap: 16px;
  }

  body.home .p-three-box__item a {
    min-height: 260px;
  }

  body.home .p-article12__header {
    padding: 22px 18px 0;
  }

  body.home .p-article12__title {
    font-size: 2rem;
  }

  body.home .p-article12__desc {
    padding: 10px 18px 84px;
    font-size: 1.4rem;
    line-height: 1.75;
  }

  body.home .p-article12__img {
    height: 52%;
  }

  body.home .p-index-support__card {
    gap: 18px;
  }

  body.home .p-index-support__desc {
    font-size: 1.5rem;
    line-height: 1.85;
  }

  body.home .p-support-btn {
    width: 100%;
    min-width: 0;
  }

  body.home .p-index-content03,
  body.home .p-index-content07 {
    padding: 32px 20px;
  }

  body.home .p-home-info-card {
    padding: 20px 18px;
  }

  body.home .p-home-info-card p,
  body.home .p-home-info-card .tcdce-box {
    font-size: 1.5rem;
    line-height: 1.85;
  }

  body.home .p-news-list__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  body.home .p-article04__date {
    font-size: 1.4rem;
  }

  body.home .p-article04__title {
    font-size: 1.6rem;
    line-height: 1.7;
  }
}
