/* =========================================================
   VINAS evaluation license form - refined style
   既存HTMLのクラス名を前提に、CSSのみ差し替えできるように調整
   ========================================================= */

#estimate-form-content {
    --vinas-navy: #13355f;
    --vinas-navy-dark: #08233f;
    --vinas-blue: #1c6fa8;
    --vinas-green: #4e9d7a;
    --vinas-green-dark: #34775c;
    --vinas-bg: #eef3f6;
    --vinas-surface: #ffffff;
    --vinas-surface-soft: #f7fafb;
    --vinas-border: #d8e2e8;
    --vinas-border-strong: #bfd0da;
    --vinas-text: #1d2a35;
    --vinas-muted: #657481;
    --vinas-error-bg: #fff0f0;
    --vinas-error-border: #f2a8a8;
    --vinas-error-text: #a51818;
    --vinas-radius: 14px;
    --vinas-radius-sm: 8px;
    --vinas-shadow: 0 18px 45px rgba(8, 35, 63, 0.10);
    --vinas-shadow-soft: 0 8px 22px rgba(8, 35, 63, 0.08);
    --vinas-focus: 0 0 0 4px rgba(78, 157, 122, 0.18);
}

#estimate-form-content,
#estimate-form-content * {
    box-sizing: border-box;
}

#estimate-form-content {
    font-size: 16px;
    scroll-behavior: smooth;
}

#estimate-form-content {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--vinas-text);
    background: transparent;
    margin: 0;
    padding: 0;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

/* EPPIC製品ページと同じく、フォーム外側の装飾背景は使用しない */
#estimate-form-content::before {
    content: none;
    display: none;
}

#estimate-form-content .container {
    position: relative;
    max-width: 860px;
    margin: 36px auto 28px;
    background: transparent;
    padding: 28px clamp(24px, 5vw, 54px) 34px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

#estimate-form-content .container::before {
    content: none;
    display: none;
}

#estimate-form-content h1,
#estimate-form-content h2 {
    margin: 0;
    color: var(--vinas-navy-dark);
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.35;
}

#estimate-form-content h1 {
    font-size: clamp(26px, 3.4vw, 34px);
    margin-top: 100px;
}

#estimate-form-content h2 {
    position: relative;
    font-size: clamp(19px, 2.4vw, 25px);
    margin-top: 10px;
    margin-bottom: 28px;
    color: var(--vinas-navy);
}

#estimate-form-content h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vinas-blue), var(--vinas-green));
}

#estimate-form-content p {
    text-align: center;
    color: var(--vinas-muted);
    margin: 26px 0 26px;
    font-size: 14px;
}

/* 必須項目 */
#estimate-form-content .required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    height: 1.45em;
    margin-left: 6px;
    padding: 0 0.4em;
    border-radius: 999px;
    background: #ffe9e9;
    color: #c32222;
    font-size: 11px;
    font-weight: 700;
    vertical-align: 0.08em;
}

/* エラーBOX */
#estimate-form-content .error-box {
    background: var(--vinas-error-bg);
    border: 1px solid var(--vinas-error-border);
    border-left: 5px solid #d94b4b;
    padding: 14px 18px;
    margin: 0 0 24px;
    color: var(--vinas-error-text);
    font-size: 14px;
    border-radius: var(--vinas-radius-sm);
    box-shadow: 0 8px 18px rgba(165, 24, 24, 0.06);
}

/* 入力行 */
#estimate-form-content .form-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px 22px;
    align-items: start;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f5;
}

#estimate-form-content .form-row:last-of-type {
    border-bottom: none;
}

#estimate-form-content .form-row > label {
    display: block;
    width: auto;
    padding-top: 10px;
    color: #263747;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

/* 入力系 */
#estimate-form-content input[type="text"],
#estimate-form-content input[type="email"],
#estimate-form-content input[type="tel"],
#estimate-form-content input[type="url"],
#estimate-form-content input[type="number"],
#estimate-form-content input[type="password"],
#estimate-form-content select,
#estimate-form-content textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--vinas-border-strong);
    border-radius: var(--vinas-radius-sm);
    background: #fff;
    color: var(--vinas-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.55;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

#estimate-form-content select {
    appearance: auto;
    color: var(--vinas-text);
}

