/* ======================
ペレット メインビジュアル
====================== */
.pellet-main{
  position:relative;
  width:100%;
  max-width:none;
  margin:0;
  height:70vh;
  min-height:420px;
  overflow:hidden;
}

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

.pellet-main-text{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:min(90%, 760px);
  color:#fff;
  text-align:center;
  background:rgba(0,0,0,0.42);
  padding:36px 32px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
}

.pellet-main-text h1{
  font-size:32px;
  line-height:1.4;
  margin-bottom:14px;
  font-weight:700;
}

.pellet-main-text p{
  font-size:17px;
  line-height:1.9;
  margin:0;
  letter-spacing:0.03em;
}

/* ======================
ペレット説明
====================== */
.pellet-about{
  text-align:center;
  max-width:900px;
  margin:0 auto;
  padding:0 20px;
}

.pellet-lead{
  max-width:720px;
  margin:0 auto;
  font-size:17px;
  line-height:2;
  color:#555;
  letter-spacing:0.03em;
  word-break:normal;
  overflow-wrap:break-word;
}

/* ======================
メリット
====================== */
.pellet-merit{
  text-align:center;
}

.merit-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:30px;
}

.merit-box{
  background:#fff;
  padding:32px 26px;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  text-align:center;
  transition:0.35s ease;
}

.merit-box:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.merit-box h3{
  margin-bottom:14px;
  color:#b5521d;
  font-size:20px;
  line-height:1.5;
}

.merit-box p{
  font-size:15px;
  line-height:1.9;
  color:#555;
  margin:0;
  word-break:normal;
  overflow-wrap:break-word;
}

/* ======================
おすすめ機種
====================== */
.pellet-model{
  text-align:center;
}

.model-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:30px;
}

.model-card{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  transition:0.35s ease;
}

.model-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.model-card img{
  width:100%;
  height:260px;
  object-fit:contain;
  object-position:center;
  display:block;
  background:#f7f7f7;
  padding:12px;
}

.model-card h3{
  padding:20px 18px 10px;
  font-size:18px;
  line-height:1.5;
}

.model-card p{
  flex-grow:1;
  padding:0 18px 24px;
  font-size:14px;
  line-height:1.9;
  color:#555;
  margin:0;
  word-break:normal;
  overflow-wrap:break-word;
}

.model-badge{
  position:absolute;
  top:12px;
  left:12px;
  background:linear-gradient(45deg, #ff7b00, #ff3c00);
  color:#fff;
  padding:6px 12px;
  font-size:12px;
  font-weight:bold;
  border-radius:20px;
  box-shadow:0 5px 10px rgba(0,0,0,0.15);
  z-index:2;
}

/* ======================
一覧ボタン
====================== */
.pellet-btn-wrap{
  text-align:center;
  margin-top:40px;
}

.pellet-btn{
  display:inline-block;
  padding:14px 36px;
  background:#8b5e3c;
  color:#fff;
  font-size:16px;
  font-weight:600;
  border-radius:50px;
  text-decoration:none;
  transition:0.3s;
  box-shadow:0 4px 10px rgba(0,0,0,0.10);
}

.pellet-btn:hover{
  background:#6e472d;
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,0.15);
}

.pellet-btn::after{
  content:" →";
}

/* ======================
施工事例
====================== */
.pellet-works{
  text-align:center;
}

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

.pellet-img{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:12px;
}

.pellet-grid img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  transition:0.35s ease;
  box-shadow:0 10px 20px rgba(0,0,0,0.08);
  display:block;
}

.pellet-grid img:hover{
  transform:scale(1.05);
}

