/* =========================================================
   vitamin-d-products.css
   商品個別4ページ専用
   common.css + このCSSのみで使用
========================================================= */

body{background:#fff;}

/* =============================================
   MV / H1
============================================= */
.mv{
  background-color:#e5f3fb;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  height:320px;
}

.mv .container{
  position:relative;
  width:100%;
  height:100%;
  margin:0 auto;
  padding:0;
}

.mv-subtitle,
.mv-title,
.mv-catch{
  position:absolute;
  left:5%;
  z-index:2;
}

.mv-subtitle{
  top:10%;
  display:inline-flex;
  align-items:center;
  gap:2px;
  background:#1f9d55;
  color:#fff;
  font-size:.95rem;
  font-weight:700;
  padding:7px 20px 7px 12px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(46,168,213,.22);
}

.mv-subtitle svg{
  width:20px;
  height:20px;
  fill:currentColor;
  flex:none;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.15));
  opacity:.95;
}

.mv-title{
  top:27%;
  font-size:2.8rem;
  letter-spacing:-.04rem;
  color:#0a2d4a;
  font-weight:900;
  line-height:1.2;
  margin:0;
}

.mv-catch{
  top:50%;
  max-width:660px;
  color:#0a2d4a;
  font-size:1rem;
  font-weight:600;
  line-height:1.8;
  margin:0;
}

.mv-title,
.mv-catch{
  text-shadow:
    1px 1px 0 #fff,
   -1px 1px 0 #fff,
    1px -1px 0 #fff,
   -1px -1px 0 #fff,
    1px 0 0 #fff,
   -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
}

.mv-person{
  position:absolute;
  inset:0;
  z-index:1;
}

.mv-person img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

main{padding:0;}

/* =============================================
   基本情報テーブル
============================================= */
.table-scroll{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.compare-table{
  width:100%;
  border-collapse:collapse;
  font-size:.85rem;
  margin-bottom:24px;
}

.compare-table th,
.compare-table td{
  padding:10px 14px;
  border:1px solid var(--color-border);
  vertical-align:middle;
}

.compare-table th{
  background:var(--color-main);
  color:#fff;
  font-weight:700;
  text-align:center;
}

.compare-table th:first-child{
  background:var(--color-dark);
}

.compare-table td:first-child{
  background:var(--color-bg);
  font-weight:700;
  text-align:left;
}

.compare-table tr:nth-child(even) td{
  background:#f9fdff;
}

/* =============================================
   サイドバー関連記事
============================================= */
.related-title{
  font-size:1rem;
  font-weight:900;
  color:var(--color-dark);
  margin-bottom:16px;
}

.related-card{
  display:flex;
  gap:12px;
  background:var(--color-bg);
  border-radius:var(--radius);
  padding:12px;
  border:1px solid var(--color-border);
  color:var(--color-text);
  transition:box-shadow var(--transition);
}

.related-card:hover{
  box-shadow:var(--shadow);
  color:var(--color-text);
}

.related-card img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:4px;
  flex-shrink:0;
}

.related-card-title{
  font-size:.82rem;
  font-weight:700;
  line-height:1.5;
}

/* =============================================
   商品イントロ
============================================= */
.vd-product-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:16px 0 30px;
  padding:20px 22px;
  background:#fff;
  border:1px solid #dbeaf2;
  border-radius:14px;
  box-shadow:0 4px 14px rgba(46,168,213,.06);
}

.vd-product-intro-main{
  min-width:0;
  flex:1;
}

.vd-product-brand{
  display:inline-block;
  margin-bottom:5px;
  color:#60737f;
  font-size:.82rem;
  font-weight:700;
}

.vd-product-intro-title{
  margin:0 0 8px;
  color:#0a2d4a;
  font-size:1.2rem;
  line-height:1.45;
  font-weight:900;
}

.vd-product-intro p{
  margin:0;
}

.vd-product-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex:0 0 auto;
}

/* =============================================
   購入ボタン
============================================= */
.vd-affiliate-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.vd-buy-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:9px 18px;
  background:#1677b8;
  color:#fff!important;
  text-decoration:none;
  font-weight:700;
  border-radius:8px;
  transition:opacity .2s, transform .2s;
}

.vd-buy-btn:hover{
  color:#fff!important;
  opacity:.88;
  transform:translateY(-1px);
}

/* =============================================
   商品情報カード
============================================= */
.vd-product-table th{
  width:32%;
  white-space:nowrap;
}

.vd-choice-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:16px 0 24px;
}

.vd-choice-card{
  border:1px solid #dfe8ed;
  border-radius:12px;
  padding:15px;
  background:#fff;
}

.vd-choice-card strong{
  display:block;
  margin-bottom:5px;
}

.vd-choice-card p{
  margin:0;
}

.vd-affiliate-box{
  margin:26px 0;
  padding:18px;
  border:1px solid #d9e7ee;
  border-radius:14px;
  background:#f7fbfd;
}

.vd-affiliate-box>strong{
  font-size:1.08rem;
}

/* =============================================
   Responsive
============================================= */
@media (min-width:901px) and (max-width:1366px){
  .mv{
    height:320px;
  }

  .mv-title,
  .mv-subtitle,
  .mv-catch{
    left:8%;
  }

  .mv-title{
    top:27%;
    font-size:2.1rem;
  }

  .mv-catch{
    top:45%;
    width:500px;
  }

  .vd-product-intro{
    gap:18px;
    padding:18px;
  }
}

@media (max-width:900px){
  .mv{
    height:230px;
  }

  .mv-subtitle{
    font-size:.75rem;
    padding:6px 18px 6px 10px;
  }

  .mv-title,
  .mv-subtitle,
  .mv-catch{
    left:5%;
  }

  .mv-title{
    top:30%;
    font-size:1.8rem;
  }

  .mv-catch{
    top:50%;
    width:400px;
    font-size:.82rem;
  }

  .vd-product-intro{
    align-items:flex-start;
    gap:14px;
  }

  .vd-product-buttons{
    flex-direction:column;
  }

  .vd-choice-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:680px){
  .mv{
    height:auto;
    min-height:0;
  }

  .mv-person{
    position:relative;
  }

  .mv-subtitle,
  .mv-title,
  .mv-catch{
    left:5%;
  }

  .mv-subtitle{
    top:8%;
    font-size:3vw;
  }

  .mv-title{
    top:20%;
    width:90%;
    white-space:normal;
    font-size:10vw;
    line-height:1.2;
  }

  .mv-catch{
    top:55%;
    width:45%;
    font-size:4vw;
  }

  .sbk{
    display:block;
  }

  .vd-product-intro{
    display:block;
    margin:14px 0 24px;
    padding:15px;
  }

  .vd-product-intro-title{
    font-size:1.1rem;
  }

  .vd-product-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    margin-top:12px;
  }

  .vd-product-buttons .vd-buy-btn{
    width:100%;
    min-width:0;
    padding:9px 8px;
    box-sizing:border-box;
    font-size:.86rem;
  }

  .vd-choice-grid{
    grid-template-columns:1fr;
  }

  .vd-affiliate-row{
    display:grid;
    grid-template-columns:1fr;
  }

  .vd-buy-btn{
    width:100%;
    box-sizing:border-box;
  }

  .vd-product-table th{
    width:auto;
  }
}
