:root {
    --tmj-color-primary: #0857aa;
    --tmj-color-primary-dark: #043d7a;
    --tmj-color-accent: #0a6ec8;
    --tmj-color-accent-light: #4d9de6;
    --tmj-color-secondary: #f29a44;
    --tmj-color-secondary-dark: #d4832c;
    --tmj-color-white: #ffffff;
    --tmj-color-text: #111111;
    --tmj-color-text-secondary: #4a5568;
    --tmj-color-text-muted: #9ba4b4;
    --tmj-color-border: #e2e6ec;
    --tmj-color-bg-dark: #051d3a;
    --tmj-color-bg-darker: #031226;
    --tmj-font-display: "Outfit", "Roboto", sans-serif;
    --tmj-font-body: "Roboto", "Noto Sans JP", sans-serif;
    --tmj-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --tmj-transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --tmj-container-max: 1200px;
    --tmj-container-px: 40px;
    --tmj-header-height: 80px;
    --tmj-header-height-sp: 64px;
}

.tmj_header,
.tmj_header *,
.tmj_mobile_menu,
.tmj_mobile_menu *,
.tmj_footer,
.tmj_footer *,
.btn_main,
.btn_main * {
    box-sizing: border-box;
}

.tmj_container {
    max-width: var(--tmj-container-max);
    margin: 0 auto;
    padding: 0 var(--tmj-container-px);
}

.tmj_header > .tmj_container {
    max-width: none;
    padding: 0 32px 0 28px;
}

.tmj_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    transition: background var(--tmj-transition), box-shadow var(--tmj-transition);
}

.tmj_header_spacer {
    height: var(--tmj-header-height);
}

.tmj_header--transparent {
    background: transparent;
}

.tmj_header--solid,
.tmj_header.is-menu-open {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--tmj-color-border);
}

.tmj_header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--tmj-header-height);
}

.tmj_header_logo {
    display: block;
    position: relative;
    width: 214px;
    height: 50px;
    flex-shrink: 0;
}

.tmj_header_logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 50px;
    transition: opacity var(--tmj-transition);
}

.tmj_header_logo-white {
    opacity: 1;
}

.tmj_header_logo-color {
    opacity: 0;
}

.tmj_header--solid .tmj_header_logo-white,
.tmj_header.is-menu-open .tmj_header_logo-white {
    opacity: 0;
}

.tmj_header--solid .tmj_header_logo-color,
.tmj_header.is-menu-open .tmj_header_logo-color {
    opacity: 1;
}

.tmj_header_nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.tmj_header_nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--tmj-font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--tmj-transition);
}

.tmj_header--solid .tmj_header_nav-link,
.tmj_header.is-menu-open .tmj_header_nav-link {
    color: var(--tmj-color-text-secondary);
}

.tmj_header_nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--tmj-color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--tmj-transition);
}

.tmj_header_nav-link:hover::after {
    transform: scaleX(1);
}

.tmj_header_nav-link:hover {
    color: var(--tmj-color-white);
}

.tmj_header--solid .tmj_header_nav-link:hover,
.tmj_header.is-menu-open .tmj_header_nav-link:hover {
    color: var(--tmj-color-accent);
}

.tmj_header_dropdown {
    position: relative;
}

.tmj_header_dropdown > .tmj_header_nav-link::after {
    display: none;
}

.tmj_header_chevron {
    width: 16px;
    height: 16px;
    transition: transform var(--tmj-transition);
}

.tmj_header_chevron svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.tmj_header_dropdown:hover .tmj_header_chevron {
    transform: rotate(180deg);
}

.tmj_header_dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 220px;
    padding-top: 12px;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tmj-transition), visibility var(--tmj-transition);
}

.tmj_header_dropdown:hover .tmj_header_dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.tmj_header_dropdown-list {
    background: var(--tmj-color-white);
    border: 1px solid var(--tmj-color-border);
    border-radius: 12px;
    box-shadow: var(--tmj-shadow-lg);
    padding: 8px 0;
}

.tmj_header_dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--tmj-color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--tmj-transition), color var(--tmj-transition);
}

.tmj_header_dropdown-link:hover {
    background: rgba(8, 87, 170, 0.05);
    color: var(--tmj-color-primary);
}

.tmj_header_lang {
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.tmj_header--solid .tmj_header_lang,
.tmj_header.is-menu-open .tmj_header_lang {
    border-left-color: var(--tmj-color-border);
}

.tmj_header_lang .bogo-language-switcher,
.tmj_mobile_menu-lang .bogo-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmj_header_lang .bogo-language-switcher li,
.tmj_mobile_menu-lang .bogo-language-switcher li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmj_header_lang .bogo-language-switcher li + li::before,
.tmj_mobile_menu-lang .bogo-language-switcher li + li::before {
    content: "|";
    margin-right: 8px;
}

.tmj_header_lang .bogo-language-switcher a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--tmj-transition);
}

.tmj_header--solid .tmj_header_lang .bogo-language-switcher a,
.tmj_header.is-menu-open .tmj_header_lang .bogo-language-switcher a {
    color: var(--tmj-color-text-muted);
}

.tmj_header_lang .bogo-language-switcher a.current {
    color: var(--tmj-color-white);
    font-weight: 500;
}

.tmj_header--solid .tmj_header_lang .bogo-language-switcher a.current,
.tmj_header.is-menu-open .tmj_header_lang .bogo-language-switcher a.current {
    color: var(--tmj-color-primary);
}

