/*button.css*/
@charset "utf-8";
/* CSS Document */
* {
  /*! outline: 1px solid red; */
}

/* button.css */
#top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 123, 255, 0.8); /* ← 半透明青 */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999;
     /* 初期状態で非表示 */
}

#top-button.show {
    display: block; /* スクロール後に表示 */
}

#top-button:active {
    background-color: rgba(0, 86, 179, 1);
}

img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain; /* 必要に応じて追加 */
}


.category-buttons {
  margin-top: 55px;
  text-align: center; /* ボタンを中央揃えにする */
  display: flex;
}

.category-buttons button {
  background: none;
  border: none;
  padding: 0;
  margin: 5px;
  cursor: pointer;
}

.category-buttons img {
  width: 80px;  /* 画像サイズを調整 */
  height: auto;
  display: block;
}

/*buttonimgchange.css*/
.category-buttons img.active {
  display: none;
}

.category-buttons button.active img.inactive {
  display: none;
}

.category-buttons button.active img.active {
  display: inline;
}

/*category.css*/

.category-buttons {
      text-align: center;
      margin: 20px 0;
    }
    .category-buttons button {
      margin: 0 5px;
      /*! padding: 8px 16px; */
      cursor: pointer;
    }
    .product-item {
      display: none; /* 初期は非表示、スクリプトで切り替え */}
/* header.css */

/* ヘッダー */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左端に揃える */
  /*! padding: 10px 20px; */
  background-color: white; /* ヘッダーの背景色（必要に応じて） */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ここでシャドウを追加 */
	margin-bottom: 20px; /* これを削除または調整 */
}

.menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}



/* logo-img サイズ調整 */
.logo-img {
  width: 132px;
  height: auto;
}


.a1, .a2 {
  margin-left: 20px;
  color: black;
  text-decoration: none;
  font-size: 16px;
  float: left;
  padding-top: 0px;
}

.a1, .a2 {
  color: rgb(0, 0, 0); /* 文字色を黒に設定 */
  text-decoration: none; /* 下線を消す */
  padding: 10px;
  display: inline-block;
  border-radius: 5px;
  font-size: 16px; /* 通常時のフォントサイズ */
}

/* 画面幅600px以下でフォントを小さく */
@media (max-width: 600px) {
  .a1, .a2 {
    font-size: 12px; /* フォントサイズを小さく */
    padding: 0px;    /* 多少パディングも小さくするとバランス良い */
    /* displayはそのままinline-blockの横並び */
  }
}

.align-left {
  margin-left: 20px; /* 左端の揃え位置 */
}

/* 通常のスタイル（デスクトップ用） */
.menu-icon {
  position: absolute;
  right: 0;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  background-color: transparent;
  color: black;
  border-radius: 5px;
  margin-right: 100px; /* 必要に応じて調整 */
}
/* モバイルや小さい画面用のレスポンシブ対応 */
@media (max-width: 768px) {
  .menu-icon {
    right: 10px;  /* 右端に近づける */
    margin-right: 10px; /* 少し余白を調整 */
  }

  /* ロゴ画像の左寄せ */
  .logo-img {
    display: block;
    margin-left: 0;
    margin-right: auto;
    width: 100px; /* 任意でロゴのサイズ調整 */
  }
}

/* info.css */

.company-img {
    width: auto;
    max-width: 100%;
    max-height: 380px;
    margin: 0 auto 10px auto;  /* 上:0 下:10px 左右:自動 */
    /* border-radius: 10px; */
    z-index: auto;
    float: none;
    display: block;  /* 中央寄せのために必要 */
}




/* 画面幅が768px以下のとき（タブレット・スマホなど） */
@media screen and (max-width: 768px) {
  .Image1 img {
    max-width: 100%;
  }
}

/*infotextanimation.css*/
/* CSS Document */

.animate-line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* アニメーション開始時のスタイル */
.animate-line.show {
  opacity: 1;
  transform: translateY(0);
}

