/*
 * LINE見積もり / スタイルシート v1.0.0
 *
 * スコープ: .line-estimate 以下にすべて閉じる
 * 命名: BEM 風 .le__* を統一使用
 * ベース: iroha-estimate の estimate.css を LINE 専用に移植
 */

/* ================================================================
   カラー・デザイントークン（CSS 変数）
================================================================ */
.line-estimate {
    --le-color-primary:         #111111;
    --le-color-primary-hover:   rgba(17, 17, 17, 0.88);
    --le-color-accent-line:     #06C755;   /* LINE グリーン */
    --le-color-accent-line-h:   rgba(6, 199, 85, 0.88);
    --le-color-muted:           #828282;
    --le-color-required:        #c00;

    --le-color-border:          #e6e6e6;
    --le-color-border-dark:     #cccccc;
    --le-color-border-focus:    #111111;
    --le-color-bg:              #ffffff;
    --le-color-bg-section:      #fafafa;
    --le-color-bg-hover:        #f5f5f5;
    --le-color-bg-selected:     #f0f0f0;

    --le-color-text:            #333333;
    --le-color-text-label:      #222222;
    --le-color-text-hint:       #666666;
    --le-color-text-muted:      #888888;
    --le-color-discount:        #2e7d32;
    --le-color-warning-bg:      #fffbec;
    --le-color-warning-border:  #e8a000;
    --le-color-warning-text:    #7a5000;
    --le-color-success-bg:      #f0faf3;
    --le-color-success-border:  #06C755;
    --le-color-success-text:    #1a5c30;

    --le-radius:                8px;
    --le-radius-sm:             5px;
    --le-radius-pill:           20px;
    --le-transition:            0.15s ease;

    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--le-color-text);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.line-estimate *,
.line-estimate *::before,
.line-estimate *::after {
    box-sizing: border-box;
}

/* ================================================================
   ヘッダー（LINE専用フォームであることを明示）
================================================================ */
.le__header {
    background: linear-gradient(135deg, #06C755 0%, #04a845 100%);
    border-radius: var(--le-radius) var(--le-radius) 0 0;
    padding: 14px 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.le__header-badge {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin: 0 0 6px;
}

.le__header-note {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.le__header-note strong {
    font-weight: 700;
}

/* ================================================================
   2カラム レイアウト
================================================================ */
.le__layout {
    display: grid;
    grid-template-columns: 1fr;
}

.le__col--form,
.le__col--result {
    min-width: 0;
}

@media (min-width: 768px) {
    .le__layout {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }

    .le__col--result {
        position: sticky;
        top: 20px;
    }

    .le__result {
        margin-top: 0;
    }
}

/* ================================================================
   LINE名 入力セクション（フォーム最上部）
================================================================ */
.le__line-name-section {
    background: var(--le-color-bg-section);
    border: 2px solid var(--le-color-accent-line);
    border-radius: var(--le-radius);
    padding: 16px 20px 12px;
    margin-bottom: 16px;
}

/* ================================================================
   セクション（fieldset）
================================================================ */
.le__section {
    border: 1px solid var(--le-color-border);
    border-radius: var(--le-radius);
    padding: 20px 20px 12px;
    margin-bottom: 16px;
}

.le__section--options {
    border-color: var(--le-color-border-dark);
    background: var(--le-color-bg-section);
}

.le__legend {
    font-size: 1rem;
    font-weight: 700;
    padding: 0 8px;
    color: var(--le-color-text-label);
}

.le__required-note {
    font-size: 0.78em;
    color: var(--le-color-required);
    font-weight: 400;
    margin-left: 6px;
}

/* ================================================================
   フィールド・ラベル
================================================================ */
.le__field {
    margin-bottom: 14px;
}

.le__label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--le-color-text-label);
}

.le__required {
    display: inline-block;
    background: var(--le-color-required);
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.le__hint {
    display: block;
    font-size: 0.82em;
    color: var(--le-color-text-hint);
    margin-top: 4px;
    line-height: 1.5;
}

/* ================================================================
   テキスト入力（LINE名用）
================================================================ */
.le__input-text {
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 12px 14px;
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--le-color-bg);
    color: var(--le-color-text);
    transition: border-color var(--le-transition);
    min-height: 48px;
}

.le__input-text:focus {
    border-color: var(--le-color-accent-line);
    outline: 2px solid rgba(6, 199, 85, 0.25);
    outline-offset: 0;
}

/* ================================================================
   カード選択（刺繍種類・複雑度）
================================================================ */
.le__card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.le__card-label {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--le-color-border);
    border-radius: var(--le-radius);
    background: var(--le-color-bg);
    cursor: pointer;
    transition: border-color var(--le-transition), background var(--le-transition);
    min-height: 52px;
}

