/*全体設定-------------------------------*/

* {
  box-sizing: border-box;
}

body {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: #1b1b1e;
  font-size: 15px;
  line-height: 2em;
  font-weight: 500;
  margin-top: 85px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a:link {
  color: #fff;
}

/*
a:visited {
  color: #2c3e50;
}


a:hover {
  color: #2c3e50;
  text-decoration: none;
}
*/
a:active {
  color: #ffffff;
}

#container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#nav li a,
#g-nav-list li a {
  color: #000000;
  /* 通常時の文字色 */
  text-decoration: none;
  /* 下線なし */
  font-size: 1rem;
  transition: color 0.3s;
  /* ホバー時に色が変わるアニメーション */
}

#nav li a:hover,
#g-nav-list li a:hover {
  color: #f76c5e;
  /* ホバー時の色 */
  text-decoration: underline;
  /* ホバー時に下線 */
}

/*メニュー------------------------*/
#nav {
  display: block;
  margin: 10px 100px 20px auto;
}


#nav ul {
  display: flex;
  list-style-type: none;
}

#nav li a {
  display: block;
  text-decoration: none;
  padding: 0.5rem 1rem;
  color: #000000;
}

#g-nav-list ul {
  display: block;
  list-style-type: none;
  text-decoration: none;
  padding: 2rem 1rem;
  font-size: 120%;
}

@media screen and (max-width: 900px) {
  #nav {
    display: none;
  }
}

/*ヘッダー-------------------------*/
header {
  position: absolute;
  z-index: 999;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 85px;
  display: flex;
  background: #ffffff;
  margin-bottom: 0;
}

#top_logo {
  display: block;
  width: 200px;
  margin: 25px;
}
.scroll-top {
  position: fixed;
  bottom: 20px;
  /* 画面の下から20px */
  right: 20px;
  /* 画面の右から20px */
  padding: 10px 15px;
  z-index: 1000;
  /* 他の要素より前に出すため */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: inherit;
  background-color: transparent;
}
/* スマートフォン（最大幅480px） */
@media screen and (max-width: 480px) {
  .scroll-top {
    bottom: 15px; /* 画面下から少し近づける */
    right: 15px; /* 画面右から少し近づける */
    padding: 6px 10px; /* ボタンのパディングを小さく */
    font-size: 14px; /* フォントサイズを少し小さく */
  }
}

/* タブレット（最大幅768px） */
@media screen and (max-width: 768px) {
  .scroll-top {
    bottom: 20px; /* 画面下から20px */
    right: 20px; /* 画面右から20px */
    padding: 8px 12px; /* ボタンのパディングを少し小さく */
    font-size: 16px; /* フォントサイズを少し小さく */
  }
}

/* 小さめのPC画面（最大幅1024px） */
@media screen and (max-width: 1024px) {
  .scroll-top {
    bottom: 20px; /* 画面下から20px */
    right: 20px; /* 画面右から20px */
    padding: 8px 14px; /* ボタンのパディングを少し小さく */
    font-size: 16px; /* フォントサイズを少し小さく */
  }
}

/* 大きいPC画面（最小幅1025px） */
@media screen and (min-width: 1025px) {
  .scroll-top {
    bottom: 20px; /* 画面下から20px */
    right: 20px; /* 画面右から20px */
    padding: 10px 15px; /* 標準のパディング */
    font-size: 18px; /* フォントサイズはそのまま */
  }
}
/*メインビジュアル start-------------------------*/
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('../images/FarmLine_top_photo.jpg') center/cover no-repeat;
  overflow: hidden;

}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(8, 46, 78, 0.3),
      /* 深緑 082e4e */
      rgba(166, 163, 73, 0.2)
      /* 黄色 a6a349 */
    );
  z-index: 0;
}

.hero-section>* {
  position: relative;
  z-index: 1;
  /* 擬似要素の上に出す！ */
}

.hero-catchcopy {
  position: absolute;
  top: 40px;
  left: 40px;
  width: auto;
  max-width: 80%;
  height: auto;
}

.hero-subcopy {
  position: absolute;
  top: 30%;
  /* 上からの位置を中央付近に */
  left: 50%;
  /* 横中央 */
  transform: translateX(-50%);
  /* 横だけ中央寄せ */
  max-width: 80%;
  /* 画面幅に合わせて縮む */
  height: auto;
}

