/* Corporate TOP — MV (Splide) */

.c-mv {
  position: relative;
  overflow: visible;
  background: transparent;
  padding-bottom: 52px; /* ページネーション用: 30px + ○ */
}

.c-mv__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: visible;
}

.c-mv__splide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.c-mv .splide__track {
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.c-mv .splide__list,
.c-mv .splide__slide {
  height: 100%;
}

.c-mv__link {
  display: block;
  width: 100%;
  height: 100%;
}

.corporate-site .c-mv__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 10%;
}

.corporate-site .c-mv__img--sp {
  display: none;
}

.c-mv__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 64px 0 28px;
  pointer-events: none;
  box-sizing: border-box;
  transition: opacity 1.8s ease;
}

.c-mv.is-not-first .c-mv__content {
  opacity: 0;
}

.c-mv__catch {
  color: #fff;
  font-size: clamp(calc(28px * var(--fs-scale)), 4vw, calc(52px * var(--fs-scale)));
  font-weight: var(--c-font-weight-main);
  line-height: 1.5;
  max-width: 16em;
  /* 光彩（外側）: 乗算 / #327f6b / 46% / Size54 / Spread16 / Softer 相当 */
  text-shadow:
    0 0 9px rgba(50, 127, 107, 0.46),
    0 0 18px rgba(50, 127, 107, 0.46),
    0 0 36px rgba(50, 127, 107, 0.4),
    0 0 54px rgba(50, 127, 107, 0.35);
  margin-bottom: 0;
}

/* ページネーション: MV画像の 30px 下、○間隔 18px */
.c-mv .splide__pagination {
  position: absolute;
  left: 50%;
  top: calc(100% + 30px);
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 3;
  padding: 0;
  margin: 0;
}

.c-mv .splide__pagination__page {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  border: 0;
  border-radius: 50%;
  background: #c5c5c5;
  opacity: 1;
}

.c-mv .splide__pagination__page.is-active {
  background: var(--c-primary, #398d78);
  transform: none;
}

/* 1401px以上: キャッチの左端90px */
@media screen and (min-width: 1401px) {
  .c-mv__content {
    padding: 64px 0 32px;
  }

  .c-mv__content .c-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 90px;
    padding-right: 24px;
  }
}

.c-section {
  padding: 80px 0;
}

.c-section--mint {
  background: var(--c-bg-mint);
}

.c-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 50px;
}

.c-section__title {
  font-size: clamp(calc(28px * var(--fs-scale)), 3vw, calc(40px * var(--fs-scale)));
  font-weight: var(--c-font-weight-main);
}

.c-section__title--center {
  text-align: center;
  width: fit-content;
  margin-bottom: 3rem;
}

.c-section__lead {
  margin-top: 12px;
  color: var(--c-muted);
}

/* News */
.c-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.c-news-card {
  background: #fff;
  padding: 28px 24px 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  color: inherit !important;
  overflow: visible;
  box-shadow: 9px 9px 0 0 #edede4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-news-card:hover {
  transform: translate(9px, 9px);
  box-shadow: none;
}

.c-news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.c-news-card__date {
  font-family: var(--c-font-en);
  font-size: calc(17px * var(--fs-scale));
}

.c-news-card__cat {
  display: inline-block;
  background: transparent;
  color: var(--c-primary);
  font-size: calc(16px * var(--fs-scale));
  padding-inline: 1.5em;
  border: 1px solid var(--c-primary);
}

.c-news-card__title {
  font-size: calc(16px * var(--fs-scale));
  font-weight: var(--c-font-weight-bold);
  color: var(--c-text);
  margin-bottom: 0.8rem;
}

.c-news-card__text {
  flex: 1;
  line-height: 1.8;
  margin-bottom: 0;
}

.c-news-card__more {
  align-self: flex-end;
  position: relative;
  right: auto;
  top: auto;
  transform: none;
}

