@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

/* お問い合わせ・特注品見積依頼・商品お問い合わせ（入力・確認・完了）共通 */
.contact-main {
    padding-top: 15px; /* 他ページと同じくヘッダーとパンくずの間を空ける */
    color: #20252b;
    font-family: "Noto Sans JP", sans-serif;
}

.ct-container {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 24px;
    box-sizing: border-box;
}

.ct-container_narrow {
    max-width: 860px;
}

/* ヘッダー（ご注文方法・送料ページと共通のデザイン） */
.ct-header {
    position: relative;
    overflow: hidden;
    padding: 36px 42px 38px;
    border-top: 5px solid #0868a8;
    background-color: #f3f7fa;
    background-image: linear-gradient(90deg, rgba(8, 104, 168, 0.06) 1px, transparent 1px), linear-gradient(rgba(8, 104, 168, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.ct-header::after {
    content: attr(data-watermark);
    white-space: nowrap;
    position: absolute;
    right: 24px;
    bottom: -12px;
    color: rgba(8, 104, 168, 0.08);
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
}

.ct-header_label {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #087a72;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.ct-header_title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: 0;
}

.ct-header_text {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.8;
}

/* ステップ */
.ct-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.ct-steps_item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    color: #9aa3aa;
    font-size: 13px;
    font-weight: 600;
}

.ct-steps_item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: #dfe4e8;
}

.ct-steps_item.is-done:not(:last-child)::after {
    background: #0868a8;
}

.ct-steps_num {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    place-items: center;
    border: 2px solid #dfe4e8;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ct-steps_item.is-current {
    color: #0868a8;
}

.ct-steps_item.is-current .ct-steps_num {
    border-color: #0868a8;
    background: #0868a8;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(8, 104, 168, 0.12);
}

.ct-steps_item.is-done {
    color: #0868a8;
}

.ct-steps_item.is-done .ct-steps_num {
    border-color: #0868a8;
    color: #0868a8;
}

/* 2カラム */
.ct-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas: "form aside";
    gap: 28px;
    align-items: start;
}

.ct-layout .ct-panel {
    grid-area: form;
}

.ct-aside {
    grid-area: aside;
    position: sticky;
    top: 216px;
    display: grid;
    gap: 12px;
}

.ct-channel {
    padding: 20px;
    border-top: 4px solid #087a72;
    background: #f1f8f7;
}

.ct-channel_label {
    margin: 0 0 6px;
    color: #087a72;
    font-size: 12px;
    font-weight: 700;
}

.ct-channel_tel {
    display: block;
    color: #20252b;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-decoration: none;
}

.ct-channel_note {
    margin: 4px 0 0;
    color: #4b555e;
    font-size: 12px;
}

.ct-channel_fax {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #cfe3e0;
    color: #4b555e;
    font-size: 12px;
}

.ct-channel_fax span {
    margin-left: 6px;
    color: #20252b;
    font-size: 16px;
    font-weight: 700;
}

.ct-link {
    position: relative;
    display: block;
    padding: 16px 36px 16px 18px;
    border: 1px solid #dfe4e8;
    background: #fff;
    color: #20252b;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ct-link::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 16px;
    color: #0868a8;
    font-size: 22px;
    transform: translateY(-55%);
}

.ct-link:hover {
    border-color: #0868a8;
    box-shadow: 0 6px 16px rgba(37, 56, 69, 0.08);
}

.ct-link_title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
}

.ct-link_text {
    display: block;
    color: #6a747c;
    font-size: 12px;
    line-height: 1.6;
}

/* フォームパネル */
.ct-panel {
    padding: 32px 36px 36px;
    border: 1px solid #dfe4e8;
    background: #fff;
    box-shadow: 0 10px 30px rgba(37, 56, 69, 0.06);
}

.ct-panel_title {
    margin: 0 0 6px;
    font-size: 20px;
    letter-spacing: 0;
}

.ct-panel_lead {
    margin: 0 0 24px;
    color: #59636c;
    font-size: 14px;
    line-height: 1.7;
}

.ct-alert {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-left: 4px solid #c0392b;
    background: #fdf2f1;
    color: #8f2a20;
    font-size: 14px;
}

.ct-alert_title {
    margin: 0 0 6px;
    font-weight: 700;
}

.ct-alert ul {
    margin: 0;
    padding-left: 1.2em;
    line-height: 1.7;
}

.ct-fieldset {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.ct-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 0 10px;
    border-bottom: 2px solid #20252b;
    font-size: 17px;
    font-weight: 700;
}

