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

body {
    font-family: "Noto Sans JP", sans-serif;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: calc(800 / 16 * 1rem);
    margin: 0 auto;
}

.payment-card,
.welcome-card {
    background: white;
    border-radius: calc(12 / 16 * 1rem);
    box-shadow: 0 calc(10 / 16 * 1rem) calc(40 / 16 * 1rem) rgba(0, 0, 0, 0.1);
    padding: calc(40 / 16 * 1rem);
    margin-bottom: calc(20 / 16 * 1rem);
}

.welcome-card {
    text-align: center;
}

h1 {
    font-size: calc(28 / 16 * 1rem);
    color: #2d3748;
    text-align: center;
}

.form-section {
    margin-top: calc(20 / 16 * 1rem);
}

.form-group {
    margin-bottom: calc(24 / 16 * 1rem);
}

label {
    display: block;
    margin-bottom: calc(8 / 16 * 1rem);
    font-weight: 600;
    color: #4a5568;
    font-size: calc(14 / 16 * 1rem);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"] {
    width: 100%;
    padding: calc(12 / 16 * 1rem) calc(16 / 16 * 1rem);
    border: calc(2 / 16 * 1rem) solid #e2e8f0;
    border-radius: calc(8 / 16 * 1rem);
    font-size: calc(16 / 16 * 1rem);
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
}

input[readonly] {
    background-color: #f7fafc;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: calc(4 / 16 * 1rem);
    font-size: calc(12 / 16 * 1rem);
    color: #718096;
}

.price-display {
    background: #f7fafc;
    border-radius: calc(8 / 16 * 1rem);
    padding: calc(20 / 16 * 1rem);
    margin: calc(24 / 16 * 1rem) 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(12 / 16 * 1rem);
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-label {
    font-weight: 600;
    color: #4a5568;
}

.price-value {
    font-size: calc(20 / 16 * 1rem);
    font-weight: 700;
    color: #667eea;
}

.btn {
    padding: calc(12 / 16 * 1rem) calc(24 / 16 * 1rem);
    border: none;
    border-radius: calc(8 / 16 * 1rem);
    font-size: calc(16 / 16 * 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(calc(-2 / 16 * 1rem));
    box-shadow: 0 calc(4 / 16 * 1rem) calc(12 / 16 * 1rem) rgba(251, 146, 60, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    margin-right: calc(12 / 16 * 1rem);
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: calc(24 / 16 * 1rem);
}

.form-actions .btn-primary {
    flex: 1;
    margin-left: calc(12 / 16 * 1rem);
}

/* Stripe Elements スタイル */
#card-element {
    padding: calc(12 / 16 * 1rem) calc(16 / 16 * 1rem);
    border: calc(2 / 16 * 1rem) solid #e2e8f0;
    border-radius: calc(8 / 16 * 1rem);
    background: white;
}

#card-errors {
    color: #e53e3e;
    font-size: calc(14 / 16 * 1rem);
    margin-top: calc(8 / 16 * 1rem);
}

/* ローディング表示 */
.loading {
    text-align: center;
    padding: calc(40 / 16 * 1rem);
}

.spinner {
    border: calc(4 / 16 * 1rem) solid #f3f3f3;
    border-top: calc(4 / 16 * 1rem) solid #667eea;
    border-radius: 50%;
    width: calc(40 / 16 * 1rem);
    height: calc(40 / 16 * 1rem);
    animation: spin 1s linear infinite;
    margin: 0 auto calc(16 / 16 * 1rem);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #718096;
    font-size: calc(14 / 16 * 1rem);
}

/* レスポンシブデザイン */
@media (max-width: calc(768 / 16 * 1rem)) {
    .payment-card,
    .welcome-card {
        padding: calc(24 / 16 * 1rem);
    }
    
    h1 {
        font-size: calc(24 / 16 * 1rem);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-secondary {
        margin-right: 0;
        margin-bottom: calc(12 / 16 * 1rem);
    }
    
    .form-actions .btn-primary {
        margin-left: 0;
    }
}

/* 成功ページスタイル */
.success-message {
    background: #c6f6d5;
    border: calc(2 / 16 * 1rem) solid #68d391;
    border-radius: calc(8 / 16 * 1rem);
    padding: calc(16 / 16 * 1rem);
    margin-bottom: calc(24 / 16 * 1rem);
    color: #22543d;
}

.order-details {
    background: #f7fafc;
    border-radius: calc(8 / 16 * 1rem);
    padding: calc(24 / 16 * 1rem);
    margin-bottom: calc(24 / 16 * 1rem);
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    padding: calc(12 / 16 * 1rem) 0;
    border-bottom: calc(1 / 16 * 1rem) solid #e2e8f0;
}

.order-detail-item:last-child {
    border-bottom: none;
}

.order-detail-label {
    font-weight: 600;
    color: #4a5568;
}

.order-detail-value {
    color: #2d3748;
}

/* お問い合わせページ専用スタイル */
.contact-description {
    text-align: center;
    margin-bottom: calc(24 / 16 * 1rem);
    color: #4a5568;
    font-size: calc(16 / 16 * 1rem);
    line-height: 1.6;
}

.error-message {
    background: #fed7d7;
    border: calc(2 / 16 * 1rem) solid #fc8181;
    border-radius: calc(8 / 16 * 1rem);
    padding: calc(12 / 16 * 1rem);
    margin-bottom: calc(20 / 16 * 1rem);
    color: #c53030;
    font-size: calc(14 / 16 * 1rem);
}

.error-message ul {
    margin: 0;
    padding-left: calc(20 / 16 * 1rem);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(24 / 16 * 1rem);
}

textarea {
    width: 100%;
    padding: calc(12 / 16 * 1rem) calc(16 / 16 * 1rem);
    border: calc(2 / 16 * 1rem) solid #e2e8f0;
    border-radius: calc(8 / 16 * 1rem);
    font-size: calc(16 / 16 * 1rem);
    font-family: inherit;
    resize: vertical;
    min-height: calc(120 / 16 * 1rem);
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: calc(12 / 16 * 1rem);
    margin-top: calc(32 / 16 * 1rem);
}

.form-actions .btn-primary {
    width: auto;
    min-width: calc(200 / 16 * 1rem);
}

.contact-hero {
    position: relative;
    height: calc(200 / 16 * 1rem);
    margin-bottom: calc(80 / 16 * 1rem);
}

.contact-hero::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(0, 44, 90, .85) 0%, rgba(0, 64, 128, .75) 100%);
    content: "";
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -2;
    height: 100%;
    overflow: hidden;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--white);
}

