{"id":19,"date":"2026-03-22T18:43:43","date_gmt":"2026-03-22T09:43:43","guid":{"rendered":"https:\/\/yuu-room.com\/?page_id=19"},"modified":"2026-08-29T21:43:16","modified_gmt":"2026-08-29T12:43:16","slug":"%e4%bd%8f%e5%ae%85%e3%83%ad%e3%83%bc%e3%83%b3%e5%80%9f%e5%85%a5%e9%a1%8d%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc","status":"publish","type":"page","link":"https:\/\/yuu-room.com\/?page_id=19","title":{"rendered":"\u4f4f\u5b85\u30ed\u30fc\u30f3\u501f\u5165\u984d\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code><section class=\"yr-loan-simulator\" aria-label=\"\u4f4f\u5b85\u30ed\u30fc\u30f3\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\">\n  <div class=\"yr-loan-simulator__tabs\" role=\"tablist\" aria-label=\"\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u7a2e\u985e\">\n    <button class=\"yr-loan-simulator__tab is-active\" type=\"button\" role=\"tab\" aria-selected=\"true\" aria-controls=\"yr-loan-new\" data-loan-tab=\"new\">\ud83c\udfe0 \u3053\u308c\u304b\u3089\u5efa\u3066\u308b\uff08\u65b0\u898f\u501f\u5165\uff09<\/button>\n    <button class=\"yr-loan-simulator__tab\" type=\"button\" role=\"tab\" aria-selected=\"false\" aria-controls=\"yr-loan-refinance\" data-loan-tab=\"refinance\">\ud83d\udd04 \u4f4f\u3093\u3067\u3044\u308b\uff08\u501f\u308a\u63db\u3048\u6bd4\u8f03\uff09<\/button>\n  <\/div>\n\n  <div id=\"yr-loan-new\" class=\"yr-loan-simulator__panel\" role=\"tabpanel\">\n    <fieldset class=\"yr-loan-simulator__fieldset\">\n      <legend>\u501f\u5165\u306e\u7d44\u307f\u65b9<\/legend>\n      <label><input type=\"radio\" name=\"yr-new-loan-type\" value=\"single\" checked> \u30ed\u30fc\u30f31\u672c<\/label>\n      <label><input type=\"radio\" name=\"yr-new-loan-type\" value=\"split\"> \u571f\u5730\uff0b\u5efa\u7269\uff082\u672c\u7acb\u3066\u30fb\u5206\u5272\uff09<\/label>\n    <\/fieldset>\n\n    <div class=\"yr-loan-simulator__loan-card\">\n      <h3 class=\"yr-loan-simulator__loan-title\" data-loan-one-title hidden>\ud83c\udff7\ufe0f \u5efa\u7269\u7528\u30ed\u30fc\u30f3<\/h3>\n      <div class=\"yr-loan-simulator__input-grid is-three-columns\">\n        <label>\u501f\u5165\u91d1\u984d <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-new-amount=\"1\" value=\"3500\" min=\"0\" step=\"50\" inputmode=\"decimal\"><small>\u4e07\u5186<\/small><\/span><\/label>\n        <label>\u501f\u5165\u671f\u9593 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-new-years=\"1\" value=\"35\" min=\"1\" max=\"50\" step=\"1\" inputmode=\"numeric\"><small>\u5e74<\/small><\/span><\/label>\n        <label>\u501f\u5165\u65e5 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"date\" data-new-start-date=\"1\" value=\"2026-09-01\"><\/span><\/label>\n      <\/div>\n      <label>\u91d1\u5229\uff08\u5e74\u5229\uff09 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-new-rate=\"1\" value=\"0.55\" min=\"0\" step=\"0.01\" inputmode=\"decimal\"><small>%<\/small><\/span><\/label>\n    <\/div>\n\n    <div class=\"yr-loan-simulator__loan-card is-secondary\" data-loan-two hidden>\n      <h3 class=\"yr-loan-simulator__loan-title\">\ud83c\udff7\ufe0f \u571f\u5730\u7528\u30ed\u30fc\u30f3<\/h3>\n      <div class=\"yr-loan-simulator__input-grid is-three-columns\">\n        <label>\u571f\u5730 \u501f\u5165\u91d1\u984d <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-new-amount=\"2\" value=\"1500\" min=\"0\" step=\"50\" inputmode=\"decimal\"><small>\u4e07\u5186<\/small><\/span><\/label>\n        <label>\u501f\u5165\u671f\u9593 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-new-years=\"2\" value=\"35\" min=\"1\" max=\"50\" step=\"1\" inputmode=\"numeric\"><small>\u5e74<\/small><\/span><\/label>\n        <label>\u501f\u5165\u65e5 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"date\" data-new-start-date=\"2\" value=\"2026-09-01\"><\/span><\/label>\n      <\/div>\n      <label>\u91d1\u5229\uff08\u5e74\u5229\uff09 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-new-rate=\"2\" value=\"0.60\" min=\"0\" step=\"0.01\" inputmode=\"decimal\"><small>%<\/small><\/span><\/label>\n    <\/div>\n\n    <div class=\"yr-loan-simulator__result is-new\" aria-live=\"polite\">\n      <p>\u6bce\u6708\u306e\u5408\u8a08\u8fd4\u6e08\u984d<\/p>\n      <strong><span data-new-monthly>0<\/span> <small>\u5186\/\u6708<\/small><\/strong>\n      <div><span>\u501f\u5165\u7dcf\u984d: <b data-new-borrow>0<\/b> \u4e07\u5186<\/span><span>\u7dcf\u5229\u606f\u984d: <b data-new-interest>0<\/b> \u4e07\u5186<\/span><\/div>\n    <\/div>\n    <a class=\"yr-loan-simulator__cta is-new\" href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">\ud83d\udc49 \u4e3b\u8981\u9280\u884c\u306e\u6700\u65b0\u91d1\u5229\u30fb\u4e00\u62ec\u6bd4\u8f03\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/a>\n    <div class=\"yr-loan-simulator__schedule-wrap\">\n      <h3>\u6708\u5225\u306e\u8fd4\u6e08\u4e88\u5b9a\u8868<\/h3>\n      <p>\u501f\u5165\u65e5\u304c\u5c5e\u3059\u308b\u6708\u3092\u521d\u56de\u8fd4\u6e08\u6708\u3068\u3057\u3066\u8a08\u7b97\u3057\u305f\u6982\u7b97\u3067\u3059\u3002<\/p>\n      <div class=\"yr-loan-simulator__schedule-actions\">\n        <button type=\"button\" data-copy-schedule>\u4e88\u5b9a\u8868\u3092Excel\u7528\u306b\u30b3\u30d4\u30fc<\/button>\n        <button type=\"button\" data-export-schedule>Excel\u3067\u958b\u3051\u308bCSV\u3092\u51fa\u529b<\/button>\n        <span data-copy-status aria-live=\"polite\"><\/span>\n      <\/div>\n      <div class=\"yr-loan-simulator__schedule-scroll\">\n        <table class=\"yr-loan-simulator__schedule\">\n          <thead data-new-schedule-heading><\/thead>\n          <tbody data-new-schedule><\/tbody>\n        <\/table>\n      <\/div>\n    <\/div>\n  <\/div>\n\n  <div id=\"yr-loan-refinance\" class=\"yr-loan-simulator__panel\" role=\"tabpanel\" hidden>\n    <div class=\"yr-loan-simulator__loan-card\">\n      <h3 class=\"yr-loan-simulator__loan-title\">\ud83d\udccc \u73fe\u5728\u306e\u501f\u5165\u72b6\u6cc1<\/h3>\n      <div class=\"yr-loan-simulator__input-grid\">\n        <label>\u4f4f\u5b85\u30ed\u30fc\u30f3\u6b8b\u9ad8 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-ref-balance value=\"3000\" min=\"0\" step=\"50\" inputmode=\"decimal\"><small>\u4e07\u5186<\/small><\/span><\/label>\n        <label>\u6b8b\u308a\u306e\u8fd4\u6e08\u671f\u9593 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-ref-years value=\"30\" min=\"1\" max=\"50\" step=\"1\" inputmode=\"numeric\"><small>\u5e74<\/small><\/span><\/label>\n      <\/div>\n      <label>\u73fe\u5728\u306e\u9069\u7528\u91d1\u5229 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-ref-current-rate value=\"1.20\" min=\"0\" step=\"0.01\" inputmode=\"decimal\"><small>%<\/small><\/span><\/label>\n    <\/div>\n    <div class=\"yr-loan-simulator__loan-card is-refinance\">\n      <h3 class=\"yr-loan-simulator__loan-title\">\ud83c\udfaf \u501f\u308a\u63db\u3048\u5148\u306e\u76ee\u6a19\u91d1\u5229<\/h3>\n      <label>\u691c\u8a0e\u4e2d\u306e\u65b0\u91d1\u5229 <span class=\"yr-loan-simulator__input-wrap\"><input type=\"number\" data-ref-new-rate value=\"0.45\" min=\"0\" step=\"0.01\" inputmode=\"decimal\"><small>%<\/small><\/span><\/label>\n    <\/div>\n    <div class=\"yr-loan-simulator__result is-refinance\" aria-live=\"polite\">\n      <p>\u501f\u308a\u63db\u3048\u306b\u3088\u308b\u7dcf\u5229\u606f\u524a\u6e1b\u984d<\/p>\n      <strong>\u7d04 <span data-ref-saved>0<\/span> <small>\u4e07\u5186 \u6d6e\u304f\uff01<\/small><\/strong>\n      <div><span>\u73fe\u5728: <b data-ref-current-monthly>0<\/b> \u5186\/\u6708<\/span><span>\u898b\u76f4\u3057\u5f8c: <b data-ref-new-monthly>0<\/b> \u5186\/\u6708<\/span><\/div>\n    <\/div>\n    <a class=\"yr-loan-simulator__cta is-refinance\" href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">\ud83d\udc49 \u4f4f\u5b85\u30ed\u30fc\u30f3\u306e\u7121\u6599\u501f\u308a\u63db\u3048\u8a3a\u65ad\u30fb\u4e00\u62ec\u6bd4\u8f03\u3078<\/a>\n  <\/div>\n<\/section>\n\n<style>\n.yr-loan-simulator{max-width:760px;margin:0 auto;color:#1e293b;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Noto Sans JP\",sans-serif;line-height:1.5}.yr-loan-simulator__tabs{display:flex;gap:8px;padding:4px;margin-bottom:20px;background:#f1f5f9;border-radius:10px}.yr-loan-simulator__tab{flex:1;padding:12px 8px;border:0;border-radius:8px;background:transparent;color:#64748b;font-weight:700;cursor:pointer}.yr-loan-simulator__tab.is-active{background:#2563eb;color:#fff}.yr-loan-simulator__panel{padding:24px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 6px -1px rgba(0,0,0,.05)}.yr-loan-simulator__fieldset{padding:0 0 16px;margin:0;border:0}.yr-loan-simulator__fieldset legend,.yr-loan-simulator label{display:block;margin-bottom:8px;font-weight:700;font-size:.9rem;color:#334155}.yr-loan-simulator__fieldset label{display:inline-flex;gap:6px;margin-right:12px;align-items:center;font-weight:400;cursor:pointer}.yr-loan-simulator__loan-card{padding:16px;margin-bottom:16px;background:#f8fafc;border:1px solid #edf2f7;border-radius:8px}.yr-loan-simulator__loan-card.is-secondary{border-color:#d1fae5}.yr-loan-simulator__loan-card.is-refinance{background:#f0fdf4;border-color:#dcfce7}.yr-loan-simulator__loan-title{margin:0 0 12px;font-size:.95rem;color:#1e40af}.is-secondary .yr-loan-simulator__loan-title{color:#059669}.is-refinance .yr-loan-simulator__loan-title{color:#166534}.yr-loan-simulator__input-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.yr-loan-simulator__input-grid.is-three-columns{grid-template-columns:1fr 1fr 1.25fr}.yr-loan-simulator__input-wrap{position:relative;display:block}.yr-loan-simulator input{box-sizing:border-box;width:100%;padding:8px 30px 8px 10px;border:1px solid #cbd5e1;border-radius:6px;font:inherit;font-weight:400}.yr-loan-simulator input[type=date]{padding-right:8px}.yr-loan-simulator small{font-size:.85rem;font-weight:400}.yr-loan-simulator__input-wrap small{position:absolute;top:9px;right:8px;color:#94a3b8}.yr-loan-simulator__result{padding:20px;text-align:center;border:2px solid #3b82f6;border-radius:10px;background:#eff6ff}.yr-loan-simulator__result p{margin:0 0 4px;color:#1e40af;font-size:.9rem;font-weight:700}.yr-loan-simulator__result>strong{display:block;margin-bottom:12px;color:#1d4ed8;font-size:2rem;line-height:1.1}.yr-loan-simulator__result>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:12px;border-top:1px solid #bfdbfe;font-size:.85rem}.yr-loan-simulator__result b{color:#0f172a}.yr-loan-simulator__result.is-refinance{border-color:#10b981;background:#ecfdf5}.yr-loan-simulator__result.is-refinance p,.yr-loan-simulator__result.is-refinance>strong,.yr-loan-simulator__result.is-refinance b{color:#047857}.yr-loan-simulator__result.is-refinance>div{border-color:#a7f3d0}.yr-loan-simulator__cta{display:block;box-sizing:border-box;width:100%;padding:12px;margin-top:16px;border-radius:8px;color:#fff!important;text-align:center;text-decoration:none!important;font-weight:700}.yr-loan-simulator__cta.is-new{background:#2563eb}.yr-loan-simulator__cta.is-refinance{background:#059669}.yr-loan-simulator__schedule-wrap{margin-top:28px}.yr-loan-simulator__schedule-wrap h3{margin:0;font-size:1.05rem}.yr-loan-simulator__schedule-wrap p{margin:4px 0 10px;color:#64748b;font-size:.8rem}.yr-loan-simulator__schedule-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}.yr-loan-simulator__schedule-actions button{padding:8px 10px;border:1px solid #2563eb;border-radius:6px;background:#fff;color:#1d4ed8;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}.yr-loan-simulator__schedule-actions button:hover{background:#eff6ff}.yr-loan-simulator__schedule-actions span{font-size:.8rem;color:#047857}.yr-loan-simulator__schedule-scroll{max-height:440px;overflow:auto;border:1px solid #e2e8f0;border-radius:8px}.yr-loan-simulator__schedule{width:100%;border-collapse:collapse;font-size:.85rem;white-space:nowrap}.yr-loan-simulator__schedule th,.yr-loan-simulator__schedule td{padding:9px 10px;border-bottom:1px solid #e2e8f0;text-align:right}.yr-loan-simulator__schedule th{position:sticky;top:0;background:#eff6ff;color:#1e40af;font-weight:700}.yr-loan-simulator__schedule th:first-child,.yr-loan-simulator__schedule td:first-child{text-align:left}.yr-loan-simulator__schedule tr:last-child td{border-bottom:0}@media(max-width:600px){.yr-loan-simulator__panel{padding:16px}.yr-loan-simulator__input-grid,.yr-loan-simulator__input-grid.is-three-columns,.yr-loan-simulator__result>div{grid-template-columns:1fr}.yr-loan-simulator__tabs{gap:4px}.yr-loan-simulator__tab{font-size:.82rem}}\n<\/style>\n\n<script>\n(() => {\n  document.querySelectorAll('.yr-loan-simulator').forEach((simulator) => {\n    const number = (selector) => Number.parseFloat(simulator.querySelector(selector).value) || 0;\n    const format = (value) => Math.round(value).toLocaleString('ja-JP');\n    const payment = (principalMan, annualRate, years) => {\n      if (principalMan <= 0 || years <= 0) return { monthly: 0, interest: 0 };\n      const principal = principalMan * 10000;\n      const months = years * 12;\n      const rate = annualRate \/ 100 \/ 12;\n      const monthly = rate === 0 ? Math.round(principal \/ months) : Math.round(principal * rate * Math.pow(1 + rate, months) \/ (Math.pow(1 + rate, months) - 1));\n      return { monthly, interest: monthly * months - principal };\n    };\n    const monthlySchedule = (principalMan, annualRate, years, dateValue) => {\n      const result = payment(principalMan, annualRate, years);\n      const months = Math.max(0, Math.round(years * 12));\n      const start = new Date(`${dateValue || '2026-09-01'}T00:00:00`);\n      if (principalMan <= 0 || months === 0 || Number.isNaN(start.getTime())) return [];\n      const monthlyRate = annualRate \/ 100 \/ 12;\n      let balance = principalMan * 10000;\n      return Array.from({ length: months }, (_, index) => {\n        const interest = Math.round(balance * monthlyRate);\n        const principal = index === months - 1 ? balance : Math.min(balance, Math.max(0, result.monthly - interest));\n        const total = principal + interest;\n        balance -= principal;\n        return { date: new Date(start.getFullYear(), start.getMonth() + index, 1), principal, interest, total };\n      });\n    };\n    const buildCombinedSchedule = (firstSchedule, secondSchedule, split) => {\n      const amounts = new Map();\n      const add = (schedule, index) => schedule.forEach(({ date, principal, interest, total }) => { const key = `${date.getFullYear()}-${date.getMonth()}`; const current = amounts.get(key) || { date, first: null, second: null }; current[index] = { principal, interest, total }; amounts.set(key, current); });\n      add(firstSchedule, 'first');\n      if (split) add(secondSchedule, 'second');\n      return Array.from(amounts.values()).sort((a, b) => a.date - b.date).map(({ date, first, second }) => {\n        const firstValue = first || { principal: 0, interest: 0, total: 0 };\n        const secondValue = second || { principal: 0, interest: 0, total: 0 };\n        return { date, first, second, principal: firstValue.principal + secondValue.principal, interest: firstValue.interest + secondValue.interest, total: firstValue.total + secondValue.total };\n      });\n    };\n    const scheduleHeaders = (split) => ['\u8fd4\u6e08\u6708', '\u5efa\u7269 \u5143\u91d1', '\u5efa\u7269 \u5229\u606f', '\u5efa\u7269 \u8fd4\u6e08\u984d', ...(split ? ['\u571f\u5730\u7528\u30ed\u30fc\u30f3 \u5143\u91d1', '\u571f\u5730\u7528\u30ed\u30fc\u30f3 \u5229\u606f', '\u571f\u5730\u7528\u30ed\u30fc\u30f3 \u8fd4\u6e08\u984d'] : []), '\u5408\u8a08 \u5143\u91d1', '\u5408\u8a08 \u5229\u606f', '\u5408\u8a08 \u8fd4\u6e08\u984d'];\n    const scheduleValues = (row, split) => [\n      `${row.date.getFullYear()}\u5e74${row.date.getMonth() + 1}\u6708`, row.first ? row.first.principal : 0, row.first ? row.first.interest : 0, row.first ? row.first.total : 0,\n      ...(split ? [row.second ? row.second.principal : 0, row.second ? row.second.interest : 0, row.second ? row.second.total : 0] : []), row.principal, row.interest, row.total,\n    ];\n    const renderSchedule = (rows, split) => {\n      const body = simulator.querySelector('[data-new-schedule]');\n      const heading = simulator.querySelector('[data-new-schedule-heading]');\n      heading.innerHTML = `<tr>${scheduleHeaders(split).map((label) => `<th scope=\"col\">${label}<\/th>`).join('')}<\/tr>`;\n      body.replaceChildren(...rows.map((row) => {\n        const tableRow = document.createElement('tr');\n        const values = scheduleValues(row, split);\n        tableRow.innerHTML = values.map((value, index) => `<td>${index === 0 ? value : `${format(value)}\u5186`}<\/td>`).join('');\n        return tableRow;\n      }));\n    };\n    const updateNew = () => {\n      const amountOne = number('[data-new-amount=\"1\"]'), rateOne = number('[data-new-rate=\"1\"]'), yearsOne = number('[data-new-years=\"1\"]');\n      const first = payment(amountOne, rateOne, yearsOne);\n      const split = simulator.querySelector('[name=\"yr-new-loan-type\"]:checked').value === 'split';\n      const amountTwo = number('[data-new-amount=\"2\"]'), rateTwo = number('[data-new-rate=\"2\"]'), yearsTwo = number('[data-new-years=\"2\"]');\n      const second = split ? payment(amountTwo, rateTwo, yearsTwo) : { monthly: 0, interest: 0 };\n      simulator.querySelector('[data-new-monthly]').textContent = format(first.monthly + second.monthly);\n      simulator.querySelector('[data-new-borrow]').textContent = format(amountOne + (split ? amountTwo : 0));\n      simulator.querySelector('[data-new-interest]').textContent = format((first.interest + second.interest) \/ 10000);\n      const rows = buildCombinedSchedule(monthlySchedule(amountOne, rateOne, yearsOne, simulator.querySelector('[data-new-start-date=\"1\"]').value), monthlySchedule(amountTwo, rateTwo, yearsTwo, simulator.querySelector('[data-new-start-date=\"2\"]').value), split);\n      simulator.loanSchedule = { rows, split };\n      renderSchedule(rows, split);\n    };\n    const updateRefinance = () => {\n      const balance = number('[data-ref-balance]'), years = number('[data-ref-years]');\n      const current = payment(balance, number('[data-ref-current-rate]'), years), revised = payment(balance, number('[data-ref-new-rate]'), years);\n      simulator.querySelector('[data-ref-saved]').textContent = format(Math.max(0, current.interest - revised.interest) \/ 10000);\n      simulator.querySelector('[data-ref-current-monthly]').textContent = format(current.monthly);\n      simulator.querySelector('[data-ref-new-monthly]').textContent = format(revised.monthly);\n    };\n    simulator.addEventListener('input', (event) => { if (event.target.matches('[data-new-amount],[data-new-years],[data-new-rate],[data-new-start-date]')) updateNew(); if (event.target.matches('[data-ref-balance],[data-ref-years],[data-ref-current-rate],[data-ref-new-rate]')) updateRefinance(); });\n    simulator.addEventListener('change', (event) => { if (event.target.matches('[data-new-start-date]')) updateNew(); });\n    const tsv = () => { const { rows, split } = simulator.loanSchedule; return [scheduleHeaders(split), ...rows.map((row) => scheduleValues(row, split))].map((line) => line.join('\\t')).join('\\n'); };\n    simulator.querySelector('[data-copy-schedule]').addEventListener('click', async () => {\n      const status = simulator.querySelector('[data-copy-status]');\n      try { await navigator.clipboard.writeText(tsv()); status.textContent = '\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002Excel\u3067\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002'; }\n      catch { status.textContent = '\u30b3\u30d4\u30fc\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30d6\u30e9\u30a6\u30b6\u306e\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u8a31\u53ef\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002'; }\n    });\n    simulator.querySelector('[data-export-schedule]').addEventListener('click', () => {\n      const blob = new Blob([`\\uFEFF${tsv().replaceAll('\\t', ',')}`], { type: 'text\/csv;charset=utf-8' });\n      const link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = '\u4f4f\u5b85\u30ed\u30fc\u30f3\u8fd4\u6e08\u4e88\u5b9a\u8868.csv'; link.click(); URL.revokeObjectURL(link.href);\n    });\n    simulator.querySelectorAll('[name=\"yr-new-loan-type\"]').forEach((radio) => radio.addEventListener('change', () => { const split = simulator.querySelector('[name=\"yr-new-loan-type\"]:checked').value === 'split'; simulator.querySelector('[data-loan-two]').hidden = !split; simulator.querySelector('[data-loan-one-title]').hidden = !split; updateNew(); }));\n    simulator.querySelectorAll('[data-loan-tab]').forEach((button) => button.addEventListener('click', () => { const name = button.dataset.loanTab; simulator.querySelector('#yr-loan-new').hidden = name !== 'new'; simulator.querySelector('#yr-loan-refinance').hidden = name !== 'refinance'; simulator.querySelectorAll('[data-loan-tab]').forEach((tab) => { const active = tab === button; tab.classList.toggle('is-active', active); tab.setAttribute('aria-selected', active); }); if (name === 'new') updateNew(); else updateRefinance(); }));\n    updateNew(); updateRefinance();\n  });\n})();\n<\/script>\n<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-19","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/yuu-room.com\/index.php?rest_route=\/wp\/v2\/pages\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yuu-room.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yuu-room.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yuu-room.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuu-room.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":23,"href":"https:\/\/yuu-room.com\/index.php?rest_route=\/wp\/v2\/pages\/19\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/yuu-room.com\/index.php?rest_route=\/wp\/v2\/pages\/19\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/yuu-room.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}