* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fdf2f8;
    min-height: 100vh;
}

/* ヘッダー */
.header {
    background: white;
    border-bottom: 3px solid #ec4899;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #ec4899;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #be185d;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-links a:hover {
    color: #ec4899;
}

/* メインコンテンツ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.15);
    border: 2px solid #f9a8d4;
}

h1 {
    text-align: center;
    background: linear-gradient(135deg, #ec4899, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 700;
    border-bottom: 3px solid #ec4899;
    padding-bottom: 15px;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    padding: 18px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}

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

.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #444;
    font-size: 16px;
}

.required {
    color: #ef4444;
    font-size: 12px;
    margin-left: 5px;
}

/* 使用用途は画像付きのまま */
.radio-group.with-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.radio-option.with-image {
    position: relative;
    cursor: pointer;
}

.radio-option.with-image input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option.with-image .option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 3px solid #f9a8d4;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
    font-weight: 500;
    min-height: 130px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.radio-option.with-image .option-image {
    width: 100%;
    height: 85px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fdf2f8;
    flex-shrink: 0;
}

.radio-option.with-image .option-text {
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-option.with-image:hover .option-label {
    border-color: #ec4899;
    background: #fdf2f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.2);
}

.radio-option.with-image.selected .option-label {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fce7f3, #f3e8ff);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25);
    transform: translateY(-2px);
}

.radio-option.with-image.selected .option-text {
    color: #be185d;
    font-weight: 700;
}

.radio-option.with-image.selected .option-image {
    border-bottom: 4px solid #ec4899;
}

/* シンプルなボタンスタイル（鍵の種別・メーカー用） */
.radio-group.simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.radio-option.simple {
    position: relative;
}

.radio-option.simple input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option.simple .option-label {
    display: block;
    padding: 15px 24px;
    border: 3px solid #f9a8d4;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.radio-option.simple:hover .option-label {
    border-color: #ec4899;
    background: #fdf2f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.2);
}

.radio-option.simple.selected .option-label {
    border-color: #ec4899;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.text-input, .email-input, .textarea-input {
    width: 100%;
    padding: 14px 18px;
    border: 3px solid #f9a8d4;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.text-input:focus, .email-input:focus, .textarea-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 8px 6px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #be185d, #9d174d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.2);
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.button-group {
    text-align: center;
    margin-top: 40px;
}

.estimate-box {
    background: linear-gradient(135deg, #fce7f3, #f3e8ff);
    border: 3px solid #ec4899;
    color: #be185d;
    padding: 30px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
}

.estimate-box.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.estimate-box h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
}

.price {
    font-size: 36px;
    font-weight: 700;
    margin: 20px 0;
    background: linear-gradient(135deg, #ec4899, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.delivery-time {
    font-size: 18px;
    margin: 15px 0;
    font-weight: 500;
}

.info-box {
    background: linear-gradient(135deg, #fdf2f8, #f9fafb);
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    border: 2px solid #f9a8d4;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.08);
}

.info-box h4 {
    margin-bottom: 20px;
    color: #be185d;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #f9a8d4;
    padding-bottom: 8px;
}

.info-box p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.info-box p strong {
    color: #be185d;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* フッター */
.footer {
    background: white;
    border-top: 3px solid #ec4899;
    padding: 40px 0;
    margin-top: 60px;
    box-shadow: 0 -2px 8px rgba(236, 72, 153, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #ec4899;
}

.footer-copy {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

/* メディアクエリ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .form-wrapper {
        padding: 25px;
    }
    
    .radio-group.with-images {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .radio-group.simple {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .radio-group.with-images {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .radio-option.with-image .option-label {
        min-height: 110px;
    }
    
    .radio-option.with-image .option-image {
        height: 70px;
    }
    
    .radio-option.with-image .option-text {
        padding: 10px 8px;
        font-size: 13px;
    }
}