:root{--red:#d50820;--navy:#08245c;--navy2:#0b326f;--text:#101a33;--muted:#617087;--line:#dce3ed;--bg:#f6f8fb}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--text);font-family:'DM Sans','Noto Sans JP',Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}.wrap{width:min(1430px,100%);margin:auto;padding:0 38px}
.site-header{background:#fff;position:relative;z-index:5}.header-inner{min-height:98px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.brand{min-width:0;display:flex;align-items:center}.brand img{display:block;width:auto;height:auto;max-width:min(510px,43vw);max-height:78px;object-fit:contain;object-position:left center}
.header-actions{display:flex;align-items:center;gap:16px}.lang{display:inline-flex;background:#edf2f8;border-radius:15px;padding:3px;gap:2px}.lang button{background:transparent;border:0;color:var(--navy);font-weight:800;padding:13px 18px;border-radius:12px}.lang button.active{background:var(--navy);color:#fff}.header-divider{height:32px;width:1px;background:#c2ccda;margin:0 10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 22px;background:var(--navy);color:white;border:1.5px solid var(--navy);border-radius:11px;font-weight:800;white-space:nowrap;transition:background .15s}.btn:hover{background:#164585}.btn-red{background:var(--red);border-color:var(--red)}.btn-red:hover{background:#af0519;border-color:#af0519}.btn-outline{background:white;color:var(--navy)}.btn-outline:hover{background:#f4f7fc}
.hero{min-height:390px;display:flex;align-items:center;background-color:#cbe4f9;background-image:linear-gradient(90deg,rgba(234,246,255,.06),rgba(234,246,255,.22) 57%,rgba(234,246,255,.42)),url('images/hero-background.png');background-repeat:no-repeat;background-position:center 60%;background-size:100% auto}
.hero-inner{width:100%;padding-top:55px;padding-bottom:55px;padding-left:clamp(80px, 12vw, 185px)}.hero h1{font-size:clamp(37px,4vw,62px);letter-spacing:-2.2px;line-height:1.07;font-weight:800;color:#071f51;max-width:690px;margin:0 0 25px;text-shadow:0 1px 6px rgba(255,255,255,.15)}.hero .btn{padding:17px 30px;font-size:20px;border-radius:12px;box-shadow:0 6px 14px #08245c1c}
.content{padding-top:38px;padding-bottom:48px}.cards{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:24px;align-items:start;max-width:1080px;margin:0 auto}
.panel{border:1.5px solid var(--line);border-radius:18px;padding:23px 24px 21px;min-width:0;background:white;box-shadow:0 3px 10px #12214204}
.panel#calculator{padding:20px 20px 18px}.panel#calculator .panel-head{margin-bottom:12px}.panel#calculator .calc-group{margin-top:10px}.panel#calculator .calc-label{margin-bottom:8px}.panel#calculator .input-line{grid-template-columns:minmax(0,1fr) 115px;gap:8px}.panel#calculator .input-line input,.panel#calculator .input-line select{height:44px;padding:9px 12px}.panel#calculator .input-line input{font-size:19px}.panel#calculator .input-line select{font-size:14px}.panel#calculator .swap-row{height:36px}.panel#calculator .swap{width:34px;height:34px}.panel#calculator .rate-caption{margin-top:13px!important}
.panel-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}.panel-icon{width:32px;height:32px;flex:0 0 32px;color:var(--navy)}.panel h2{font-size:clamp(20px,1.8vw,25px);line-height:1.2;margin:0 0 8px;color:#081d47;letter-spacing:-.5px}.panel p{font-size:15px;color:var(--muted);margin:0;line-height:1.55}
.calc-group{margin-top:15px}.calc-label{font-size:15px;font-weight:800;margin-bottom:12px}.input-line{display:grid;grid-template-columns:minmax(0,1fr) 135px;gap:10px;align-items:stretch}
.input-line input,.input-line select{border:1.5px solid #c6d0df;background:white;border-radius:11px;padding:13px 15px;min-width:0;height:49px;color:#0c1c42;outline:none}.input-line input{font-weight:700;font-size:21px}.input-line input:focus,.input-line select:focus,.search:focus{border-color:#305a9a;box-shadow:0 0 0 3px #b5cdec55}.input-line select{font-weight:700;font-size:16px;cursor:pointer}.input-line .readonly{background:#e7f0fc;font-weight:800}.swap-row{height:42px;display:flex;align-items:center;justify-content:center;position:relative}.swap-row:before{position:absolute;content:'';height:1px;background:#d8e0ec;left:0;right:0}.swap{position:relative;z-index:1;background:#eef4fd;border:1px solid #d5e1f0;color:var(--navy);width:39px;height:39px;border-radius:50%;font-size:22px;font-weight:800;line-height:1}.rate-caption{font-size:12px!important;color:var(--muted)!important;margin-top:19px!important}
.rates-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.rates-top .panel-head{margin:0}.search{border:1.5px solid #c6d0df;border-radius:10px;height:43px;padding:9px 12px;width:185px;min-width:145px;outline:none}
.rates-scroll{overflow-x:auto}.rates-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.rates-table th{background:#eaf0f6;color:#0b204a;font-size:12px;padding:11px 12px}.rates-table th:first-child{border-radius:9px 0 0 0}.rates-table th:last-child{border-radius:0 9px 0 0}.rates-table td{padding:10px 12px;font-size:14px;border-bottom:1px solid #e0e5ee}.rates-table td.num,.rates-table th.num{text-align:right;font-variant-numeric:tabular-nums}.rates-table td.num{font-weight:700}.flag{font-size:23px;vertical-align:middle;margin-right:10px}.currency-name{font-size:13px;color:#5f6d82;margin-left:7px}.empty{padding:15px;color:var(--muted);display:none}.rates-info{margin-top:17px!important;font-size:12px!important}
.site-footer{border-top:1px solid #e2e8ef;padding:22px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-inner img{width:auto;height:auto;max-height:42px;max-width:270px;object-fit:contain}.footer-inner small{color:var(--muted)}tr[hidden]{display:none}
@media(max-width:1100px){.wrap{padding:0 24px}.brand img{max-width:340px}.header-actions{gap:9px}.lang button{padding:10px}.btn{padding:11px 13px}.cards{grid-template-columns:minmax(0, 40%) minmax(0, 1fr)}.input-line{grid-template-columns:1fr 125px}.panel{padding:23px}.currency-name{display:none}.search{width:170px}}
@media(max-width:780px){.header-inner{min-height:80px;flex-wrap:wrap;padding-top:12px;padding-bottom:13px;gap:13px}.brand img{max-width:min(410px,85vw);max-height:66px}.header-actions{width:100%;justify-content:flex-start;gap:8px}.header-actions .btn:first-of-type{margin-left:auto}.header-divider{display:none}.header-actions .btn{font-size:12px;padding:10px}.lang button{padding:9px 11px;font-size:12px}.hero{min-height:330px;background-size:auto 100%;background-position:44% center}.hero-inner{padding-top:42px;padding-bottom:42px;padding-left:24px}.hero h1{font-size:clamp(32px,7.5vw,52px);max-width:550px}.hero .btn{font-size:16px;padding:14px 22px}.cards{grid-template-columns:1fr}.panel{padding:23px}.panel#calculator{width:100%;max-width:440px;margin:0 auto}.rates-top{flex-wrap:wrap}.search{width:100%}.content{padding-top:25px}.footer-inner{flex-wrap:wrap}}
@media(max-width:440px){.wrap{padding:0 16px}.header-actions{flex-wrap:wrap;justify-content:center;gap:8px}.header-actions .lang{width:100%;justify-content:center}.header-actions .btn{flex:1 1 0;min-width:0}.header-actions .btn:first-of-type{margin-left:0}.input-line{grid-template-columns:minmax(0,1fr) 115px}.input-line input{font-size:19px}.input-line select{font-size:13px;padding:7px}.hero{background-position:42% center;background-image:linear-gradient(90deg,rgba(233,246,255,.64),rgba(233,246,255,.53)),url('images/hero-background.png')}.hero-inner{padding-left:16px}.hero h1{max-width:310px;font-size:36px}.rates-table th,.rates-table td{padding:12px 9px;font-size:13px}}

/* Flag images and swap controls: rendered consistently on desktop and mobile. */
.flag-image{display:inline-block;width:25px;height:18px;object-fit:cover;border-radius:2px;vertical-align:middle;margin-right:10px;box-shadow:0 0 0 1px #00000016}
.currency-slot{display:flex;align-items:stretch;min-width:0}
.currency-picker,.currency-fixed{width:100%;min-width:0;display:flex;align-items:center;gap:6px;background:#fff;border:1.5px solid #c6d0df;border-radius:11px;padding:0 8px;font-weight:800;font-size:14px;color:#0c1c42}
.currency-picker select{flex:1;min-width:0;width:100%;height:40px;border:0!important;outline:0;box-shadow:none!important;padding:0!important;background:transparent;font-weight:800;cursor:pointer}
.currency-flag{display:block;width:24px;height:17px;object-fit:cover;flex-shrink:0;border-radius:2px;box-shadow:0 0 0 1px #00000016}
.currency-fixed{justify-content:center}
.currency-picker:focus-within{border-color:#305a9a;box-shadow:0 0 0 3px #b5cdec55}
.swap:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:440px){.currency-picker,.currency-fixed{padding:0 5px;gap:4px;font-size:12px}.currency-flag{width:21px;height:15px}.flag-image{width:23px;height:17px}}
