@charset "UTF-8";

/* iPhone Safari の自動太字補正を無効化 */
.mitsumori-wrapper,
.mitsumori-wrapper * {
    -webkit-text-size-adjust: 100%;
    font-synthesis: none;
}


/* ===========================================
   Mitsumori Manager – PC用フォームCSS
   =========================================== */

/* --- 全体ラッパー --- */
.mitsumori-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #f6f6f6;
    padding: 40px 35px;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

/* --- タイトル --- */
.mitsumori-head h2 {
    font-size: 28px;
    color: #7a3024; /* 赤茶 */
    border-bottom: 4px solid #7a3024;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

/* --- 説明文 --- */
.mitsumori-description {
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* --- 各セクション（質問ブロック） --- */
.mitsumori-box .form-row {
    margin-bottom: 28px;
}

/* ラベル（タイトル部分） */
.mitsumori-box label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

/* 必須バッジ */
.required {
    background: #7a3024;
    color: #fff;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 6px;
}

/* 任意バッジ */
.optional {
    background: #1e4e79;
    color: #fff;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 6px;
}

/* --- 入力欄 --- */
.mitsumori-box input[type="text"],
.mitsumori-box input[type="tel"],
.mitsumori-box input[type="email"],
.mitsumori-box textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

/* テキストエリア */
.mitsumori-box textarea {
    height: 180px;
    resize: vertical;
}

/* ラジオボタン */
.mitsumori-box input[type="radio"] {
    margin-right: 6px;
}

/* ファイル入力 */
.mitsumori-box input[type="file"] {
    margin-top: 8px;
}

/* --- 送信ボタン --- */
.mitsumori-submit {
    text-align: center;
    margin-top: 45px;
}

.mitsumori-submit button,
.mitsumori-submit input[type="submit"] {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 18px 0;
    font-size: 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .3s;
}

.mitsumori-submit button:hover,
.mitsumori-submit input[type="submit"]:hover {
    opacity: 0.85;
}

/* ===========================================
   確認画面のデザイン
   =========================================== */

.mm-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #ccc;
}

.mm-confirm-table th,
.mm-confirm-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.mm-confirm-table th {
    width: 28%;
    background: #fafafa;
    color: #333;
}

/* ボタンエリア */
.mm-confirm-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.mm-btn-back,
.mm-btn-submit {
    flex: 1;
    padding: 15px 0;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    border: none; 
}

.mm-btn-back {
    background: #ccc;
}

.mm-btn-submit {
    background: #000;
    color: #fff;
}






/* --- エラー表示 --- */
.mm-errors p {
    background: #ffdddd;
    padding: 10px;
    margin-bottom: 8px;
	font-size: 25px;
	text-align: center;
}

/* ==================================================
   ★ 吹き出し型エラーメッセージ
   ================================================== */
.mm-error-message {
    position: relative;
    display: inline-block;
    background: #ffebe9;
    color: #c0392b;
    border: 1px solid #ffb7ae;
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 6px;
    font-size: 14px;
    animation: mm-fade-in 0.35s ease-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ▼ 吹き出しの三角 */
.mm-error-message::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 18px;
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent #ffebe9 transparent;
}

/* ▼ アニメーション（ふわっと） */
@keyframes mm-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   ★ エラー枠（赤枠を柔らかく）
   ================================================== */
.mm-has-error input,
.mm-has-error textarea,
.mm-has-error select {
    border-color: #e67c73 !important;
    box-shadow: 0 0 0 2px rgba(230,124,115,0.25);
    border-radius: 6px;
    transition: 0.2s;
}







/* ==================================================
   Mitsumori Manager – PC 用：返信フォームデザイン
   ================================================== */

.mitsumori-wrapper.reply-form {
    max-width: 720px;
    margin: 40px auto;
    padding: 35px 40px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.reply-form h2 {
    font-size: 28px !important;
    text-align: center;
    margin-bottom: 28px;
}

.reply-form .form-row {
    margin-bottom: 22px;
}

.reply-form .form-row label {
    display: block;
    font-size: 25px !important;
    margin-bottom: 8px;
}

.reply-form .form-row input[type="text"],
.reply-form .form-row input[type="email"],
.reply-form .form-row textarea {
    width: 100%;
    font-size: 20px !important;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.reply-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* -------- ファイル選択（PCでも大きく綺麗に） -------- */

.reply-form .file-upload-label {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 14px 0;
    font-size: 20px !important;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    margin-bottom: 6px;
}

.reply-form .file-input {
    display: none;
}

.reply-form .file-upload-name {
    display: block;
    margin-top: 4px;
    font-size: 20px !important;
    color: #666;
}

/* -------- ボタン -------- */

.reply-form .mm-btn-submit {
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 0;
    font-size: 25px !important;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

.reply-form .mm-btn-submit:hover {
    opacity: 0.85;
}





/* ==========================================
   確認画面ボタンを返信フォームボタンと統一
   ========================================== */

.mm-confirm-buttons .mm-btn-submit {
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 0 !important;
    font-size: 20px !important;
    border-radius: 8px !important;
    cursor: pointer;
}

.mm-confirm-buttons .mm-btn-submit:hover {
    opacity: 0.85 !important;
}