#estimate-form-content textarea {
    min-height: 128px;
    resize: vertical;
}

#estimate-form-content input[type="text"]:hover,
#estimate-form-content input[type="email"]:hover,
#estimate-form-content input[type="tel"]:hover,
#estimate-form-content input[type="url"]:hover,
#estimate-form-content input[type="number"]:hover,
#estimate-form-content input[type="password"]:hover,
#estimate-form-content select:hover,
#estimate-form-content textarea:hover {
    border-color: #8fb3c6;
    background: #fbfdfe;
}

#estimate-form-content input[type="text"]:focus,
#estimate-form-content input[type="email"]:focus,
#estimate-form-content input[type="tel"]:focus,
#estimate-form-content input[type="url"]:focus,
#estimate-form-content input[type="number"]:focus,
#estimate-form-content input[type="password"]:focus,
#estimate-form-content select:focus,
#estimate-form-content textarea:focus {
    outline: none;
    border-color: var(--vinas-green);
    box-shadow: var(--vinas-focus);
    background: #fff;
}

#estimate-form-content ::placeholder {
    color: #9aa8b2;
}

/* チェックボックス・ラジオオプション */
#estimate-form-content .options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 10px;
    width: 100%;
}



#estimate-form-content .options.options-vertical {
    grid-template-columns: 1fr;
}

#estimate-form-content .options.options-vertical label {
    width: 100%;
}

#estimate-form-content .options label {
    display: inline-flex;
    align-items: flex-start;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #dfe8ed;
    border-radius: 10px;
    background: var(--vinas-surface-soft);
    color: #2d4050;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#estimate-form-content .options label:hover {
    border-color: rgba(78, 157, 122, 0.55);
    background: #f1f8f5;
    box-shadow: var(--vinas-shadow-soft);
    transform: translateY(-1px);
}

#estimate-form-content .options input[type="checkbox"],
#estimate-form-content .options input[type="radio"] {
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    margin: 0.18em 8px 0 0;
    accent-color: var(--vinas-green-dark);
}

#estimate-form-content .options input[type="checkbox"]:focus-visible,
#estimate-form-content .options input[type="radio"]:focus-visible {
    outline: 3px solid rgba(78, 157, 122, 0.25);
    outline-offset: 2px;
}

/* ボタン */
#estimate-form-content .button-center {
    text-align: center;
    margin: 44px 0 14px;
}

#estimate-form-content .btn,
#estimate-form-content button.btn,
#estimate-form-content input[type="submit"].btn,
#estimate-form-content input[type="button"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 48px;
    padding: 13px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vinas-navy) 0%, #1d628d 62%, var(--vinas-green-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(19, 53, 95, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}

#estimate-form-content .btn:hover,
#estimate-form-content button.btn:hover,
#estimate-form-content input[type="submit"].btn:hover,
#estimate-form-content input[type="button"].btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(19, 53, 95, 0.28);
}

#estimate-form-content .btn:active,
#estimate-form-content button.btn:active,
#estimate-form-content input[type="submit"].btn:active,
#estimate-form-content input[type="button"].btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(19, 53, 95, 0.2);
}

#estimate-form-content .btn:focus-visible,
#estimate-form-content button.btn:focus-visible,
#estimate-form-content input[type="submit"].btn:focus-visible,
#estimate-form-content input[type="button"].btn:focus-visible {
    outline: none;
    box-shadow: var(--vinas-focus), 0 14px 28px rgba(19, 53, 95, 0.24);
}

/* 確認画面のテーブル */
#estimate-form-content .confirm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid var(--vinas-border);
    border-radius: var(--vinas-radius-sm);
    background: #fff;
}

#estimate-form-content .confirm-table th,
#estimate-form-content .confirm-table td {
    text-align: left;
    border-bottom: 1px solid var(--vinas-border);
    padding: 12px 14px;
    vertical-align: top;
    font-size: 14px;
}

#estimate-form-content .confirm-table tr:last-child th,
#estimate-form-content .confirm-table tr:last-child td {
    border-bottom: none;
}