/* 採用〜取り組みで共有する緑背景（bg-about） */
.c-greenband {
  position: relative;
  background: #2c7a65;
  overflow: hidden;
}

.c-greenband__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.c-greenband__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #2c7a65;
  opacity: 0.5;
  pointer-events: none;
}

.c-greenband__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 20%;
}

.c-recruit-sec {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 40px 0 0;
}

/* 採用セクション上側はページ背景で覆い、下側だけ緑写真を見せる */
.c-recruit-sec::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52%;
  background: #f6f6f1;
  z-index: 0;
}

.c-recruit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0;
  align-items: stretch;
  padding-left: 60px;
}

.c-recruit__body {
  background: #fff;
  border-radius: 96px 0 0 0;
  padding: 48px 48px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.c-recruit__badge {
  display: inline-block;
  background: var(--c-magenta);
  color: #fff;
  font-family: var(--c-font-en);
  font-size: calc(20px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
  padding: 2px 1rem;
  margin-bottom: 1rem;
}

.c-recruit__title {
  font-size: clamp(calc(28px * var(--fs-scale)), 3vw, calc(40px * var(--fs-scale)));
  margin-bottom: 16px;
  font-weight: var(--c-font-weight-main);
}

.c-recruit__text {
  color: var(--c-text);
  margin-bottom: 28px;
  line-height: 2;
  text-align: center;
  width: 100%;
  font-size: calc(22px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
}

.c-recruit__img {
  overflow: hidden;
  height: 100%;
  min-height: 280px;
}

.c-recruit__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About (私たちについて) */
.c-about {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 100px 0;
}

.c-about__inner {
  position: relative;
  z-index: 1;
}

.c-about__inner > .c-section__title {
  margin-bottom: 40px;
}

.c-about__catch {
  font-size: calc(50px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.c-about__row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(200px, 1fr);
  gap: 48px 80px;
  align-items: start;
}

.c-about__text p {
  font-size: calc(18px * var(--fs-scale));
  line-height: 2.1;
  margin-bottom: 2em;
}

.c-about__text p:last-child {
  margin-bottom: 0;
}

.c-about__img {
  overflow: hidden;
  margin-top: calc(72px * var(--fs-scale));
}

.c-about__img img {
  width: 100%;
  aspect-ratio: 714 / 972;
  object-fit: cover;
  display: block;
}

/* Initiatives */
.c-init-sec {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0;
}

/* 取り組みセクション上側はページ背景で覆い、下側だけ緑写真を見せる */
.c-init-sec::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 43%;
  background: #f6f6f1;
  z-index: 0;
}

.c-init {
  position: relative;
  z-index: 1;
  background-color: #fff;
  background-image: url("../../img/corporate/bg-grid.webp");
  background-size: 1rem;
  background-repeat: repeat;
  border-radius: 0 160px 0 0;
  margin-right: 60px;
  padding: 100px 0 130px;
}

.c-init__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 60px;
}

.c-init-card {
  position: relative;
  padding-top: 0;
}

.c-init-card:nth-child(even) {
  margin-top: 80px;
}

.c-init-card__num {
  position: absolute;
  top: 0.16em;
  left: 1rem;
  z-index: 1;
  font-family: var(--c-font-en);
  font-size: calc(72px * var(--fs-scale));
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-magenta);
  margin: 0;
  transform: translateY(-100%);
}

.c-init-card__img {
  position: relative;
  margin: calc(72px * var(--fs-scale)) 0 20px;
  overflow: visible;
}

.c-init-card__img img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  border: 1px solid var(--c-primary);
  box-sizing: border-box;
}