.photo-ribbon{
  position:absolute;
  top:12px;
  left:-40px;
  background:linear-gradient(45deg, #ff7b00, #ff3c00);
  color:#fff;
  padding:6px 50px;
  font-size:12px;
  font-weight:bold;
  transform:rotate(-45deg);
  box-shadow:0 5px 10px rgba(0,0,0,0.2);
  z-index:2;
}

/* ======================
メーカー
====================== */
.pellet-maker{
  text-align:center;
}

.maker-box{
  background:#fff;
  padding:40px 30px;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  max-width:700px;
  margin:0 auto;
}

.maker-box img{
  width:220px;
  margin:0 auto 20px;
  display:block;
}

.maker-box p{
  margin:0 0 30px;
  font-size:15px;
  line-height:2;
  color:#555;
}

.maker-btn{
  display:inline-block;
  margin-top:10px;
  padding:12px 30px;
  background:linear-gradient(45deg, #ff7b00, #ff3c00);
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  transition:0.35s ease;
  font-weight:600;
}

.maker-btn:hover{
  transform:translateY(-3px);
}

/* ======================
補助金
====================== */
.pellet-subsidy{
  background:#fff6ef;
  padding:50px 30px;
  border-radius:14px;
  text-align:center;
}

.subsidy-box{
  max-width:680px;
  margin:0 auto;
}

.subsidy-box p{
  margin:0 0 32px;
  font-size:15px;
  line-height:2;
  color:#555;
}

.contact-btn{
  display:inline-block;
  padding:14px 40px;
  background:linear-gradient(45deg, #ff7b00, #ff3c00);
  color:#fff;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  transition:0.35s ease;
}

.contact-btn:hover{
  transform:translateY(-3px);
}

/* ======================
設置の流れ
====================== */
.pellet-flow{
  text-align:center;
}

.flow-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:25px;
}

.flow-step{
  position:relative;
  background:#fff;
  padding:25px 20px;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  transition:0.35s ease;
}

.flow-step:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 40px rgba(0,0,0,0.15);
}

.step-number{
  width:42px;
  height:42px;
  background:#ff6a00;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  margin:0 auto 15px;
  font-size:18px;
}

.flow-step h3{
  margin-bottom:10px;
  font-size:16px;
  line-height:1.5;
}

.flow-step p{
  font-size:14px;
  line-height:1.8;
  color:#555;
  margin:0;
  word-break:normal;
  overflow-wrap:break-word;
}

.flow-step:not(:last-child)::after{
  content:"→";
  position:absolute;
  right:-15px;
  top:50%;
  transform:translateY(-50%);
  font-size:20px;
  color:#ff7b00;
}

/* ======================
お問い合わせ
====================== */
.pellet-contact{
  text-align:center;
}

.pellet-contact p{
  max-width:680px;
  margin:0 auto 24px;
  font-size:15px;
  line-height:2;
  color:#555;
}

/* ======================
ペレット一覧ページ
====================== */
.pellet-list{
  padding:80px 0;
  background:#fff;
}

.pellet-card{
  position:relative;
  background:#fafafa;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:0.3s;
}

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

.pellet-card img{
  width:100%;
  height:220px;
  object-fit:contain;
  object-position:center;
  background:#e3e2e2;
  position:relative;
  z-index:1;
  cursor:pointer;
}

.pellet-card h3{
  font-size:18px;
  line-height:1.5;
  margin:15px;
}

.pellet-card p{
  font-size:14px;
  line-height:1.8;
  color:#666;
  margin:0 15px 15px;
}

.pellet-type{
  position:absolute;
  top:10px;
  left:10px;
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:4px;
  font-weight:600;
  z-index:10;
}

.type-radiant{
  background:#de6102;
}

.type-fan{
  background:#2f6fab;
}

.type-pizza{
  background:#c406c7;
}

.type-outdoor{
  background:#027f44;
}

/* ======================
ライトボックス
====================== */
.lightbox{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:20px;
}

.lightbox img{
  max-width:90%;
  max-height:90%;
}

.lightbox.show{
  display:flex;
}

/* ======================
レスポンシブ
====================== */
@media screen and (max-width:1024px){
  .pellet-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .flow-grid{
    grid-template-columns:repeat(3, 1fr);
  }

  .flow-step:not(:last-child)::after{
    display:none;
  }
}

@media screen and (max-width:768px){
  .pellet-main{
    height:58vh;
    min-height:360px;
  }

  .pellet-main-text{
    width:min(92%, 640px);
    padding:28px 20px;
  }

  .pellet-main-text h1{
    font-size:24px;
  }

  .pellet-main-text p{
    font-size:15px;
    line-height:1.8;
  }

  .pellet-about{
    padding:0 16px;
  }

  .pellet-lead{
    max-width:100%;
    font-size:15px;
    line-height:1.95;
    text-align:left;
  }

  .merit-grid,
  .model-grid,
  .pellet-grid,
  .flow-grid{
    grid-template-columns:1fr;
  }

  .merit-box,
  .flow-step{
    padding:24px 20px;
  }

  .model-card img{
    height:240px;
  }

  .maker-box{
    padding:32px 20px;
  }

  .maker-box p,
  .subsidy-box p,
  .pellet-contact p,
  .merit-box p,
  .model-card p,
  .flow-step p{
    text-align:left;
  }

  .pellet-subsidy{
    padding:36px 20px;
  }

  .pellet-btn{
    width:100%;
    max-width:340px;
    text-align:center;
  }
}

@media screen and (max-width:480px){
  .pellet-main{
    height:52vh;
    min-height:320px;
  }

  .pellet-main-text{
    padding:24px 16px;
    border-radius:12px;
  }

  .pellet-main-text h1{
    font-size:21px;
  }

  .pellet-main-text p{
    font-size:14px;
  }

  .pellet-lead{
    font-size:14px;
  }

  .merit-box h3,
  .model-card h3{
    font-size:17px;
  }

  .model-card img{
    height:220px;
  }

  .photo-ribbon{
    font-size:11px;
  }
}