@charset "utf-8";
:root {
  /* color */
  --white: #fff;
  --black1: #333333;
  --orange1: #ff7c1a;
  --orange2: #ff914e;
  --orange3: #ffdec6;
  --orange4: #ffc59a;
  --orange5: #feeadc;
  --gray1: #efefef;
  --gray2: #838383;
  /* container, padding, margin */
  --content-width: 1200px;
}

html {
  font-size: 100%;
}

body {
  color: var(--black);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: initial;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

li {
  list-style: none;
}

a:hover {
  color: currentColor;
}

.for-sp,
.for-tab {
  display: none;
}

.no-scroll {
  overflow: hidden;
  width: 100%;
}

/* 共通初期状態 */
.fade-in {
  opacity: 0;
  transition: all 1.5s ease-in-out;
}

/* Type1: 一文字ずつ上にフェイドイン */
.fade-in--visible.fade-in {
  opacity: 1;
}
.fade-in--type1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.fade-in--visible.fade-in--type1 span {
  animation: fadeUp 1s ease-in forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Type2: 全体ふわっと上にフェイドイン */
.fade-in--type2 {
  transform: translateY(20px);
}

.fade-in--visible.fade-in--type2 {
  opacity: 1;
  transform: translateY(0);
}

/* Type3: 上から下に降りてくるフェイドイン */
.fade-in--type3 {
  transform: translateY(-20px);
}

.fade-in--visible.fade-in--type3 {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
  .for-tab {
    display: block;
  }
  .for-pc {
    display: none;
  }
}

@media screen and (max-width: 428px) {
  .for-sp {
    display: block;
  }
}

/* header
----------------------------------------------------- */
.header {
  height: 120px;
  width: 100%;
  position: absolute;
  z-index: 50;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding-inline: 45px 27px;
}

.header__logo {
  width: 126px;
  height: 56px;
  transition: all 0.4s ease-out;
  position: relative;
  z-index: 50;
}

.header__nav {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 38px;
}

.header__nav-list {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 38px;
}

.header__nav-item--contact {
  display: none;
}

.header__nav-link {
  font-size: 1rem;
  padding-bottom: 6px;
  color: var(--black1);
  position: relative;
}

.header__nav-link:before {
  background: var(--orange1);
  content: "";
  width: 100%;
  height: 3px;
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform 0.4s ease-out;
}

.header__nav-link:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}

.header__nav-contact {
  background-color: var(--orange1);
  color: var(--white);
  font-size: 1rem;
  width: 180px;
  height: 52px;
  display: grid;
  place-content: center;
  border: solid 1px var(--orange1);
  border-radius: 26px;
  transition: all 0.4s ease-out;
}

.header__nav-contact:hover {
  background-color: var(--white);
  color: var(--orange1);
  border: solid 1px var(--orange1);
}

.burger {
  display: none;
}

.header__contact-sp {
  display: none;
}

@media screen and (max-width: 820px) {
  .header {
    width: 100vw;
    height: 100px;
    position: fixed;
    top: 0;
  }

  .header__inner {
    padding: 37px 110px 37px 27px;
  }

  .burger {
    width: 106px;
    height: 106px;
    background-color: var(--orange5);
    border: solid 1px var(--orange5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
  }

  .burger__line {
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--orange2);
    transition: all 0.6s ease;
  }

  .is-active .burger__line:nth-of-type(1) {
    transform: translateY(16px) rotate(45deg);
  }

  .is-active .burger__line:nth-of-type(2) {
    opacity: 0;
  }

  .is-active .burger__line:nth-of-type(3) {
    transform: translateY(-13px) rotate(-45deg);
  }

  .header__nav {
    background-color: var(--orange5);
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 73px;
    width: 100%;
    height: 100svh;
    padding-top: 300px;
    padding-left: 93px;
    translate: 100% 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s;
  }

  .is-active .header__nav {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    overflow: auto;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: start;
    gap: 60px;
  }

  .header__nav-item {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 20px;
  }

  .header__nav-item--contact {
    display: flex;
  }

  .header__nav-item::before {
    content: "";
    display: block;
    width: 15px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--orange1);
  }

  .header__button--contact {
    display: inline;
  }

  .header__nav-contact {
    display: none;
  }

  .header__nav-link {
    font-size: 2rem;
  }

  .header__contact-sp {
    width: 80px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background-color: var(--orange1);
    border: solid 1px var(--orange1);
    transition: all 0.4s ease-out;
    position: relative;
    z-index: 50;
  }

  .header__contact-sp--hover {
    display: none;
  }

  .header__contact-sp:hover {
    background-color: var(--white);
  }

  .header__contact-sp:hover img {
    display: none;
  }

  .header__contact-sp:hover .header__contact-sp--hover {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .header {
    height: 50px;
  }

  .header__logo {
    width: 63px;
    height: auto;
  }

  .header__logo img {
    width: 100%;
    height: auto;
  }

  .header__inner {
    padding: 19px 60px 19px 14px;
  }

  .header__nav {
    gap: 20px;
    padding-top: 150px;
    padding-left: 47px;
  }

  .header__nav-link {
    font-size: 1rem;
  }

  .header__nav-item::before {
    width: 8px;
  }

  .burger {
    width: 53px;
    height: 53px;
    gap: 7px;
  }

  .burger__line {
    width: 25px;
    height: 1px;
  }

  .is-active .burger__line:nth-of-type(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .is-active .burger__line:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__contact-sp {
    width: 40px;
  }

  .header__contact-sp img {
    width: 14px;
    height: auto;
  }
}

/* ================================================================================
mainvisual 
===================================================================================*/
.mainvisual {
  height: 100vh;
  min-height: 880px;
  position: relative;
  overflow: hidden;
}

.mainvisual-bg {
  position: relative;
  padding-top: 120px;
}

.mainvisual-bg__image {
  position: absolute;
  z-index: -1;
  top: 150px;
  width: 100%;
  height: auto;
}

.mainvisual-bg__image-pc,
.mainvisual-bg__image-sp {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.mainvisual-bg__image-sp {
  display: none;
}

.mainvisual__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

.mainvisual__messages {
  display: grid;
  grid-template-columns: 1fr;
}

.mainvisual__message-upper {
  display: grid;
  grid-template-columns: 63% auto;
  gap: calc(clamp(0rem, -9rem + 18vw, 4.5rem));
  padding-left: 60px;
}

.mainvisual__message-upper video {
  width: 100%;
  max-width: 272px;
  aspect-ratio: 272/152;
}

.mainvisual__message-middle {
  display: grid;
  grid-template-columns: 1fr 75%;
  gap: calc(clamp(0rem, -9.625rem + 19.25vw, 4.813rem));
}

.mainvisual__message-middle video {
  width: 100%;
  max-width: 272px;
  aspect-ratio: 272/152;
}

.mainvisual__message-middle svg {
  max-width: 100%;
}

.mainvisual__message-bottom {
  position: relative;
  width: 80%;
  margin-right: auto;
  padding-left: 60px;
}

.mainvisual__message-bottom video {
  position: absolute;
  right: -100px;
  bottom: -91px;
  width: 161px;
  height: 91px;
}

.mainvisual__message-text {
  font-size: 10rem;
  font-weight: 200;
  letter-spacing: 0.1em;
}

.mainvisual__submessage {
  width: 70%;
  text-align: center;
}

.mainvisual__submessage-title {
  font-size: 1.5625rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.mainvisual__submessage-title::before,
.mainvisual__submessage-title::after {
  content: "";
  display: block;
  width: 25px;
  height: 1px;
  background-color: var(--black1);
}

.mainvisual__submessage-sentence {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-top: 1em;
}

@media screen and (max-width: 800px) {
  .mainvisual {
    height: 700px;
    min-height: auto;
  }

  .mainvisual__inner {
    padding-inline: 0px;
  }

  .mainvisual-bg {
    padding-top: 100px;
  }

  .mainvisual-bg__image {
    top: 100px;
  }

  .mainvisual__message-text {
    font-size: 9rem;
  }

  .mainvisual__message-upper {
    position: relative;
    padding-inline: 8px;
    gap: 0;
    align-items: center;
  }

  .mainvisual__message-middle {
    grid-template-columns: 1fr 80%;
    gap: 0;
    align-items: center;
  }

  .mainvisual__message-bottom {
    width: 90%;
    padding-inline: 8px;
  }

  .mainvisual__message-bottom video {
    bottom: -150px;
    right: auto;
    left: 0;
  }

  .mainvisual__submessage {
    width: 100%;
    text-align: center;
    padding-inline: 8px;
  }
}

@media screen and (max-width: 570px) {
  .mainvisual {
    height: 500px;
  }

  .mainvisual__inner {
    display: block;
  }

  .mainvisual__submessage-title {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .mainvisual__submessage-sentence {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

@media screen and (max-width: 450px) {
  .mainvisual {
    height: 600px;
  }

  .mainvisual__inner {
    padding-top: 115px;
    position: relative;
  }

  .mainvisual-bg {
    padding-top: 50px;
  }

  .mainvisual-bg__image {
    top: 50px;
  }

  .mainvisual-bg__image-pc {
    display: none;
  }

  .mainvisual-bg__image-sp {
    display: block;
  }

  .mainvisual__inner {
    padding-inline: 0px;
  }

  .mainvisual__messages {
    position: relative;
  }

  .mainvisual__message-upper {
    display: block;
    position: initial;
  }

  .mainvisual__message-upper > svg {
    margin-left: -34px;
    width: 100%;
  }

  .mainvisual__message-upper .mainvisual__message-text {
    letter-spacing: .15em;
  }

  .mainvisual__message-upper video {
    position: absolute;
    width: 136px;
    height: 76px;
    bottom: -147px;
    left: 8px;
  }

  .mainvisual__message-middle {
    grid-template-columns: 1fr 90%;
  }

  .mainvisual__message-middle > svg {
    width: 100%;
    margin-left: -30px;
  }

  .mainvisual__message-middle video {
    grid-column: 1/2;
    height: auto;
    width: 100px;
  }

  .mainvisual__message-bottom .mainvisual__message-text {
    font-size: 10rem;
    letter-spacing: .15em;
  }

  .mainvisual__message-bottom {
    position: initial;
    width: 100%;
  }

  .mainvisual__message-bottom video {
    width: 82px;
    height: 46px;
    right: 8px;
    left: auto;
    bottom: auto;
    top: -36px;
  }
}

/* ================================================================================
about
===================================================================================*/
.about {
  overflow: hidden;
}
.about__inner {
  max-width: 1050px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 30px 150px;
}

.about__title {
  color: var(--gray1);
  font-size: 10rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.about__content {
  margin-top: -50px;
  display: grid;
  grid-template-columns: 389px 1fr;
  align-items: center;
  gap: 5%;
  padding-left: 30px;
  position: relative;
  height: 565px;
}

.about__content:before {
  content: "";
  display: block;
  background: url(../img/orange-light-big.webp) no-repeat center top/contain;
  width: 476px;
  aspect-ratio: 1 / 1;
  position: absolute;
  bottom: -100px;
  right: -250px;
  z-index: -1;
}

.about__content-image {
  position: relative;
  box-shadow: 0px 40px 20px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  width: 100%;
  height: 100%;
}

.about__content-image::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--orange1);
  rotate: -10deg;
  position: absolute;
  top: 3%;
  left: -11%;
  z-index: -1;
}

.about__content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.about__content-company {
  font-size: 0.875rem;
  display: block;
  font-weight: bold;
  margin-bottom: 24px;
}

.about__content-title {
  color: var(--orange1);
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1.4;
  display: inline;
  background-image: linear-gradient(to bottom, transparent 95%, var(--orange1) 95%);
  background-repeat: repeat-x;
  background-size: 1px 1.2em; /* 高さで行間に合わせる */
}

.about__content-sentence {
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 2;
  margin-top: 24px;
}

@media screen and (max-width: 768px) {
  .about__title {
    font-size: 5rem;
  }

  .about__content:before {
    width: 400px;
    bottom: auto;
    top: 100px;
    right: -250px;
  }

  .about__content {
    grid-template-columns: 1fr;
    margin-top: -10px;
    padding-inline: 0;
    height: auto;
  }

  .about__content-image {
    margin-inline: auto;
    width: 68%;
  }
}

@media screen and (max-width: 428px) {
  .about__inner {
    padding-block: 0px 80px;
    padding-inline: 8px;
  }

  .about__content-image {
    max-width: 230px;
  }

  .about__content-text {
    margin-top: 40px;
  }

  .about__content-title {
    font-size: 1.5rem;
  }

  .about__content-sentence {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
  }
}

/* ================================================================================
service
===================================================================================*/
.service__inner {
  max-width: 1200px;
  padding-inline: 24px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
}

.service__title {
  color: var(--orange1);
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.service__title-ja {
  color: var(--black1);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.service__title-description {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.service__items {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列 */
  grid-template-rows: 1fr 1fr; /* 2行 */
  gap: 0;
  margin-top: 33px;
}

.service__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--white);
  height: 465px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.service__item::after {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: -1;
  background-size: cover;
  transition: all 0.4s ease-out;
}

.service__item:has(.service__item-button:hover)::after {
  transform: scale(1.1);
}

.service__item-title {
  font-size: 1.5rem;
  font-weight: bold;
  padding-top: 140px;
  padding-left: calc(clamp(1rem, -3.107rem + 13.14vw, 6.75rem));
}

/* 説明文 */
.service__item-description {
  font-size: 1rem;
  line-height: 1.4;
  max-width: 90%;
  margin-top: 16px;
  padding-left: calc(clamp(1rem, -3.107rem + 13.14vw, 6.75rem));
}

/* ボタン */
.service__item-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column-reverse;
  gap: 20px;
  padding-block: 10px;
  width: 96px;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  border: 2px solid var(--orange1);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--orange1);
  text-decoration: none;
  transition: all 0.4s ease-out;
}

.service__item-button::after {
  content: "";
  display: block;
  width: 15px;
  aspect-ratio: 1/1;
  border-right: solid 1px currentColor;
  border-top: solid 1px currentColor;
  rotate: 45deg;
  translate: -5px 0;
}

.service__item-button:hover {
  background-color: var(--orange1);
  color: var(--white);
}

/* 背景画像 */
.service__item--consulting::after {
  background-image: url("../img/management.webp"); /* マネジメントコンサル */
}
.service__item--management::after {
  background-image: url("../img/project-management.webp"); /* プロジェクトマネジメント */
}
.service__item--website::after {
  background-image: url("../img/homepage.webp"); /* ホームページ作成 */
}
.service__item--system::after {
  background-image: url("../img/system-development.webp"); /* システム開発 */
}

@media screen and (max-width: 628px) {
  .service__inner {
    padding-inline: 8px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service__items {
    grid-template-columns: 1fr;
  }

  .service__item {
    height: 233px;
  }

  .service__item-title {
    font-size: 1rem;
    padding-top: 65px;
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 12px;
  }

  .service__item-description {
    font-size: 0.8125rem;
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 12px;
  }

  .service__item-button {
    width: 74px;
    font-size: 0.75rem;
    bottom: 13px;
    right: 8px;
    gap: 10px;
  }
}

/* =================================================================
  Block: member
================================================================= */
.member {
  position: relative;
  width: 100%;
  max-height: 560px;
  height: 50vw;
  box-sizing: content-box;
  overflow: hidden;
  padding-block: 172px 290px;
}

.member::before,
.member::after {
  content: "";
  display: block;
  width: 576px;
  aspect-ratio: 1/1;
  background: url(../img/orange-light-big.webp) no-repeat center top/contain;
  position: absolute;
  z-index: -1;
  top: -50px;
  left: 0;
}

.member::after {
  top: auto;
  left: auto;
  right: 0;
  bottom: -30px;
}

.member__background {
  display: flex;
  width: fit-content; /* 中身の幅に合わせる */
  height: 100%;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* flexアイテム(ul)の1つ分の幅だけ移動 */
  }
}

.member__list {
  display: flex;
  gap: -50px;
}

.member__item {
  width: 30vw;
  height: 100%;
  max-width: 400px;
  margin: 0 -20px;
  transform: rotate(-4deg);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0px 15px 15px 0px rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}

.member__item:nth-of-type(even) {
  transform: rotate(4deg);
}

.member__item:nth-of-type(1),
.member__item:nth-of-type(3) {
  z-index: 1;
}

.member__item:nth-of-type(2),
.member__item:nth-of-type(4) {
  z-index: 2;
}

.member__item:nth-of-type(5) {
  z-index: 3;
}

.member__item:nth-of-type(3) img {
  object-position: -400px center;
}

.member__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.member__content {
  position: absolute;
  top: 172px;
  left: 0;
  width: 100%;
  height: calc(100% - 172px - 290px);
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 88px;
}

.member__title {
  font-size: 8rem;
  color: var(--orange2);
  font-weight: 600;
  letter-spacing: 0.2em;
  transition: opacity 1.5s ease-in-out, transform 2.5s ease-in-out;
}

.member__button {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column-reverse;
  gap: 40px;
  padding-block: 30px;
  width: 197px;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  border: 2px solid var(--orange2);
  border-radius: 50%;
  font-size: 1rem;
  background-color: var(--orange2);
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: all 0.5s ease-out;
}

.member__button::after {
  content: "";
  display: block;
  width: 30px;
  aspect-ratio: 1/1;
  border-right: solid 1px currentColor;
  border-top: solid 1px currentColor;
  rotate: 45deg;
  translate: -5px 0;
}

.member__button:hover {
  color: var(--white);
}

.member__button:hover .circleText {
  animation: spin 1s ease-out; /* 8秒かけて線形に無限回転 */
}

@media screen and (max-width: 800px) {
  .member {
    height: 314px;
    padding-block: 54px 64px;
  }

  .member::after,
  .member::before {
    display: none;
  }

  .member__content {
    top: 54px;
    height: calc(100% - 54px - 64px);
    gap: 40px;
  }

  .member__item {
    margin-inline: -10px;
    min-width: 190px;
  }

  .member__item:nth-of-type(3) img {
    object-position: -200px center;
  }

  .member__title {
    font-size: 4rem;
    padding-top: 0;
  }

  .member__button {
    width: 98px;
    padding-block: 15px;
    gap: 20px;
    font-size: 0.75rem;
  }

  .member__button::after {
    width: 15px;
  }
}

/* =================================================================
  Block: sns
================================================================= */
.orange-background {
  background: linear-gradient(var(--white), var(--orange3));
}

.sns {
  overflow: hidden; /* 親要素のスクロールバーを隠す */
}

.sns__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  margin-left: max(20px, (100% - 1200px) / 2); /* 左端からのマージンを計算 */
}

.sns__heading-wrapper {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sns-heading__title {
  color: var(--orange1);
  font-size: 2.5rem;
  letter-spacing: 0.2em;
}

.sns-heading__subtitle {
  font-size: 0.875rem;
  margin-top: 4px;
}

.sns-heading__button {
  color: var(--orange1);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 20px;
  padding-right: 10px;
}

.sns-heading__button::after {
  content: "";
  display: block;
  width: 20px;
  aspect-ratio: 1/1;
  border-top: solid 1px currentColor;
  border-right: solid 1px currentColor;
  rotate: 45deg;
  transition: all 0.4s ease-out;
}

.sns-heading__button:hover {
  color: var(--orange1);
}

.sns-heading__button:hover::after {
  translate: 10px 0;
}

.sns__items-wrapper {
  overflow-x: auto;
  padding-bottom: 20px;
  margin-top: 25px;
}

.sns__items {
  display: flex;
  gap: 20px;
  padding-right: max(20px, (100% - 1200px) / 2); /* 右端に余白を確保 */
}

.sns__item {
  flex: 0 0 522px;
  height: 211px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* スクロールバー全体の高さを設定 */
.sns__items-wrapper::-webkit-scrollbar {
  height: 5px;
}

/* スクロールバーのトラック（背景部分）のスタイル */
.sns__items-wrapper::-webkit-scrollbar-track {
  background-color: var(--gray1);
}

/* スクロールバーのサム（動くバー部分）のスタイル */
.sns__items-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--orange1);
  border-radius: 5px; /* バーの角を少し丸くすると見栄えが良くなります */
}

/* Firefox向けのスクロールバー設定 */
.sns__items-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--orange1) var(--gray1);
}

.sns__item a {
  padding: 52px 43px 16px 26px;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 26px;
}

.sns__item-title {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin: 0;
}

.sns__item-sentence {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 10px;
}

.sns__item-thumbnail {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sns__item-button {
  position: absolute;
  bottom: 16px;
  right: 21px;
  color: var(--orange1);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.sns__item-button::after {
  content: "";
  display: block;
  width: 20px;
  aspect-ratio: 1/1;
  border-top: solid 1px currentColor;
  border-right: solid 1px currentColor;
  rotate: 45deg;
  transition: all 0.4s ease-out;
}

.sns__item a:hover .sns__item-button::after {
  translate: 10px 0;
}

@media screen and (max-width: 428px) {
  .sns__inner {
    margin-left: 8px;
  }

  .sns-heading__title {
    font-size: 1.75rem;
  }

  .sns-heading__subtitle {
    font-size: 0.6125rem;
  }

  .sns-heading__button {
    gap: 10px;
  }

  .sns-heading__button::after {
    width: 10px;
  }

  .sns-heading__button:hover::after {
    translate: 5px 0;
  }

  .sns__item {
    flex: 0 0 340px;
  }

  .sns__item a {
    padding: 28px 16px 19px 13px;
    grid-template-columns: 1fr 119px;
    gap: 13px;
  }

  .sns__item-title {
    font-size: 1rem;
  }

  .sns__item-sentence {
    font-size: 0.75rem;
  }
}

/* =================================================================
Block: news-bottom
================================================================= */
.news {
  padding: 150px 20px;
  margin-inline: auto;
}

.news__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  margin-left: max(20px, (100% - 1200px) / 2); /* 左端からのマージンを計算 */
}

.news__heading-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.news__items-wrapper {
  max-width: 1200px;
  overflow-x: auto;
  padding-bottom: 20px;
  margin-top: 25px;
}

.news__items {
  display: flex;
  justify-content: space-between;
  gap: 57px;
  list-style: none;
  margin-top: 30px;
}

/* スクロールバー全体の高さを設定 */
.news__items-wrapper::-webkit-scrollbar {
  height: 5px;
}

/* スクロールバーのトラック（背景部分）のスタイル */
.news__items-wrapper::-webkit-scrollbar-track {
  background-color: var(--gray1);
}

/* スクロールバーのサム（動くバー部分）のスタイル */
.news__items-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--orange1);
  border-radius: 5px; /* バーの角を少し丸くすると見栄えが良くなります */
}

/* Firefox向けのスクロールバー設定 */
.news__items-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--orange1) var(--gray1);
}