.le__card-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.le__card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--le-color-text-label);
    line-height: 1.4;
}

.le__card-desc {
    font-size: 0.76rem;
    color: var(--le-color-text-hint);
    line-height: 1.4;
}

.le__card-label:hover {
    border-color: var(--le-color-accent-line);
    background: var(--le-color-bg-hover);
}

.le__card-label:has(.le__card-radio:checked),
.le__card-label--selected {
    border: 2px solid var(--le-color-accent-line);
    background: #f0fdf4;
    padding: 11px 13px;
}

.le__card-label:has(.le__card-radio:checked) .le__card-title,
.le__card-label--selected .le__card-title {
    color: #047030;
}

.le__card-label:has(.le__card-radio:focus-visible) {
    outline: 2px solid var(--le-color-accent-line);
    outline-offset: 2px;
}

/* ================================================================
   ラジオボタン（従来型）
================================================================ */
.le__radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 6px 10px;
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
    background: var(--le-color-bg);
    transition: border-color var(--le-transition), background var(--le-transition);
    min-height: 44px;
}

.le__radio-label:hover {
    border-color: var(--le-color-accent-line);
    background: var(--le-color-bg-hover);
}

.le__radio-label input[type="radio"] {
    margin: 0;
    accent-color: var(--le-color-accent-line);
}

.le__radio-label:has(input[type="radio"]:checked) {
    border-color: var(--le-color-accent-line);
    background: #f0fdf4;
    font-weight: 600;
}

/* ================================================================
   セレクト・数値入力
================================================================ */
.le__select,
.le__input-number {
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--le-color-bg);
    color: var(--le-color-text);
    transition: border-color var(--le-transition);
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
}

.le__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.le__select:focus,
.le__input-number:focus {
    border-color: var(--le-color-accent-line);
    outline: 2px solid rgba(6, 199, 85, 0.25);
    outline-offset: 0;
}

.le__input-number {
    max-width: 160px;
}

/* ================================================================
   ステッパー（枚数入力）
================================================================ */
.le__stepper {
    display: flex;
    align-items: stretch;
    width: fit-content;
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
    overflow: hidden;
    background: var(--le-color-bg);
}

.le__stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    background: var(--le-color-bg-hover);
    border: none;
    font-size: 1.25rem;
    font-family: inherit;
    color: var(--le-color-text-label);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--le-transition), opacity var(--le-transition);
    padding: 0;
    line-height: 1;
}

.le__stepper-btn:hover { background: #e0e0e0; }
.le__stepper-btn:active { background: #d4d4d4; }
.le__stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.le__stepper .le__input-number {
    width: 72px;
    max-width: 72px;
    min-height: 44px;
    padding: 10px 6px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--le-color-border);
    border-right: 1px solid var(--le-color-border);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
}

.le__stepper .le__input-number::-webkit-inner-spin-button,
.le__stepper .le__input-number::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.le__stepper:focus-within {
    outline: 2px solid var(--le-color-accent-line);
    outline-offset: 2px;
}

/* ================================================================
   チェックボックス（オプション）
================================================================ */
.le__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding: 6px 0;
}

.le__checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--le-color-accent-line);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.le__opt-note {
    display: block;
    font-size: 0.8em;
    color: var(--le-color-text-muted);
    margin-top: 1px;
}

/* ================================================================
   名入れ詳細エリア
================================================================ */
.le__name-option-wrap { margin-bottom: 10px; }

.le__name-type-area {
    margin-top: 8px;
    margin-left: 25px;
    padding: 12px 14px;
    background: var(--le-color-bg-hover);
    border: 1px solid var(--le-color-border-dark);
    border-left: 3px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
}

.le__name-type-prompt {
    font-size: 0.85rem;
    color: var(--le-color-text-hint);
    margin: 0 0 10px;
    font-weight: 500;
}

.le__name-radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.le__name-type-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.le__name-caution {
    font-size: 0.78rem;
    color: var(--le-color-text-muted);
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--le-color-border);
    line-height: 1.5;
}

.le__name-type-warn {
    color: var(--le-color-required, #c0392b);
    font-style: italic;
    font-size: 0.88em;
}

/* ================================================================
   オプション折りたたみ
================================================================ */
.le__optional-wrap { margin-bottom: 16px; }

.le__optional-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: var(--le-color-bg-hover);
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    color: var(--le-color-text-label);
    font-weight: 500;
    transition: background var(--le-transition), border-color var(--le-transition);
    min-height: 44px;
}

