/**
 * MakeShop 商品詳細ページ用 CSS（ds- ブロック用）
 *
 * 使い方:
 * 1. このファイルをMakeShopのファイル管理などにアップロード
 * 2. 商品詳細のHTMLで以下を追加:
 *    <link href="アップロードしたURL/makeshop-product-detail.css" rel="stylesheet">
 * 3. 商品ページ作成で出力したHTML（ds- クラス）を本文に貼る
 *
 * モバイルファースト → 768px以上でPC用スタイルに上書き
 */

/* ========== モバイル（デフォルト） ========== */
.ds-al-l {
    text-align: left;
}

.ds-al-c {
    text-align: center;
}

.ds-al-r {
    text-align: right;
}

.ds-h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 34px;
    padding-top: 20px;
}

.ds-h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.ds-h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 8px 0;
}

.ds-h5 {
    font-size: 14px;
    font-weight: bold;
    margin: 6px 0;
}

.ds-h6 {
    font-size: 12px;
    font-weight: bold;
    margin: 4px 0;
}

.ds-txt {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 15px;
}

.ds-img {
    margin: 12px 0;
    text-align: center;
}

.ds-img img {
    max-width: 100%;
    height: auto;
}

/* 画像ブロック（複数画像・グリッド） */
.ds-imggrid {
    margin: 12px 0;
    display: grid;
    gap: 12px;
}
.ds-imggrid-sp1 {
    grid-template-columns: 1fr;
}
.ds-imggrid-sp2 {
    grid-template-columns: repeat(2, 1fr);
}
.ds-imggrid-i {
    overflow: hidden;
}
.ds-imggrid-i img {
    width: 100%;
    height: auto;
    display: block;
}

/* 背景画像ブロック（スマホでぼやけ対策: GPUレイヤー化で描画品質を維持） */
.ds-bg {
    position: relative;
    min-height: 160px;
    /* margin: 12px 0; */
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #fff;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ds-bg.ds-bg-wc {
    width: 100%;
    box-sizing: border-box;
}