/*styles.css*/

h2 {
  margin: 0 auto;
  padding: 0 10px; /* スマホで安心な余白 */
  max-width: 100%;
  box-sizing: border-box;

}


.ul{
	color: #000000
	
}

.a3 {
    font-size: 20px;
    font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
    display: block;
    width: fit-content; /* コンテンツの幅だけに */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
a.a4,
a.a4:link,
a.a4:visited,
a.a4:hover,
a.a4:active {
  color: #FFFFFF;
  text-decoration: none;
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 18px; /* 20px から小さく */
}






/* ナビゲーションメニュー */
nav {
    z-index: 3;
    display: flex; /* 最初は display:none ではなく flex のままにし、位置で制御する方がスマート */
    position: fixed;
    top: 0;
    right: -250px; /* ← ここを left → right に変更し、オフスクリーンに隠す */
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    flex-direction: column;
    padding-top: 70px;
    transition: right 0.3s ease-in-out; /* ← left → right に対応 */
}

/* メニューが開いているとき */
nav.active {
    right: 0; /* ← 表示位置を right: 0 に */
}

/* ナビゲーションのリンク */
nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px;
    font-size: 18px;
}


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



footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: white;
    margin-left: auto;
    margin-right: auto;
   
}

/* 全体の高さを確保 */
html, body {
	opacity: 1;
    transition: opacity 0.5s ease;
    height: 100%;
    margin: 0;
    flex-direction: column;
}
 /* フェードアウトアニメーション */
body.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}


.body-wrapper {
    overflow: hidden;
}
.slideshow-container {
	z-index: 1;
    position: sticky;
    max-width: 600px;
    margin: auto;
}


.products {
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 1000px; /* お好みで幅制限して中央揃え */
    margin: auto;
}

.product-item {
    width: calc(33.333% - 20px); /* 100% ÷ 3列 - gap調整 */
    box-sizing: border-box;
    text-align: center;
}


.product-item img {
    width: 100%;
    border-radius: 10px;
    border: 3px solid #2d2929;
}

