.ht-estimator{ margin: 16px 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; }
.ht-estimator__label{ display:block; font-weight:700; margin-bottom:8px; }
.ht-estimator__row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ht-estimator__row input{ flex: 1 1 220px; padding:10px 12px; border:1px solid #d1d5db; border-radius:10px; }
.ht-estimator__row button{ padding:10px 14px; border:0; border-radius:10px; background:#011461; color:#fff; font-weight:700; }
.ht-estimator__note{ margin:8px 0 0; font-size:12px; color:#6b7280; }
.ht-estimator__frame{ width:100%; border:0; min-height: 160px; margin-top: 10px; }

/* iPhone自動ズーム対策：入力欄は16px以上 */
.ht-estimator input[type="text"],
.ht-estimator input[type="tel"],
.ht-estimator input[type="number"],
.ht-estimator input {
    font-size: 16px;
    line-height: 1.2;
}
.fw-detail {
    /* 既存のCSS変数を上書きして全体の統一感を作る */
    --fw-brand: #011461;
    /* ベース */
    --fw-brand-2: #0b2a8f;
    /* やや明るい */
    --fw-accent-bg: rgba(1, 20, 97, .06);
    /* 薄い色面 */
    --fw-accent-line: rgba(1, 20, 97, .18);
    --fw-link: #0b2a8f;
}
/* ========= お届け日数フォーム（商品ページのトーンに合わせる） ========= */
.ht-estimator {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.ht-estimator__head {
    margin-bottom: 12px;
}
/* 見出しに色＆左アクセント線（“色どり”の主役） */
.fw-h2 {
    color: var(--fw-brand);
    position: relative;
    padding-left: 12px;
}
.fw-h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
}
.fw-h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 4px;
    height: 1.1em;
    border-radius: 999px;
    background: var(--fw-brand);
}
.ht-estimator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(1, 20, 97, .08);
    color: #011461;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .02em;
    margin: 0 0 8px;
}

.ht-estimator__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    color: #111827;
}

.ht-estimator__sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

/* アクセシビリティ確保：見た目はコンパクトに */
.ht-estimator__label {
    display: block;
    margin: 10px 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
}

.ht-estimator__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.ht-estimator__field {
    position: relative;
}

.ht-estimator__prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: #011461;
    opacity: .9;
}

.ht-estimator__field input {
    width: 100%;
    padding: 12px 12px 12px 34px;
    /* 〒分 */
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
}

.ht-estimator__field input:focus {
    outline: none;
    border-color: #011461;
    box-shadow: 0 0 0 3px rgba(1, 20, 97, .15);
}

/* ボタン */
.ht-estimator__btn {
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: #011461;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.ht-estimator__btn:active {
    transform: translateY(1px);
}

.ht-estimator__note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
}

.ht-estimator__frame {
    width: 100%;
    border: 0;
    min-height: 170px;
    margin-top: 10px;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: inset 0 0 0 1px #eef2f7;
}

/* SP：ボタンを横幅いっぱいにして押しやすく */
@media (max-width: 520px) {
    .ht-estimator__row {
        grid-template-columns: 1fr;
    }

    .ht-estimator__btn {
        width: 100%;
    }
}

/* iPhone自動ズーム対策：入力欄は16px以上（既存方針を維持） */
.ht-estimator input[type="text"],
.ht-estimator input[type="tel"],
.ht-estimator input[type="number"],
.ht-estimator input {
    font-size: 16px;
    line-height: 1.2;
}

/* iOSの見た目の崩れ予防（任意） */
.ht-estimator input {
    -webkit-text-size-adjust: 100%;
}