@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* 全体のレイアウト */
html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #1e322f;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

[id] {
  scroll-margin-top: 6rem;
}

/* ヘッダー */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.header-background {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav li {
  position: relative;
}

nav li a::after {
  content: url(../image/arrow.png);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav li a:hover::after {
  content: url('../image/arrow_hover.png');
}

nav li::before {
  content: "";
  display: block;
  position: absolute;
  left: -1rem;
  top: 0;
  height: 200%;
  width: 1px;
  background-color: #c0c0c0;
}

nav li:last-child::after {
  content: "";
  display: block;
  position: absolute;
  right: -1rem;
  top: 0;
  height: 200%;
  width: 1px;
  background-color: #c0c0c0;
}

nav a {
  color:#1e322f;
  text-decoration: none;
}

nav a:hover {
  color:#0dc17f;
}

/* ハンバーガーメニューのスタイル（レスポンシブ用） */
.menu-toggle {
  display: none; /* デフォルトでは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  margin-left: 2rem;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background-color: #1e322f;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  width: 100%;
  top: 9px;
  left: 0;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  width: 100%;
  top: 9px;
  left: 0;
  transform-origin: center;
}

/* メインコンテンツ部のレイアウト */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  padding: 2rem;
}

h1 {
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h1::before {
  display: block;
  font-size: 1.4rem;
  color: #0dc17f;
  margin-bottom: 0.5rem;
}

h2 {
  font-weight: 500;
  font-size: 1.5rem;
}

h3 {
  font-weight: 400;
  font-size: 1.5rem;
}

h3::after {
  display: block;
  font-weight: 300;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #c0c0c0;
  width: 16rem;
}

p {
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.8rem;
}

/* サービスセクションの配置 */

#services {
  width: 100%;
}

#services .service-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

#services .service-content .left {
  flex: 1;
  border-right: 1px solid #c0c0c0;
  padding-right: 1rem;
  text-align: right;
}

#services .service-content .right {
  flex: 1;
}

#services .service-map-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

#services .service-map-content .left {
  flex: 1;
}

#services .service-map-content .right {
  flex: 1;
}

/* サービスセクションのレイアウト */

#services h1::before {
  content: "― Our Service";
}

#services h3.road-service::after {
  content: "road service";
}

#services h3.service-map::after {
  content: "road service map";
}

#services h2.tel::before {
  content: "TEL";
  font-weight: 300;
  font-size: 1rem;
  color: #0dc17f;
  margin-right: 0.5rem;
}

dd {
  margin: 0;
  padding: 0;
}

dd::before {
  content: "・";
}

dt {
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* 会社概要セクション */

#company {
  width: 100%;
  background-color: #eff2f3;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

#company h1::before {
  content: "― Company";
}

/* テーブル（会社概要） */
table {
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: 10px;
  margin-bottom: 2rem;
}

th, td {
  padding: 0.7rem;
  border: 1px solid #c0c0c0;
  border-left: none;
}

th {
  font-weight: bold;
  text-align: left;
  width: 10%;
}

td {
  border-right: none;
}

/* 会社概要の地図と写真 */

.company-content {
  text-align: center;
}

.company-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

/* 求人情報セクションの配置 */
#recruit {
  margin: 0 auto;
  position: relative;
  margin-bottom: 1rem;
}

#recruit .right img {
  position: absolute;
  top: 0;
  right: 0;
  height: auto;
  z-index: -1;
}

#recruit .recruit-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

#recruit .recruit-content .left {
  flex: 1;
}

#recruit .recruit-content .right {
  flex: 1;
}

#recruit .recruit-info {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

#recruit .recruit-info .left {
  flex: 1.7;
  border-right: 1px solid #c0c0c0;
  padding-right: 1rem;
  text-align: right;
}

#recruit .recruit-info .right {
  flex: 8.3;
}

/* 求人情報セクションのレイアウト */

#recruit h1::before {
  content: "― Recruit";
}

#recruit h3::after {
  content: "road service staff";
}

#recruit h4 {
  font-weight: 400;
  font-size: 1.2rem;
}

/* お問い合わせセクション */

#contact {
  width: 100%;
  background-color: #eff2f3;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

#contact h1::before {
  content: "― Contact Us";
}

/* お問い合わせフォーム */
#contact form {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 10px;
}