.product-item p {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.modal {
  display: none; /* ← 初期は非表示 */
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh; /* ← ビューポートに合わせる */
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 90vw; /* ← 幅の調整 */
  max-height: 80vh; /* ← 高さが画面内に収まるように */
  overflow: auto; /* ← 内容がはみ出たときにスクロールできるように */
}

.modal-content img {
  max-width: 100%;
  max-height: 300px;
  margin-bottom: 10px;
}

.close-button {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.Maintenance {
  max-width: 30%;    /* 通常時は30% */
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 画面幅が600px以下の場合 */
@media (max-width: 600px) {
  .Maintenance {
    max-width: 50%;  /* 狭い画面では50%に */
  }
}

img {
  max-width: 100%;   /* 親要素を超えないように */
  height: auto;      /* 縦横比を保つ */
  /*! border-radius: 10px; */
  float: none;
  display: block;    /* インラインの余白防止 */
  z-index: 1;
}

/* 小さい画面での例 */
@media (max-width: 600px) {
  img {
    border-radius: 5px;  /* 小さくして見やすく */
  }
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    border: none;
    font-size: 18px;
    border-radius: 5px;
    
    
}
.prev { left: 10px; }
.next { right: 10px; }



.product-item img {
  width: 308px;
  height: 172px;
  object-fit: cover; /* 画像の比率を保ちつつトリミングする場合 */
}

/* 画面幅が768px以下の場合にサイズを変更 */
@media (max-width: 768px) {
  .product-item img {
    width: 110px;
    height: 65px;
  }
}





.container {
    display: flex;  /* flexboxを使用 */
    flex-wrap: wrap; /* 要素が折り返し可能 */
    flex-direction: column; /* 縦方向に配置 */
    justify-content: space-between; /* セクションを均等に配置 */
    align-items: center; /* 中央に揃える */
    max-width: 100%; /* 最大幅100% */
    
    background-color: white; /* 背景色 */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* 影 */
    border-radius: 8px; /* 角丸 */
    gap: 20px; /* セクション間の間隔 */
    margin: 60px auto 0; /* 上部に60pxの余白、左右自動センタリング */
    width: inherit; /* 親要素の幅に合わせる */
    text-align: center; /* テキストを中央揃え */
    column-count: 1; /* カラム数1列に設定 */
    flex: 1; /* 残りのスペースを埋める */
	margin-top: 0; /* ヘッダーとの間の余白をなくす */
}

#news-list {
  max-height: 10em; /* 高さは行数や文字サイズに応じて調整 */
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid #ccc; /* オプション：枠線で見やすく */
}
#news-list li {
  padding: 0.5em;
  border-bottom: 1px solid #eee;
}

section {
    /*! width: 100%; */
    margin: 0px auto;
    background-color: #f9f9f9; /* 背景色を薄いグレー */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


#service1-img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;           /* デフォルトは16:9 */
  /*! object-fit: cover; */              /* 画像を比率にフィットさせる */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* モバイル画面（幅768px以下）では比率を変更 */
@media (max-width: 768px) {
  #service1-img {
    aspect-ratio: 4 / 3;         /* 例：4:3 に変更 */
  }
}


/* スライドショーのスタイル */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

/* スライドショーのスライド */
.slide {
    display: none; /* 初期状態では非表示 */
    opacity: 0;    /* 不透明度0で非表示 */
    transition: opacity 1s ease-in-out; /* アニメーション */
}

/* 表示するスライド */
.slide.active {
    display: block; /* 表示 */
    opacity: 1;     /* 不透明度1で表示 */
}

nav a {
	z-index: 3;
    color: white;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    display: block;
}

nav a:hover {
    background-color: #444;
}
.map-container {
  display: flex;
  justify-content: center; /* 中央寄せ */
  margin-top: 20px;
  margin-bottom: 40px;
}

.map-container iframe {
  width: 50%;        /* 幅（%にするとレスポンシブ対応） */
  height: 100%;     /* 高さ */
  border: none;      /* 枠を消す */
  border-radius: 10px; /* 角丸にしたい場合 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影をつける場合 */
}

/*.adjustment-image*/
.adjustment-image {
  position: relative;
  max-width: 60%;
  height: auto;  /* 縦横比を保つなら auto 推奨 */
  display: block;
  margin: 0 auto;  /* ← コレが中央寄せのポイント */
}

/* スマホ・タブレット対応 */
.container {
  /*! width: 90%; */       /* 画面幅の90% */
  /*! max-width: 768px; */ /* 最大768pxまで */
  margin: 0 auto;   /* 中央揃え */
}

@media (max-width: 480px) {
  .container {
    width: 95%;     /* 小さい画面ではさらに幅を広げる */
  }
}

    nav {
        /* 修正前: position: relative; → 修正後: position: fixed; を維持 */
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        background-color: rgba(0, 0, 0, 0.8);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }
    nav a {
        padding: 10px;
    }

    section {
        width: 100%;
        flex: 1 1 100%;
    }

    .map-container {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  width: 50%;
}

.map-container iframe {
  width: 300px;
  height: 300px; /* デフォルトは正方形 */
  border: none;
  border-radius: 10px;
}

@media (max-width: 768px) {
    .map-container {
        width: 90%;
        max-width: 600px;
        height: 300px;
        margin: 0 auto 20px auto; /* 下に20pxの余白 */
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #eee;
        border: 1px solid #ccc;
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
}


    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none; /* 不要な枠を消す */
    }






   .modal-content img {
    max-width: 100%;
    max-height: 300px;
    margin-bottom: 10px;
}


/* スクリーンが小さくなったときのスタイル */
@media (max-width: 1024px) {
	
	
    
}

/* スクリーンが500px以下のときの調整（モバイル向け） */
@media (max-width: 500px) {
    section {
        width: 100%;
        flex: 1 1 100%;
    }
}