@charset "utf-8";
/* /static/css/custom.css */

/* 既存のbodyスタイルを更新 */
body {
    font-family: 'Noto Sans JP', sans-serif; /* 日本語に適したフォント */
    position: relative;
    /* overflow: hidden; /* この行を削除またはコメントアウト */
}

/* 動くグラデーションを追加 */
body::before {
    content: "";
    position: fixed; /* absoluteからfixedに変更 */
    top: -50%;
    left: -50%;
    width: 160%;
    height: 160%;
    background: conic-gradient(from 90deg at 50% 50%, #f97316, #eab308, #84cc16, #14b8a6, #8b5cf6, #ec4899, #f97316);
    animation: spin 12s linear infinite;
    z-index: -1;
    opacity: 0.5; /* 背景の透明度を調整 */
    pointer-events: none; /* ユーザー操作を妨げないように */
}

/* 回転アニメーションのキーフレーム */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* カスタムボタンのスタイル */
.btn-custom {
    background-color: #16a34a; /* Tailwindのgreen-600 */
    color: #ffffff;
    border-radius: 0.375rem; /* Tailwindのrounded-mdに対応 */
    padding: 0.75rem 1rem; /* Tailwindのpy-3 px-4に対応 */
    transition: background-color 0.3s ease-in-out;
}

.btn-custom:hover {
    background-color: #15803d; /* Tailwindのgreen-700 */
}

/* 入力フォーム全般のスタイル調整 */
input, select, textarea {
    border-width: 2px;
    border-color: #d1d5db; /* Tailwindのborder-gray-300 */
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: #f3f4f6; /* Tailwindのbg-gray-50 */
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

input:hover, select:hover, textarea:hover {
    border-color: #4ade80; /* Tailwindのhover:border-green-300 */
    background-color: #ffffff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5); /* Tailwindのfocus:ring-2 focus:ring-green-500に対応 */
}

/* チェックボックスのスタイル */
input[type="checkbox"] {
    width: 1rem; /* Tailwindのw-4 */
    height: 1rem; /* Tailwindのh-4 */
    border-radius: 0.25rem; /* Tailwindのroundedに対応 */
    border-width: 2px;
    border-color: #d1d5db; /* Tailwindのborder-gray-300 */
    transition: border-color 0.3s ease-in-out;
}

input[type="checkbox"]:hover {
    border-color: #4ade80; /* Tailwindのhover:border-green-300 */
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5); /* Tailwindのfocus:ring-2 focus:ring-green-500に対応 */
}

/* エラーメッセージのスタイル */
.errorlist {
    margin-top: 0.5rem; /* Tailwindのmt-2 */
    color: #dc2626; /* Tailwindのtext-red-600 */
    font-weight: 500; /* Tailwindのfont-medium */
    list-style: none;
    padding: 0;
}

/* ラベルと必須フィールドのスタイル */
label.required::after {
    content: " *";
    color: #ef4444; /* Tailwindのtext-red-500 */
}

label:hover {
    color: #16a34a; /* Tailwindのtext-green-600に対応 */
    transition: color 0.3s ease-in-out;
}

/* ヘッダー、フッターの追加スタイル */
header, footer {
    padding: 1rem;
    color: #ffffff;
}

footer {
    background-color: #1f2937; /* Tailwindのbg-gray-800 */
    text-align: center;
    color: #9ca3af; /* Tailwindのtext-gray-400 */
}
