@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap");

/* ----------------------------------------
  ベースのスタイル
---------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Maru Gothic", sans-serif;
  background-color: #f9fbef;
  height: 100vh;
  background-image: url("../images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 500;
}

p {
  font-weight: 300;
}

.horizontal-center {
  margin: 0 auto;
}

.margin_bottom_10 {
  margin-bottom: 10px;
}
.margin_bottom_50 {
  margin-bottom: 50px;
}
.margin_bottom_100 {
  margin-bottom: 100px;
}

/* ----------------------------------------
  ヘッダーのスタイル
---------------------------------------- */
.header {
  background-color: #fcfdef;
  /* 背景色 */
  color: #333333;
  padding: 10px 20px;
}

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

/* -------- ロゴ関連 -------- */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none; /* ハイパーリンクの下線を消す */
  color: inherit; /* テキストの色を親要素に合わせる */
}

.logo img {
  max-height: 60px;
  height: auto;
}

.logo-text p {
  margin: 0;
  color: #333;
}

.logo-text p:first-child {
  font-size: 10px;
  white-space: nowrap;
}

.logo-text p:last-child {
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}

.header .nav li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

.header .nav a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.header .nav small {
  color: #666;
  font-size: 12px;
}

.header .nav .contact-form-button {
  color: white;
}

/* -------- ハンバーガーメニューのスタイル -------- */
.hamburger-menu {
  display: none; /* PCでは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 4px;
  background: #008000;
  border-radius: 2px;
  transition: 0.3s;
}

/* モバイル用のナビゲーション */
@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: flex; /* モバイルでは表示 */
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    padding-top: 60px;
    z-index: 100;
  }

  .nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav ul li {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .nav ul li a {
    text-decoration: none;
    color: black;
    display: block;
  }

  /* メニューを開いた時のスタイル */
  .nav.open {
    right: 0;
  }
}

/* -------- ナビゲーションメニュー -------- */
.nav ul {
  list-style: none;
  align-items: center;
  display: flex;
  gap: 20px;
}

.nav ul li {
  display: flex;
  align-items: center;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
}

.nav a:hover {
  background-color: #555;
  border-radius: 4px;
}

/* -------- 電話アイコンのスタイル -------- */
.contact a {
  display: flex;
  align-items: center;
}

.contact img {
  max-width: 20px;
  margin-right: 5px;
}

.contact small {
  font-size: 12px;
  margin-top: 5px;
}

/* ----------------------------------------
  メインビジュアル
---------------------------------------- */
.kv-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  position: relative;
  margin-top: 50px;
  text-align: center;
  width: 100%;
}

.kv-content {
  text-align: center;
  position: relative;
}

.kv-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.kv-copy {
  font-size: 1.2rem;
  color: #4ba810;
  margin: 0;
}

.kv-copy2 {
  font-size: 1.2rem;
  color: #966430;
  margin: 0;
}

/* 画像のスタイル */
.main-image-home {
  width: 1200px;
  height: 400px;
  object-fit: cover;
  object-position: bottom;
  display: block;
  margin: 0 auto;
  margin-top: 50px;
  border-radius: 20px;
}

.main-image-recruit {
  width: 1200px;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  margin-top: 50px;
  border-radius: 20px;
}

.main-image-services {
  width: 1200px;
  height: 400px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  margin: 0 auto;
  margin-top: 50px;
  border-radius: 20px;
}

/* モバイルデバイスの余白を調整 */
@media screen and (max-width: 768px) {
  .kv-wrapper {
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
    text-align: center;
  }

  .kv-content img {
    width: 90%;
    height: 50%;
    margin-top: 50px;
    border-radius: 20px;
  }
}

/* -------- メインビジュアルすぐ下のメニュー -------- */
.kv-menu {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  display: flex;
  gap: 20px;
  padding: 10px 20px;
  border: 3pt solid #e7f3cc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kv-menu2 {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  display: flex;
  gap: 20px;
  padding: 10px 20px;
  border: 3pt solid #f0f0d1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kv-menu a,
.kv-menu2 a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
}

/* アイコンのスタイル */
.kv-menu img,
.kv-menu2 img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* ホバー時 */
.kv-menu a:hover {
  background: #8dc63f;
  color: #fff;
}

