/* ========================================
   モバイルフォーム UX 最適化 (v=20260701125854)
   ・iOS キーボード遅延回避
   ・タッチターゲット最適化
   ・ズーム防止
   ・コンテンツ幅の適切な維持
   ======================================== */

/* ========================================
   iOS キーボード表示時のズーム防止＆タッチ遅延軽減
   ========================================  */
@media (max-width: 768px) {
    html {
        /* iOS のデフォルトズーム率を 100% に固定 */
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* input / textarea のフォントサイズを 16px 以上にしてズームを防止 */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        /* キーボード表示時のスクロールやカクつきを抑える */
        will-change: transform;
        /* 300msのタップディレイを排除 */
        touch-action: manipulation;
        -webkit-appearance: none;
        -webkit-appearance: textfield;
        -moz-appearance: textfield;
        appearance: none;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }

    /* カレンダーや日付等の入力エリアもタップ領域を十分に確保 */
    input[type="date"],
    input[type="time"] {
        font-size: 16px;
        padding: 12px;
    }
}

/* ========================================
   フォーム入力フィールド・ボタンのレスポンシブ幅最適化
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%; /* 親コンテナの横幅いっぱいに広げる */
    max-width: 100%; /* コンテンツ幅を狭めない */
    padding: 14px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box; /* paddingとborderを含めて幅計算し、はみ出しを防ぐ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* フォーカス時のアクセント（枠線強調） */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #9C27B0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15);
    background-color: #faf5ff;
}

/* ボタン要素のタッチターゲット確保 */
.social-proof-section button {
    width: auto;
    min-width: 150px;
    max-width: 100%;
    min-height: 48px; /* モバイルタップターゲット基準値 */
    padding: 12px 24px;
    box-sizing: border-box;
    cursor: pointer;
    touch-action: manipulation;
}

/* モバイルデバイスでの調整 */
@media (max-width: 480px) {
    .social-proof-section button {
        width: 100%; /* スマホなどの極小幅では押しやすさを考慮して全幅化 */
    }
}
