@charset "utf-8";
/* フッターが出てきたらヘッダーを消す */
header.is-hide {
  opacity: 0;
  transform: translateY(-6px); /* ゆっくり */
  pointer-events: none;
  filter: blur(1px);
}

/* Main Visual画面設定 */
.main_visual {
  background-image: url("../img/i-505.png");
}



/* Section画面設定 */
section .comment3{
    height     : auto;
    font-size  : larger;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
section .comment4{
    max-width   : 680px;
    width       : 100%;
    box-sizing  : border-box;
    padding     : 0 16px;
    font-size   : 20px;
    line-height : 1.2;
    margin      : 20px auto 0;
    color       : #ffffff;
    text-shadow : 0 2px 4px rgba(0,0,0,0.25);
    transition  : text-shadow 0.3s ease;
}
section.comment5{
    font-size   : 16px;
    color       : #ffffff;
    text-shadow : 0 2px 4px rgba(0,0,0,0.25);
}
section .container {
    position   : relative;
    max-width  : none;
    width      : 100%;
    margin     : 0 auto;
    padding    : 10px 50px 10px 50px;
    text-align : center;
    color      : #fff;
    line-height: 1.3;
}
@media (max-width: 768px) {
  section .comment5{
    width : 100%;
    padding: 5px 0;
    box-sizing: border-box;
    white-space: normal;
  }
  .comment1 .container {
    width : 100%;
    margin: 5px;
  }
}

/* 主なサービス */
.service-title {
  margin      : 50px 0 20px;
/*  font-size   : 22px;*/
  font-weight : 700;
  text-shadow : 2px 2px 4px rgba(0,0,0,0.25);
}
.service-list {
  list-style  : none;
  list-style-position: inside;
  text-align  : center;
  padding     : 0;
  max-width   : auto 400px;
  margin      : 0 auto 40px;
}
.service-list li {
  margin      : 10px 0;
  font-weight : 500;
  padding     : 8px 0;
  position    : relative;
}

.service-card {
  background-color: #95b7c7;
  border-radius: 18px;
  padding      : 5px 10px 5px 10px;
  box-shadow   : 0 8px 24px rgba(0,0,0,0.12);
  transition   : transform 0.4s ease, box-shadow 0.4s ease;
}

@media screen and (max-width: 768px) {
  .service-card {
    width      : 100%;
    margin     : 5px;
  }
}




/*映像スクロールの指定*/
.scroll-infinity__wrap {
  position    : relative;
  padding     : 40px 0; 
  width       : 100%;
}
.scroll-infinity__list {
  display     : flex;
  justify-content: space-around;
  align-items : center;
  width       : 100%;
  list-style  : none;
  padding     : 0 20px 5px;
  position    : relative;
  
}
.scroll-infinity__item {

}

.scroll-infinity__item img {
  height      : 250px;
  box-shadow  : 0 12px 30px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  filter      : brightness(0.95) contrast(1.05);
  transform   : scale(1);
  transition  : box-shadow 0.6s ease,
                filter 0.6s ease;
}

.scroll-infinity__item img:hover {
  transform   : scale(1.18);
  filter      : brightness(1);
  box-shadow  : 0 20px 45px rgba(0, 0, 0, 0.25);
  z-index     : 5;
}



/* タブレット */
@media (max-width: 768px) {
  .scroll-infinity__list {
    display   : grid;
    grid-template-columns: repeat(2, 1fr);
    gap       : 16px;
    animation : none;
  }

  .scroll-infinity__item img:hover {
    transform : scale(1.18);
  }

/* ラップ解除 */
  .scroll-infinity__wrap {
    overflow  : visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* アニメーション停止 */
  .scroll-infinity__list {
    animation : none;
    flex-wrap : wrap;
    justify-content: center;
    gap : 20px;
  }
}

/* スマホ */
@media screen and (max-width: 480px) {

  /* ul：横並び・無限スクロールを完全に解除 */
  .scroll-infinity__list {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    flex-wrap: nowrap !important;
    transform: none !important;
    animation: none !important;
  }

  /* li：縦1列・サイズ固定 */
  .scroll-infinity__item {
    width: 300px !important;
    height: 300px !important;
    margin: 0 auto 16px;
    display: block;
  }

  /* img：300×300を厳守 */
  .scroll-infinity__item img {
    width: 300px !important;
    height: 300px !important;
    object-fit: contain;
    display: block;
  }
}


/*お問い合わせセクション*/
/*セクション3の指定*/
/* ===== セクション ===== */
.section3 {
  padding: 20px 0;
  background: #82b0c5;
  clear: both; 
}

/* ===== 小さめ幅 ===== */
.section3 .container {
  max-width: 720px;
  padding: 0 20px;
}

.section3 .text {
 margin-bottom: 4px ;
 margin-top: 5px;
}
.section3 .text1 {
 color:brown;
 font-size: 25px;
 margin-bottom: 7px ;
 margin-top: 0px;
}

/* ===== カード ===== */
.image-box {
  height: 300px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.15);
}

/* 画像 */
.image-box img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 1.4s ease;
}

.image-box:hover img {
  transform: scale(1.04);
}

/* ===== テキストレイヤー ===== */
.overlay {
  position: absolute;
  inset: 0;
  padding: 30px;
}

/* 右側の淡いマスク */
.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255,255,255,0.78),
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );
}

/* 前面 */
.overlay * {
  position: relative;
  z-index: 1;
}

/* ===== テキストブロック ===== */
.overlay {
  text-align: right;
}

/* サブタイトル */
.overlay .sub-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #333;
}

/* 見出し */
.overlay h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

/* 説明文 */
.overlay .text {
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}




/* ===== ボタン ===== */
.overlay .btn {
  display: inline-block;
  font-size: 12px;
  padding: 10px 24px;
  border-radius: 999px;
  background: transparent;
  color: #222;
  border: 1px solid rgba(0,0,0,0.25);
  text-decoration: none;
  transition: all 0.35s ease;
}

.overlay .btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* === お問い合わせの電話番号が青く見えるのを防ぐ === */
.phone2 a {
  color:brown;
}

/* === 自動改行 === */
.auto_break {
  word-break: auto-phrase;
}

/*スマホ対応*/
@media (max-width: 480px) {
  .scroll-infinity__item img {
    height: 120px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    transform: scale(1);
  }

  .scroll-infinity__item img:hover {
    transform: none;
  }

  section .comment5 {
    font-size: 14px;
    line-height: 1.7;
  }
  /*.scroll-infinity__item img {
    height: 120px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    transform: scale(1);
  }*/
}
@media screen and (max-width: 768px) {
  .index-list {
    flex-direction: column;
  }
}
/* hoverさせない */
@media (max-width: 768px) {
  .card-link:hover {
    transform   : none;
    box-shadow  : none;
  }

  section .comment5 {
    font-size: 15px;
    line-height: 1.75;
    padding: 0 16px;
  }
}