.c-init-card__title {
  font-size: calc(30px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
  color: var(--c-primary);
  margin-bottom: 10px;
}

.c-init-card__text {
  line-height: 1.9;
  margin-bottom: 0;
}

.c-init-card__list {
  display: flex;
  flex-direction: column;
  gap: 4px 16px;
  margin-top: 12px;
}

.c-init-card__list li {
  position: relative;
  padding-left: 1em;
}

.c-init-card__list li::before {
  content: "■";
  position: absolute;
  left: 0;
}

.c-init__cta {
  text-align: center;
  margin-top: 72px;
}

/* Sakura Group / Philosophy */
.c-section--group {
  padding: 88px 0 0;
}

.c-group__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  align-items: center;
  margin-bottom: 4rem;
}

.c-section--group > .c-container > .c-section__title {
  margin-bottom: 3rem;
}

.c-group__copy {
  line-height: 2;
  color: var(--c-text);
}

.c-group__copy p + p {
  margin-top: 1em;
}

.c-group__diagram {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.c-group__diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.c-group__panel {
  background: #dce8e1;
  border-radius: 28px;
  padding: 100px;
}

.c-group-block__btn {
  box-shadow: 9px 9px 0 0 #bbd6cc;
}

/* グリッドは独立レイヤー。下は緑(#d5e4dc)が背面に重なり、左隙間と下端から見える */
.c-lowerband {
  position: relative;
  background: transparent;
}

.c-lowerband::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6%;
  background: #d5e4dc;
  z-index: 0;
}

.c-lowerband__bg {
  position: absolute;
  z-index: 1;
  top: 160px;
  left: 60px;
  right: 0;
  bottom: 0;
  background-color: #fff;
  background-image: url("../../img/corporate/bg-grid.webp");
  background-size: 1rem;
  background-repeat: repeat;
  border-radius: 160px 0 0 0;
  pointer-events: none;
}

.c-lowerband__panel,
.c-section--facilities,
.c-section--business {
  position: relative;
  z-index: 2;
}

.c-lowerband__panel {
  padding-top: 0;
}

.c-group-block + .c-group-block {
  margin-top: 75px;
}

.c-group-block__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.c-group-block__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.c-group-block__title {
  font-size: clamp(calc(22px * var(--fs-scale)), 2.2vw, calc(30px * var(--fs-scale)));
  font-weight: var(--c-font-weight-main);
  color: var(--c-primary);
  margin-bottom: 0;
}

.c-group-block__tag {
  display: inline-block;
  padding: 0 .5rem;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  background: #fff;
  margin-bottom: 0;
  white-space: nowrap;
  font-weight: var(--c-font-weight-main);
}

.c-group-block__address {font-weight: var(--c-font-weight-main);}

.c-group-block__gallery {
  display: grid;
  gap: 20px;
}

.c-group-block__gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

.c-group-block__gallery--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 66.666%;
}

.c-group-photo {
  margin: 0;
}

.c-group-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border: 1px solid var(--c-primary);
  box-sizing: border-box;
}

.c-group-photo figcaption {
  margin-top: 10px;
  line-height: 1.6;
  color: var(--c-text);
}

/* Facility types on home */
.c-section--facilities {
  background: transparent;
  padding: 100px 0;
}

.c-section--facilities > .c-container > .c-section__title {
  margin-bottom: 3rem;
}

.c-ftypes__sub {
  text-align: center;
  font-size: calc(35px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
  color: var(--c-primary);
  margin: 0 0 28px;
}

.c-ftypes__lead {
  text-align: center;
  font-size: calc(18px * var(--fs-scale));
  line-height: 1.9;
  color: var(--c-text);
  margin: -8px 0 28px;
}

.c-ftypes__lead span {
  font-size: 14px;
}

.c-ftypes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: min(35px, 2vw);
  margin-bottom: 68px;
}

.c-ftypes__grid:last-of-type {
  margin-bottom: 0;
}

.c-ftypes__grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.c-ftype-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background: #f6f6f1;
  padding: 36px 24px 32px;
  text-align: center;
  color: inherit !important;
  border: 1px solid var(--c-primary);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.c-ftype-card:hover {
  background: var(--c-primary);
  color: #fff !important;
}

