@charset "utf-8";
/*
 * contact-form.css — お問い合わせフォーム（contact.php 専用）
 * スマホで入力しやすい1カラム設計。入力欄は 16px 以上（iPhone の自動ズーム防止）、タップ領域は 48px 以上。
 * 既存の style.css / smstyle.css より後に読み込み、article#Contact .cf 配下だけに効かせる。
 */

article#Contact .cf,
article#Contact .cf * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
article#Contact .cf {
    -webkit-text-size-adjust: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 12px 28px;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    text-align: left;
}
article#Contact .cf [hidden] { display: none !important; }

/* ── 進行表示（入力 → 確認 → 完了）── */
article#Contact .cf .cf-steps {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    list-style: none; margin: 4px 0 22px; padding: 0;
}
article#Contact .cf .cf-steps li {
    -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
    position: relative; margin: 0; padding: 0;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    font-size: 13px; line-height: 1.4; color: #6b6b6b;
}
article#Contact .cf .cf-steps li + li::before {
    content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: #d6d6d6;
}
article#Contact .cf .cf-steps li.is-done::before,
article#Contact .cf .cf-steps li.is-current::before { background: #d70000; }
article#Contact .cf .cf-step-n {
    position: relative; z-index: 1;
    width: 30px; height: 30px; margin-bottom: 4px; border-radius: 50%;
    background: #cfcfcf; color: #fff; font-weight: 700; font-size: 14px; line-height: 30px; text-align: center;
}
article#Contact .cf .cf-steps li.is-current { color: #d70000; font-weight: 700; }
article#Contact .cf .cf-steps li.is-current .cf-step-n { background: #d70000; }
article#Contact .cf .cf-steps li.is-done .cf-step-n { background: #555; }

/* ── 見出し・案内文 ── */
article#Contact .cf .cf-title {
    margin: 0 0 14px; padding: 0 0 8px;
    font-size: 22px; font-weight: 700; line-height: 1.4; text-align: center;
    border-bottom: 3px solid #d70000;
}
article#Contact .cf .cf-lead { margin: 0 0 16px; font-size: 14px; line-height: 1.8; }
article#Contact .cf .cf-note { margin: 6px 0 18px; font-size: 13px; line-height: 1.7; color: #555; }
article#Contact .cf .cf-note-center { text-align: center; margin: 14px 0 0; }
article#Contact .cf .cf-note a { text-decoration: underline; }

/* ── 電話・LINE ── */
article#Contact .cf .cf-quick {
    display: -ms-grid; display: grid;
    grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 6px;
}
article#Contact .cf .cf-quick .cf-btn { grid-column: 1 / -1; margin-top: 0; }
article#Contact .cf a.cf-quick-btn,
article#Contact .cf a.cf-quick-btn:link,
article#Contact .cf a.cf-quick-btn:visited {
    display: block; min-height: 84px; padding: 10px 8px; border-radius: 12px; text-align: center; text-decoration: none;
    line-height: 1.4; border: 2px solid transparent;
}
article#Contact .cf a.cf-quick-btn strong { display: block; font-size: 19px; font-weight: 700; }
article#Contact .cf a.cf-quick-btn small { display: block; font-size: 12px; opacity: .9; }
article#Contact .cf .cf-quick-label { display: block; font-size: 13px; font-weight: 700; }
article#Contact .cf a.cf-quick-tel,
article#Contact .cf a.cf-quick-tel:link,
article#Contact .cf a.cf-quick-tel:visited { background: #fff; color: #d70000; border-color: #d70000; }
article#Contact .cf a.cf-quick-line,
article#Contact .cf a.cf-quick-line:link,
article#Contact .cf a.cf-quick-line:visited { background: #04913f; color: #fff; border-color: #04913f; }

/* ── 入力欄 ── */
article#Contact .cf .cf-field { margin: 0 0 22px; }
article#Contact .cf .cf-label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.5; }
article#Contact .cf .cf-req {
    display: inline-block; margin-left: 8px; padding: 0 8px; vertical-align: 1px;
    border-radius: 4px; background: #d70000; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px;
}
article#Contact .cf input[type="text"],
article#Contact .cf input[type="email"],
article#Contact .cf input[type="tel"],
article#Contact .cf textarea {
    display: block; width: 100%; margin: 0;
    padding: 10px 14px; min-height: 54px;
    font-family: inherit; font-size: 17px; line-height: 1.5; color: #111;
    background: #fff; border: 2px solid #b0b0b0; border-radius: 10px;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