.kv-menu2 a:hover {
  background: #ffc033;
  color: #fff;
}

/* ----------------------------------------
  セクション関連
---------------------------------------- */
.section-wrapper {
  padding-left: 10%;
  padding-right: 10%;
  position: relative;
  margin-top: 50px;
}

/* モバイル向けセクションの余白調整 */
@media screen and (max-width: 768px) {
  .section-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 50px;
}

.section-text {
  width: 60%;
  text-align: center;
}

/* ----------------------------------------
  ページTOPボタン
---------------------------------------- */
.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  color: green;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease-in-out;
  opacity: 0; /* 初期状態は非表示 */
  visibility: hidden;
  z-index: 2;
}

/* アイコンスタイル */
.page-top img {
  width: 50px;
  height: 50px;
}

/* スクロールで表示 */
.page-top.show {
  opacity: 1;
  visibility: visible;
}

/* ----------------------------------------
  フッター
---------------------------------------- */
.footer {
  background-color: #f9fbef;
  padding: 40px 20px;
  text-align: center;
}

.footer-top {
  position: relative;
  background: url("../images/AdobeStock_129694705_Preview.jpeg") center/cover
    no-repeat;
  padding: 50px 20px;
  margin-top: 50px;
  margin-bottom: 30px;
  color: black;
  text-align: center;
  z-index: 1;
}

.footer-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  z-index: -1;
}

.footer-top h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-top p {
  font-size: 16px;
  margin-bottom: 20px;
}

.phone-number {
  font-size: 24px;
  font-weight: bold;
}

.contact-container {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.contact-box {
  background: #fff;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  min-width: 250px;
}

.contact-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  /* 青リンクをなくす */
  font-weight: bold;
}

.contact-button img {
  max-width: 20px;
  margin-right: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info small {
  font-size: 12px;
  color: #666;
}

/* お問い合わせフォームボタンのデザイン */
.contact-form-button {
  border-radius: 10px;
  text-decoration: none;
  background-color: #5fbf20;
  color: white;
  /* 青リンクをなくす */
  font-weight: bold;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 70px;
  line-height: 70px;
  padding: 10px 15px;
}

.footer {
  background: #f8f8e8;
  padding: 20px;
  text-align: center;
}

.instagram-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  align-items: center;
}

/* リンク部分 */
.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: left;
  margin: 30px auto;
}

.footer-menu h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 5px;
}

.footer-menu a {
  text-decoration: none;
  color: #333;
}

/* フッターの最下部 */
.footer-bottom {
  text-align: center;
  font-size: 12px;
}

.footer-bottom a {
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
  color: #333;
}

/* モバイル用のレスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .nav ul li {
    text-align: left;
  }

  .contact {
    margin-top: 10px;
  }

  .contact-btn {
    margin-top: 10px;
  }

  .kv-menu {
    display: flex;
    flex-direction: row;
    /* 横並び */
    justify-content: center;
    /* 中央揃え */
    align-items: center;
    /* 縦方向の中央揃え */
    gap: 5px;
    /* メニュー間の余白を調整 */
    position: absolute;
    bottom: -10px;
    /* 画像と重ねる調整 */
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    /* 画面幅に対して適切な大きさを確保 */
    white-space: nowrap;
    /* テキストを折り返さない */
  }

  .kv-menu a {
    display: flex;
    align-items: center;
    /* アイコンとテキストを横並び */
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 3vw;
    /* ビューポートに応じたサイズ調整 */
    font-weight: bold;
    padding: 1vw 2vw;
    /* 余白も相対的に調整 */
    background: none;
    border-radius: 0;
    white-space: nowrap;
    /* 改行しない */
  }

  .kv-menu img {
    width: 4vw;
    height: 4vw;
    margin-right: 1vw;
  }

  .profile-container {
    width: 90%;
  }

  .profile-table th {
    display: block;
    width: 100%;
  }

  .profile-table td {
    display: block;
    width: 100%;
    border-left: none;
    border-right: none;
  }

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

  .policy-container {
    width: 90%;
  }

  .policy-content {
    padding: 20px;
  }

  .footer-bottom {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right,
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: #f4f5da;
  }

  .footer-menu {
    text-align: center;
  }
}
