/* ===== bibs2：接客コメント反映分（style.css の上に重ねて読み込む） ===== */
@media(max-width:1180px) {
    .nav {
        gap: 16px;
        font-size: 13px
    }

    .headcta .btn {
        padding: 11px 14px;
        font-size: 14px
    }
}

/* style.css ではスマホメニューの非表示指定が980px以下にしかなく、PCでテキストが露出していたため補正 */
@media(min-width:981px) {
    .mobile-nav {
        display: none
    }
}

/* セクション見出し：style.css の clamp(30px,4vw,48px) は大きすぎるため最大28pxに */
.section-head h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: -.01em
}

/* 社内で金額・ルールが未決定の箇所に付けるマーカー */
.tbd {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
    padding: 1px 8px;
    border: 1px dashed var(--accent);
    border-radius: 999px;
    color: var(--accent);
    background: #fff5f4;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.6;
    white-space: nowrap
}

.sub {
    color: var(--muted);
    font-size: 13px
}

.btn-sm {
    padding: 9px 14px;
    font-size: 13px
}

/* 注文の流れ（目立たせる） */
.flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    counter-reset: flow;
    list-style: none;
    padding: 0;
    margin: 0
}

.flow li {
    position: relative;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 22px 18px 18px
}

.flow li::before {
    counter-increment: flow;
    content: counter(flow);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    margin-bottom: 12px
}

.flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 36px;
    width: 10px;
    height: 10px;
    border-top: 3px solid var(--brand);
    border-right: 3px solid var(--brand);
    transform: rotate(45deg);
    z-index: 2
}

.flow h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.4
}

.flow p {
    margin: 0;
    font-size: 13px;
    color: var(--muted)
}

.flow .when {
    display: inline-block;
    margin-top: 10px;
    background: #eef7f7;
    color: #087f7f;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800
}

.flow-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    background: #fff;
    border-radius: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line)
}

.tel {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: .02em
}

.section.flow-band {
    background: linear-gradient(180deg, #eaf6f6, #f5f7f8)
}

/* 100枚以上バナー */
.bulk-band {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    align-items: center;
    justify-content: space-between;
    background: #111;
    color: #fff;
    border-radius: 24px;
    padding: 28px 32px
}

.bulk-band h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.35
}

.bulk-band h3 em {
    font-style: normal;
    color: var(--brand2)
}

.bulk-band p {
    margin: 4px 0 0;
    color: #c9ccce;
    font-size: 14px
}

/* フォーム拡張 */
.form-wide {
    max-width: none
}

.fs {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    margin: 0;
    display: grid;
    gap: 18px;
    background: #fff;
    min-width: 0
}

/* float を指定すると legend が枠線上ではなく fieldset 内側の通常要素（グリッドの1行目）になる */
.fs legend {
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    font-weight: 900;
    font-size: 18px
}

.fs legend b {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 13px;
    margin-right: 6px
}

/* カテゴリで出し分ける項目（.fs の display:grid より hidden を優先） */
[data-only][hidden] {
    display: none !important
}

.addr-rows {
    display: grid;
    gap: 18px
}

/* 表示中のブロックだけで連番を振る */
.form {
    counter-reset: fs
}

.fs {
    counter-increment: fs
}

.fs legend b:empty::before {
    content: counter(fs)
}

.field .hint {
    font-size: 12px;
    color: var(--muted);
    margin: 6px 0 0
}

.opt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px
}

.form-row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chips label {
    position: relative;
    margin: 0 !important;
    font-weight: 700
}

.chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.chips span {
    display: inline-block;
    border: 1px solid #ccd2d5;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    font-size: 14px
}

.chips input:checked+span {
    background: #111;
    border-color: #111;
    color: #fff
}

.chips input:focus-visible+span {
    outline: 3px solid var(--brand);
    outline-offset: 2px
}

/* カラースウォッチ（生地の網目を軽く重ねて実物の印象に寄せる） */
.swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px
}

.swatch {
    position: relative;
    margin: 0 !important;
    font-weight: 700 !important;
    cursor: pointer
}

.swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.swatch .chip {
    display: block;
    aspect-ratio: 2/1;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .14);
    background-image: radial-gradient(rgba(0, 0, 0, .09) 1px, transparent 1.4px);
    background-size: 5px 5px
}

.swatch .chip.split {
    background-image: none
}

.swatch .nm {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3
}

.swatch input:checked~.chip {
    outline: 3px solid var(--ink);
    outline-offset: 2px
}

.swatch input:checked~.nm::before {
    content: "✓ ";
    color: var(--brand)
}

.swatch input:focus-visible~.chip {
    outline: 3px solid var(--brand);
    outline-offset: 2px
}

.swatch.original .chip {
    background: conic-gradient(#00aeef, #ec008c, #fff200, #00aeef)
}

.cmyk {
    display: none;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr) 2fr;
    align-items: end;
    background: var(--soft);
    border-radius: 14px;
    padding: 14px
}

.cmyk.open {
    display: grid
}

.cmyk .field label {
    font-size: 12px
}

