/* ネットショップ：共通 site.css を継承するページ固有スタイル */
/* 注文フォーム：PCでは案内・関連メニュー・フォームを二段構成にする */
.order-main {
    display: grid;
    grid-template-columns: minmax(170px, 27%) minmax(0, 1fr);
    grid-template-areas:
        "breadcrumbs breadcrumbs"
        "intro intro"
        "overview overview"
        "related form";
    column-gap: clamp(20px, 4vw, 58px);
    align-content: start;
}

.order-main > .breadcrumbs { grid-area: breadcrumbs; }
.order-main > .page-intro { grid-area: intro; }
.order-main > .order-overview { grid-area: overview; }
.order-main > .order-related { grid-area: related; }
.order-main > .order-form-card { grid-area: form; }

/* 注文方法・割引案内（内容はHTMLで直接編集可能） */
.order-overview {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr);
    align-items: start;
    gap: clamp(18px, 3.8vw, 56px);
    margin: 0 0 clamp(24px, 3vw, 42px);
    padding: 0 8px;
    color: #404040;
}

.order-overview-guide p {
    margin: 0 0 3px;
    font-size: clamp(.83rem, 1.12vw, .99rem);
    line-height: 1.48;
}

.order-emphasis { color: #ec2029; font-weight: 650; }
.order-overview-sales h2 {
    margin: 0 0 8px;
    font-size: clamp(.96rem, 1.5vw, 1.13rem);
    font-weight: 750;
    text-align: center;
}
.order-sale-list { margin: 0; }
.order-sale-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 7px;
}
.order-sale-list dt,
.order-sale-list dd {
    margin: 0;
    font-size: clamp(.77rem, 1.1vw, .94rem);
    line-height: 1.45;
}
.order-sale-list dd {
    flex-shrink: 0;
    text-align: right;
    font-weight: 600;
}

/* 小画面用の開閉見出し：PCでは常時展開し、見出しを非表示 */
.order-related > summary { display: none; }
.order-related-body { min-width: 0; }

:root {
    --order: #da0ad3
}

.section-order .section-label {
    background: var(--order)
}

.section-order .section-links a:hover,
.section-order .section-links a:focus-visible {
    border-color: var(--order);
    background: #fff1ff
}

.order-main .page-intro {
    margin-bottom: 16px
}

.order-main {
    padding-bottom: clamp(30px, 5vw, 70px)
}

.order-related {
    margin: 0 0 clamp(24px, 3vw, 36px);
    min-width: 0
}

.order-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: clamp(12px, 1.8vw, 22px);
    margin: 0 0 clamp(26px, 4vw, 52px)
}

.order-links a {
    width: min(100%, 190px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    border: 1px solid #ccc;
    background: #e2e2e2;
    color: #444;
    font-weight: 650;
    font-size: clamp(.73rem, 1.4vw, 1rem);
    padding: 9px 8px;
    overflow-wrap: anywhere;
    text-decoration: none
}

.ord-contact {
    background: #f9ecfb;
    border: 1px solid #ede0ef
}

.ord-contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(12px, 1.6vw, 20px);
    color: #505050
}

.ord-contact-inner p {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.6;
    font-size: clamp(.76rem, 1.1vw, .98rem)
}

.ord-contact-details a {
    color: inherit;
    text-decoration: underline
}

.order-form-card {
    min-width: 0;
    background: #fff
}

.order-form-card iframe {
    display: block;
    width: 100%;
    height: max(900px, 100vh);
    border: 0;
    background: #fff
}

.order-article {
    scroll-margin-top: 20px
}

.order-article h2 {
    border-bottom-color: var(--order)
}

.order-return {
    margin: 24px 0
}

.order-return a {
    color: #6b1482
}

/* 元ページのQ&A・法定表示・個人情報保護の文章を改変せずに可読性を整える */
.faq-list {
    display: grid;
    gap: 18px
}

.faq-entry {
    background: #fafafa;
    border: 1px solid #e4e4e4;
    padding: 14px 18px
}

.faq-entry h3 {
    margin: 0 0 8px !important;
    font-size: clamp(.94rem, 1.5vw, 1.1rem);
    color: #444
}

.preserved-copy {
    white-space: pre-line;
    overflow-wrap: anywhere;
    line-height: 1.7;
    margin: 0
}

.legal-list {
    margin: 0
}

.legal-row {
    display: grid;
    grid-template-columns: minmax(125px, 29%) minmax(0, 1fr);
    border-bottom: 1px solid #e1e1e1;
    gap: 18px;
    padding: 11px 5px
}

.legal-row dt {
    font-weight: 700
}

