@charset "UTF-8";

.section-title {
  color: #5A5453(51, 51, 51, 0.9);
  font-size: clamp(68px, 7vw, 100px);
  font-style: #5A5453;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 1px 5px 3px #fff;
}

.btn {
  max-width: 120px;
  background-color: #fff;
  display: block;
  border: solid 1px #5A5453;
  font-size: 12px;
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}
.btn::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  background-color: #5A5453;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform ease 0.3s;
}
.btn:hover {
  color: #fff;
  opacity: 1;
}
.btn:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}

/* Inview TOPの速度等*/
.fadein {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1.2s ease;
}
.fadein.inview {
  opacity: 1;
  transform: translateY(0);
}

/*-------------------------------------------
Mainvisual
-------------------------------------------*/
.mainvisual {
  height: 600px;
  margin-bottom: 300px;
  position: relative;
}
.mainvisual .fade-img img {
  width: 100%;
  height: 730px;
  object-fit: cover;
}
.mainvisual .fade-img li {
  width: 70%;
  position: absolute;
  right: 0;
  opacity: 0;
  animation: fade 15s infinite;
}
.mainvisual .fade-img li:nth-child(1) {
  animation-delay: 0s;
}
.mainvisual .fade-img li:nth-child(2) {
  animation-delay: 5s;
}
.mainvisual .fade-img li:nth-child(3) {
  animation-delay: 10s;
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  45% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.mainvisual .catchphrase {
  font-family: 'Zen Old Mincho', serif;
  font-size: 50px;
  text-shadow: 1px 1px 3px #fff;
  position: absolute;
  top: 270px;
  left: 6%;
}

/*-------------------------------------------
About
-------------------------------------------*/
.company {
  margin-bottom: 100px;
}
.company .section-title {
  margin: 0 0 -5vw 4vw;
  position: relative;
  z-index: 10;
}
.company .flex {
  display: flex;
  align-items: center;
}
.company .flex .img {
  width: 65%;
}
.company .flex .img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.company .flex .text {
  width: 35%;
  background-color: #fff;
  padding: 5% 0 5% 5%;
  margin-left: -8%;
}
.company .text .title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 24px;
}
.company .text .description {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/*-------------------------------------------
Products photo
-------------------------------------------*/
.products {
  margin-bottom: 110px;
  position: relative;
  top: 100px;
  height: 700px;
}

/*-------------------------------------------
Products 横流しスライダー（上下2段・無限ループ）
-------------------------------------------*/

/* アニメーション設定 */
@keyframes slide-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } 
}

@keyframes slide-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* 画像と画像の上下の幅 */
.products-list-area {
  width: 100%;
  overflow: hidden;
  margin-bottom: 60px;
}

/* リストの基本設定 */
.products-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  animation: slide-left 60s linear infinite; 
  will-change: transform;
}

/* 下段：右流し */
.products-list-area.reverse .products-list {
  animation: slide-right 60s linear infinite;
}

/* 各画像アイテム */
.products-list li {
  flex: 0 0 auto;
  width: calc(100vw / 7); /* 1行に7枚 */
  padding: 30px 10px; 
}


/* タブレット：4枚表示 */
@media screen and (max-width: 1024px) {
  .products-list li {
    width: calc(100vw / 4);
  }
}

/* スマホ：4枚表示 */
@media screen and (max-width: 767px) {
  .products-list li {
    width: calc(100vw / 4);
    padding: 20px 5px; 
  }

  .products-list img {
    height: 120px; 
  }
}

.products-list img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* 各スライダーの背景（共通） */
.products-list-area {
  position: relative;
  z-index: 1;
}

/* 背景共通スタイル */
.products-list-area::before {
  content: "";
  position: absolute;
  top: -30px;         
  left: 50%;
  transform: translateX(-50%);
  width: 110%;          
  height: calc(100% + 60px); 
  background-color: #cdd7df;
  border-radius: 20px;
  z-index: -1;        
}

/* 上段用（少し下に余白をあける） */
.products-list-area:first-of-type::before {
  top: -40px;
  height: calc(100% + 80px);
}

