/* Scoped to the replacement header and footer; article styles and Additional CSS stay intact. */
.ttg-header-footer { --ttg-blue:#2b54a0; --ttg-red:#ff4346; color:#1b1f28; font-family:Roboto,"Noto Sans JP",sans-serif; font-size:14px; line-height:1.5; text-align:left; }
.ttg-header-footer *, .ttg-header-footer *::before, .ttg-header-footer *::after { box-sizing:border-box; }
.ttg-header-footer ul { list-style:none; margin:0; padding:0; }
.ttg-header-footer li, .ttg-header-footer p, .ttg-header-footer h2 { margin:0; padding:0; }
.ttg-header-footer a { color:inherit; text-decoration:none; }
.ttg-header-footer button { appearance:none; border:0; background:none; border-radius:0; color:inherit; font:inherit; padding:0; cursor:pointer; text-align:left; }
.ttg-header-footer img { display:block; max-width:100%; height:auto; border:0; }
.ttg-header-footer [hidden] { display:none !important; }
.ttg-header-footer :focus-visible { outline:2px solid var(--ttg-blue); outline-offset:4px; }
.ttg-header-footer a:hover, .ttg-header-footer button:hover { color:var(--ttg-blue); }
/* Keep SWELL's template lifecycle, replacing only the native visual footer. */
#footer.l-footer { display:none; }
#ttg-header { position:fixed; inset:0 0 auto; z-index:10000; background:#fff; }
.ttg-header-inner { position:relative; z-index:2; display:flex; align-items:center; gap:12px; max-width:1280px; height:60px; margin:auto; padding:0 20px; background:white; }
body #body_wrap { padding-top:60px; }
.ttg-logo { min-width:72px; flex:1 1 0; }
.ttg-logo img { width:130px; }
.ttg-nav { display:none; }
.ttg-actions { display:flex; align-items:center; gap:4px; margin-left:auto; flex-shrink:0; }
.ttg-header-footer .ttg-button { display:flex; justify-content:center; align-items:center; width:72px; height:32px; padding:0 3px; border:1px solid transparent; border-radius:4px; color:white; background:var(--ttg-blue); font-size:12px; font-weight:700; line-height:1; white-space:nowrap; text-align:center; transition:color .3s,background .3s,border-color .3s; }
.ttg-header-footer .ttg-button:hover { color:var(--ttg-blue); border-color:var(--ttg-blue); background:white; }
.ttg-header-footer .ttg-signup { background:var(--ttg-red); }
.ttg-header-footer .ttg-signup:hover { color:var(--ttg-red); border-color:var(--ttg-red); }
.ttg-header-footer .ttg-menu-toggle { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:4px; background:#eef2f7; }
.ttg-menu-toggle span, .ttg-menu-toggle span::before, .ttg-menu-toggle span::after { display:block; width:20px; height:2px; background:var(--ttg-blue); transition:transform .3s; }
.ttg-menu-toggle span { position:relative; }
.ttg-menu-toggle span::before, .ttg-menu-toggle span::after { position:absolute; content:""; top:-6px; }
.ttg-menu-toggle span::after { top:6px; }
.ttg-menu-toggle[aria-expanded=true] span { background:transparent; }
.ttg-menu-toggle[aria-expanded=true] span::before { transform:translateY(6px) rotate(45deg); }
.ttg-menu-toggle[aria-expanded=true] span::after { transform:translateY(-6px) rotate(-45deg); }
#ttg-mobile-nav { position:fixed; top:60px; bottom:0; left:0; right:0; overflow-y:auto; overscroll-behavior:contain; padding:0 20px 32px; background:white; }
.ttg-header-footer .ttg-group-toggle, .ttg-header-footer .ttg-direct { display:flex; width:100%; align-items:center; justify-content:space-between; gap:8px; padding:20px 0; font-weight:600; }
#ttg-mobile-nav > .ttg-group, #ttg-mobile-nav > .ttg-direct { border-bottom:1px solid #cbd5e1; }
.ttg-expand { width:20px; height:20px; border-radius:4px; background:var(--ttg-blue); position:relative; flex-shrink:0; }
.ttg-expand::before, .ttg-expand::after { content:""; position:absolute; background:white; width:10px; height:2px; left:5px; top:9px; }
.ttg-expand::after { transform:rotate(90deg); }
[aria-expanded=true] .ttg-expand::after { transform:none; }
.ttg-submenu { display:none; }
.ttg-group-toggle[aria-expanded=true] + .ttg-submenu { display:block; }
.ttg-header-footer .ttg-submenu a { display:block; padding:12px 8px; font-size:15px; font-weight:500; }
#ttg-mobile-nav .ttg-group-toggle, #ttg-mobile-nav > .ttg-direct { min-height:56px; padding:12px 0; font-size:16px; font-weight:700; }
#ttg-mobile-nav .ttg-group-toggle[aria-expanded=true] { color:var(--ttg-blue); }
#ttg-mobile-nav .ttg-expand { margin-right:12px; }
#ttg-mobile-nav .ttg-submenu { padding-bottom:8px; }
#ttg-mobile-nav .ttg-submenu a { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 0 6px 16px; font-size:14px; font-weight:400; }
#ttg-mobile-nav > .ttg-direct::after, #ttg-mobile-nav .ttg-submenu a::after { content:""; display:block; flex:0 0 44px; width:44px; height:32px; background:url('../brand/icon_arrow_blue.svg') center / 12px 8px no-repeat; }
.ttg-mobile-languages { padding-top:24px; }
.ttg-mobile-languages p { display:flex; align-items:center; gap:8px; margin-bottom:12px; font-size:14px; font-weight:700; }
.ttg-mobile-languages p img { width:18px; height:18px; }
.ttg-language-options { display:flex; gap:8px; }
.ttg-language-options a { display:inline-flex; align-items:center; padding:6px 10px; border:1px solid #d8e0eb; border-radius:4px; font-size:14px; }
.ttg-language-options a[aria-current=true] { background:var(--ttg-blue); border-color:var(--ttg-blue); color:white; font-weight:500; }
.ttg-overlay { position:fixed; inset:88px 0 0; background:rgb(27 31 40 / 55%) !important; width:100%; z-index:0; }
.ttg-container { max-width:1280px; margin:auto; padding:40px 20px; }
#ttg-footer { clear:both; background:white; }
.ttg-footer-brand { display:flex; align-items:center; flex-direction:column; }
.ttg-header-footer .ttg-footer-logo { width:183px; }
.ttg-socials { display:flex; gap:8px; margin-top:24px; }
.ttg-socials img { width:48px; height:48px; }
.ttg-linkedin { display:block; position:relative; }
.ttg-linkedin img + img { position:absolute; width:20px; height:20px; left:14px; top:14px; }
.ttg-footer-nav { margin-top:32px; border-top:1px solid #cbd5e1; }
.ttg-footer-group-link { display:none; }
.ttg-footer-nav .ttg-group, .ttg-footer-nav .ttg-direct { border-bottom:1px solid #cbd5e1; }
.ttg-footer-nav .ttg-group-toggle, .ttg-footer-nav .ttg-direct { padding:16px 0; }
.ttg-footer-nav .ttg-submenu { padding:12px 0 12px 8px; }
.ttg-footer-nav .ttg-submenu a { font-size:13px; font-weight:400; color:#5e6b7a; }
.ttg-legal { background:#ecf1f6; color:#72727a; font-size:12px; line-height:1.625; letter-spacing:.025em; }
.ttg-legal h2 { font-size:12px; font-weight:700; color:#1b1b1f; border:0; background:none; }
.ttg-legal h2::before, .ttg-legal h2::after { content:none; }
.ttg-legal section { margin-top:20px; }
.ttg-legal section p { margin-top:8px; white-space:pre-line; }
.ttg-header-footer .ttg-policy-links { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:12px; }
.ttg-policy-links a { color:#1b1b1f; border-bottom:1px solid currentColor; font-weight:500; }
.ttg-legal hr { border:0; border-top:1px solid #d8e0eb; margin:24px 0; }
.ttg-copyright { padding:16px 20px; background:var(--ttg-blue); color:white; text-align:center; font-size:12px; line-height:1.25; }
body.ttg-menu-open { overflow:hidden; }
@media(min-width:360px) { .ttg-header-footer .ttg-button { width:84px; } }
@media(min-width:480px) {
 .ttg-header-inner { height:72px; } body #body_wrap { padding-top:72px; }
 .ttg-logo { flex:0 0 auto; } .ttg-logo img { height:20px; width:auto; max-width:none; }
 .ttg-actions { gap:6px; } .ttg-header-footer .ttg-button { width:92px; height:36px; }
 .ttg-header-footer .ttg-menu-toggle { width:48px; height:48px; } #ttg-mobile-nav { top:72px; }
}
@media(min-width:1024px) {
 .ttg-header-inner { padding:0 40px; } #ttg-mobile-nav { padding-left:40px; padding-right:40px; }
 .ttg-container { padding-left:40px; padding-right:40px; }
 .ttg-footer-main { display:flex; gap:40px; padding-top:56px; padding-bottom:56px; }
 .ttg-footer-brand { align-items:flex-start; width:220px; flex-shrink:0; }
 .ttg-footer-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); flex:1; gap:24px; border:0; margin:0; }
 .ttg-footer-nav .ttg-group, .ttg-footer-nav .ttg-direct { border:0; }
 .ttg-footer-nav .ttg-group-toggle, .ttg-footer-nav .ttg-direct { padding:0; font-size:14px; cursor:default; }
 .ttg-footer-nav a.ttg-direct { cursor:pointer; }
 .ttg-footer-nav .ttg-footer-group-link { display:block; font-size:14px; font-weight:700; }
 .ttg-footer-nav .ttg-group:has(.ttg-footer-group-link) > .ttg-group-toggle { display:none; }
 .ttg-footer-nav .ttg-expand { display:none; }
 .ttg-footer-nav .ttg-submenu { display:block; padding:0; margin-top:16px; }
 .ttg-footer-nav .ttg-submenu li + li { margin-top:16px; }
 .ttg-footer-nav .ttg-submenu a { padding:0; line-height:1.375; }
 .ttg-footer-nav .ttg-group + .ttg-group { margin-top:32px; }
 .ttg-footer-nav .ttg-direct + .ttg-group { margin-top:32px; }
 .ttg-footer-nav .ttg-group + .ttg-direct { margin-top:24px; }
 .ttg-footer-nav a:hover { color:var(--ttg-blue); text-decoration:underline; }
}
@media(max-width:1023px) {
 .ttg-footer-nav { display:flex; flex-direction:column; }
 .ttg-footer-column { display:contents; }
 .ttg-footer-nav .ttg-direct { order:0; }
 .ttg-footer-nav .ttg-group-trading { order:1; }
 .ttg-footer-nav .ttg-group-markets { order:2; }
 .ttg-footer-nav .ttg-group-promotion { order:3; }
 .ttg-footer-nav .ttg-group-resources { order:4; }
 .ttg-footer-nav .ttg-footer-column:nth-child(4) > .ttg-direct { order:5; }
 .ttg-footer-nav .ttg-group-company { order:6; }
}
@media(min-width:1280px) {
 .ttg-header-inner { height:88px; padding:0 24px; gap:24px; } body #body_wrap { padding-top:88px; }
 .ttg-logo img { height:24px; }
 .ttg-nav { display:flex; align-self:stretch; align-items:stretch; gap:16px; flex:1; }
 .ttg-nav > .ttg-group { position:relative; display:flex; }
 .ttg-nav > .ttg-direct { width:auto; flex:0 0 auto; }
 .ttg-nav .ttg-group-toggle, .ttg-nav .ttg-direct { padding:0; white-space:nowrap; font-size:14px; letter-spacing:.04em; }
 .ttg-nav .ttg-expand { display:none; }
 .ttg-nav .ttg-submenu { position:absolute; top:100%; left:0; min-width:260px; width:max-content; max-width:calc(100vw - 48px); margin-top:12px; background:white; border:1px solid #d8e0eb; border-radius:4px; box-shadow:0 8px 24px rgb(27 31 40 / 8%); }
 .ttg-nav .ttg-group::after { content:""; position:absolute; height:12px; top:100%; width:100%; }
 .ttg-nav .ttg-submenu li + li { border-top:1px solid #d8e0eb; }
 .ttg-nav .ttg-submenu a { padding:10px 16px; min-height:44px; }
 .ttg-nav .ttg-submenu a:hover { background:#eef2f7; }
 .ttg-nav .ttg-group-toggle[aria-expanded=true] { color:var(--ttg-blue); box-shadow:inset 0 -4px var(--ttg-blue); }
 .ttg-nav .ttg-language { margin-left:auto; }
 #ttg-header .ttg-language .ttg-group-toggle { display:inline-flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:flex-start; width:auto; font-size:12px; font-weight:500; gap:4px; white-space:nowrap; }
 #ttg-header .ttg-language .ttg-group-toggle > img { flex-shrink:0; }
 #ttg-header .ttg-language .ttg-language-chevron { width:8px; height:6px; }
 .ttg-nav .ttg-language .ttg-submenu { left:auto; right:0; min-width:108px; }
 .ttg-actions { gap:8px; } .ttg-header-footer .ttg-actions .ttg-button { width:100px; height:56px; padding-inline:4px; flex-shrink:0; font-size:14px; white-space:nowrap; text-align:center; }
 .ttg-header-footer .ttg-menu-toggle, #ttg-mobile-nav { display:none !important; }
 .ttg-container { padding-left:24px; padding-right:24px; }
 .ttg-footer-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { .ttg-header-footer *, .ttg-header-footer *::before, .ttg-header-footer *::after { transition:none !important; } }