.news__item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news__item a {
  transition: all 0.4s ease-out;
}

.news__item a:hover {
  opacity: 0.6;
}

.news__item-content {
  padding: 15px 0 20px;
  flex-grow: 1;
}

.news__item-image img {
  width: 100%;
}

.news__item time {
  display: block;
  font-size: 0.875rem;
  color: var(--gray3);
}

.news__item-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 0;
}

.news__item-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray);
}

.news__item-text p {
  text-align: justify;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 1024px) {
  .news__items-wrapper {
    overflow-x: auto;
    max-width: initial;
  }

  .news__item {
    flex: 0 0 244px;
  }
}

@media screen and (max-width: 428px) {
  .news {
    padding-block: 75px 45px;
    padding-inline: 0;
  }

  .news__inner {
    margin-left: 8px;
  }

  .news__items {
    gap: 20px;
    padding-right: max(20px, (100% - 1200px) / 2); /* 右端に余白を確保 */
  }

  .news__item time {
    font-size: 0.625rem;
  }

  .news__item-title {
    font-size: 1rem;
  }

  .news__item-text {
    font-size: 0.75rem;
  }
}

/* =================================================================
  Block: showcase
================================================================= */
.showcase {
  position: relative;
}

.showcase::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: -2;
  background-color: var(--orange3);
}

