/* ==========================================================================
   Contact Form Wrapper (メインコンテンツ)
   ========================================================================== */

.contact-form-wrapper {
    padding: 100px 0 150px;
    background-color: #fff;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 25px;
}

.form-lead {
    text-align: center;
    margin-bottom: 80px;
    font-size: 15px;
    line-height: 2.2;
    color: #4A3A35;
}

/* フォームの各項目 */
.form-item {
    margin-bottom: 45px;
}

.form-item label {
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-bottom: 15px;
    color: #4A3A35;
}

/* 必須タグのデザイン */
.must-tag {
    background-color: #333;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    margin-left: 12px;
    border-radius: 2px;
    font-family: sans-serif;
    letter-spacing: 0.05em;
}

/* 入力欄 */
.form-item input,
.form-item textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    -webkit-appearance: none;
}

/* ==========================================================================
   Privacy Policy Area (画像通りのグレーボックスとスクロール)
   ========================================================================== */

.policy-area {
    margin-top: 70px;
    border: 1px solid #eee;
    background-color: #f8f8f8;
    position: relative;
}

.policy-inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.policy-label { font-size: 15px; }
.policy-ext { font-size: 13px; color: #888; text-decoration: underline; }

.policy-scroll-box {
    height: 200px;
    overflow-y: scroll;
    padding: 30px 25px;
    font-size: 14px;
    color: #555;
    line-height: 2;
}

/* 右側のスクロール指示テキスト */
.scroll-text {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.15em;
}

.scroll-text span {
    margin-top: 8px;
    font-size: 14px;
}

/* ==========================================================================
   Agreement and Button (カプセル型ボタン)
   ========================================================================== */

.agree-check {
    text-align: center;
    margin: 50px 0;
}

.check-box-wrap {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.check-box-wrap input { display: none; }

.check-mark {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    background: #fff;
    margin-right: 12px;
    position: relative;
}

.check-box-wrap input:checked + .check-mark::after {
    content: "";
    position: absolute;
    left: 6px; top: 2px;
    width: 5px; height: 10px;
    border: solid #4A3A35;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-area {
    text-align: center;
}

/* 画像通りの送信ボタン */
.send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 420px;
    max-width: 100%;
    padding: 22px 0;
    background-color: #fff;
    border: 1px solid #4A3A35;
    border-radius: 100px;
    font-size: 18px;
    color: #4A3A35;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.3em;
}

.send-btn:hover {
    background-color: #4A3A35;
    color: #fff;
}

.arrow-right {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    margin-left: 50px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container-small { padding: 0 20px; }
    .scroll-text { display: none; }
    .form-lead { text-align: left; font-size: 14px; }
    .send-btn { width: 100%; font-size: 16px; padding: 18px 0; }
    .arrow-right { margin-left: 20px; }
}