/* assets/css/header.css */

:root {
    --base-color: #ffffff;
    --surface-color: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text-color: #0b1f2a;
    --muted-color: rgba(11, 31, 42, 0.68);
    --border-color: rgba(11, 31, 42, 0.12);

    --main-color: #0b6f86;
    --sub-color: #0a5670;

    --accent-solor: #ffd400;
    --accent-color: var(--accent-solor);

    --container: 1120px;
    --header-h: 3rem;

    --radius-pill: 999px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;

    --shadow-lg: 0 22px 70px rgba(11, 31, 42, 0.14);
    --shadow-md: 0 14px 38px rgba(11, 31, 42, 0.12);

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.tm-visuallyHidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tm-skiplink {
    position: absolute;
    left: 12px;
    top: -48px;
    padding: 10px 14px;
    background: var(--surface-strong);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
    z-index: 300;
    font-family: var(--font-sans);
}

.tm-skiplink:focus {
    top: 12px;
    outline: none;
    box-shadow: var(--shadow-md);
}

.tm-container {
    margin: 0 auto;
}

.tm-header {
    position: sticky;
    top: 0;
    z-index: 220;
    padding: 14px 0;
    background: transparent;
    font-family: var(--font-sans);
}

.tm-header__pill {
    width: min(var(--container), calc(100% - 24px));
    margin: 0 auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: var(--surface-color);
    border: 1px solid rgba(11, 31, 42, 0.10);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 14px;
}

.tm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.tm-brand__logo {
    margin-left: 2rem;
    width: 8rem;
    height: auto;
    display: block;
}

.tm-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
}

.tm-nav__item {
    margin: 0;
    padding: 0;
}

.tm-nav__link,
.tm-nav__list a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tm-nav__link:hover,
.tm-nav__list a:hover {
    background: rgba(11, 31, 42, 0.06);
    transform: translateY(-1px);
}

.tm-header__right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tm-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tm-social__link {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 31, 42, 0.06);
    border: 1px solid rgba(11, 31, 42, 0.08);
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
}

.tm-social__link svg {
    fill: var(--text-color);
}

.tm-social__link:hover {
    transform: translateY(-1px);
    background: rgba(11, 31, 42, 0.08);
}


.tm-lang__btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--muted-color);
    font-weight: 900;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tm-lang__btn.is-active {
    background: rgba(11, 31, 42, 0.10);
    color: var(--text-color);
}

.tm-ctaBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    background: var(--accent-solor);
    color: #07202b;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(255, 212, 0, 0.25);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.tm-ctaBtn:hover {
    transform: translateY(-2px);
    filter: brightness(0.98);
}

.tm-ctaBtn__arrow {
    transform: translateY(1px);
}

.tm-navToggle {
    display: none;
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 14px;
    border: transparent;
}

.tm-navToggle__lines {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
    margin: 0 auto;
}

.tm-navToggle__lines::before,
.tm-navToggle__lines::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--text-color);
}

.tm-navToggle__lines::before {
    top: 0;
}

.tm-navToggle__lines::after {
    bottom: 0;
}

/* Drawer */
.tm-drawer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 400;
    font-family: var(--font-sans);
}

.tm-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tm-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 24, 0.50);
}

.tm-drawer__panel {
    position: absolute;
    inset: 16px;
    background: var(--surface-strong);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tm-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 10px;
}

.tm-drawer__close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(11, 31, 42, 0.10);
    background: rgba(11, 31, 42, 0.06);
    font-size: 22px;
    cursor: pointer;
}

.tm-drawer__content {
    padding: 10px 18px 18px;
    flex: 1;
    display: flex;
}

.tm-drawer__grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: start;
}

.tm-drawer__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 6px;
}

.tm-drawer__link {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 900;
    letter-spacing: 0.02em;
    background: transparent;
    transition: transform 0.18s ease, background 0.18s ease;
}

.tm-drawer__link:hover {
    transform: translateY(-1px);
    background: rgba(11, 31, 42, 0.06);
}

.tm-drawer__aside {
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tm-ctaBtn--drawer {
    width: 100%;
    justify-content: space-between;
    border-radius: 18px;
}

.tm-lang--drawer {
    width: fit-content;
}

.tm-social--drawer {
    gap: 10px;
}

.tm-drawer__note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(11, 31, 42, 0.04);
    border: 1px solid rgba(11, 31, 42, 0.08);
    color: var(--text-color);
    line-height: 1.85;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .tm-nav {
        display: none;
    }

    .tm-navToggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tm-brand__logo {
        width: 6rem;
    }

    .tm-drawer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .tm-header {
        padding: 10px 0;
    }

    .tm-header__pill {
        padding: 10px 12px;
        gap: 10px;
    }

    .tm-ctaBtn {
        display: none;
    }

    .tm-lang {
        display: none;
    }

    .tm-social {
        display: none;
    }
}