/* ============================================================
   MP-1699 商品詳細 V2 自社追加分
   デモ styles.css / products.css のベースには無いセレクタ
   (PC/SP ヘッダー + フルスクリーンナビ + productV2Parts インラインスタイル抽出)
   ============================================================ */

/* ---- 既存 #feature_img / #modal_cart_added モーダル (HTML インラインから移行) ---- */
.modal.feature_img .modal-content { background: none; }
.modal.feature_img #img_box { border-radius: 14px; }
.modal.modal-cart-added .modal-dialog { max-width: 420px; }

/* =============================================   PC ヘッダー   ============================================= */
#header_pc { background-color: white; }
#head1 { display: block; margin: 0; padding: 0 15px; }#head1 .in { position: relative; width: 980px; height: 44px; margin: 0 auto; padding: 0; }#head1 .in .logo { position: absolute; top: 13px; left: 0; width: 297px; height: 22px; text-indent: 0; background: none; }#head1 .in .logo img:last-child { height: 18px; width: auto; margin-top: 2px; }#head1 .in .logo a { display: inline; width: 214px; height: 20px; }#head1 .in .navi { position: absolute; top: 12px; right: 0px; text-align: left; overflow: auto; }#head1 .in .navi ul { margin: 0; padding: 0; float: right; }#head1 .in .navi ul li { margin: 0 0 0 20px; padding: 0; list-style-type: none; float: left; line-height: 28px; }#head1 .in .navi ul li a { padding-left: 0; color: #000; letter-spacing: 0.15em; font-size: 13px; letter-spacing: 0.05em; text-decoration: none; }#head1 .in .navi ul li a:hover { color: #0066CC; }#head1 .in .navi ul li.lang { padding-left: 23px; background: url(/common3/images/flag_uk.png) no-repeat left 11px; }#head1 .in .parent { position: absolute; top: 5px; right: 0; width: 230px; text-align: right; }#head1 .in .parent img { height: 40px; }
#head2 { display: block; margin: 0; height: 48px; border-bottom: 1px solid #E6E6E8; padding: 0 15px; }#head2 .in { width: 980px; height: 35px; margin: 0 auto; }#head2 .in ul { margin: 0; padding: 2px 0 0; }#head2 .in ul li { list-style-type: none; }#head2 .in ul li a { display: block; float: left; line-height: 31px; width: calc(100%/9 - 6px); margin-right: 6px; padding: 0; overflow: hidden; font-size: 14px; text-align: center; font-weight: 500; border-bottom: 3px solid #ddd; color: black; text-decoration: none; }#head2 .in ul li a:hover { border-bottom: 3px solid #0066CC; color: #0066CC; }#head2 .in ul li a.focus { border-bottom: 3px solid #0066CC; color: #0066CC; }#head2 .in ul li#gm_biz a { float: right; width: 126px; margin-right: 0; }#head2 .in ul li#gm_rakuten a { width: calc(100%/9); }#head2 .in ul li#gm_cloud a { float: right; margin-right: 0; }
#head3 { display: block; margin: 0; border-bottom: 1px solid #E6E6E8; }#head3 .in { width: 980px; margin: 0 auto; text-align: center; }#head3 .in ul { margin: 0; padding: 2px 0; }#head3 .in ul li { margin: 0 12px; padding: 0; display: inline; list-style-type: none; font-size: 13px; font-weight: bold; }#head3 .in ul li a { line-height: 38px; color: black; font-size: 14px; font-weight: 500; text-decoration: none; }#head3 .in ul li a:hover { color: #0066CC; }#head3 .in ul li.btn { margin: 0 5px; }#head3 .in ul li.btn a { line-height: 1.1; width: 130px; text-decoration: none; display: inline-block; padding: 7px 0; color: white; border-radius: 4px; background-color: #E11939; }#head3 .in ul li.btn a:hover { opacity: 0.8; }
@media (min-width: 1021px) {  #header_sp { display: none !important; }  #sp-nav-overlay { display: none !important; }}@media (max-width: 1020px) {  #header_pc { display: none; }}

/* =============================================   SP ヘッダーバー   ============================================= */
#header_sp {  display: none;  position: fixed;  top: 0;  left: 0;  width: 100%;  height: 52px;  z-index: 9000;  background: rgba(255, 255, 255, 0.95);  backdrop-filter: blur(10px);  -webkit-backdrop-filter: blur(10px);  border-bottom: 1px solid #e8e8e8;}
@media (max-width: 1020px) {  #header_sp { display: flex; }  #page { padding-top: 52px; }}
#header_sp .sp-header-inner {  display: flex;  align-items: center;  justify-content: space-between;  width: 100%;  height: 100%;  padding: 0 4px;}
#sp-hamburger {  display: flex;  flex-direction: column;  justify-content: center;  align-items: center;  width: 44px;  height: 44px;  padding: 10px;  background: none;  border: none;  cursor: pointer;  gap: 5px;  flex-shrink: 0;  border-radius: 8px;  transition: background 0.2s;}#sp-hamburger:hover { background: #f5f5f5; }
#sp-hamburger .bar {  display: block;  width: 22px;  height: 1.5px;  background: #111;  border-radius: 2px;  transform-origin: center;  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),              opacity 0.25s ease,              width 0.3s ease;}
#sp-hamburger.is-open .bar:nth-child(1) {  transform: translateY(6.5px) rotate(45deg);}#sp-hamburger.is-open .bar:nth-child(2) {  opacity: 0;  width: 0;}#sp-hamburger.is-open .bar:nth-child(3) {  transform: translateY(-6.5px) rotate(-45deg);}
#sp-logo {  display: flex;  flex-direction: column;  align-items: center;  justify-content: center;  gap: 2px;  text-decoration: none;  position: absolute;  left: 50%;  transform: translateX(-50%);}#sp-logo img.logo-main { height: 16px; width: auto; }#sp-logo img.logo-sub  { height: 10px; width: auto; }
#sp-cart {  display: flex;  align-items: center;  justify-content: center;  width: 44px;  height: 44px;  text-decoration: none;  color: #111;  border-radius: 8px;  transition: background 0.2s;  flex-shrink: 0;  position: relative;}#sp-cart:hover { background: #f5f5f5; }#sp-cart svg { width: 22px; height: 22px; }

/* =============================================   フルスクリーン ナビゲーション オーバーレイ   ============================================= */
#sp-nav-overlay {  position: fixed;  top: 0;  left: 0;  width: 100%;  height: 100%;  z-index: 8999;  background: #fff;  display: flex;  flex-direction: column;  overflow-y: auto;  transform: translateY(-100%);  opacity: 0;  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),              opacity 0.35s ease;  pointer-events: none;}
#sp-nav-overlay.is-open {  transform: translateY(0);  opacity: 1;  pointer-events: auto;}
#sp-nav-overlay .overlay-inner {  padding: 72px 0 60px; display: flex;  flex-direction: column;  min-height: 100%;}
.sp-nav-carrier {  padding: 0 20px 24px;  border-bottom: 1px solid #f0f0f0;}.sp-nav-carrier-label {  font-size: 11px;  color: #aaa;  letter-spacing: 0.1em;  font-weight: 600;  margin-bottom: 12px;  text-transform: uppercase;}.sp-nav-carrier-grid {  display: grid;  grid-template-columns: repeat(3, 1fr);  gap: 8px;}.sp-nav-carrier-item {  display: flex;  align-items: center;  justify-content: center;  height: 40px;  background: #f7f7f7;  border-radius: 8px;  text-decoration: none;  color: #222;  font-size: 13px;  font-weight: 500;  transition: background 0.15s, color 0.15s;}.sp-nav-carrier-item:hover,.sp-nav-carrier-item:active { background: #e8e8e8; }
.sp-nav-main {  list-style: none;  margin: 0;  padding: 0;}.sp-nav-main li a {  display: flex;  align-items: center;  justify-content: space-between;  padding: 16px 24px;  font-size: 16px;  font-weight: 600;  color: #111;  text-decoration: none;  border-bottom: 1px solid #f0f0f0;  transition: background 0.15s;}.sp-nav-main li a:hover,.sp-nav-main li a:active { background: #fafafa; }.sp-nav-main li a .nav-arrow {  color: #ccc;  font-size: 14px;}
.sp-nav-sub {  list-style: none;  margin: 0;  padding: 8px 24px 16px;  border-bottom: 1px solid #f0f0f0;  background: #fafafa;}.sp-nav-sub-label {  font-size: 11px;  color: #aaa;  letter-spacing: 0.1em;  font-weight: 600;  padding: 0 0 8px;  text-transform: uppercase;}.sp-nav-sub li a {  display: flex;  align-items: center;  gap: 8px;  padding: 10px 0;  font-size: 14px;  color: #333;  text-decoration: none;  border-bottom: 1px solid #efefef;}.sp-nav-sub li:last-child a { border-bottom: none; }.sp-nav-sub li a:hover { color: #0066CC; }.sp-nav-sub li a i { width: 16px; color: #bbb; font-size: 12px; }
.sp-nav-buttons {  padding: 20px 24px;  display: flex;  flex-direction: column;  gap: 10px;}.sp-nav-btn {  display: flex;  align-items: center;  justify-content: center;  height: 50px;  border-radius: 10px;  font-size: 15px;  font-weight: 700;  text-decoration: none;  transition: opacity 0.2s;}.sp-nav-btn:active { opacity: 0.8; }.sp-nav-btn.primary { background: #E11939; color: white; }.sp-nav-btn.secondary { background: #f0f0f0; color: #333; }
.sp-nav-footer {  margin-top: auto;  padding: 20px 24px 40px;  border-top: 1px solid #f0f0f0;  display: flex;  flex-wrap: wrap;  gap: 4px 20px;}.sp-nav-footer a {  font-size: 12px;  color: #888;  text-decoration: none;}.sp-nav-footer a:hover { color: #333; }
#sp-nav-overlay .overlay-inner > * {  opacity: 0;  transform: translateY(12px);  transition: opacity 0.3s ease, transform 0.3s ease;}#sp-nav-overlay.is-open .overlay-inner > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.12s; }#sp-nav-overlay.is-open .overlay-inner > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.17s; }#sp-nav-overlay.is-open .overlay-inner > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.22s; }#sp-nav-overlay.is-open .overlay-inner > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.27s; }#sp-nav-overlay.is-open .overlay-inner > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }#sp-nav-overlay.is-open .overlay-inner > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.37s; }
body.sp-nav-open { overflow: hidden; }

/* ================================================================
   productV2Parts.html — extracted inline styles (MP-1699)
   ================================================================ */

/* Debug caption shown under each product etc-image (URL text) */
.etcimage-caption {
    font-size: 11px;
    color: #0d6efd;
    word-break: break-all;
    text-align: center;
    margin-top: 5px;
    line-height: 1.2;
}

/* Placeholder shown when no etc-images are registered */
.no-images-placeholder {
    padding: 50px 0;
    text-align: center;
    background: #f5f5f7;
    border-radius: 14px;
    color: #999;
}

/* SALE / NEW badge */
.product-badge {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 6px;
    margin-right: 5px;
}

/* Member type (private / corporation) switch container */
.member-type-switch {
    border: 1px solid #eee;
    background: #f5f5f7;
}

/* Fee — original (strikethrough) price */
.fee-original-price {
    color: #666;
    font-size: 14px;
    margin-right: 4px;
}

/* Fee — sale price (red) */
.fee-sale-price { color: #dc3545; }
.fee-sale-currency {
    color: #dc3545;
    font-size: 14px;
}

/* MP-1714 ②：Fee — normal price (no sale)：継承色（通常は黒）。fee-sale-* と同サイズ感を維持。 */
.fee-price { /* color は親要素から継承 */ }
.fee-currency {
    /* color は親要素から継承 */
    font-size: 14px;
}

/* Discount rate message (e.g. "30% OFF") */
.discount-rate-message {
    color: #dc3545;
    font-size: 12px;
    font-weight: 400;
}

/* Limit hint under amount select */
#limit-hint {
    font-size: 12px;
    color: #999;
}

/* Out-of-stock notice box */
.out-of-stock-msg {
    text-align: center;
    color: red;
    font-weight: bold;
    padding: 20px 0;
    background: #fff3f3;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 会員種別不一致 notice box (1-6) */
.membertype-mismatch-msg {
    text-align: center;
    color: red;
    font-weight: bold;
    padding: 20px 0;
    background: #fff3f3;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Wide add-to-cart button */
.btn-add-cart-wide {
    margin-bottom: 15px;
    max-width: inherit;
    width: 100%;
}

/* MP-1699: 法人「11以上」自由入力オーバーレイ（cartV2と同視覚） */
.amount-free-input {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: .5rem;
    font-weight: 900;
    padding: 10px 20px;
    font-size: 20px;
    box-sizing: border-box;
}