.hero-title {
  position: absolute;
  top: 40%;
  /* サブコピーより下に調整 */
  left: 50%;
  transform: translateX(-50%);
  max-width: 50%;
  /* ドカンと大きめに！ */
  height: auto;
}

.hero-button {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  background: #e85a4f;
  /* お好みの色 */
  color: #fff;
  text-decoration: none;
  padding: 18px 50px;
  /* ← paddingを増やす！ */
  border-radius: 40px;
  /* ← 丸みを強める */
  font-weight: bold;
  font-size: 1.5rem;
  /* ← 文字も少し大きく */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.hero-button:hover {
  transform: translateX(-50%) translateY(-3px);
}

/* PC縮小（1024px以下） */
@media screen and (max-width: 1024px) {
  .hero-section {
    height: 80vh;
    /* PC縮小時はちょっと低く */
  }

  .hero-catchcopy {
    top: 30px;
    left: 30px;
    max-width: 85%;
  }

  .hero-subcopy {
    top: 30%;
    max-width: 85%;
  }

  .hero-title {
    top: 50%;
    max-width: 60%;
  }

  .hero-button {
    top: 80%;
    /* ボタン位置も微調整 */
    font-size: 1.1rem;
    /* 小さくなりすぎないように！ */
    padding: 16px 45px;
    /* 余白も大きめで存在感をキープ */
    border-radius: 40px;
  }
}

/* タブレット（768px以下） */
@media screen and (max-width: 768px) {
  .hero-section {
    height: 70vh;
    /* 画面の70%に縮める */
  }

  .hero-catchcopy {
    top: 20px;
    left: 20px;
    max-width: 90%;
  }

  .hero-subcopy {
    top: 35%;
    max-width: 90%;
  }

  .hero-title {
    top: 45%;
    max-width: 70%;
  }

  .hero-button {
    font-size: 1rem;
    padding: 14px 40px;
    border-radius: 35px;
  }
}

/* スマホ（480px以下） */
@media screen and (max-width: 480px) {
  .hero-section {
    height: 60vh;
    /* 画面の60%に縮める */
  }

  .hero-catchcopy {
    top: 15px;
    left: 15px;
    max-width: 95%;
  }

  .hero-subcopy {
    top: 38%;
    max-width: 95%;
  }

  .hero-title {
    top: 50%;
    max-width: 80%;
  }

  .hero-button {
    font-size: 0.95rem;
    padding: 12px 30px;
    border-radius: 30px;
  }
}

/*メインビジュアル end-------------------------*/

/******************************************* 説明Start *****************************************/
/* セクション全体 */
.product-description {
  background-color: #082e4e;
  /* ネイビー */
  color: #fff;
  /* 白文字 */
  padding: 60px 20px;
  text-align: center;
  min-height: 500px;
}

/* 読みがな */
.product-reading {
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: -30px;
  color: #fff;
  /* 必要なら別色に */
}

/* タイトル */
.product-title {
  position: relative;
  /* 下線の絶対位置基準に必要！ */
  display: inline-block;
  font-size: 5rem;
  font-weight: bold;
  z-index: 0;
  /* 文字の下に */
  margin-bottom: 40px;
  /* 下線にかぶらない余白 */
}

/* 下線 */
.product-title .title-underline {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  /* タイトルと少し離す */
  transform: translateX(-50%);
  width: 100%;
  height: 15px;
  /* 太めの線でかぶり感を出す */
  background-color: #deb83f;
  /* 黄色 */
  z-index: -1;
  /* 文字の下に */
  border-radius: 4px;
  /* 端を丸くする場合 */
}

.product-text.title-underline {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  /* タイトルと少し離す */
  transform: translateX(-50%);
  width: 100%;
  height: 15px;
  /* 太めの線でかぶり感を出す */
  background-color: #deb83f;
  /* 黄色 */
  z-index: -1;
  /* 文字の下に */
  border-radius: 4px;
  /* 端を丸くする場合 */
}

/* 説明文 */
.product-text {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 50%;
  margin: 0 auto;
  text-align: left;
}

/* ------------------------
   レスポンシブ対応
------------------------ */
/* 中間幅 PC 小さめウィンドウ用 */
@media screen and (max-width: 1024px) {
  .product-title {
    font-size: 4rem;
  }

  .product-text {
    max-width: 70%;
    font-size: 1.1rem;
  }
}

/* タブレット用（例：幅768px以下） */
@media screen and (max-width: 768px) {
  .product-title {
    font-size: 3.5rem;
  }

  .product-text {
    max-width: 80%;
    font-size: 1rem;
    text-align: center;
  }

  .product-description {
    padding: 40px 15px;
  }
}

/* スマホ用（例：幅480px以下） */
@media screen and (max-width: 480px) {
  .product-title {
    font-size: 2.5rem;
  }

  .product-reading {
    font-size: 0.9rem;
  }

  .product-text {
    max-width: 90%;
    font-size: 0.95rem;
    text-align: center;
  }

  .product-description {
    padding: 30px 10px;
  }
}

/******************************************* 説明End *****************************************/

/******************************************* お困りごとstart *****************************************/
/* セクション全体 */
.problem-section {
  background-color: #fff;
  /* 背景は白 */
  padding: 60px 20px;
  text-align: center;
}

.problem-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  display: inline-block;
  /* 下線を中央寄せしやすくする */
  position: relative;
  color: #082e4e;
}

