html {
  scroll-behavior: smooth;
}

/* ベース設定 */
body {
  font-family: "Arial", sans-serif, "Noto Sans JP";
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
  margin: 0 auto;
}

/* ヘッダー */
header {
  position: absolute;
  z-index: 2;
  width: 100%;
  backdrop-filter: blur(10px);
}

header .container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

header .logo {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
}

header nav {
  margin-right: 50px;
}

header ul {
  display: flex;
  list-style: none;
}

header li {
  margin-left: 48px;
  font-weight: 500;
}

header nav ul li a {
  transition: 0.3s;
  color: #ffffff;
  padding: 8px;
  font-size: 16px;
  display: block;
  text-align: center;
  text-decoration: none;
}

header nav ul li a:hover {
  color: khaki;
}

/* ハンバーガー */

@media screen and (max-width: 768px) {
  header .logo {
    font-size: 18px;
  }

  #header-menu {
    display: none;
  }

  header .hamburger .open {
    display: block;
    z-index: 10;
  }
  header ul {
    display: flex;
    list-style: none;
  }

  header li {
    margin-left: 48px;
    font-weight: 500;
  }

  header nav ul li a {
    transition: 0.3s;
    color: #ffffff;
    padding: 8px;
    font-size: 16px;
    display: block;
    text-align: center;
    text-decoration: none;
  }

  .hamburger {
    position: absolute;
    top: 32px;
    right: 32px;
    cursor: pointer;
    width: 32px;
    height: 24px;
    z-index: 10;
  }
  .hamburger span {
    /*3本の線を作る*/
    transition: all 0.3s;
    position: absolute;
    height: 2px;
    background-color: #ffffff;
    width: 100%;
    z-index: 10;
  }
  .hamburger span:nth-of-type(1) {
    /*上の線の位置*/
    top: 4px;
  }
  .hamburger span:nth-of-type(2) {
    /*真ん中の線の位置*/
    top: 12px;
  }
  .hamburger span:nth-of-type(3) {
    /*下の線の位置*/
    top: 20px;
  }
  .hamburger.open span:nth-of-type(1) {
    /*openのとき、上の線を右斜めにする*/
    top: 10px;
    transform: translateY(6px) rotate(-45deg);
  }
  .hamburger.open span:nth-of-type(2) {
    /*真ん中の線を消す*/
    opacity: 0;
  }
  .hamburger.open span:nth-of-type(3) {
    /*下の線を左斜めにする*/
    top: 22px;
    transform: translateY(-6px) rotate(45deg);
  }
}

@media screen and (max-width: 425px) {
  header .container {
    padding: 20px 0;
  }

  header .logo {
    font-size: 14px;
  }

  #header-menu {
    display: none;
  }

  header .hamburger .open {
    display: block;
    z-index: 10;
  }

  header ul {
    display: flex;
    list-style: none;
  }

  header li {
    margin-left: 48px;
    font-weight: 500;
  }

  header nav ul li a {
    transition: 0.3s;
    color: #ffffff;
    padding: 8px;
    font-size: 16px;
    display: block;
    text-align: center;
    text-decoration: none;
  }

  .hamburger {
    position: absolute;
    top: 19px;
    right: 32px;
    cursor: pointer;
    width: 32px;
    height: 24px;
    z-index: 10;
  }
  .hamburger span {
    /*3本の線を作る*/
    transition: all 0.3s;
    position: absolute;
    height: 2px;
    background-color: #ffffff;
    width: 100%;
    z-index: 10;
  }
  .hamburger span:nth-of-type(1) {
    /*上の線の位置*/
    top: 4px;
  }
  .hamburger span:nth-of-type(2) {
    /*真ん中の線の位置*/
    top: 12px;
  }
  .hamburger span:nth-of-type(3) {
    /*下の線の位置*/
    top: 20px;
  }
  .hamburger.open span:nth-of-type(1) {
    /*openのとき、上の線を右斜めにする*/
    top: 10px;
    transform: translateY(6px) rotate(-45deg);
  }
  .hamburger.open span:nth-of-type(2) {
    /*真ん中の線を消す*/
    opacity: 0;
  }
  .hamburger.open span:nth-of-type(3) {
    /*下の線を左斜めにする*/
    top: 22px;
    transform: translateY(-6px) rotate(45deg);
  }
}