/* 下段用（位置を調整） */
.products-list-area.reverse::before {
  top: -20px;
  height: calc(100% + 80px);
}
/* 画像の周りの白いフレーム */
.products-list img {
  width: 100%;
  height: 200px;
  border-radius: 12px; 
  display: block;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.products .text {
  width: 70%;
  padding: 0 5%;
  margin-left: auto;
}
.products .text .section-title {
  margin-bottom: 30px;
}
.products .text .description {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 60px;
}

.products .btn {
  margin: 0 auto;
}


.modal-text {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 15px;
  white-space: normal;
}

/*-------------------------------------------
Works
-------------------------------------------*/
.works {
  display: flex;
  justify-content: space-between;
  margin-bottom: 120px;
  position: relative;
}
.works::after {
  content: "";
  width: 70%;
  height: 70%;
  min-height: 420px;
  background-color: #fafafa;
  display: block;
  position: absolute;
  top: 6vw;
  left: 0;
  z-index: -10;
}
.works .text {
  padding: 0 6% 0 4%;
}
.works .text .section-title {
  margin-bottom: 40px;
}
.works .text .description {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.works .text .btn {
  margin-top: 30px;
}
.works .works-list {
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 170px;
}
.works .works-list li {
  max-width: 500px;
}


.works-list {
  display: flex;
  gap: 10px; 
  list-style: none;
  padding: 0;
  margin: 0;
  padding-right: 20px; 
  padding-left: 20px; 
  
}

.works-list li {
  flex: 0 0 auto;
  border-radius: 10px;  
  overflow: hidden;     
}

.works-list img {
  width: 450px;         
  height: 250px;       
  object-fit: cover;   
  display: block;
  
}

/*-------------------------------------------
スマートフォン
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .section-title {
    font-size: 12vw;
  }

  /*-------------------------------------------
  Mainvisual
  -------------------------------------------*/
  .mainvisual {
    height: 400px;
    margin-bottom: 60px;
  }
  .mainvisual .fade-img img {
    height: 400px;
  }
  .mainvisual .fade-img li {
    width: 100%;
  }
  .mainvisual .catchphrase {
    color: #fff;
    text-shadow: 1px 1px 1px #777;
    font-size: 28px;
    top: 300px;
    left: 6%;
  }

  /*-------------------------------------------
  About
  -------------------------------------------*/
  .company {
    margin-bottom: 60px;
  }
  .company .section-title {
    margin: 0 0 -7vw;
    text-align: center;
  }
  .company .flex {
    flex-direction: column;
  }
  .company .flex .img {
    width: 100%;
  }
  .company .flex .img img {
    height: 300px;
  }
  .company .flex .text {
    width: 100%;
    margin-left: 0;
    padding: 20px 20px 0;
  }
  .company .flex .text .title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .company .flex .text .description {
    margin-bottom: 20px;
  }

  /*-------------------------------------------
  Products photo
  -------------------------------------------*/
  .products {
    margin-bottom: 50px;
  }
  .products::after {
    width: 100%;
    height: 134px;
    top: 6vw;
  }
  .products .text {
    width: 100%;
    padding: 0 20px;
  }
  .products .text .section-title {
    text-align: center;
  }
  .products .text .description {
    margin-bottom: 20px;
  }
  .products .products-list-area {
    margin-bottom: 20px;
  }


  /*-------------------------------------------
  Works
  -------------------------------------------*/
  .works {
    flex-direction: column;
    margin-bottom: 60px;
  }
  .works::after {
    width: 100%;
    height: 90%;
    min-height: auto;
    top: 10vw;
  }
  .works .text {
    padding: 0 20px;
    margin-bottom: 40px;
  }
  .works .text .section-title {
    margin-bottom: 30px;
    text-align: center;
  }
  .works .works-list {
    margin-top: 0;
  }
}

/* ============================
   モーダル（ポップアップ）
============================ */
.modal {
  display: none; /* 最初は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: popUp 0.3s ease;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* products モーダルの1行目だけ下線を付ける */
.modal-text .modal-line1 {
  display: inline-block; 
  text-decoration: underline;
  text-decoration-color: #5A5453; 
  text-underline-offset: 4px;

}

/* 閉じるボタン */
  .modal-close {
   position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  line-height: 34px; 
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}


/* ふんわりアニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ポップアップ全体 */
.popup-content {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
  overflow: hidden; 
}

/* ポップアップ内の画像 */
.popup-content img {
  width: 100%;
  height: auto;
  max-height: 400px; 
  object-fit: contain; 
  border-radius: 10px;
  display: block;
  margin: 0 auto 20px;
}

/* ×ボタン */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #000;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  transition: 0.2s;
}
.close-btn:hover {
  background: #333;
}

/* ===========================
   モーダル画像を白枠内に収める調整
=========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  max-width: 90%;
  max-height: 100%;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.modal-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  text-align: center;
  max-height: none;
  overflow: visible;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  line-height: 34px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

.XD {
  color: #e532dc;
}


