@charset "UTF-8";

/* ==========================================================================
   HANGER BAR COLLECTION サイズオーダーフォーム
   ※既存サイト影響回避のため全て .hangarbar-order-form を起点とする
   ========================================================================== */

.hangarbar-order-form {
    color: #111;
    /* font-family: inherit; */
    line-height: 1.7;
    background: #fff;
}

.hangarbar-order-form * {
    box-sizing: border-box;
}

.hangarbar-order-form p,
.hangarbar-order-form h1,
.hangarbar-order-form h2,
.hangarbar-order-form h3,
.hangarbar-order-form ol,
.hangarbar-order-form ul,
.hangarbar-order-form li {
    margin: 0;
    padding: 0;
}

.hangarbar-order-form a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.hangarbar-order-form a:hover {
    text-decoration: none;
}

.hangarbar-order-form button,
.hangarbar-order-form input {
    /* font-family: inherit; */
}

/* ==========================================================================
   Page / Container
   ========================================================================== */

.hangarbar-order-form .hb-page {
    width: 100%;
    background: #fff;
}

.hangarbar-order-form .hb-container {
    max-width: 1110px;
    margin: 0 auto;
    padding: 72px 15px 96px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hangarbar-order-form .hb-header {
    margin-bottom: 80px;
}

.hangarbar-order-form .hb-page-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    margin-bottom: 8px;
}

.hangarbar-order-form .hb-lead {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.9;
}

.hangarbar-order-form .hb-order-notice {
    font-size: 14px;
    line-height: 1.9;
}

.hangarbar-order-form .hb-order-notice a {
    font-weight: 500;
}

/* ==========================================================================
   Guide
   ========================================================================== */

.hangarbar-order-form .hb-guide {
    margin-bottom: 100px;
    padding: 0;
    background: transparent;
}

.hangarbar-order-form .hb-guide-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.hangarbar-order-form .hb-guide-body {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 26px;
}

.hangarbar-order-form .hb-flow-list {
    list-style: none;
    display: grid;
    gap: 10px;
    max-width: 420px;
}

.hangarbar-order-form .hb-flow-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: baseline;
    column-gap: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.hangarbar-order-form .hb-flow-number {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.hangarbar-order-form .hb-flow-text {
    font-weight: 500;
}

/* ==========================================================================
   Step Common
   ========================================================================== */

.hangarbar-order-form .hb-form {
    margin-top: 0;
}

.hangarbar-order-form .hb-step {
    margin-bottom: 58px;
}

.hangarbar-order-form .hb-step-heading {
    display: flex;
    align-items: flex-end;
    /* justify-content: space-between; */
    gap: 40px;
    margin-bottom: 28px;
    border-bottom: none;
    padding-bottom: 0;
}

.hangarbar-order-form .hb-step-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.hangarbar-order-form .hb-step-number {
    display: inline-block;
    width: auto;
    height: auto;
    min-width: 0;
    background: transparent;
    color: #111;
    border-radius: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.hangarbar-order-form .hb-step-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.hangarbar-order-form .hb-error-message {
    display: none;
    color: #d60000;
    font-size: 13px;
    font-weight: 500;
    /* line-height: 1.5; */
}

.hangarbar-order-form .hb-error-message.is-active {
    display: block;
}

/* ==========================================================================
   Step1: Product Grid
   ========================================================================== */

.hangarbar-order-form .hb-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 32px;
    max-width: 760px;
}

.hangarbar-order-form .hb-product-card {
    position: relative;
    cursor: pointer;
    text-align: center;
    padding: 0 4px 22px;
    transition: opacity 0.2s ease;
}

.hangarbar-order-form .hb-product-card:hover {
    opacity: 0.55;
}

.hangarbar-order-form .hb-product-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 12px;
    height: 12px;
    border: 1px solid #111;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #fff;
}

.hangarbar-order-form .hb-product-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #111;
    opacity: 0;
}

.hangarbar-order-form .hb-product-card.is-selected::after {
    opacity: 1;
}

.hangarbar-order-form .hb-product-card.is-selected {
    outline: none;
}

.hangarbar-order-form .hb-product-card img {
    display: block;
    width: 100%;
    max-width: 132px;
    height: auto;
    margin: 0 auto 10px;
}