.container {
    margin-bottom: calc(80 / 16 * 1rem);
}

@media (max-width: calc(768 / 16 * 1rem)) {
    .contact-hero {
        margin-bottom: calc(40 / 16 * 1rem);
    }
    
    .contact-hero-title {
        font-size: 1.5rem;
    }
    
    .container {
        margin-bottom: calc(40 / 16 * 1rem);
    }
}

/* 確認ページ専用スタイル */
.confirm-description {
    text-align: center;
    margin-bottom: calc(30 / 16 * 1rem);
    color: #718096;
    font-size: calc(16 / 16 * 1rem);
    line-height: 1.6;
}

.confirm-section {
    background: #f7fafc;
    border-radius: calc(8 / 16 * 1rem);
    padding: calc(24 / 16 * 1rem);
    margin-bottom: calc(24 / 16 * 1rem);
}

.confirm-item {
    display: flex;
    padding: calc(16 / 16 * 1rem) 0;
    border-bottom: calc(1 / 16 * 1rem) solid #e2e8f0;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-label {
    font-weight: 600;
    color: #4a5568;
    width: calc(180 / 16 * 1rem);
    flex-shrink: 0;
    font-size: calc(14 / 16 * 1rem);
}

.confirm-value {
    color: #2d3748;
    flex: 1;
    word-break: break-word;
    font-size: calc(14 / 16 * 1rem);
    line-height: 1.6;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: calc(12 / 16 * 1rem);
    margin-top: calc(32 / 16 * 1rem);
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    width: auto;
    min-width: calc(150 / 16 * 1rem);
}

@media (max-width: calc(768 / 16 * 1rem)) {
    .confirm-section {
        padding: calc(16 / 16 * 1rem);
    }
    
    .confirm-item {
        flex-direction: column;
        padding: calc(12 / 16 * 1rem) 0;
    }
    
    .confirm-label {
        width: 100%;
        margin-bottom: calc(8 / 16 * 1rem);
    }
    
    .confirm-value {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        min-width: auto;
    }
}

/* 完了ページ専用スタイル */
.complete-card {
    background: white;
    border-radius: calc(16 / 16 * 1rem);
    box-shadow: 0 calc(10 / 16 * 1rem) calc(40 / 16 * 1rem) rgba(0, 0, 0, 0.1);
    padding: calc(64 / 16 * 1rem) calc(48 / 16 * 1rem);
    margin: 0 auto;
    max-width: calc(600 / 16 * 1rem);
    text-align: center;
}

.complete-icon {
    width: calc(120 / 16 * 1rem);
    height: calc(120 / 16 * 1rem);
    margin: 0 auto calc(32 / 16 * 1rem);
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22543d;
    box-shadow: 0 calc(4 / 16 * 1rem) calc(12 / 16 * 1rem) rgba(34, 84, 61, 0.2);
}

.complete-icon svg {
    width: calc(64 / 16 * 1rem);
    height: calc(64 / 16 * 1rem);
}

.complete-content {
    margin-bottom: calc(40 / 16 * 1rem);
}

.complete-title {
    font-size: calc(32 / 16 * 1rem);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: calc(16 / 16 * 1rem);
    line-height: 1.3;
}

.complete-message {
    font-size: calc(18 / 16 * 1rem);
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: calc(24 / 16 * 1rem);
}

.complete-note {
    font-size: calc(14 / 16 * 1rem);
    color: #718096;
    line-height: 1.6;
}

.complete-actions {
    margin-top: calc(40 / 16 * 1rem);
    padding-top: calc(32 / 16 * 1rem);
    border-top: calc(1 / 16 * 1rem) solid #e2e8f0;
}

.complete-actions .btn {
    min-width: calc(240 / 16 * 1rem);
}

@media (max-width: calc(768 / 16 * 1rem)) {
    .complete-card {
        padding: calc(48 / 16 * 1rem) calc(24 / 16 * 1rem);
    }
    
    .complete-icon {
        width: calc(100 / 16 * 1rem);
        height: calc(100 / 16 * 1rem);
        margin-bottom: calc(24 / 16 * 1rem);
    }
    
    .complete-icon svg {
        width: calc(52 / 16 * 1rem);
        height: calc(52 / 16 * 1rem);
    }
    
    .complete-title {
        font-size: calc(24 / 16 * 1rem);
    }
    
    .complete-message {
        font-size: calc(16 / 16 * 1rem);
    }
    
    .complete-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