.c-ftype-card:hover .c-ftype-card__title,
.c-ftype-card:hover .c-ftype-card__text,
.c-ftype-card:hover .c-ftype-card__notes {
  color: #fff;
}

.c-ftype-card__btn {
  margin-top: auto;
  width: min(270px, 90%);
  max-width: 100%;
  flex-shrink: 0;
  box-shadow: none;
}

.c-ftype-card > :nth-last-child(2) {
  margin-bottom: 28px;
}

.c-ftype-card:hover .c-ftype-card__btn {
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary) !important;
  box-shadow: none;
  transform: none;
}

.c-ftype-card:hover .c-ftype-card__btn .c-btn__arrow {
  background: var(--c-primary);
}

.c-ftype-card:hover .c-ftype-card__btn .c-btn__arrow::after {
  border-color: #fff;
}

.c-ftype-card__icon {
  width: 170px;
  height: auto;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}

.c-ftype-card__icon img {
  width: 45%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(50%) sepia(20%) saturate(952%) hue-rotate(115deg) brightness(91%) contrast(95%);
}

.c-ftype-card--housetoll .c-ftype-card__icon img {
  width: 56%;
}

.c-ftype-card__title {
  font-size: calc(25px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
  margin-bottom: 12px;
  color: var(--c-primary);
  transition: color 0.3s ease;
}

.c-ftype-card__text {
  color: var(--c-text);
  line-height: 1.8;
  transition: color 0.3s ease;
}

.c-ftype-card__notes {
  margin-top: 12px;
  font-size: calc(14px * var(--fs-scale));
  transition: color 0.3s ease;
}

.c-ftype-card__notes span {
  display: block;
}

/* Business banners */
.c-section--business {
  padding-top: 0;
  padding-bottom: 115px;
}

.c-section--business > .c-container > .c-section__title {
  margin-bottom: 4.4rem;
}

.c-biz__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.c-biz-banner {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid var(--c-primary);
  box-shadow: 9px 9px 0 0 #d7e8e4;
  color: inherit !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.c-biz-banner:hover {
  transform: translate(9px, 9px);
  box-shadow: none;
}

.c-biz-banner__arrow {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12%;
  height: auto;
  aspect-ratio: 1/1;
  background: var(--c-primary);
  z-index: 2;
  transition: background-color 0.2s ease;
}

.c-biz-banner__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25%;
  height: auto;
  aspect-ratio: 1/1;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-65%, -50%) rotate(-45deg);
  box-sizing: border-box;
}

@media screen and (max-width: 960px) {
  .c-mv__content {
    padding: 40px 0 20px;
  }

  .c-news__grid,
  .c-recruit,
  .c-about__row,
  .c-group__intro,
  .c-group-block__head,
  .c-group-block__gallery,
  .c-group-block__gallery--2,
  .c-group-block__gallery--3,
  .c-ftypes__grid,
  .c-ftypes__grid--2,
  .c-biz__grid {
    grid-template-columns: 1fr;
  }

  .c-recruit {
    padding-left: 5%;
  }

  .c-recruit__body {
    border-radius: 56px 0 0 0;
    padding: 36px 5% 40px;
  }

  .c-recruit__img {
    min-height: 220px;
  }

  .c-recruit-sec::before {
    height: 76%;
  }

  .c-about__img {
    margin-top: 0;
  }

  .c-init {
    margin-right: 24px;
    border-radius: 0 80px 0 0;
    padding: 64px 0 56px;
  }

  .c-lowerband__bg {
    top: 96px;
    left: 24px;
    border-radius: 80px 0 0 0;
  }

  .c-group__panel {
    padding: 48px 32px;
  }

  .c-init-card:nth-child(even) {
    margin-top: 48px;
  }
}

