/* =========================================================
   山本商事オンラインストア
   商品詳細 共通レイアウト
   ========================================================= */

.ys-product-detail {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   冒頭リード文
   ========================================================= */

.ys-product-detail .ys-product-lead {
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.7;
}


/* =========================================================
   大見出し h2

   ・前の内容からしっかり離す
   ・下に罫線
   ・罫線下は空けすぎない
   ========================================================= */

.ys-product-detail h2 {
    display: block;
    width: 100%;

    margin: 36px 0 0 !important;
    padding: 0 0 5px;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;

    border: 0 !important;
    border-bottom: 1px solid #bdbdbd !important;
}


/* =========================================================
   大見出し直後

   本文・中見出し・箇条書き・表のいずれでも
   罫線から5pxだけ離す
   ========================================================= */

.ys-product-detail h2 + p {
    margin-top: 5px !important;
}

.ys-product-detail h2 + h3 {
    margin-top: 5px !important;
}

.ys-product-detail h2 + ul {
    margin-top: 5px !important;
}

.ys-product-detail h2 + table {
    margin-top: 5px !important;
}


/* =========================================================
   中見出し h3

   ・前の本文からは離す
   ・所属する本文とは近づける
   ========================================================= */

.ys-product-detail h3 {
    margin: 22px 0 3px !important;
    padding: 0;

    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}


/* =========================================================
   本文
   ========================================================= */

.ys-product-detail p {
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.65;
}

.ys-product-detail h3 + p {
    margin-top: 0 !important;
}


/* =========================================================
   箇条書き

   「こんな方におすすめ」
   「セット内容」
   「購入前のご注意」
   を一つのまとまりとして表示
   ========================================================= */

.ys-product-detail ul {
    margin: 0 0 8px;
    padding: 0 0 0 1.35em;
}

.ys-product-detail li {
    margin: 0;
    padding: 0;
    line-height: 1.45;
}


/* =========================================================
   注記
   ========================================================= */

.ys-product-detail small {
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   リンク
   ========================================================= */

.ys-product-detail a {
    text-decoration: underline;
}


/* =========================================================
   仕様表
   ========================================================= */

.ys-product-detail table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.ys-product-detail th,
.ys-product-detail td {
    padding: 7px 9px;
    border: 1px solid #d5d5d5;
    vertical-align: top;
    line-height: 1.5;
}

.ys-product-detail th {
    width: 32%;
    font-weight: 600;
    background: #f7f7f7;
}


/* =========================================================
   スマートフォン
   ========================================================= */

@media screen and (max-width: 767px) {

    .ys-product-detail {
        font-size: 14px;
        line-height: 1.65;
    }

    .ys-product-detail .ys-product-lead {
        margin-bottom: 7px;
        line-height: 1.65;
    }


    /* 大見出し */

    .ys-product-detail h2 {
        margin: 30px 0 0 !important;
        padding: 0 0 5px;

        font-size: 17px;
        line-height: 1.4;

        border: 0 !important;
        border-bottom: 1px solid #bdbdbd !important;
    }


    /* 大見出し直後 */

    .ys-product-detail h2 + p {
        margin-top: 5px !important;
    }

    .ys-product-detail h2 + h3 {
        margin-top: 5px !important;
    }

    .ys-product-detail h2 + ul {
        margin-top: 5px !important;
    }

    .ys-product-detail h2 + table {
        margin-top: 5px !important;
    }


    /* 中見出し */

    .ys-product-detail h3 {
        margin: 18px 0 3px !important;
        font-size: 15px;
        line-height: 1.45;
    }


    /* 本文 */

    .ys-product-detail p {
        margin: 0 0 7px;
        line-height: 1.65;
    }


    /* 箇条書き */

    .ys-product-detail ul {
        margin: 0 0 7px;
        padding-left: 1.3em;
    }

    .ys-product-detail li {
        margin: 0;
        line-height: 1.45;
    }


    /* 仕様表 */

    .ys-product-detail th,
    .ys-product-detail td {
        padding: 7px;
        font-size: 13px;
        line-height: 1.5;
    }

    .ys-product-detail th {
        width: 36%;
    }
}


/* =========================================================
   公開情報ページ 共通レイアウト

   対象:
   当サイトについて / ご利用規約 / 特商法 / プライバシー
   ご利用ガイド / YSFC 記事・メディア・FAQ
   ========================================================= */

.ys-public-page,
.ysfc-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 72px;
    color: #183653;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: .015em;
}

.ys-public-page *,
.ysfc-page * {
    box-sizing: border-box;
    min-width: 0;
}

.ys-public-page__header,
.ysfc-page__header {
    margin: 0 0 42px;
    padding: 42px 0 24px;
    border-bottom: 1px solid #dfe6ed;
}

.ys-public-page__eyebrow,
.ysfc-page__eyebrow {
    margin: 0 0 8px;
    color: #ed6d2f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .16em;
}

.ys-public-page__title,
.ysfc-page__title {
    margin: 0;
    color: #183653;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .035em;
    overflow-wrap: anywhere;
}

.ys-public-page__lead,
.ysfc-page__lead {
    max-width: 780px;
    margin: 16px 0 0;
    color: #5e7184;
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-line;
}

.ys-public-page__section,
.ysfc-page__section {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid #e5ebf0;
}

.ys-public-page__section:first-of-type {
    margin-top: 0;
}

.ys-public-page__section-title,
.ysfc-page__section-title {
    margin: 0 0 18px;
    color: #183653;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: .025em;
}

.ys-public-page__section-lead,
.ysfc-page__section-lead {
    margin: 0 0 20px;
    color: #5e7184;
    line-height: 1.85;
    white-space: pre-line;
}

.ys-public-page a,
.ysfc-page__link {
    color: #1e527b;
    text-decoration: none;
}

.ys-public-page a:hover,
.ysfc-page__link:hover {
    color: #ed6d2f;
    text-decoration: underline;
}

.ys-public-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ys-public-page__button,
.ysfc-page__button {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid #ed6d2f;
    border-radius: 4px;
    background: #ed6d2f;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
}

.ys-public-page__button:hover,
.ysfc-page__button:hover {
    border-color: #d95625;
    background: #d95625;
}

.ys-public-page__button--secondary,
.ysfc-page__button--secondary {
    border-color: #9db3c5;
    background: #fff;
    color: #183653 !important;
}

.ys-public-page__button--secondary:hover,
.ysfc-page__button--secondary:hover {
    border-color: #9db3c5;
    background: #f5f8fb;
}

.ys-public-page__note {
    margin-top: 22px;
    padding: 16px 20px;
    border-left: 4px solid #1b4b78;
    background: #f5f8fb;
}

.ys-public-page__note p {
    margin: 0;
}

.ys-public-page__back {
    margin: 38px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #e5ebf0;
}


/* 会社情報・特商法の定義一覧 */

.ys-public-defs {
    border-top: 1px solid #dfe6ed;
}

.ys-public-defs dl {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px 44px;
    margin: 0;
    padding: 24px 0;
    border-bottom: 1px solid #dfe6ed;
}

.ys-public-defs dt,
.ys-public-defs dd {
    margin: 0;
    padding: 0;
}

.ys-public-defs dt {
    color: #183653;
    font-weight: 700;
    line-height: 1.75;
}

.ys-public-defs dd {
    color: #334654;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.ys-public-defs dd p {
    margin: 0 0 10px;
}

.ys-public-defs dd p:last-child {
    margin-bottom: 0;
}

.ys-public-defs dd ul,
.ys-public-defs dd ol {
    margin: 8px 0 0;
    padding-left: 1.4em;
}

.ys-public-defs dd li {
    margin: 0 0 5px;
}


/* 規約・プライバシーポリシー */

.ys-public-legal__intro,
.ys-public-legal__revision {
    margin: 0;
    color: #334654;
    line-height: 1.9;
}

.ys-public-legal__intro {
    padding: 0 0 28px;
}

.ys-public-legal__revision {
    margin-top: 32px;
    padding: 22px 0 0;
    border-top: 1px solid #dfe6ed;
}

.ys-public-legal__section {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 44px;
    margin: 0;
    padding: 24px 0;
    border-top: 1px solid #dfe6ed;
}

.ys-public-legal__section:last-child {
    border-bottom: 1px solid #dfe6ed;
}

.ys-public-legal__section > h2 {
    grid-column: 1;
    margin: 0;
    color: #183653;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
}

.ys-public-legal__section > :not(h2) {
    grid-column: 2;
}

.ys-public-legal__section h3 {
    margin: 16px 0 4px;
    color: #183653;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
}

.ys-public-legal__section h2 + h3,
.ys-public-legal__section h2 + p,
.ys-public-legal__section h2 + ul,
.ys-public-legal__section h2 + ol {
    margin-top: 0;
}

.ys-public-legal__section p {
    margin: 0 0 10px;
    color: #334654;
    line-height: 1.9;
}

.ys-public-legal__section p:last-child {
    margin-bottom: 0;
}

.ys-public-legal__section ul,
.ys-public-legal__section ol {
    margin: 8px 0 0;
    padding-left: 1.45em;
    color: #334654;
}

.ys-public-legal__section li {
    margin: 0 0 6px;
    line-height: 1.8;
}

.ys-public-legal__section li > ol,
.ys-public-legal__section li > ul {
    margin-top: 6px;
}


/* ご利用ガイド */

.ys-guide-page__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ys-guide-page__step {
    min-height: 140px;
    padding: 20px;
    border: 1px solid #e2e9ef;
    border-radius: 5px;
    background: #f5f8fb;
}

.ys-guide-page__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #ed6d2f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ys-guide-page__step h3,
.ys-guide-page__card h3 {
    margin: 0 0 7px;
    color: #183653;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}

.ys-guide-page__step p,
.ys-guide-page__card p {
    margin: 0;
    color: #5e7184;
    font-size: 14px;
    line-height: 1.8;
}

.ys-guide-page__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ys-guide-page__card {
    padding: 22px 24px;
    border: 1px solid #e2e9ef;
    border-radius: 5px;
}


/* YSFC 記事・メディア・FAQ */

.ysfc-page__back {
    margin: 38px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #e5ebf0;
}

.ysfc-page__empty {
    padding: 28px 0;
    color: #5e7184;
}

.ysfc-content-index__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 12px;
    padding: 0 0 14px;
    border-bottom: 1px dotted #cfd8de;
}

.ysfc-content-index__card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid #e5ebf0;
}