.showcase__marquee {
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
  z-index: 10;
}

.showcase__marquee::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--orange3);
}

.showcase__marquee-inner {
  display: flex;
  width: fit-content;
  gap: 300px;
  animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.showcase__marquee-text {
  font-size: 6rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  vertical-align: bottom;
  color: var(--orange4);
  white-space: nowrap;
}

.showcase__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: -24px;
  height: 465px;
}

.showcase__item-heading {
  padding-top: 140px;
  padding-left: calc(clamp(1rem, -3.107rem + 13.14vw, 6.75rem));
}

.showcase__item-heading-title {
  color: var(--orange1);
  font-size: 2.5rem;
  letter-spacing: 0.2em;
  font-weight: bold;
}

.showcase__item-heading-subtitle {
  font-size: 0.875rem;
  margin-top: 4px;
  display: inline-block;
}

.showcase__item--company::after {
  background-image: url(../img/company.webp);
}

.showcase__item--recruit::after {
  background-image: url(../img/recruit.webp);
}

.service__item:has(.service__item-button:hover)::after {
  transform: scale(1.1);
}

@media screen and (max-width: 628px) {
  .showcase__marquee-text {
    font-size: 4rem;
  }

  .showcase__items {
    margin-top: -20px;
    height: 466px;
    grid-template-columns: 1fr;
  }

  .showcase__item-heading {
    padding-top: 79px;
    padding-left: 54px;
  }

  .showcase__item-heading-title {
    font-size: 1.75rem;
  }

  .showcase__item-heading-subtitle {
    font-size: 0.6125rem;
  }

  .showcase .service__item-description {
    display: none;
  }
}