.le__optional-toggle:hover {
    background: #eaeaea;
    border-color: var(--le-color-accent-line);
}

.le__optional-toggle[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--le-color-accent-line);
    background: var(--le-color-bg-selected);
}

.le__toggle-icon {
    font-size: 0.8em;
    color: var(--le-color-muted);
}

.le__optional-body {
    border: 1px solid var(--le-color-accent-line);
    border-top: none;
    border-bottom-left-radius: var(--le-radius-sm);
    border-bottom-right-radius: var(--le-radius-sm);
    padding: 4px 0 0;
}

.le__optional-body .le__section {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* ================================================================
   エラーメッセージ
================================================================ */
.le__error-msg {
    background: #fff0f0;
    border-left: 4px solid var(--le-color-required);
    color: var(--le-color-required);
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 12px;
    margin-top: 4px;
    line-height: 1.5;
}

/* ================================================================
   計算ボタン
================================================================ */
.le__btn-calc {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--le-color-primary);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: var(--le-radius);
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.05em;
    transition: opacity var(--le-transition), transform 0.1s;
    min-height: 52px;
}

.le__btn-calc:hover { opacity: 0.88; }
.le__btn-calc:active { transform: translateY(1px); }

/* ================================================================
   結果エリア
================================================================ */
.le__result {
    background: var(--le-color-bg);
    border: 2px solid var(--le-color-primary);
    border-radius: 10px;
    padding: 24px;
    margin-top: 28px;
}

.le__result-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--le-color-text-label);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--le-color-border);
}

.le__approx-badge {
    display: inline-block;
    font-size: 0.6em;
    font-weight: 700;
    color: var(--le-color-muted);
    border: 1px solid var(--le-color-border-dark);
    padding: 2px 8px;
    border-radius: var(--le-radius-pill);
    letter-spacing: 0.05em;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
}

.le__estimate-id {
    font-size: 0.85rem;
    color: var(--le-color-text-hint);
    margin: 0 0 16px;
}

.le__estimate-id strong {
    font-family: monospace;
    color: var(--le-color-text);
}

/* ================================================================
   内訳テーブル
================================================================ */
.le__breakdown {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.le__breakdown th,
.le__breakdown td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--le-color-border);
    vertical-align: top;
}

.le__breakdown th {
    text-align: left;
    font-weight: 500;
    color: #555;
    width: 55%;
}

.le__breakdown td {
    text-align: right;
    font-weight: 500;
    color: var(--le-color-text-label);
    white-space: nowrap;
}

.le__note {
    display: block;
    font-size: 0.78em;
    color: var(--le-color-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.le__opt-breakdown-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    font-size: 0.82em;
    color: #555;
}

.le__opt-breakdown-list li::before { content: '・'; }

.le__subtotal-row th,
.le__subtotal-row td {
    font-weight: 700;
    border-top: 2px solid var(--le-color-border-dark);
    border-bottom: 1px solid var(--le-color-border-dark);
    padding-top: 12px;
}

.le__total-row th,
.le__total-row td {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--le-color-primary);
    border-top: 2px solid var(--le-color-primary);
    border-bottom: none;
    padding-top: 12px;
}

/* ================================================================
   送料注意文言・納期目安
================================================================ */
.le__shipping-note {
    font-size: 0.88rem;
    color: #555;
    background: var(--le-color-bg-section);
    border-left: 3px solid var(--le-color-border-dark);
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    margin: 4px 0 16px;
    line-height: 1.6;
}

.le__lead-time {
    font-size: 0.9rem;
    color: #555;
    margin: 4px 0 16px;
}

.le__lead-time strong { color: var(--le-color-text-label); }

/* ================================================================
   要確認フラグ
================================================================ */
.le__flags {
    background: var(--le-color-warning-bg);
    border-left: 4px solid var(--le-color-warning-border);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 12px;
}

.le__flags-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--le-color-warning-text);
    margin: 0 0 6px;
}

.le__flags ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.le__flags ul li {
    font-size: 0.88rem;
    color: var(--le-color-warning-text);
    padding-left: 12px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.5;
}

.le__flags ul li::before {
    content: '▶';
    font-size: 0.65em;
    position: absolute;
    left: 0;
    top: 4px;
}

.le__default-msg {
    font-size: 0.85rem;
    color: var(--le-color-text-hint);
    margin: 8px 0 0;
    line-height: 1.6;
}

