/* page */
.page-content {
  background-color: var(--cl-bg-base);
  background-repeat: repeat;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
  overflow-x: hidden;
}
.page-text p {
  margin-top: 40px;
}
.page__content {
  border-radius: 50px;
  background-color: var(--cl-bg-base);
  padding-bottom: 40px;
}



.page-title03 {
  color: var(--cl-text);
  margin-top: 30px;
}

.page-careers__card-list{
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(0, 400px));
  grid-auto-rows: auto; /* 既定 */
  height: auto;
  /* 親の高さは固定しない */
}
.page-careers__card-list img {
  aspect-ratio: 400 / 225;
}

.page-careers__card-list .card:hover{
  opacity:.7;
}

.page-careers-message {
  background: linear-gradient(to right, var(--cl-bg-secondary) 0%, var(--cl-bg-secondary) 50%, var(--cl-bg-primary) 50%, var(--cl-bg-primary) 100%);
}
.page-careers-message__contents {
  position: relative;
  display: flex;
  padding: 20px 10px 20px;

}
.page-careers-message__article {
  
  width: 40%;
}
.page-careers-message__main-message {
  position: relative;
  z-index: 2;
  font-family:Zen Maru Gothic;
  font-size: var(--fz40);
  font-weight: 800;
  font-style: italic;
  color: var(--cl-bg-primary);
  text-wrap: nowrap;
  text-overflow: clip;
  letter-spacing: 0.1em;
}
.pos-color{
  position: relative;
  color: #000;           /* 左半分の“文字色” */
  display: inline-block;
  font-size: var(--fz20);
}

/* 右半分だけ“白い文字色”を重ねる（背景は使わない） */
.pos-color::after{
  content: attr(data-text);
  position: absolute; inset: 0;
  color: #fff;          /* 右半分の“文字色” */
  clip-path: inset(0 0 0 50%);  /* 左|上|下|右 の順：左50%を切り落とす＝右半分だけ表示 */
  pointer-events: none;
  /* フォント揃え（ズレ防止） */
  font: inherit; line-height: inherit; letter-spacing: inherit;
}



.page-careers-message__article .text {
  line-height: 1.5;
}
.page-careers-message__bg {
  width: 70%;
  
  overflow: hidden;
  
}
.page-careers-message__bg img {
  object-fit: cover;
  border-radius: 50px;
  aspect-ratio: 3/2;
  height:
  100%;
  max-height: 500px;
  min-height: 250px;
}

.page-philosophy-philosophy {
  background: var(--cl-bg-linear-gradient);
  padding: 40px 0;
  text-align: center;
}
.page-philosophy-philosophy__title-content {
  position: relative;
  display: inline-block;
  font-size: var(--fz48);
  font-weight: 800;
  font-style: italic;
  color: var(--cl-text-accent);
}

.page-philosophy-philosophy__text {
  max-width: 90%;
  display: inline-block;
  padding: 20px;
  color: var(--cl-text);
  background-color: 	var(--cl-bg-secondary);
  font-size: var(--fz24);
  border-radius: 20px;
}
.page-philosophy-philosophy__text span {
  color: var(--cl-bg-accent);
  font-weight: 800;
  font-style: italic;
  font-size: 120%;
}
.page-philosophy-vision .title-first-letter:first-letter,
.page-philosophy-mission .title-first-letter:first-letter,
.page-philosophy-value .title-first-letter:first-letter{
  font-size: 170%;
  line-height: 1;
  color: var(--cl-bg-accent);
  border-bottom: 5px solid var(--cl-bg-accent);
}
.page-philosophy-vision .title-circle,
.page-philosophy-mission .title-circle,
.page-philosophy-value .title-circle{
  font-size: var(--fz24)
}
.page-philosophy-mission .title-circle-after {
  margin-left: auto;
}
.page-philosophy-value,
.page-philosophy-mission,
.page-philosophy-vision {
  padding: 4%;
  margin-left: auto;
  margin-right: 10%;
}
.page-philosophy-value,
.page-philosophy-vision {
  border-left: 2px solid var(--cl-bg-primary);
  border-bottom: 2px solid var(--cl-bg-primary);
}

.page-philosophy-mission {

  border-right: 2px solid var(--cl-bg-primary);
  border-bottom: 2px solid var(--cl-bg-primary);
}

.page-product-ch__title {
	font-size: var(--fz24);
}


.page-product-ch__card-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.page-product-ch-mv {
  position: relative;
  background: linear-gradient(to left, var(--cl-bg-primary) 50%, var(--cl-bg-accent) 50% );
  padding-top: 40px;
  min-height: 500px;
  padding-bottom: 130px;
}


.page-product-ch-mv::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 2000px;
  height: 200px;
  z-index: 1;

  background: url("../images/common/wave-green.svg")no-repeat bottom center;
  background-size: 100% 100%; /* 波をぴったりフィット */
  transform: translateY(1px); /* 白スジ防止 */
}

