#mainwrapper {
  background-color: #ebefe1;
  color: #363636;
}

.lower-nav ul.main li:last-of-type button img {
  filter: initial;
}

* {
  margin-block-end: 0;
  margin-block-start: 0;
}


.main-title {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('/img/about/about-bg.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro:before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translatex(50%);
  box-sizing: border-box;
  border-right: calc(50vw - 10px) solid transparent;
  border-left: calc(50vw - 10px) solid transparent;
  border-top: 100px solid #000;
}

.main-title h1 {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
}

.intro {
  margin: 0 auto;
  position: relative;
  padding-top: 200px;
}

.intro .head-box {
  text-align: center;
  margin-bottom: 100px;
  padding: 20px 0;
  background-image: url('/img/about/question-icon.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: all 1s ease;
  transform: translateY(60px);
}

.intro .head-box.anim {
  opacity: 1;
  transform: translateY(0);
}

.intro .head-box h2 {
  font-size: 30px;
  padding: 20px 0;
  margin-bottom: 50px;
  line-height: 1;
  margin-block-start: 0;
  margin-block-end: 0;
}

.intro .head-box p {
  line-height: 20px;
}

.intro .text-box .text {
  font-size: 24px;
  line-height: 2.6;
  text-align: center;
  opacity: 0;
  transition: all 1s ease;
  transform: translateY(60px);
}

.intro .text-box .text.anim {
  opacity: 1;
  transform: translateY(0);
}

.intro .text-box .text:not(:last-of-type) {
  margin-bottom: 100px;
}

.marker {
  position: relative;
}

.marker::before {
  background-color: rgba(143, 195, 31, 0.2);
  content: '';
  position: absolute;
  bottom: -3px;
  display: inline-block;
  opacity: 1;
  width: 100%;
  height: 10px;
  transform: scaleX(0) skewX(-50deg);
  transform-origin-x: 0;
  z-index: 0;
  transition: all 1s ease;
  transition-delay: 0.5s;
}

.anim .marker::before {
  transform: scaleX(1) skewX(-50deg);
}


.about-list {
  width: 1400px;
  margin: 240px auto 0;
  display: flex;
  gap: 100px 25px;
  flex-wrap: wrap;
  padding-inline-start: 0;
  box-sizing: border-box;
}

.about-list li {
  width: 450px;
  list-style: none;
  transition: all 1s ease;
  opacity: 0;
  transform: translateY(60px);
}

.about-list li.anim {
  opacity: 1;
  transform: translateY(0);
}

.about-list li a {
  position: relative;
  display: block;
  aspect-ratio: 5/4;
  width: 100%;
  border-radius: 20px 0 20px 0;
  overflow: hidden;
}

.about-list li a .image {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin-block-start: 0;
  margin-block-end: 0;
}

.about-list li a .image img {
  transform: scale(1);
  transition: all .3s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-list li a:hover .image img {
  transform: scale(1.2);
}


/* カード全体 */
.about-list li a .text-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  z-index: 2;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 0 20px 0 0;
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* タイトルエリア */
.about-list li a .text-box .title {
  position: relative;
  margin: 0;
  font-size: 22px;
  color: #363636;
  line-height: 1.4;
  background-color: #eef2e6;

  /* 【初期状態】上下左右に均等な【15px】の余白を持たせます 
     （右側はアイコンと被らないように55px［15px + アイコン幅32px + 余裕分8px］）
  */
  padding: 15px 55px 15px 15px;

  /* パディングが変化するアニメーションを適用 */
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.35s, color 0.35s;
}


.about-list li a:hover .text-box .title {
  color: #8fc31f;
  background-color: #363636;
}


/* 再生マーク（常に.titleの上下中央を維持） */
.about-list li a .text-box .title .icon {
  position: absolute;
  /* .titleの右側の余白（15px分）の内側に配置 */
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 2px solid #363636;
  transition: all .3s;
}

.about-list li a .text-box .title .icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #555555;
  border-right: 0;
  transition: all .3s;
}

.about-list li a:hover .text-box .title .icon {
  border: 2px solid #8fc31f;
}

.about-list li a:hover .text-box .title .icon::before {
  border-left-color: #8fc31f;
}

/* 説明文の初期状態 */
.about-list li a .text-box .description {
  margin: 0;
  font-size: 16px;
  color: #363636;
  line-height: 1.5;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;

  /* 初期状態は左右のみ15px、上下は0 */
  padding: 0 15px 0 15px;

  transform: translateY(10px);

  /* パディングの変化速度もGridの拡張に100%シンクロさせます */
  transition:
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    padding 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.2s ease-out,
    visibility 0.35s;
}


/* ========================================================
   マウスオーバー（ホバー）時の動き
========================================================= */

/* ① ホバー時、座布団のグリッドを広げる */
.about-list li a:hover .text-box {
  grid-template-rows: auto 1fr;
}

/* ② ホバー時、見出しエリアの下余白を確定 */
.about-list li a:hover .text-box .title {
  /* ホバー時も自身の持つ下余白【15px】をキープします */
  padding-bottom: 15px;
}

/* ③ ホバー時、説明文を表示して上下の余白を確定 */
.about-list li a:hover .text-box .description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);

  /* 【修正】
     上下左右すべてのパディングを【15px】に統一しました。
     これにより、.title の padding-bottom(15px) と合算されて、
     見出しと説明文の間の距離が綺麗な【30px】になります。
     
     下パディングも【15px】になるため、カード最下部の余白も
     全体と綺麗に揃います。
  */
  padding: 15px 15px 15px 15px;
}



