/* =====================================================
   マガジン商品紹介記事のスタイル
   （.magazine-article 配下のみに適用）
   ===================================================== */

.magazine-article {
    line-height: 1.8;
    color: #222;
}

/* リード */
.magazine-lead {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 3em;
    padding: 1.5em 1.8em;
    background: linear-gradient(135deg, #fafafa 0%, #f2f2f2 100%);
    border-left: 4px solid #DC2424;
    border-radius: 0 8px 8px 0;
}

.magazine-lead p {
    margin: 0 0 1em;
}

.magazine-lead p:last-child {
    margin-bottom: 0;
}

/* 選び方セクション */
.magazine-criteria {
    margin: 3em 0 4em;
}

.magazine-criteria h2 {
    font-size: 1.5em;
    font-weight: 900;
    margin: 0 0 .6em;
    padding-bottom: .5em;
    border-bottom: 3px solid #111;
    letter-spacing: -.01em;
}

.magazine-criteria-intro {
    margin: 0 0 1.8em;
    color: #555;
}

.magazine-criteria-list {
    display: grid;
    gap: 1em;
}

.magazine-criteria-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1em;
    padding: 1.2em 1.4em;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: box-shadow .2s;
}

.magazine-criteria-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.magazine-criteria-num {
    font-family: Inter, sans-serif;
    font-weight: 900;
    font-size: 2em;
    color: #DC2424;
    line-height: 1;
    letter-spacing: -.05em;
}

.magazine-criteria-body h3 {
    font-size: 1.05em;
    font-weight: 700;
    margin: 0 0 .4em;
}

.magazine-criteria-body p {
    margin: 0;
    color: #555;
    font-size: .95em;
}

/* 商品セクション全体 */
.magazine-products {
    margin: 4em 0;
}

/* 個別商品カード */
.magazine-product {
    position: relative;
    margin: 2em 0 2em;
    padding: 2em 1.8em 1.2em;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.magazine-product-rank {
    position: absolute;
    top: -18px;
    left: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DC2424;
    color: #fff;
    font-family: Inter, sans-serif;
    font-weight: 900;
    font-size: 1.2em;
    border-radius: 50%;
}

.magazine-product-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-areas:
        "image header"
        "content content";
    column-gap: 1.8em;
    row-gap: 1.2em;
    align-items: start;
}

.magazine-product-image { grid-area: image; }
.magazine-product-header { grid-area: header; min-width: 0; }
.magazine-product-content { grid-area: content; min-width: 0; }

@media (max-width: 640px) {
    .magazine-product {
        padding: 2em 1.2em 1.4em;
    }
    .magazine-product-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "header"
            "content";
        row-gap: 1em;
    }
}

.magazine-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magazine-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

.magazine-product-image-placeholder {
    background: repeating-linear-gradient(45deg, #f6f6f6, #f6f6f6 10px, #fafafa 10px, #fafafa 20px);
}

.magazine-product-meta {
    display: flex;
    gap: .8em;
    flex-wrap: wrap;
    margin-bottom: .1em;
    font-size: .85em;
}

.magazine-product-brand {
    font-weight: 700;
    color: #888;
    letter-spacing: .02em;
}

.magazine-product-price {
    color: #DC2424;
    font-weight: 700;
}

.magazine-product-price::before {
    content: "目安価格 ";
    color: #888;
    font-weight: 400;
}

.magazine-product-name {
    font-size: 1.35em;
    font-weight: 900;
    margin: 0 0 .4em;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.magazine-product-headline {
    font-size: 1em;
    font-weight: 700;
    color: #DC2424;
    margin: 0;
    padding: 0;
}

.magazine-product-description {
    margin: 0 0 1.2em;
    color: #333;
    font-size: .96em;
}

.magazine-product-pros {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em;
    display: grid;
    gap: .4em;
}

.magazine-product-pros li {
    position: relative;
    padding-left: 1.6em;
    font-size: .95em;
    color: #444;
}

.magazine-product-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #DC2424;
    font-weight: 900;
}

.magazine-product-bestfor {
    margin: 0 0 1.2em;
    padding: .8em 1em;
    background: #fff8f8;
    border-radius: 6px;
    font-size: .92em;
    color: #555;
}

.magazine-product-bestfor strong {
    color: #DC2424;
}

/* レビュー動画（YouTube埋め込み） */
.magazine-product-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.2em 0 .3em;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.magazine-product-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.magazine-product-video-credit {
    margin: 0 0 .8em;
    font-size: .7em;
    color: #999;
    text-align: right;
}

.magazine-product-video-credit a {
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.magazine-product-video-credit a:hover {
    color: #DC2424;
}

/* 目安金額（ボタン直上） */
.magazine-product-price-note {
    margin: 1.2em 0 .5em;
    font-size: 1em;
    color: #666;
}

.magazine-product-price-note strong {
    color: #DC2424;
    font-size: 1.35em;
    font-weight: 900;
    margin-left: .3em;
}

/* 購入ボタン */
.magazine-product-buttons {
    display: flex;
    gap: .8em;
    flex-wrap: wrap;
    margin-top: .4em;
}

.magazine-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9em 1em;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95em;
    text-decoration: none;
    text-align: center;
    transition: transform .1s ease, box-shadow .2s ease, opacity .2s;
    flex: 1 1 0;
    width: 0;
    min-width: 0;
}

/* PCのみボタンを大きめに */
@media (min-width: 641px) {
    .magazine-btn {
        padding: 1.1em 1em;
        font-size: 18px;
    }
}

/* SPはボタンを縦並びに */
@media (max-width: 640px) {
    .magazine-product-buttons {
        flex-direction: column;
    }
    .magazine-btn {
        flex: 1 1 auto;
        width: auto;
    }
}

.magazine-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    opacity: .95;
    text-decoration: none;
}

.magazine-btn:active {
    transform: translateY(0);
}

.magazine-btn-amazon {
    background: linear-gradient(180deg, #FFB84D 0%, #FF9900 100%);
    color: #111;
    border: 1px solid #E88B00;
}

.magazine-btn-rakuten {
    background: linear-gradient(180deg, #DB2020 0%, #BF0000 100%);
    color: #fff;
    border: 1px solid #950000;
}

/* まとめ */
.magazine-summary {
    margin: 4em 0 2em;
    padding: 2em 2em;
    background: #fff8f8;
    color: #222;
    border-left: 6px solid #DC2424;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.magazine-summary h2 {
    color: #DC2424;
    font-size: 1.4em;
    font-weight: 900;
    margin: 0 0 .8em;
    letter-spacing: .02em;
    padding-bottom: .5em;
    border-bottom: 2px solid #f5d8d8;
}

.magazine-summary p {
    margin: 0;
    color: #333;
    line-height: 1.9;
}
