body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
}

/* ===== スライダー ===== */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide-track {
  display: flex;
  flex-direction: column;
  animation: scroll linear infinite;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 100vh;
}

.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 43% 0;
}

/* ===== 中央テキスト ===== */
.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease;
  white-space: pre-line;
  /* 改行を有効に */
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.9);
  max-width: 45%;
  padding: 0.5rem 1.5rem 0.75rem;
}

.center-text.visible {
  opacity: 1;
}

/* ===== 左上：会社名＋電話番号 ===== */
.header-info {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 998;
  color: white;
  font-size: clamp(12px, 30px, 1.5vw);
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.9);
  width: 99%;
  background-color: rgb(0 0 0 / 3%);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;

  background: rgba(0,0,0,0.15); /* 背景のぼかし、 半透明が必須 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari用 */
}

.header-info p {
  margin: 0;
}

.header-info a {
  color: inherit;
  text-decoration: none;
}

.header-info .header-shop-link {
  margin: auto 20px auto auto;
  padding: 0px 12px 2px;
  border-radius: 9999px;
  font-size: clamp(18px, 1.7vw, 22px) !important;
  background-color: #ffffff50;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.header-info span {
  display: block;
  font-size: clamp(27px, 60px, 3vw) !important;
  font-family: HG行書体, monospace;
  margin-bottom: 0.25rem;
}

/* ===== 右下：お問い合わせボタン ===== */
.contact-btn {
  position: fixed;
  bottom: 2%;
  right: 3%;
  z-index: 997;
  /* padding: 34px 20px; */
  background: #bdff9f;
  opacity: 0.9;
  color: #171717;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
  border: 5px solid #ff9efb;
  text-decoration: underline;
  white-space: normal;
  width: 144px;
  /* ボタンサイズ（PC） */
  height: 144px;
  display: flex;
  /* 中央揃え */
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  /* 正方形を保持 → border-radiusで円に */
}

.contact-btn:hover {
  background: #c9ffb1;
}

/* ===== メニューボタン ===== */
/* .menu-btn {
      position: fixed;
      top: 1%;
      right: 3%;
      z-index: 1000;
      width: 40px;
      height: 40px;
      background: transparent;
      color: #333;
      border: none;
      cursor: pointer;
      font-size: 2.1rem;
      border-radius: 4px;
    } */

.menu-btn {
  z-index: 1000;
  background: transparent;
  color: #fff; /* #333->#fff */
  border: none;
  cursor: pointer;
  font-size: 2.1rem;
  line-height: 1;
  margin-right: 1rem;
}

/* ===== スライドインメニュー ===== */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 80%;
  height: 100%;
  background-color: rgb(186 167 204 / 85%);
  color: white;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.side-menu.active {
  transform: translateX(0);
}

.side-menu h2 {
  margin-top: 0;
}

.side-menu ul {
  padding-left: 0;
  list-style: none;
}

.side-menu li a {
  color: white;
  text-decoration: none;
}

/* =====左下の固定動画表示エリア====== */
.fixed-video-area {
  position: fixed;    /* 画面に固定 */
  bottom: 2%;       /* 画面下からの距離 */
  left: 20px;         /* 画面左からの距離 */
  width: 500px;
  /* height: 160px; */
  background: rgba(0,0,0,0.7); /* 半透明背景（任意）*/
  color: #fff;        /* 文字色 */
  padding: 0.5rem; /* 内側余白 */
  border-radius: 8px; /* 角丸（任意）*/
  z-index: 9999;      /* 他要素より前に表示 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  display: flex;
  justify-content: space-around;
  align-items: center;
}
.fixed-video-wrapper {
  position: relative;
  width: 230px;
  aspect-ratio: 16 / 9; /* ← 動画比率を保持 */
  overflow: hidden;
  border: 3px solid white;
  border-radius: 6px;
}
.fixed-video-wrapper > iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
/* 上にかぶせる透明リンク */
.fixed-video-wrapper .cover-link {
  position: absolute;
  inset: 0;          /* top/right/bottom/left:0 と同じ */
  display: block;
  text-indent: -9999px; /* 文字は見せない（スクリーンリーダーは aria-label を読む） */
  background: transparent;
  cursor: pointer;
}
.fixed-video-area.show {
  opacity: 1;
  pointer-events: auto;
}



