@charset "UTF-8";

/**/

.shop-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto;
  gap: 20px;
}

.intro-text {
  flex: 1 1 65%;
}

.intro-text h2 {
  font-size: 1.8rem;
}


.intro-image {
  flex: 1 1 30%;
  text-align: center;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#icon-s{
  flex-wrap: wrap;
  gap:10px;
}

#icon-s .icon-bg{
width:50px;
height:50px;
margin-bottom: 0;
}

#icon-s .icon-bg img{
  align-items: center;
  justify-content: center;
}

/* ここから */

.image-wrapper {
  position: relative;
  height: 320px; /* 例の高さ */
  overflow: hidden;
  max-width: 1000px;
  width:100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像のトリミングを防ぐ */
  display: block;
}

.image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 左が黒、右に向かって透明になる横グラデーション */
  background: linear-gradient(to right, rgba(244,244,244,1) 30%, rgba(244,244,244,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.text-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 2; /* グラデーションより前面 */
  text-align: center;
}



.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; /* 横並び */
  z-index: 2;
}


.left-column {
  flex: 0 0 50%;           /* 左カラムの幅 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.left-column strong{
  font-size:clamp(50px, calc(50px + (20 * (100vw - 375px) / 1025)), 70px);
  color:var(--color-red);
}

.left-column span:nth-of-type(2){
  background-color: var(--color-red);
  color:var(--color-white);
  padding:.2rem 1.5rem;
}

.right-column {
  flex: 1;           /* 空でも幅を確保したい場合のみ */
}


/* グレーアイコン */
.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* 横に10並び */
  gap: 10px; /* アイコン同士の余白 */
  justify-items: center;
  max-width: 100%;
}

.icon-item {
  text-align: center;
}

.icon-item img{
   width:30px; 
   height:30px;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-gray); /* グレー背景 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.caption {
  font-size: 12px;
  color: var(--color-gray3);
}







/* 悩み */
.key-problems {
  padding: 0 0 var(--margin-m);
  border:6px solid var(--color-yellow);
  max-width: 1000px;
  width:96%;
}

.key-problems h2{
  background-color: var(--color-yellow);
  padding:.5rem 0;
  margin:0;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
}

.problem-list .check {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-yellow);
  color: var(--color-black);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.problem-list .text h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.problem-list .text p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* カードセクション */
.usage-section {
  padding: 40px 20px;
  background-color: var(--color-gray);
  text-align: center;
  overflow:hidden;
}

.usage-section .section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: bold;
}

/* カードコンテナ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

  /* .cards h3{
    line-height:1.2rem;
  } */


/* カード */
.card {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  display: block;
}

.card-text {
  padding: 12px 10px;
  text-align: center;
  text-align: left;
}

.card-text h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: bold;
}

.card-text h3 small {
  font-weight: 500;
  padding:0 .2rem;
}

.card-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-gray3);
  line-height: 1.4;
}

.arrow-down {
  width:60px;
  display: flex;
  justify-content: center; /* 横中央 */
  font-size: 40px;      /* 矢印の大きさ */
  text-align: center;
  line-height: 1;
  color: var(--color-red);
  transform: scaleX(2); /* 横に伸ばして横長に */
}

/* ----- 鍵の種類 ----- */
.key-uses {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.mega{
  position: relative;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 2rem 0;
  display: inline-block; /* 中央寄せのため */  
}

.mega > span {
  position: relative;
  display: inline-block; /* ← テキストの幅だけにする */
  line-height: 1.5;
}

.mega > span::before,
.mega > span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--color-black);
  transform: rotate(45deg);
}

.mega > span::before {
  left: -40px;
  transform: rotate(45deg);
}

.mega > span::after {
  right: -40px;
  transform: rotate(-45deg);
}

/* PC時：3カラム */
.key-uses-grid {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  gap: 2rem;
}

.key-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.key-img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 正方形 */
  object-fit: cover;
  border-radius: 8px;
}

/* 注意事項 */
.key-notice {
  max-width: 1000px;
  margin: var(--margin-m) auto;
  padding: var(--margin-m) 1.5rem;
  background: var(--color-gray);
  border: 1px solid var(--color-gray2);
  border-radius: 8px;
}

.key-notice h3{
  padding:0;
  margin:0;
}

.key-notice li{
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  padding-left: 1em; /* アイコン分の余白を確保 */
}

.key-notice li:before{
  content:"・";
  position: absolute;
  left: 0;
  top: 0;
}

.notice-title {
  text-align: left;
  padding:0;
}

.notice-list {
  list-style: disc inside; /* 黒丸リスト */
  margin: 0;
  padding: 0;
}

.notice-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.notice-list li:nth-last-of-type(1){
  margin-bottom:0;
}

/* SP表示 */
@media (max-width:1000px){
  .problem-list{
    padding:0 1rem;
  }

  .key-notice{
    margin:0 1rem;
  }
}

@media (max-width: 768px) {

  .shop-intro {
    flex-direction: column;
  }

  .intro-image {
    order: 2;
  }

  .intro-text {
    order: 1;
  }

  /* ここから */

  .left-column {
  flex: 0 0 100%; 
  }

  .image-wrapper{
    height:200px;
  }

  .image-wrapper::before {
  /* 左が黒、右に向かって透明になる横グラデーション */
  background: rgba(244,244,244,0.8);
  z-index: 1;
  pointer-events: none;
}

  /* グレーアイコン */
.icon-list {
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* 横に10並び */
  gap: 5px; /* アイコン同士の余白 */

}

.icon-item img{
   width:20px; 
   height:20px;
}


.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray); /* グレー背景 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}


  .problem-list {
    grid-template-columns: 1fr;
    gap: 15px 0;
  }

  .mega > span::before {
  width: 60px;
  left: -70px;
  transform: rotate(60deg);
  }

  .mega > span::after {
    width: 60px;
    right: -70px;
    transform: rotate(-60deg);
  }

  /* カードセクション */
   .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .usage-section .section-title {
    font-size: 1.5rem;
  }

  .card-text h3 {
    font-size: 0.95rem;
  }

  .card-text p {
    font-size: 0.8rem;
  }


  /* ----- 鍵の種類 ----- */
  .key-uses-grid {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .key-images {
    flex-direction: row; /* SPでは横並び */
    gap: 1rem;
    margin-bottom: 1rem;;
  }
  
}



@media screen and (max-width: 600px) {

  .intro-text p{
    margin:0;
  }

  .shop-intro{
    gap:10px;
  }

}