@charset "UTF-8";

/* ------------------------------
  main バナー
--------------------------------*/

/* バナー */

.top {
  display: flex;
  flex-wrap: wrap; /* 幅が足りないとき折り返せるように */
}

.container {
  display: flex;
  width:100%;
}

/* PCの並び（そのまま: slide - icon - banner） */
.slide-order { order: 1; }
.icon-order  { order: 2; }
.banner-order{ order: 3; }

.banner-wrapper {
  width: 1000px;
  max-width: 90%;
  margin: 50px auto;
  border: 6px solid var(--color-yellow);
  position: relative;

  /* ストライプ背景（45度 = 右上から左下） */
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 10px,
    #fffee5 10px,
    #fffee5 20px
  );
}

.banner-inner {
  position: relative;
  width: 100%;
  height: auto; /* お好みで調整 */
  padding:var(--margin-m) 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 左下バナー画像 */
.banner-left {
  position: absolute;
  left: 0;
  top: 50%;
  /* ← ここで上に飛び出させる */
  transform: translate(0, -50%);
}

.banner-left img {
  display: block;
  width:clamp(100px, calc(100px + (200 * (100vw - 375px) / 1025)), 280px);
  height: auto;
  max-width: 100%;
  padding-left: clamp(0px, calc(32px + (-32 * (100vw - 960px) / 440)), 32px);
}

/* 中央テキスト */
.banner-text {
  width:90%;
  padding-left:26%;
  z-index: 2;
}

.banner-text ul li{
  font-size: var(--font-24);
  font-weight: 700;
}

.banner-text ul li small{
  font-size: var(--font-16);
  font-weight: 400;
}

.banner-text span{
  padding:0 .3rem;

}


/* 右上テキスト画像 */
.banner-right {
  position: absolute;
  right: 0px;
  top: 0px;
  width: 100px; /* PC時のサイズ調整 */
  height: auto;
  /* 上方向 -50%、右方向 +50% に飛び出す */
  transform: translate(20%, -30%);
}


/* 下三角アイコン */

.estimate-text {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.arrow-down {
  font-size: 40px;      /* 矢印の大きさ */
  line-height: 1;
  color: var(--color-red);
  display: inline-block;
  transform: scaleX(2); /* 横に伸ばして横長に */
}

  /* お見積りバナー */
.contact-banner {
  width: 700px;
  max-width: 90%;
  margin: 20px auto;
  padding: var(--margin-m) var(--margin-xl);
  border: 6px solid var(--color-yellow);
}


.contact-banner-inner {
  width:100%;
  display: grid;
  /* grid-template-columns: 1fr 1fr; 2カラム */
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin:0 auto;
}

.contact-item {
  text-align: center;
}

.line-area .contact-label{
padding-bottom:.8rem;
}

.contact-label {
  font-weight: var(--font-18);
  font-weight: 700;
  margin:0;
  padding:0;
}

/* 電話エリア */
.tel-number {
  display: block;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: none;
}

.tel-number:hover {
  color: var(--color-link);
}

.tel-time {
  font-size: var(--font-14);
  color: var(--color-gray3);
  padding:0;
  margin:0;
}

/* LINEボタン */
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #06C755; /* LINE公式カラー */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.line-btn:hover {
  background-color: #05b74c;
}

.line-icon {
  width: 24px;
  height: 24px;
}

.icon-group {
  display: flex;
  align-items: center;
  gap: 10px; /* アイコンとテキストの間隔 */
}

.icon-wrap {
  display: flex;
  gap: 10px;
}


/* ------------------------------
  main 紹介コンテンツ
--------------------------------*/

/* セクション全体：背景グレーで100% */
.intro-section {
  background-color: var(--color-gray);
  width: 100%;
}

.intro-text span{
  letter-spacing: 0.15em;
}

/* 内部コンテンツ幅を制限（中央寄せ） */
.intro-inner {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 0 20px; /* 横の余白 */
  align-items: center;
  flex-wrap: wrap; /* レスポンシブで縦並びにする */
}

/* 左の画像 */
.intro-image {
  flex: 1 1 40%;
  min-width: 300px;
  height: 500px;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右のテキスト */
.intro-text {
  flex: 1 1 50%;
  min-width: 280px;
  padding:30px 0;
}

.intro-text h2 {
  margin-bottom: 1rem;
}

.intro-text p {
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;  
}

/* ------------------------------
  main サービス
--------------------------------*/

.service-section {
  padding: 70px 0 0;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 40px !important;
}

.service-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 16px;
}

.service-item {
  display: flex;
  flex: 1 1 48%;
  background-color: var(--color-white);
  /*box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: var(--color-gray) 3px solid;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}


.service-item:hover {
  transform: translateY(-4px);
  background-color: var(--color-gray);
  /*background-color: rgba(224, 225, 228, 0.3); *//* ← 薄いブルーなどに変更（お好みで） */
}

.service-image {
  width: 40%;
  min-width: 120px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-info {
  padding: 16px;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-title {
  margin: 0 0 12px;
}

.service-title i{
  padding-left: 1rem;
}

.service-details {
  display: flex;
  gap: 16px;
}

.detail-col {
  flex: 1;
}

.detail-col p {
  margin: 4px 0;
  font-size: var(--font-12);
  padding:0;
}


/* ------------------------------
  main サービス（grid）
--------------------------------*/

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  width:100%;
  margin: 0 auto;
  padding: 0;
}

.service-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  background-color: var(--color-white);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: var(--color-gray) 3px solid;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  background-color: var(--color-gray);
  transform: translateY(-4px);
}

.card-img {
  width: 35%;
  min-width: 100px;
  height: auto;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title {
  font-size:var(--font-16);
  padding: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin:0;
}

.card-title i{
  padding-left: 0.6rem;
}

/* ------------------------------
  main ブログ
--------------------------------*/

.news-section {
  background-color: var(--color-white);
  padding: 70px 16px;
}

.news-container {
  max-width: 1000px;
  margin: 0 auto;
}

.news-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  padding: 1rem 3rem 1rem 0;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  border-bottom:dashed var(--color-gray2) 1px;
}

.news-card:first-child{
  border-top:dashed var(--color-gray2) 1px;
}

.news-card:hover {
  opacity:.6;
}

.news-image {
  flex: 0 0 180px;
  height: 130px;
  overflow: hidden;
  border-radius: 8px;
  margin-right: 24px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-text {
  flex: 1 1 auto;
  min-width: 0;             /* はみ出し防止 */
  max-width: calc(100% - 40px); /* ← 矢印の幅＋余白を確保 */
}

.news-date {
  font-size: 0.9rem;
  color: var(--color-gray3);
  margin: 0 0 4px;
}

.news-title {
  font-size: var(--font-16);
  margin: 0;
  max-width:100%; /* 必要に応じて 200px や 70% などに調整 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* ← 表示最大行数 */
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right:1rem;
}

.news-icon {
  flex: 0 0 auto;         /* ← 縮まない、固定幅 */
  margin-left: auto;      /* ← 右寄せに押し出す */
  font-size: 1.5rem;      /* ← 明示しておくと安全 */
  display: flex;
  align-items: center;
}

@media screen and (max-width:1200px){

  .intro-inner {
    gap:0;
    padding:0;
    width:100%;
  }
  
  .intro-text{
    padding:2rem clamp(16px, calc(16px + (16 * (100vw - 375px) / 825)), 32px);
    width:100%;
    min-width: 0;
  }

  .contact-banner-inner {
  width:100%;
  }
}

@media screen and (max-width: 1000px) {

  .service-grid {
    grid-template-columns: repeat(3, 1fr); /* 2カラム・自動可変 */
    padding:0;
    margin:0 auto;
    gap:8px;
  }
}

@media (max-width:960px) {
  .banner-left img {
  width:clamp(100px, calc(100px + (200 * (100vw - 375px) / 1025)), 300px);
  padding-left:2rem;
}
}


@media screen and (max-width:900px){

  .banner-wrapper{
    margin:20px auto;
  }

  .news-card{
    padding-right:1rem;
  }

}

/* スマホ時：縦並びになったら高さを300pxに固定 */
@media screen and (max-width: 768px) {

  /* SP時の並び（slide - banner - icon） */
  .slide-order { order: 1; }
  .banner-order{ order: 2; }
  .icon-order  { order: 3; }

  /* 縦並びにしたいなら */
  .top {
    flex-direction: column;
  }

  /* section */

  .service-section,.news-section{
    padding-top:30px;
    padding-bottom:30px;
  }

  /*ボタン追加で消す*/
.news-section{
  padding-bottom:50px;
}

  .section-title{
    margin-bottom :20px !important;;
  }

  .intro-image {
    flex:1 1 100%;
    width: 100%;
    height: 200px;
    min-width: auto;
  }


  /* bnr */
  .section-inner {
    flex-direction: column;
    text-align: center;
  }

  .icon-group {
    justify-content: center;
  }

  .section-left, .section-right {
    flex: none;
    width: 100%;
  }

  .banner-left img{
    padding-left:0px;
  }

  /* 中央テキスト */
  .banner-text {
    width:90%;
    padding-left:26%;
    z-index: 2;
  }

  .banner-text ul{
    padding:0;
  }
  
  /* 右上テキスト画像 */
  .banner-right {
    width: 80px; /* PC時のサイズ調整 */
    height: auto;
    /* 上方向 -50%、右方向 +50% に飛び出す */
    transform: translate(20%, -60%);
  }

  /* お問い合わせbnr */
    .contact-banner-inner {
    grid-template-columns: 1fr; /* 縦並び */
    gap: 0px;
  }

  .tel-number {
    font-size: 34px;
  }

  
  /*service bnrs*/
  .service-inner{
  flex-direction:column;
  gap:10px;
  }

  .service-grid {
  grid-template-columns: repeat(2, 1fr); /* 2カラム・自動可変 */
  }

  /*blog img*/
  .news-image {
    flex: 0 0 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 24px;
  }
}

@media screen and (max-width: 600px) {

  .card-title br{
    display: none;
  }

  .card-img {
  width: 35%;
  min-width: 60px;
  height: 60px;
  overflow: hidden;
}
}

@media (max-width: 485px) {
  .icon-group {
    flex-direction: column; /* 縦並びにする */
    align-items: center;    /* 中央揃え */
    text-align: center;
  }

  
  .icon-wrap {
    justify-content: center; /* アイコン2つを中央揃え */
  }
}

@media screen and (max-width: 375px) {
  .intro-image{
    min-width: 100%; /* ← 幅に合わせて自動で折り返し */
    height:200px;
  }
}