/* ================================================================================
Block : contact
===================================================================================*/
.contact {
  height: 785px;
  position: relative;
}

.contact__picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.contact__picture-1,
.contact__picture-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}
.contact__picture-1 {
  background-image: url("../img/contact-1.webp");
  animation: slide-animation-01 10s infinite;
}
.contact__picture-2 {
  background-image: url("../img/contact-2.webp");
  animation: slide-animation-02 10s infinite;
}
@keyframes slide-animation-01 {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slide-animation-02 {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.contact__inner {
  max-width: 1200px;
  height: 100%;
  padding-inline: 20px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact__text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact__title {
  color: var(--white);
  font-size: 6rem;
  letter-spacing: 0.2em;
}

.contact__description {
  color: var(--white);
  font-size: 1.5625rem;
}

.contact__button {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column-reverse;
  gap: 40px;
  padding-block: 30px;
  width: 197px;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  border: 2px solid var(--orange2);
  border-radius: 50%;
  font-size: 1rem;
  background-color: var(--orange2);
  color: var(--white);
  text-decoration: none;
  transition: all 0.5s ease-out;
  position: relative;
}

.contact__button::after {
  content: "";
  display: block;
  width: 30px;
  aspect-ratio: 1/1;
  border-right: solid 1px currentColor;
  border-top: solid 1px currentColor;
  rotate: 45deg;
  translate: -5px 0;
}

/* SVGを囲むブロックのスタイル */
.circle-block {
  width: 90%; /* SVGのサイズ */
  aspect-ratio: 1/1;
  position: absolute; /* ボタンの中央に配置するため */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* SVG自体のスタイル */
.circleText {
  width: 100%;
  height: 100%;
}

/* SVG内のテキストのスタイル */
.circleText-text {
  font-size: 0.4rem; /* テキストのサイズを調整 */
  fill: var(--white); /* テキストの色 */
}

/* 円を描画するパス（非表示でOK） */
.circleText-circle {
  fill: none;
}

/* 回転アニメーションの定義 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

.contact__button:hover {
  color: var(--white);
}

/* ボタンホバー時にSVGにアニメーションを適用 */
.contact__button:hover .circleText {
  animation: spin 1s ease-out; /* 8秒かけて線形に無限回転 */
}

@media screen and (max-width: 768px) {
  .contact__inner {
    flex-direction: column;
    justify-content: center;
    gap: 27px;
  }

  .contact__picture-1,
  .contact__picture-2 {
    background-position: -350px center;
  }
}

@media screen and (max-width: 528px) {
  .contact {
    height: 450px;
  }

  .contact__picture-1 {
    background-position: -200px center;
  }

  .contact__picture-2 {
    background-position: -150px center;
  }

  .contact__inner {
    padding-inline: 8px;
  }

  .contact__text {
    width: 100%;
    gap: 15px;
    text-align: left;
  }

  .contact__title {
    font-size: 3rem;
    letter-spacing: 0.1em;
  }

  .contact__description {
    font-size: 0.6125rem;
  }

  .contact__button {
    width: 98px;
    padding-block: 15px;
    gap: 20px;
    font-size: 0.75rem;
  }

  .contact__button::after {
    width: 15px;
  }
}

/* ================================================================================
Block : footer
===================================================================================*/
.footer {
  padding-block: 90px 35px;
  background: linear-gradient(var(--white), var(--orange3));
}

.footer__inner {
  max-width: 1200px;
  padding-bottom: 143px;
  padding-inline: 20px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.footer__company {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  font-family: "Noto Sans JP", sans-serif;
}

.footer__company-logo {
  width: 155px;
  height: auto;
}

.footer__company-name {
  font-size: 0.875rem;
  margin-top: 20px;
}

.footer__company-address {
  font-size: 0.875rem;
  margin-top: 6px;
}

.footer__nav-ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-content: end;
  align-items: center;
  gap: 24px;
}

.footer__nav-li {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 14px;
}

.footer__nav-li::before {
  content: "";
  display: block;
  width: 9px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: var(--orange1);
}

.footer__nav-link {
  position: relative;
}

.footer__nav-link:before {
  background: var(--orange1);
  content: "";
  width: 100%;
  height: 3px;
  position: absolute;
  left: 0;
  bottom: -3px;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform 0.4s ease-out;
}

.footer__nav-link:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}

.footer__copyright {
  padding-top: 35px;
  border-top: solid 1px var(--orange4);
}

.footer__copyright-text {
  font-family: "Noto Sans JP", sans-serif;
  display: block;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: right;
}
@media screen and (max-width: 985px) {
  .footer__nav-ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 24px;
  }
}

@media screen and (max-width: 652px) {
  .footer__inner {
    padding-bottom: 98px;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 54px;
  }

  .footer__nav-ul {
    width: 190px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 35px 24px;
    width: 50%;
    min-width: 290px;
  }
}

@media screen and (max-width: 428px) {
  .footer {
    padding-block: 63px 23px;
  }

  .footer__inner {
    padding-bottom: 98px;
    flex-direction: column;
    gap: 54px;
  }

  .footer__company {
    width: 190px;
  }

  .footer__company-logo {
    width: 103px;
  }

  .footer__company-name,
  .footer__company-address {
    font-size: 0.625rem;
  }

  .footer__copyright {
    padding-top: 23px;
  }

  .footer__copyright-text {
    font-size: 0.625rem;
    text-align: center;
  }
}
