@charset "utf-8";


/* -- form#mail_form, dl, dt, dd -------------------------------------------------------------------------------- */

/* optionalのddがあるdlのdtに“任意”バッジを付与 */
/* 汎用バッジ */

/* ===============================================
   ギャラクシーレイキ TENZO - モダンデザイン CSS
   元のHTMLはそのまま、CSSだけで見た目を改善
   =============================================== */

/* ===== 基本設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* ===== フォーム全体 ===== */
form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

/* ===== ヘッダー ===== */

form h1 {
    /*font-size: 28px;*/
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 10px;
}

form h2 {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    margin-bottom: 10px;
}

form h3 {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}



@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    /*動きをとめておく
	animation: starPulse 2s ease-in-out infinite;*/
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.header-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 16px;
}

.header-description {
	text-align: center;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 星アイコンをセンター表示 */
i.fa-star {
    display: block;
    text-align: center;
    width: 100%;
    margin: 20px 0;
    font-size: 32px;
    /*color: #fbbf24;*/
	color: #667eea;
}

/* header-badgeをセンター表示 */
.header-badge {
    display: block;
    text-align: center;
    width: 38%;
    max-width: 300px;
    margin: 20px auto;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    /* 動きをとめておく
    animation: badgeBounce 2s ease-in-out infinite; */
}

.header-badge i {
    margin-right: 8px;
    font-size: 18px;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


.header-badge i {
    margin-right: 8px;
    font-size: 18px;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header-badge i {
    margin-right: 6px;
}


/* ===== フォーム項目 ===== */
dl {
    margin-bottom: 28px;
}

dt {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* spanタグを左側に配置 */
dt .required-label,
dt .optional-label {
    order: -1;
    margin-right: 10px;
    margin-left: 0;
}

dt i {
    margin-right: 8px;
    color: #667eea;
    order: 0;
}

/* Font Awesomeアイコンの擬似要素を保護 */
dt i.fas::before,
dt i.far::before,
dt i.fab::before {
    content: inherit !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-weight: inherit !important;
    color: inherit !important;
}






/* 必須ラベル（spanタグ） */
.required-label {
    display: inline-block;
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    /*background: #ef4444;*/
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* 任意ラベル（spanタグ） */
.optional-label {
    display: inline-block;
	background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    /*background: #94a3b8;*/
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}



/* ========================================
   セクションヘッダー
======================================== */

.form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #667eea;
}



.form-section-header i {
    font-size: 24px;
    color: #667eea;
    margin-top: 2px;
}

.form-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.form-section-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

dd {
    position: relative;
}



/* ===== チェックボックス・ラジオボタン ===== */
ul {
    list-style: none;
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    background: #f8f9ff;
    transition: all 0.3s ease;
}

ul:hover {
    border-color: #667eea;
    background: #ffffff;
}

ul li {
    margin-bottom: 12px;
}

ul li:last-child {
    margin-bottom: 0;
}

label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
}



/* ===== 入力フィールド ===== */
/* ===== 入力フィールド ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    background: #f8f9ff;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: #a0a0a0;
}




/* 日時入力の小さいフィールド */
input[type="text"][style*="width"] {
    width: auto !important;
    min-width: 60px;
    padding: 10px 12px;
    text-align: center;
}

/* 日時入力の小さいフィールド */
input[type="text"][style*="width"] {
    display: inline-block !important;
    width: 80px !important;
    min-width: 60px !important;
    padding: 10px 8px;
    text-align: center;
    margin: 0 4px;
}

/* ===== 日時入力を2行表示に ===== */
/* 日時入力フィールドを含む dd をflexboxで制御 */
dd.required:has(input#day_2),
dd.required:has(input#day_4),
dd.optional:has(input#day_6) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* 時間入力の前で強制改行 */
dd.required input#time_1,
dd.required input#time_3,
dd.optional input#time_5 {
    margin-left: 0 !important;
    flex-basis: 100%;
}
old_string:
/* 日時入力の小さいフィールド */
input[type="text"][style*="width"] {
    display: inline-block !important;
    width: 70px !important;
    min-width: 50px !important;
    padding: 10px 8px;
    text-align: center;
    margin: 0 4px;
}

/* ===== 日時入力を2行表示に ===== */
/* 日時入力フィールドを含む dd */
dd.required:has(input#day_2),
dd.required:has(input#day_4),
dd.optional:has(input#day_6) {
    display: block;
    line-height: 2.0;
}

/* 月日のブロック - インラインブロックで横並び */
dd input#day_2,
dd input#day_3 {
    display: inline-block !important;
    width: 70px !important;
}

dd input#day_4,
dd input#day_5 {
    display: inline-block !important;
    width: 70px !important;
}

dd input#day_6,
dd input#day_7 {
    display: inline-block !important;
    width: 70px !important;
}

/* 時間の前で改行 - brタグの代わり */
dd input#time_1,
dd input#time_3,
dd input#time_5 {
    display: inline-block !important;
    width: 70px !important;
    margin-left: 0 !important;
}

/* 改行を強制 */
dd input#day_3::after {
    content: "\A";
    white-space: pre;
}

/* 時間フィールド */
dd input#time_2,
dd input#time_4,
dd input#time_6 {
    display: inline-block !important;
    width: 70px !important;
}


/* テキストエリア */
textarea {
    min-height: 120px;
    resize: vertical;
}




/* ===== チェックボックス・ラジオボタン ===== */
ul {
    list-style: none;
}

ul li {
    margin-bottom: 12px;
}

label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
}