.hangarbar-order-form .hb-product-card-ttl {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.hangarbar-order-form .hb-product-card-txt {
    display: none;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* ==========================================================================
   Step2: Finish Grid
   ========================================================================== */

/* .hangarbar-order-form .hb-finish-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 34px 44px;
    align-items: flex-start;
}

.hangarbar-order-form .hb-finish-card {
    position: relative;
    cursor: pointer;
    text-align: center;
    padding: 0 0 22px;
    min-width: 120px;
    transition: opacity 0.2s ease;
}

.hangarbar-order-form .hb-finish-card:hover {
    opacity: 0.55;
}

.hangarbar-order-form .hb-finish-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 12px;
    height: 12px;
    border: 1px solid #111;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #fff;
}

.hangarbar-order-form .hb-finish-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #111;
    opacity: 0;
}

.hangarbar-order-form .hb-finish-card.is-selected::after {
    opacity: 1;
}

.hangarbar-order-form .hb-finish-card.is-selected {
    outline: none;
}

.hangarbar-order-form .hb-finish-swatch {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border: 1px solid #999;
}

.hangarbar-order-form .hb-finish-swatch--white {
    background: #fff;
}

.hangarbar-order-form .hb-finish-swatch--black {
    background: #161616;
    border-color: #161616;
}

.hangarbar-order-form .hb-finish-card span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
} */

/* ==========================================================================
   Step2: Finish Grid
   ========================================================================== */

.hangarbar-order-form .hb-finish-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 32px;
    max-width: 760px;
    align-items: flex-start;
}

.hangarbar-order-form .hb-finish-card {
    position: relative;
    cursor: pointer;
    text-align: center;
    padding: 0 4px 22px;
    min-width: 0;
    width: 100%;
    transition: opacity 0.2s ease;
}

.hangarbar-order-form .hb-finish-card:hover {
    opacity: 0.55;
}

.hangarbar-order-form .hb-finish-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 12px;
    height: 12px;
    border: 1px solid #111;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #fff;
}

.hangarbar-order-form .hb-finish-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #111;
    opacity: 0;
}

.hangarbar-order-form .hb-finish-card.is-selected::after {
    opacity: 1;
}

.hangarbar-order-form .hb-finish-card.is-selected {
    outline: none;
}

.hangarbar-order-form .hb-finish-swatch {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border: 1px solid #999;
}

.hangarbar-order-form .hb-finish-swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .hangarbar-order-form .hb-finish-swatch--white {
    background: #fff;
}

.hangarbar-order-form .hb-finish-swatch--black {
    background: #161616;
    border-color: #161616;
} */

.hangarbar-order-form .hb-finish-card span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Step3: Dimensions Layout
   ========================================================================== */

.hangarbar-order-form .hb-dimension-layout {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 140px;
    align-items: start;
}

.hangarbar-order-form .hb-dimension-control {
    /* padding-top: 34px; */
}

.hangarbar-order-form .hb-dimension-inputs {
    display: grid;
    gap: 30px;
}

.hangarbar-order-form .hb-input-block {
    display: flex;
    flex-direction: column;
}

.hangarbar-order-form .hb-input-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 12px;
}

.hangarbar-order-form .hb-input-row label {
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    line-height: 1;
}

.hangarbar-order-form .hb-input-row input {
    width: 100%;
    height: 46px;
    border: 1px solid #8d8d8d;
    border-radius: 0;
    background: #fff;
    padding: 6px 8px;
    color: #111;
    font-size: 15px;
    line-height: 1;
    appearance: none;
}

.hangarbar-order-form .hb-input-row input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
}

.hangarbar-order-form .hb-input-error {
    display: none;
    margin-top: 10px;
    color: #d60000;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.hangarbar-order-form .hb-input-block.is-error .hb-input-row input {
    border-color: #d60000;
    background: #fffafa;
}

.hangarbar-order-form .hb-input-block.is-error .hb-input-error {
    display: block;
}

/* ==========================================================================
   Drawing Panel
   ========================================================================== */

.hangarbar-order-form .hb-drawing-panel {
    position: relative;
}

.hangarbar-order-form .hb-drawing-image-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 240px;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.hangarbar-order-form .hb-drawing-stage {
    position: relative;
    width: 100%;
    max-width: none;
    height: var(--hb-drawing-stage-height, auto);
    line-height: 0;
    overflow: visible;
}