/* ===== 情報セクション ===== */
.info-section {
  display: flex;
  flex-direction: column;
  align-content: space-around;
  width: 100%;
  height: 30vh;
  transition: opacity 1s, transform 1s;
  margin-bottom: 0px;
  padding: 10rem 0;
  background-image: url(topimg/img06.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}
.info-section h4, .info-section p/*, .video_text h4, .video_text p*/ {
  background: rgba(256,256,256,0.25); /* 背景のぼかし、 半透明が必須 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari用 */
  padding: 0.5rem 1.5rem 0.75rem;
}

.example {
  background-image: url(topimg/img10.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.about-us {
  background-image: url(topimg/img02.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.contact {
  background-image: url(topimg/img21.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.shopping {
  background-image: url(topimg/shop.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0%);
  /* ← 好きな色・透明度に調整 */
  z-index: 2;
  /* 背景画像より上、テキストより下 */
  pointer-events: none;
  /* 操作を妨げない */
}

.inner_info {
  z-index: 10;
  position: absolute;
  width: 50%;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.inner_info h4,
.video_text h4 {
  font-size: 1.7rem;
}

.video_text h4,
.video_text p {
  color: white;
}
.video_text p {
  padding: 0 24%;
}

.gobutton {
  color: white;
  text-decoration: none;
  background-color: #57ae64;
  border-radius: 0.5rem;
  padding: 0.75rem 1.2rem;
  z-index: 10;
}

.info-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== スライダー用オーバーレイ ===== */
.slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  /* ← 好きな色・透明度に調整 */
  z-index: 2;
  /* 背景画像より上、テキストより下 */
  pointer-events: none;
  /* 操作を妨げない */
}

/* .slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4); /* 半透明の黒ベース */
/* background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 20px 20px; /* ドット間隔 */
/* z-index: 2;
  pointer-events: none;
} */

/* 中央テキストをオーバーレイの上に表示する */
.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  /* ← ここを 3 に */
  /* 背景をぼかすのを追加 */
  color: black;
  background: rgba(256, 256, 256, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px)
}

ul.navi_menu {
  margin: 3rem 2rem;
}

ul.side_menu li {
  margin-left: 1rem;
}

.video-background {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画面全体を埋める */
}

.video_text {
  z-index: 5;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== スライダー用オーバーレイ ===== */
.video-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.17);
  /* ← 好きな色・透明度に調整 */
  z-index: 2;
  /* 背景画像より上、テキストより下 */
  pointer-events: none;
  /* 操作を妨げない */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px
  );
  background-size: 20px 20px; /* ドット間隔 */
}

.m-top {
  margin-top: 1.5rem;
  display: inline-block;
  width: auto;
  text-align: center;
}
.short {
  width: 40%;
}

footer {
  clear: both;
  color: #fff;
  background-color: #ffffff;
  border-top: 10px solid #ffd1fa;
  min-height: 210px;
  height: auto;
}

/* -- a -- */
footer a {
  color: #131313;
}

/* -- nav -- */
footer nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav li {
  width: 100%;
  float: left;
  color: #131313;
  margin-bottom: 5px;
  padding-right: 2.142856em;
  list-style: none;
}
footer nav li:nth-of-type(6n) {
  clear: both;
}
footer nav li li:nth-of-type(6n) {
  clear: none;
}
.company {
  display: flex;
  justify-content: space-between;
  color: #555;
  width: 100%;
  padding-top: 1em;
  font-weight: bold;
  flex-wrap: wrap;
}
#footright,
#footcent,
#footleft {
  width: 32%;
}

/* -- .copyright -- */
.copyright {
  margin: 0;
  padding: 0.25rem;
  text-align: center;
  color: #131313;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-menu {
    width: 80%;
  }

  .center-text {
    width: 95%;
    /* 横幅を画面の95%に */
    max-width: none;
    /* PC用の制限を解除 */
    font-size: 1.2rem;
    /* スマホ用に少し小さめ */
    text-align: center;
    /* 中央揃え */
    line-height: 1.5;
    /* 読みやすい行間 */
    white-space: normal;
    /* テキストを折り返す */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 上下左右中央揃え */
  }

  .contact-btn {
    width: 120px;
    height: 120px;
    font-size: 0.8rem;
  }

  .header-info {
    font-size: 0.9rem;
    width: 100%;
  }

  .header-info .header-shop-link {
    display: none;
  }

  .menu-btn {
    margin-right: 0;
  }

  .fixed-video-area {
    width: 250px;
    height: 80px;
    bottom: 12px;
    left: 12px;
    padding: 10px 12px;
  }
  .fixed-video-wrapper {
    width: 110px;
    aspect-ratio: 16 / 9;
  }


  .info-section {
    height: 20vh;
    flex-wrap: wrap;
    background-position: center;
  }

  .inner_info {
    width: 90%;
  }
  .video_text h4,
  .video_text p {
    padding: 0 5%;
    text-align: left;
  }

  .gobutton {
    margin-top: 1.5rem;
  }

  footer nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  #footleft, #footcent, #footright {
    width: 100%;

  }

  .company {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .company p {
    text-align: center;
  }
}

@media (max-width: 440px) {
  .fixed-video-area {
    flex-direction: column;
    width: 125px;
    height: 160px;
    bottom: 12px;
    left: 12px;
    padding: 10px 12px;
  }
  .fixed-video-wrapper {
    width: 110px;
    aspect-ratio: 16 / 9;
  }
}