/* ========================================
   ヘルプテキスト 
======================================== */

.help-text {
    display: block;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}

.help-text i {
    color: #667eea;
    /*margin-right: 4px;*/
}



/* ===== 送信ボタン ===== */
#form_submit {
    margin-top: 40px;
    text-align: center;
}

#form_submit_button {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    font-family: 'Noto Sans JP', sans-serif;
    
    /* ブラウザデフォルトスタイルを無効化 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#form_submit_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #7b8ef5 0%, #8b5cb7 100%);
}

#form_submit_button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#form_submit_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }
    
    form {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    form h2 {
        font-size: 24px;
    }
    
    form h3 {
        font-size: 16px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        font-size: 16px; /* iOS のズーム防止 */
    }
    
    input[type="text"][style*="width"] {
        min-width: 50px;
        padding: 8px 10px;
    }
}

/* ===== 日時入力の間隔調整 ===== */
dd.required,
dd.optional {
    line-height: 2.5;
}

/* ===== 説明文 ===== */
dd:not(.required):not(.optional) {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== セレクトボックス ===== */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}


/* セレクトボックスのスタイル */
select {
    cursor: pointer;
    /* ブラウザデフォルトの矢印を削除 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* カスタム矢印（紫） */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* 日時セレクトボックスの追加スタイル */
select[id^="day_"],
select[id^="time_"] {
    display: inline-block !important;
    width: auto !important;
    min-width: 80px;
    padding: 10px 30px 10px 12px;
    margin: 0 4px;
    font-size: 16px;
}


/* ===== アニメーション ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    animation: fadeIn 0.6s ease;
}



/* セレクトボックスのスタイル調整 */
select[id^="day_"],
select[id^="time_"] {
    display: inline-block !important;
    width: auto !important;
    min-width: 80px;
    padding: 10px 30px 10px 12px;
    margin: 0 4px;
    font-size: 16px;
}


/*OK追加*/
/* ラジオボタン（性別）のスタイル */
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #667eea;
}

/* 誕生日・郵便番号のセレクト/入力 */
select[name^="birth_"],
input[name="postal"] {
    display: inline-block !important;
    min-width: 100px;
    padding: 10px 12px;
    margin: 0 4px;
}