.ysfc-content-index__thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e9ef;
    border-radius: 4px;
    background: #f5f8fb;
    object-fit: cover;
}

.ysfc-content-index__card-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ysfc-content-index__date,
.ysfc-content-detail__meta,
.ysfc-media__meta {
    margin: 0 0 10px;
    color: #697682;
    font-size: 12px;
    line-height: 1.8;
}

.ysfc-content-index__summary,
.ysfc-media__body {
    margin: 0;
    color: #5e7184;
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ysfc-content-detail__preview {
    margin: 0 0 26px;
    padding: 12px 16px;
    border-left: 4px solid #ed6d2f;
    background: #fff6e9;
}

.ysfc-content-detail__main-image {
    display: block;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    margin: 0 auto 32px;
    object-fit: contain;
}

.ysfc-content-detail__section,
.ysfc-media__section {
    margin: 30px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid #e5ebf0;
}

.ysfc-content-detail__section h2,
.ysfc-media__item-title,
.ysfc-faq__section-title {
    margin: 0 0 14px;
    color: #183653;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ysfc-content-detail__section p {
    margin: 0;
    color: #334654;
    font-size: 15px;
    line-height: 1.95;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ysfc-content-detail__section figure,
.ysfc-media__section figure {
    margin: 0 0 22px;
}

.ysfc-content-detail__section img,
.ysfc-media__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 18px;
    border-radius: 4px;
    object-fit: contain;
}

.ysfc-content-detail__section figcaption,
.ysfc-media__section figcaption {
    margin-top: 10px;
    color: #697682;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.ysfc-content-detail__cta {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 38px 0 0;
    padding: 12px 26px;
    border-radius: 4px;
    background: #ed6d2f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.ysfc-content-detail__cta:hover {
    background: #d95f25;
    color: #fff;
    text-decoration: none;
}

.ysfc-media__item {
    margin-top: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5ebf0;
}

.ysfc-media__item:first-child {
    margin-top: 0;
}

.ysfc-media__section h3 {
    margin: 0 0 8px;
    color: #183653;
    font-size: 18px;
    font-weight: 700;
}

.ysfc-faq__section {
    margin-top: 30px;
}

.ysfc-faq__section:first-child {
    margin-top: 0;
}

.ysfc-faq__item {
    margin-top: 10px;
    padding: 0 18px;
    border: 1px solid #e2e9ef;
    border-radius: 4px;
}

.ysfc-faq__item summary {
    position: relative;
    padding: 16px 26px 16px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
}

.ysfc-faq__item summary::-webkit-details-marker {
    display: none;
}

.ysfc-faq__item summary::after {
    position: absolute;
    top: 14px;
    right: 0;
    color: #1e527b;
    content: "+";
    font-size: 20px;
}

.ysfc-faq__item[open] summary::after {
    content: "−";
}

.ysfc-faq__answer {
    margin: 0;
    padding: 14px 0 18px;
    border-top: 1px solid #edf0f2;
    color: #5e7184;
    line-height: 1.85;
    white-space: pre-line;
}


/* 公開情報ページ スマートフォン */

@media screen and (max-width: 767px) {
    .ys-public-page,
    .ysfc-page {
        padding: 0 16px 48px;
        font-size: 14px;
        line-height: 1.8;
    }

    .ys-public-page__header,
    .ysfc-page__header {
        margin-bottom: 30px;
        padding: 30px 0 20px;
    }

    .ys-public-page__title,
    .ysfc-page__title {
        font-size: 26px;
    }

    .ys-public-page__lead,
    .ysfc-page__lead {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.8;
    }

    .ys-public-page__section,
    .ysfc-page__section {
        margin-top: 32px;
        padding-top: 24px;
    }

    .ys-public-page__section-title,
    .ysfc-page__section-title {
        font-size: 21px;
    }

    .ys-public-defs dl,
    .ys-public-legal__section {
        display: block;
        padding: 20px 0;
    }

    .ys-public-defs dt,
    .ys-public-legal__section > h2 {
        margin: 0 0 8px;
        font-size: 15px;
    }

    .ys-public-defs dd,
    .ys-public-legal__section p,
    .ys-public-legal__section li {
        line-height: 1.8;
    }

    .ys-public-legal__section > :not(h2) {
        margin-left: 0;
    }

    .ys-guide-page__steps,
    .ys-guide-page__cards {
        grid-template-columns: 1fr;
    }

    .ys-guide-page__step {
        min-height: 0;
    }

    .ysfc-content-index__card {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 0;
    }

    .ysfc-content-index__card-title {
        font-size: 17px;
    }

    .ysfc-content-index__summary {
        font-size: 13px;
        line-height: 1.7;
    }

    .ysfc-content-detail__section h2,
    .ysfc-media__item-title,
    .ysfc-faq__section-title {
        font-size: 20px;
    }

    .ysfc-content-detail__section p {
        font-size: 14px;
        line-height: 1.85;
    }

    .ysfc-content-detail__cta {
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* =========================================================
   山本商事オンラインストア
   共通フッター

   EC-CUBE「コンテンツ管理 → CSS管理」の既存CSS末尾へ
   追記して使用します。既存CSSとの置き換えは行いません。
   ========================================================= */

.ys-site-footer,
.ys-site-footer * {
    box-sizing: border-box;
}

.ys-site-footer {
    margin-top: 72px;
    color: #fff;
    background: #102f50;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.ys-site-footer__inner {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 54px 28px 26px;
}

.ys-site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.ys-site-footer__section {
    min-width: 0;
    padding: 0 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.ys-site-footer__section:first-child {
    padding-left: 0;
    border-left: 0;
}

.ys-site-footer__section:last-child {
    padding-right: 0;
}

.ys-site-footer__heading {
    margin: 0 0 18px;
    padding: 0 0 11px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.06em;
}

.ys-site-footer__nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ys-site-footer__nav li {
    margin: 0;
    padding: 0;
}

.ys-site-footer__nav li + li {
    margin-top: 8px;
}

.ys-site-footer__nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.65;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ys-site-footer__nav a:hover,
.ys-site-footer__nav a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.ys-site-footer__external::after {
    content: "↗";
    font-size: 0.82em;
    line-height: 1;
    opacity: 0.72;
}

.ys-site-footer__support-text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.75;
}

.ys-site-footer__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: 48px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ys-site-footer__brand {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
    text-decoration: none;
}

.ys-site-footer__brand:hover,
.ys-site-footer__brand:focus-visible {
    color: #fff;
    opacity: 0.86;
    text-decoration: none;
}

.ys-site-footer__shop-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.ys-site-footer__tagline {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    line-height: 1.6;
}

.ys-site-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.6;
    text-align: right;
}

/* =========================================================
   スマートフォン
   ========================================================= */

@media screen and (max-width: 767px) {

    .ys-site-footer {
        margin-top: 52px;
        font-size: 14px;
    }

    .ys-site-footer__inner {
        width: 100%;
        padding: 34px 20px 20px;
    }

    .ys-site-footer__grid {
        grid-template-columns: 1fr;
    }

    .ys-site-footer__section,
    .ys-site-footer__section:first-child,
    .ys-site-footer__section:last-child {
        padding: 24px 0;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .ys-site-footer__section:first-child {
        padding-top: 0;
    }

    .ys-site-footer__heading {
        margin-bottom: 14px;
        padding-bottom: 9px;
        font-size: 15px;
    }

    .ys-site-footer__nav li + li {
        margin-top: 7px;
    }

    .ys-site-footer__nav a {
        font-size: 14px;
        line-height: 1.7;
    }

    .ys-site-footer__support-text {
        margin-bottom: 13px;
        font-size: 13px;
    }

    .ys-site-footer__bottom {
        display: block;
        margin-top: 28px;
        padding-top: 22px;
        text-align: center;
    }

    .ys-site-footer__brand {
        align-items: center;
    }

    .ys-site-footer__shop-name {
        font-size: 18px;
    }

    .ys-site-footer__tagline {
        font-size: 11px;
        text-align: center;
    }

    .ys-site-footer__copyright {
        margin-top: 15px;
        font-size: 10px;
        text-align: center;
    }
}