/* 長崎心泉堂 お供え特集 共通CSS：コマースクリエイターのデザインCSSへ追加 */
.ms-page,.ms-page *{box-sizing:border-box}
.ms-page{--main:#66577a;--dark:#493d59;--sub:#eee9f2;--bg:#faf8fb;--text:#332f35;--muted:#6f6872;--border:#ddd6e2;color:var(--text);font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;line-height:1.8;background:#fff}
.ms-page img{display:block;max-width:100%;height:auto}
.ms-page a{color:inherit;text-decoration:none}
.ms-container{width:min(calc(100% - 40px),1120px);margin:auto}
.ms-container--narrow{max-width:900px}
.ms-section{padding:72px 0}
.ms-section--soft{background:var(--bg)}
.ms-heading{text-align:center;margin:0 0 36px}
.ms-heading__en,
.ms-sp-heading>span{display:block;color:#9479a8;font:13px Georgia,serif;letter-spacing:.18em}
.ms-heading h2{margin:5px 0 0;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:34px;font-weight:500}
.ms-heading p{max-width:760px;margin:12px auto 0;color:var(--muted)}
.ms-button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:10px 28px;color:#fff!important;font-weight:700;background:var(--main);border:1px solid var(--main);border-radius:4px}
.ms-button:hover{opacity:.86}
.ms-button--full{width:100%}
.ms-button--outline{color:var(--main)!important;background:#fff}
.ms-center{text-align:center;margin:32px 0 0}
.ms-note{font-size:13px;color:var(--muted)}
.ms-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:3px 10px;
    margin-left:6px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
}

.ms-badge--shipping{
    background:#C89D4A;
    color:#fff;
}

.ms-badge--noshi{
    background:#7B5C9D;
    color:#fff;
}

.ms-badge--wrap{
    background:#5F7D5A;
    color:#fff;
}

/* PC */
.ms-page--pc .ms-hero{position:relative;min-height:520px;display:grid;align-items:center;overflow:hidden;background:#eee8f1}
.ms-page--pc .ms-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ms-page--pc .ms-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.65) 0%,
        rgba(255,255,255,.35) 38%,
        rgba(255,255,255,0) 65%
    );
}
.ms-page--pc .ms-hero__content{position:relative;z-index:1}
.ms-page--pc .ms-hero__box{max-width:620px;padding:42px 46px;background:rgba(255,255,255,.86);border:1px solid rgba(102,87,122,.18)}
.ms-hero__eyebrow{margin:0 0 8px;color:var(--main);font-size:14px;font-weight:700;letter-spacing:.1em}
.ms-page--pc h1{margin:0 0 16px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:46px;font-weight:500;line-height:1.45}
.ms-page--pc .ms-hero__lead{margin:0 0 24px}
.ms-anchor{padding:20px 0;border-bottom:1px solid var(--border)}
.ms-anchor__list{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;list-style:none;margin:0;padding:0}
.ms-anchor__list a{display:flex;min-height:54px;align-items:center;justify-content:center;padding:8px;background:var(--sub);color:var(--dark);font-size:14px;font-weight:700;border-radius:5px}
.ms-answer{max-width:920px;margin:auto;padding:30px 34px;background:var(--bg);border-left:5px solid var(--main)}.ms-answer h2{margin:0 0 10px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:26px;font-weight:500}
.ms-answer p{margin:0}
.ms-reasons{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.ms-reason{padding:28px 24px;background:#fff;border:1px solid var(--border);border-radius:10px}
.ms-reason__number{display:grid;place-items:center;width:42px;height:42px;color:#fff;background:var(--main);border-radius:50%}
.ms-reason h3{margin:14px 0 8px;font-size:20px}
.ms-reason p{margin:0;color:var(--muted)}.ms-scenes{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.ms-scene{padding:25px 28px;border:1px solid var(--border);border-radius:8px}
.ms-scene h3{margin:0 0 8px}
.ms-scene p{margin:0;color:var(--muted)}
.ms-products{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.ms-product{overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:10px}
.ms-product__image{display:block;aspect-ratio:1;overflow:hidden}
.ms-product__image img{width:100%;height:100%;object-fit:cover}
.ms-product__body{padding:22px}
.ms-product__tag{display:inline-block;margin:0 0 9px;padding:3px 10px;color:var(--main);font-size:12px;font-weight:700;background:var(--sub);border-radius:20px}
.ms-product h3{margin:0 0 8px;font-size:20px}
.ms-product__text{min-height:58px;margin:0;color:var(--muted);font-size:14px}
.ms-product__price{margin:15px 0}
.ms-product__price strong{font-size:24px}
.ms-noshi{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.ms-noshi h3{margin-top:0}
.ms-definition{margin:0;border-top:1px solid var(--border)}
.ms-definition div{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--border)}
.ms-definition dt,.ms-definition dd{margin:0;padding:12px}
.ms-definition dt{font-weight:700;background:var(--bg)}
.ms-faq details{background:#fff;border:1px solid var(--border);border-radius:7px}
.ms-faq details+details{margin-top:12px}
.ms-faq summary{position:relative;padding:18px 52px 18px 22px;font-weight:700;cursor:pointer}
.ms-faq summary:after{content:"＋";position:absolute;right:20px;color:var(--main)}
.ms-faq details[open] summary:after{content:"−"}
.ms-faq details>div{padding:0 22px 18px}
.ms-faq p{margin:0;color:var(--muted)}

/* スマートフォン */
.ms-page--sp{font-size:15px;padding-bottom:62px}
.ms-page--sp .ms-sp-hero img{width:100%}
.ms-sp-hero__body{padding:25px 20px 28px;text-align:center;background:#f8f5fa}
.ms-page--sp h1{margin:5px 0 12px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:29px;font-weight:500;line-height:1.45}
.ms-sp-hero__body>p:not(.ms-hero__eyebrow){margin:0 0 18px}
.ms-sp-anchor{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border)}
.ms-sp-anchor a{padding:13px 7px;text-align:center;font-size:13px;font-weight:700;background:#fff}
.ms-sp-section{padding:42px 18px}.ms-sp-heading{text-align:center;margin-bottom:24px}
.ms-sp-heading h2{margin:5px 0 0;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:25px;font-weight:500}
.ms-sp-heading p{margin:8px 0 0;color:var(--muted);font-size:13px}
.ms-sp-answer{padding:22px;background:var(--bg);border-top:3px solid var(--main)}
.ms-sp-answer h2{margin:0 0 10px;font-size:20px;line-height:1.55}
.ms-sp-answer p{margin:0}
.ms-sp-list article{display:flex;gap:14px;padding:19px 0;border-bottom:1px solid var(--border)}
.ms-sp-list article:first-child{padding-top:0}.ms-sp-list b{display:grid;flex:0 0 35px;height:35px;place-items:center;color:#fff;background:var(--main);border-radius:50%}
.ms-sp-list h3{margin:0 0 5px;font-size:17px}
.ms-sp-list p{margin:0;color:var(--muted);font-size:14px}
.ms-sp-scenes details{border-bottom:1px solid var(--border)}
.ms-sp-scenes summary{padding:15px 4px;font-weight:700}
.ms-sp-scenes p{margin:0;padding:0 4px 16px;color:var(--muted)}
.ms-sp-product{overflow:hidden;margin-bottom:38px;background:#fff;border:1px solid var(--border);border-radius:9px}
.ms-sp-product>a{display:block;aspect-ratio:1;overflow:hidden}
.ms-sp-product>a img{width:100%;height:100%;object-fit:cover}
.ms-sp-product>div{padding:18px}
.ms-sp-product h3{margin:0 0 5px;font-size:19px}
.ms-sp-product h3+ p{margin:0;color:var(--muted);font-size:14px}
.ms-sp-product .ms-product__price{margin:12px 0}
.ms-sp-noshi-image{margin-bottom:20px}
.ms-page--sp .ms-definition div{grid-template-columns:1.1fr 1fr}
.ms-page--sp .ms-definition dt,
.ms-page--sp .ms-definition dd{padding:10px 8px;font-size:13px}
.ms-page--sp .ms-faq summary{padding:16px 42px 16px 14px}
.ms-page--sp .ms-faq details>div{padding:0 14px 15px}
.ms-sp-sticky{position:fixed;z-index:20;right:0;bottom:0;left:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);box-shadow:0 -3px 12px rgba(0,0,0,.1)}
.ms-sp-sticky a{display:flex;align-items:center;justify-content:center;min-height:46px;color:#fff;background:var(--main);font-weight:700;border-radius:4px}



/* 安全策：誤って両方配置した場合の表示調整。端末出し分けは管理画面側を推奨 */
/* コマースクリエイター側でPC/SP HTMLを出し分けるため、CSSでは非表示にしない */


/* iPhone向け：のし表とFAQの視認性を強化 */
.ms-sp-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:7px;background:#fff}
.ms-noshi-table{width:100%;min-width:500px;border-collapse:collapse;table-layout:fixed;background:#fff}
.ms-noshi-table th,.ms-noshi-table td{padding:13px 12px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;font-size:14px;line-height:1.6}
.ms-noshi-table thead th{color:#fff;background:var(--main);font-weight:700;text-align:center}
.ms-noshi-table tbody th{width:52%;background:var(--bg);font-weight:700}
.ms-noshi-table tr:last-child th,.ms-noshi-table tr:last-child td{border-bottom:0}
.ms-noshi-table th:last-child,.ms-noshi-table td:last-child{border-right:0}
.ms-page--sp .ms-faq details{overflow:hidden}
.ms-page--sp .ms-faq summary{display:block;position:relative;list-style:none;padding:17px 58px 17px 16px;font-weight:700;line-height:1.55;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ms-page--sp .ms-faq summary::-webkit-details-marker{display:none}
.ms-page--sp .ms-faq summary::marker{display:none;content:""}
.ms-page--sp .ms-faq summary:after{content:"＋"!important;display:grid;place-items:center;position:absolute;top:50%;right:14px;width:30px;height:30px;margin:0;transform:translateY(-50%);color:#fff!important;background:var(--main);border-radius:50%;font-size:20px;font-weight:400;line-height:1}
.ms-page--sp .ms-faq details[open] summary:after{content:"−"!important}
.ms-page--sp .ms-faq details[open] summary{border-bottom:1px solid var(--border)}
.ms-page--sp .ms-faq details>div{padding:16px}
@media(max-width:767px){.ms-noshi-table{min-width:480px}.ms-sp-table-scroll:after{content:"横にスクロールできます";display:block;padding:7px 10px;color:var(--muted);background:#fff;text-align:right;font-size:11px}}

/* ====================================
   お供え特集 用途別おすすめ商品
   PC・スマホともに横3列
==================================== */

.ms-use-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 20px;
}

.ms-use-product {
    display: block;
    min-width: 0;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.ms-use-product__image {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f5f2;
    border-radius: 6px;
}

.ms-use-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ms-use-product__name {
    display: block;
    margin-top: 9px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ms-use-product:hover .ms-use-product__image img {
    transform: scale(1.03);
}

.ms-use-product:hover .ms-use-product__name {
    text-decoration: underline;
}

/* スマートフォン・iPhone */
@media screen and (max-width: 767px) {
    .ms-use-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 15px;
    }

    .ms-use-product__image {
        border-radius: 4px;
    }

    .ms-use-product__name {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.4;
    }
}

/* ====================================
   スマートフォン：用途で選ぶ ＋／−表示
==================================== */

@media screen and (max-width: 767px) {

    .ms-scene > summary {
        position: relative;
        padding-right: 48px;
        cursor: pointer;
        list-style: none;
    }

    /* iPhone・Safariの標準三角を非表示 */
    .ms-scene > summary::-webkit-details-marker {
        display: none;
    }

    .ms-scene > summary::marker {
        content: "";
    }

    /* 閉じているとき：＋ */
    .ms-scene > summary::after {
        content: "＋";
        position: absolute;
        top: 50%;
        right: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #7b5c9d;
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        transform: translateY(-50%);
    }

    /* 開いているとき：− */
    .ms-scene[open] > summary::after {
        content: "−";
    }
}


/* ====================================
   コマースクリエイター別HTML設置対応
   PC画面を狭めても空白にしない
==================================== */
.ms-page--pc,
.ms-page--sp {
    display: block;
}

/* PC用HTMLが狭いウィンドウで表示された場合のフォールバック */
@media screen and (max-width: 767px) {
    .ms-page--pc .ms-container {
        width: min(calc(100% - 28px), 1120px);
    }

    .ms-page--pc .ms-hero {
        min-height: auto;
        display: block;
        padding-top: min(56vw, 390px);
    }

    .ms-page--pc .ms-hero__image {
        height: min(56vw, 390px);
        object-position: center;
    }

    .ms-page--pc .ms-hero:after {
        display: none;
    }

    .ms-page--pc .ms-hero__content {
        width: 100%;
    }

    .ms-page--pc .ms-hero__box {
        max-width: none;
        padding: 24px 18px 28px;
        text-align: center;
        border: 0;
        background: #f8f5fa;
    }

    .ms-page--pc h1 {
        margin-bottom: 12px;
        font-size: clamp(25px, 7.3vw, 31px);
        line-height: 1.4;
        letter-spacing: -.025em;
    }

    .ms-page--pc .ms-anchor__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-page--pc .ms-section {
        padding: 44px 0;
    }

    .ms-page--pc .ms-heading h2 {
        font-size: clamp(22px, 6.2vw, 28px);
    }

    .ms-page--pc .ms-reasons,
    .ms-page--pc .ms-scenes,
    .ms-page--pc .ms-products,
    .ms-page--pc .ms-noshi {
        grid-template-columns: 1fr;
    }
}

/* スマートフォン見出し：機種差による不自然な折り返しを軽減 */
@media screen and (max-width: 767px) {
    .ms-page--sp h1 {
        font-size: clamp(24px, 7.2vw, 29px);
        line-height: 1.42;
        letter-spacing: -.03em;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .ms-sp-heading h2,
    .ms-sp-answer h2 {
        font-size: clamp(20px, 5.9vw, 25px);
        line-height: 1.45;
        letter-spacing: -.02em;
        word-break: keep-all;
        overflow-wrap: normal;
        text-wrap: balance;
    }
}

/* 下部コンテンツの初期描画負荷を軽減 */
@supports (content-visibility: auto) {
    .ms-page .ms-section,
    .ms-page .ms-sp-section {
        content-visibility: auto;
        contain-intrinsic-size: 700px;
    }

    .ms-page .ms-hero,
    .ms-page .ms-sp-hero,
    .ms-page .ms-anchor,
    .ms-page .ms-sp-anchor {
        content-visibility: visible;
    }
}
