@charset "utf-8";

/* ===============================================================
   フォーム全体のラッパー
=============================================================== */
.contact_title{padding:100px 0;}
.contact_title h1{text-align:center;font-size:1.5rem;}
.contact_title p{text-align:center;}


.mail_wrap {
    font-family: 'Noto Serif JP', serif;
    color: #333;
}
.mailform {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em 3em;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #eee;
}
.form_cap {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2em;
    padding: 0 1em;
    font-size: 0.95rem;
    color: #666;
}

/* ===============================================================
   フォーム要素のスタイル
=============================================================== */
.mailform dt {
    font-size: 1rem;
    font-weight: 600;
    color: #4b4b4b;
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
}

.mailform dd {
    margin-bottom: 2.5em;
    border: none; /* mailformproのスタイルをリセット */
    padding: 0;
}

.must {
    font-size: 11px;
    font-family: sans-serif;
    color: #c1a468;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 0;
    font-weight: normal;
    line-height: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fcfcfc;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #c1a468;
    box-shadow: 0 0 0 3px rgba(193, 164, 104, 0.2);
    outline: none;
    background-color: #fff;
}

select {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23999%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    cursor: pointer;
}

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

/* ===============================================================
   プライバシーポリシー & 同意チェックボックス
=============================================================== */
.privacy {
    border: 1px solid #f0f0f0;
    padding: 1.5em 2em;
    margin: 2.5em 0;
    border-radius: 8px;
    background: #fdfdfd;
}
.privacy dl {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 1em;
}
.privacy dt {
    font-weight: bold;
    margin-top: 1.2em;
    font-size: 0.9rem;
    color: #333;
}
.privacy dd {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5em 0 0 0;
    padding-left: 1em;
    border-left: 2px solid #eee;
}
.privacy dd ul {
    list-style-type: none;
    padding-left: 1em;
    margin-top: 0.5em;
}
.privacy dd li {
    position: relative;
}
.privacy p {
    margin-top: 2em;
    font-size: 0.8rem;
    color: #888;
    text-align: right;
}

.mailform dd label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    cursor: pointer;
}


/* ===============================================================
   送信ボタン
=============================================================== */
.mfp_buttons {
    text-align: center;
    padding: 20px 0;
}
.mfp_buttons button {
    background: linear-gradient(45deg, #c1a468, #d7c39a);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-family: 'Noto Serif JP', serif;
    border-radius: 50px;
    min-width: 320px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(193, 164, 104, 0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.mfp_buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(193, 164, 104, 0.35);
}


/* ===============================================================
   確認モーダル
=============================================================== */
.form-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: animatetop 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes animatetop {
    from {transform: translateY(-30px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}
.form-modal-content h2 {
    font-family: 'Sorts Mill Goudy', serif;
    font-size: 1.8rem;
    color: #c1a468;
    margin: 0 0 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.form-close-button {
    color: #ccc;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.form-close-button:hover {
    color: #888;
}
.modal-form-details p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 15px;
    display: flex;
    align-items: flex-start;
}
.modal-form-details p:last-child {
    border-bottom: none;
}
.modal-form-details strong {
    font-weight: 600;
    color: #333;
    width: 140px;
    flex-shrink: 0;
    padding-right: 1em;
}
.modal-form-details span {
    word-break: break-all;
    white-space: pre-wrap; /* お問合せ内容の改行を反映 */
}
.modal-actions {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.modal-button {
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px;
}
.confirm-button {
    background-color: #c1a468;
    color: white;
}
.confirm-button:hover {
    background-color: #ae9156;
    transform: scale(1.05);
}
.cancel-button {
    background-color: #fff;
    color: #888;
    border-color: #ccc;
}
.cancel-button:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}
