/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

.container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ヘッダー */
.header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: #374151;
}

/* メインコンテンツ */
.main {
    min-height: calc(100vh - 4rem);
    padding: 2rem 0;
}

.page-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.pink-dot {
    color: #ec4899;
}

.required {
    color: #ec4899;
    font-weight: 600;
}

/* エラーメッセージ */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* フォーム */
.form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid #ec4899;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

.form-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-hint.orange {
    color: #ea580c;
}

/* 数量コントロール */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #fce7f3;
    border-color: #ec4899;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 6rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.quantity-unit {
    margin-left: 0.5rem;
    color: #374151;
}

/* 価格表示 */
.price-detail {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.price-item {
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.price-sub-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    padding-top: 0.5rem;
    border-top: 1px solid #d1d5db;
}

.price-grand-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: bold;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #d1d5db;
}

/* チェックボックスとラジオボタン */
.form-checkbox-label,
.form-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.form-checkbox-label input[type="checkbox"],
.form-radio-label input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #ec4899;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .radio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 郵便番号入力 */
.postal-code-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 利用規約スクロール */
.terms-scroll {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
    max-height: 15rem;
    overflow-y: auto;
    font-size: 0.875rem;
    border: 2px solid #d1d5db;
    margin-bottom: 1rem;
}

.terms-scroll p {
    margin-bottom: 0.5rem;
}

.scroll-warning {
    color: #ea580c;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* 送信ボタン */
.form-submit {
    margin-top: 2rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #ec4899;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background-color: #db2777;
}

.submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* フッター */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #111827;
}

.footer-info {
    margin-top: 1rem;
}

.footer-info h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.icon-phone {
    width: 1.25rem;
    height: 1.25rem;
    color: #2563eb;
}

.footer-phone {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-phone:hover {
    color: #1d4ed8;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* フォームグリッド */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

