/* ------------------------------
   レイアウト
------------------------------ */

.page-title {
    font-family: "Meiryo UI", sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.mail-note {
    font-size: 12pt;
    font-family: "Meiryo UI", system-ui, "Segoe UI", sans-serif;
    color: #000;
    font-weight: normal;
    font-style: normal;
}

.thin-line {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.field-note {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* 注意書き */
.privacy-note {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.mail-warning {
    font-family: "Meiryo UI", sans-serif;
    font-size: 12pt;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.mt-5 {
    margin-top: 3rem;
    /* 約48px */
}

.mb-5 {
    margin-bottom: 3rem;
    /* 約48px */
}
/* ------------------------------
   フォーム基本
------------------------------ */

.required {
    color: #c00;
    font-size: 12px;
    margin-left: 4px;
}

form label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

form textarea {
    height: 150px;
    resize: vertical;
}

/* 同意チェック */
.agree-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}


/* ------------------------------
   確認画面ボタン（左右配置）
------------------------------ */
.confirm-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.confirm-buttons form {
    margin: 0;
}

.btn-send {
    background: #0066ff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn-back {
    background: #ccc;
    color: #0066ff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn-send:hover {
    background: #2980b9;
}

.btn-back:hover {
    background: #bbb;
}

/* ------------------------------
   セレクトボックス
------------------------------ */
form select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    cursor: pointer;
}

form select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 4px rgba(52, 152, 219, 0.4);
}

/* ------------------------------
   ボタン（通常フォーム用）
------------------------------ */
button {
    margin-top: 10px;
    padding: 12px 25px;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #2980b9;
}

.button-area {
    text-align: right;
}

/* ------------------------------
   確認画面の表示
------------------------------ */
.confirm-item {
    margin-bottom: 20px;
}

.confirm-item span {
    font-family: 'Meiryo UI'; 
    font-weight: bold;
    display: inline-block;
    width: 120px;
}

/* ------------------------------
   honeypot（スパム対策）
------------------------------ */
.honeypot {
    display: none;
}

/* ------------------------------
   CAPTCHA（スパム対策）
------------------------------ */

/* 横並び（画像＋入力欄） */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 画像＋リロードボタン */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 5px;
    height: 44px;
}

/* 背景ボックス（画像部分） */
.captcha-bg {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin-top: 10px;
    padding: 0 12px;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

/* 文字（ランダム回転） */
.captcha-char {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    display: inline-block;
    user-select: none;
    transform: rotate(calc(-10deg + (20deg * var(--r))));
}

/* ノイズ線 */
.noise-line {
    position: absolute;
    width: 120%;
    height: 2px;
    background: rgba(0, 0, 0, 0.15);
    top: calc(20% + (60% * var(--n)));
    left: -10%;
    transform: rotate(calc(-20deg + (40deg * var(--n))));
}

/* リロードボタン */
.captcha-refresh {
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.captcha-refresh:hover {
    background: #2980b9;
}

/* 入力欄 */
.captcha-input {
    width: 200px;
    height: 44px;
    padding: 6px 10px;
    font-size: 16px;
}

.row-flex {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.col-zip {
    width: 180px;
    /* 郵便番号は短いので固定幅 */
}

.col-address {
    flex: 1;
    /* 住所は残り全部使う */
}

.row-flex label {
    display: block;
    margin-bottom: 5px;
}


.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    gap: 8px;

    width: 162px;
    height: 40px;

    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    /* 下線なし */

    background: linear-gradient(to bottom, #f2f2f2, #c9c9c9);
    border: 1px solid #999;
    border-radius: 0px;

    transition: all 0.2s ease;
}

/* アイコンだけ青に */
.contact-btn i {
    color: #007bff;
    /* ブルー */
    font-size: 16px;
}

/* ホバー時 */
.contact-btn:hover {
    background: linear-gradient(to bottom, #ffffff, #70c1ff);
    color: #007bff;
    text-decoration: none;
 }
/* クリック時 */
.contact-btn:active {
    background: linear-gradient(to bottom, #c9c9c9, #f2f2f2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3) inset;
    transform: translateY(1px);
}