.page-product-ch-mv.page-product-ch-mv--yukinko {
  padding-bottom: 150px;
}

.page-product-ch-mv.page-product-ch-mv--yukinko::after {
  background: url("../images/common/wave-basecolor-mirror.svg")no-repeat bottom center;
}



.page-product-ch-mv__content {
  position: relative;

}

.page-product-ch-mv__bg {
  position: relative;
  aspect-ratio: 16 / 8;
  width: 100%;

  border-top-left-radius: 300px;
  /* 左上 */
  border-top-right-radius: 50px;
  /* 右上 */
  border-bottom-right-radius: 300px;
  /* 右下 */
  border-bottom-left-radius: 50px;
  /* 左下 */
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  min-height: 500px;
  max-height: 80vh;
}
.page-product-ch-mv__bg img {
  min-height: 100%;
  max-height: 100%;
  height: 100%;
}
.page-product-ch-mv__title-content {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  
  font-size: var(--fz56);
}
.page-product-ch-mv__title {
  display: inline-block;
  font-size: clamp(var(--fz24), 7vw, var(--fz48));
  font-weight: bold;
  text-align: center;
  background-color: white;
  border-radius: 20px;
  padding-left: 20px;
  padding-right: 20px;
  white-space: nowrap;
  overflow: hidden;

}
.page-product-ch-mv__title:not(:first-child) {
  margin-top: 20px;
}

.page-product-ch-mv__title span,
.page-product-ch-mv__hello-title span {
  color: var(--cl-bg-accent);
  font-weight: 800;
  font-style: italic;
}

.page-product-ch-mv__title.yukinko span {
  color: var(--cl-bg-accent);
}
.page-product-ch-mv__hello-content {
  text-align: center;
  
}
.page-product-ch-mv__hello-title {
  font-size: clamp(var(--fz24), 4vw, var(--fz40));
  color: var(--cl-bg-accent02);
  text-align: center;
  font-weight: 700;
  display: inline-block;
  background-color: var(--cl-bg-secondary);
  padding: 20px;
  overflow: hidden;
  border-radius: 20px;
  white-space: nowrap;
}
.page-product-ch-mv__hello-title.yukinko {
  font-size: clamp(var(--fz20), 4vw, var(--fz24));
  white-space: wrap;

}
.page-product-ch-mv__hello-logos {
  display: flex;
}
.page-product-ch-mv__hello-logos > .mascot {
  width: clamp(50px, 15vw, 300px);
  margin-left: auto;
}
.page-product-ch-mv__hello-logos > .logo {
  width: 50%;
  height: auto;
}
.page-product-ch-mv__hello-logos > .logo img {
  object-fit: contain;
}

.page-product-ch-mv__hello-title-row {
  display: inline-block;
  text-align: left;
  font-size: clamp(var(--fz20), 2vw, var(--fz24));
  line-height: 1.5;
}
.page-product-ch-mv__hello-title-row span {
  color: var(--cl-bg-accent);
}
.page-product-ch__card-list .card {
	flex: 1;
}
.page-product-ch-mv__logo {
  width: 40%;
  margin-left: auto;
  margin-right: auto;
}
.page-product-ch-reason {
  background: var(--cl-bg-primary);
  position: relative;
  padding-bottom: 150px;
}
.page-product-ch-reason::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 200px;
  z-index: 1;

  background: url("../images/common/wave-basecolor.svg") no-repeat bottom center;
  background-size: 100% 100%; /* 波をぴったりフィット */
  transform: translateY(1px); /* 白スジ防止 */
}
.page-product-ch-reason__list {
  display: flex;
  gap: 30px;
  justify-content: center;
  padding-left: 20px;
}

.page-product-ch-reason__item {
  position: relative;
  max-width: 350px;
  padding: 20px;
  background-color: var(--cl-bg-secondary);
  border-radius: 30px;
}

.page-product-ch-reason__item h3 {
  font-size: clamp(var(--fz20), 3vw, var(--fz32));
  color: var(--cl-bg-primary);
  margin-bottom: 20px;
}
.page-product-ch-reason__img {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.page-product-ch-type {
  position: relative;
  padding-bottom: 150px;
}

.page-product-ch-type::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 2000px;
  height: 200px;
  z-index: 1;

  background: url("../images/common/wave-white.svg") no-repeat bottom center;
  background-size: 100% 100%; /* 波をぴったりフィット */
  transform: translateY(1px); /* 白スジ防止 */
}
.page-product-ch-type  p {
  font-size: var(--fz24);
}

.page-product-ch-type__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  column-gap: 30px;
  row-gap: 30px;
}
.page-product-ch-type__item {
  position: relative;
  text-align: center;
}
.page-product-ch-type__item p {
  display: inline-block;
  text-align: left;
}
.page-product-ch-flow {
  position: relative;
  padding-bottom: 200px;
  background-color: var(--cl-bg-secondary);
}


