@import url(common.css);

/* m001 */
#content .m001 {
  background-image: url(../parts/banner/m001_2.png);
  background-position: center;
}

/* m002 */
#content .m002 {
  background-image: url(../parts/banner/m002_2.png);
  background-position: center;
}
/* m003 */
#content .m003 {
  background-image: url(../parts/banner/m003_4.jpg);
  background-position: center;
}
/* m004 */
#content .m004 {
  background-image: url(../parts/banner/m004_1.png);
}
/* m005 */
#content .m005 {
  background-image: url(../parts/banner/m005_1.jpg);
}
/* m006 */
#content .m006 {
  background-image: url(../parts/banner/m006_1.png);
  background-position: center;
}
/* m007 */
#content .m007 {
  background-image: url(../parts/banner/m007_1.png);
  background-position: center;
}
/* m008 */
#content .m008 {
  background-image: url(../parts/banner/m008_member.jpg);
  background-position: center;
}
/* m010 */
#content .m010 {
  background-image: url(../parts/banner/m010_1.png);
}
/* m011 */
#content .m011 {
  background-image: url(../parts/banner/m011_3.png);
  background-position: center;
}
/* m013 */
#content .m013 {
  background-image: url(../parts/banner/m013_2.webp);
  background-position: center;
}
/* m014 */
#content .m014 {
  background-image: url(../parts/banner/m014_2.png);
  background-position: center;
}
/* m015 */
#content .m015 {
  background-image: url(../parts/banner/m015_1.png);
  background-position: center;
}
/* m016 */
#content .m016 {
  background-image: url(../parts/banner/m016_2.png);
  background-position: center;
}

.first_overlay {
  padding: 4em 0;
}
.first_block h1 {
  padding: 0.4em 5px;
}
.first_block h1 span {
  font-size: clamp(20px, 1.8vw, 22px);
  line-height: 2;
}
.first_link a {
  position: relative;
  max-width: 450px;
  padding: 1em 3em 1em 2em;
  display: block;
  background-image: -webkit-linear-gradient(90deg, rgb(213, 213, 213) 0%, rgb(255, 255, 255) 51%);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  text-align: center;
  border-radius: 5px;
  color: #444;
  font-weight: bold;
  font-size: 18px;
}
.first_link a:hover {
  background: #fff;
  opacity: unset;
}

/* ------------------------------

タブデザイン
（iOS風）

------------------------------ */
.tab-container {
  position: relative;
}

.tab-container .tab_ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  background: #eeeeee;
  border-radius: 48px;
  padding: 6px;
  position: relative;
}

.slide-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(25% - 4px);
  height: calc(100% - 12px);
  background: linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 100%);
  border-radius: 48px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.tab-container .tab_ul li {
  flex: 1;
  padding: 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  border-radius: 8px;
  margin: 0 2px;
  background: transparent;
}

.tab-container .tab_ul li.selected {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tab-container .tab_ul li:not(.selected):hover {
  color: #aaaaaa;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.tab-content {
  display: none;
  padding: 24px;
  min-height: 150px;
  background: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 16px;
}

.tab-content.selected {
  display: block;
  animation: slideContentIn 0.3s ease-out;
}

@keyframes slideContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------

会社情報
（#tab-1）

------------------------------ */
/* スライダ―
----------------------------- */
.photo-slider {
  position: relative;
  margin: 0 auto 0.5em;
}

/* ビューポート：ここで左右をカット（前後チラ見せ） */
.photo-slider__viewport {
  overflow: hidden;
  padding: 0 30px; /* ここを増減するとチラ見え量が変わる */
}

/* スライドの横並び */
.photo-slider__track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

/* 各スライド：幅を100%より小さくして前後を見せる */
.photo-slider__slide {
  flex: 0 0 70%; /* メイン画像の幅（70%くらい） */
  max-width: 400px;
  background: #fff;
  overflow: hidden;
}

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

/* キャプション */
.photo-slider__slide figcaption {
  padding: 8px 10px 10px;
  font-size: 13px;
  color: var(--aside_gray);
}

/* 前後ボタン */
.photo-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-slider__btn--prev {
  left: 4px;
}

.photo-slider__btn--next {
  right: 4px;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .photo-slider__viewport {
    padding: 0 20px;
  }
  .photo-slider__slide {
    flex: 0 0 80%; /* 少し大きくしてもOK */
  }
}

.shop_data {
  padding: 1.4em 0.5em;
  border-bottom: 1px solid rgb(206, 206, 206);
}
.shop_data:last-of-type {
  border-bottom: unset;
}

.shop_data dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  gap: 2em;
}
.shop_data dl dt {
  flex-basis: 160px;
  font-weight: bold;
}
.shop_data dl dd {
  flex-basis: 500px;
}

