/* =========================================
   お問い合わせページ専用スタイル
   ========================================= */
/* --- 強制的に背景をダークにする設定 --- */
body {
    background-color: #121217 !important; /* トップページと同じ深い紺色 */
    color: #e0e0e0;
    margin: 0;
}

/* もし変数が効いていない場合のための予備設定 */
:root {
    --primary-color: #ff9d6c;
    --bg-dark: #121217;
}

/* wrapperにも背景を念押し */
.form-wrapper {
    background-color: #121217 !important;
}

/* 背景と全体のラップ */
.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 5% 100px;
    background-color: var(--bg-dark); /* トップページと同じ紺色 */
}

/* ホームへ戻るボタン */
.back-to-home {
    margin-bottom: 40px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}
.back-link:hover {
    opacity: 0.7;
    transform: translateX(-5px);
}
.back-link .arrow {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--primary-color);
    margin-right: 10px;
    position: relative;
}
.back-link .arrow::before {
    content: "";
    position: absolute;
    left: 0; top: -4px;
    width: 8px; height: 1px;
    background: var(--primary-color);
    transform: rotate(-45deg);
}

/* タイトルとイントロ */
.form-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #ff9d6c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.form-intro {
    text-align: center;
    color: #888;
    margin-bottom: 80px;
    font-size: 0.95rem;
}

/* テーブルのレイアウト */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}

.custom-table th, .custom-table td {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table th {
    width: 30%;
    text-align: left;
    vertical-align: top;
    font-size: 0.9rem;
    color: #fff;
    padding-top: 35px;
}

/* 必須マーク */
.required sup {
    color: var(--primary-color);
    margin-left: 5px;
    font-size: 1rem;
}

/* 入力要素のデザイン（ここがおしゃれポイント） */
.custom-table input[type="text"],
.custom-table input[type="email"],
.custom-table input[type="tel"],
.custom-table textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03); /* ほんのり透けるグレー */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: 0.3s;
}

.custom-table input:focus,
.custom-table textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 157, 108, 0.05); /* フォーカス時にオレンジの残像 */
    box-shadow: 0 0 15px rgba(255, 157, 108, 0.1);
}

/* エラーメッセージ */
.error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 8px;
    min-height: 1.2em;
}

/* 送信ボタン（ふわふわボタン） */
.form-submit-area {
    text-align: center;
}

.fuwafuwa-btn {
    position: relative;
    background: linear-gradient(45deg, #ff9d6c, #ff6b6b);
    color: #fff;
    border: none;
    padding: 20px 80px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(255, 157, 108, 0.3);
}

.fuwafuwa-btn span {
    position: relative;
    z-index: 2;
}

.fuwafuwa-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 157, 108, 0.5);
}

/* ボタン内の光るエフェクト */
.btn-circle {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.fuwafuwa-btn:hover .btn-circle {
    width: 300px;
    height: 300px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .form-wrapper { padding-top: 100px; }
    .form-page-title { font-size: 2.5rem; }
    
    .custom-table th, .custom-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .custom-table th {
        border-bottom: none;
        padding-top: 20px;
    }
    
    .fuwafuwa-btn {
        width: 100%;
        padding: 20px 0;
    }
}