@charset "utf-8";

/* ===========================================================
   ALA美脚学校 - お問い合わせフォーム用CSS
   サイトデザインに合わせたスタイル
   =========================================================== */

/* ----------------------------------------------------------
   CSS変数（カラーパレット）
------------------------------------------------------------- */
:root {
    --primary-pink: #c86878;
    --primary-pink-light: #d4838e;
    --accent-gold: #b8956c;
    --text-dark: #333;
    --text-mid: #555;
    --text-light: #888;
    --bg-cream: #fdfbf7;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ----------------------------------------------------------
   リセット
------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   ベース
------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #fff 100%);
    color: var(--text-dark);
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    min-height: 100vh;
}

a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* ----------------------------------------------------------
   レイアウト
------------------------------------------------------------- */
#wrapper {
    max-width: 640px;
    margin: 40px auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

#header {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-light) 100%);
    padding: 24px 30px;
    text-align: center;
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.logo sup {
    font-size: 0.6em;
    vertical-align: super;
}

.logo:hover {
    color: rgba(255, 255, 255, 0.9);
}

#main {
    padding: 40px 30px;
}

#footer {
    background: #2a2a2a;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

.footer-org {
    margin-bottom: 5px;
    font-size: 11px;
}

.footer-copy {
    opacity: 0.6;
    font-size: 10px;
}

/* ----------------------------------------------------------
   セクション
------------------------------------------------------------- */
.section {
    margin-bottom: 30px;
}

.section__ttl {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
}

.section__body {
    padding: 0;
}

.form-intro {
    text-align: center;
    color: var(--text-mid);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.8;
}

.required-note {
    color: var(--primary-pink);
    font-weight: bold;
}

/* ----------------------------------------------------------
   エラーメッセージ
------------------------------------------------------------- */
.red_txt {
    color: #e53935;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    line-height: 1.6;
}

.red_txt ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.red_txt li {
    margin: 2px 0;
}

.red_txt br {
    display: none;
}

.red_txt:empty {
    display: none;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

/* ----------------------------------------------------------
   フォームテーブル
------------------------------------------------------------- */
.form-table,
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 24px;
}

.form-table th,
.table th {
    background: var(--bg-cream);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    width: 35%;
}

/* 必須マーク（*）をピンク色に */
.form-table th .required,
.table th .required,
.form-table th span[style*="color"],
.table th span[style*="color"],
.form-table th font,
.table th font,
.form-table th span,
.table th span {
    color: var(--primary-pink) !important;
    font-weight: bold;
}

.form-table td,
.table td {
    background: var(--bg-white);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.form-table tr:first-child th,
.form-table tr:first-child td,
.table tr:first-child th,
.table tr:first-child td {
    border-top: 1px solid var(--border-color);
}

/* ----------------------------------------------------------
   フォーム要素
------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px; /* iOS zoom prevention */
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(200, 104, 120, 0.15);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: #aaa;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

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='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-pink);
}

label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* ----------------------------------------------------------
   ボタン
------------------------------------------------------------- */
.button-group,
.button_box {
    text-align: center;
    margin-top: 32px;
    padding: 0;
}

.btn,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 14px 48px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-primary,
input[type="submit"],
button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-light) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(200, 104, 120, 0.4);
}

.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 104, 120, 0.5);
}

.btn-primary:active,
input[type="submit"]:active,
button[type="submit"]:active {
    transform: translateY(0);
}

/* 確認画面用ボタングループ */
.button-group--confirm {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary,
input[type="submit"][value="戻る"] {
    background: var(--bg-white);
    color: var(--text-mid);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.btn-secondary:hover,
input[type="submit"][value="戻る"]:hover {
    background: var(--bg-cream);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 確認画面テーブル */
.confirm-table td {
    background: var(--bg-cream);
}

/* ----------------------------------------------------------
   完了画面
------------------------------------------------------------- */
.complete-icon {
    text-align: center;
    margin-bottom: 24px;
}

.complete-icon svg {
    animation: checkmark 0.6s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.section__ttl--complete {
    border-bottom: none;
    margin-bottom: 16px;
}

.complete-message {
    text-align: center;
    color: var(--text-mid);
    line-height: 2;
}

.complete-message p {
    margin-bottom: 16px;
}

.complete-message p:last-child {
    margin-bottom: 0;
}

/* 戻るリンク */
.back-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.back-link a {
    display: inline-flex;
    align-items: center;
    color: var(--text-mid);
    font-size: 14px;
}

.back-link a::before {
    content: '←';
    margin-right: 6px;
}

.back-link a:hover {
    color: var(--primary-pink);
}

/* ----------------------------------------------------------
   レスポンシブ（モバイル対応）
------------------------------------------------------------- */
@media screen and (max-width: 680px) {
    #wrapper {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    #header {
        padding: 20px;
    }

    .logo {
        font-size: 1.3rem;
    }

    #main {
        padding: 30px 20px;
    }

    .section__ttl {
        font-size: 1.2rem;
    }

    .form-intro {
        font-size: 13px;
    }

    /* テーブルを縦積みに */
    .form-table,
    .table {
        display: block;
    }

    .form-table tr,
    .table tr {
        display: block;
        margin-bottom: 16px;
    }

    .form-table th,
    .table th {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-bottom: none;
        border-radius: 8px 8px 0 0;
    }

    .form-table td,
    .table td {
        display: block;
        width: 100%;
        padding: 12px;
        border-top: none;
        border-radius: 0 0 8px 8px;
        border: 1px solid var(--border-color);
        border-top: none;
    }

    .form-table tr:first-child th,
    .table tr:first-child th {
        border-top: 1px solid var(--border-color);
    }

    .btn,
    input[type="submit"],
    button[type="submit"] {
        width: 100%;
        padding: 16px 24px;
    }

    #footer {
        padding: 16px;
    }
}

/* ----------------------------------------------------------
   汎用クラス（XServer互換）
------------------------------------------------------------- */
.tac { text-align: center !important; }
.tal { text-align: left !important; }
.tar { text-align: right !important; }
.mt10 { margin-top: 10px !important; }
.mt20 { margin-top: 20px !important; }
.mb10 { margin-bottom: 10px !important; }
.mb20 { margin-bottom: 20px !important; }

/* 説明文表示用 */
#txt_explain {
    text-align: center;
    color: var(--text-mid);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.8;
}

/* 左詰の文字表示用 */
.left_txt {
    text-align: left;
}