.service-contents {
  width: 880px;
  margin: 240px auto;
  box-sizing: border-box;
  padding: 50px 80px 80px;
  background-color: #363636;
  border-radius: 20px 0 20px 0;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.service-contents.anim {
  opacity: 1;
  transform: translateY(0);
}


.service-contents .service-head {
  position: relative;
  color: #fff;
  font-size: 30px;
  padding: 15px 32px;
  line-height: 1;
  margin-block-end: 0;
  margin-block-start: 0;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
}


.service-contents .service-head::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  transform: translateX(-100%);
  width: 40px;
  height: 1px;
  background-color: #fff;
}

.service-contents .service-box {
  padding: 32px 0 0 32px;
  display: flex;
  border-left: 1px solid #fff;
}

.service-contents .service-box .image {
  width: 48%;
}

.service-contents .service-box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-contents .service-box .text-contents {
  margin-left: 4%;
  width: 48%;
  display: flex;
  flex-direction: column;
}

.service-contents .service-box .text-contents .text {
  font-size: 16px;
  line-height: 2;
  color: #fff;
}

.service-contents .service-box .text-contents .btn {
  width: 240px;
  margin-top: auto;
}

.service-contents .service-box .text-contents .btn a {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  border: 2px solid #fff;
  color: #fff;
  transition: all .3s;
  line-height: 1;
}

.service-contents .service-box .text-contents .btn a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  border-right: 0;
  transition: all .3s;
}

.service-contents .service-box .text-contents .btn a:hover {
  color: #8fc31f;
}

.service-contents .service-box .text-contents .btn a:hover::before {
  border-left-color: #8fc31f;
  right: 8px;
}



@media screen and (max-width:1400px) {
  .about-list {
    width: 100%;
    gap: 3vw 2%;
    padding: 0 20px;
  }

  .about-list li {
    width: 32%;
  }
}


@media screen and (max-width:1100px) {
  .about-list {
    gap: 5vw 4%;
    padding: 0 20px;
  }

  .about-list li {
    width: 48%;
  }

}


@media screen and (max-width:960px) {
  .about-list li a .text-box {
    width: 90%;
  }

  .about-list li a .text-box .title {
    font-size: 20px;
  }

  .service {
    padding: 0 20px;
  }

  .service-contents {
    width: 100%;
  }
}

@media screen and (max-width:800px) {
  .main-title:after {
    border-right: calc(50vw - 0px) solid transparent;
    border-left: calc(50vw - 0px) solid transparent;
  }

  .main-title h1 {
    font-size: 8vw;
  }

  .intro {
    margin: 0 auto;
    padding-top: 20vw;
  }

  .intro .head-box {
    margin-bottom: 12vw;
  }

  .intro .head-box h2 {
    font-size: 5vw;
  }

  .intro .head-box p {
    font-size: 2vw;
  }

  .intro .text-box .text:not(:last-of-type) {
    margin-bottom: 12vw;
  }

  .intro .text-box .text {
    font-size: 3vw;
  }

  .about-list {
    margin: 20vw auto 0;
    gap: 8vw 4%;
  }

  .service-contents {
    margin: 20vw auto;
    box-sizing: border-box;
    padding: 8vw;
  }

  .service-contents .service-head {
    font-size: 4vw;
    padding: 2vw 4vw;
  }

  .service-contents .service-head::before {
    width: 5vw;
  }

  .service-contents .service-box {
    padding: 4vw 0 0 4vw;
  }

  .service-contents .service-box .image {
    width: 36%;
  }

  .service-contents .service-box .text-contents {
    width: 60%;
  }

  .service-contents .service-box .text-contents .text {
    font-size: 2.4vw;
  }

  .service-contents .service-box .text-contents .btn {
    margin-top: 20px;
  }
}