.problem-title::after {
  content: "";
  display: block;
  width: 60px;
  /* 下線の長さ（お好みで） */
  height: 5px;
  /* 下線の太さ */
  background-color: #deb83f;
  /* 下線の色 */
  margin: 8px auto 0;
  /* 上下中央寄せ */
  border-radius: 2px;
  /* 丸みをつけるなら */
}

/* 画像グリッド */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 横2列 */
  grid-template-rows: repeat(2, auto);
  /* 縦2行 */
  gap: 20px;
  /* 画像の間隔 */
  justify-content: center;
  /* 中央寄せ */
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.problem-item img {
  height: auto;
  display: block;
  border-radius: 8px;
  /* 角丸にしたい場合 */
}

/* タブレット用：横2列を維持 */
@media screen and (max-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 15px;
    max-width: 70%;
    padding: 0 10px;
  }
}

/* スマホ用：1列にする */
@media screen and (max-width: 480px) {
  .problem-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 15px;
    max-width: 80%;
    padding: 0 10px;
  }

  .problem-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
}

/******************************************* お困りごとend *****************************************/

/******************************************* できることstart *****************************************/
.features-section {
  background-color: #5f9692;
  /* 白背景 */
  padding: 80px 20px;
  text-align: center;
}

.features-title {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 60px;
}

.features-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #deb83f;
  /* 下線色 */
  margin: 8px auto 0;
  border-radius: 2px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-item {
  color: #082e4e;
  background-color: #f5f5f5;
  /* カード背景 */
  padding: 30px 20px;
  border-radius: 8px;
  flex: 0 1 calc(33.333% - 40px);
  /* 3列 */
  box-sizing: border-box;
}

.features-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.features-item p {
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .features-item {
    flex: 0 1 calc(50% - 20px);
    /* 2列 */
  }
}

@media screen and (max-width: 480px) {
  .features-item {
    flex: 0 1 100%;
    /* 1列 */
  }
}

/******************************************* できることend *****************************************/

/******************************************* 運用イメージstrat *****************************************/
.operational-image-section {
  background-color: #fff;
  /* 必要なら */
  text-align: center;
  /* 中央寄せの保険 */
  padding: 40px 20px;
}

/* 画像 */
.operational-image {
  display: block;
  margin: 0 auto;
  /* 横方向中央 */
  max-width: 100%;
  /* 親要素に合わせて縮む */
  height: auto;
}

/* レスポンシブ（大きい画面でも最大幅を調整） */
@media screen and (min-width: 1200px) {
  .operational-image {
    max-width: 80%;
    /* PC大画面でも大きすぎないように */
  }
}

/* タブレット */
@media screen and (max-width: 768px) {
  .operational-image {
    max-width: 90%;
  }
}

/* スマホ */
@media screen and (max-width: 480px) {
  .operational-image {
    max-width: 100%;
  }
}

/******************************************* 運用イメージend *****************************************/

/******************************************* 主な機能start *****************************************/
.accordion-section {
  min-width: 80%;
  margin: 0 auto;
  padding: 40px 20px;
}

.accordion-parent {
  background: #e85a4f;
  color: white;
  padding: 15px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  /* 横並びにする！ */
  justify-content: space-between;
  /* 左右を離す */
  align-items: center;
  /* 垂直中央 */
}

.accordion-parent:hover {
  background: #e85a4f;
}

.accordion-label {
  flex: 1;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #fafafa;
}