.tmj_header_hamburger {
    display: none;
    width: 28px;
    padding: 4px 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.tmj_header_hamburger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 1px;
    background: var(--tmj-color-white);
    transition: transform var(--tmj-transition), opacity var(--tmj-transition), background var(--tmj-transition);
}

.tmj_header--solid .tmj_header_hamburger span,
.tmj_header.is-menu-open .tmj_header_hamburger span {
    background: var(--tmj-color-text);
}

.tmj_header_hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tmj_header_hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.tmj_header_hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.tmj_mobile_menu {
    display: none;
    position: fixed;
    top: var(--tmj-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 499;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(3, 18, 38, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--tmj-transition), visibility var(--tmj-transition);
}

.tmj_mobile_menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tmj_mobile_menu-inner {
    padding-top: 32px;
    padding-bottom: 64px;
}

.tmj_mobile_menu-nav {
    display: grid;
    gap: 24px;
}

.tmj_mobile_menu-home,
.tmj_mobile_menu-parent {
    display: block;
    color: var(--tmj-color-white);
    font-family: var(--tmj-font-display);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.tmj_mobile_menu-home:hover,
.tmj_mobile_menu-parent:hover {
    color: var(--tmj-color-accent-light);
}

.tmj_mobile_menu-group {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tmj_mobile_menu-subnav {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-left: 16px;
}

.tmj_mobile_menu-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    text-decoration: none;
}

.tmj_mobile_menu-link:hover {
    color: var(--tmj-color-accent-light);
}

.tmj_mobile_menu-utility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tmj_mobile_menu-utility-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--tmj-color-white);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.tmj_mobile_menu-contact {
    width: 100%;
    margin-top: 12px;
}

.tmj_mobile_menu-lang {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tmj_mobile_menu-lang .bogo-language-switcher a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    text-decoration: none;
}

.tmj_mobile_menu-lang .bogo-language-switcher a.current {
    color: var(--tmj-color-white);
    font-weight: 500;
}

body.tmj_menu-open {
    overflow: hidden;
}

.btn_main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    color: var(--tmj-color-white);
    font-family: var(--tmj-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.025em;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--tmj-transition);
}

.btn_main--secondary {
    background: var(--tmj-color-secondary);
    border-color: var(--tmj-color-secondary);
}

.btn_main--secondary:hover {
    background: var(--tmj-color-secondary-dark);
    border-color: var(--tmj-color-secondary-dark);
}

.btn_main--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--tmj-color-white);
}

.btn_main--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn_main--lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn_main_icon {
    display: inline-flex;
    transition: transform var(--tmj-transition);
}

.btn_main:hover .btn_main_icon--arrow {
    transform: translateX(3px);
}

.tmj_footer {
    background: #000;
    color: rgba(255, 255, 255, 0.82);
    padding: 80px 0 40px;
}

.tmj_footer a {
    text-decoration: none;
}

.tmj_footer_grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    padding-bottom: 40px;
}

.tmj_footer_brand-logo {
    margin-bottom: 20px;
}

.tmj_footer_brand-logo img {
    width: auto;
    height: 40px;
}

.tmj_footer_brand-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.8;
}

.tmj_footer_brand-name {
    display: block;
    margin-bottom: 4px;
    color: var(--tmj-color-white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.tmj_footer_nav {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
}

.tmj_footer_nav-title {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--tmj-color-white);
    font-family: var(--tmj-font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.tmj_footer_nav-title:hover {
    color: var(--tmj-color-accent-light);
}

.tmj_footer_nav-col--translation .tmj_footer_nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}

.tmj_footer_nav-item {
    margin-bottom: 6px;
}

.tmj_footer_nav-item a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
}

.tmj_footer_nav-item a:hover {
    color: var(--tmj-color-accent-light);
}

.tmj_footer_subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tmj_footer_subnav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.tmj_footer_subnav a:hover {
    color: var(--tmj-color-accent-light);
}

.tmj_footer_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.tmj_footer_bottom-links {
    display: flex;
    gap: 24px;
}

.tmj_footer_bottom-links a {
    color: rgba(255, 255, 255, 0.6);
}

.tmj_footer_bottom-links a:hover {
    color: var(--tmj-color-accent-light);
}

@media (max-width: 1024px) {
    .tmj_header_nav {
        gap: 16px;
    }

    .tmj_footer_grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tmj_footer_nav {
        grid-template-columns: 1.6fr 1fr 1.2fr;
    }
}

@media (max-width: 768px) {
    .tmj_container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .tmj_header > .tmj_container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .tmj_header_inner {
        height: var(--tmj-header-height-sp);
    }

    .tmj_header_logo {
        width: 193px;
        height: 45px;
    }

    .tmj_header_logo img {
        height: 45px;
    }

    .tmj_header_spacer {
        height: var(--tmj-header-height-sp);
    }

    .tmj_header_nav {
        display: none;
    }

    .tmj_header_hamburger {
        display: block;
    }

    .tmj_mobile_menu {
        display: block;
        top: var(--tmj-header-height-sp);
    }

    .tmj_footer_nav {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .tmj_footer_nav-col--translation {
        grid-column: 1 / -1;
    }

    .tmj_footer_nav-col--translation .tmj_footer_nav-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
    }

    .tmj_footer_subnav {
        flex-direction: column;
        gap: 10px;
    }

    .tmj_footer_bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }
}