@media screen and (max-width:600px) {
  .about-list {
    gap: 12vw 0;
  }

  .intro:before {
    border-top: 10vw solid #000;
  }

  .intro .head-box p {
    font-size: 3vw;
  }

  .about-list li {
    width: 100%;
  }

  .about-list li a .text-box .title {
    font-size: 5vw;
  }

  .about-list li a .text-box .description {
    margin: 0;
    font-size: 3vw;
  }

  .service-contents .service-box {
    flex-direction: column;
  }

  .service-contents .service-box .image {
    width: 100%;
  }

  .service-contents .service-head {
    font-size: 5vw;
  }

  .service-contents .service-box .text-contents {
    width: 100%;
    margin-left: 0;
    margin-top: 3vw;
  }

  .service-contents .service-box .text-contents .text {
    font-size: 3vw;
  }

  .service-contents .service-box .text-contents .btn {
    width: 100%;
    margin-top: 4vw;
  }

  .service-contents .service-box .text-contents .btn a {
    font-size: 3vw;
  }
}



.about-lower {
  background-color: rgba(255, 255, 255, 0.6);
  padding-bottom: 120px;
}

.lower-title {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url('/img/about/make/make-bg.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-lower.biology .lower-title {
  background-image: url('/img/about/biology/biology-bg.jpg');
}


.about-lower.possibility .lower-title {
  background-image: url('/img/about/possibility/possibility-bg.jpg');
}

.lower-title h1 {
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
}

.lower-title p {
  margin-bottom: 40px;
  color: #8fc31f;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
}

.lower-contents {
  width: 920px;
  margin: 0 auto;
  padding: 200px 0 320px;
}

.lower-contents>div:not(:last-of-type) {
  margin-bottom: 240px;
}

.lower-contents h2 {
  color: #3e3a39;
  position: relative;
  font-size: 32px;
  line-height: 1;
  text-align: center;
  padding-bottom: 60px;
  margin-bottom: 60px;
}

.lower-contents h2 span.title {
  display: block;
  transform: translateY(60px);
  opacity: 0;
  transition: all .6s ease;
}

.lower-contents h2 span.title span.step {
  font-size: 0.5em;
  height: 100%;
  display: inline-block;
  vertical-align: top;
  font-weight: normal;
  margin: 0.2em 0.8em 0 0;
}

.lower-contents h2.anim span.title {
  transform: translateY(0);
  opacity: 1;
}

.lower-contents h2::before,
.lower-contents h2::after {
  background-color: #3e3a39;
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(50%);
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  transition: all .3s ease;
  opacity: 0;
}

.lower-contents h2.anim::before,
.lower-contents h2.anim::after {
  opacity: 1;
}

.lower-contents h2::after {
  transform: translateX(-100%) translateY(50%);
  transition-delay: 1s;
  left: 100%;
}


.lower-contents h2 span.line {
  width: 100%;
  display: block;
  position: absolute;
  background-color: #3e3a39;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  -ms-transform-origin-x: 0;
  -webkit-transform-origin-x: 0;
  transition: all 1s ease;
}

.lower-contents h2.anim span.line {
  transform: scaleX(1);
}

.lower-contents .single-box .image {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(60px);
  transition: all .6s ease;
}

.lower-contents .single-box .image.anim {
  transform: translateY(0);
  opacity: 1;
}

.lower-contents .single-box .image img {
  width: 100%;
}

.lower-contents .single-box .text {
  width: 800px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 2.5;
}

.lower-contents .single-box .text.an-obj {
  opacity: 0;
  transform: translateY(60px);
  transition: all .6s ease;
}

.lower-contents .single-box .text.an-obj.anim {
  transform: translateY(0);
  opacity: 1;
}

.lower-contents .single-box .gb-box .text:last-of-type {
  margin-bottom: 0;
}

.lower-contents .single-box .gb-box {
  margin: 0 auto 60px;
  width: 800px;
}

.lower-contents .single-box .gb-box h3 {
  color: #8fc31f;
  display: flex;
  align-items: center;
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(60px);
  transition: all .6s ease;
}

.lower-contents .single-box .gb-box h3.anim {
  transform: translateY(0);
  opacity: 1;
}

.lower-contents .single-box .gb-box h3::before {
  content: '';
  width: 64px;
  aspect-ratio: 1/1;
  display: block;
  margin-right: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lower-contents .single-box .gb-box h3.good::before {
  background-image: url('/img/about/icon-good.png');
}

.lower-contents .single-box .gb-box h3.bad::before {
  background-image: url('/img/about/icon-bad.png');
}

.lower-contents .single-box dl {
  margin: 0 auto 60px;
  width: 800px;
  display: flex;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(60px);
  transition: all .6s ease;
}

.lower-contents .single-box dl.anim {
  transform: translateY(0);
  opacity: 1;
}

.lower-contents .single-box dl dt {
  width: 20%;
  font-size: 20px;
  color: #8fc31f;
  margin-right: 5%;
  font-weight: bold;
}

.lower-contents .single-box dl dd {
  width: 75%;
  font-size: 16px;
  line-height: 2.5;
  margin-inline-start: 0;
  margin-bottom: 40px;
}

.lower-contents .single-box dl dd:last-of-type {
  margin-bottom: 0;
}


.page-link {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10%;
  padding-inline-start: 0;
}

.page-link li {
  width: 324px;
  list-style: none;
}

.page-link li.next {
  margin-left: auto;
}

.page-link li a {
  display: flex;
  gap: 5%;
  width: 100%;
}


.page-link li.next a {
  flex-direction: row-reverse;
}

.page-link li a .image {
  width: 35%;
  border-radius: 9999px;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.page-link li a .image img {
  width: 100%;
  transform: scale(1);
  transition: all .3s;
}

.page-link li a:hover .image img {
  transform: scale(1.2);
}

.page-link li a div {
  position: relative;
  color: #000;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all .3s ease;
  transform: translateX(0);
}

.page-link li.prev a div {
  align-items: flex-end;
}

.page-link li.prev a:hover div {
  transform: translateX(-10%);
}

.page-link li.next a:hover div {
  transform: translateX(10%);
}

.page-link li a div::before {
  content: "";
  position: absolute;
  top: calc(50% + 1px);
  right: 90%;
  width: 15px;
  height: 1px;
  border-radius: 9999px;
  background-color: #000;
  transform: rotate(135deg);
  transform-origin: 100% 0;
}

.page-link li.next a div::before {
  left: 90%;
  transform: rotate(-135deg);
  transform-origin: 0 0;
}

.page-link li a div::after {
  content: '';
  width: 90%;
  height: 1px;
  background-color: #000;
  position: absolute;
  top: 50%;
}

.page-link li a div p {
  font-size: 16px;
  line-height: 1;
}

.page-link li a div p:first-of-type {
  margin-bottom: 24px;
}

.cd-image {
  margin-inline-start: 0;
  margin-inline-end: 0;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(60px);
  transition: all .6s ease;
}

figure img {
  width: 100%;
}

.cd-image.anim {
  opacity: 1;
  transform: translateY(0);
}

.cd-image .cd-image-container {
  max-width: 100%;
}

.cd-image .cd-image-container img {
  z-index: initial;
}

@media screen and (max-width:800px) {
  .about-lower {
    background-color: initial;
  }

  .about-lower.possibility .lower-title {
    background-position-x: right 15%;
  }

  .lower-title {
    height: 40vw;
  }

  .lower-title p {
    margin-bottom: 6vw;
    font-size: 4vw;
  }

  .lower-title h1 {
    font-size: 6vw;
  }

  .lower-contents {
    width: calc(100% - 40px);
    padding: 10vw 20px;
    margin: 10vw auto;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.6);
  }

  .lower-contents h2 {
    font-size: 5vw;
    padding-bottom: 8vw;
    margin-bottom: 8vw;
  }

  .lower-contents .single-box .text {
    width: 100%;
    font-size: 3vw;
  }

  .lower-contents .single-box .image {
    margin-bottom: 6vw;
  }

  .lower-contents>div:not(:last-of-type) {
    margin-bottom: 24vw;
  }

  .lower-contents .single-box .gb-box {
    width: 100%;
  }

  .lower-contents .single-box .gb-box h3 {
    font-size: 4.6vw;
  }

  .lower-contents .single-box .gb-box h3::before {
    width: 10vw;
  }

  .lower-contents .single-box dl {
    width: 100%;
  }

  .lower-contents .single-box dl dt {
    margin-right: 0;
    font-size: 3.4vw;
    margin-bottom: 20px;
  }

  .lower-contents .single-box dl dd {
    font-size: 3vw;
  }

  .lower-contents .single-box dl dt br {
    display: none;
  }

  .lower-contents .single-box dl dt,
  .lower-contents .single-box dl dd {
    width: 100%;
  }


  .page-link {
    padding: 0 20px;
    margin: 20vw auto 20vw;
    flex-direction: column;
    box-sizing: border-box;
    flex-direction: column;
  }

  .page-link li {
    width: 100%;
  }

  .page-link li.prev {
    margin-bottom: 8vw;
  }

  .page-link li a {
    box-sizing: border-box;
    padding: 3%;
    border: 2px solid #000;
  }

  .page-link li.prev a {
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
  }

  .page-link li.next a {
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
  }


  .page-link li a div p {
    font-size: 4vw;
  }

  .page-link li a div p:first-of-type {
    margin-bottom: 4vw;
  }

  .page-link li a .image {
    width: 25%;
  }

  .page-link li a div {
    width: 70%;
  }

}