.page-product-ch-flow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 2000px;
  height: 200px;
  z-index: 1;
  background: url("../images/common/wave_flip_vertical_white.svg") no-repeat bottom center;
}

.page-product-ch-works {
  margin-top: -150px;
  position: relative;
  padding-bottom: 150px;
  background: linear-gradient(to left, var(--cl-bg-secondary) 50%, var(--cl-bg-primary) 50% );
}
.page-product-ch-works.yukinko::after {
  background: url('../images/common/wave-basecolor.svg');
}
.page-product-ch-works::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 2000px;
  height: 200px;
  z-index: 1;


  background-size: 100% 100%; /* 波をぴったりフィット */
  transform: translateY(1px); /* 白スジ防止 */
}

.page-product-ch-merit {
  position: relative;
  padding-bottom: 250px;
}

.page-product-ch-merit::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 2000px;
  height: 200px;
  z-index: 1;

  background: url("../images/common/wave_flip_vertical_basecolor.svg") no-repeat bottom center;
  background-size: 100% 100%; /* 波をぴったりフィット */
  transform: translateY(1px); /* 白スジ防止 */
}

.page-product-ch-merit__list {
  display: grid;
  grid-template-columns: 1fr; 
  column-gap: 30px;
  row-gap: 40px;
  overflow: hidden;
}
.page-product-ch-merit__item {
  display: flex;
  position: relative;
  text-align: center;
  justify-content: space-between;
  align-items: start;
}
.page-product-ch-merit__item:nth-child(even) {
  flex-direction: row-reverse;
}
.page-product-ch-merit__item > .leaf-bg {
  width: 45%;
}
.page-product-ch-merit__item > .leaf-bg > .leaf-bg__caption.leaf-bg__caption--left {
    left: 20%;
}
.page-product-ch-merit__item > .leaf-bg > .leaf-bg__caption.leaf-bg__caption--right {
    left: 60%;
}
.page-product-ch-merit__item > .leaf-bg > img {
  object-position: bottom center;
}

.page-product-ch-merit__item > p,
.page-product-ch-merit__item > .article {
  width: 50%;
  text-align: left
}
.page-product-ch-merit__item p {
  display: inline-block;
  text-align: left;
}

@media screen and (max-width:1000px) {
  .page-careers-message__main-message span{
    display: block;
    padding-left: 40px;
  }
  .page-product-ch-mv__title {
    font-size: 7vw;
  }

}

@media screen and (max-width: 800px) {
  .page-product-ch-merit__item, .page-product-ch-merit__item:nth-child(even) {
    flex-direction: column;
  }
  .page-product-ch-merit__item > p,
  .page-product-ch-merit__item > .article,
  .page-product-ch-merit__item > .leaf-bg
  {
    width: 100%;
  }
  .page-product-ch-merit__item > .leaf-bg > .leaf-bg__caption.leaf-bg__caption--left,
  .page-product-ch-merit__item > .leaf-bg > .leaf-bg__caption.leaf-bg__caption--right
  {
      left: 50%;
  }
  .page-product-ch-merit__item >.mt60,
  .page-product-ch-merit__item > p,
  .page-product-ch-merit__item > .article
  {
    margin-top: 20px;
  }

  .leaf-bg--caption_yukinko .leaf-bg__caption {
    font-size: clamp(var(--fz20), 2vw, var(--fz32));
  }
}

@media screen and (max-width: 600px) {
  .page {
    padding-bottom: 20px;
  }
  .page-title-circle {
    margin-top: 20px;
  }
  .page-title-circle::before {
    width: 20px;
    height: 20px;
  }
  .page-text p {
    margin-top: 20px;
  }
  .page-careers-message__main-message {
    text-wrap: wrap;
    text-overflow: clip;
    min-width: 80vw;
    font-size: var(--fz32)
  }
  .page-careers-message__main-message span{
    display: inline;
    padding-left: 0;
  }
  .page-careers-message__main-message.mt40 {
    margin-top: 0;
  }
  .page-product-ch-mv__hello-title {
    white-space: wrap;
    text-align: left;
  }
  .page-product-ch-mv__hello-title br{
    display: none;
  }

  .page-product-ch-reason__list {
    flex-direction: column;
    align-items: center;
  }
  .page-product-ch-mv__bg {
    border-top-left-radius: 150px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 150px;
    border-bottom-left-radius: 25px;
  }
  .page-product-ch-type__list {
    grid-template-columns: 1fr;
    width: 100%;
    place-items: center;
  }
  .page-product-ch-type__item {
    width: 100%;
    max-width: 400px;
  }

  .page-product-ch-type__item .leaf-bg,
  .page-product-ch-type__item .leaf-bg img {
    min-width: 100%;
    max-width: 100%;
  }
  .page-product-ch-merit__item > .article > p {
    margin-top: 20px;
  }
  .page-philosophy-value,
  .page-philosophy-mission,
  .page-philosophy-vision {
    margin-right: auto;
  }
}