/* ================================================================
   送信 CTA エリア（LINE専用 - 依頼ボタン）
================================================================ */
.le__cta-area {
    margin-top: 20px;
    padding: 20px;
    background: var(--le-color-bg-section);
    border: 2px solid var(--le-color-accent-line);
    border-radius: var(--le-radius);
}

.le__cta-lead {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--le-color-text-label);
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.5;
}

.le__cta-note {
    font-size: 0.85rem;
    color: var(--le-color-text-hint);
    margin: 0 0 14px;
    text-align: center;
    line-height: 1.5;
}

/* 見積もりを依頼するボタン（LINEグリーン） */
.le__btn-submit {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: var(--le-color-accent-line);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: var(--le-radius);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.05em;
    transition: opacity var(--le-transition), transform 0.1s;
    min-height: 56px;
}

.le__btn-submit:hover {
    opacity: 0.9;
}

.le__btn-submit:active {
    transform: translateY(1px);
}

.le__btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.le__cta-disclaimer {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--le-color-muted);
    text-align: center;
    line-height: 1.5;
}

/* ================================================================
   送信完了エリア
================================================================ */
.le__complete-area {
    margin-top: 28px;
    padding: 32px 24px;
    background: var(--le-color-success-bg);
    border: 2px solid var(--le-color-success-border);
    border-radius: var(--le-radius);
    text-align: center;
}

.le__complete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--le-color-accent-line);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.le__complete-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--le-color-success-text);
    margin: 0 0 12px;
}

.le__complete-text {
    font-size: 0.95rem;
    color: var(--le-color-success-text);
    line-height: 1.7;
    margin: 0 0 10px;
}

.le__complete-id {
    font-size: 0.82rem;
    color: var(--le-color-text-muted);
    font-family: monospace;
    margin: 0;
}

/* ================================================================
   レスポンシブ（モバイル最適化）
================================================================ */
@media (max-width: 480px) {
    .le__section {
        padding: 14px 14px 8px;
    }

    .le__name-type-area {
        margin-left: 0;
        padding: 10px;
    }

    .le__card-group {
        grid-template-columns: 1fr;
    }

    .le__card-label {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-height: 52px;
    }

    .le__radio-group {
        flex-direction: column;
        gap: 6px;
    }

    .le__select,
    .le__input-number,
    .le__input-text {
        max-width: 100%;
    }

    .le__result {
        padding: 16px;
    }

    .le__breakdown th {
        width: 50%;
    }

    .le__total-row th,
    .le__total-row td {
        font-size: 1.1rem;
    }
}

/* ================================================================
   枚数セクション（全ポイント共通）
================================================================ */
.le__quantity-section {
    background: var(--le-color-bg-section);
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius);
    padding: 16px 20px 12px;
    margin-bottom: 16px;
}

/* ================================================================
   ポイントブロック（刺繍箇所）
================================================================ */
.le__point-block {
    border: 1px solid var(--le-color-border);
    border-radius: var(--le-radius);
    margin-bottom: 12px;
    background: var(--le-color-bg);
    overflow: hidden;
}

/* ポイント1 ヘッダー（シンプル・削除ボタンなし） */
.le__point-header--first {
    background: var(--le-color-bg-section);
    border-bottom: 1px solid var(--le-color-border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

/* ポイント2・3 ヘッダー（トグル・削除ボタンあり） */
.le__point-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--le-color-bg-section);
    border-bottom: 1px solid var(--le-color-border);
    padding: 8px 12px;
    min-height: 44px;
}

.le__point-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--le-color-text-label);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ▲▼ 折りたたみトグルボタン */
.le__point-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
    font-size: 0.8rem;
    color: var(--le-color-muted);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background var(--le-transition), border-color var(--le-transition);
}

.le__point-toggle-btn:hover {
    background: var(--le-color-bg-hover);
    border-color: var(--le-color-accent-line);
}

/* 削除ボタン */
.le__point-delete-btn {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #e0a0a0;
    border-radius: var(--le-radius-sm);
    font-size: 0.82rem;
    color: #c00;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--le-transition), border-color var(--le-transition);
    min-height: 32px;
    white-space: nowrap;
    font-family: inherit;
}

.le__point-delete-btn:hover {
    background: #fff0f0;
    border-color: #c00;
}

/* ポイントボディ */
.le__point-body {
    padding: 16px 20px 4px;
}

@media (max-width: 480px) {
    .le__point-body {
        padding: 12px 14px 4px;
    }
}

/* ポイント別オプションエリア */
.le__point-options {
    background: var(--le-color-bg-section);
    border: 1px solid var(--le-color-border);
    border-radius: var(--le-radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.le__point-options-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--le-color-text-hint);
    margin: 0 0 8px;
    letter-spacing: 0.03em;
}

