@media (min-width: 800px) { 
.top-mv{
position: relative;
background-color: orange;
width: 100%;
max-width: 1200px;
height: 60vh;
margin: 180px auto 100px;
}

/*==================================================
スライダーのためのcss
===================================*/
.slider {
    position: absolute;
    z-index: 1;
    /*↑z-indexの値をh1のz-indexの値よりも小さくして背景に回す*/
    height: 60vh;/*スライダー全体の縦幅を画面の高さいっぱい（100vh）にする*/
	
}
/*　背景画像設定　*/

.slider-item01 {
    background:url("img/top_slide0.jpg");
}

.slider-item02 {
    background:url("img/top_slide1.jpg");
}

.slider-item03 {
    background:url("img/top_slide2.jpg");
}

.slider-item04 {
    background:url("img/top_slide3.jpg");
}

.slider-item {
    height: 60vh;/*各スライダー全体の縦幅を画面の高さいっぱい（100vh）にする*/
    background-repeat: no-repeat;/*背景画像をリピートしない*/
    background-position: center;/*背景画像の位置を中央に*/
    background-size: cover;/*背景画像が.slider-item全体を覆い表示*/
}
main{
margin-top: 50px;}

}
@media (max-width: 799px) { 
.top-mv{
position: relative;
background-repeat: no-repeat;/*背景画像をリピートしない*/
max-width: 800px;
height: 60vh;
margin: 90px auto 0;
}

/*==================================================
スライダーのためのcss
===================================*/
/*　背景画像設定　*/

.slider-item01 {
    background:url("img/top_slide0-sp.png");
}

.slider-item02 {
    background:url("img/top_slide1-sp.png");
}

.slider-item03 {
    background:url("img/top_slide2-sp.png");
}

.slider-item04 {
    background:url("img/top_slide3-sp.png");
}
.slider-item {
    height: 60vh;/*各スライダー全体の縦幅を画面の高さいっぱい（100vh）にする*/
    background-repeat: no-repeat;/*背景画像をリピートしない*/
    background-position: center;/*背景画像の位置を中央に*/
    background-size: cover;/*背景画像が.slider-item全体を覆い表示*/
}
main{
margin-top: 0px;}
}
/*確認*/
/* ===== ベース ===== */


    /*outline: 1px solid red;*/


body {
  margin: 0;
}
section {
  width: 100%;
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.inner {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  max-width: 1000px;
}
img {
  max-width: 100%;
  height: auto;
}
/*事業案内*/

.service-image,
.service-content {
  flex: 1;
  min-width: 0; 
  padding: 20px;}
.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}


.service-item.reverse {
  flex-direction: row-reverse;
}


.service-img{
  width: 50%;
 background-color: orange;
}
.service-text {
  width: 50%;
 text-align: left;
 padding: 20px;


}


.service-img img {
  width: 100%;
  height: auto;
  display: block;
}


.service-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
}


.service-text p {
  line-height: 1.6;
}


/* SP対応 */
@media (max-width: 799px) {
  .service-item {
    flex-direction: column;
  }


  .service-item.reverse {
    flex-direction: column;
  }


  .service-img,
  .service-text {
    width: 100%;
  }
}

/* ===== index ===== */


/* ===== 見出し ===== */
.section-title,
.section-text {
  margin-bottom: 20px;
}


/* ===== 事業紹介 ===== */
.service-flex {
  display: flex;
}


.service-content {
  text-align: left;
  display: flex;
  flex-direction: column;
}


.service-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* ===== 2カラムリンク ===== */
.link-grid {
  display: flex;
}

.link-item {
  flex: 1;
padding: 20px;
}

.link-item img {
  width: 100%;
  height: auto;
  display: block;
}


/* ===== お知らせ ===== */
.top-news {
  background: #fafafa;
}


.top-news .inner {
  max-width: 800px;
  margin: 0 auto;
}


.top-news .section-title {
  font-weight: 600;
  letter-spacing: 0.05em;
}


.news-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}


.news-list time {
  min-width: 100px;
  color: #005bac;
  font-weight: 600;
}


.news-list span {
  flex: 1;
  text-align: left;
}


/* ===== お問い合わせ ===== */
.top-contact {
  background: #f5f7fa;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
}


.top-contact .section-title {
  font-weight: 600;
  letter-spacing: 0.05em;
}


.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}


/* ボタン共通（統合） */
.contact-btn {
  display: inline-block;
  min-width: 220px;
  padding: 14px 20px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #f57c00;
  color: #f57c00;
  background: #fff;
  transition: all 0.2s;
}


/* 電話（メイン） */
.tel-btn {
  background: #f57c00;
  color: #fff;
}


/* ホバー */
.contact-btn:hover {
  background: #ef6c00;
  color: #fff;
  border-color: #ef6c00;
}


/* テキスト構造 */
.contact-btn .label {
  display: block;
  font-size: 0.85em;
}


.contact-btn .tel {
  display: block;
  font-size: 1.3em;
  font-weight: bold;
}


/* PCで電話無効 */
@media (min-width: 800px) {
  .tel-btn {
    pointer-events: none;
  }
}


/* ===== ボタン ===== */
.btn {
  display: inline-block;
}

.btn1-wrap{
text-align: right;
margin-top: auto;
}

.btn1 {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #ff8c00;
  background-color: transparent;
  border: 2px solid #ff8c00;
  border-radius: 999px; /* 角丸 */
  cursor: pointer;
  transition: all 0.3s ease;
  right: 0px;
}

/* オンマウス時 */
.btn1:hover {
  background-color: #ff8c00;
  color: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
.mail {
  font-size: 1.5em;
  margin: 10px 15px;
  text-align: right;
  font-weight: bold;
}

@media (max-width: 799px) {
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }


  .contact-btn {
    width: 100%;
  }
  .service-flex {
    flex-direction: column;
  }


  .link-grid {
    flex-direction: column;
  }

}
/* ===== 挨拶 ===== */
.about-greeting .section-text {
  text-align: left;
}


/* ===== 会社概要テーブル ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}


.company-table th,
.company-table td {
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}


.company-table th {
  width: 30%;
  font-weight: 600;
}


/* ===== 沿革 ===== */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}


.history-list li {
  display: flex;
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}


.history-list .year {
  min-width: 100px;
  font-weight: 600;
  color: #005bac;
}


.history-list .text {
  flex: 1;
}
/* ===== ギャラリー ===== */
.gallery {
  background: #fff;
}


/* グリッド */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}


/* アイテム */
.gallery-item {
  background: #fafafa;
  transition: 0.2s;
}


.gallery-item:hover {
  transform: translateY(-4px);
}
/* 画像 */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* キャプション */
.gallery-caption {
  padding: 12px;
  font-size: 14px;
  text-align: left;
}


/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 799px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .link-item{
  margin-bottom: 20px;}
}
/* ===== モーダル ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1000;
}


/* 表示状態 */
.modal.is-open {
  display: block;
}


/* 背景 */
.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}


/* コンテンツ */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
}


/* 画像 */
.modal-content img {
  width: 100%;
  height: auto;
  display: block;
}


/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}



