/* お問い合わせページ固有。共通部品は css/hub.css */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-card { position: relative; }
.form-msg { margin: 14px 0 0; min-height: 1.5em; font-size: 14px; line-height: 1.7; text-align: center; }
.form-msg:empty { display: none; }
.form-msg.is-ng { color: #b3261e; font-weight: 700; }
.form-msg.is-ok { color: var(--green); }
.form-card .is-error { border-color: #b3261e !important; background: #fff6f5; }
.form-done { text-align: left; }
.form-done .text { line-height: 2; }
.form-done .text a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-done-links { margin-top: 24px; }
.form-done-links .btn { min-height: 52px; padding: 0 28px; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .form-done-links .btn { width: 100%; justify-content: center; } }

/* 写真の添付 */
.form-photos .opt { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: #e6efe9; color: var(--green-text); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.form-photos input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-drop { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed #b9c7ad; border-radius: 10px; background: #f7faf5; color: var(--green-text); cursor: pointer; transition: border-color .2s, background .2s; }
.photo-drop:hover, .form-photos input[type="file"]:focus-visible + .photo-drop { border-color: var(--green); background: #eef5ef; }
.form-photos input[type="file"]:focus-visible + .photo-drop { outline: 2px solid var(--blue); outline-offset: 2px; }
.photo-drop-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-size: 20px; font-weight: 700; flex: none; }
.photo-drop-text { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 15px; }
.photo-drop-text small { font-weight: 400; font-size: 12px; color: #5b6a5e; }
.photo-help { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: #5b6a5e; }
.photo-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.photo-list:empty { display: none; }
.photo-list li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border: 1px solid #dfe5da; border-radius: 8px; }
.photo-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #eee; }
.photo-meta { font-size: 13px; color: var(--ink); word-break: break-all; }
.photo-remove { width: 32px; height: 32px; border: 1px solid #cfd8d3; border-radius: 50%; background: #fff; color: #555; font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.photo-remove:hover { background: #b3261e; border-color: #b3261e; color: #fff; }
.photo-msg { margin: 8px 0 0; font-size: 13px; color: var(--green); min-height: 1.2em; }
.photo-msg:empty { display: none; }
.photo-msg.is-ng { color: #b3261e; }
