/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author: Vektor,Inc.
Author URI: https://www.vektor-inc.co.jp
Tags:
Version: 0.6.1
*/


.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
  cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-item:hover {
    transform: scale(1.05);
}

.product-bg {
    aspect-ratio: 16 / 10;   /* ← これで3:4 */
    overflow: hidden;
}

.product-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    z-index: 2;
}

.product-overlay img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.product-title {
    position: static;   /* ← absoluteやめる */
    background: none;
    color: #333;
    padding: 12px 0 0;
    font-weight: bold;
}

/* モーダル */
.product-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.6) !important;
    z-index: 99999 !important;
}

.product-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

body.modal-open {
    position: fixed;
    width: 100%;
}

.product-edit-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.product-edit-btn:hover {
    background: #e60033;
}

/* スマホ */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}






.factory-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.factory-card {
  position: relative;
  display: block;
  padding: 30px 20px;
  background: #f8f9fb;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.factory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  background: #ffffff;
}

.factory-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.factory-sub {
  font-size: 14px;
  color: #666;
}

.factory-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  background: #0073aa;
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}







.machine-section{
  margin-bottom:60px;
}

.machine-title{
  border-left:5px solid #1e73be;
  padding-left:15px;
  margin-bottom:25px;
  font-size:22px;
}

.machine-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.machine-card{
  background:#fff;
  border-radius:12px;
  padding:20px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
  transition:0.3s;
}

.machine-card:hover{
  transform:translateY(-5px);
}

.machine-name{
  font-weight:bold;
  font-size:16px;
  margin-bottom:10px;
}

.machine-meta{
  margin-bottom:10px;
}

.badge{
  display:inline-block;
  background:#1e73be;
  color:#fff;
  padding:3px 8px;
  border-radius:20px;
  font-size:12px;
  margin-right:5px;
}

.machine-desc{
  font-size:14px;
  line-height:1.6;
}





/* トップページボタン */

/* ===== セクションはフル幅 ===== */
.top-cta-section {
  width: 100%;
  box-sizing: border-box;
}

/* 横並び */
.top-cta-buttons {
  display: flex;
  width: 100%;
  gap: 30px; /* 真ん中の隙間 */
}

/* ボタン */
.top-cta-btn {
  position: relative;
  flex: 1;
  height: 320px; /* ← 変更 */
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
}

/* 画像 */
.top-cta-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* 黒レイヤー */
.btn-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s ease;
}

/* テキスト */
.btn-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 2;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.top-cta-btn .jp {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.top-cta-btn .en {
  font-size: 15px;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* hover */
.top-cta-btn:hover img {
  transform: scale(1.08);
}

.top-cta-btn:hover .btn-overlay {
  background: rgba(0,0,0,0.25);
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .top-cta-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .top-cta-btn {
    height: 260px !important; /* ← スマホ用 */
  }
}





/* 問い合わせTEL */

.company-tel-box {
  border: 2px solid #1f3c88;
  background: #f8fbff;
  padding: 24px;
  text-align: center;
  border-radius: 8px;
  max-width: 600px;
  margin: 40px auto;
}

.company-tel-title {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #1f3c88;
  margin-bottom: 8px;
}

.company-tel-number {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
}

.company-tel-time {
  font-size: 14px;
  color: #555;
}
}