/* 電話 */
.calling {
  font-size: 16px;
  list-style: none;
  line-height: 1.5;
  gap: 0.5rem;
  background-color: #ffee04;
  height: 10%;
  z-index: 5;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
  img {
    height: 1lh;
  }
}

.calling:hover {
  color: rgb(255, 255, 255);
}
/* スマホ */
@media screen and (max-width: 425px) {
  .calling {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* メインヴィジュアル */
#main-visual {
  position: relative;
  height: 90vh;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
}

#main-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  color: #bee1de;
}

#main-visual .box {
  position: absolute;
  top: 50%;
  left: 13%;
  transform: translateY(-50%);
}

#main-visual .catchy_words {
  font-size: 50px;
  font-weight: 500;
  background-color: #fff;
  display: inline-block;
  margin-bottom: 20px;
}

#main-visual .header {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 20px;
}

#main-visual .heading {
  color: #fff;
}

#main-visual h1 {
  font-size: 100px;
  font-weight: 700;
  color: #fff;
}

/* タブレット */
@media screen and (max-width: 768px) {
  #main-visual .box {
    left: 6%;
  }
  #main-visual .catchy_words {
    font-size: 40px;
  }

  #main-visual .header {
    font-size: 16px;
  }
  #main-visual h1 {
    font-size: 34px;
  }
}

/* スマートフォン */
@media screen and (max-width: 425px) {
  #main-visual .box {
    position: absolute;
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
  }

  #main-visual .catchy_words {
    font-size: 22px;
  }
}

/* 共通 */
.container {
  width: 90%;
  margin: 0 auto;
  max-width: 1140px;
}

.section {
  padding: 60px 0;
}

.en {
  font-size: 40px;
  font-weight: 500;
  color: #156ac9;
  margin-bottom: 30px;
}

.text {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 30px;
}

.button {
  display: inline-block;
  border: 1px solid #eeeeee;
  background-color: #fff;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: 0.3s;
}

.button:hover {
  border-color: #156ac9;
}

.line-button {
  margin-top: 25px;
  text-align: center;
  display: inline-block;
  border: 1px solid #eeeeee;
  background-color: #fff;
  border-color: #00b900;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
}

.line-button:hover {
  background-color: #00b900;
  color: #fff;
}

.row {
  display: flex;
  justify-content: space-between;
}

.tel {
  text-decoration: underline;
  padding-left: 10px;
}
@media screen and (max-width: 768px) {
  .section {
    padding: 30px 0;
  }
  .en {
    font-size: 30px;
  }
  .row {
    flex-wrap: wrap;
  }
  .col {
    width: 100% !important;
  }
}

@media screen and (max-width: 425px) {
  .line-button {
    margin-top: 0px;
  }
}

@media screen and (max-width: 375px) {
  .section {
    padding: 20px 0;
  }
  .en {
    font-size: 30px;
    margin-bottom: 5px;
  }

  .text {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 15px;
  }

  .row {
    flex-wrap: wrap;
  }
  .col {
    width: 100% !important;
  }

  .line-button {
    margin-top: 0px;
  }
}

/* メインビジュアル */
#top-about {
  position: relative;
  overflow: hidden;
}

#top-about h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 40px;
}

#top-about .text {
  margin-bottom: 40px;
}

/* スライダー */
.slider {
  background-color: #702d2d;
  width: 400px;
  height: auto;
}

.boxing {
  height: 400px;
  align-items: center;
  display: flex;
  justify-content: center;
}

.slider-pic {
  width: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 300px; /* 必要なら固定 */
  object-fit: cover;
  object-position: center;
}

.slider-pic img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 300px; /* 必要なら固定 */
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 768px) {
  #top-about::before {
    font-size: 80px;
  }
  #top-about h2 {
    font-size: 18px;
  }
}

/* our service */
#top-service {
  background-color: #156ca9;
  border-radius: 20px;
  color: #ffffff;
}

#top-service h2 {
  color: #ffffff;
}

#top-service text {
  margin-bottom: 60px;
}

#top-service .row {
  margin-bottom: 30px;
}

#top-service .col {
  width: 32%;
  background-color: #0d62c2;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
}

