/* ===============================================================
   共通設定：ご注文の流れ（hkg）・最終確認（hko）
   =============================================================== */
.hkg, .hko {
    --red: #a40000;
    --red-soft: #fdeeee;
    --yellow: #ffe100;
    --yellow-soft: #fffbe0;
    --border: #dcdcdc;
    --text: #222;
    --muted: #666;
}

.hkg *, .hko * {
    box-sizing: border-box;
    vertical-align: bottom;
}

/* FAQ：開閉アイコン付きアコーディオン */
.hkg-faq details, .hko-faq details {
    border: 1px solid var(--border);
    margin-bottom: 8px;
    background: #fff;
}

.hkg-faq summary, .hko-faq summary {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 48px 16px 16px;
    font-weight: 700;
    list-style: none;
}

.hkg-faq summary::-webkit-details-marker,
.hko-faq summary::-webkit-details-marker {
    display: none;
}

.hkg-faq summary::before, .hko-faq summary::before {
    content: "Q.";
    color: var(--red);
    margin-right: 8px;
    flex-shrink: 0;
}

.hkg-faq summary::after, .hko-faq summary::after {
    content: "＋";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.hkg-faq details[open] summary::after,
.hko-faq details[open] summary::after {
    content: "－";
}

.hkg-faq summary:hover, .hko-faq summary:hover {
    background: var(--yellow-soft);
}

.hkg-faq details[open] summary,
.hko-faq details[open] summary {
    border-bottom: 1px dashed var(--border);
}

.hkg-faq .a, .hko-faq .a {
    padding: 12px 16px;
}

.hkg-faq .a::before, .hko-faq .a::before {
    content: "A.";
    font-weight: 700;
    margin-right: 8px;
}

/* ===============================================================
ご注文の流れ（hkg）
=============================================================== */
.hkg {
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
    padding-bottom: 80px;
}

.hkg h1 {
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.hkg p {
    margin: 0 0 12px;
}

.hkg a {
    color: var(--red);
    font-weight: 700;
}

/* 重要ボックス */
.hkg-key {
    border: 3px solid var(--red);
    background: var(--red-soft);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0 28px;
}

.hkg-key-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    margin: 0 0 4px !important;
}

.hkg-key p:last-child {
    margin: 0;
}

/* ミニフロー */
.hkg-mini {
    margin: 0 0 36px;
}

.hkg-mini-row {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hkg-mini-row li {
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    padding: 12px 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    position: relative;
}

.hkg-mini-row li b {
    display: block;
    font-size: 11px;
    color: var(--red);
}

.hkg-mini-row li.is-key {
    border: 3px solid var(--red);
    background: var(--yellow-soft);
    font-weight: 700;
}

.hkg-mini-row li.is-count {
    background: #fffdf0;
    border-color: #e6cf00;
}

.hkg-mini-bar {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 6px;
    margin-top: 8px;
}

.hkg-mini-bar span {
    grid-column: 6 / 8;
    background: var(--yellow);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 4px;
    border-radius: 4px;
}

.hkg-mini-bar span::before {
    content: "▶ ";
    color: var(--red);
}

.hkg-mini-row.cols6,.hkg-mini-bar.cols6 {
    grid-template-columns: repeat(6,1fr);
}

.hkg-mini-bar span.at-last {
    grid-column: -2 / -1;
    font-size: 11px;
    line-height: 1.4;
}

.hkg-mini-label {
    font-size: 14px;
    font-weight: 700;
    margin: 20px 0 8px !important;
}

.hkg-mini-label:first-child {
    margin-top: 0 !important;
}

.hkg-mini-label::before {
    content: "■ ";
    color: var(--red);
}

.hkg-mini-row li.is-skip {
    background: #eee;
    color: #999;
    border-style: dashed;
}

.hkg-mini-row li.is-skip b {
    color: #999;
}

.hkg-mini-row li small {
    display: block;
    font-size: 11px;
}

.hkg-case {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #f7f7f7;
    border: 1px solid var(--border);
    font-size: 14px;
}

.hkg-pay-note {
    margin: 12px 0 0 !important;
    padding: 8px 12px;
    background: #f4f4f4;
    border-left: 4px solid #555;
    font-size: 14px;
}

.hkg-pay-note span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

/* ステップ */
.hkg-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hkg-step {
    border: 1px solid var(--border);
    margin: 0 0 16px;
    padding: 20px 24px;
    background: #fff;
    position: relative;
}

.hkg-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hkg-num {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
}

.hkg-step h2 {
    font-size: 20px;
    margin: 0;
}

.hkg-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.hkg-links li::before {
    content: "› ";
    color: var(--red);
    font-weight: 700;
}

.hkg-sub {
    font-size: 13px;
    color: var(--muted);
}

.hkg-inline-note {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border-left: 4px solid var(--red);
    font-size: 14px;
}

/* STEP.5 強調 */
.hkg-step.is-key {
    border: 3px solid var(--red);
    background: var(--yellow-soft);
}

.hkg-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.hkg-alert {
    margin: 12px 0 0;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid var(--red);
    border-radius: 6px;
    font-weight: 700;
    color: var(--red);
}

.hkg-alert ul {
    margin: 4px 0 0;
    padding-left: 20px;
    font-weight: 400;
    color: var(--text);
    font-size: 14px;
}

.hkg-key-link {
    margin: 8px 0 0 !important;
    text-align: right;
}

.hkg-key-link a {
    font-size: 14px;
}

/* 関連特集バナー */
.hkg-banners {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hkg-banners a {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.hkg-banners a:hover .hkg-dummy {
    opacity: .85;
}

.hkg-dummy {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: repeating-linear-gradient(45deg,#eee 0 10px,#e4e4e4 10px 20px);
    border: 1px solid var(--border);
    color: #999;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}

.hkg-banners span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

@media (max-width:767px) {
    .hkg h1 {
        font-size: 22px;
    }

    .hkg-faq-title {
        font-size: 19px;
    }

    .hkg-banners {
        grid-template-columns: repeat(1,1fr);
    }

    .hkg-step h2 {
        font-size: 17px;
    }

    .hkg-step {
        padding: 16px;
    }

    .hkg-mini-row {
        grid-template-columns: repeat(4,1fr);
    }

    .hkg-mini-row.cols6 {
        grid-template-columns: repeat(3,1fr);
    }

    .hkg-mini-bar {
        display: none;
    }

}

/* ===============================================================
最終確認
=============================================================== */
.hko {
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
    padding-bottom: 80px;
}

.hko h1 {
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.hko h2 {
    font-size: 22px;
    margin: 48px 0 16px;
    padding: 0 0 8px 12px;
    border-left: 6px solid var(--red);
    border-bottom: 2px solid var(--yellow);
}

.hko h3 {
    font-size: 18px;
    margin: 24px 0 8px;
}

.hko p {
    margin: 0 0 12px;
}

.hko a {
    color: var(--red);
    font-weight: 700;
}

.hko img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

.hko-lead {
    font-size: 16px;
}

.hko-toc {
    background: #f7f7f7;
    border: 1px solid var(--border);
    padding: 16px 20px;
    margin: 20px 0;
}

.hko-toc-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.hko-toc ol {
    margin: 0;
    padding-left: 20px;
}

/* 関連ページ */
.hko-related {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.hko-related a {
    display: block;
    height: 100%;
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    padding: 16px 16px;
    text-decoration: none;
    color: var(--text);
    background: #fff;
}

.hko-related a:hover {
    background: #fafafa;
}

.hko-related a span {
    display: block;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 4px;
}

.hko-related a small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
}

.hko-toc li {
    margin: 4px 0;
}

/* 重要ボックス */
.hko-key {
    border: 3px solid var(--red);
    background: var(--red-soft);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.hko-key-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--red);
    margin: 0 0 8px;
}

.hko-key p:last-child {
    margin: 0;
}

/* 全体フロー */
.hko-flow {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
    margin: 16px 0 8px;
    padding: 0;
    list-style: none;
}

.hko-flow li {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    background: #fff;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.hko-flow li b {
    display: block;
    font-size: 12px;
    color: var(--red);
}

.hko-flow li small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.hko-flow li.is-key {
    border: 3px solid var(--red);
    background: var(--yellow-soft);
    font-weight: 700;
}

.hko-flow li.is-key::before {
    content: "ここ！";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    font-size: 11px;
    padding: 0px 8px;
    border-radius: 999px;
}

.hko-who {
    display: inline-block;
    font-size: 11px;
    padding: 0 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.hko-who.you {
    background: var(--red);
    color: #fff;
}

.hko-who.us {
    background: #555;
    color: #fff;
}

/* 理由カード */
.hko-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 12px 0;
}

.hko-card {
    border: 1px solid var(--border);
    border-top: 4px solid var(--yellow);
    padding: 16px;
    background: #fff;
}

.hko-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.hko-card p {
    font-size: 14px;
    margin: 0;
}

/* タイムライン比較 */
.hko-tl {
    border: 1px solid var(--border);
    padding: 16px;
    margin: 12px 0;
    background: #fff;
}

.hko-tl h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.hko-days {
    display: grid;
    grid-template-columns: repeat(9,1fr);
    gap: 4px;
}

.hko-days div {
    text-align: center;
    font-size: 12px;
    padding: 8px 4px;
    border-radius: 4px;
    background: #f1f1f1;
    line-height: 1.4;
}

.hko-days .wait {
    background: #ddd;
    color: #666;
}

.hko-days .ok {
    background: var(--red);
    color: #fff;
    font-weight: 700;
}

.hko-days .count {
    background: var(--yellow);
    font-weight: 700;
}

.hko-days .ship {
    background: #222;
    color: #fff;
    font-weight: 700;
}

.hko-note {
    font-size: 13px;
    color: var(--muted);
}

/* 手順 */
.hko-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    border: 1px solid var(--border);
    padding: 20px;
    margin: 12px 0;
}

.hko-step-label {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    margin-bottom: 8px;
}

.hko-btnname {
    display: inline-block;
    background: var(--yellow-soft);
    border: 1px solid #e6cf00;
    padding: 0 8px;
    font-weight: 700;
}

.hko-points {
    margin: 8px 0 0;
    padding-left: 20px;
}

.hko-num {
    list-style: none;
    padding-left: 0;
}

.hko-num li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.hko-num li b {
    color: var(--red);
}

.hko-num li span {
    flex: 0 0 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 3px;
    margin-top: 4px;
}

.hko-mail {
    margin: 12px 0 0 !important;
    padding: 8px 12px;
    background: #fff;
    border: 1px dashed var(--red);
    font-size: 13px;
}

/* 注意 */
.hko-warn {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hko-warn li {
    border-left: 4px solid var(--red);
    background: #fafafa;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.hko-warn li strong {
    color: var(--red);
}

@media (max-width:767px) {
    .hko h1 {
        font-size: 22px;
    }

    .hko h2 {
        font-size: 19px;
    }

    .hko-flow {
        grid-template-columns: repeat(2,1fr);
        row-gap: 16px;
    }

    .hko-cards {
        grid-template-columns: 1fr;
    }

    .hko-related {
        grid-template-columns: 1fr;
    }

    .hko-step {
        grid-template-columns: 1fr;
    }

    .hko-days {
        grid-template-columns: repeat(5,1fr);
    }

}

/* ===============================================================
   ガイドページ：リンク操作・固定ヘッダー対応
   =============================================================== */
/* STEP内のテキストリンク：ホバー・キーボードフォーカス */
.hkg-step .hkg-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease, background-color .2s ease, text-decoration-color .2s ease;
}

.hkg-step .hkg-links a:hover,
.hkg-step .hkg-links a:focus-visible {
    color: #7b0000;
    background-color: var(--yellow-soft);
    text-decoration-thickness: 2px;
}

/* 目次：リンクと分かる下線と矢印 */
.hko-toc a {
    display: inline-block;
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease, background-color .2s ease;
}

.hko-toc a::after {
    content: " ›";
    font-weight: 700;
}

.hko-toc a:hover,
.hko-toc a:focus-visible {
    color: #7b0000;
    background-color: var(--yellow-soft);
}

/* ページ内リンク：固定ヘッダー100px分の位置補正（レイアウトに影響しない） */

/* ===============================================================
   セクション区切り・固定ヘッダー対策
   見出し自身にはマイナスマージンを設定しない
   =============================================================== */
.hko-section[id],
.hkg-section[id] {
    margin-top: -100px;
    padding-top: 100px;
}

/* ご注文の流れ：FAQ・関連特集の見出し装飾を復元 */
.hkg .hkg-faq-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin: 40px 0 16px;
    padding: 0 0 8px 12px;
    border-left: 6px solid var(--red);
    border-bottom: 2px solid var(--yellow);
}

@media (max-width: 767px) {
    .hkg .hkg-faq-title {
        font-size: 19px;
    }
}



/* ===============================================================
   入稿完了ページ
   =============================================================== */

.hks{--red:#a40000;--red-soft:#fdeeee;--yellow:#ffe100;--yellow-soft:#fffbe0;--border:#dcdcdc;--text:#222;--muted:#666;color:var(--text);line-height:1.8;font-size:15px;max-width:760px;margin:0 auto;}
.hks *{box-sizing:border-box;}
.hks h1{font-size:26px;text-align:center;margin:0 0 16px;padding-bottom:12px;border-bottom:4px solid var(--yellow);}
.hks p{margin:0 0 10px;}
.hks-lead{text-align:center;}
.hks-key{border:3px solid var(--red);background:var(--red-soft);padding:18px 20px;border-radius:8px;margin:20px 0;}
.hks-key-title{font-size:18px;font-weight:700;color:var(--red);margin:0 0 8px !important;}
.hks-key p:last-child{margin:0;}
.hks-mail{margin:10px 0 0 !important;padding:8px 12px;background:#fff;border:1px dashed var(--red);font-size:13px;}
.hks-next{list-style:none;padding:0;margin:16px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.hks-next li{border:1px solid var(--border);border-radius:6px;padding:10px 8px;text-align:center;font-size:14px;line-height:1.5;background:#fff;}
.hks-next li b{display:block;font-size:11px;color:var(--red);}
.hks-next li small{display:block;font-size:12px;color:var(--muted);}
.hks-next li.is-now{background:#f4f4f4;}
.hks-next li.is-key{border:3px solid var(--red);background:var(--yellow-soft);font-weight:700;}
.hks-link{text-align:right;margin:0 !important;}
.hks-link a{color:var(--red);font-weight:700;font-size:14px;}
.hks-tel{text-align:center;margin-top:24px !important;padding-top:16px;border-top:1px solid var(--border);}
.hks-tel a{font-size:22px;font-weight:700;color:var(--text);text-decoration:none;}
.hks-tel small{display:block;color:var(--muted);font-size:13px;}
@media (max-width:767px){
  .hks h1{font-size:21px;}
  .hks-next{grid-template-columns:1fr;}
}