{"id":87185,"date":"2026-06-23T11:24:33","date_gmt":"2026-06-23T02:24:33","guid":{"rendered":"https:\/\/www.yaraku.com\/?page_id=87185"},"modified":"2026-10-14T11:48:02","modified_gmt":"2026-10-14T02:48:02","slug":"company-apply","status":"publish","type":"page","link":"https:\/\/www.yaraku.com\/en\/company-apply\/","title":{"rendered":"Company Plan Application Form"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<style data-wp-block-html=\"css\">\n@import url('https:\/\/fonts.googleapis.com\/css2?family=Noto+Sans+JP:wght@100;400;600&display=swap');\n\n.yaraku-form-page *, .yaraku-form-page *::before, .yaraku-form-page *::after { box-sizing: border-box; }\n    .yaraku-form-page { font-family: 'Noto Sans JP', \"Helvetica Neue\", Arial, \"Hiragino Kaku Gothic ProN\", \"Meiryo\", sans-serif;  color: rgb(68,68,68);  line-height: 1.6; }\n    .yaraku-form-page a { text-decoration: none; color: rgb(68,68,68); }\n\n\n    .yaraku-form-page .container { max-width: 820px; margin: 50px auto; background: #fff; padding: 50px 60px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-radius: 4px; }\n\n\n    .yaraku-form-page h1 { font-size: 26px; margin-bottom: 8px; color: #323232; font-weight: 600; border-bottom: 2px solid #323232; display: inline-block; padding-bottom: 8px; margin-top: 0; }\n    .yaraku-form-page .page-desc { color: #666; margin-bottom: 40px; line-height: 1.7; font-size: 15px; margin-top: 12px; }\n\n\n    .yaraku-form-page .section-block { margin-bottom: 45px; }\n    .yaraku-form-page .section-block h2 { font-size: 22px; font-weight: 400; color: #323232; margin: 0 0 24px 0; padding: 0 0 12px 0; background: none; border-left: none; border-bottom: 2px dotted #808080; border-radius: 0; }\n    .yaraku-form-page .section-block h3 { font-size: 16px; font-weight: 400; color: #323232; margin: 24px 0 12px 0; padding: 0 0 6px 0; border-bottom: 2px dotted #808080; }\n\n\n    .yaraku-form-page .form-group { margin-bottom: 22px; }\n    .yaraku-form-page .form-group > label:first-child { display: block; font-weight: 600; font-size: 14px; color: rgb(68,68,68); margin-bottom: 6px; }\n    .yaraku-form-page .required { color: #dc503c; margin-left: 3px; }\n\n\n    .yaraku-form-page input[type=\"text\"], .yaraku-form-page input[type=\"tel\"], .yaraku-form-page input[type=\"email\"], .yaraku-form-page input[type=\"date\"], .yaraku-form-page select {\n      width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px;\n      font-size: 14px; font-family: inherit; color: rgb(68,68,68); background: #fff;\n      transition: border-color 0.2s; appearance: none; -webkit-appearance: none;\n    }\n    .yaraku-form-page input[type=\"text\"]:focus, .yaraku-form-page input[type=\"tel\"]:focus, .yaraku-form-page input[type=\"email\"]:focus,\n    .yaraku-form-page input[type=\"date\"]:focus, .yaraku-form-page select:focus {\n      outline: none; border-color: #dc503c; box-shadow: 0 0 0 2px rgba(220,80,60,0.12);\n    }\n    .yaraku-form-page input.error, .yaraku-form-page select.error { border-color: #dc503c !important; box-shadow: none; }\n    .yaraku-form-page .error-msg { color: #dc503c; font-size: 13px; margin-top: 4px; display: none; }\n    .yaraku-form-page .error-msg.visible { display: block; }\n    .yaraku-form-page input[readonly] { background: #f5f5f5; color: #888; cursor: not-allowed; }\n\n\n    .yaraku-form-page .zip-row { display: flex; gap: 10px; align-items: flex-start; }\n    .yaraku-form-page .zip-row input { flex: 0 0 160px; }\n    .yaraku-form-page .btn-zip { padding: 10px 16px; background: #dc503c; color: #fff; border: none; border-radius: 4px; font-size: 13px; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background 0.2s; height: 42px; }\n    .yaraku-form-page .btn-zip:hover { background: rgb(200,60,40); }\n\n\n    .yaraku-form-page .radio-group { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 4px; }\n    .yaraku-form-page .radio-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }\n    .yaraku-form-page .radio-item input[type=\"radio\"] { width: 18px; height: 18px; accent-color: #dc503c; cursor: pointer; flex-shrink: 0; margin: 0; }\n    .yaraku-form-page .radio-item span { color: rgb(68,68,68); }\n\n\n    .yaraku-form-page .checkbox-item { display: flex; align-items: flex-start; gap: 10px; }\n    .yaraku-form-page .checkbox-item input[type=\"checkbox\"] { width: 18px; height: 18px; accent-color: #dc503c; cursor: pointer; flex-shrink: 0; margin-top: 2px; }\n    .yaraku-form-page .checkbox-item label { font-weight: 400; font-size: 14px; cursor: pointer; line-height: 1.6; }\n    .yaraku-form-page .checkbox-item a { color: #0056b3; text-decoration: underline; }\n\n\n    .yaraku-form-page .same-check-box { background: #fdf5f4; border: 1px solid #f5c2bb; border-radius: 4px; padding: 14px 18px; margin-bottom: 24px; }\n    .yaraku-form-page .same-check-box .checkbox-item label { font-weight: 600; color: #dc503c; }\n\n\n    .yaraku-form-page .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }\n\n\n    .yaraku-form-page .quote-info { background: #f0f4f8; border: 1px solid #ccdae8; border-radius: 4px; padding: 20px 24px; margin-bottom: 24px; }\n    .yaraku-form-page .quote-info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }\n    .yaraku-form-page .quote-info-row .label { color: #666; flex: 0 0 140px; }\n    .yaraku-form-page .quote-info-row .value { font-weight: 600; }\n\n\n    .yaraku-form-page .estimate-section { background: #f9f9f9; border: 1px solid #e5e5e5; border-radius: 4px; padding: 24px; margin-bottom: 40px; }\n    .yaraku-form-page .estimate-table { width: 100%; border-collapse: collapse; }\n    .yaraku-form-page .estimate-table th { background: #fff; padding: 10px 12px; text-align: left; font-size: 13px; color: #666; font-weight: 600; border-bottom: 2px solid #ddd; }\n    .yaraku-form-page .estimate-table td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid #eee; }\n    .yaraku-form-page .estimate-table tfoot tr:last-child td { border-bottom: none; }\n    .yaraku-form-page .text-right { text-align: right; }\n    .yaraku-form-page .subtotal-row td { font-weight: 600; border-top: 2px solid #ddd; padding-top: 12px; border-bottom: none; }\n    .yaraku-form-page .total-row td { font-weight: 600; font-size: 16px; color: #dc503c; border-bottom: none; }\n\n\n    .yaraku-form-page .form-error-banner { background: #fff0ee; border: 1px solid #f5c2bb; border-radius: 4px; padding: 14px 18px; margin-bottom: 28px; color: #c0392b; font-size: 14px; display: none; }\n    .yaraku-form-page .form-error-banner.visible { display: block; }\n\n\n    .yaraku-form-page .contact-redirect { background: #fff8e1; border: 1px solid #ffe082; border-radius: 4px; padding: 20px 24px; text-align: center; display: none; }\n    .yaraku-form-page .contact-redirect p { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: rgb(68,68,68); }\n    .yaraku-form-page .contact-redirect a { color: #dc503c; text-decoration: underline; font-weight: 600; }\n\n\n    .yaraku-form-page .submit-btn { width: 100%; padding: 16px; background: rgb(220,80,60); color: white; border: none; font-size: 17px; font-weight: 600; border-radius: 4px; cursor: pointer; margin-top: 35px; transition: background 0.2s; font-family: inherit; }\n    .yaraku-form-page .submit-btn:hover { background: rgb(200,60,40); }\n    .yaraku-form-page .submit-btn:disabled { background: #ccc; cursor: not-allowed; }\n\n\n    .yaraku-form-page .loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); z-index: 9999; justify-content: center; align-items: center; }\n    .yaraku-form-page .loading-overlay.visible { display: flex; }\n    .yaraku-form-page .loading-spinner { border: 4px solid #e5e5e5; border-top: 4px solid #dc503c; border-radius: 50%; width: 40px; height: 40px; animation: spin 0.8s linear infinite; }\n    @keyframes spin { to { transform: rotate(360deg); } }\n\n\n    .yaraku-form-page .success-message { display: none; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 4px; padding: 24px; text-align: center; margin-top: 20px; }\n    .yaraku-form-page .success-message.visible { display: block; }\n    .yaraku-form-page .success-message p { margin: 0; font-size: 16px; font-weight: 600; color: #2e7d32; }\n\n\n    .yaraku-form-page .state-loading { text-align: center; padding: 60px 20px; color: #888; font-size: 15px; }\n    .yaraku-form-page .state-error { background: #fff0ee; border: 1px solid #f5c2bb; border-radius: 4px; padding: 24px; text-align: center; color: #c0392b; margin-bottom: 20px; }\n\n\n    @media (max-width: 600px) {\n      .yaraku-form-page .btn-start { padding: 8px 16px; font-size: 13px; }\n      .yaraku-form-page .container { margin: 20px 12px; padding: 30px 20px; }\n      .yaraku-form-page .form-row { grid-template-columns: 1fr; }\n      .yaraku-form-page .zip-row input { flex: 0 0 130px; }\n    }\n<\/style>\n\n<script data-wp-block-html=\"js\">\n(function() {\n\/* Shared application API client, embedded in each standalone WordPress script. *\/\nfunction createApplicationClient(endpoint, language) {\n  var catalog, pending, busy = false, complete = false;\n  function value(id) { var el = document.getElementById(id); return el ? el.value.trim() : ''; }\n  function selected(name, fallback) { var el = document.querySelector('input[name=\"' + name + '\"]:checked'); return el ? el.value : (fallback || ''); }\n  function checked(id) { var el = document.getElementById(id); return el ? el.checked : false; }\n  async function request(action, payload) {\n    if (!\/^https:\\\/\\\/script\\.google\\.com\\\/macros\\\/s\\\/[^\/]+\\\/exec$\/.test(endpoint)) throw Error('The integration endpoint is not configured');\n    var body = { action: action, payload: payload || {} };\n    if (['direct', 'apply'].includes(action)) {\n      if (!catalog) throw Error('The connection is not ready');\n      if (catalog.mode === 'LIVE') {\n        if (!window.grecaptcha) throw Error('Form verification is unavailable');\n        body.recaptchaToken = await window.grecaptcha.execute(catalog.recaptchaSiteKey, { action: 'masterdata_submit' });\n      }\n    }\n    var response = await window.fetch(endpoint, { method: 'POST', headers: { 'Content-Type': 'text\/plain;charset=utf-8' }, body: JSON.stringify(body), redirect: 'follow' });\n    if (!response.ok) throw Error('HTTP ' + response.status);\n    var result = await response.json();\n    if (result.status !== 'ok') throw Error(result.message || 'Integration request failed');\n    return result.data;\n  }\n  async function initialize() {\n    var data = await request('catalog');\n    if (!['TEST', 'LIVE'].includes(data.mode)) throw Error('Invalid integration mode');\n    if (data.mode === 'LIVE') {\n      if (!data.recaptchaSiteKey) throw Error('Form verification is not configured');\n      await new Promise(function (resolve, reject) {\n        var script = document.createElement('script');\n        script.src = 'https:\/\/www.google.com\/recaptcha\/api.js?render=' + encodeURIComponent(data.recaptchaSiteKey);\n        script.onload = function () { window.grecaptcha.ready(resolve); };\n        script.onerror = function () { reject(Error('Form verification could not be loaded')); };\n        document.head.appendChild(script);\n      });\n    }\n    catalog = data;\n    return data;\n  }\n  function customer(quote) {\n    var query = new URLSearchParams(window.location.search);\n    var invoice = selected('invoice_send', value('invoice_send') || 'email');\n    return {\n      companyName: value('app_company'), department: value('app_dept'), fullName: value('app_name'), email: value('app_email'),\n      companyId: quote ? quote.customer.companyId || '' : query.get('companyId') || query.get('ytid') || '',\n      residence: selected('app_residence', 'japan'), postalCode: value('app_zip'), applicantAddress: value('app_address'), companyPhone: value('app_tel'), phone: value('app_person_tel'),\n      billingCompanyName: value('bill_company'), billingDepartment: value('bill_dept'), billingName: value('bill_name'), billingEmail: value('bill_email'),\n      billingResidence: selected('bill_residence', 'japan'), billingPostalCode: value('bill_zip'), address: value('bill_address'), billingCompanyPhone: value('bill_tel'), billingPhone: value('bill_person_tel'),\n      userResidence: quote ? quote.customer.userResidence || 'japan' : selected('tax_treatment') === 'exempt' ? 'overseas' : 'japan',\n      requestedPaymentTerms: selected('payment_terms') === '\u305d\u306e\u4ed6' ? 'other' : 'standard', paymentTermsOther: value('payment_terms_other'),\n      invoiceDelivery: invoice === '\u305d\u306e\u4ed6' ? 'other' : invoice, invoiceDeliveryOther: value('invoice_send_other'),\n      poRequired: selected('po_required') === 'yes', poNumber: selected('po_required') === 'yes' ? value('po_number') : ''\n    };\n  }\n  function payload(quote) {\n    var result = { customer: customer(quote), consent: checked('agree_terms'), agreements: { terms: checked('agree_terms'), quotation: checked('agree_estimate'), renewal: checked('agree_notes') } };\n    if (quote) { result.quoteId = quote.id; result.key = quote.key; }\n    else { result.product = '\u30ab\u30f3\u30d1\u30cb\u30fc'; result.accounts = Number(value('account_count')); result.months = 12; result.startDate = value('contract_start'); result.lang = language(); }\n    return result;\n  }\n  async function submit(quote) {\n    var data = payload(quote), fingerprint = JSON.stringify(data);\n    \/\/ Keep the same id after a lost response; edited contents receive a fresh id.\n    if (!pending || pending.fingerprint !== fingerprint) pending = { fingerprint: fingerprint, id: 'wp-application-' + crypto.randomUUID() };\n    data.requestId = pending.id;\n    var result = await request(quote ? 'apply' : 'direct', data);\n    if (!result.id || !result.quoteId || result.status !== 'awaiting_review') throw Error('Invalid application receipt');\n    complete = true;\n    return result;\n  }\n  function availableQuote(q, product) {\n    if (!q || q.product !== product || !q.key || !Array.isArray(q.lines)) throw Error('Unexpected quotation');\n    if (q.status !== 'issued' || q.applicationId || !Number.isFinite(Date.parse(q.validUntil)) || Date.parse(q.validUntil) < Date.now()) throw Error(language() === 'en' ? 'This quote has expired or has already been accepted.' : '\u3053\u306e\u898b\u7a4d\u306f\u6709\u52b9\u671f\u9650\u5207\u308c\u3001\u307e\u305f\u306f\u7533\u8fbc\u6e08\u307f\u3067\u3059\u3002');\n    return q;\n  }\n  function failure(error) {\n    var banner = document.getElementById('errorBanner');\n    banner.textContent = language() === 'en' ? 'Unable to connect: ' + error.message : '\u63a5\u7d9a\u3092\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093\uff1a' + error.message;\n    banner.classList.add('visible');\n  }\n  function bind(getQuote, validate) {\n    var button = document.getElementById('submitBtn');\n    document.getElementById('apply-form').addEventListener('submit', async function (event) {\n      event.preventDefault();\n      if (busy || complete || button.disabled) return;\n      var banner = document.getElementById('errorBanner');\n      if (!validate()) { banner.classList.add('visible'); return; }\n      banner.classList.remove('visible'); busy = true; button.disabled = true;\n      var loading = document.getElementById('loadingOverlay'); loading.classList.add('visible');\n      try {\n        await submit(getQuote());\n        var form = document.getElementById('apply-form'), message = document.getElementById('successMessage');\n        if (!form.contains(message)) form.style.display = 'none';\n        else form.querySelectorAll('input, select, button').forEach(function (element) { element.disabled = true; });\n        button.style.display = 'none';\n        message.classList.add('visible');\n        message.scrollIntoView({ behavior: 'smooth', block: 'center' });\n      } catch (error) { failure(error); }\n      finally { busy = false; button.disabled = complete; loading.classList.remove('visible'); }\n    });\n  }\n  return { initialize: initialize, request: request, availableQuote: availableQuote, failure: failure, bind: bind };\n}\n\n  function yarakuReady(callback) {\n    if (document.readyState === 'loading') {\n      document.addEventListener('DOMContentLoaded', callback);\n    } else {\n      callback();\n    }\n  }\n\n  yarakuReady(function() {\n    \/\/ ================================================================\n      \/\/ Language data\n      \/\/ ================================================================\n      var LANG = {\n        ja: {\n          page_title: '\u30ab\u30f3\u30d1\u30cb\u30fc\u30d7\u30e9\u30f3 \u5229\u7528\u7533\u8fbc\u30d5\u30a9\u30fc\u30e0',\n          error_banner: '\u5165\u529b\u5185\u5bb9\u306b\u4e0d\u5099\u304c\u3042\u308a\u307e\u3059\u3002\u8d64\u67a0\u306e\u9805\u76ee\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002',\n          state_error: '\u898b\u7a4d\u60c5\u5831\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002URL\u304c\u6b63\u3057\u3044\u304b\u3001\u3059\u3067\u306b\u7533\u8fbc\u6e08\u307f\u306e\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002',\n          loading_estimate: '\u898b\u7a4d\u60c5\u5831\u3092\u8aad\u307f\u8fbc\u307f\u4e2d\u2026',\n          nav_features: '\u6a5f\u80fd\u30fb\u30b5\u30fc\u30d3\u30b9', nav_pricing: '\u6599\u91d1\u30d7\u30e9\u30f3', nav_cases: '\u5c0e\u5165\u4e8b\u4f8b',\n          nav_news: '\u8a18\u4e8b\u30fb\u30cb\u30e5\u30fc\u30b9', nav_seminar: '\u30bb\u30df\u30ca\u30fc\u30fb\u8cc7\u6599',\n          btn_free_start: '\u7121\u6599\u3067\u59cb\u3081\u308b', btn_contact: '\u304a\u554f\u3044\u5408\u308f\u305b', btn_login: '\u30ed\u30b0\u30a4\u30f3',\n          section_estimate_confirm: '\u3054\u78ba\u8a8d\u4e8b\u9805\uff08\u304a\u898b\u7a4d\u308a\u5185\u5bb9\uff09',\n          section_applicant: '\u226a\u7533\u8fbc\u8005\u226b \u60c5\u5831', section_billing: '\u226a\u8acb\u6c42\u5148\u226b \u60c5\u5831',\n          section_agreement: '\u540c\u610f\u4e8b\u9805\u30fb\u78ba\u8a8d\u4e8b\u9805',\n          lbl_apply_date: '\u7533\u8fbc\u65e5',\n          lbl_company: '\u6cd5\u4eba\u540d', lbl_residence: '\u6240\u5728\u5730\u306e\u56fd',\n          lbl_zip: '\u6240\u5728\u5730\uff1a\u90f5\u4fbf\u756a\u53f7', lbl_address: '\u6240\u5728\u5730\uff1a\u4f4f\u6240', lbl_tel: '\u6240\u5728\u5730\uff1a\u96fb\u8a71\u756a\u53f7',\n          lbl_dept: '\u62c5\u5f53\u8005\uff1a\u90e8\u7f72\u540d', lbl_name: '\u62c5\u5f53\u8005\uff1a\u6c0f\u540d',\n          lbl_person_tel: '\u62c5\u5f53\u8005\uff1a\u96fb\u8a71\u756a\u53f7', lbl_email: '\u62c5\u5f53\u8005\uff1ae-mail\u30a2\u30c9\u30ec\u30b9',\n          lbl_same_as_app: '\u7533\u8fbc\u8005\u60c5\u5831\u3068\u540c\u3058',\n          lbl_payment_terms: '\u652f\u6255\u6761\u4ef6',\n          lbl_invoice_send: '\u8acb\u6c42\u66f8\u4ea4\u4ed8\u65b9\u6cd5',\n          lbl_po_required: '\u767a\u6ce8\u66f8\u756a\u53f7\u306e\u8a18\u8f09\u304c\u5fc5\u8981\u3067\u3059\u304b\uff1f',\n          residence_japan: '\u65e5\u672c\u56fd\u5185', residence_overseas: '\u65e5\u672c\u56fd\u5916\uff08\u6d77\u5916\uff09',\n          payment_standard: '\u5f53\u6708\u672b\u65e5\u7de0\u30fb\u7fcc\u6708\u672b\u65e5\u6255\u3044', payment_other: '\u305d\u306e\u4ed6',\n          invoice_email: '\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9', invoice_mail: '\u90f5\u9001',\n          invoice_overseas_note: '\u203b \u6d77\u5916\u4f4f\u6240\u306e\u5834\u5408\u3001\u90f5\u9001\u306f\u304a\u9078\u3073\u3044\u305f\u3060\u3051\u307e\u305b\u3093\u3002',\n          po_no: '\u4e0d\u8981', po_yes: '\u5fc5\u8981',\n          agree_terms: '<a href=\"https:\/\/www.yaraku.com\/en\/terms\/\" target=\"_blank\">\u5229\u7528\u898f\u7d04<\/a>\u304a\u3088\u3073<a href=\"https:\/\/www.yaraku.com\/en\/privacy\/\" target=\"_blank\">\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc<\/a>\u306e\u5185\u5bb9\u306b\u540c\u610f\u3059\u308b<span class=\"required\">*<\/span>',\n          agree_estimate: '\u898b\u7a4d\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f<span class=\"required\">*<\/span>',\n          agree_notes: '\u4e0a\u8a18\u306e\u3054\u5951\u7d04\u671f\u9593\u306e\u7d42\u4e86\u65e5\u306e\u5c11\u306a\u304f\u3068\u308230\u65e5\u524d\u307e\u3067\u306b\u3044\u305a\u308c\u304b\u306e\u5f53\u4e8b\u8005\u306b\u3088\u308a\u7533\u3057\u51fa\u304c\u7121\u3044\u9650\u308a\u3001\u672c\u5951\u7d04\u671f\u9593\u306f\u6709\u52b9\u306a\u4fa1\u683c\u3067\u81ea\u52d5\u66f4\u65b0\u3055\u308c\u308b\u3082\u306e\u3068\u3057\u3001\u4ee5\u964d\u3082\u540c\u69d8\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u65b0\u3057\u3044\u5951\u7d04\u671f\u9593\u306f\u3001\u4ee5\u524d\u306e\u5951\u7d04\u671f\u9593\u3068\u540c\u3058\u9577\u3055\u3068\u306a\u308b\u3082\u306e\u3068\u3057\u307e\u3059<span class=\"required\">*<\/span>',\n          btn_submit: '\u7533\u8fbc\u5185\u5bb9\u3092\u9001\u4fe1', btn_search_address: '\u4f4f\u6240\u3092\u691c\u7d22',\n          success_msg: '\u2714 \u7533\u8fbc\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3057\u305f\u3002',\n          success_detail: '\u304a\u652f\u6255\u3044\u5148\u30ea\u30f3\u30af\u3092\u30e1\u30fc\u30eb\u3067\u304a\u9001\u308a\u3057\u307e\u3059\u306e\u3067\u3001\u3057\u3070\u3089\u304f\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u3002',\n          err_company: '\u6cd5\u4eba\u540d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002', err_zip: '\u90f5\u4fbf\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_address: '\u4f4f\u6240\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002', err_tel: '\u6b63\u3057\u3044\u96fb\u8a71\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_name: '\u62c5\u5f53\u8005\u540d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002', err_email: '\u6b63\u3057\u3044\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_payment_terms: '\u652f\u6255\u6761\u4ef6\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002', err_payment_terms_other: '\u652f\u6255\u6761\u4ef6\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_invoice_send: '\u8acb\u6c42\u66f8\u4ea4\u4ed8\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_invoice_send_other: '\u4ea4\u4ed8\u65b9\u6cd5\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_po_number: '\u767a\u6ce8\u66f8\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_agree_terms: '\u5229\u7528\u898f\u7d04\u30fb\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc\u3078\u306e\u540c\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002',\n          err_agree_estimate: '\u898b\u7a4d\u5185\u5bb9\u306e\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002',\n          err_agree_notes: '\u6ce8\u610f\u4e8b\u9805\u306e\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002',\n          footer_about: '\u4f1a\u793e\u6982\u8981', footer_privacy: '\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc', footer_legal: '\u7279\u5b9a\u5546\u53d6\u5f15\u6cd5\u306b\u57fa\u3065\u304f\u8868\u8a18',\n          quote_estimate_num: '\u898b\u7a4d\u756a\u53f7', quote_company: '\u6cd5\u4eba\u540d', quote_account_count: '\u30a2\u30ab\u30a6\u30f3\u30c8\u6570', quote_contract_period: '\u3054\u5951\u7d04\u671f\u9593',\n          th_item: '\u9805\u76ee', th_unit_price: '\u5358\u4fa1\uff08\u6708\u984d\uff09', th_quantity: '\u6570\u91cf', th_amount: '\u91d1\u984d',\n          td_company_plan_annual: '\u30ab\u30f3\u30d1\u30cb\u30fc\u30d7\u30e9\u30f3\u5e74\u984d', td_months_12: '12\u30f6\u6708',\n          td_subtotal: '\u5c0f\u8a08', td_grand_total: '\u7dcf\u8a08\uff08\u7a0e\u8fbc\uff09',\n          tax_label_normal: '\u6d88\u8cbb\u7a0e\uff0810%\uff09', tax_label_exempt: '\u6d88\u8cbb\u7a0e\uff08\u514d\u7a0e\uff09',\n          contract_period_separator: ' \u301c ',\n          account_count_suffix: '\u540d',\n          ph_company: '\u4f8b\uff1a\u682a\u5f0f\u4f1a\u793e\u30e4\u30e9\u30af', ph_zip: '\u4f8b\uff1a1000001', ph_zip_overseas: '\u4f8b\uff1a10001\uff08\u4efb\u610f\uff09',\n          ph_address: '\u4f8b\uff1a\u6771\u4eac\u90fd\u5343\u4ee3\u7530\u533a\u5343\u4ee3\u75301-1', ph_address_overseas: '\u4f8b\uff1a123 Main St, New York, NY 10001, USA',\n          ph_tel: '\u4f8b\uff1a03-1234-5678', ph_tel_overseas: '\u4f8b\uff1a+1-212-555-1234',\n          ph_person_tel: '\u4f8b\uff1a090-1234-5678', ph_person_tel_overseas: '\u4f8b\uff1a+1-212-555-5678',\n          ph_dept_app: '\u4f8b\uff1a\u7d4c\u55b6\u4f01\u753b\u90e8', ph_dept_bill: '\u4f8b\uff1a\u7d4c\u7406\u90e8',\n          ph_name_app: '\u4f8b\uff1a\u5c71\u7530 \u592a\u90ce', ph_name_bill: '\u4f8b\uff1a\u9234\u6728 \u82b1\u5b50',\n          ph_email_app: '\u4f8b\uff1ataro@example.com', ph_email_bill: '\u4f8b\uff1ahanako@example.com',\n          ph_payment_terms_other: '\u652f\u6255\u6761\u4ef6\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044',\n          ph_invoice_send_other: '\u3054\u5e0c\u671b\u306e\u4ea4\u4ed8\u65b9\u6cd5\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044',\n          ph_po_number: '\u4f8b\uff1aPO-12345',\n          lbl_zip_optional: '\u6240\u5728\u5730\uff1a\u90f5\u4fbf\u756a\u53f7\uff08\u4efb\u610f\uff09',\n          err_invalid_url: '\u898b\u7a4d\u756a\u53f7\u307e\u305f\u306f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c\u7121\u52b9\u3067\u3059\u3002\u30e1\u30fc\u30eb\u8a18\u8f09\u306eURL\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          err_gas_unset: '\u3010\u958b\u767a\u4e2d\u3011GAS_URL\u304c\u672a\u8a2d\u5b9a\u3067\u3059\u3002',\n          err_estimate_load: '\u901a\u4fe1\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f: ',\n          alert_zip_short: '\u90f5\u4fbf\u756a\u53f7\u30927\u6841\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n          alert_zip_not_found: '\u4f4f\u6240\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u90f5\u4fbf\u756a\u53f7\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002',\n          alert_zip_error: '\u4f4f\u6240\u691c\u7d22\u306b\u5931\u6557\u3057\u307e\u3057\u305f: ',\n          alert_submit_error: '\u9001\u4fe1\u30a8\u30e9\u30fc: ', alert_submit_unknown: '\u4e0d\u660e\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002',\n          alert_network_error: '\u901a\u4fe1\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u518d\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002\\n',\n          lang_switch: 'English'\n        },\n        en: {\n          page_title: 'Company Plan Application Form',\n          error_banner: 'There are errors in the form. Please check the highlighted fields.',\n          state_error: 'Estimate data not found. Please check the URL or the application may have already been submitted.',\n          loading_estimate: 'Loading estimate data\u2026',\n          nav_features: 'Features', nav_pricing: 'Pricing', nav_cases: 'Case Studies',\n          nav_news: 'News', nav_seminar: 'Resources',\n          btn_free_start: 'Start Free', btn_contact: 'Contact Us', btn_login: 'Login',\n          section_estimate_confirm: 'Estimate Confirmation',\n          section_applicant: 'Applicant Information', section_billing: 'Billing Information',\n          section_agreement: 'Terms and Conditions',\n          lbl_apply_date: 'Application Date',\n          lbl_company: 'Company Name', lbl_residence: 'Country of Residence',\n          lbl_zip: 'Postal Code', lbl_address: 'Address', lbl_tel: 'Phone Number',\n          lbl_dept: 'Department', lbl_name: 'Contact Name',\n          lbl_person_tel: 'Contact Phone', lbl_email: 'Contact Email',\n          lbl_same_as_app: 'Same as Applicant',\n          lbl_payment_terms: 'Payment Terms',\n          lbl_invoice_send: 'Invoice Delivery Method',\n          lbl_po_required: 'Is a PO number required?',\n          residence_japan: 'Japan (Domestic)', residence_overseas: 'Outside Japan',\n          payment_standard: 'End of month \/ Payment by end of next month', payment_other: 'Other',\n          invoice_email: 'Download', invoice_mail: 'Postal Mail',\n          invoice_overseas_note: '* Postal mail is not available for overseas addresses.',\n          po_no: 'No', po_yes: 'Yes',\n          agree_terms: 'I agree to the <a href=\"https:\/\/www.yaraku.com\/en\/terms\/\" target=\"_blank\">Terms of Service<\/a> and <a href=\"https:\/\/www.yaraku.com\/en\/privacy\/\" target=\"_blank\">Privacy Policy<\/a><span class=\"required\">*<\/span>',\n          agree_estimate: 'I have reviewed the estimate<span class=\"required\">*<\/span>',\n          agree_notes: 'Unless either party gives notice at least 30 days before the end of the contract period, this contract shall be automatically renewed at the current price for the same duration.<span class=\"required\">*<\/span>',\n          btn_submit: 'Submit Application', btn_search_address: 'Look up Address',\n          success_msg: '\u2714 Your application has been received.',\n          success_detail: 'We will send you a payment link by email. Please wait a few moments.',\n          err_company: 'Please enter the company name.', err_zip: 'Please enter the postal code.',\n          err_address: 'Please enter the address.', err_tel: 'Please enter a valid phone number.',\n          err_name: 'Please enter the contact name.', err_email: 'Please enter a valid email address.',\n          err_payment_terms: 'Please select payment terms.', err_payment_terms_other: 'Please enter the payment terms.',\n          err_invoice_send: 'Please select an invoice delivery method.',\n          err_invoice_send_other: 'Please enter the delivery method.',\n          err_po_number: 'Please enter the PO number.',\n          err_agree_terms: 'You must agree to the Terms of Service and Privacy Policy.',\n          err_agree_estimate: 'You must confirm that you have reviewed the estimate.',\n          err_agree_notes: 'You must agree to the renewal terms.',\n          footer_about: 'About Us', footer_privacy: 'Privacy Policy', footer_legal: 'Legal Notice',\n          quote_estimate_num: 'Estimate No.', quote_company: 'Company Name', quote_account_count: 'Number of Accounts', quote_contract_period: 'Contract Period',\n          th_item: 'Item', th_unit_price: 'Unit Price (Monthly)', th_quantity: 'Quantity', th_amount: 'Amount',\n          td_company_plan_annual: 'Company Plan (Annual)', td_months_12: '12 months',\n          td_subtotal: 'Subtotal', td_grand_total: 'Total (incl. tax)',\n          tax_label_normal: 'Consumption Tax (10%)', tax_label_exempt: 'Consumption Tax (Exempt)',\n          contract_period_separator: ' - ',\n          account_count_suffix: ' user(s)',\n          ph_company: 'e.g. Yaraku, Inc.', ph_zip: 'e.g. 1000001', ph_zip_overseas: 'e.g. 10001 (optional)',\n          ph_address: 'e.g. 1-1 Chiyoda, Chiyoda-ku, Tokyo', ph_address_overseas: 'e.g. 123 Main St, New York, NY 10001, USA',\n          ph_tel: 'e.g. 03-1234-5678', ph_tel_overseas: 'e.g. +1-212-555-1234',\n          ph_person_tel: 'e.g. 090-1234-5678', ph_person_tel_overseas: 'e.g. +1-212-555-5678',\n          ph_dept_app: 'e.g. Corporate Planning', ph_dept_bill: 'e.g. Accounting',\n          ph_name_app: 'e.g. Taro Yamada', ph_name_bill: 'e.g. Hanako Suzuki',\n          ph_email_app: 'e.g. taro@example.com', ph_email_bill: 'e.g. hanako@example.com',\n          ph_payment_terms_other: 'Enter payment terms',\n          ph_invoice_send_other: 'Enter your preferred delivery method',\n          ph_po_number: 'e.g. PO-12345',\n          lbl_zip_optional: 'Postal Code (Optional)',\n          err_invalid_url: 'The estimate ID or access key is invalid. Please access via the URL in the email.',\n          err_gas_unset: '[Dev] GAS_URL is not set.',\n          err_estimate_load: 'A network error occurred: ',\n          alert_zip_short: 'Please enter a 7-digit postal code.',\n          alert_zip_not_found: 'Address not found. Please check the postal code.',\n          alert_zip_error: 'Failed to look up the address: ',\n          alert_submit_error: 'Submission error: ', alert_submit_unknown: 'An unknown error occurred.',\n          alert_network_error: 'A network error occurred. Please try again later.\\n',\n          lang_switch: '\u65e5\u672c\u8a9e'\n        }\n      };\n\n      var currentLang = 'ja';\n      (function() {\n        var pageRoot = document.querySelector('.yaraku-form-page');\n        var defaultLang = pageRoot ? pageRoot.getAttribute('data-default-lang') : null;\n        if (defaultLang === 'en' || defaultLang === 'ja') currentLang = defaultLang;\n        var params = new URLSearchParams(window.location.search);\n        var lang = params.get('lang');\n        if (lang === 'en' || lang === 'ja') currentLang = lang;\n      })();\n\n      function switchLang(lang) {\n        currentLang = lang || ((currentLang === 'ja') ? 'en' : 'ja');\n        applyLang();\n      }\n\n      function applyLang() {\n        var dict = LANG[currentLang];\n        if (!dict) return;\n        var logoEl = document.getElementById('siteLogo');\n        if (logoEl) {\n          logoEl.src = currentLang === 'en' ? 'https:\/\/translate.yaraku.com\/images\/logos\/yaraku\/en-logo_brand.png' : 'https:\/\/translate.yaraku.com\/images\/logos\/yaraku\/ja-logo_brand.png';\n          logoEl.alt = currentLang === 'en' ? 'Yaraku Translate' : '\u30e4\u30e9\u30af\u7ffb\u8a33';\n        }\n        var els = document.querySelectorAll('[data-lang-key]');\n        for (var i = 0; i < els.length; i++) {\n          var key = els[i].getAttribute('data-lang-key');\n          if (dict[key] !== undefined) {\n            if (els[i].getAttribute('data-lang-html') === '1') els[i].innerHTML = dict[key];\n            else els[i].textContent = dict[key];\n          }\n        }\n        var phEls = document.querySelectorAll('[data-lang-placeholder]');\n        for (var j = 0; j < phEls.length; j++) {\n          var pkey = phEls[j].getAttribute('data-lang-placeholder');\n          if (dict[pkey] !== undefined) phEls[j].setAttribute('placeholder', dict[pkey]);\n        }\n        var switchEl = document.getElementById('langSwitch');\n        if (switchEl) switchEl.textContent = dict.lang_switch;\n        \/\/ Re-apply residence-dependent UI for both prefixes (placeholders\/labels)\n        if (typeof applyResidenceUI === 'function') {\n          var appRes = document.querySelector('input[name=\"app_residence\"]:checked');\n          var billRes = document.querySelector('input[name=\"bill_residence\"]:checked');\n          if (appRes) applyResidenceUI('app', appRes.value === 'overseas');\n          if (billRes) applyResidenceUI('bill', billRes.value === 'overseas');\n        }\n        \/\/ Re-render estimate summary if data is loaded so localized labels apply\n        if (typeof estimateData !== 'undefined') {\n          if (estimateData) {\n            if (typeof populateEstimateSummary === 'function') {\n          populateEstimateSummary(estimateData);\n            }\n          }\n        }\n      }\n\n      if (currentLang !== 'ja') {\n        applyLang();\n      }\n\n      \/\/ ================================================================\n      \/\/ Constants \u2014 update GAS_URL after deploying\n      \/\/ ================================================================\n      var GAS_URL = 'https:\/\/script.google.com\/macros\/s\/AKfycbwjrO7KbgchS_0zJrhRYNN7UMsI5cFAAEzsMPCyelEjUILjb0ui9u1og3pSIN4mN7mC\/exec';\n\n      \/\/ ================================================================\n      \/\/ Parse URL parameters\n      \/\/ ================================================================\n      var urlParams = new URLSearchParams(window.location.search);\n      var estimateId = urlParams.get('id') || '';\n      var accessKey  = urlParams.get('key') || '';\n      var estimateData = null;\n\n      \/\/ ================================================================\n      \/\/ Initialize on load\n      \/\/ ================================================================\n      var integrationQuote = null;\n      var applicationClient = createApplicationClient(GAS_URL, function () { return currentLang; });\n      document.getElementById('submitBtn').disabled = true;\n      document.getElementById('apply_date').value = new Date(Date.now() + 9 * 3600000).toISOString().slice(0, 10);\n      if (!estimateId || !accessKey) showStateError(LANG[currentLang].err_invalid_url);\n      else applicationClient.initialize().then(function () {\n        return applicationClient.request('get_quote', { id: estimateId, key: accessKey });\n      }).then(function (q) {\n        integrationQuote = applicationClient.availableQuote(q, '\u30ab\u30f3\u30d1\u30cb\u30fc');\n        var base = q.lines.find(function (line) { return line.kind === 'base'; });\n        estimateData = { estimate_num: q.id, company: q.customer.companyName, dept: q.customer.department, name: q.customer.fullName, tel: q.customer.phone, email: q.customer.email,\n          residence: q.customer.residence, account_count: q.accounts, contract_start: q.startDate, contract_end: q.endDate,\n          monthly_price: base ? base.price : 0, annual_amount: base ? base.total : 0, subtotal: q.subtotal, lines: q.lines, tax_exempt: q.tax === 0, tax: q.tax, total: q.total };\n        populateEstimateSummary(estimateData);\n        prefillApplicantFields(estimateData);\n        document.getElementById('stateLoading').style.display = 'none';\n        document.getElementById('mainContent').style.display = '';\n        document.getElementById('submitBtn').disabled = false;\n      }).catch(function (error) { showStateError(error.message); });\n\n      function showStateError(msg) {\n        document.getElementById('stateLoading').style.display = 'none';\n        var el = document.getElementById('stateError');\n        el.textContent = msg;\n        el.style.display = '';\n      }\n\n      \/\/ ================================================================\n      \/\/ Populate estimate summary\n      \/\/ ================================================================\n      function populateEstimateSummary(d) {\n        var fmt = function(n) { return '\\u00a5' + Number(n).toLocaleString('ja-JP'); };\n        var dict = LANG[currentLang];\n        var taxLabel = d.tax_exempt ? dict.tax_label_exempt : dict.tax_label_normal;\n        document.getElementById('sum_estimate_num').textContent = d.estimate_num;\n        document.getElementById('sum_company').textContent = d.company;\n        document.getElementById('sum_account_count').textContent = d.account_count + dict.account_count_suffix;\n        document.getElementById('sum_contract_period').textContent = d.contract_start + dict.contract_period_separator + d.contract_end;\n        document.getElementById('sum_monthly_price').textContent = fmt(d.monthly_price);\n        document.getElementById('sum_annual_amount').textContent = fmt(d.annual_amount);\n        document.getElementById('sum_subtotal').textContent = fmt(d.subtotal);\n        var tbody = document.getElementById('sum_monthly_price').closest('tbody');\n        tbody.querySelectorAll('[data-integration-line]').forEach(function (row) { row.remove(); });\n        d.lines.filter(function (line) { return line.kind !== 'base'; }).forEach(function (line) {\n          var row = document.createElement('tr'); row.dataset.integrationLine = 'true';\n          [line.name, fmt(line.price), line.quantity, fmt(line.total)].forEach(function (text, index) {\n            var cell = document.createElement('td'); cell.textContent = text;\n            if (index > 0) cell.className = 'text-right'; row.appendChild(cell);\n          });\n          tbody.appendChild(row);\n        });\n        document.getElementById('sum_tax_label').textContent = taxLabel;\n        document.getElementById('sum_tax').textContent = fmt(d.tax);\n        document.getElementById('sum_total').textContent = fmt(d.total);\n      }\n\n      \/\/ ================================================================\n      \/\/ Pre-fill applicant fields from estimate data\n      \/\/ ================================================================\n      function prefillApplicantFields(d) {\n        setValue('app_company', d.company);\n        setValue('app_dept', d.dept);\n        setValue('app_name', d.name);\n        setValue('app_person_tel', d.tel);\n        setValue('app_email', d.email);\n        \/\/ Set residence radio\n        if (d.residence) {\n          var radios = document.querySelectorAll('input[name=\"app_residence\"]');\n          for (var i = 0; i < radios.length; i++) {\n            if (radios[i].value === d.residence) { radios[i].checked = true; break; }\n          }\n          updateZipRequired('app', d.residence);\n        }\n      }\n\n      function setValue(id, val) {\n        var el = document.getElementById(id);\n        if (el) {\n          if (val) el.value = val;\n        }\n      }\n\n      \/\/ ================================================================\n      \/\/ Residence radio change \u2192 update zip required state\n      \/\/ ================================================================\n      document.addEventListener('change', function(e) {\n        if (e.target) {\n          if (e.target.name === 'app_residence') {\n            updateZipRequired('app', e.target.value);\n            updateInvoiceMailOption();\n          }\n        }\n        if (e.target) {\n          if (e.target.name === 'bill_residence') {\n            updateZipRequired('bill', e.target.value);\n            updateInvoiceMailOption();\n          }\n        }\n        if (e.target) {\n          if (e.target.name === 'payment_terms') {\n            var otherWrap = document.getElementById('paymentTermsOtherWrap');\n            if (otherWrap) otherWrap.style.display = (e.target.value === '\u305d\u306e\u4ed6') ? '' : 'none';\n          }\n        }\n        if (e.target) {\n          if (e.target.name === 'invoice_send') {\n            var otherWrap = document.getElementById('invoiceSendOtherWrap');\n            if (otherWrap) otherWrap.style.display = (e.target.value === '\u305d\u306e\u4ed6') ? '' : 'none';\n          }\n        }\n        if (e.target) {\n          if (e.target.name === 'po_required') {\n            var poWrap = document.getElementById('poNumberWrap');\n            if (poWrap) poWrap.style.display = (e.target.value === 'yes') ? '' : 'none';\n          }\n        }\n      });\n\n      function updateInvoiceMailOption() {\n        var appRes = document.querySelector('input[name=\"app_residence\"]:checked');\n        var billRes = document.querySelector('input[name=\"bill_residence\"]:checked');\n        var isOverseas = false;\n        if (appRes) {\n          if (appRes.value === 'overseas') isOverseas = true;\n        }\n        if (billRes) {\n          if (billRes.value === 'overseas') isOverseas = true;\n        }\n        var mailRadio = document.getElementById('invoice_send_mail');\n        var mailLabel = document.getElementById('invoice_send_mail_label');\n        var note = document.getElementById('invoice_mail_overseas_note');\n        if (mailRadio) {\n          mailRadio.disabled = isOverseas;\n          if (mailLabel) mailLabel.style.opacity = isOverseas ? '0.4' : '1';\n          if (note) note.style.display = isOverseas ? '' : 'none';\n          if (isOverseas) {\n            if (mailRadio.checked) {\n            document.querySelector('input[name=\"invoice_send\"][value=\"email\"]').checked = true;\n            }\n          }\n        }\n      }\n\n      \/\/ Residence UI toggle: update placeholders, labels, visibility for overseas\/domestic\n      function applyResidenceUI(prefix, isOverseas) {\n        var dict = LANG[currentLang];\n        var zipTxtEl = document.getElementById('txt_' + prefix + '_zip');\n        var zipReqEl = document.getElementById('req_' + prefix + '_zip');\n        var zipInput = document.getElementById(prefix + '_zip');\n        var zipBtn = document.getElementById('btn_' + prefix + '_zip');\n        var addrInput = document.getElementById(prefix + '_address');\n        var telInput = document.getElementById(prefix + '_tel');\n        var personTelInput = document.getElementById(prefix + '_person_tel');\n\n        if (isOverseas) {\n          if (zipTxtEl) zipTxtEl.textContent = dict.lbl_zip_optional;\n          if (zipReqEl) zipReqEl.style.display = 'none';\n          if (zipInput) zipInput.placeholder = dict.ph_zip_overseas;\n          if (zipBtn) zipBtn.style.display = 'none';\n          if (addrInput) addrInput.placeholder = dict.ph_address_overseas;\n          if (telInput) telInput.placeholder = dict.ph_tel_overseas;\n          if (personTelInput) personTelInput.placeholder = dict.ph_person_tel_overseas;\n        } else {\n          if (zipTxtEl) zipTxtEl.textContent = dict.lbl_zip;\n          if (zipReqEl) zipReqEl.style.display = '';\n          if (zipInput) zipInput.placeholder = dict.ph_zip;\n          if (zipBtn) zipBtn.style.display = '';\n          if (addrInput) addrInput.placeholder = dict.ph_address;\n          if (telInput) telInput.placeholder = dict.ph_tel;\n          if (personTelInput) personTelInput.placeholder = dict.ph_person_tel;\n        }\n      }\n\n      \/\/ Backward-compatible alias\n      function updateZipRequired(prefix, residenceVal) {\n        applyResidenceUI(prefix, residenceVal === 'overseas');\n      }\n\n      \/\/ ================================================================\n      \/\/ \"Same as applicant\" copy and read-only behavior.\n      \/\/ ================================================================\n      var COPY_FIELDS = ['company', 'zip', 'address', 'tel', 'dept', 'name', 'person_tel', 'email'];\n\n      function syncBillingFields() {\n        var isChecked = document.getElementById('same_as_app').checked;\n        COPY_FIELDS.forEach(function(f) {\n          var src = document.getElementById('app_' + f);\n          var dst = document.getElementById('bill_' + f);\n          if (!src || !dst) return;\n          if (isChecked) {\n            dst.value = src.value;\n            dst.readOnly = true;\n            dst.style.background = '#f5f5f5';\n            dst.style.color = '#888';\n            clearError('bill_' + f);\n          } else {\n            dst.readOnly = false;\n            dst.style.background = '';\n            dst.style.color = '';\n          }\n        });\n\n        \/\/ Sync residence radio\n        var billResInputs = document.querySelectorAll('input[name=\"bill_residence\"]');\n        if (isChecked) {\n          var appRes = document.querySelector('input[name=\"app_residence\"]:checked');\n          var appResVal = appRes ? appRes.value : 'japan';\n          billResInputs.forEach(function(radio) {\n            radio.checked = (radio.value === appResVal);\n            radio.disabled = true;\n          });\n          updateZipRequired('bill', appResVal);\n        } else {\n          billResInputs.forEach(function(radio) {\n            radio.disabled = false;\n          });\n        }\n      }\n\n      document.getElementById('same_as_app').addEventListener('change', syncBillingFields);\n\n      \/\/ Live-sync when applicant fields change while checkbox is checked\n      COPY_FIELDS.forEach(function(f) {\n        var el = document.getElementById('app_' + f);\n        if (el) el.addEventListener('input', function() {\n          if (document.getElementById('same_as_app').checked) syncBillingFields();\n        });\n      });\n\n      \/\/ ================================================================\n      \/\/ Zip code \u2192 address lookup (zipcloud.jp)\n      \/\/ ================================================================\n      async function fetchAddress(prefix) {\n        var zipInput = document.getElementById(prefix + '_zip');\n        var addrInput = document.getElementById(prefix + '_address');\n        var zip = zipInput.value.replace(\/-\/g, '');\n        if (zip.length < 7) {\n          alert(LANG[currentLang].alert_zip_short);\n          return;\n        }\n        try {\n          var res = await fetch('https:\/\/zipcloud.ibsnet.co.jp\/api\/search?zipcode=' + zip);\n          var json = await res.json();\n          if (json.results) {\n            if (json.results[0]) {\n              var r = json.results[0];\n              addrInput.value = r.address1 + r.address2 + r.address3;\n              clearError(prefix + '_address');\n            } else {\n              alert(LANG[currentLang].alert_zip_not_found);\n            }\n          }\n        } catch (err) {\n          alert(LANG[currentLang].alert_zip_error + err.message);\n        }\n      }\n\n      document.querySelectorAll('[data-address-prefix]').forEach(function(button) {\n        button.addEventListener('click', function() {\n          fetchAddress(this.getAttribute('data-address-prefix'));\n        });\n      });\n\n      \/\/ ================================================================\n      \/\/ Validation utilities\n      \/\/ ================================================================\n      function showError(id) {\n        var inp = document.getElementById(id);\n        var err = document.getElementById('err_' + id);\n        if (inp) inp.classList.add('error');\n        if (err) err.classList.add('visible');\n      }\n\n      function clearError(id) {\n        var inp = document.getElementById(id);\n        var err = document.getElementById('err_' + id);\n        if (inp) inp.classList.remove('error');\n        if (err) err.classList.remove('visible');\n      }\n\n      var isValidEmail = function(v) { return \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/.test(v); };\n      var isValidTel = function(v) { return \/^[\\d\\-\\(\\)\\+]{7,20}$\/.test(v.trim()); };\n\n      \/\/ Real-time validation (blur)\n      ['app_tel', 'app_person_tel', 'bill_tel', 'bill_person_tel'].forEach(function(id) {\n        var el = document.getElementById(id);\n        if (el) el.addEventListener('blur', function() {\n          if (this.value) {\n          if (!isValidTel(this.value)) showError(id);\n        }\n          else clearError(id);\n        });\n      });\n      ['app_email', 'bill_email'].forEach(function(id) {\n        var el = document.getElementById(id);\n        if (el) el.addEventListener('blur', function() {\n          if (this.value) {\n          if (!isValidEmail(this.value)) showError(id);\n        }\n          else clearError(id);\n        });\n      });\n\n      function getAppResidence() {\n        var el = document.querySelector('input[name=\"app_residence\"]:checked');\n        return el ? el.value : 'japan';\n      }\n\n      function getBillResidence() {\n        var el = document.querySelector('input[name=\"bill_residence\"]:checked');\n        return el ? el.value : 'japan';\n      }\n\n      function validateForm() {\n        var ok = true;\n\n        \/\/ Agreement\n        if (!document.getElementById('agree_terms').checked) { showError('agree_terms'); ok = false; } else clearError('agree_terms');\n        if (!document.getElementById('agree_estimate').checked) { showError('agree_estimate'); ok = false; } else clearError('agree_estimate');\n\n        \/\/ Applicant\n        if (!document.getElementById('app_company').value.trim()) { showError('app_company'); ok = false; } else clearError('app_company');\n        if (getAppResidence() !== 'overseas') {\n          if (!document.getElementById('app_zip').value.trim()) { showError('app_zip'); ok = false; } else clearError('app_zip');\n        } else clearError('app_zip');\n        if (!document.getElementById('app_address').value.trim()) { showError('app_address'); ok = false; } else clearError('app_address');\n        if (!isValidTel(document.getElementById('app_tel').value)) { showError('app_tel'); ok = false; } else clearError('app_tel');\n        if (!document.getElementById('app_name').value.trim()) { showError('app_name'); ok = false; } else clearError('app_name');\n        if (!isValidTel(document.getElementById('app_person_tel').value)) { showError('app_person_tel'); ok = false; } else clearError('app_person_tel');\n        if (!isValidEmail(document.getElementById('app_email').value)) { showError('app_email'); ok = false; } else clearError('app_email');\n\n        \/\/ Billing\n        if (!document.getElementById('bill_company').value.trim()) { showError('bill_company'); ok = false; } else clearError('bill_company');\n        if (getBillResidence() !== 'overseas') {\n          if (!document.getElementById('bill_zip').value.trim()) { showError('bill_zip'); ok = false; } else clearError('bill_zip');\n        } else clearError('bill_zip');\n        if (!document.getElementById('bill_address').value.trim()) { showError('bill_address'); ok = false; } else clearError('bill_address');\n        if (!isValidTel(document.getElementById('bill_tel').value)) { showError('bill_tel'); ok = false; } else clearError('bill_tel');\n        if (!document.getElementById('bill_name').value.trim()) { showError('bill_name'); ok = false; } else clearError('bill_name');\n        if (!isValidTel(document.getElementById('bill_person_tel').value)) { showError('bill_person_tel'); ok = false; } else clearError('bill_person_tel');\n        if (!isValidEmail(document.getElementById('bill_email').value)) { showError('bill_email'); ok = false; } else clearError('bill_email');\n\n        \/\/ Payment\n        var ptChecked = document.querySelector('input[name=\"payment_terms\"]:checked');\n        if (!ptChecked) { showError('payment_terms'); ok = false; } else clearError('payment_terms');\n        if (ptChecked) {\n          if (ptChecked.value === '\u305d\u306e\u4ed6') {\n            if (!document.getElementById('payment_terms_other').value.trim()) { showError('payment_terms_other'); ok = false; } else clearError('payment_terms_other');\n          } else { clearError('payment_terms_other'); }\n        }\n\n        var isChecked = document.querySelector('input[name=\"invoice_send\"]:checked');\n        if (!isChecked) { showError('invoice_send'); ok = false; } else clearError('invoice_send');\n        if (isChecked) {\n          if (isChecked.value === '\u305d\u306e\u4ed6') {\n            if (!document.getElementById('invoice_send_other').value.trim()) { showError('invoice_send_other'); ok = false; } else clearError('invoice_send_other');\n          } else { clearError('invoice_send_other'); }\n        }\n\n        \/\/ PO number\n        var poRequired = document.querySelector('input[name=\"po_required\"]:checked');\n        if (poRequired) {\n          if (poRequired.value === 'yes') {\n            if (!document.getElementById('po_number').value.trim()) { showError('po_number'); ok = false; } else clearError('po_number');\n          } else { clearError('po_number'); }\n        }\n\n        \/\/ Confirmation\n        if (!document.getElementById('agree_notes').checked) { showError('agree_notes'); ok = false; } else clearError('agree_notes');\n\n        return ok;\n      }\n\n      \/\/ ================================================================\n      \/\/ Form submission\n      \/\/ ================================================================\n      applicationClient.bind(function () { return integrationQuote; }, validateForm);\n\n  });\n\n  window.YarakuFormReady = true;\n})();\n\n<\/script>\n\n<div class=\"yaraku-form-page yaraku-form-page--apply\" data-default-lang=\"en\">\n<div class=\"container\">\n  <h1 data-lang-key=\"page_title\">Company Plan Application Form<\/h1>\n\n  <!-- Loading state -->\n  <div id=\"stateLoading\" class=\"state-loading\" data-lang-key=\"loading_estimate\">Loading estimate data\u2026<\/div>\n\n  <!-- Error state -->\n  <div id=\"stateError\" class=\"state-error\" style=\"display:none;\"><\/div>\n\n  <!-- Main content (shown after estimate loaded) -->\n  <div id=\"mainContent\" style=\"display:none;\">\n\n    <!-- ======== Estimate summary ======== -->\n    <div class=\"section-block\" id=\"estimateSummaryBlock\">\n      <h2 data-lang-key=\"section_estimate_confirm\">Estimate Confirmation<\/h2>\n\n      <div class=\"quote-info\">\n        <div class=\"quote-info-row\">\n          <span class=\"label\" data-lang-key=\"quote_estimate_num\">Estimate No.<\/span>\n          <span class=\"value\" id=\"sum_estimate_num\">\u2014<\/span>\n        <\/div>\n        <div class=\"quote-info-row\">\n          <span class=\"label\" data-lang-key=\"quote_company\">Company Name<\/span>\n          <span class=\"value\" id=\"sum_company\">\u2014<\/span>\n        <\/div>\n        <div class=\"quote-info-row\">\n          <span class=\"label\" data-lang-key=\"quote_account_count\">Number of Accounts<\/span>\n          <span class=\"value\" id=\"sum_account_count\">\u2014<\/span>\n        <\/div>\n        <div class=\"quote-info-row\">\n          <span class=\"label\" data-lang-key=\"quote_contract_period\">Contract Period<\/span>\n          <span class=\"value\" id=\"sum_contract_period\">\u2014<\/span>\n        <\/div>\n      <\/div>\n\n      <div class=\"estimate-section\">\n        <table class=\"estimate-table\">\n          <thead>\n            <tr>\n              <th data-lang-key=\"th_item\">Item<\/th>\n              <th class=\"text-right\" data-lang-key=\"th_unit_price\">Unit Price (Monthly)<\/th>\n              <th class=\"text-right\" data-lang-key=\"th_quantity\">Quantity<\/th>\n              <th class=\"text-right\" data-lang-key=\"th_amount\">Amount<\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td data-lang-key=\"td_company_plan_annual\">Company Plan (Annual)<\/td>\n              <td class=\"text-right\" id=\"sum_monthly_price\">\u2014<\/td>\n              <td class=\"text-right\" data-lang-key=\"td_months_12\">12 months<\/td>\n              <td class=\"text-right\" id=\"sum_annual_amount\">\u2014<\/td>\n            <\/tr>\n          <\/tbody>\n          <tfoot>\n            <tr class=\"subtotal-row\">\n              <td colspan=\"3\" data-lang-key=\"td_subtotal\">Subtotal<\/td>\n              <td class=\"text-right\" id=\"sum_subtotal\">\u2014<\/td>\n            <\/tr>\n            <tr>\n              <td colspan=\"3\" style=\"border-bottom:none;\" id=\"sum_tax_label\">Consumption Tax (10%)<\/td>\n              <td class=\"text-right\" id=\"sum_tax\" style=\"border-bottom:none;\">\u2014<\/td>\n            <\/tr>\n            <tr class=\"total-row\">\n              <td colspan=\"3\" data-lang-key=\"td_grand_total\">Total (incl. tax)<\/td>\n              <td class=\"text-right\" id=\"sum_total\">\u2014<\/td>\n            <\/tr>\n          <\/tfoot>\n        <\/table>\n      <\/div>\n    <\/div>\n\n    <div class=\"form-error-banner\" id=\"errorBanner\" data-lang-key=\"error_banner\">There are errors in the form. Please check the highlighted fields.<\/div>\n\n    <form id=\"apply-form\" novalidate=\"\" onsubmit=\"return false;\">\n\n      <div class=\"form-group\" style=\"margin-bottom: 30px;\">\n        <label for=\"apply_date\" data-lang-key=\"lbl_apply_date\">Application Date<\/label>\n        <input type=\"date\" id=\"apply_date\" name=\"apply_date\" style=\"width:200px;\" readonly=\"\">\n      <\/div>\n\n      <!-- ======== Section 2: Applicant info ======== -->\n      <div class=\"section-block\">\n        <h2 data-lang-key=\"section_applicant\">Applicant Information<\/h2>\n\n        <div class=\"form-group\">\n          <label for=\"app_company\"><span data-lang-key=\"lbl_company\">Company Name<\/span><span class=\"required\">*<\/span><\/label>\n          <input type=\"text\" id=\"app_company\" name=\"app_company\" placeholder=\"e.g. Yaraku, Inc.\" data-lang-placeholder=\"ph_company\">\n          <div class=\"error-msg\" id=\"err_app_company\" data-lang-key=\"err_company\">Please enter the company name.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label><span data-lang-key=\"lbl_residence\">Country of Residence<\/span><span class=\"required\">*<\/span><\/label>\n          <div class=\"radio-group\">\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"app_residence\" value=\"japan\" checked=\"\">\n              <span data-lang-key=\"residence_japan\">Japan (Domestic)<\/span>\n            <\/label>\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"app_residence\" value=\"overseas\">\n              <span data-lang-key=\"residence_overseas\">Outside Japan<\/span>\n            <\/label>\n          <\/div>\n        <\/div>\n\n        <div class=\"form-group\" id=\"grp_app_zip\">\n          <label id=\"txt_app_zip\">Postal Code<span class=\"required\" id=\"req_app_zip\">*<\/span><\/label>\n          <div class=\"zip-row\">\n            <input type=\"tel\" id=\"app_zip\" name=\"app_zip\" placeholder=\"e.g. 1000001\" maxlength=\"8\" data-lang-placeholder=\"ph_zip\">\n            <button type=\"button\" class=\"btn-zip\" id=\"btn_app_zip\" data-address-prefix=\"app\" data-lang-key=\"btn_search_address\">Look up Address<\/button>\n          <\/div>\n          <div class=\"error-msg\" id=\"err_app_zip\" data-lang-key=\"err_zip\">Please enter the postal code.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label for=\"app_address\"><span data-lang-key=\"lbl_address\">Address<\/span><span class=\"required\">*<\/span><\/label>\n          <input type=\"text\" id=\"app_address\" name=\"app_address\" placeholder=\"e.g. 1-1 Chiyoda, Chiyoda-ku, Tokyo\" data-lang-placeholder=\"ph_address\">\n          <div class=\"error-msg\" id=\"err_app_address\" data-lang-key=\"err_address\">Please enter the address.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label for=\"app_tel\"><span data-lang-key=\"lbl_tel\">Phone Number<\/span><span class=\"required\">*<\/span><\/label>\n          <input type=\"tel\" id=\"app_tel\" name=\"app_tel\" placeholder=\"e.g. 03-1234-5678\" data-lang-placeholder=\"ph_tel\">\n          <div class=\"error-msg\" id=\"err_app_tel\" data-lang-key=\"err_tel\">Please enter a valid phone number.<\/div>\n        <\/div>\n\n        <div class=\"form-row\">\n          <div class=\"form-group\">\n            <label for=\"app_dept\" data-lang-key=\"lbl_dept\">Department<\/label>\n            <input type=\"text\" id=\"app_dept\" name=\"app_dept\" placeholder=\"e.g. Corporate Planning\" data-lang-placeholder=\"ph_dept_app\">\n          <\/div>\n          <div class=\"form-group\">\n            <label for=\"app_name\"><span data-lang-key=\"lbl_name\">Contact Name<\/span><span class=\"required\">*<\/span><\/label>\n            <input type=\"text\" id=\"app_name\" name=\"app_name\" placeholder=\"e.g. Taro Yamada\" data-lang-placeholder=\"ph_name_app\">\n            <div class=\"error-msg\" id=\"err_app_name\" data-lang-key=\"err_name\">Please enter the contact name.<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"form-row\">\n          <div class=\"form-group\">\n            <label for=\"app_person_tel\"><span data-lang-key=\"lbl_person_tel\">Contact Phone<\/span><span class=\"required\">*<\/span><\/label>\n            <input type=\"tel\" id=\"app_person_tel\" name=\"app_person_tel\" placeholder=\"e.g. 090-1234-5678\" data-lang-placeholder=\"ph_person_tel\">\n            <div class=\"error-msg\" id=\"err_app_person_tel\" data-lang-key=\"err_tel\">Please enter a valid phone number.<\/div>\n          <\/div>\n          <div class=\"form-group\">\n            <label for=\"app_email\"><span data-lang-key=\"lbl_email\">Contact Email<\/span><span class=\"required\">*<\/span><\/label>\n            <input type=\"email\" id=\"app_email\" name=\"app_email\" placeholder=\"e.g. taro@example.com\" data-lang-placeholder=\"ph_email_app\">\n            <div class=\"error-msg\" id=\"err_app_email\" data-lang-key=\"err_email\">Please enter a valid email address.<\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n\n      <!-- ======== Section 3: Billing info ======== -->\n      <div class=\"section-block\">\n        <h2 data-lang-key=\"section_billing\">Billing Information<\/h2>\n\n        <div class=\"same-check-box\">\n          <div class=\"checkbox-item\">\n            <input type=\"checkbox\" id=\"same_as_app\" name=\"same_as_app\">\n            <label for=\"same_as_app\" data-lang-key=\"lbl_same_as_app\">Same as Applicant<\/label>\n          <\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label for=\"bill_company\"><span data-lang-key=\"lbl_company\">Company Name<\/span><span class=\"required\">*<\/span><\/label>\n          <input type=\"text\" id=\"bill_company\" name=\"bill_company\" placeholder=\"e.g. Yaraku, Inc.\" data-lang-placeholder=\"ph_company\">\n          <div class=\"error-msg\" id=\"err_bill_company\" data-lang-key=\"err_company\">Please enter the company name.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label><span data-lang-key=\"lbl_residence\">Country of Residence<\/span><span class=\"required\">*<\/span><\/label>\n          <div class=\"radio-group\">\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"bill_residence\" value=\"japan\" checked=\"\">\n              <span data-lang-key=\"residence_japan\">Japan (Domestic)<\/span>\n            <\/label>\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"bill_residence\" value=\"overseas\">\n              <span data-lang-key=\"residence_overseas\">Outside Japan<\/span>\n            <\/label>\n          <\/div>\n        <\/div>\n\n        <div class=\"form-group\" id=\"grp_bill_zip\">\n          <label id=\"txt_bill_zip\">Postal Code<span class=\"required\" id=\"req_bill_zip\">*<\/span><\/label>\n          <div class=\"zip-row\">\n            <input type=\"tel\" id=\"bill_zip\" name=\"bill_zip\" placeholder=\"e.g. 1000001\" maxlength=\"8\" data-lang-placeholder=\"ph_zip\">\n            <button type=\"button\" class=\"btn-zip\" id=\"btn_bill_zip\" data-address-prefix=\"bill\" data-lang-key=\"btn_search_address\">Look up Address<\/button>\n          <\/div>\n          <div class=\"error-msg\" id=\"err_bill_zip\" data-lang-key=\"err_zip\">Please enter the postal code.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label for=\"bill_address\"><span data-lang-key=\"lbl_address\">Address<\/span><span class=\"required\">*<\/span><\/label>\n          <input type=\"text\" id=\"bill_address\" name=\"bill_address\" placeholder=\"e.g. 1-1 Chiyoda, Chiyoda-ku, Tokyo\" data-lang-placeholder=\"ph_address\">\n          <div class=\"error-msg\" id=\"err_bill_address\" data-lang-key=\"err_address\">Please enter the address.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label for=\"bill_tel\"><span data-lang-key=\"lbl_tel\">Phone Number<\/span><span class=\"required\">*<\/span><\/label>\n          <input type=\"tel\" id=\"bill_tel\" name=\"bill_tel\" placeholder=\"e.g. 03-1234-5678\" data-lang-placeholder=\"ph_tel\">\n          <div class=\"error-msg\" id=\"err_bill_tel\" data-lang-key=\"err_tel\">Please enter a valid phone number.<\/div>\n        <\/div>\n\n        <div class=\"form-row\">\n          <div class=\"form-group\">\n            <label for=\"bill_dept\" data-lang-key=\"lbl_dept\">Department<\/label>\n            <input type=\"text\" id=\"bill_dept\" name=\"bill_dept\" placeholder=\"e.g. Accounting\" data-lang-placeholder=\"ph_dept_bill\">\n          <\/div>\n          <div class=\"form-group\">\n            <label for=\"bill_name\"><span data-lang-key=\"lbl_name\">Contact Name<\/span><span class=\"required\">*<\/span><\/label>\n            <input type=\"text\" id=\"bill_name\" name=\"bill_name\" placeholder=\"e.g. Hanako Suzuki\" data-lang-placeholder=\"ph_name_bill\">\n            <div class=\"error-msg\" id=\"err_bill_name\" data-lang-key=\"err_name\">Please enter the contact name.<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"form-row\">\n          <div class=\"form-group\">\n            <label for=\"bill_person_tel\"><span data-lang-key=\"lbl_person_tel\">Contact Phone<\/span><span class=\"required\">*<\/span><\/label>\n            <input type=\"tel\" id=\"bill_person_tel\" name=\"bill_person_tel\" placeholder=\"e.g. 090-1234-5678\" data-lang-placeholder=\"ph_person_tel\">\n            <div class=\"error-msg\" id=\"err_bill_person_tel\" data-lang-key=\"err_tel\">Please enter a valid phone number.<\/div>\n          <\/div>\n          <div class=\"form-group\">\n            <label for=\"bill_email\"><span data-lang-key=\"lbl_email\">Contact Email<\/span><span class=\"required\">*<\/span><\/label>\n            <input type=\"email\" id=\"bill_email\" name=\"bill_email\" placeholder=\"e.g. hanako@example.com\" data-lang-placeholder=\"ph_email_bill\">\n            <div class=\"error-msg\" id=\"err_bill_email\" data-lang-key=\"err_email\">Please enter a valid email address.<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label><span data-lang-key=\"lbl_payment_terms\">Payment Terms<\/span><span class=\"required\">*<\/span><\/label>\n          <div class=\"radio-group\">\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"payment_terms\" value=\"\u5f53\u6708\u672b\u65e5\u7de0\u30fb\u7fcc\u6708\u672b\u65e5\u6255\u3044\" checked=\"\">\n              <span data-lang-key=\"payment_standard\">End of month \/ Payment by end of next month<\/span>\n            <\/label>\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"payment_terms\" value=\"\u305d\u306e\u4ed6\">\n              <span data-lang-key=\"payment_other\">Other<\/span>\n            <\/label>\n          <\/div>\n          <div class=\"error-msg\" id=\"err_payment_terms\" data-lang-key=\"err_payment_terms\">Please select payment terms.<\/div>\n          <div id=\"paymentTermsOtherWrap\" style=\"display:none; margin-top:8px;\">\n            <input type=\"text\" id=\"payment_terms_other\" placeholder=\"Enter payment terms\" data-lang-placeholder=\"ph_payment_terms_other\">\n            <div class=\"error-msg\" id=\"err_payment_terms_other\" data-lang-key=\"err_payment_terms_other\">Please enter the payment terms.<\/div>\n          <\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <label><span data-lang-key=\"lbl_invoice_send\">Invoice Delivery Method<\/span><span class=\"required\">*<\/span><\/label>\n          <div class=\"radio-group\">\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"invoice_send\" value=\"email\" checked=\"\">\n              <span data-lang-key=\"invoice_email\">Download<\/span>\n            <\/label>\n            <label class=\"radio-item\" id=\"invoice_send_mail_label\">\n              <input type=\"radio\" name=\"invoice_send\" value=\"mail\" id=\"invoice_send_mail\">\n              <span data-lang-key=\"invoice_mail\">Postal Mail<\/span>\n            <\/label>\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"invoice_send\" value=\"\u305d\u306e\u4ed6\">\n              <span data-lang-key=\"payment_other\">Other<\/span>\n            <\/label>\n          <\/div>\n          <div class=\"error-msg\" id=\"err_invoice_send\" data-lang-key=\"err_invoice_send\">Please select an invoice delivery method.<\/div>\n          <p id=\"invoice_mail_overseas_note\" style=\"display:none; font-size:12px; color:#999; margin-top:4px;\" data-lang-key=\"invoice_overseas_note\">* Postal mail is not available for overseas addresses.<\/p>\n          <div id=\"invoiceSendOtherWrap\" style=\"display:none; margin-top:8px;\">\n            <input type=\"text\" id=\"invoice_send_other\" placeholder=\"Enter your preferred delivery method\" data-lang-placeholder=\"ph_invoice_send_other\">\n            <div class=\"error-msg\" id=\"err_invoice_send_other\" data-lang-key=\"err_invoice_send_other\">Please enter the delivery method.<\/div>\n          <\/div>\n        <\/div>\n\n        <!-- PO number (optional) -->\n        <div class=\"form-group\">\n          <label data-lang-key=\"lbl_po_required\">Is a PO number required?<\/label>\n          <div class=\"radio-group\">\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"po_required\" value=\"no\" checked=\"\">\n              <span data-lang-key=\"po_no\">No<\/span>\n            <\/label>\n            <label class=\"radio-item\">\n              <input type=\"radio\" name=\"po_required\" value=\"yes\">\n              <span data-lang-key=\"po_yes\">Yes<\/span>\n            <\/label>\n          <\/div>\n          <div id=\"poNumberWrap\" style=\"display:none; margin-top:8px;\">\n            <input type=\"text\" id=\"po_number\" placeholder=\"e.g. PO-12345\" data-lang-placeholder=\"ph_po_number\">\n            <div class=\"error-msg\" id=\"err_po_number\" data-lang-key=\"err_po_number\">Please enter the PO number.<\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n\n      <!-- ======== Section 4: Confirmation ======== -->\n      <div class=\"section-block\">\n        <h2 data-lang-key=\"section_agreement\">Terms and Conditions<\/h2>\n\n        <div class=\"form-group\">\n          <div class=\"checkbox-item\">\n            <input type=\"checkbox\" id=\"agree_terms\" name=\"agree_terms\">\n            <label for=\"agree_terms\" data-lang-key=\"agree_terms\" data-lang-html=\"1\">I agree to the <a href=\"https:\/\/www.yaraku.com\/en\/terms\/\" target=\"_blank\">Terms of Service<\/a> and <a href=\"https:\/\/www.yaraku.com\/en\/privacy\/\" target=\"_blank\">Privacy Policy<\/a><span class=\"required\">*<\/span><\/label>\n          <\/div>\n          <div class=\"error-msg\" id=\"err_agree_terms\" data-lang-key=\"err_agree_terms\">You must agree to the Terms of Service and Privacy Policy.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <div class=\"checkbox-item\">\n            <input type=\"checkbox\" id=\"agree_estimate\" name=\"agree_estimate\">\n            <label for=\"agree_estimate\" data-lang-key=\"agree_estimate\" data-lang-html=\"1\">I have reviewed the estimate<span class=\"required\">*<\/span><\/label>\n          <\/div>\n          <div class=\"error-msg\" id=\"err_agree_estimate\" data-lang-key=\"err_agree_estimate\">You must confirm that you have reviewed the estimate.<\/div>\n        <\/div>\n\n        <div class=\"form-group\">\n          <div class=\"checkbox-item\">\n            <input type=\"checkbox\" id=\"agree_notes\" name=\"agree_notes\">\n            <label for=\"agree_notes\" data-lang-key=\"agree_notes\" data-lang-html=\"1\">Unless either party gives notice at least 30 days before the end of the contract period, this contract shall be automatically renewed at the current price for the same duration.<span class=\"required\">*<\/span><\/label>\n          <\/div>\n          <div class=\"error-msg\" id=\"err_agree_notes\" data-lang-key=\"err_agree_notes\">You must agree to the renewal terms.<\/div>\n        <\/div>\n\n        <button type=\"submit\" class=\"submit-btn\" id=\"submitBtn\" data-lang-key=\"btn_submit\">Submit Application<\/button>\n      <\/div>\n\n    <\/form>\n\n    <div class=\"success-message\" id=\"successMessage\">\n      <p data-lang-key=\"success_msg\">\u2714 Your application has been received.<\/p>\n      <p style=\"font-size:14px; font-weight:400; margin-top:8px;\" data-lang-key=\"success_detail\">We will send you a payment link by email. Please wait a few moments.<\/p>\n    <\/div>\n  <\/div><!-- \/mainContent -->\n<\/div>\n\n<div class=\"loading-overlay\" id=\"loadingOverlay\">\n  <div class=\"loading-spinner\"><\/div>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Company Plan Application Form Loading estimate data\u2026 Estimate Confirmation Estimate No. \u2014 Company Name \u2014 Number of Accounts \u2014 Contract Period \u2014 Item Unit Price (Monthly) Quantity Amount Company Plan (Annual) \u2014 12 months \u2014 Subtotal \u2014 Consumption Tax (10%) \u2014 Total (incl. tax) \u2014 There are errors in the form. Please check the highlighted [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"content-type":"","footnotes":""},"class_list":["post-87185","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Company Plan Application Form - Yaraku Translate<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.yaraku.com\/en\/company-apply\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Company Plan Application Form - Yaraku Translate\" \/>\n<meta property=\"og:description\" content=\"Company Plan Application Form Loading estimate data\u2026 Estimate Confirmation Estimate No. \u2014 Company Name \u2014 Number of Accounts \u2014 Contract Period \u2014 Item Unit Price (Monthly) Quantity Amount Company Plan (Annual) \u2014 12 months \u2014 Subtotal \u2014 Consumption Tax (10%) \u2014 Total (incl. tax) \u2014 There are errors in the form. Please check the highlighted [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.yaraku.com\/en\/company-apply\/\" \/>\n<meta property=\"og:site_name\" content=\"Yaraku Translate\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-14T02:48:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.yaraku.com\\\/en\\\/company-apply\\\/\",\"url\":\"https:\\\/\\\/www.yaraku.com\\\/en\\\/company-apply\\\/\",\"name\":\"Company Plan Application Form - Yaraku Translate\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yaraku.com\\\/#website\"},\"datePublished\":\"2026-06-23T02:24:33+00:00\",\"dateModified\":\"2026-10-14T02:48:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.yaraku.com\\\/en\\\/company-apply\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.yaraku.com\\\/en\\\/company-apply\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.yaraku.com\\\/en\\\/company-apply\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Yaraku Translate\",\"item\":\"https:\\\/\\\/www.yaraku.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Company Plan Application Form\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.yaraku.com\\\/#website\",\"url\":\"https:\\\/\\\/www.yaraku.com\\\/\",\"name\":\"\u30e4\u30e9\u30af\u7ffb\u8a33\",\"description\":\"From AI-powered translation to editing, sharing, and outsourcing to professional agencies \u2014 all in one platform. Enterprise-grade security, intuitive interface, and over 1,000 manufacturers already trust us. Cut translation costs by up to 70%.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.yaraku.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Company Plan Application Form - Yaraku Translate","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.yaraku.com\/en\/company-apply\/","og_locale":"en_US","og_type":"article","og_title":"Company Plan Application Form - Yaraku Translate","og_description":"Company Plan Application Form Loading estimate data\u2026 Estimate Confirmation Estimate No. \u2014 Company Name \u2014 Number of Accounts \u2014 Contract Period \u2014 Item Unit Price (Monthly) Quantity Amount Company Plan (Annual) \u2014 12 months \u2014 Subtotal \u2014 Consumption Tax (10%) \u2014 Total (incl. tax) \u2014 There are errors in the form. Please check the highlighted [&hellip;]","og_url":"https:\/\/www.yaraku.com\/en\/company-apply\/","og_site_name":"Yaraku Translate","article_modified_time":"2026-10-14T02:48:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.yaraku.com\/en\/company-apply\/","url":"https:\/\/www.yaraku.com\/en\/company-apply\/","name":"Company Plan Application Form - Yaraku Translate","isPartOf":{"@id":"https:\/\/www.yaraku.com\/#website"},"datePublished":"2026-06-23T02:24:33+00:00","dateModified":"2026-10-14T02:48:02+00:00","breadcrumb":{"@id":"https:\/\/www.yaraku.com\/en\/company-apply\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.yaraku.com\/en\/company-apply\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.yaraku.com\/en\/company-apply\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Yaraku Translate","item":"https:\/\/www.yaraku.com\/en\/"},{"@type":"ListItem","position":2,"name":"Company Plan Application Form"}]},{"@type":"WebSite","@id":"https:\/\/www.yaraku.com\/#website","url":"https:\/\/www.yaraku.com\/","name":"\u30e4\u30e9\u30af\u7ffb\u8a33","description":"From AI-powered translation to editing, sharing, and outsourcing to professional agencies \u2014 all in one platform. Enterprise-grade security, intuitive interface, and over 1,000 manufacturers already trust us. Cut translation costs by up to 70%.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.yaraku.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/pages\/87185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/comments?post=87185"}],"version-history":[{"count":23,"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/pages\/87185\/revisions"}],"predecessor-version":[{"id":91772,"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/pages\/87185\/revisions\/91772"}],"wp:attachment":[{"href":"https:\/\/www.yaraku.com\/en\/wp-json\/wp\/v2\/media?parent=87185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}