.legal-row dd {
    margin: 0
}

.privacy-copy {
    max-width: 72ch
}

/* dialog は操作で開き、通常リンクはJSなしで別ページにフォールバック */
.order-dialog {
    width: min(94vw, 760px);
    max-width: 760px;
    max-height: 86vh;
    max-height: 86dvh;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 0 12px 60px rgb(0 0 0 / 30%);
    overflow: hidden
}

.order-dialog::backdrop {
    background: rgb(0 0 0 / 62%)
}

.order-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 3px solid var(--order);
    background: #fff
}

.order-dialog-header h2 {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.25rem)
}

.order-dialog-close {
    flex: none;
    border: 0;
    border-radius: 4px;
    background: #cf1029;
    color: white;
    font-weight: 750;
    padding: 9px 14px
}

.order-dialog-body {
    padding: clamp(14px, 2.4vw, 24px);
    overflow-y: auto;
    max-height: calc(86vh - 76px);
    max-height: calc(86dvh - 76px);
    overscroll-behavior: contain
}

.order-dialog-body>*:first-child {
    margin-top: 0
}


/* PC表示のみ */
@media (min-width: 761px) {

  /* 関連メニューと連絡先の幅を統一 */
  .ord-contact {
    width: min(100%, 190px);
  }

  /* 注文案内とセール情報の間の縦線 */
  .order-overview-sales {
    position: relative;
  }

  .order-overview-sales::before {
    content: "";
    position: absolute;
    top: 0;
    
    bottom: 0;
    left: clamp(-28px, -1.9vw, -9px);

    width: 2px;
    border-left: 2px dashed #c9c9c9;
    pointer-events: none;
  }
}


@media(max-width:760px) {
    /* 従来どおり、注文フォームは全幅・関連メニューは横3列 */
    .order-main { display: block; }
    .order-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 0;
        margin-bottom: 20px;
    }
    .order-overview-guide p { font-size: clamp(.84rem, 2.2vw, 1rem); }
    .order-overview-sales h2 { text-align: left; font-size: clamp(.98rem, 2.5vw, 1.1rem); }
    .order-sale-list > div { justify-content: flex-start; gap: 12px; }
    .order-sale-list dt,
    .order-sale-list dd { font-size: clamp(.79rem, 2.1vw, .94rem); }

    /* details/summary でネイティブなタッチ・キーボード開閉 */
    .order-related > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        list-style: none;
        cursor: pointer;
        border: 1px solid #cfcfcf;
        background: #e9e9e9;
        color: #444;
        padding: 11px 16px;
        text-align: center;
        font-size: clamp(.92rem, 2.6vw, 1.08rem);
        font-weight: 700;
    }
    .order-related > summary::-webkit-details-marker { display: none; }
    .order-related > summary:focus-visible { outline: 3px solid var(--order); outline-offset: 3px; }
    .order-related-toggle-icon {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
    }
    .order-related[open] .order-related-toggle-icon { transform: rotate(225deg) translateY(-2px); }
    .order-related-body { padding-top: 12px; }
    .order-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .order-links a { width: 100%; }
    .ord-contact-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .ord-contact-inner {
        gap: clamp(8px, 2vw, 18px);
        padding: 10px 9px
    }

    .ord-contact-inner p {
        font-size: clamp(.65rem, 2.2vw, .85rem);
        line-height: 1.45
    }

    .order-links {
        gap: 0;
        margin-bottom: 0
    }

    .order-links a {
        min-height: 50px;
        border-radius: 0;
        background: #cdcdcd;
        border: 1px solid #999;
        font-size: clamp(.7rem, 2.5vw, .95rem)
    }

    .order-form-card iframe {
        height: max(800px, 100vh)
    }
}

@media(max-width:520px) {
    .order-main {
        padding-inline: clamp(8px, 2.5vw, 14px)
    }

    .order-main .page-intro {
        margin-bottom: 12px
    }

    .order-overview-sales h2 { text-align: left; }
    .order-overview-guide p { font-size: .84rem; }
    .order-sale-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .order-sale-list dt, .order-sale-list dd { font-size: .79rem; }

    .ord-contact-inner {
        gap: 8px
    }

    .ord-contact-inner p {
        font-size: clamp(.7rem, 2.5vw, .82rem);
        font-weight: 500;
    }

    .order-links a {
        padding: 10px 3px;
        font-size: clamp(.8rem, 2.95vw, .84rem)
    }

    .legal-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px
    }

    .order-dialog-header {
        padding: 10px 12px
    }

    .order-dialog-body {
        padding: 12px
    }

    .order-form-card iframe {
        height: max(820px, 100vh)
    }
}