.hangarbar-order-form .hb-drawing-stage img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.hangarbar-order-form .hb-drawing-stage.has-reference-height img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.hangarbar-order-form .hb-drawing-stage img[src=""] {
    min-height: 240px;
    background: #fafafa;
}

.hangarbar-order-form .hb-drawing-stage.has-reference-height img[src=""] {
    min-height: 0;
}

/* 図面上の寸法ラベル共通 */
.hangarbar-order-form .hb-drawing-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
    min-width: 26px;
    padding: 1px 3px;
    transform: translate(-50%, -50%);
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.hangarbar-order-form .hb-drawing-label.is-visible {
    display: inline-block;
}

/* 入力値ラベル */
.hangarbar-order-form .hb-drawing-label--form {
    min-width: 32px;
    padding: 0px 4px;
    border: none;
    background: rgba(255, 255, 255, 0);
    font-size: 11px;
    font-weight: 500;
}

/* 固定値ラベル */
.hangarbar-order-form .hb-drawing-label--fixed {
    border: none;
    background: rgba(255, 255, 255, 0.96);
}

/* 算出値ラベル */
.hangarbar-order-form .hb-drawing-label--calculated {
    border: none;
    background: rgba(255, 255, 255, 0);
}

/* hb_debug=1 用 */
.hangarbar-order-form .hb-drawing-stage.is-debug {
    cursor: crosshair;
}