@media screen and (max-width: 767px) {
  .c-mv__stage {
    aspect-ratio: 750 / 727;
  }

  .corporate-site .c-mv__img {
    object-position: center;
  }

  .corporate-site .c-mv__img--pc {
    display: none;
  }

  .corporate-site .c-mv__img--sp {
    display: block;
  }

  .c-mv .splide__track,
  .c-mv .splide__list,
  .c-mv .splide__slide {
    width: 100%;
    height: 100% !important;
  }

  .c-mv__content {
    align-items: flex-end;
    padding: 24px 0 16px;
  }

  /* SP: PC用の大きいぼかしだと霞むため、文字際を不透明にして発光をはっきりさせる */
  .c-mv__catch {
    text-shadow:
      0 0 3px rgb(50, 127, 107),
      0 0 8px rgba(50, 127, 107, 0.95),
      0 0 16px rgba(50, 127, 107, 0.85),
      0 0 28px rgba(50, 127, 107, 0.6);
  }

  .c-section, .c-about {
    padding: 56px 0;
  }

  .c-greenband__bg img {
    object-position: center 46%;
  }

  .c-section--business {
    padding-top: 0;
  }

  .c-recruit-sec {
    padding-top: 48px;
  }

  .c-init {
    margin-right: 5%;
    border-radius: 0 48px 0 0;
  }

  .c-lowerband__bg {
    top: 64px;
    left: 0;
    border-radius: 48px 0 0 0;
  }

  .c-lowerband::after {
    height: 160px;
  }

  .c-group__panel {
    padding-inline: 20px;
  }

  .c-init__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .c-init-card:nth-child(even) {
    margin-top: 0;
  }

  .c-init-card__num {
    font-size: calc(56px * var(--fs-scale));
  }

  .c-init-card__img {
    margin-top: calc(56px * var(--fs-scale));
  }

  .c-init__cta {
    margin-top: 40px;
  }

  .c-group__intro {
    margin-bottom: 0;
  }

  .c-group-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .c-group-block__head,
  .c-group-block__meta,
  .c-group-block__title-row {
    display: contents;
  }

  .c-group-block__title {
    order: 1;
  }

  .c-group-block__address {
    order: 2;
    margin-bottom: 0;
  }

  .c-group-block__tag {
    order: 3;
    white-space: normal;
    width: fit-content;
  }

  .c-group-block__gallery {
    order: 4;
    margin-top: 8px;
  }

  .c-group-block__btn {
    order: 5;
    width: 100%;
    margin-top: 8px;
  }

  .c-group-block__gallery--2 {
    max-width: none;
  }

  .c-init-card__list {
    grid-template-columns: 1fr;
  }

  /* お知らせ（SP: 見出し中央 → カード縦積み → 一覧ボタン） */
  .c-news .c-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .c-news .c-section__head {
    display: contents;
  }

  .c-news .c-section__title {
    order: 1;
    display: table;
    margin: 0 auto 28px;
  }

  .c-news__grid {
    order: 2;
    width: 100%;
    gap: 20px;
  }

  .c-news__btn {
    order: 3;
    margin-top: 36px;
    width: min(270px, 100%);
  }

  .c-news-card {
    min-height: 0;
    padding: 22px 18px 16px;
    box-shadow: 6px 6px 0 0 #edede4;
  }

  .c-news-card:hover,
  .c-news-card.c-reveal.is-inview:hover {
    transform: translate(6px, 6px);
  }

  .c-news-card__meta {
    margin-bottom: 12px;
    gap: 8px;
  }

  .c-news-card__cat {
    padding-inline: 1.2em;
  }

  .c-recruit__text,
  .c-news-card__cat,
  .c-news-card__text,
  .c-init-card__text,
  .c-group__copy p,
  .c-ftype-card__text {
    font-size: 16px;
  }

  .c-news-card__date {
    font-size: 17px;
  }

  .c-news-card__title,
  .c-ftypes__sub {
    font-size: 18px;
  }

  .c-init-card__title {
    font-size: 20px;
  }

  .c-about__catch {
    font-size: 25px;
  }
}
