/* ============================================================
   お問い合わせフォーム — 淡いピンク・パープル系テーマ
   ============================================================ */

/* --- リセット & ベース --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", "Yu Gothic", "Meiryo", system-ui, sans-serif;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #fdf2f8 100%);
    color: #4a3560;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px 60px;
}

/* --- コンテナ --- */
.container {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(155, 124, 184, 0.12);
    padding: 40px 36px;
}

/* --- クローバー ワンポイント --- */
.container::before {
    content: "";
    position: absolute;
    top: 1px;
    right: -5px;
    width: 77px;
    height: 77px;
    background: url(images/clover_illustration.png) no-repeat center / contain;
    opacity: 0.75;
    pointer-events: none;
}

/* --- タイトル --- */
.page-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b4c8a;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

/* --- 案内文 --- */
.intro {
    text-align: center;
    font-size: 0.9rem;
    color: #7a6490;
    margin-bottom: 28px;
    line-height: 1.9;
}

/* --- エラー --- */
.errors {
    background: #fff0f3;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.errors p {
    color: #c04060;
    font-size: 0.85rem;
    line-height: 1.6;
}

.errors p + p {
    margin-top: 4px;
}

/* --- フォーム --- */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5c3d7a;
    margin-bottom: 6px;
}

.optional {
    font-size: 0.78rem;
    font-weight: 400;
    color: #a68bbf;
}

.required {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c87da0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: #4a3560;
    background: #faf7fd;
    border: 1.5px solid #e0d4ed;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #b695d0;
    box-shadow: 0 0 0 3px rgba(182, 149, 208, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #c4b3d6;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* --- ハニーポット（非表示） --- */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* --- ボタン --- */
.form-actions {
    text-align: center;
    margin-top: 28px;
}

.btn {
    display: inline-block;
    padding: 13px 40px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, #b695d0 0%, #c9a0d8 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(182, 149, 208, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a580c0 0%, #be90d0 100%);
    box-shadow: 0 4px 16px rgba(182, 149, 208, 0.5);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(182, 149, 208, 0.3);
}

.btn-back {
    background: #f0e8f5;
    color: #7a6490;
    box-shadow: none;
}

.btn-back:hover {
    background: #e6daf0;
}

.btn-link {
    background: transparent;
    color: #9b7cb8;
    padding: 10px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid #d4c4e4;
    border-radius: 0;
}

.btn-link:hover {
    color: #7a5ca0;
    border-bottom-color: #b695d0;
}

/* --- 注意書き --- */
.notice {
    text-align: center;
    font-size: 0.75rem;
    color: #b0a0c0;
    margin-top: 24px;
}

/* --- 確認画面 --- */
.confirm-table {
    margin-bottom: 8px;
}

.confirm-row {
    padding: 16px 0;
    border-bottom: 1px solid #f0e8f5;
}

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

.confirm-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a6eaa;
    margin-bottom: 4px;
}

.confirm-value {
    font-size: 0.95rem;
    color: #4a3560;
    word-break: break-all;
    white-space: pre-wrap;
}

.confirm-value .empty {
    color: #c4b3d6;
    font-size: 0.85rem;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

/* --- サンクスページ --- */
.thanks {
    text-align: center;
    padding: 20px 0 10px;
}

.thanks-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.thanks h2 {
    font-size: 1.3rem;
    color: #6b4c8a;
    margin-bottom: 16px;
    font-weight: 700;
}

.thanks p {
    font-size: 0.9rem;
    color: #7a6490;
    line-height: 1.9;
    margin-bottom: 28px;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 600px) {
    body {
        padding: 20px 12px 40px;
    }

    .container {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 32px;
        font-size: 0.95rem;
    }

    .confirm-actions {
        flex-direction: column-reverse;
        align-items: center;
    }
}
