              html, body, #news-section, .news-container, .news-list {
                width: 100%;
                max-width: 100vw;
                overflow-x: hidden;
                overflow-y: auto;
                box-sizing: border-box;
              }
            html, body {
              width: 100%;
              padding: 0;
              margin: 0;
              box-sizing: border-box;
            }
            .news-container, .news-list {
              max-width: 600px;
              width: 100%;
              margin: 0 auto;
              padding-left: 12px;
              padding-right: 12px;
              box-sizing: border-box;
            }
          html, body, .news-container, .news-list {
            box-sizing: border-box;
          }
          html, body {
            padding: 0;
            margin: 0;
          }
          .news-list {
            padding-left: 12px;
            padding-right: 12px;
          }
        .news-container {
          width: auto;
          padding: 0;
          box-sizing: border-box;
          margin: 0 auto;
        }
        .news-list {
          max-width: 600px;
          width: 100%;
          margin: 0 auto;
          padding-left: 12px;
          padding-right: 12px;
          box-sizing: border-box;
        }
      .news-list {
        max-width: 100%;
        margin: 0 auto;
        padding-left: 5vw;
        padding-right: 5vw;
        box-sizing: border-box;
      }
    .news-container {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      padding-left: 10px;
      padding-right: 10px;
      box-sizing: border-box;
    }
  .news-container {
    max-width: calc(100vw - 20px);
    margin: 0 auto;
    box-sizing: border-box;
  }
/* ===== 強制横スクロール防止 ===== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  box-sizing: border-box;
}
@media screen and (min-width: 769px) {
  .equipment-separator {
    display: block;
    border: none;
    height: 2px;
    width: 100%;
    margin: 40px 0 0 0;
    border-radius: 1px;
    background: #0f6fee;
    opacity: 0.85;
    transition: background 0.3s;
  }
 
}
/* レスポンシブ時の左右スクロール防止 */
body {
  overflow-x: hidden;
}
@media screen and (max-width: 768px) {
  .equipment-separator {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .page-contact-btn {
    display: none !important;
  }
}
@media screen and (min-width: 769px) {
  .equipment-item > div {
    padding: 0;
  }
  .equipment-item:not(.reverse) > div {
    text-align: left;
    padding-left: 0;
  }
  .equipment-item.reverse > div {
    text-align: right;
    padding-right: 24px;
  }
}
/* 機械設備ギャラリー画像の縦伸び防止 */
.equipment-item img {
  max-width: 100%;
  height: auto;
  flex-basis: auto !important;
  aspect-ratio: unset !important;
}
@media screen and (max-width: 768px) {
  .equipment-item,
  .equipment-item.reverse {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .equipment-item img {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
  }
  .equipment-item > div {
    text-align: center;
    padding: 0 8px;
  }
}
/* 機械設備の左右交互レイアウト */
@media screen and (min-width: 769px) {
  .equipment-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }
  .equipment-item.reverse {
    flex-direction: row-reverse;
  }
}
@media screen and (max-width: 768px) {
  .equipment-item video {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    background: #000 !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }
}
body {
  margin: 0;
  background: #dfdfdf;
  overflow-x: hidden;
}

/* 背景いっぱい */
#top-image {
  width: 100%;
  height: 100vh;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* トップ画像上の問い合わせボタン */
.top-contact-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 15px 30px;
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.top-contact-btn:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.6);
}

@media screen and (max-width: 768px) {
  .top-contact-btn {
    display: none;
  }
}

#top-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#top-image video.background-video,
#top-image img.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5);
}

#top-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/PANORAMA.jpg") no-repeat center 13%/cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}

#top-image.show-bg::before {
  opacity: 1;
}

#top-image.show-bg {
  height: 33vw;
  transition: height 0.5s ease-in-out;
}

/* 飛んでくる画像 */
.piece {
  position: absolute;
  width: 30vw;
  height: auto;
  opacity: 0;
  transform: scale(0.4);
  transition: all 1.2s ease-out;
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

/* 中央へ移動 */
.to-center {
  transition: all 1s ease-in-out;
}

/* 左へ消える */
.slide-left {
  transition: all 1.2s ease-in-out !important;
  opacity: 0 !important;
  transform: translateX(-120vw) scale(0.9) !important;
  left: -50vw !important;
}

/* スライドショー */
#slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  display: none;
  z-index: 20;
}

#slideshow.active {
  display: block;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(120vw);
  transition: all 1s ease-in-out;
}

.slide.show {
  opacity: 1;
  transform: translateX(0);
}

.slide.hide-left {
  opacity: 0;
  transform: translateX(-120vw);
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 中央に表示する会社名 */
#center-company-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: 500;
  color: white;
  font-family: 'Arial Black', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W6', 'メイリオ', Meiryo, sans-serif;
  letter-spacing: 8px;
  text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.9),
               0 0 40px rgba(255, 255, 255, 0.3);
  opacity: 0;
  z-index: 30;
  transition: opacity 1s ease-in-out;
  white-space: nowrap;
}

#center-company-name.show {
  opacity: 1;
}

#center-company-name.show {
  opacity: 1;
}

/* 左上のテキスト */
.header-text {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-family: 'Arial', sans-serif;
}

.company-name {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
}

.company-logo {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-left: 60px; /* 右寄せ調整 */
}

/* ナビゲーションメニュー */
#main-nav {
  width: 100%;
  background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  min-height: 60px;
}

/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 50px;
  height: 50px;
  background: #0066cc;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: fixed;
  right: 16px;
  top: 10px;
  border-radius: 5px;
}

