body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #181C18;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #193B4B;
    border-bottom: 2px solid #193B4B;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.process-steps li {
    flex-grow: 1;
    text-align: center;
    padding: 10px 0;
    color: #6c757d;
    font-weight: bold;
    position: relative;
    background-color: #e9ecef;
}

.process-steps li.active {
    background-color: #193B4B;
    color: white;
}

.process-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 30px;
    height: 100%;
    background-color: #e9ecef;
    transform: skewX(-30deg);
    z-index: 1;
}

.process-steps li.active:not(:last-child)::after {
    background-color: #193B4B;
}

.process-steps li:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 0;
    right: -16px;
    width: 30px;
    height: 100%;
    background-color: #ced4da;
    transform: skewX(-30deg);
    z-index: 0;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.checkbox-group,
.radio-group {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}

.checkbox-group > div,
.radio-group > div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-right: 5px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-group > div > label,
.radio-group > div > label {
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.form-group .note {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    margin-left: 10px;
    text-align: left;
}

input[type="text"],
input[type="number"],
input[type="tel"],
textarea,
input[type="email"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 5px;
}

.checkbox-group label {
    font-weight: normal;
}

.button-group {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
}

button {
    background-color: #193B4B;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    margin: 5px;
}

button:hover {
    opacity: 0.9;
}

.form-group:has(#郵便番号) {
    display: block;
}

.form-group:has(#郵便番号) input[type="text"] {
    width: calc(100% - 22px);
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#郵便番号検索 {
    margin: 0 auto;
    display: block;
    margin-top: 10px;
}

.required {
    background-color: #FF0000;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 8px;
    vertical-align: middle;
}

.note {
    font-size: 0.9em;
    color: #555;
    margin-left: 10px;
}

.category_choice {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category_choice label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
}

.inspector-field {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.inspector-field label {
    display: inline-flex;
    align-items: center;
}

.inspector-field input[type="text"] {
    width: calc(100% - 100px);
    display: inline-block;
}

#confirm-content p {
    margin-bottom: 8px;
    line-height: 1.5;
}
#confirm-content strong {
    display: inline-block;
    width: 150px;
    color: #193B4B;
}

.button-group-horizontal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.button-group-horizontal button {
    margin: 5px;
}

button:not(#郵便番号検索):not(.button-group-horizontal button) {
    display: block; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    h1, h2, h3 {
        font-size: 1.5em;
        padding-bottom: 5px;
        margin-bottom: 15px;
    }

    .process-steps {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .process-steps li {
        width: 50%;
        box-sizing: border-box;
        border-bottom: 1px solid #e0e0e0;
    }

    .process-steps li:nth-child(odd) {
        border-right: 1px solid #e0e0e0;
    }

    .process-steps li:nth-last-child(-n+2):nth-child(even),
    .process-steps li:nth-last-child(-n+1):nth-child(odd) {
        border-bottom: none;
    }

    .process-steps li:not(:last-child)::after,
    .process-steps li:not(:last-child)::before {
        display: none;
    }

    input[type="text"],
    input[type="number"],
    input[type="tel"],
    textarea,
    input[type="email"] {
        width: 100%;
        padding: 8px;
        font-size: 1em;
    }

    .form-group:has(#郵便番号) input[type="text"] {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    #郵便番号検索 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        font-size: 14px;
        padding: 8px 15px;
    }

    .button-group-horizontal {
        flex-direction: column; 
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .button-group-horizontal button {
        width: 80%;
        max-width: 250px;
        margin: 5px auto;
        font-size: 14px;
    }

    button:not(#郵便番号検索):not(.button-group-horizontal button) {
        width: 80%;
        max-width: 250px;
        margin: 20px auto 10px auto;
        font-size: 14px;
    }

    .inspector-field input[type="text"] {
        width: calc(100% - 10px);
    }

    #confirm-content strong {
        width: 100px;
        font-size: 0.9em;
    }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 25px;
    }

    h1, h2, h3 {
        font-size: 1.8em;
    }

    .process-steps li {
        padding: 12px 0;
    }

    input[type="text"],
    input[type="number"],
    input[type="tel"],
    textarea,
    input[type="email"] {
        width: calc(100% - 22px);
        padding: 10px;
        font-size: 15px;
    }

    .form-group:has(#郵便番号) input[type="text"] {
        width: calc(60% - 22px); 
        display: inline-block;
        margin-right: 10px;
        vertical-align: bottom;
        margin-left: 0;
        margin-right: 10px;
    }
    #郵便番号検索 {
        display: inline-block;
        width: auto;
        vertical-align: bottom;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        font-size: 15px;
    }
    .form-group:has(#郵便番号) label {
        display: block;
    }

    .button-group-horizontal {
        flex-direction: row;
        gap: 25px;
    }

    .button-group-horizontal button {
        width: auto;
        padding: 10px 25px;
        font-size: 15px;
    }

    button:not(#郵便番号検索):not(.button-group-horizontal button) {
        width: auto;
        padding: 10px 25px;
        font-size: 15px;
    }

    .inspector-field input[type="text"] {
        width: calc(100% - 120px);
    }

    #confirm-content strong {
        width: 130px;
        font-size: inherit;
    }
}

/* 申込フォーム説明文 */
.entry-description {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.entry-description h2 {
    color: #193B4B;
    font-size: 1.2em;
    border-bottom: 1px solid #b8daff;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.entry-description h3 {
    color: #193B4B;
    font-size: 1.1em;
    border-bottom: none;
    padding-bottom: 5px;
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: left;
}

.entry-description p {
    margin: 10px 0;
}

.entry-description ul,
.entry-description ol {
    margin: 10px 0;
    padding-left: 25px;
}

.entry-description li {
    margin-bottom: 5px;
}

.entry-description .note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.95em;
}

.entry-description .important {
    color: #c00;
    font-weight: bold;
}

@media screen and (max-width: 767px) {
    .entry-description {
        padding: 15px;
        margin-bottom: 20px;
    }

    .entry-description h2 {
        font-size: 1.1em;
    }

    .entry-description h3 {
        font-size: 1em;
    }
}

/* 情報セクション（注文の流れ・お急ぎの方へ・返品キャンセル） */
.info-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-section h3 {
    color: #193B4B;
    font-size: 1.1em;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.info-section h4 {
    color: #193B4B;
    font-size: 1em;
    margin-top: 15px;
    margin-bottom: 8px;
    text-align: left;
}

.info-section p {
    margin: 8px 0;
    line-height: 1.6;
}

.info-section .notice {
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.flow-list {
    margin: 0;
    padding-left: 25px;
}

.flow-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-list {
    margin: 0;
    padding-left: 20px;
}

.info-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.text-red {
    color: #c00;
    font-weight: bold;
}

/* 来社対応希望セクション */
.visit-section {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.visit-section h3 {
    color: #856404;
    font-size: 1.1em;
    border-bottom: 1px solid #ffcc02;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.visit-options {
    margin-left: 20px;
    padding: 15px;
    background: #fffef5;
    border-radius: 4px;
}

.visit-option-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.visit-option-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.visit-option-detail {
    margin-left: 25px;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.visit-option-detail .note {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

@media screen and (max-width: 767px) {
    .info-section {
        padding: 15px;
    }

    .info-section h3 {
        font-size: 1em;
    }

    .visit-section {
        padding: 15px;
    }

    .visit-options {
        margin-left: 10px;
        padding: 10px;
    }

    .visit-option-detail {
        margin-left: 15px;
    }
}