﻿@charset "UTF-8";

/* insulation */

.insulation {
  width: 100%;
  margin: 0 auto;
}

.insulation p{
  font-size: 15px;
  color: #606060;
  margin: 0;
}

.insulation-read {
  padding-bottom: 50px;
  border-bottom: #666 solid 1px;
}

.insulation-read h2 {
  text-align: center;
  font-size: 20px;
  color: #606060;
  margin-top: 30px;
  margin-bottom: 20px;
}

p.first-orange::first-letter {
  font-size: 2em;
  font-weight: bold;
  color: #efb461;
}

p.first-red::first-letter {
    font-size: 2em;
  font-weight: bold;
  color: #e83c3c;
}

.insulation-read-images {
  display: flex;
  justify-content:space-between;
  margin-top: 50px;
}

.insulation-read-images img {
   max-width: 45%;
   display: block;
}

.insulation-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-top: 30px;
  padding-bottom: 30px; 
  border-bottom: #666 solid 1px;
}

.insulation-description,
.insulation-image {
  flex: 1 1 48%;
  box-sizing: border-box;
}

.insulation-description p {
  text-indent: 1em;   /* 1文字分インデント */
}

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

.insulation-description h3{
  text-align: center;
  font-size: 20px;
  color: #606060;
  margin: 0;
}

.insulation_mark {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 1em;
  margin-bottom: 2em;
}

.insulation_mark img {
  width: 90%;
  max-width: 80px;
}



ul.insulation-logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
}

.insulation-logo li {
  flex: 0 1 33.333%;
  text-align: center;
}

.insulation-logo img {
  width: 90%;
  max-width: 120px;
}



@media(min-width: 600px){
  
  .insulation p {
    font-size: 16px;
  }

  .insulation-read h2 {
    font-size: 20px;
  }

  
  .insulation-menu {
    padding: 48px 0;
  }
  
  .insulation-description h3 {
    font-size: 18px;
  }
  
  .insulation-logo li {
    flex: 0 1 33.333%;
  } /* 3列 */

}

@media (min-width: 768px) {

  .insulation p {
    font-size: 16px;
  }

  .insulation-read h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

  
  .insulation-menu {
    padding: 64px 0;
  }
  
  .insulation-description h3 {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  
  .insulation p {
    font-size: 17px;
  }
  
  .insulation-read {
    padding-top: 40px;
  }

  .insulation-read h2 {
    font-size: 28px;
  }

  
  .insulation-menu {
    padding: 80px 0;
  }
  
  .insulation-description h3 {
    font-size: 22px;
  }
}


/* クリック可能であることを示す */
img.js-zoomable {
  cursor: zoom-in;
}

/* モーダル本体 */
.img-modal {
  display: none;               /* 非表示が初期状態 */
  position: fixed;
  inset: 0;                    /* top/right/bottom/left: 0 の省略 */
  z-index: 10000;
  background: rgba(0,0,0,0.8);
  padding: 2rem;
  align-items: center;         /* 中央寄せ（flexとセット） */
  justify-content: center;
}
.img-modal.is-open {
  display: flex;               /* 開いたときだけ表示 */
}

/* 中の拡大画像 */
.img-modal__content {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: zoomIn .25s ease;
  background: #fff;            /* 透過PNG対策（任意） */
}

/* 画像とボタンをまとめる箱（中央に来る） */
.img-modal__box {
  position: relative;
  display: inline-block;       /* 画像サイズにぴったり */
  max-width: min(90vw, 1200px);
  max-height: 85vh;
}

/* 画像（既存の制限は box に移したので軽めに） */
.img-modal__content {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  background: #fff;
  animation: zoomIn .25s ease;
}

/* ×ボタンを画像の右上にピタッ */
.img-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ホバー/フォーカスで視認性UP */
.img-modal__close:hover,
.img-modal__close:focus-visible {
  background: rgba(0,0,0,0.6);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* 画面が狭い時は指で押しやすいサイズに */
@media (max-width: 599px) {
  .img-modal__close {
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
}

/* 開いている間スクロールを止める */
body.modal-open {
  overflow: hidden;
}

@keyframes zoomIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