.accordion-description {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.accordion-description img {
  width: 50%;
  /* 親要素の幅に合わせて広がる */
  height: auto;
  /* アスペクト比を保持 */
  display: block;
  /* 余白バグ防止 */
  margin-top: 15px;
  /* 上に余白（お好み） */
  border-radius: 8px;
  /* 必要なら角丸 */
}

.accordion-description:last-child {
  border-bottom: none;
}

.accordion-description h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.accordion-description p {
  margin: 0;
  line-height: 1.5;
}

.accordion-section.active .accordion-content {
  max-height: 100%;
  /* 十分大きめに */
  padding: 10px 0;
}

.accordion-parent-text {
  font-size: 0.9rem;
}

.accordion-close {
  background-color: #082e4e;
  display: none;
  /* 最初は非表示 */
  text-align: right;
  font-size: 0.9rem;
  color: white;
  cursor: pointer;
  padding: 15px 20px;
  user-select: none;
}

.accordion-section.active .accordion-close {
  display: block;
  /* 開いたときだけ表示 */
}

.accordion-description h3 {
  position: relative;
  display: inline-block;
  width: 100%;
  font-size: 1.5rem;
  margin: 0 0 5px;
  z-index: 0;
}

.accordion-description h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  /* 被り具合を微調整 */
  width: 100%;
  height: 15px;
  /* 太めで被り感 */
  background-color: #5f9692;
  /* 下線の色 */
  z-index: -2;
  /* 文字の下にくぐらせる */
  border-radius: 8px;
}