/* ================================================================
   ＋刺繍箇所を追加ボタン
================================================================ */
.le__add-point-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 11px 16px;
    background: transparent;
    border: 2px dashed var(--le-color-accent-line);
    border-radius: var(--le-radius);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    color: #047030;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background var(--le-transition), border-color var(--le-transition);
    min-height: 48px;
}

.le__add-point-btn:hover {
    background: #f0fdf4;
    border-color: #04a845;
}

.le__add-point-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--le-color-border-dark);
    color: var(--le-color-muted);
}

.le__add-point-btn span {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--le-color-text-hint);
}

/* ================================================================
   U2: 枚数プリセットボタン
================================================================ */
.le__qty-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 2px;
}

.le__qty-presets-label {
    font-size: 0.78rem;
    color: var(--le-color-text-hint);
    white-space: nowrap;
}

.le__qty-preset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: var(--le-color-bg);
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-pill);
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--le-color-text-label);
    cursor: pointer;
    min-height: 30px;
    transition: background var(--le-transition), border-color var(--le-transition), color var(--le-transition);
}

.le__qty-preset:hover {
    background: var(--le-color-accent-line);
    border-color: var(--le-color-accent-line);
    color: #ffffff;
}

.le__qty-preset:active {
    transform: translateY(1px);
}

/* ================================================================
   U1: 箇所複製ボタン（コピー）
================================================================ */
.le__point-copy-btn {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #b0c4de;
    border-radius: var(--le-radius-sm);
    font-size: 0.78rem;
    font-family: inherit;
    color: #1a5276;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--le-transition), border-color var(--le-transition);
    min-height: 32px;
    white-space: nowrap;
    gap: 3px;
}

.le__point-copy-btn:hover {
    background: #eaf4fc;
    border-color: #1a5276;
}

.le__point-copy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================================
   U3: 見積IDコピーボタン
================================================================ */
.le__copy-id-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
    padding: 0;
    transition: background var(--le-transition), border-color var(--le-transition);
    color: var(--le-color-text-hint);
}

.le__copy-id-btn:hover {
    background: var(--le-color-bg-hover);
    border-color: var(--le-color-accent-line);
}

/* ================================================================
   U4: 送信確認モーダル
================================================================ */
.le__modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.le__modal[hidden] {
    display: none;
}

.le__modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.le__modal-content {
    position: relative;
    background: #ffffff;
    border-radius: var(--le-radius);
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: le-fadein 0.2s ease-out;
}

.le__modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--le-color-text-label);
    margin: 0 0 16px;
    line-height: 1.4;
}

.le__modal-summary {
    background: var(--le-color-bg-section);
    border: 1px solid var(--le-color-border);
    border-radius: var(--le-radius-sm);
    padding: 12px 14px;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    font-size: 0.9rem;
}

.le__modal-summary dt {
    font-weight: 600;
    color: var(--le-color-text-hint);
    white-space: nowrap;
}

.le__modal-summary dd {
    color: var(--le-color-text-label);
    font-weight: 500;
    margin: 0;
}

.le__modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.le__btn-submit--modal {
    min-height: 48px;
    font-size: 1rem;
}

.le__btn-cancel {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: var(--le-color-text-label);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--le-color-border-dark);
    border-radius: var(--le-radius);
    cursor: pointer;
    text-align: center;
    transition: background var(--le-transition), border-color var(--le-transition);
    min-height: 44px;
}

.le__btn-cancel:hover {
    background: var(--le-color-bg-hover);
    border-color: var(--le-color-border-dark);
}

/* body にモーダルオープンクラスがある間はスクロールを禁止 */
body.le__modal-open {
    overflow: hidden;
}

/* ================================================================
   U5: 再見積もりボタン（送信完了後）
================================================================ */
.le__btn-reestimate {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    background: transparent;
    color: var(--le-color-success-text);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--le-color-success-border);
    border-radius: var(--le-radius-pill);
    cursor: pointer;
    transition: background var(--le-transition), border-color var(--le-transition);
    min-height: 40px;
}

.le__btn-reestimate:hover {
    background: rgba(6, 199, 85, 0.08);
}

/* ================================================================
   フェードイン（計算後・完了後の出現）
================================================================ */
@keyframes le-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.le__result:not([hidden]) {
    animation: le-fadein 0.3s ease-out;
}

.le__cta-area:not([hidden]) {
    animation: le-fadein 0.3s ease-out 0.1s both;
}

.le__complete-area:not([hidden]) {
    animation: le-fadein 0.4s ease-out;
}
