/* 共通 設定 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロールバーが表示されないようにする */
}

.section-heading {
  padding: 10px 20px 10px;
  background-color: #000;
}

.section-heading-main {
  font-size: 25px;
  display: block;
  text-align: center;
  color: #fff;
}

.section-heading-sub {
  font-size: 10px;
  display: block;
  text-align: center;
  color: #fff;
}

.section-text {
  font-size: 13px;
  display: block;
  padding: 10px 5px 30px;
  text-align: center;
}

/* ヘッダー設定 */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
  margin-top: auto;
  background-color: #000;
}

.header-log {
  font-size: 20px;
  color: #fff;
  padding: 0 20px;
}

.menu-btn {
  width: 60px;
  height: 60px;
  background-color: #020202;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inn {
  width: 30px;
  height: 30px;
  position: relative;
  display: flex;
  justify-content: center;
}

.line {
  position: absolute;
  background-color: #fff;
  height: 1px;
  width: 100%;
  transition: 0.3s;
}

.line:nth-of-type(1) {
  top: 0;
}

.line:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

.line:nth-of-type(3) {
  bottom: 0;
}

.menu-btn.is-open .line:nth-of-type(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-btn.is-open .line:nth-of-type(2) {
  opacity: 0;
}

.menu-btn.is-open .line:nth-of-type(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.menu {
  position: absolute;
  top: 80px;
  width: 100%;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease-in-out;
  transform: translateY(-30px);
}

.menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 1000;
}

.menu ul {
  border-bottom: 1px solid #000;
}

.menu li {
  background-color: black;
  color: white;
  height: 60px;
  border-top: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

/* ホバー時の背景色 */
.menu li:hover {
  color: #000;
  background-color: #fff;
}

/* ファーストビュー設定 */
img {
  width: 100%;
  display: block;
}

.fv {
  position: relative;
  display: block;
}

.fv-content {
  position: absolute;
  bottom: 0px;
  left: 0;
  margin: 0;
  width: 100%;
  padding: 0 15px;
  background-color: rgb(248, 248, 246);
  opacity: 0.5;
}

.fv-heading-main {
  color: #000;
  font-size: 35px;
  letter-spacing: 0.1px;
  padding: 5px 0 0;
  display: block;
}

.fv-heading-sub {
  color: #000;
  font-size: 14px;
  padding: 0 15px 15px;
  display: block;
}

/* aboutセクション 設定*/

.about {
  padding: 0 40px 10px;
  background-color: #fafafa;
}

.about-img {
  height: 200px;
  object-fit: contain;
}

.about-section-heading {
  padding: 20px 20px 10px;
}

.about-section-heading-main {
  font-size: 25px;
  display: block;
  text-align: center;
}

.about-section-heading-sub {
  font-size: 10px;
  display: block;
  text-align: center;
}

.about-text-contents {
  margin-top: 20px;
}

.about-text {
  font-size: 14px;
  line-height: 2;
}

.about-text + .about-text {
  margin-top: 16px;
}

/*  Serviceセクション 設定 */

.service {
  padding: 0 0 20px;
}

.service-text {
  font-size: 13px;
  display: block;
  padding: 5px 5px 40px;
  text-align: center;
}

.service-item + .service-item {
  margin-top: 10px;
}

.service-text-contents {
  text-align: center;
  padding: 0 10px;
}

.service-name-main {
  font-size: 18px;
  display: block;
  padding: 5px 0 0;
}

.service-name-sub {
  font-size: 11px;
  display: block;
}

.service-img {
  height: 200px;
  object-fit: contain;
}

.service-contents-item {
  padding: 0 0 20px;
}

/* Worksセクション 設定*/

.works {
  background-color: #fafafa;
  padding: 0 0 20px;
  align-items: center;
}

.works-contents-item {
  padding: 0 0 20px;
}

.works-text-contents {
  text-align: center;
  padding: 0 10px;
}

.works-name-main {
  font-size: 12px;
  display: block;
  padding: 5px 0 0;
}

.works-img {
  height: 200px;
  object-fit: contain;
}

/* モーダル画像拡大 */

#grayDisplay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

#grayDisplay img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  height: 80%;
}

/* Work Flowセクション 設定*/

.flow-item {
  position: relative;
  border: 1px solid black;
  padding: 46px 16px 24px;
  margin: 40px;
}

.flow-item + .flow-item {
  margin-top: 40px;
}

.flow-item-num {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  background-color: #000;
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-item-img {
  display: flex;
  justify-content: center;
  padding: 0 0 10px;
}

.flow-img {
  width: 20%;
}

.flow-item-name {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.flow-item-text {
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* messageセクション 設定*/
.message {
  padding: 20px 40px;
}

.message-contents-img {
  display: flex;
  justify-content: center;
}

.message-section-heading {
  padding: 0 20px 10px;
}

.message-section-heading-main {
  font-size: 25px;
  display: block;
  text-align: center;
}

.message-section-heading-sub {
  font-size: 10px;
  display: block;
  text-align: center;
}

.message-text-contents {
  margin-top: 20px;
}

.message-text {
  font-size: 14px;
  line-height: 2;
}

/* Contact 設定 */
.contact-bottom {
  background-color: #6f6f6f;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-heading-main {
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.1em;
  display: block;
  padding: 10px 0 0;
}

.contact-heading-sub {
  color: #fff;
  font-size: 8px;
  display: block;
  padding: 0;
  margin: 0;
}

.contact-bottom-item {
  text-align: center;
}

.contact-bottom-border {
  background-color: #6f6f6f;
  border: 1px solid white;
  display: inline-block;
  text-align: center;
  padding: 5px 40px; /* ボタンの内側の余白 */
  text-decoration: none; /* リンクの下線を消す */
  color: white;
  margin: 10px 30px;
}

/* SNS 設定 */
.sns-bottom {
  background-color: #4a4a4a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sns-heading-main {
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.1em;
  display: block;
  padding: 10px 0 0;
}

.sns-heading-sub {
  color: #fff;
  font-size: 8px;
  display: block;
  padding: 0;
  margin: 0;
}

.sns-bottom-item {
  text-align: center;
}

.sns-bottom-border {
  background-color: #4a4a4a;
  border: 1px solid white;
  display: inline-block;
  text-align: center;
  padding: 5px 40px; /* ボタンの内側の余白 */
  text-decoration: none; /* リンクの下線を消す */
  color: white;
  margin: 10px 30px;
}

/* Footer 設定 */
.footer {
  text-align: center;
  padding: 10px;
}
.footer__copy {
  font-size: 11px;
  font-family: "Noto Sans JP", sans-serif;
}

/* トップページに戻るボタン */

.scroll-to-top {
  /* 固定の場所に位置づけ */
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* 初期状態は非表示 */
  display: none;
  /*ボタンの幅、高さ、余白、背景色、テキスト色、境界線削除、円型設定 */
  width: 60px; /* Adjust width and height to make the button circular */
  height: 60px;
  padding: 0; /* Remove padding to keep it circular */
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%; /* Makes the button round */
  /* マウスを合わせたときに、カーソルが手の形となる */
  cursor: pointer;
  /* ボタンの重なり順序を指定。大きければ前面にでる */
  z-index: 1000;
  /* ボタンの透明度の変化のスピード */
  transition: opacity 0.3s;
  /* ボタン内のテキスト場所などの設定 */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* トップページに戻るボタン END*/

/* タブレット、PCサイズの表示 */
/* 768px以上のときは、下記のスタイルで表示させる */
@media screen and (min-width: 768px) {
  html,
  body {
    overflow: visible;
  }

  /* 共通 PC設定*/
  .section-heading {
    padding: 20px 40px 20px;
    background-color: #000;
  }

  .section-heading-main {
    font-size: 50px;
  }

  .section-heading-sub {
    font-size: 20px;
  }

  .section-text {
    font-size: 20px;
    padding: 30px 0 20px;
  }

  /* ヘッダー設定 PC設定 */

  .wrapper {
    display: flex;
    background-color: #000;
  }

  .header {
    position: sticky;
    flex-basis: 20%;
    padding: 0 40px;
  }

  .header-container {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #000;
    display: block;
  }

  .header-log {
    font-size: 30px;
    padding: 20px 10px 0;
  }

  .menu-btn {
    display: none;
  }

  .menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin: 0;
  }

  .menu.is-open {
    display: block;
  }

  .menu li {
    border-top: none;
  }

  /* ファーストビュー設定 PC設定 */
  img {
    width: 85%;
  }

  .fv-content {
    padding: 25px 25px 25px;
  }

  .fv-heading-main {
    font-size: 60px;
    letter-spacing: 0.1px;
    padding: 0 20px;
  }

  .fv-heading-sub {
    font-size: 24px;
    padding: 0 30px;
  }

  /* aboutセクション 設定 PC設定 */
  .about-img {
    height: 500px;
    padding: 30px 30px 60px;
  }

  .about-contents {
    display: flex;
  }

  .about-section-heading-main {
    font-size: 50px;
  }

  .about-section-heading-sub {
    font-size: 20px;
  }

  .about-text-contents {
    margin-top: 100px;
  }

  .about-text {
    font-size: 25px;
    line-height: 2;
  }

  /*  Serviceセクション PC設定 */

  .service {
    background-color: #fafafa;
  }

  .service-list {
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 中央揃え */
  }

  .service-item + .service-item {
    margin-top: 0;
  }

  .service-contents-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* 横方向の中央揃え */
    justify-content: center; /* 縦方向の中央揃え */
    text-align: center; /* テキストの中央揃え */
  }

  .service-img {
    margin-bottom: 5px; /* 画像とテキストの間にスペースを追加 */
  }

  .service-text-contents {
    display: flex;
    flex-direction: column;
    align-items: center; /* テキストを中央揃え */
  }

  /* Worksセクション PC設定*/

  .works-list {
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 中央揃え */
    gap: 80px;
    padding: 80px 0;
  }

  .works-contents-item {
    align-items: center;
    padding: 0 10px;
  }

  /* Work Flowセクション PC設定*/

  .flow {
    background-color: #fafafa;
  }

  .flow-list {
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 中央揃え */
    padding: 0 30px 60px; /* 内側の余白をリセット */
    margin: 0; /* 外側の余白をリセット */
  }

  .flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid black;
    padding: 46px 16px 24px;
    margin: 40px; /* アイテム間のマージン */
    text-align: center;
    box-sizing: border-box; /* パディングとボーダーを幅に含める */
    width: calc(25% - 80px); /* アイテムの幅を調整 */
  }

  .flow-item-img {
    margin-bottom: 20px; /* 画像とテキストの間にスペースを追加 */
  }

  .flow-img {
    max-width: 100%; /* 画像の幅を調整してコンテナに収める */
    height: auto; /* 高さは自動調整 */
  }

  /* アイテムの幅が異なる場合、以下のスタイルを追加して調整する */
  .flow-item:nth-child(1) {
    width: calc(25% - 80px); /* 一番左のアイテムの幅を調整 */
  }

  /* messageセクション PC設定*/
  .message {
    background-color: #fafafa;
  }

  .message-contents {
    display: flex;
    flex-direction: row-reverse;
    padding: 130px 0;
  }

  .message-section-heading-main {
    font-size: 30px;
  }

  .message-section-heading-main {
    font-size: 50px;
  }

  .message-section-heading-sub {
    font-size: 20px;
  }

  .message-text-contents {
    margin-top: 50px;
  }

  .message-text {
    font-size: 18px;
    line-height: 2;
  }

  .bottom-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .sns-bottom {
    padding: 60px;
  }

  .contact-heading-main {
    font-size: 50px;
  }

  .contact-heading-sub {
    font-size: 16px;
  }

  .sns-heading-main {
    font-size: 50px;
  }

  .sns-heading-sub {
    font-size: 16px;
  }

  .footer {
    background-color: #fafafa;
    padding: 10px;
  }
}