.accordion-images {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.accordion-images img {
  width: calc(50% - 10px);
  /* 2枚で1行分になるよう調整 */
  height: auto;
  border-radius: 8px;
  display: block;
}

/* PCで画面幅が少し狭いとき */
@media screen and (max-width: 1024px) {
  .accordion-section {
    width: 100%;
    max-width: 90%;
  }

  .accordion-description h3 {
    font-size: 1.3rem;
  }

  .accordion-parent {
    font-size: 1rem;
  }

  .accordion-images {
    flex-direction: column;
    gap: 10px;
  }

  .accordion-images img {
    width: 100%;
  }
}

/* タブレット（768px以下） */
@media screen and (max-width: 768px) {
  .accordion-section {
    width: 100%;
    max-width: 100%;
    padding: 30px 15px;
  }

  .accordion-parent {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .accordion-description {
    padding: 12px 15px;
  }

  .accordion-description h3 {
    font-size: 1.1rem;
  }

  .accordion-close {
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  .accordion-images {
    flex-direction: column;
    gap: 10px;
  }

  .accordion-images img {
    width: 100%;
  }
}

/* スマホ（480px以下） */
@media screen and (max-width: 480px) {
  .accordion-section {
    width: 100%;
    padding: 20px 10px;
  }

  .accordion-parent {
    font-size: 0.9rem;
    flex-direction: column;
    /* 折り返しもOK */
    align-items: flex-start;
  }

  .accordion-parent-text {
    margin-top: 5px;
  }

  .accordion-description {
    padding: 10px 10px;
  }

  .accordion-description h3 {
    font-size: 1rem;
  }

  .accordion-description p {
    font-size: 0.95rem;
  }

  .accordion-close {
    padding: 10px 10px;
    font-size: 0.8rem;
    text-align: left;
  }

  .accordion-images {
    flex-direction: column;
    gap: 10px;
  }

  .accordion-images img {
    width: 100%;
  }
}

/******************************************* 主な機能end *****************************************/

/******************************************* 料金＆問い合わせstart *****************************************/
.contact-section {
  background-color: #5f9692;
  /* 画像に近いグリーン系 */
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.contact-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background-color: #deb83f;
  /* 黄色の下線 */
  margin: 8px auto 0;
  border-radius: 2px;
}

.contact-subtitle {
  color: #deb83f;
  font-size: 1.8rem;
  margin: 20px 0;
}

.contact-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.contact-button:hover {
  transform: translateY(-3px);
}

.contact-button--yellow {
  background-color: #deb83f;
}

.contact-button--red {
  background-color: #e85a4f;
}

.contact-note {
  font-size: 0.8rem;
  margin-top: 30px;
  opacity: 0.8;
}

/* タブレット以下（768px以下） */
@media screen and (max-width: 768px) {
  .contact-section {
    padding: 50px 15px;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-subtitle {
    font-size: 1.5rem;
  }

  .contact-text {
    font-size: 0.95rem;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
    /* 縦並び中央揃え */
    gap: 15px;
  }

  .contact-button {
    width: 70%;
    max-width: 250px;
    /* お好みで */
    padding: 12px 20px;
  }

  .contact-note {
    font-size: 0.75rem;
  }
}

/* スマホ（480px以下） */
@media screen and (max-width: 480px) {
  .contact-section {
    padding: 40px 10px;
  }

  .contact-title {
    font-size: 1.2rem;
  }

  .contact-subtitle {
    font-size: 1.3rem;
  }

  .contact-text {
    font-size: 0.9rem;
  }

  .contact-button {
    max-width: 100%;
    padding: 10px 15px;
  }

  .contact-note {
    font-size: 0.7rem;
  }
}

/******************************************* 料金＆問い合わせend *****************************************/

/******************************************* QAstart *****************************************/
/* セクション全体 */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #fff;
  text-align: center;
  /* これを追加！ */
}

/* タイトル */
.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.faq-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: #deb83f;
  /* 黄色下線 */
  margin: 8px auto 0;
  border-radius: 2px;
}

/* FAQ アイテム */
.faq-item {
  display: flex;
  align-items: flex-start;
  /* 上揃えでOK */
  margin-bottom: 20px;
}

/* Q/A アイコン */
.faq-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  margin-right: 15px;
  font-size: 1rem;
}

/* Qの色 */
.faq-icon--q {
  background-color: #264e36;
  /* 緑系 */
}

/* Aの色 */
.faq-icon--a {
  background-color: #deb83f;
  /* 黄色系 */
}

/* 質問・回答テキスト */
.faq-text {
  text-align: left;
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/******************************************* QAend *****************************************/

/******************************************* フッターstart *****************************************/
/* フッターのスタイル */
.footer {
  background-color: #2d5006;
  /* ネイビー系の背景色 */
  color: #fff;
  /* 文字色は白 */
  padding: 20px;
}

/* フッターのコンテナ */
.footer-container {
  display: flex;
  justify-content: space-between;
  /* 左右に分ける */
  align-items: flex-start;
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* 左側（ロゴと会社情報） */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 40%;
  /* 左側の幅 */
}

.company-logo img {
  width: 150px;
  height: auto;
  transition: opacity 0.3s;
}

.company-logo:hover img {
  opacity: 0.8;
}

.company-info {
  font-size: 1.0rem;
  color: #fff;
  font-weight: bold;
}

/* 右側（ボタンとメニュー） */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 60px;
  width: 25%;
  /* 右側の幅 */
  justify-content: flex-start;
  /* 左寄せ */
  margin-left: auto;
  /* 右寄せ */
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  /* 縦並び */
  gap: 16px;
  margin-bottom: 20px;
}

.footer-menu-buttons {
  display: flex;
  gap: 16px;
  margin-top: 50px;
  margin-bottom: -30px;
  min-width: 300px;
}

.footer-buttons {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #fff;
  color: #2c3e50;
  /* ネイビーに合う文字色 */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer-buttons:hover {
  background-color: #f76c5e;
  /* ホバー時に色を変える */
  color: #fff;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-menu li a:hover {
  color: #f76c5e;
  /* ホバー時にオレンジ色に */
}

/* レスポンシブ対応 */
@media screen and (max-width: 1158px) and (min-width: 769px) {
  .footer-container {
    justify-content: space-between;
    max-width: 100%;
    /* 最大幅を100%にする */
    width: 100%;
    /* 幅を100%にして右側の空白を防ぐ */
  }

  .footer-left,
  .footer-right {
    width: 50%;
    /* 幅を50%ずつにして均等に分ける */
  }

  /* 右側のボタンとメニューのサイズ調整 */
  .footer-right {
    margin-left: 0;
    /* 右寄せを解除 */
  }
}

/* モバイルサイズ調整 */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    /* 中央寄せ */
    padding: 20px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: center;
  }

  .footer-buttons {
    flex-direction: row;
    /* 横並びに変更 */
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
  }

  .footer-menu-buttons {
    flex-direction: row;
    /* 横並びに変更 */
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
  }
}

/******************************************* フッターend *****************************************/

/* モーダルの基本スタイル（初期は非表示） */
.modal {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

/* モーダルが開いたときに適用するクラス */
.modal.open {
  display: flex; /* ブロック表示ではなくフレックス表示に */
  justify-content: center; /* 横方向中央 */
  align-items: center;     /* 縦方向中央 */
}

/* モーダル内の画像 */
.modal-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #f76c5e;
  text-decoration: none;
  cursor: pointer;
}