.hangarbar-order-form .hb-drawing-stage.is-debug::after {
    content: "debug: click drawing to get position";
    position: absolute;
    right: 4px;
    bottom: 4px;
    z-index: 20;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   Range Box
   ========================================================================== */

.hangarbar-order-form .hb-range-box {
    display: inline-block;
    min-width: 260px;
    margin-top: 4px;
    padding: 0;
}

.hangarbar-order-form .hb-range-title {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.hangarbar-order-form .hb-range-text {
    display: none;
    padding: 0;
    border-left: none;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.hangarbar-order-form .hb-range-text.is-active {
    display: block;
}

.hangarbar-order-form .hb-available-range {
    margin-right: 30px;
}

/* ==========================================================================
   Issue / Submit Area
   ========================================================================== */

.hangarbar-order-form .hb-issue-section {
    margin-top: 18px;
    padding-top: 36px;
}

.hangarbar-order-form .hb-issue-title {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.hangarbar-order-form .hb-submit-area {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: center;
}

.hangarbar-order-form .hb-generate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    height: 40px;
    padding: 0 28px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: opacity 0.2s ease;
}

.hangarbar-order-form .hb-generate-button:hover {
    opacity: 0.65;
}

.hangarbar-order-form .hb-result {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: auto;
    width: 410px;
    margin-top: 20px;
}

.hangarbar-order-form .hb-result input {
    width: 320px;
    max-width: 100%;
    height: 38px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    text-align: center;
}

.hangarbar-order-form .hb-result input::placeholder {
    color: #aaa;
}

/* .hangarbar-order-form .hb-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hangarbar-order-form .hb-copy-button:hover {
    background: #111;
    color: #fff;
}

.hangarbar-order-form .hb-copy-button.is-success {
    background: #111;
    color: #fff;
} */

.hangarbar-order-form .hb-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: auto;
    width: 410px;
    margin-top: 20px;
}

.hangarbar-order-form .hb-result input {
    width: 320px;
    max-width: 100%;
    height: 38px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.hangarbar-order-form .hb-result input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
}

.hangarbar-order-form .hb-result input::placeholder {
    color: #aaa;
}

.hangarbar-order-form .hb-copy-status {
    min-height: 18px;
    color: #111;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================================================
   Footer Note
   ========================================================================== */

.hangarbar-order-form .hb-footer-note {
    margin-top: 58px;
    margin-bottom: 60px;
    padding: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.8;
}

.hangarbar-order-form .hb-footer-note a {
    font-weight: 500;
}


.sp-only {
    display: none;
}

.pc-only {
    display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
    .hangarbar-order-form .hb-container {
        padding: 42px 18px 68px;
    }

    .hangarbar-order-form .hb-page-title {
        font-size: 20px;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .hangarbar-order-form .hb-header {
        margin-bottom: 38px;
    }

    .hangarbar-order-form .hb-lead,
    .hangarbar-order-form .hb-order-notice,
    .hangarbar-order-form .hb-guide-body {
        font-size: 13px;
        line-height: 1.85;
    }

    .hangarbar-order-form .hb-guide {
        margin-bottom: 46px;
    }

    .hangarbar-order-form .hb-guide-title {
        font-size: 18px;
    }

    .hangarbar-order-form .hb-flow-list {
        gap: 8px;
    }

    .hangarbar-order-form .hb-flow-item {
        grid-template-columns: 28px 1fr;
        font-size: 14px;
    }

    .hangarbar-order-form .hb-flow-number {
        font-size: 18px;
    }

    .hangarbar-order-form .hb-step {
        margin-bottom: 50px;
    }

    .hangarbar-order-form .hb-step-heading {
        display: block;
        margin-bottom: 24px;
    }

    .hangarbar-order-form .hb-step-title-wrap {
        gap: 10px;
    }

    .hangarbar-order-form .hb-step-number {
        font-size: 22px;
    }

    .hangarbar-order-form .hb-step-title {
        font-size: 18px;
    }

    .hangarbar-order-form .hb-error-message {
        margin-top: 8px;
    }

    .hangarbar-order-form .hb-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 20px;
        max-width: none;
    }

    .hangarbar-order-form .hb-product-card {
        padding-bottom: 22px;
    }

    .hangarbar-order-form .hb-product-card img {
        max-width: 122px;
    }

    .hangarbar-order-form .hb-product-card-ttl {
        font-size: 13px;
    }

    /* .hangarbar-order-form .hb-finish-grid {
        gap: 30px;
    }

    .hangarbar-order-form .hb-finish-card {
        min-width: 112px;
    }

    .hangarbar-order-form .hb-finish-swatch {
        width: 52px;
        height: 52px;
    } */

    /* .hangarbar-order-form .hb-finish-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 20px;
        width: 100%;
    }

    .hangarbar-order-form .hb-finish-card {
        min-width: 0;
        width: 100%;
        padding-bottom: 22px;
    }

    .hangarbar-order-form .hb-finish-swatch {
        width: 52px;
        height: 52px;
    } */

    .hangarbar-order-form .hb-finish-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 20px;
        max-width: none;
        width: 100%;
    }

    .hangarbar-order-form .hb-finish-card {
        min-width: 0;
        width: 100%;
        padding-bottom: 22px;
    }

    .hangarbar-order-form .hb-finish-swatch {
        width: 50px;
        height: 50px;
    }

    .hangarbar-order-form .hb-dimension-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hangarbar-order-form .hb-dimension-control {
        padding-top: 0;
    }

    .hangarbar-order-form .hb-dimension-inputs {
        max-width: 260px;
    }

    .hangarbar-order-form .hb-drawing-image-wrap {
        min-height: 180px;
        justify-content: flex-start;
    }

    .hangarbar-order-form .hb-drawing-stage {
        max-width: none;
    }

    .hangarbar-order-form .hb-drawing-label {
        min-width: 22px;
        padding: 1px 2px;
        font-size: 9px;
    }

    .hangarbar-order-form .hb-drawing-label--form {
        min-width: 26px;
        padding: 2px 3px;
        font-size: 9px;
    }

    .hangarbar-order-form .hb-range-box {
        min-width: 0;
        width: 100%;
    }

    .hangarbar-order-form .hb-available-range {
        margin-right: 0px;
    }

    .hangarbar-order-form .hb-issue-section {
        margin-top: 0px;
    }

    .hangarbar-order-form .hb-issue-title {
        font-size: 17px;
    }

    .hangarbar-order-form .hb-generate-button {
        width: 100%;
        height: 42px;
    }

    .hangarbar-order-form .hb-result {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hangarbar-order-form .hb-result input {
        width: 100%;
        height: 40px;
        font-size: 14px;
        text-align: center;
    }

    /* .hangarbar-order-form .hb-copy-button {
        width: 100%;
        height: 40px;
    } */

    .hangarbar-order-form .hb-result {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hangarbar-order-form .hb-footer-note {
        margin-top: 15px;
        font-size: 12px;
    }

    .sp-only {
        display: block;
    }

    .pc-only {
        display: none;
    }
}