#estimate-form-content .confirm-table th {
    width: 32%;
    background: #f2f7f8;
    color: var(--vinas-navy);
    font-weight: 700;
}

#estimate-form-content .confirm-table td {
    background: #fff;
    color: var(--vinas-text);
}

/* フッター */
#estimate-form-content .footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background: rgba(8, 35, 63, 0.96);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    box-shadow: 0 -8px 24px rgba(8, 35, 63, 0.18);
}

#estimate-form-content .footer p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
}

@media (max-width: 760px) {
    #estimate-form-content {
        padding: 0 12px 18px;
    }

    #estimate-form-content .container {
        margin: 24px auto 18px;
        padding: 24px 8px 28px;
        border-radius: 0;
    }

    #estimate-form-content .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    #estimate-form-content .form-row > label {
        padding-top: 0;
    }

    #estimate-form-content .options {
        grid-template-columns: 1fr;
    }

    #estimate-form-content .btn,
#estimate-form-content button.btn,
#estimate-form-content input[type="submit"].btn,
#estimate-form-content input[type="button"].btn {
        width: 100%;
        min-width: 0;
    }

    #estimate-form-content .confirm-table,
#estimate-form-content .confirm-table tbody,
#estimate-form-content .confirm-table tr,
#estimate-form-content .confirm-table th,
#estimate-form-content .confirm-table td {
        display: block;
        width: 100%;
    }

    #estimate-form-content .confirm-table th {
        border-bottom: none;
        padding-bottom: 6px;
    }

    #estimate-form-content .confirm-table td {
        padding-top: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #estimate-form-content,
#estimate-form-content *,
#estimate-form-content *::before,
#estimate-form-content *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   VINAS 共通ヘッダー／フッター統合用
   ========================================================= */
#estimate-form-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    /* 共通ヘッダーとページタイトルの間を約50px空ける */
    padding: 50px 0 6px;
}

#estimate-form-content .container {
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
}

#estimate-form-content .form-page-title {
    margin-bottom: 10px;
}

#estimate-form-content .button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0 0;
}

#estimate-form-content .button-row form {
    margin: 0;
}

#estimate-form-content .btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid #8b98a3;
    border-radius: 999px;
    background: #6c757d;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

#estimate-form-content .btn-back:hover {
    background: #58626b;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(19, 53, 95, 0.16);
}

#estimate-form-content .complete-message {
    text-align: center;
}

#estimate-form-content .complete-message p {
    font-size: 16px;
    line-height: 1.9;
}

#estimate-form-content .btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 48px;
    margin-top: 6px;
    padding: 13px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vinas-navy) 0%, #1d628d 62%, var(--vinas-green-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(19, 53, 95, .22);
}

#estimate-form-content .btn-home:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}

#estimate-form-content .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#estimate-form-content .error-box ul {
    margin: 8px 0 0 20px;
}

@media (max-width: 760px) {
    #estimate-form-content {
        padding: 50px 12px 4px;
    }

    #estimate-form-content .container {
        margin-top: 0;
        padding-top: 0;
    }

    #estimate-form-content .button-row {
        flex-direction: column;
    }

    #estimate-form-content .button-row form,
    #estimate-form-content .button-row .btn,
    #estimate-form-content .button-row .btn-back {
        width: 100%;
    }
}


/* =========================================================
   v5: パンくずを評価ライセンス申込ページと同じく
       ヘッダー直下・ページタイトルの上に表示
   ========================================================= */
#container-top > #pankuzu.estimate-form-breadcrumb {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box;
    width: 960px !important;
    max-width: 100% !important;
    margin: 120px auto 0 !important;
    z-index: 1;
}

/* パンくずの下に余白を取り、タイトルがヘッダーに潜り込まないようにする */
#estimate-form-content {
    clear: both !important;
    padding-top: 34px !important;
}

#estimate-form-content .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#estimate-form-content h1 {
    margin-top: 0 !important;
}

@media (max-width: 760px) {
    #container-top > #pankuzu.estimate-form-breadcrumb {
        width: auto !important;
        margin: 10px 12px 0 !important;
    }

    #estimate-form-content {
        padding-top: 24px !important;
    }

    #estimate-form-content .container {
        padding-top: 0 !important;
    }
}
