.hero .container {
  padding-top: 0;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6) 0%, rgb(197 103 116 / 60%) 100%);
  pointer-events: none;
}

.hero-title-area {
  margin-top: 40px;
  gap: 4%;
}

.hero-description {
  display: flex;
  gap: 16px;
}

.hero-description p {
  max-width: 432px;
}

.about {
  background-color: var(--color-main);
  background-image: url('../../img/top/about_bg_01.svg'), url('../../img/top/about_bg_02.svg');
  background-position: left top, right bottom;
  background-repeat: no-repeat, no-repeat;
  background-size: 480px;
  color: var(--color-white);
}

.about .content {
  align-items: flex-start;
}

.about h2 {
  margin-bottom: 32px;
}

.about-description {
  max-width: 800px;
  margin: 0 32px;
}

.about-description p {
  font-size: 1.4rem;
  line-height: 1.75;
}

.about-left-image {
  width: 100%;
  margin-top: auto;
  transform: translate(0, 50%);
}

.about-right-image {
  width: 100%;
}

.about-right-element {
  rotate: 20deg;
  max-width: 278px;
  margin-left: auto;
}

.about-left-element {
  rotate: -24deg;
  max-width: 200px;
}

.services h2 {
  max-width: 800px;
  margin-bottom: 80px;
}

.services-body {
  justify-content: flex-start;
  gap: 10%;
}

.services ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 480px;
  min-width: 300px;
}

.services li {
  border: solid 1px var(--color-gray);
}

.services li button {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 24px;
  color: var(--color-black);
  text-align: left;
}

.services li button.selected {
  background-color: var(--color-deep-green);
  color: var(--color-white);
}

.services-description h3 {
  margin-bottom: 16px;
}

.services-description a {
  display: block;
  width: fit-content;
  margin-top: 24px;
  color: var(--color-accent);
  border-bottom: solid 1px var(--color-accent);
}

.services-detail {
  max-width: 600px;
}

.services-description {
  margin-bottom: 32px;
}

.services-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.services-detail.sp {
  display: none;
}

.strengths {
  min-height: 100vh;
  border-top: solid 1px var(--color-gray);
  border-bottom: solid 1px var(--color-gray);
}

.strengths .container {
  gap: 8%;
}

.strengths-image-area {
  position: sticky;
  top: 40px;
  display: flex;
  gap: 16px;
}

.strengths .section-label {
  align-items: flex-start;
}

.strengths .section-label-name {
  min-width: 120px;
}

.strengths .red-line span {
  width: 40px;
}

.strengths .container ul {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 160px;
}

.strengths ul li span {
  display: block;
  font-size: 96px;
  font-weight: 300;
  line-height: 0.92;
  color: var(--color-accent);
}

.strengths ul li {
  display: flex;
  gap: 32px;
}

.strengths ul li p {
  max-width: 512px;
}

.strengths h3 {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.6;
}

.strengths-image {
  aspect-ratio: 3 / 2;
  max-width: 360px;
}

.works-description {
  max-width: 600px;
}

