﻿/* ベースとなるスタイル */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 40px 20px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* フォームコンテナ */
.form-container {
    background: linear-gradient(to right, rgba(255,210,170,0.1) 0%, rgba(255,210,170,0.2) 20%, rgba(255,210,170,0.1) 100%), linear-gradient(to bottom, rgba(255,210,170,0.1) 0%, rgba(255,210,170,0.2) 20%, rgba(255,210,170,0.1) 100%), #f8f0dd; /* 羊皮紙のベース色 */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), inset 0 0 30px rgba(222,184,135,0.2);
    padding: 25px;
    position: relative;
}

    .form-container form {
        position: relative;
        z-index: 1;
    }


.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* フォームグループ */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-align: left;
    transition: color 0.3s ease;
}

/* 入力フィールド */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    outline: none;
    background-color: #fff;
}

.form-group:hover label {
    color: #3b82f6;
}

/* バリデーションエラー */
.text-danger {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
    text-align: left;
}

/* ボタン */
.btn {
    display: block;
    font-weight: 600;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    letter-spacing: 0.5px;
    margin: 30px 0 20px;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 10px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

/* Boya Box */
.boya-box {
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 18px;
    margin: 30px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.boya-box i {
    font-size: 28px;
    margin-right: 18px;
    color: #3b82f6;
}

.boya-box span {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* リンク */
.form-group a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-group a:hover {
    text-decoration: underline;
    color: #2563eb;
}

.text-center {
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .form-container {
        padding: 25px;
        max-width: 100%;
    }
    
    .btn {
        padding: 12px 16px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container {
    animation: fadeIn 0.6s ease-out forwards;
}