.ct-legend_note {
    color: #6a747c;
    font-size: 12px;
    font-weight: 500;
}

.ct-field {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 8px 20px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #eef1f3;
}

.ct-field_stack {
    grid-template-columns: 1fr;
}

.ct-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 11px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ct-field_stack .ct-label {
    padding-top: 0;
}

.ct-badge {
    padding: 1px 7px;
    border-radius: 3px;
    background: #eef1f3;
    color: #6a747c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.ct-badge_required {
    background: #c0392b;
    color: #fff;
}

.ct-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid #cbd4da;
    border-radius: 4px;
    background: #fff;
    color: #20252b;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ct-input::placeholder {
    color: #a3acb3;
}

.ct-input:hover {
    border-color: #9fb0bb;
}

.ct-input:focus {
    border-color: #0868a8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 104, 168, 0.15);
}

.ct-input.is-invalid {
    border-color: #c0392b;
    background: #fffafa;
}

.ct-textarea {
    min-height: 180px;
    resize: vertical;
}

.ct-help {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 0;
    color: #6a747c;
    font-size: 12px;
    line-height: 1.6;
}

.ct-counter {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.ct-error {
    margin: 6px 0 0;
    color: #c0392b;
    font-size: 13px;
    font-weight: 600;
}

.ct-control_pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ct-control_full {
    grid-column: 1 / -1;
    margin-top: 0;
}

.ct-control_address {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 10px;
}

.ct-select {
    position: relative;
}

.ct-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid #0868a8;
    border-bottom: 2px solid #0868a8;
    transform: rotate(45deg);
    pointer-events: none;
}

.ct-select select {
    padding-right: 36px;
    appearance: none;
    cursor: pointer;
}

/* 単位つき入力（個・円／個・℃・％） */
.ct-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-unit .ct-input {
    flex: 1;
    min-width: 0;
}

.ct-unit_short {
    max-width: 280px;
}

.ct-textarea_short {
    min-height: 90px;
}

.ct-unit_suffix {
    flex: 0 0 auto;
    color: #4b555e;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.ct-control_pair .ct-subLabel {
    display: block;
    margin-bottom: 4px;
    color: #6a747c;
    font-size: 12px;
}

/* 切り替えボタン型のラジオ */
.ct-radio {
    display: inline-flex;
    border: 1px solid #cbd4da;
    border-radius: 4px;
    overflow: hidden;
}

.ct-radio_item {
    position: relative;
}

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

.ct-radio_item span {
    display: block;
    min-width: 120px;
    padding: 11px 20px;
    box-sizing: border-box;
    background: #fff;
    color: #4b555e;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ct-radio_item + .ct-radio_item span {
    border-left: 1px solid #cbd4da;
}

.ct-radio_item input:checked + span {
    background: #0868a8;
    color: #fff;
}

.ct-radio_item input:focus-visible + span {
    outline: 3px solid rgba(8, 104, 168, 0.35);
    outline-offset: -3px;
}

/* 商品お問い合わせ: 対象商品 */
.ct-product {
    margin-bottom: 28px;
    padding: 18px 20px;
    border-left: 4px solid #0868a8;
    background: #f3f7fa;
}

.ct-product_label {
    margin: 0 0 4px;
    color: #0868a8;
    font-size: 12px;
    font-weight: 700;
}

.ct-product_name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.ct-product_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 6px 0 0;
    color: #59636c;
    font-size: 12px;
}

.ct-product_link {
    color: #0868a8;
    font-weight: 600;
}

.ct-product_link::after {
    content: " ›";
}

/* 商品お問い合わせ: 種類の選択カード */
.ct-typeOptions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.ct-typeOption {
    position: relative;
    display: block;
    cursor: pointer;
}

.ct-typeOption input {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 14px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0868a8;
    -webkit-appearance: radio; /* 共通CSSの appearance: none を打ち消して丸を表示 */
    appearance: auto;
}

.ct-typeOption_body {
    display: block;
    height: 100%;
    padding: 14px 14px 14px 42px;
    box-sizing: border-box;
    border: 1px solid #cbd4da;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ct-typeOption:hover .ct-typeOption_body {
    border-color: #9fb0bb;
}

.ct-typeOption input:checked + .ct-typeOption_body {
    border-color: #0868a8;
    background: #f3f7fa;
    box-shadow: 0 0 0 1px #0868a8;
}

.ct-typeOption input:focus-visible + .ct-typeOption_body {
    outline: 3px solid rgba(8, 104, 168, 0.35);
    outline-offset: 2px;
}

