/* 基本スタイル */
body {
  margin: 0;
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

header {
  background-color: #0f7800;
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}


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

.logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 4px 20px;
}

.logo img {
  height: 40px;

}


.header-links {
  align-items: center;
}

.header-links a {
  color: white;
  padding: 10px;
  text-decoration: none;
  font-size: 1em;
}

.header-links a:hover {
  text-decoration: underline;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #333;
}

nav a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
}

nav a:hover {
  background-color: #575757;
}

/*humberger*/
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  .switch_icon {
    text-align: right;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu.active {
    left: 0;
  }
}


/* ヒーロースライドショー */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
}

.container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

section {
  margin-bottom: 40px;
}

h2 {
  color: #4caf50;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.service {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
}

.service img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 10px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 10px;
  border: none;
  background-color: #4caf50;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #45a049;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery img,
.gallery video {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.05);
}

/* モーダルのスタイル */
.modal {
  display: none;
  /* 初期状態は非表示 */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  /* 背景を半透明に */
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}


.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* 左右別々の位置指定 */
#prevBtn {
  left: 15px;
}

#nextBtn {
  right: 15px;
}

/* ホバー時のエフェクト */
.modal-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* スマホ用の調整 */
@media (max-width: 768px) {
  .modal-nav {
    font-size: 20px;
    padding: 8px;
  }
}


#title {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 10px 0px 10px;
  font-size: 22px
}




#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 0px 10px 0px 10px;
  font-size: 16px;
}


.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

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

/* Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

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

.faq-item {
  margin-bottom: 15px;
}

.faq-item h3 {
  margin: 0;
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: rotate(45deg);
}

.faq-item p {
  display: none;
  padding: 10px 0 0 0;
  border-top: 1px solid #ccc;
}

.faq-item.active p {
  display: block;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
}

@media (max-width: 768px) {
  .logo img {
    width: 250px;
    height: auto;

  }

  nav {
    flex-direction: column;
  }

  nav a {
    text-align: left;
    padding: 10px;
    border-top: 1px solid #575757;
  }

  nav a:first-child {
    border-top: none;
  }

  .header-links.active {
    display: grid;
  }

  .header-links {
    display: none;
  }

  .header-container {
    display: block;

  }

  .header-links a {
    color: rgb(38, 38, 38);
    background-color: white;
    text-align: center;
  }


  .header-links a{
    border-top: 1px solid lightgray;
  }

  .header-links a:first-child {
    border-top: none;
  }

  .header-links a:last-child {
    border-bottom: none;
  }
}