article#Contact .cf textarea { min-height: 190px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
article#Contact .cf input::-webkit-input-placeholder,
article#Contact .cf textarea::-webkit-input-placeholder { color: #767676; }
article#Contact .cf input::placeholder,
article#Contact .cf textarea::placeholder { color: #767676; }
article#Contact .cf input[type="text"]:focus,
article#Contact .cf input[type="email"]:focus,
article#Contact .cf input[type="tel"]:focus,
article#Contact .cf textarea:focus {
    outline: none; border-color: #d70000; -webkit-box-shadow: 0 0 0 4px rgba(215, 0, 0, .15); box-shadow: 0 0 0 4px rgba(215, 0, 0, .15);
}
article#Contact .cf .cf-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: #555; }
article#Contact .cf .cf-count { float: right; margin-left: 8px; font-variant-numeric: tabular-nums; }
article#Contact .cf .cf-err { margin: 6px 0 0; font-size: 14px; font-weight: 700; line-height: 1.6; color: #c00000; }
article#Contact .cf .cf-err::before { content: "！"; }
article#Contact .cf .has-error input[type="text"],
article#Contact .cf .has-error input[type="email"],
article#Contact .cf .has-error input[type="tel"],
article#Contact .cf .has-error textarea { border-color: #d70000; background: #fff6f6; }

/* ハニーポット（人間には見えない欄）*/
article#Contact .cf .cf-hp {
    position: absolute !important; left: -9999px !important; top: auto !important;
    width: 1px; height: 1px; overflow: hidden;
}

/* ── ボタン ── */
article#Contact .cf .cf-btn,
article#Contact .cf a.cf-btn:link,
article#Contact .cf a.cf-btn:visited {
    display: block; width: 100%; min-height: 58px; margin: 0; padding: 14px 16px;
    font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none;
    border: 2px solid transparent; border-radius: 12px; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    -webkit-tap-highlight-color: rgba(215, 0, 0, .15);
    -webkit-transition: background-color .2s ease, opacity .2s ease; transition: background-color .2s ease, opacity .2s ease;
}
article#Contact .cf .cf-btn-primary { background: #d70000; border-color: #d70000; color: #fff; }
article#Contact .cf .cf-btn-primary:hover { background: #b80000; border-color: #b80000; }
article#Contact .cf .cf-btn-primary:focus-visible,
article#Contact .cf .cf-btn-ghost:focus-visible,
article#Contact .cf a.cf-quick-btn:focus-visible { outline: 3px solid #222; outline-offset: 2px; }
article#Contact .cf .cf-btn-ghost,
article#Contact .cf a.cf-btn-ghost:link,
article#Contact .cf a.cf-btn-ghost:visited {
    min-height: 52px; margin-top: 12px; font-size: 16px; background: #fff; border-color: #8a8a8a; color: #222;
}
article#Contact .cf .cf-btn[disabled],
article#Contact .cf .cf-btn[aria-busy="true"] { opacity: .65; cursor: progress; }
article#Contact .cf .cf-form-edit { margin: 0; }

/* ── お知らせ・エラー ── */
article#Contact .cf .cf-alert {
    margin: 0 0 18px; padding: 12px 14px;
    background: #fff0f0; border: 2px solid #d70000; border-radius: 10px;
    color: #a00000; font-size: 15px; font-weight: 700; line-height: 1.7;
}

/* ── 確認画面 ── */
article#Contact .cf .cf-review { margin: 0 0 22px; padding: 0; border: 1px solid #d6d6d6; border-radius: 12px; background: #fff; }
article#Contact .cf .cf-review > div { padding: 12px 14px; border-top: 1px solid #e4e4e4; }
article#Contact .cf .cf-review > div:first-child { border-top: 0; }
article#Contact .cf .cf-review dt { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #666; line-height: 1.5; }
article#Contact .cf .cf-review dd { margin: 0; font-size: 17px; line-height: 1.7; color: #111; word-break: break-word; overflow-wrap: anywhere; }

/* ── 完了画面 ── */
article#Contact .cf .cf-done { padding: 4px 0 0; }
article#Contact .cf .cf-done-text {
    margin: 0 0 14px; padding: 18px 16px;
    background: #f7f7f7; border: 1px solid #d6d6d6; border-radius: 12px; font-size: 16px; line-height: 1.9;
}

/* ── 画面が狭い端末 ── */
@media screen and (max-width: 359px) {
    article#Contact .cf .cf-quick { grid-template-columns: 1fr; }
}

/* 画面下に固定表示されるメニューバー（約54px）に、入力欄・ボタンが隠れないようにする */
article#Contact .cf input,
article#Contact .cf textarea,
article#Contact .cf .cf-btn { scroll-margin-top: 90px; scroll-margin-bottom: 100px; }

/* ── PC・タブレット ── */
@media screen and (min-width: 641px) {
    article#Contact .cf { padding: 12px 8px 40px; }
    article#Contact .cf .cf-lead { font-size: 15px; line-height: 1.9; }
    article#Contact .cf .cf-title { font-size: 24px; }
    article#Contact .cf input[type="text"],
    article#Contact .cf input[type="email"],
    article#Contact .cf input[type="tel"] { min-height: 50px; }
    article#Contact .cf .cf-btn { max-width: 420px; margin-left: auto; margin-right: auto; }
    article#Contact .cf .cf-quick .cf-btn { max-width: none; }
}

/* 動きを減らす設定の人にはアニメーションを使わない */
@media (prefers-reduced-motion: reduce) {
    article#Contact .cf .cf-btn { -webkit-transition: none; transition: none; }
}