.ds-bg.ds-bg-wf {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

.ds-bg .ds-bg-ov {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.ds-bg .ds-bg-c {
    position: absolute;
    max-width: 85%;
    padding: 16px;
    z-index: 2;
}

.ds-bg.ds-bg-tl .ds-bg-c {
    top: 0;
    left: 0;
}

.ds-bg.ds-bg-tr .ds-bg-c {
    top: 0;
    right: 0;
}

.ds-bg.ds-bg-bl .ds-bg-c {
    bottom: 0;
    left: 0;
}

.ds-bg.ds-bg-br .ds-bg-c {
    bottom: 0;
    right: 0;
}

.ds-bg.ds-bg-tr .ds-bg-tt,
.ds-bg.ds-bg-br .ds-bg-tt,
.ds-bg.ds-bg-tr .ds-bg-tx,
.ds-bg.ds-bg-br .ds-bg-tx {
    text-align: right;
}

.ds-bg-tt {
    margin: 0 0 10px 0;
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 0.05em;
    display: block;
}

.ds-bg-tx {
    line-height: 1.6;
    font-size: 14px;
    display: block;
}

/* サイズ（画像 + テキスト） */
.ds-2c {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 30px 0;
    align-items: stretch;
}

.ds-2c-i {
    flex: 0 0 auto;
}

.ds-2c-i img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.ds-2c-t {
    flex: 0 0 auto;
    min-width: 0;
    line-height: 1.6;
    font-size: 14px;
}

.ds-2c-tt {
    margin: 0 0 14px 0;
    font-size: 21px;
    font-weight: bold;
}

.ds-2c-tx {
    line-height: 1.6;
    font-size: 14px;
}

/* 区切り線（画面いっぱい・線の種類・色・太さはインラインで指定） */
.ds-div {
    height: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-sizing: border-box;
    margin: 16px 0;
}

.ds-div-wf {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ポイントブロック（カード縦並び: 画像→タイトル→テキスト、横2列） */
.ds-pt {
    margin: 16px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ds-pt-i {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.ds-pt-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.ds-pt-tt {
    margin: 0;
    padding: 14px 16px 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

.ds-pt-tx {
    padding: 0 16px 16px;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    color: #444;
}

.ds-nc {
    margin: 12px 0;
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.ds-nc-ic {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

.ds-nc-tt {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: bold;
}

.ds-nc-tx {
    line-height: 1.6;
    font-size: 14px;
}

.ds-ft {
    margin: 12px 0;
    background: #f5f5f5;
    padding: 16px;
}

.ds-ft-t {
    margin-bottom: 16px;
}

.ds-ft-tt {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 6px 0;
    color: #333;
}

.ds-ft-b {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.ds-ft-m {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-ft-l {
    width: 100%;
}

.ds-ft-l img,
.ds-ft-l video {
    width: 100%;
    height: auto;
    display: block;
}

.ds-ft-r {
    width: 100%;
}

.ds-ft-r img,
.ds-ft-r video {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== PC（768px以上） ========== */
@media (min-width: 768px) {
    .ds-h2 {
        font-size: 39px;
        font-weight: normal;
        margin-bottom: 55px;
        padding-top: 20px;
    }

    .ds-h3 {
        font-size: 20px;
        font-weight: bold;
        margin: 14px 0;
    }

    .ds-h4 {
        font-size: 18px;
        font-weight: bold;
        margin: 12px 0;
    }

    .ds-h5 {
        font-size: 16px;
        font-weight: bold;
        margin: 10px 0;
    }

    .ds-h6 {
        font-size: 14px;
        font-weight: bold;
        margin: 8px 0;
    }

    .ds-txt {
        margin: 12px 0;
        line-height: 1.6;
        font-size: 16px;
    }

    .ds-img {
        margin: 16px 0;
        text-align: center;
    }

    /* 画像ブロック（複数画像）PC列数 */
    .ds-imggrid {
        margin: 24px 0;
        gap: 16px;
    }
    .ds-imggrid-pc1 { grid-template-columns: repeat(1, 1fr); }
    .ds-imggrid-pc2 { grid-template-columns: repeat(2, 1fr); }
    .ds-imggrid-pc3 { grid-template-columns: repeat(3, 1fr); }
    .ds-imggrid-pc4 { grid-template-columns: repeat(4, 1fr); }
    .ds-imggrid-pc5 { grid-template-columns: repeat(5, 1fr); }
    .ds-imggrid-pc6 { grid-template-columns: repeat(6, 1fr); }
    .ds-imggrid-pc7 { grid-template-columns: repeat(7, 1fr); }
    .ds-imggrid-pc8 { grid-template-columns: repeat(8, 1fr); }
    .ds-imggrid-pc9 { grid-template-columns: repeat(9, 1fr); }
    .ds-imggrid-pc10 { grid-template-columns: repeat(10, 1fr); }
    .ds-imggrid-pc11 { grid-template-columns: repeat(11, 1fr); }
    .ds-imggrid-pc12 { grid-template-columns: repeat(12, 1fr); }

    .ds-bg {
        position: relative;
        min-height: 200px;
        background-size: cover;
        background-position: center;
        color: #fff;
        margin-bottom: 25px;
    }

    .ds-bg .ds-bg-c {
        position: absolute;
        max-width: 80%;
        padding: 24px;
        z-index: 2;
    }

    .ds-bg-tt {
        margin: 0 0 12px 0;
        font-size: 3.6rem;
        font-weight: bold;
        line-height: 1.1;
        letter-spacing: 0.05em;
        display: block;
    }

    .ds-bg-tx {
        line-height: 1.6;
        display: block;
    }

    /* サイズ（PC: 横並び・テキスト縦中央） */
    .ds-2c {
        display: flex;
        gap: 20px;
        margin: 16px 0 40px 0;
        align-items: center;
    }

    .ds-2c-l {
        flex-direction: row;
    }

    .ds-2c-r {
        flex-direction: row-reverse;
    }

    .ds-2c-i {
        flex: 1 1 0;
        min-width: 0;
    }

    .ds-2c-i img {
        border-radius: 6px;
    }

    .ds-2c-t {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.6;
        font-size: 16px;
    }

    .ds-2c-tt {
        margin: 0 0 16px 0;
        font-size: 21px;
        font-weight: bold;
    }

    .ds-2c-tx {
        line-height: 1.6;
        font-size: 16px;
    }

    /* ポイントブロック（PC: 横3列カード） */
    .ds-pt {
        margin: 24px 0;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .ds-pt-i {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.2s ease;
    }

    .ds-pt-i:hover {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    }

    .ds-pt-img {
        aspect-ratio: 16 / 9;
        object-position: center;
    }

    .ds-pt-tt {
        padding: 18px 20px 8px;
        font-size: 17px;
        font-weight: 600;
    }

    .ds-pt-tx {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    .ds-nc {
        margin: 16px 0;
        padding: 16px;
        background-color: #fff3cd;
        border: 1px solid #ffc107;
        border-radius: 4px;
    }

    .ds-nc-ic {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        vertical-align: middle;
    }

    .ds-nc-tt {
        margin: 0 0 8px 0;
        font-size: 16px;
        font-weight: bold;
    }

    .ds-ft {
        margin: 16px 0;
        background: #f5f5f5;
        padding: 24px;
    }

    .ds-ft-t {
        margin-bottom: 20px;
    }

    .ds-ft-tt {
        font-size: 22px;
        font-weight: bold;
        margin: 0 0 8px 0;
        color: #333;
    }

    .ds-ft-b {
        font-size: 14px;
        line-height: 1.7;
        color: #555;
    }

    .ds-ft-m {
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    .ds-ft-l {
        flex: 0 0 50%;
    }

    .ds-ft-l img,
    .ds-ft-l video {
        width: 100%;
        height: auto;
        display: block;
    }

    .ds-ft-r {
        flex: 1;
    }

    .ds-ft-r img,
    .ds-ft-r video {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* 関連商品ブロック */
    .ds-linkimg {
        margin: 24px 0;
        display: grid;
        gap: 16px;
    }
    .ds-linkimg-c1 { grid-template-columns: repeat(1, 1fr); }
    .ds-linkimg-c2 { grid-template-columns: repeat(2, 1fr); }
    .ds-linkimg-c3 { grid-template-columns: repeat(3, 1fr); }
    .ds-linkimg-c4 { grid-template-columns: repeat(4, 1fr); }
    .ds-linkimg-c5 { grid-template-columns: repeat(5, 1fr); }
    .ds-linkimg-c6 { grid-template-columns: repeat(6, 1fr); }
    .ds-linkimg-i {
        overflow: hidden;
    }
    .ds-linkimg-i a {
        display: block;
    }
    .ds-linkimg-i img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 767px) {
    .ds-txt {
        text-align: left;
    }

    .ds-bg.ds-bg-bl.ds-bg-wf {
        min-height: 600px !important;
        margin-bottom: 25px;
    }

    .arbox01,
    .arbox02,
    .arbox03,
    .arbox04 {
        padding: 0;
    }

    /* 関連商品ブロック（スマホは2列まで） */
    .ds-linkimg {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}