.cmyk .preview {
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: rgba(0, 0, 0, .55)
}

.cmyk .note {
    grid-column: 1/-1
}

/* 商品別ブロック（複数商品選択時） */
.pblocks {
    display: grid;
    gap: 14px
}

.pblock {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 16px;
    padding: 18px;
    background: #fcfdfd;
    min-width: 0
}

.pblock-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px
}

.pblock-head h4 {
    margin: 0;
    font-size: 17px
}

#productChips input:checked+span::before {
    content: "✓ "
}

/* サイズ別枚数 */
.sizeqty {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px
}

.sizeqty .field {
    background: var(--soft);
    border-radius: 12px;
    padding: 10px 12px
}

.sizeqty .field label {
    font-size: 13px;
    margin-bottom: 4px
}

.sizeqty small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400
}

.sizeqty input {
    text-align: right
}

.total {
    font-weight: 900
}

/* 納期目安 */
.eta {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    background: #eef7f7;
    border: 1px solid #cfe9e9
}

.eta strong {
    font-size: 18px
}

.eta.warn {
    background: #fff3f2;
    border-color: #ffc9c5
}

.eta.warn strong {
    color: #d4382f
}

/* 入稿ガイド */
.upload-guide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.ug {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    font-size: 13px;
    cursor: pointer
}

.ug input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.ug h4 {
    margin: 8px 0 4px;
    font-size: 15px
}

.ug p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6
}

.ug .badbadge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.badge{
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px
}

.ug:has(input:checked) {
    border: 2px solid var(--ink);
    box-shadow: var(--shadow)
}

.ug:has(input:focus-visible) {
    outline: 3px solid var(--brand);
    outline-offset: 2px
}

.ficon {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 6px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 16px;
    color: #fff;
    background: #ff7c00
}

.ficon.img {
    background: #4a7bd8;
    font-size: 11px
}

.ficon.txt {
    background: #555;
    font-size: 13px
}

.ficon.req {
    background: var(--brand);
    font-size: 13px
}

.updetail {
    display: none;
    background: var(--soft);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px
}

.updetail.open {
    display: block
}

.updetail ul {
    margin: 6px 0 0;
    padding-left: 20px
}

.drop {
    display: grid;
    gap: 8px;
    border: 2px dashed #b9c2c6;
    border-radius: 14px;
    padding: 16px;
    background: #fafbfb
}

.drop input {
    border: 0 !important;
    padding: 0 !important;
    background: none !important
}

/* ガイドページ */
.guide {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 44px;
    align-items: start
}

.toc {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 2px;
    font-size: 14px;
    font-weight: 700
}

.toc a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted)
}

.toc a:hover {
    background: var(--soft);
    color: var(--ink)
}

.guide>div>section {
    scroll-margin-top: 100px;
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--line)
}

.guide>div>section:last-child {
    border-bottom: 0
}

.guide h2 {
    font-size: 30px;
    margin: 0 0 14px;
    line-height: 1.3
}

.guide h3 {
    font-size: 19px;
    margin: 26px 0 8px
}

.guide .table {
    margin: 10px 0;
    font-size: 14px
}

.rule {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0
}

.rule div {
    background: var(--soft);
    border-radius: 14px;
    padding: 16px
}

.rule b {
    display: block;
    font-size: 12px;
    color: var(--muted)
}

.rule strong {
    font-size: 20px;
    line-height: 1.4
}

.ok-ng {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.ok-ng>div {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--line)
}

.ok-ng .ok {
    background: #f0faf6;
    border-color: #cbeedd
}

.ok-ng .ng {
    background: #fff6f5;
    border-color: #ffd6d2
}

.ok-ng h4 {
    margin: 0 0 6px
}

.ok-ng ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px
}

/* カラーチャート */
.color-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 14px
}

.color-chart figure {
    margin: 0
}

.color-chart .fab {
    aspect-ratio: 4/3;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .12);
    background-image: radial-gradient(rgba(0, 0, 0, .1) 1.2px, transparent 1.6px), linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .08));
    background-size: 6px 6px, 100% 100%
}

.color-chart figcaption {
    font-size: 13px;
    font-weight: 800;
    margin-top: 6px
}

.spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px
}

.spec th,
.spec td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top
}

.spec th {
    width: 30%;
    background: #f7f8f8
}

@media(max-width:980px) {
    .flow {
        grid-template-columns: 1fr 1fr
    }

    .flow li::after {
        display: none
    }

    .guide {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .toc {
        position: static;
        display: flex;
        flex-wrap: wrap
    }

    .upload-guide {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:640px) {
    .flow {
        grid-template-columns: 1fr
    }

    .form-row3,
    .rule,
    .ok-ng,
    .upload-guide {
        grid-template-columns: 1fr
    }

    .cmyk {
        grid-template-columns: repeat(4, 1fr)
    }

    .cmyk .preview {
        grid-column: 1/-1
    }

    .fs {
        padding: 18px 14px
    }

    .bulk-band {
        padding: 24px
    }

    .bulk-band h3 {
        font-size: 21px
    }

    .guide h2 {
        font-size: 25px
    }
}