#contact div {
  margin-bottom: 2rem;
}

label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

input, textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
  border: 1px solid #c0c0c0;
  border-radius: 10px;
  font-size: 1rem;
}

#tel, #fax, #post-number {
  width: 20%;
}

#post-number {
  margin-left: 0.5rem;
}

select {
  width: 15%;
  padding: 1rem;
  border: 1px solid #c0c0c0;
  border-radius: 10px;
  font-size: 1rem;
}

.required {
  color: white;
  background-color: #d21616;
  padding: 0 0.5rem;
  margin-right: 0.7rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
}

.policy-check {
  display: flex;
  align-items: center;
}

input[type="submit"] {
  cursor: pointer;
  display: block;
  width: auto;
  margin: 0 auto;
  background-color: #0dc17f;
  color: white;
  border: 1px solid #0dc17f;
  font-size: 1.2rem;
  border-radius: 50px;
}

input[value] {
  padding: 1rem 2rem;
}

input[type="submit"]:hover {
  background-color: white;
  color: #0dc17f;
  border: 1px solid #0dc17f;
}

/* プライバシーポリシーセクション */

#privacy-policy {
  width: 100%;
}

#privacy-policy .privacy-policy::before {
  display: block;
  content: "― Privacy Policy\A";
  white-space: pre;
  font-weight: 400;
  font-size: 1.4rem;
  color: #0dc17f;
  margin-bottom: 0.5rem;
}

/* フッター */
footer {
    width: 100%;
    text-align: center;
    border-top: 1px solid #0dc17f;
    padding-top: 2rem;
}

.copyright {
  color: #0dc17f
}

/* メディアクエリ（レスポンシブデザイン） */
@media screen and (max-width: 768px) {
  /* ヘッダー（メニュー部） */
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none; /* デフォルトでは非表示 */
    flex-direction: column;
    position: absolute;
    width: 100%;
    top: 90%;
    left: 0;
    background-color: #fff;
    border: solid 1px #c0c0c0;
    border-radius: 10px;
    z-index: 1000;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav.active {
    display: flex;
  }

  nav li::before {
    display: none;
  }

  nav li:last-child::after {
    display: none;
  }

  nav li a::after {
    display: none;
  }

  /* メインコンテンツ */
  main {
    max-width: none;
    width: 100%;
    padding: 1rem;
  }

  /* サービスセクション */
  #services .service-content,
  #services .service-map-content {
    flex-direction: column; /* 左右分割を縦並びに変更 */
    gap: 1rem;
    margin-bottom: 3rem; /* 余白を小さくする */
  }

  #services .service-content .left,
  #services .service-content .right,
  #services .service-map-content .left,
  #services .service-map-content .right {
    flex: none;
    border: none;
    padding: 0;
    text-align: left;
  }

  /* 会社概要セクション */
  #company {
    padding: 1rem;
  }

  table {
    border-collapse: separate; /* セルの間隔を分離 */
    padding: 1rem;
  }

  th, td {
    display: block;
    width: 100%;
    border: none;
    padding: 0.5rem 0;
  }

  td {
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 1rem;
  }

  /* 求人情報セクション */
  #recruit h4 {
    margin-bottom: 0; /* 見出しと本文の間の余白を小さくする */
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 0.5rem;
    width: 10rem;
  }

  #recruit .recruit-content {
    flex-direction: column; /* 左右分割を縦並びに変更 */
    gap: 1rem;
  }

  #recruit .recruit-info {
    flex-direction: column; /* 左右分割を縦並びに変更 */
    gap: 1rem;
    margin-bottom: 1rem; /* 余白を小さくする */
  }

  #recruit .right img {
    position: static; /* 位置固定を解除 */
    top: auto;
    right: auto;
    margin: 0 auto;
  }

  #recruit .recruit-info .left,
  #recruit .recruit-info .right {
    flex: none;
    border: none;
    padding: 0;
    text-align: left;
  }

  /* お問い合わせセクション */
  #contact {
    padding: 1rem;
  }

  /* お問い合わせフォーム */
  #contact form {
    padding: 1rem;
  }

  #contact div {
    margin-bottom: 1rem;
  }

  input, textarea, select {
    padding: 0.8rem;
  }

  #tel, #fax, #post-number {
    width: 80%;
  }

  select {
    width: 60%;
  }

  /* フッター */
  footer {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}