/* ====== Base====== */
.fs-product-wrap{
  --max: 1100px;
  --gap: 28px;
  --border: #e7e7e7;
  --text: #222;
  --muted: #666;
  --accent: #e24b2a;
  --accent2: #ff7a3d;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  color: var(--text);
  line-height: 1.6;
}
.fs-product-wrap *{ box-sizing: border-box; }
.fs-product-wrap img{ max-width:100%; height:auto; display:block; }
.fs-container{ max-width: var(--max); margin: 0 auto; padding: 18px 14px 40px; }
.fs-muted{ color: var(--muted); }
.fs-section{ margin-top: 28px; }
.fs-h2{
  font-size: 20px;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 2px solid #f2f2f2;
  margin: 0 0 14px;
}
.fs-h3{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}
.fs-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ====== Top layout ====== */
.fs-top{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--gap);
  align-items:start;
}
@media (max-width: 860px){
  .fs-top{ grid-template-columns: 1fr; }
}

/* ====== Left: gallery ====== */
.fs-gallery .fs-main-img{
  border:1px solid var(--border);
  border-radius: 10px;
  overflow:hidden;
  background:#fff;
  position: relative;
}
.fs-gallery .fs-main-img img{
  width: 100%;
}
.fs-thumbs{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 520px){
  .fs-thumbs{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 4px 8px;   
  }
.fs-thumb{
  border:1px solid var(--border);
  border-radius: 8px;
  overflow:hidden;
  background:#fff;
  flex: 0 0 72px;
}
}
.fs-thumb button{
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  display:block;
}
.fs-thumb img{ width:100%; }
.fs-thumb.is-active{
  outline: 2px solid rgba(226,75,42,.55);
  outline-offset: 2px;
}

/* アクセシビリティ：キーボード操作時 */
.fs-thumb button:focus-visible{
  outline: 2px solid rgba(226,75,42,.85);
  outline-offset: 2px;
  border-radius: 8px;
}

.fs-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 12px;
}
.fs-badge{
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  border:1px solid #eee;
}
.fs-badge.orange{
  background: rgba(226,75,42,.08);
  border-color: rgba(226,75,42,.20);
  color: var(--accent);
  font-weight: 700;
}

.fs-cta{
  margin-top: 16px;
  border:1px solid rgba(226,75,42,.30);
  background: rgba(226,75,42,.06);
  border-radius: 10px;
  padding: 14px;
}
.fs-cta .fs-cta-title{
  font-weight: 700;
  margin: 0 0 10px;
}
.fs-cta .fs-cta-note{
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.fs-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226,75,42,.25);
  color:#fff;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 18px rgba(226,75,42,.18);
  transition:
  transform .18s ease,
  box-shadow .18s ease,
  filter .18s ease;    
}
.fs-btn:hover{
  filter: brightness(1.02);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(226,75,42,.28);
  filter: brightness(1.05);
  color: #fff;    
}

/* ====== Right: info ====== */
.fs-title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
}
.fs-sku{
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.fs-pricebox{
  border:1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background:#fff;
}
.fs-price{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin: 0;
}
.fs-price small{ color: var(--muted); font-size: 12px; }
.fs-price strong{
  font-size: 26px;
  color: var(--accent);
  letter-spacing: .02em;
}
.fs-lead{
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}
.fs-desc{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ====== Spec table ====== */
.fs-spec{
  margin-top: 16px;
  border:1px solid var(--border);
  border-radius: 10px;
  overflow:hidden;
  background:#fff;
}
.fs-spec .fs-spec-head{
  padding: 12px 14px;
  font-weight: 800;
  background: #f7f7f7;
  border-bottom: 1px solid var(--border);
}
.fs-table{
  width:100%;
  border-collapse: collapse;
}
.fs-table th, .fs-table td{
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  font-size: 13px;
}
.fs-table th{
  width: 34%;
  background: #fcfcfc;
  color: #444;
  font-weight: 700;
}
.fs-table tr:last-child th,
.fs-table tr:last-child td{ border-bottom: none; }

/* ====== Flow / long sections ====== */
.fs-flow{
  padding: 14px;
}
.fs-flow img{
  border:1px solid var(--border);
  border-radius: 10px;
  background:#fff;
}
.fs-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 860px){
  .fs-grid2{ grid-template-columns: 1fr; }
}
.fs-box{
  padding: 14px;
  border:1px solid var(--border);
  border-radius: 10px;
  background:#fff;
}
.fs-list{
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 13px;
}
.fs-list li{ margin: 6px 0; }
    
/* ====== Related products ====== */
.fs-related{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fs-item{
  display: block;
  text-decoration: none;
  color: inherit;
}
.fs-item:hover{
  text-decoration: none;
}    
@media (max-width: 860px){
  .fs-related{ grid-template-columns: repeat(2, 1fr); }
}
.fs-item{
  border:1px solid var(--border);
  border-radius: 10px;
  overflow:hidden;
  background:#fff;
}
.fs-item .fs-item-img{
  aspect-ratio: 1 / 1;
  background:#fafafa;
}
.fs-item .fs-item-body{ padding: 10px; }
.fs-item .fs-item-name{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  min-height: 2.8em;
}
.fs-item .fs-item-price{
  margin: 0;
  font-weight: 800;
  color: var(--accent);
  font-size: 13px;
}    
  /* ===== SP調整 ===== */
  @media (max-width: 700px){
      .fs-l-pageMain {
      margin-top: 50px;
      }
    }  