/* sns */
.sns_block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  gap: 1em;
}
.sns_block li a img {
  display: block;
  max-width: 100px;
}

/* 地図 */
.g_map {
  padding: 2em 0;
}
.g_map dt {
  font-weight: bold;
  padding-bottom: 1.5em;
}

/* ------------------------------

対応エリア・工事
（#tab-2）

------------------------------ */
.area_list {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 20px;
}
/* ※上記エリアはお見積無料～ */
#tab-2 .shop_data span {
  display: block;
  padding-top: 1em;
  font-size: 14px;
  color: var(--aside_gray);
}

/* ------------------------------

対応工事
（#tab-3）

------------------------------ */
#tab-3 .shop_data {
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.shop_data dt {
  display: inline-flex;
  align-items: center;
}

#tab-3 .work_icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: #004b9f;
  flex-shrink: 0;
  margin-right: 1em;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}
#tab-3 .work_name {
  display: block;
}
/* 一般電気工事アイコン */
.icon_plug {
  background-image: url(../parts/common/emojione-monotone_electric-plug.png);
}
/* エナジー関連アイコン */
.icon_energy {
  background-image: url(../parts/common/ix_electrical-energy-filled.png);
}
/* 換気・空調アイコン */
.icon_hvac {
  background-image: url(../parts/common/mdi_air-filter.png);
}
/* 法人向け電気工事アイコン */
#tab-3 .icon-corp {
  background-image: url(../parts/common/rivet-icons_building-solid.png);
  background-color: #0c6bbe;
}
#tab-3 .shop_data ul {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

#tab-3 .shop_data li {
  list-style-type: disc;
  list-style-position: inside;
}

/* ------------------------------

施工事例
（#tab-4）

------------------------------ */
#tab-4 {
  border: unset;
  border-radius: unset;
}

/* -----------------------------

レスポンシブ
768px

----------------------------- */
@media screen and (max-width: 768px) {
  .first_block h1 {
    font-size: 35px;
    color: #fff;
    text-shadow: 1px 1px 5px rgb(43, 43, 43);
  }
  .first_block h1 span {
    font-size: 16px;
  }
  .first_link a {
    position: relative;
    width: calc(100% - 40px);
    max-width: 300px;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 16px;
  }
  #sekourei {
    width: calc(100% - 0px);
  }
  #fomz {
    width: calc(100% - 20px);
  }
}

/* -----------------------------

レスポンシブ
480px

----------------------------- */
@media (max-width: 480px) {
  /* タブの見出し部分
  ----------------------------- */
  .tab-container .tab_ul {
    border-radius: unset;
  }
  .tab-container .tab_ul li {
    padding: 14px 0px;
    font-size: 13px;
  }
  .tab-content {
    padding: 15px;
    border: unset;
    border-radius: unset;
    margin-top: unset;
  }

  .shop_data dl {
    display: block;
  }
  .area_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 20px;
  }
  .shop_data dd {
    padding-top: 1em;
  }
  .area_wap .shop_data {
    gap: 3em;
    padding: 2em 0.5em;
  }
  .area_wap .shop_data ul {
    gap: 0.2em;
  }
}