#top-service img {
  height: 80px;
  margin-bottom: 20px;
}

#top-service h3 {
  font-weight: 500;
  margin-bottom: 16px;
}

#top-service .text2 {
  font-size: 13px;
  text-align: left;
  line-height: 1.6;
}

#top-service .button_box {
  text-align: center;
  color: black;
}

@media screen and (max-width: 768px) {
  #top-service .row {
    gap: 20px 0;
  }
}

/* トップワークス */
#top-works {
  background-color: #f9f9f9;
}

#top-works h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 40px;
}

#top-works .text {
  font-size: 13px;
  margin-bottom: 40px;
}

#top-works .row {
  align-items: center;
}

#top-works .col {
  width: 48%;
}

#top-works img {
  border-radius: 16px;
}

@media screen and (max-width: 768px) {
  #top-works h2 {
    font-size: 20px;
  }
  #top-works .row {
    gap: 30px 0;
  }
}

/* トップコンタクト */
#top-contact h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 40px;
}

#top-contact .text {
  font-size: 13px;
  margin-bottom: 40px;
}

#top-contact .row {
  align-items: center;
}

#top-contact .col {
  width: 48%;
}

#top-contact img {
  border-radius: 16px;
}

/* 補償内容・お問い合わせ */
.q-a {
  font-size: 30px;
  font-weight: 500;
  color: #0d62c2;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  #top-contact h2 {
    font-size: 20px;
  }
  #top-contact .row {
    gap: 30px 0;
    flex-direction: column-reverse;
  }
}

@media screen and (max-width: 425px) {
  .q-a {
    font-size: 23px;
    text-align: center;
  }
}

/* アコーディオン */
.accordion {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* アコーディオンのヘッダー部分のスタイリング */
.accordion-header {
  font-size: 15px;
  padding: 10px;
  background-color: #f7f7f7;
  cursor: pointer;
  outline: none;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  position: relative; /* 矢印アイコンの位置調整のため */
  list-style: none; /* デフォルトの矢印を消す */
  transition: background-color 0.3s; /* 背景色の変化にアニメーションを適用 */
}

/* アコーディオンのコンテンツ部分のスタイリング */
.accordion-content {
  padding: 15px;
  line-height: 1.5;
  background-color: #fff;
}

/* カスタム矢印のスタイル */
.accordion-header::after {
  content: "▼"; /* ここに好きなアイコンを設定できます */
  position: absolute;
  right: 10px; /* ヘッダーから右に10pxの位置 */
  transition: transform 0.3s ease; /* アニメーション効果 */
}
/* アコーディオンが開いている時の矢印のスタイル */
.accordion[open] .accordion-header::after {
  transform: rotate(180deg); /* 矢印を180度回転 */
}

/* ホバー時のヘッダーのスタイル */
.accordion-header:hover {
  background-color: #e7e7e7; /* ホバー時の背景色 */
}

/* WebKitベースのブラウザでデフォルトの矢印を消す */
.accordion .accordion-header::-webkit-details-marker {
  display: none;
}

/* 会社情報 */
dl {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 5rem;
}

dt {
  width: 20%;
  margin: 0;
  border-bottom: 1px solid #ccc;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2rem;
  padding: 1.2em 1em 1em 0;
  vertical-align: middle;
  align-items: center;
}

dd {
  width: 80%;
  margin: 0;
  padding: 1em 1em 1em 0;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
  line-height: 2.7rem;
  line-height: 1.8;
}

.iframe-wrapper {
  position: relative;
  height: 0;
  overflow: hidden;
  width: 500px;
  height: 350px;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* タブレット */
@media screen and (max-width: 768px) {
  dt {
    width: 30%;
  }

  dd {
    width: 70%;
  }

  .iframe-wrapper {
    width: 100%;
    height: 350px;
  }
}

@media screen and (max-width: 375px) {
  dt {
    width: 30%;
  }

  dd {
    width: 70%;
  }

  .iframe-wrapper {
    width: 350px;
    height: 350px;
  }
}

/* フッター */
footer {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 60px;
}

@media screen and (max-width: 375px) {
  footer {
    margin-top: 100px;
    margin-bottom: 20px;
  }
}