.works ul {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.works ul li {
  flex: 1;
}

.works-image {
  aspect-ratio: 2 / 2.4;
  margin-bottom: 8px;
  overflow: hidden;
}

.sustainability {
  border-top: solid 1px var(--color-gray);
}

.sustainability .container {
  gap: 128px;
  justify-content: space-between;
}

.sustainability-image {
  max-width: 600px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ecoaction {
  position: absolute;
  bottom: 8px;
  right: 8px;
  min-width: 128px;
  height: 128px;
}

.ecoaction img {
  object-fit: contain;
}

.sustainability-description {
  max-width: 800px;
}

.sustainability-description p {
  margin-bottom: 16px;
}

.message {
  height: 100%;
  background-color: var(--color-main);
}

.message .container {
  height: 100%;
  color: var(--color-white);
}

.message-title {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.message-title h2 {
  color: var(--color-white);
  pointer-events: none;
  text-align: center;
}

.message-image-flow {
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding-top: 114vh;
  padding-bottom: 150vh;
}

.message-image-flow img {
  transition: transform 0.3s ease;
}

.message-image-flow img:nth-child(1) {
  width: 400px;
}

.message-image-flow img:nth-child(2) {
  width: 600px;
  margin-left: auto;
}

.message-image-flow img:nth-child(3) {
  width: 700px;
}

.message-image-flow img:nth-child(4) {
  width: 880px;
  margin-left: auto;
}


@media (max-width: 1080px) {
   main {
    margin-top: 128px;
  }

  .hero-description {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .about .content {
    flex-direction: column;
    gap: 40px;
  }

  .about-description {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-left-image {
    width: 28%;
  }

  .strengths-image-area {
    flex-direction: column;
  }

  .strengths .flex-1 {
    flex: auto;
  }

  .sustainability .container {
    gap: 64px;
  }

  .sustainability .section-title {
    flex-direction: column-reverse;
  }

  .ecoaction {
    min-width: 88px;
    height: 88px;
  }

  .message-title br {
    display: none;
  }

  .message-title h2 {
    text-align: left;
  }

  .message-image-flow img:nth-child(1) {
    width: 280px;
  }

  .message-image-flow img:nth-child(2) {
    width: 400px;
  }

  .message-image-flow img:nth-child(3) {
    width: 480px;
  }

  .message-image-flow img:nth-child(4) {
    width: 600px;
  }

}

/* タブレット */
@media (max-width: 767px) {
  .hero-title-area {
    flex-direction: column;
  }

  .hero-description {
    margin-top: 40px;
  }

  .about-right-image {
    margin-left: auto;
    width: 48%;
  }

  .services-body ul {
    display: none;
  }

  .services-detail {
    display: none;
  }

  .services-detail.sp {
    display: block;
  }

  .services-detail.sp .services-description {
    display: flex;
    flex-direction: column;
    gap: 64px;
  }

  .services-detail.sp .services-image {
    margin-bottom: 16px;
  }

  .services-detail.sp a {
    margin-top: 16px;
  }

  .services-body {
    flex-direction: column;
  }

  .services ul {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 32px;
  }

  .services ul li {
    flex: 1 1 calc(50% - 4px);
  }

  .services li button {
    padding: 10px;
  }

  .strengths .container {
    flex-direction: column;
    gap: 40px;
  }

  .strengths-image-area {
    flex-direction: row;
  }

  .strengths-image {
    max-width: 100%;
  }

  .strengths .container ul {
      margin-top: 80px;
  }

  .strengths ul li span {
    font-size: 64px;
  }

  .works ul {
    flex-direction: column;
    gap: 48px;
  }

  .sustainability .container {
    flex-direction: column;
  }

  .sustainability .section-title {
    flex-direction: column-reverse;
  }

  .message-image-flow img:nth-child(1) {
    width: 200px;
  }

  .message-image-flow img:nth-child(2) {
    width:320px;
  }

  .message-image-flow img:nth-child(3) {
    width: 400px;
  }

  .message-image-flow img:nth-child(4) {
    width: 520px;
  }


}



@media (max-width: 480px) {
  main {
    margin-top: 88px;
  }

  .about {
    background-size: 300px;
  }

  .about .container {
    padding: 40px 16px;
  }

  .about-left-image {
    margin: 0 auto;
  }

  .about-right-image {
    margin: 0 auto;
  }

  .strengths .container ul {
    gap: 32px;
  }

  .strengths ul li {
    gap: 16px;
  }

  .strengths ul li h3 {
    font-size: 1.7rem;
  }

  .strengths ul li span {
    font-size: 48px;
    line-height: 1;
  }

  .sustainability-image {
    height: 200px;
  }

  .message-image-flow {
    padding-top: 20vh;
  }

  .message-image-flow img:nth-child(1) {
    width: 150px;
  }

  .message-image-flow img:nth-child(2) {
    width:220px;
  }

  .message-image-flow img:nth-child(3) {
    width: 198px;
  }

  .message-image-flow img:nth-child(4) {
    width: 276px;
  }
}

