@charset "utf-8";

/* ================================================= */
/* 1. Reset & Base Settings */
/* ================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");

*,
::before,
::after {
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", 'メイリオ', Meiryo, sans-serif !important;
    font-weight: 400;
    line-height: 1.8;
}

@media screen and (min-width:961px) {
    body {
        font-size: 15px;
    }
}

img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================= */
/* 2. Layout (Header, Wrapper) */
/* ================================================= */
header {
    background-color: #182d7c;
    padding: 8px;
}

.njLpWrap {
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
}

@media screen and (min-width:961px) {
    .njLpWrap {
        margin-top: 40px;
    }
}

/* ================================================= */
/* 3. ミラーリング完全攻略特集ページ用 カスタムスタイル */
/* ================================================= */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.mirroring-container {
    max-width: 900px !important;
    margin: 0 auto;
    width: 100%;
}

/* メイン画像 */
.mirroring-hero img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

/* 目次ナビゲーション全体の背景 */
.mirroring-section-nav {
    background: linear-gradient(135deg, #8C4FE2 0%, #8C4FE2 100%);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.mirroring-section-nav ul {
    display: flex;
    justify-content: space-between;
    gap: 10px !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mirroring-section-nav li {
    flex: 1;
    margin: 0;
    padding: 0;
}

/* 目次ボタンをネオンパープル＆ホバーでピンク発光に */
.mirroring-btn-purple {
    background-color: #2a0f4e !important;
    color: #ffffff !important;
    border: 2px solid #56229e !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out !important;
    height: 100%;
    padding: 14px 10px !important;
    font-weight: bold;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 15px;
    line-height: 1.3;
}

/* ボタンにマウスを乗せたとき（スマホはタップ時）の設定 */
.mirroring-section-nav ul li a.mirroring-btn-purple:hover,
.mirroring-section-nav ul li a.mirroring-btn-purple:active,
.mirroring-section-nav ul li a.mirroring-btn-purple:focus {
    background-color: #ff007f !important;
    background: #ff007f !important;
    border-color: #ff66b2 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.8) !important;
    text-decoration: none !important;
}

/* 各セクションの大見出し（背景色） */
.mirroring-title-main-btn {
    background-color: #6F1CBC !important;
    color: #ffffff !important;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 20px;
    line-height: 1.2;
    border: 2px solid #56229e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 薄紫のイントロボックス設定 */
.mirror-intro-box {
    background-color: #E8DEF6 !important; 
    border-left: 5px solid #ff007f !important;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    text-align: left;
    color: #222222 !important; /* ボックス内のみテキストカラーを黒に */
}

/* ボックス内の赤文字が消えないように詳細度を強化 */
.mirror-intro-box p span.mirror-alert-text {
    color: #dd2c00 !important;
}

/* 汎用の目立たせたい赤文字 */
.mirror-alert-text {
    color: #dd2c00 !important;
    font-weight: bold;
}

/* テキストの蛍光ペン風マーカー（イエローグリーン） */
.mirror-highlight {
    background: linear-gradient(transparent 50%, #E5FF00 50%) !important;
    font-weight: bold;
    display: inline;
}

/* 各章の中見出し（薄い紫ベース・ピンク線） */
.mirror-sub-title {
    font-size: 1.2rem;
    background-color: #EFEBF4 !important; 
    border-left: 4px solid #FF7FBF !important;
    color: #25093f !important; /* 明るい背景に合わせて見出し文字を濃い紫に */
    padding: 6px 12px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: left;
    border-radius: 0 4px 4px 0;
}

/* 解説文全体の左寄せ設定 */
.mirror-text-left {
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.8;
}

.mirroring-section-head {
    margin-bottom: 20px;
}

.mirroring-lead {
    color: #ffffff;
    padding: 6px;
    margin: 0;
    display: block;
}

/* スマホ表示（767px以下）のときのボタンの隙間とバランスを微調整 */
@media (max-width: 767px) {
    .mirroring-section-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px !important;
        padding: 0;
    }
    .mirroring-section-nav li {
        flex: 0 0 calc(50% - 4px);
        list-style: none;
    }
    .mirroring-btn-purple {
        width: 100% !important;
        padding: 12px 5px !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    .mirroring-title-main-btn {
        width: 100% !important;
        padding: 12px 10px;
        font-size: 16px !important;
        display: flex !important;
        box-sizing: border-box;
    }
    .text-center.mb-4 {
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ================================================= */
/* 4. どこでもカート (productslist) & アイテム内のスタイル */
/* ================================================= */
.productslist * {
    box-sizing: border-box;
}

.productslist {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5px;
}

.cartanywhere {
    width: 100%;
    margin: 0 0 1.5rem;
    display: block;
}

/* ✨ 商品カードの背景を綺麗な「白」に変更 */
.productslist ul {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #e0d5f0 !important; /* 枠線を淡い紫にして上品に */
    background: #ffffff !important; /* 白背景 */
    height: 100%;
    padding: 1rem;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* 高級感を出す軽いシャドウ */
    border-radius: 8px;
}

.productslist ul li:nth-child(1) {
    flex: 0 0 50%;
    padding-right: 10px;
}

.productslist ul li:nth-child(1) img {
    width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

.productslist ul li:nth-child(2) {
    flex: 0 0 50%;
    text-align: left;
}

.productslist ul li:nth-child(n+3) {
    flex: 0 0 100%;
    margin-top: 10px;
}

.productslist p {
    background-color: #f4eefd; /* 白背景に合う淡い紫に変更 */
    color: #25093f;
    font-size: 0.8rem;
    padding: 0.5rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

/* ✨ 白背景に合わせて、商品名のテキスト色をハッキリ読める「濃いグレー（黒）」に変更 */
.cartprodname {
    font-size: 0.85rem;
    color: #222222 !important;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
}

.cartprice {
    font-size: 1.4rem;
    color: #ff0000;
    font-weight: bold;
    text-align: right;
    display: block;
}

/* ✨ 白背景に合わせて、円の文字色を「黒」に変更 */
.yencolor {
    color: #222222 !important;
    font-size: 0.75rem;
    margin-left: 2px;
}

.cartnouki {
    font-size: 0.8rem;
    color: #27c10d;
}

.cartcoupon {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #d80c39;
    color: #ffffff;
    font-size: 1.0rem;
    font-weight: bold;
    padding: 4px 0;
    box-sizing: border-box;
}

.cartcoupon:empty,
.cartcoupon:has(> .result-data:empty) {
    display: none !important;
}

.pointkangen {
    font-size: 0.8rem;
    font-weight: normal;
    color: #444444; /* 白背景で見えやすい色に調整 */
}

.pointkangen::before {
    content: "\f51e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.25em;
    color: rgb(250, 202, 10);
}

/* --- タブレットサイズ (768px以上): 2列表示 --- */
@media all and (min-width: 768px) {
    .cartanywhere {
        display: flex;
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        margin-bottom: 2rem;
    }

    /* 💡 メディアクエリ内の白背景上書き漏れ対策 */
    .productslist ul {
        display: block;
        padding: 0;
        border: 1px solid #e0d5f0 !important;
        overflow: hidden;
        background: #ffffff !important; /* ここもしっかり白に上書き */
    }

    .productslist ul li:nth-child(1) {
        width: 100%;
        padding: 0;
    }

    .productslist ul li:nth-child(1) img {
        width: 100% !important;
        height: auto;
        margin: 0;
        display: block;
    }

    .productslist ul li:nth-child(2) {
        width: 100%;
        padding: 15px;
        text-align: left;
    }

    .cartprice {
        font-size: 1.6rem;
        text-align: right;
    }
}

/* --- PCサイズ (1024px以上): 3列表示 --- */
@media all and (min-width: 1024px) {
    article {
        max-width: 1100px;
    }

    .cartanywhere {
        flex: 0 0 calc(25% - 14px);
        max-width: calc(25% - 14px);
        margin: 0 7px 2rem;
    }
}

/* ================================================= */
/* 5. その他共通パーツ（ページトップ・フッター） */
/* ================================================= */
#pageTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#pageTop a {
    display: block;
    padding: 8px;
    border-radius: 60px;
    width: 70px;
    height: 70px;
    background-color: #9FD6D2;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

body footer.mt-5 {
    background-color: #182d7c !important;
    color: #ffffff !important;
    border-top: 1px solid #3d1b6d;
    margin: 0 !important;
}

body footer.mt-5 div {
    padding: 20px 0 !important;
}

body footer.mt-5 small {
    color: #fff !important;
}