/* 全体のスタイル */
body {
  font-family: "Helvetica", "Arial", sans-serif;
  margin: 0;
  padding: 0;
}

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #fff;
  position: fixed; /* ヘッダーを固定するためにこの行を追加 */
  top: 0; /* これにより、ヘッダーが画面の上端に固定されます */
  left: 0; /* これにより、ヘッダーが画面の左端に固定されます */
  width: 100%; /* これにより、ヘッダーが画面全体の幅を占めます */
  z-index: 1000; /* 他の要素がヘッダーの上に表示されないように、z-indexを設定 */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* 影を追加してヘッダーが立体的に見えるように */
}

/* コンテンツ */
main {
  padding-top: 70px; /* ヘッダーの高さに応じて、上部の余白を調整 */
}

.logo-container {
  margin-right: 10px;
}

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

nav li {
  margin: 0 10px;
  cursor: pointer;
}

nav li:hover > a {
  color: blue;
}

.sub-nav {
  display: none;
}

nav li:hover .sub-nav {
  display: block;
  position: absolute;
  background-color: #fff;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.sub-nav a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
}

.sub-nav a:hover {
  background-color: #f1f1f1;
}


/* スライドショー */
.slideshow {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 800px;
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: slideshow 20s infinite;
}

.slideshow img:nth-child(4) {
  animation-delay: 0s;
}

.slideshow img:nth-child(3) {
  animation-delay: 5s;
}

.slideshow img:nth-child(2) {
  animation-delay: 10s;
}

.slideshow img:nth-child(1) {
  animation-delay: 15s;
}

@keyframes slideshow {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* 縦に並んだリンク */
.vertical-links {
  background-color: #fff0f5;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  margin: 20px auto;
}

.vertical-links a {
  display: flex; /* 追加: この行でリンク内の要素を横並びにする */
  justify-content: space-between; /* 追加: この行でリンク内の要素を両端に寄せる */
  text-decoration: none;
  color: #d6005b;
  padding: 5px 10px;
  margin-bottom: 5px;
  background-color: #fff0f5;
}

.vertical-links a:hover {
  color: #000;
  background-color: #ffe4e1; /* 追加: マウスオーバー時の背景色を濃い桜色にする */
}

/* 追加: リンク内の「>」記号のスタイル */
.vertical-links .chevron {
  color: #d6005b;
}


/* 横に並んだリンク */
.horizontal-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.horizontal-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  width: calc((100% - 80px) / 5); /* ここで横幅を計算しています */
  transition: transform 0.3s;
}

.horizontal-links img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.horizontal-links a:hover {
  transform: scale(1.1);
}

.horizontal-links a:hover img {
  transform: scale(1.1);
}

.horizontal-links a:hover span {
  color: blue;
}


/* アンダーバー */
.divider {
  border-bottom: 1px solid #ccc;
  width: 80%;
  margin: 20px auto;
}



/* 新着情報 */
.news-container {
  width: 80%; /* 追加: 横幅を80%にする */
  margin: 20px auto;
  display: flex; /* 追加: 左寄せと右寄せを実現するためにflexを使用 */
  justify-content: space-between; /* 追加: コンテンツを左右に寄せる */
}

.news-title {
  font-weight: bold;
}

.news-link {
  text-decoration: none;
  color: #000;
}

.news-link:hover {
  color: blue; /* 追加: マウスオーバー時に青色に変化する */
}


/* 4個の縦リンク */
.four-links a {
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
  color: #000;
}

.four-links a:hover {
  color: blue;
}
/* 正方形のリンク */
.square-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #fff0f5 70%, #ffffff 70%);
  padding: 20px;
  width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.square-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  width: calc((100% - 80px) / 4); /* ここで横幅を計算しています */
  background-color: #fff;
  border: 1px solid #000;
  padding: 10px;
  box-sizing: border-box;
  transition: border 0.3s;
}

.square-links a:hover {
  border: 1px solid #000;
  color: blue;
}

.square-links img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
}


/* 正方形のリンク */
.square-links2 {
  display: flex;
  justify-content: space-between;
  margin: 20px 20px;
  width: calc(100% - 40px);
}

.square-link {
  flex-basis: calc(25% - 10px);
  background-color: #fff;
  text-align: center;
  transition: all 0.3s;
}

.square-link a {
  text-decoration: none;
  color: #000;
  display: block;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.square-link a img {
  width: 100%;
  height: auto;
  transition: all 0.3s;
}

.square-link:hover {
  border-color: black;
}

.square-link:hover a {
  color: blue;
}

.square-link:hover a img {
  transform: scale(1.1);
}

/* 新しいセクション */
.new-section {
  display: flex;
  width: 100%;
  margin-top: 20px; /* 20pxの余白を追加 */
}

.left-part {
  background-color: #fff; /* 左30%の背景色 */
  flex-basis: 30%; /* 左部分の横幅を30%に設定 */
}

.right-part {
  background-color: #ff9999; /* 右70%の背景色（桜色） */
  flex-basis: 70%; /* 右部分の横幅を70%に設定 */
}




.custom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

.iframe-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.iframe-item {
  margin: 0 10px;
}

.iframe-item:first-child {
  margin-right: 20px;
}




/* 会社説明 */
.company-description {
  position: relative;
  background-image: url('https://img13.shop-pro.jp/PA01277/075/etc/earth-g1af9b8b6f_1920.jpg?cmsp_timestamp=20230428192653'); /* 仮の背景画像 */
  background-size: cover;
  background-position: center center;
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.company-description-content {
  position: relative;
  background-color: rgba(0, 0, 0, 0.6); /* 背景を半透明の黒に */
  display: inline-block;
  padding: 40px;
  border-radius: 10px;
}

.company-description h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}

.company-description p {
  font-size: 18px;
  line-height: 1.6;
}


/* フッター */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  flex-basis: 25%;
  text-align: center;
}

.footer-info {
  flex-basis: 35%;
  font-size: 16px;
  line-height: 1.6;
}

.footer-links {
  flex-basis: 40%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links a {
  display: block;
  flex-basis: calc(50% - 10px);
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ff9999;
}

/* レスポンシブデザイン */
@media screen and (max-width: 800px) {
  .footer-logo,
  .footer-info,
  .footer-links {
    flex-basis: 100%;
    margin-bottom: 20px;
  }
}