.hamburger span {
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.nav-item {
  color: white;
  text-decoration: none;
  padding: 20px 30px;
  display: inline-block;
  font-size: 16px;
  font-weight: 400; /* 細字に変更 */
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-item:hover {
  background-color: #0066cc;
  border-bottom: 3px solid #fff;
}

/* お知らせセクション */
#news-section {
  width: 100%;
  padding: 40px 20px;
  background: #dfdede;
  display: none;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 10px;
}

.news-list {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.news-item:last-child {
  border-bottom: none;
}

/* 事業内容セクション */
#services-section {
  width: 100%;
  padding: 40px 20px;
  background: #f5f5f5;
  display: block;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 10px;
}

.services-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.services-intro {
  font-size: 18px;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
  font-size: 20px;
  color: #0066cc;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.services-contact {
  margin-top: 30px;
  padding: 20px;
  background: #e8f4f8;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #0066cc;
  border: 2px solid #0066cc;
}

/* アクセスマップセクション */
#map-section {
  width: 100%;
  padding: 40px 20px;
  background: #f9f9f9;
  display: none;
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
}

.map-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 10px;
}

.map-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.map-info {
  flex: 1;
  min-width: 300px;
}

.map-info h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.map-info p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin: 8px 0;
}

.calendar-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.calendar-link:hover {
  color: #004499;
  text-decoration: underline;
}

.map-frame {
  flex: 2;
  min-width: 300px;
}

.map-frame iframe {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {

  /* 背景画像の高さ調整 */
  #top-image {
    height: 50vw;
  }

  #top-image.show-bg {
    height: 50vw;
  }

  /* 飛んでくる画像のサイズ調整 */
  .piece {
    width: 40vw;
  }

  /* 中央の会社名のサイズ調整 */
  #center-company-name {
    font-size: 60px;
    letter-spacing: 4px;
  }

  /* ヘッダーテキストの調整 */
  .header-text {
    top: 10px;
    left: 10px;
  }

  .company-name {
    font-size: 20px;
  }

  .company-logo {
    font-size: 18px;
  }

  /* ナビゲーションメニューの調整 */
  .hamburger {
    display: flex;
  }

  #main-nav {
    position: relative;
    background: transparent;
    box-shadow: none;
    min-height: 0;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: none;
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 100%);
    flex-direction: column;
    padding: 70px 0 0 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    justify-content: flex-start;
    align-items: stretch;
      overflow-x: hidden;
  }

  .nav-container.active {
    right: 0;
  }

  .nav-item {
    padding: 18px 40px;
    font-size: 18px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-item:first-child {
    padding-top: 60px;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  /* 事業内容セクションの調整 */
  #services-section {
    padding: 20px 10px;
  }

  .services-title {
    font-size: 24px;
  }

  .services-content {
    padding: 20px;
  }

  .services-intro {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item h3 {
    font-size: 18px;
  }

  .service-item p {
    font-size: 14px;
  }

  .services-contact {
    font-size: 16px;
    padding: 15px;
  }

  /* お知らせセクションの調整 */
  #news-section {
    padding: 20px 10px;
  }

  .news-container {
    padding: 0 10px;
  }

  .news-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .news-list {
    padding: 15px;
  }

  .news-item {
    font-size: 14px;
    padding: 12px 0;
  }

  /* マップセクションの調整 */
  #map-section {
    padding: 20px 10px;
  }

  .map-title {
    font-size: 24px;
  }

  .map-content {
    flex-direction: column;
    gap: 20px;
  }

  .map-info {
    min-width: 100%;
  }

  .map-frame {
    min-width: 100%;
  }

  .map-frame iframe {
    height: 300px;
  }
}

@media screen and (max-width: 480px) {

  /* 背景画像の高さ調整 */
  #top-image {
    height: 100vh;
  }

  #top-image.show-bg {
    height: 60vw;
  }

  /* 飛んでくる画像のサイズ調整 */
  .piece {
    width: 80vw;
  }

  /* 中央の会社名のサイズ調整 */
  #center-company-name {
    font-size: 32px;
    letter-spacing: 2px;
    white-space: normal;
    text-align: center;
    padding: 0 20px;
  }

  /* ヘッダーテキストの調整 */
  .company-name {
    font-size: 16px;
  }

  .company-logo {
    font-size: 14px;
  }

  /* 480px以下でもハンバーガーメニューは同じスタイル */
  .nav-container {
    width: 80%;
    padding: 70px 0 0 0;    max-width: none;
    margin: 0;  }

  /* お知らせセクションの調整 */
  .news-title {
    font-size: 20px;
  }

  .news-list {
    padding: 10px;
  }

  .news-item {
    font-size: 13px;
    padding: 10px 0;
  }

  /* マップセクションの調整 */
  .map-title {
    font-size: 20px;
  }

  .map-info h3 {
    font-size: 18px;
  }

  .map-info p {
    font-size: 14px;
  }

  .map-frame iframe {
    height: 250px;
  }
}

/* 本日セルの強調表示 */
.day.today {
  background: #ffe066;
  border: 2px solid #e6b800;
  color: #222;
  font-weight: bold;
  box-shadow: 0 0 8px #e6b80044;
}

/* TOPに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #0052a3;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.6);
}

.back-to-top:active {
  transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}

/* プライバシーポリシーリンク */
.privacy-link-section {
  text-align: center;
  padding: 30px 20px;
  background-color: #f5f5f5;
}

.privacy-link {
  display: inline-block;
  padding: 12px 30px;
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.privacy-link:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.5);
}

/* フッター */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

footer p {
  margin: 0;
}
