/* =========================
   Factory page for Cocoon
   ========================= */
.kk-factory-page{
  width:100%;
  max-width:100%;
  margin:0 auto;
  box-sizing:border-box;
}

.kk-factory-title{
  margin:0 0 24px;
  font-size:clamp(1.8rem, 2.5vw, 2.2rem);
  line-height:1.4;
  text-align:center;
}

.kk-factory-lead{
  margin:0 0 18px;
  font-size:1rem;
  line-height:1.9;
  color:#333;
}

.kk-factory-steps{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  margin-top:32px;
}

.kk-factory-step{
  background:#fff;
  border:1px solid #d9d9d9;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
  padding:16px;
  box-sizing:border-box;
}

.kk-factory-step img{
  display:block;
  width:100%;
  height:auto;
  margin:0 0 12px;
  border-radius:6px;
}

.kk-factory-step h2{
  margin:0 0 8px;
  font-size:1.08rem;
  line-height:1.5;
  color:#0b4d2b;
  text-align:center;
}

.kk-factory-step p{
  margin:0;
  font-size:.95rem;
  line-height:1.8;
  color:#444;
}

.kk-factory-links{
  margin-top:48px;
  padding-top:24px;
  border-top:1px solid #ccc;
  text-align:center;
}

.kk-factory-links-title{
  margin:0 0 16px;
  font-weight:700;
  color:#333;
}

.kk-factory-links-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 18px;
}

.kk-factory-links-list a{
  display:inline-block;
  color:#0055aa;
  text-decoration:none;
  border-bottom:1px solid transparent;
}

.kk-factory-links-list a:hover{
  color:#003f7d;
  border-bottom-color:#003f7d;
}

/* タブレット */
@media (max-width:1024px){
  .kk-factory-steps{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* スマホ */
@media (max-width:767px){
  .kk-factory-title{
    font-size:1.6rem;
  }

  .kk-factory-steps{
    grid-template-columns:1fr;
    gap:18px;
  }

  .kk-factory-step{
    padding:14px;
  }

  .kk-factory-links-list{
    flex-direction:column;
    gap:10px;
  }
}