.ct-typeOption_title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ct-typeOption_note {
    display: block;
    margin-top: 4px;
    color: #6a747c;
    font-size: 12px;
    line-height: 1.5;
}

/* 選択した種類の項目だけ表示（inquiry.js が active を付け替える） */
.ct-conditional {
    display: none;
}

.ct-conditional.active {
    display: block;
}

.ct-input_half {
    max-width: 280px;
}

/* 商品未指定 */
.ct-empty {
    padding: 12px 4px;
    text-align: center;
}

.ct-empty_title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.ct-empty_text {
    margin: 0;
    color: #59636c;
    font-size: 14px;
    line-height: 1.8;
}

/* ボタン */
.ct-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.ct-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 56px;
    padding: 0 32px;
    box-sizing: border-box;
    border: 1px solid #0868a8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.ct-button_primary {
    background: #0868a8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(8, 104, 168, 0.25);
}

.ct-button_primary::after {
    content: "›";
    margin-left: 12px;
    font-size: 22px;
    line-height: 1;
}

.ct-button_primary:hover {
    background: #06588f;
}

.ct-button_secondary {
    background: #fff;
    color: #0868a8;
}

.ct-button_secondary:hover {
    background: #f3f7fa;
}

.ct-button:focus-visible {
    outline: 3px solid rgba(8, 104, 168, 0.35);
    outline-offset: 3px;
}

/* 注記 */
.ct-notes {
    margin: 32px 0 0;
    padding: 16px 20px 16px 36px;
    background: #f5f7f8;
    color: #59636c;
    font-size: 12px;
    line-height: 1.8;
}

.ct-notes a {
    color: #0868a8;
}

/* 確認画面 */
.ct-confirm {
    margin: 0;
    border-top: 2px solid #20252b;
}

.ct-confirm_row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    padding: 16px 4px;
    border-bottom: 1px solid #e6eaed;
}

.ct-confirm_row dt {
    color: #4b555e;
    font-size: 13px;
    font-weight: 700;
}

.ct-confirm_row dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}

.ct-confirm_row-message dd {
    padding: 14px 16px;
    background: #f5f7f8;
    white-space: pre-wrap;
}

.ct-confirm_heading {
    margin: 28px 0 0;
    padding: 0 0 8px;
    color: #087a72;
    font-size: 14px;
    letter-spacing: 0;
}

.ct-confirm_heading + .ct-confirm {
    border-top-width: 1px;
}

.ct-confirm_row-pre dd {
    white-space: pre-wrap;
}

/* 完了画面 */
.ct-complete {
    text-align: center;
    padding-top: 48px;
    padding-bottom: 44px;
}

.ct-complete_icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #087a72;
    box-shadow: 0 0 0 10px rgba(8, 122, 114, 0.12);
}

.ct-complete_icon::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 27px;
    width: 16px;
    height: 28px;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(45deg);
}

.ct-complete_title {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: 0;
}

.ct-complete_text {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
}

.ct-complete_sub {
    margin: 16px auto 0;
    max-width: 560px;
    color: #6a747c;
    font-size: 13px;
    line-height: 1.8;
}

@media screen and (max-width: 991px) {
    .ct-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "aside"
            "form";
    }

    .ct-aside {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 700px) {
    .ct-container {
        padding: 0 13px;
        margin-bottom: 56px;
    }

    .ct-header {
        padding: 26px 22px 28px;
    }

    .ct-header::after {
        font-size: 40px;
    }

    .ct-header_title {
        font-size: 26px;
    }

    .ct-steps {
        margin: 22px 0 24px;
    }

    .ct-steps_item {
        width: 96px;
    }

    .ct-aside {
        grid-template-columns: 1fr;
    }

    .ct-panel {
        padding: 22px 16px 26px;
    }

    .ct-field,
    .ct-confirm_row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ct-label {
        padding-top: 0;
    }

    .ct-help {
        flex-direction: column;
        gap: 2px;
    }

    .ct-control_address {
        grid-template-columns: 1fr;
    }

    .ct-actions,
    .ct-actions_split {
        flex-direction: column-reverse;
    }

    .ct-actions:not(.ct-actions_split) {
        flex-direction: column;
    }

    .ct-button {
        width: 100%;
        min-width: 0;
    }

    .ct-typeOptions {
        grid-template-columns: 1fr;
    }

    .ct-input_half {
        max-width: none;
    }

    .ct-radio {
        display: flex;
    }

    .ct-radio_item {
        flex: 1;
    }

    .ct-radio_item span {
        min-width: 0;
    }

    .ct-unit_short {
        max-width: none;
    }
}

.ct-nowrap {
    white-space: nowrap;
}
