/* =========================================================
   株式会社ネクスト  - Renewal
   ========================================================= */

:root {
    --bg: #eef3f4;
    --surface: #ffffff;
    --ink: #0f1f2a;
    --ink-2: #4c5f6b;
    --ink-3: #869aa4;
    --dark: #07202b;
    --dark-2: #0c2c3a;
    --line: rgba(15, 31, 42, .12);
    --line-light: rgba(255, 255, 255, .14);
    --brand: #0b7f9a;
    --c1: #1e6fe0;
    --c2: #0bb4d1;
    --c3: #14b8a6;
    --c4: #22c193;
    --grad: linear-gradient(115deg, var(--c1) 0%, var(--c2) 38%, var(--c3) 70%, var(--c4) 100%);
    --en: "Montserrat", "Noto Sans JP", sans-serif;
    --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.77, 0, .175, 1);
    --gutter: clamp(16px, 4vw, 56px);
    --radius: 14px;
    --header-h: 88px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ja);
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: .04em;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: var(--c2);
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sp-only {
    display: none;
}

@media (max-width: 767px) {
    .sp-only {
        display: inline;
    }

    .pc-only {
        display: none;
    }
}

/* ---------------------------------------------------------
   Loader
--------------------------------------------------------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: transform 1s var(--ease-io), visibility 0s 1s;
}

.loader.is-done {
    transform: translateX(100%);
    visibility: hidden;
}

.loader__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.loader .mark {
    width: 52px;
    height: 52px;
}

.loader .mark__bg {
    transform-origin: center;
    transform-box: fill-box;
    animation: markPop .7s var(--ease) both;
}

.loader .mark__n {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: markDraw 1s var(--ease-io) .35s forwards;
}

@keyframes markPop {
    from {
        transform: scale(0) rotate(-90deg);
    }

    to {
        transform: none;
    }
}

@keyframes markDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.loader__text {
    font-family: var(--en);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: .18em;
    color: var(--ink);
    overflow: hidden;
}

.loader__text span {
    display: inline-block;
    transform: translateY(110%);
    animation: charUp .8s var(--ease) forwards;
}

.loader__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--line);
    overflow: hidden;
}

.loader__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    transform-origin: left;
    animation: loadBar 1.4s var(--ease-io) forwards;
}

@keyframes loadBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes charUp {
    to {
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
   Logo mark
--------------------------------------------------------- */
.mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    overflow: visible;
}

.mark__n {
    transition: transform .6s var(--ease);
}

.logo:hover .mark__n {
    transform: translateX(2px);
}

.logo:hover .mark__bg {
    filter: brightness(1.08);
}

/* ---------------------------------------------------------
   Header (full-width bar)
--------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid transparent;
    transition: transform .6s var(--ease), background .5s, border-color .5s, height .4s var(--ease);
}

.header.is-scrolled {
    height: 68px;
    background: rgba(238, 243, 244, .82);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom-color: var(--line);
}

.header.is-hidden {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .logo {
    padding: 0 var(--gutter);
    margin-right: auto;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo__en {
    font-family: var(--en);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .16em;
}

.logo__ja {
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--ink-2);
}

.gnav {
    display: flex;
    align-items: center;
    padding-right: 36px;
}

.gnav ul {
    display: flex;
    align-items: center;
}

.gnav li + li {
    border-left: 1px solid var(--line);
}

.gnav a {
    position: relative;
    display: block;
    padding: 4px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    white-space: nowrap;
}

/* text rolls to English on hover */
.gnav__roll {
    position: relative;
    display: block;
    height: 1.6em;
    line-height: 1.6;
    overflow: hidden;
}

.gnav__roll span {
    display: block;
    text-align: center;
    transition: transform .55s var(--ease);
}

.gnav__roll span + span {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    font-family: var(--en);
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--brand);
}

.gnav a:hover .gnav__roll span {
    transform: translateY(-100%);
}

.gnav a.is-current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    background: var(--c2);
    transform: rotate(45deg);
}

.h-contact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 34px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
}

.h-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad);
    transform: translateY(101%);
    transition: transform .55s var(--ease);
}

.h-contact:hover::before {
    transform: none;
}

.h-contact svg {
    width: 20px;
    height: 20px;
}

/* menu button (tablet / phone) */
.menu-btn {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 0 var(--gutter) 0 22px;
    position: relative;
    z-index: 120;
}

.menu-btn__label {
    position: relative;
    display: block;
    height: 1.4em;
    overflow: hidden;
    font-family: var(--en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    line-height: 1.4;
}

.menu-btn__label span {
    display: block;
    transition: transform .5s var(--ease);
}

.is-menu-open .menu-btn__label span {
    transform: translateY(-100%);
}

.menu-btn__lines {
    position: relative;
    display: block;
    width: 28px;
    height: 12px;
}

.menu-btn__lines i {
    position: absolute;
    right: 0;
    height: 2px;
    background: var(--ink);
    transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease);
}

.menu-btn__lines i:nth-child(1) {
    top: 0;
    width: 28px;
}

.menu-btn__lines i:nth-child(2) {
    top: 10px;
    width: 18px;
}

.menu-btn:hover .menu-btn__lines i:nth-child(2) {
    width: 28px;
}

.is-menu-open .menu-btn__lines i {
    top: 5px;
    width: 28px;
}

.is-menu-open .menu-btn__lines i:nth-child(1) {
    transform: rotate(30deg);
}

.is-menu-open .menu-btn__lines i:nth-child(2) {
    transform: rotate(-30deg);
}

/* slide-in drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(7, 32, 43, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s, visibility 0s .6s;
}

.is-menu-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity .6s;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    width: min(460px, 100%);
    background: var(--surface);
    transform: translateX(100%);
    transition: transform .8s var(--ease-io);
    overflow-y: auto;
}

.drawer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--grad);
}

.is-menu-open .drawer {
    transform: none;
}

.drawer__panel {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 110px 36px 40px 40px;
}

.drawer__label {
    font-family: var(--en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--ink-3);
    margin-bottom: 16px;
}

.drawer li {
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.drawer a {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: baseline;
    padding: 18px 0;
    opacity: 0;
    transform: translateX(40px);
    transition: transform .7s var(--ease), opacity .7s, color .3s;
}

.drawer a:hover {
    color: var(--brand);
}

.is-menu-open .drawer a {
    opacity: 1;
    transform: none;
}

.is-menu-open .drawer li:nth-child(1) a { transition-delay: .3s; }
.is-menu-open .drawer li:nth-child(2) a { transition-delay: .36s; }
.is-menu-open .drawer li:nth-child(3) a { transition-delay: .42s; }
.is-menu-open .drawer li:nth-child(4) a { transition-delay: .48s; }
.is-menu-open .drawer li:nth-child(5) a { transition-delay: .54s; }
.is-menu-open .drawer li:nth-child(6) a { transition-delay: .6s; }

.drawer__num {
    font-family: var(--en);
    font-size: 11px;
    font-weight: 700;
    color: var(--c2);
}

.drawer__ja {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .08em;
}

.drawer__en {
    font-family: var(--en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--ink-3);
}

.drawer__info {
    margin-top: auto;
    padding-top: 40px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--ink-2);
}

.drawer__info a {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--en);
    font-weight: 700;
    color: var(--ink);
}

@media (max-width: 1100px) {
    .gnav a {
        padding: 4px 16px;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-h: 72px;
    }

    .gnav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }
}

@media (max-width: 600px) {
    .h-contact {
        padding: 0 18px;
    }

    .h-contact span {
        display: none;
    }
}

/* ---------------------------------------------------------
   Reveal / split animations
--------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-reveal="fade"] {
    transform: none;
}

.js [data-reveal="left"] {
    transform: translateX(-50px);
}

.js [data-reveal="scale"] {
    transform: scale(.94);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* clip mask reveal for images */
.js [data-mask] {
    clip-path: inset(100% 0 0 0 round var(--radius));
    transition: clip-path 1.4s var(--ease-io);
    transition-delay: var(--d, 0s);
}

.js [data-mask].is-in {
    clip-path: inset(0 0 0 0 round var(--radius));
}

/* split characters */
.split-char {
    display: inline-block;
    white-space: pre;
}

.js [data-split] .split-char {
    opacity: 0;
    transform: translateY(.6em) rotate(8deg);
    filter: blur(6px);
    transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
    transition-delay: calc(var(--i) * .035s + var(--d, 0s));
}

.js [data-split].is-in .split-char {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* line mask (words slide up) */
.line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
}

.line-mask > span {
    display: inline-block;
}

.js [data-lines] .line-mask > span {
    transform: translateY(110%);
    transition: transform 1.2s var(--ease);
    transition-delay: calc(var(--i) * .12s + var(--d, 0s));
}

.js [data-lines].is-in .line-mask > span {
    transform: none;
}

/* ---------------------------------------------------------
   Section heading
--------------------------------------------------------- */
.sec-head {
    margin-bottom: clamp(36px, 6vw, 72px);
}

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--en);
    font-weight: 600;
    font-size: clamp(13px, 1.3vw, 16px);
    letter-spacing: .22em;
    color: var(--brand);
    margin-bottom: 18px;
}

.sec-label::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--grad);
    flex-shrink: 0;
}

.dark .sec-label {
    color: #7ee0d6;
}

.sec-title {
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .06em;
}

.sec-lead {
    margin-top: 22px;
    max-width: 640px;
    color: var(--ink-2);
}

.dark .sec-lead {
    color: rgba(255, 255, 255, .7);
}

/* generic button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 12px 12px 12px 30px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .12em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color .5s var(--ease), border-color .5s;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .6s var(--ease);
}

.btn:hover {
    color: #fff;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn .arrow-circle {
    background: var(--ink);
    color: #fff;
    transition: background .5s;
}

.btn:hover .arrow-circle {
    background: var(--grad);
}

.btn--light {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.btn--light::before {
    background: #fff;
}

.btn--light:hover {
    color: var(--ink);
}

.btn--light .arrow-circle {
    background: #fff;
    color: var(--ink);
}

.btn--light:hover .arrow-circle {
    color: #fff;
}

/* ---------------------------------------------------------
   Hero (home) - split layout on a grid background
--------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-h) + clamp(20px, 4vw, 48px));
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(11, 180, 209, .16), transparent 70%),
        radial-gradient(ellipse 50% 50% at 10% 90%, rgba(30, 111, 224, .1), transparent 70%),
        var(--bg);
}

/* blueprint grid */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(15, 31, 42, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 31, 42, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
    mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.hero__word {
    position: absolute;
    z-index: -1;
    left: -.04em;
    bottom: -.2em;
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(140px, 30vw, 460px);
    line-height: 1;
    letter-spacing: -.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(15, 31, 42, .08);
    pointer-events: none;
    user-select: none;
    transform: translateX(-6%);
    opacity: 0;
    transition: transform 2s var(--ease), opacity 2s;
}

.is-loaded .hero__word {
    transform: none;
    opacity: 1;
}

.hero__grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--en);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--brand);
    overflow: hidden;
}

.hero__eyebrow::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-io) .2s;
}

.hero__eyebrow span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s var(--ease) .4s;
}

.is-loaded .hero__eyebrow::before,
.is-loaded .hero__eyebrow span {
    transform: none;
}

.hero__catch {
    margin: clamp(18px, 2.4vw, 30px) 0 clamp(20px, 2.6vw, 32px);
    font-size: clamp(34px, 4.8vw, 76px);
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    letter-spacing: .04em;
}

.hero__catch em {
    font-style: normal;
}

.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
}

.hero__line > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.3s var(--ease);
}

.hero__line:nth-child(2) > span {
    transition-delay: .12s;
}

.is-loaded .hero__line > span {
    transform: none;
}

.hero__desc {
    color: var(--ink-2);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease .7s, transform 1s var(--ease) .7s;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 32px;
    margin-top: clamp(26px, 3.4vw, 44px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease .85s, transform 1s var(--ease) .85s;
}

.is-loaded .hero__desc,
.is-loaded .hero__actions {
    opacity: 1;
    transform: none;
}

.text-link {
    position: relative;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .1em;
    padding-bottom: 4px;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform-origin: right;
    transition: transform .5s var(--ease);
}

.text-link:hover::after {
    transform: scaleX(0);
}

/* visual panel with slanted edge */
.hero__visual {
    position: relative;
    height: min(64vh, 620px);
    min-height: 340px;
}

.hero__slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: clip-path 1.6s var(--ease-io) .2s;
}

.is-loaded .hero__slides {
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__slides::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30, 111, 224, .18), rgba(20, 184, 166, .12) 60%, rgba(7, 32, 43, .25));
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__slide.is-active img {
    animation: kenburns 9s linear forwards;
}

@keyframes kenburns {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1.02);
    }
}

.hero__badge {
    position: absolute;
    left: 4%;
    bottom: -28px;
    display: grid;
    padding: 20px 26px;
    min-width: 170px;
    background: var(--surface);
    border-left: 4px solid transparent;
    border-image: var(--grad) 1;
    box-shadow: 0 20px 50px rgba(10, 50, 70, .12);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s ease 1.3s, transform 1s var(--ease) 1.3s;
}

.is-loaded .hero__badge {
    opacity: 1;
    transform: none;
}

.hero__badge-en {
    font-family: var(--en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    color: var(--ink-3);
    text-transform: uppercase;
}

.hero__badge-num {
    font-family: var(--en);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
}

.hero__badge-ja {
    font-size: 12px;
    color: var(--ink-2);
}

.hero__dots {
    position: absolute;
    right: -18px;
    top: -18px;
    width: 120px;
    height: 120px;
    z-index: -1;
    background-image: radial-gradient(var(--c2) 1.6px, transparent 1.8px);
    background-size: 14px 14px;
    opacity: .5;
}

/* bottom row: scroll + news ticker */
.hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: clamp(40px, 5vw, 64px);
    padding-bottom: clamp(20px, 3vw, 32px);
}

.scroll-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--en);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3em;
    writing-mode: vertical-rl;
}

.scroll-line i {
    position: relative;
    width: 1px;
    height: 64px;
    background: var(--line);
    overflow: hidden;
}

.scroll-line i::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 24px;
    background: var(--c2);
    animation: scrollDrop 2s var(--ease-io) infinite;
}

@keyframes scrollDrop {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(300%);
    }
}

.hero-news {
    display: flex;
    align-items: center;
    width: min(560px, 100%);
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(10, 50, 70, .08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease 1.5s, transform 1s var(--ease) 1.5s;
}

.is-loaded .hero-news.has-items {
    opacity: 1;
    transform: none;
}

.hero-news__label {
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 0 20px;
    font-family: var(--en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    color: #fff;
    background: var(--grad);
}

.hero-news__viewport {
    position: relative;
    flex: 1;
    height: 56px;
    overflow: hidden;
}

.hero-news__item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: transform .8s var(--ease), opacity .8s;
}

.hero-news__item.is-active {
    opacity: 1;
    transform: none;
}

.hero-news__item.is-leaving {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-news__date {
    flex-shrink: 0;
    font-family: var(--en);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
}

.hero-news__title {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-news__dots {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 16px;
}

.hero-news__dots button {
    width: 5px;
    height: 5px;
    background: var(--line);
    transition: height .4s var(--ease), background .4s;
}

.hero-news__dots button.is-active {
    height: 14px;
    background: var(--c2);
}

@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        height: 300px;
        min-height: 0;
        margin-right: calc(var(--gutter) * -1);
    }

    .hero__badge {
        bottom: -20px;
        padding: 14px 18px;
        min-width: 0;
    }

    .hero__badge-num {
        font-size: 28px;
    }

    .scroll-line {
        display: none;
    }

    .hero__bottom {
        padding-top: 48px;
    }
}

/* ---------------------------------------------------------
   About (Who we are)
--------------------------------------------------------- */
.section {
    position: relative;
    padding: clamp(90px, 13vw, 180px) 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.about__catch {
    font-size: clamp(32px, 5.2vw, 64px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .06em;
}

.about__en {
    margin-top: 16px;
    font-family: var(--en);
    font-weight: 600;
    font-size: clamp(14px, 1.4vw, 18px);
    letter-spacing: .08em;
    color: var(--ink-3);
}

.about__text {
    margin: 36px 0 44px;
    color: var(--ink-2);
    line-height: 2.2;
}

/* orbit diagram */
.orbit {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    aspect-ratio: 1;
}

.orbit__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(30, 111, 224, .35);
}

.orbit__ring--1 {
    inset: 0;
    animation: spin 60s linear infinite;
}

.orbit__ring--2 {
    inset: 16%;
    border-style: solid;
    border-color: rgba(11, 180, 209, .2);
    animation: spin 40s linear infinite reverse;
}

.orbit__ring--1::before,
.orbit__ring--2::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 16px var(--c3);
}

.orbit__core {
    position: absolute;
    inset: 32%;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    background: var(--grad);
    background-size: 200% 200%;
    animation: gradMove 8s ease infinite;
    box-shadow: 0 30px 80px rgba(11, 180, 209, .35), inset 0 0 40px rgba(255, 255, 255, .25);
}

.orbit__core strong {
    display: block;
    font-family: var(--en);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
}

.orbit__core span {
    font-size: 11px;
    letter-spacing: .14em;
}

.orbit__node {
    position: absolute;
    width: 30%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(10, 50, 70, .1);
    animation: floatY 6s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
}

.orbit__node b {
    display: block;
    font-family: var(--en);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--brand);
}

.orbit__node span {
    display: block;
    font-weight: 700;
    font-size: clamp(12px, 1.3vw, 15px);
    line-height: 1.4;
}

.orbit__node:nth-of-type(2) { top: -4%; left: 35%; }
.orbit__node:nth-of-type(3) { top: 35%; right: -4%; --fd: -1.5s; }
.orbit__node:nth-of-type(4) { bottom: -4%; left: 35%; --fd: -3s; }
.orbit__node:nth-of-type(5) { top: 35%; left: -4%; --fd: -4.5s; }

@keyframes floatY {
    0%,
    100% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(6px);
    }
}

@media (max-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .orbit {
        margin: 20px auto 0;
        max-width: 420px;
    }
}

/* ---------------------------------------------------------
   Dark band (stance)
--------------------------------------------------------- */
.dark {
    position: relative;
    color: #fff;
    background: var(--dark);
    overflow: hidden;
    isolation: isolate;
}

.dark__canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.dark__glow {
    position: absolute;
    z-index: -1;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 140, 180, .35), transparent 65%);
    right: -20vw;
    top: -20vw;
    pointer-events: none;
}

.stance__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: end;
}

.stance__grid .sec-title {
    font-size: clamp(24px, 3.2vw, 40px);
}

.stance__text {
    color: rgba(255, 255, 255, .78);
    line-height: 2.2;
}

.stance__since {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 36px;
}

.stance__since small {
    font-weight: 700;
    font-size: 16px;
}

.count {
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(72px, 10vw, 140px);
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(60px, 8vw, 110px);
    border-top: 1px solid var(--line-light);
}

.pillar {
    position: relative;
    padding: 30px 26px 10px;
    border-left: 1px solid var(--line-light);
}

.pillar:first-child {
    border-left: 0;
    padding-left: 0;
}

.pillar::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease-io);
    transition-delay: var(--d, 0s);
}

.pillar.is-in::before {
    transform: scaleX(1);
}

.pillar__en {
    font-family: var(--en);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .24em;
    color: #7ee0d6;
}

.pillar__title {
    margin: 8px 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.pillar__text {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.9;
}

@media (max-width: 900px) {
    .stance__grid {
        grid-template-columns: 1fr;
    }

    .pillars {
        grid-template-columns: 1fr 1fr;
    }

    .pillar:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .pillar:nth-child(n+3) {
        border-top: 1px solid var(--line-light);
    }

    .pillar:nth-child(n+3)::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .pillars {
        grid-template-columns: 1fr;
    }

    .pillar {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line-light);
    }

    .pillar:first-child {
        border-top: 0;
    }
}

/* ---------------------------------------------------------
   Features (dark image cards)
--------------------------------------------------------- */
.features__list {
    display: grid;
    gap: clamp(20px, 2.5vw, 32px);
}

.feature {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: clamp(320px, 38vw, 460px);
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    background: var(--dark);
    isolation: isolate;
}

.feature__img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.feature__img img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(var(--py, 0px)) scale(1.05);
    transition: transform 1.2s var(--ease);
    will-change: transform;
}

.feature:hover .feature__img img {
    transform: translateY(var(--py, 0px)) scale(1.12);
}

.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(4, 20, 28, .88) 0%, rgba(4, 20, 28, .55) 50%, rgba(4, 20, 28, .1) 100%);
}

.feature__body {
    align-self: center;
    padding: clamp(28px, 5vw, 64px);
    max-width: 720px;
}

.feature__num {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--en);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, .8);
}

.feature__num::after {
    content: "";
    width: 50px;
    height: 1px;
    background: currentColor;
}

.feature__title {
    margin: 18px 0 14px;
    font-size: clamp(28px, 4.4vw, 54px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .06em;
}

.feature__title small {
    font-size: .42em;
    font-weight: 500;
    margin-left: .4em;
    letter-spacing: .08em;
}

.feature__text {
    color: rgba(255, 255, 255, .78);
    max-width: 520px;
}

.feature__big {
    position: absolute;
    right: clamp(16px, 3vw, 40px);
    bottom: -0.18em;
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(90px, 16vw, 220px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
    pointer-events: none;
}

/* ---------------------------------------------------------
   Services marquee
--------------------------------------------------------- */
.services {
    overflow: hidden;
}

.marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
    display: flex;
    flex-shrink: 0;
    gap: 24px;
    padding-right: 24px;
    animation: marquee var(--speed, 50s) linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee--reverse .marquee__track {
    animation-direction: reverse;
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

.svc-card {
    flex-shrink: 0;
    width: clamp(260px, 26vw, 340px);
    border-radius: 22px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(10, 50, 70, .06);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(10, 50, 70, .14);
}

.svc-card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.svc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.svc-card:hover .svc-card__img img {
    transform: scale(1.08);
}

.svc-card__body {
    padding: 22px 24px 26px;
}

.svc-card__title {
    font-size: 17px;
    font-weight: 700;
}

.svc-card__en {
    font-family: var(--en);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--brand);
}

.svc-card__text {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.8;
}

.marquee-text {
    margin-top: clamp(50px, 7vw, 90px);
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text .marquee__track {
    gap: 0;
    padding: 0;
}

.marquee-text span {
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(56px, 9vw, 130px);
    line-height: 1.1;
    letter-spacing: .02em;
    padding-right: .5em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(15, 31, 42, .18);
}

.marquee-text span:nth-child(even) {
    -webkit-text-stroke: 0;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: .9;
}

/* ---------------------------------------------------------
   CTA
--------------------------------------------------------- */
.cta {
    padding: 0 0 clamp(90px, 12vw, 160px);
}

.cta__box {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    padding: clamp(36px, 6vw, 80px);
    border-radius: var(--radius);
    color: #fff;
    background: var(--dark);
    overflow: hidden;
    isolation: isolate;
}

.cta__box::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -1;
    background: conic-gradient(from 0deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
    filter: blur(80px);
    opacity: .55;
    animation: spin 18s linear infinite;
}

.cta__box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 50%, rgba(7, 32, 43, .75), rgba(7, 32, 43, .35));
}

.cta__lead {
    font-size: clamp(14px, 1.4vw, 16px);
    color: rgba(255, 255, 255, .8);
}

.cta__title {
    margin-top: 12px;
    font-size: clamp(26px, 3.8vw, 44px);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: .06em;
}

.cta__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background .5s var(--ease), color .5s;
}

.cta__link:hover {
    background: #fff;
    color: var(--ink);
}

.cta__link-en {
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: .08em;
    line-height: 1.2;
}

.cta__link-ja {
    font-size: 13px;
    opacity: .8;
}

.cta__link .arrow-circle {
    width: 56px;
    height: 56px;
    background: var(--grad);
    color: #fff;
}

.cta__link .arrow-circle svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .cta__box {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   News list
--------------------------------------------------------- */
.news__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(30px, 5vw, 80px);
}

.news-list {
    border-top: 1px solid var(--line);
}

.news-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 130px 1fr 40px;
    align-items: center;
    gap: 16px;
    padding: 26px 8px;
    border-bottom: 1px solid var(--line);
    transition: padding .5s var(--ease);
}

.news-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--surface);
    border-radius: 14px;
    opacity: 0;
    transform: scaleY(.6);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.news-item {
    isolation: isolate;
}

.news-item:hover {
    padding-left: 22px;
    padding-right: 22px;
}

.news-item:hover::before {
    opacity: 1;
    transform: none;
}

.news-item__date {
    font-family: var(--en);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.news-item__cat {
    justify-self: start;
    padding: 2px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 11px;
    color: var(--ink-2);
    white-space: nowrap;
}

.news-item__title {
    font-weight: 500;
}

.news-item .arrow-circle {
    background: var(--ink);
    color: #fff;
    justify-self: end;
}

.news-empty {
    padding: 40px 8px;
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
}

.news-loading {
    display: flex;
    gap: 6px;
    padding: 40px 8px;
}

.news-loading i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
    animation: bounce 1s ease-in-out infinite;
}

.news-loading i:nth-child(2) {
    animation-delay: .15s;
}

.news-loading i:nth-child(3) {
    animation-delay: .3s;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .news__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .news-item {
        grid-template-columns: auto 1fr 32px;
        grid-template-areas:
            "date cat arrow"
            "title title arrow";
        gap: 6px 14px;
        padding: 20px 4px;
    }

    .news-item__date { grid-area: date; }
    .news-item__cat { grid-area: cat; }
    .news-item__title { grid-area: title; }
    .news-item .arrow-circle { grid-area: arrow; }
}

/* ---------------------------------------------------------
   Link cards (about / career / contact)
--------------------------------------------------------- */
.links__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
    padding: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.link-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter 1.2s;
}

.link-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 20, 28, 0) 30%, rgba(4, 20, 28, .85) 100%);
    transition: opacity .6s;
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad);
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity .8s var(--ease);
}

.link-card:hover img {
    transform: scale(1.08);
}

.link-card:hover::before {
    opacity: .55;
}

.link-card__en {
    font-family: var(--en);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .3em;
    opacity: .85;
}

.link-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 24px;
    font-weight: 700;
}

.link-card__text {
    margin-top: 8px;
    font-size: 13px;
    opacity: .85;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .links__grid {
        grid-template-columns: 1fr;
    }

    .link-card {
        min-height: 260px;
    }
}

/* ---------------------------------------------------------
   Company table
--------------------------------------------------------- */
.company__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(30px, 5vw, 80px);
}

.dl {
    border-top: 1px solid var(--line);
}

.dl__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 26px 4px;
    border-bottom: 1px solid var(--line);
}

.dl__row dt {
    font-weight: 700;
    color: var(--ink-2);
}

@media (max-width: 900px) {
    .company__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .dl__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.footer {
    position: relative;
    margin: 0;
    padding: clamp(60px, 8vw, 100px) 0 28px;
    border-radius: 0;
    background: var(--dark);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.footer__glow {
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: -40%;
    width: 80%;
    height: 80%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--grad);
    filter: blur(120px);
    opacity: .3;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.footer .logo__en {
    color: #fff;
}

.footer .logo__ja {
    color: rgba(255, 255, 255, .6);
}

.footer__address {
    margin-top: 26px;
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, .7);
    font-style: normal;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 56px;
    align-content: start;
}

.footer__nav a {
    display: inline-flex;
    flex-direction: column;
    font-family: var(--en);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .14em;
    transition: color .4s;
}

.footer__nav a small {
    font-family: var(--ja);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .5);
}

.footer__nav a:hover {
    color: #7ee0d6;
}

.footer__big {
    margin: clamp(40px, 6vw, 80px) 0 10px;
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(80px, 22vw, 340px);
    line-height: .8;
    letter-spacing: -.02em;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line-light);
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--en);
    font-weight: 700;
    letter-spacing: .2em;
    color: #fff;
}

.to-top .arrow-circle svg {
    transform: rotate(-90deg);
}

.to-top:hover .arrow-circle svg {
    animation: none;
    transform: rotate(-90deg) translateX(3px);
}

@media (max-width: 767px) {

    .footer__top {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Sub pages
--------------------------------------------------------- */
.page-hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(40px, 6vw, 90px));
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 30% 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(15, 31, 42, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 31, 42, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
    mask-image: linear-gradient(180deg, #000 30%, transparent);
}

.page-hero__ja {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--brand);
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 1s ease .2s, transform 1s var(--ease) .2s;
}

.page-hero__ja::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--grad);
}

.is-loaded .page-hero__ja {
    opacity: 1;
    transform: none;
}

.page-hero__en {
    margin-top: 10px;
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(48px, 9vw, 120px);
    line-height: 1.05;
    letter-spacing: -.01em;
}

.page-hero__en .ch {
    display: inline-block;
    overflow: hidden;
    padding-bottom: .04em;
}

.page-hero__en .ch > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.2s var(--ease);
    transition-delay: calc(var(--i) * .04s + .25s);
}

.is-loaded .page-hero__en .ch > span {
    transform: none;
}

.page-hero__img {
    position: relative;
    margin: clamp(30px, 4vw, 48px) 0 0 var(--gutter);
    height: clamp(220px, 34vw, 420px);
    overflow: hidden;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 1.5s var(--ease-io) .3s;
}

.is-loaded .page-hero__img {
    clip-path: inset(0 0 0 0);
}

.page-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 2.4s var(--ease) .3s;
}

.is-loaded .page-hero__img img {
    transform: none;
}

.page-hero__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(30, 111, 224, .25), rgba(20, 184, 166, .15));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0 0;
    font-size: 12px;
    color: var(--ink-3);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 10px;
}

.page-section {
    padding: clamp(60px, 9vw, 120px) 0;
}

.message {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.message__img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.message__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message__title {
    font-size: clamp(30px, 4.6vw, 56px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .06em;
    margin-bottom: 36px;
}

.message__text p + p {
    margin-top: 1.2em;
}

.message__text {
    color: var(--ink-2);
    line-height: 2.2;
}

@media (max-width: 900px) {
    .message {
        grid-template-columns: 1fr;
    }

    .message__img {
        aspect-ratio: 16 / 10;
    }
}

/* career */
.career-box {
    display: grid;
    place-items: center;
    text-align: center;
    padding: clamp(60px, 8vw, 110px) 24px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(10, 50, 70, .06);
}

.career-box__icon {
    width: 76px;
    height: 76px;
    margin-bottom: 26px;
}

.career-box__title {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 700;
    margin-bottom: 12px;
}

.career-box p {
    color: var(--ink-2);
}

.career-box .btn {
    margin-top: 36px;
}

/* topics page */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.cat-tab {
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    transition: background .4s, color .4s, border-color .4s;
}

.cat-tab:hover {
    border-color: var(--ink);
}

.cat-tab.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}

.pagination button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--en);
    font-weight: 700;
    transition: background .4s, color .4s;
}

.pagination button:hover {
    border-color: var(--ink);
}

.pagination button.is-active {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
}

/* topic detail */
.article {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(10, 50, 70, .06);
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article__title {
    margin: 18px 0 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.6;
}

.article__body {
    color: var(--ink-2);
    line-height: 2.2;
    word-break: break-word;
}

.article__body a {
    color: var(--brand);
    text-decoration: underline;
}

.article__back {
    margin-top: 48px;
    text-align: center;
}

/* contact */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}

.contact__aside {
    position: sticky;
    top: 120px;
}

.contact__aside p {
    color: var(--ink-2);
}

.contact__tel {
    margin-top: 32px;
    padding: 26px 28px;
    border-radius: 20px;
    background: var(--surface);
}

.contact__tel small {
    display: block;
    font-family: var(--en);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--brand);
}

.contact__tel a {
    font-family: var(--en);
    font-weight: 800;
    font-size: clamp(24px, 2.6vw, 30px);
    letter-spacing: .04em;
}

.form {
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(10, 50, 70, .06);
}

.field {
    position: relative;
    margin-bottom: 26px;
}

.field label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
}

.req,
.opt {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: .1em;
}

.req {
    color: #fff;
    background: var(--grad);
}

.opt {
    color: var(--ink-3);
    border: 1px solid var(--line);
}

.field input,
.field textarea {
    width: 100%;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--bg);
    font: inherit;
    color: var(--ink);
    transition: border-color .3s, background .3s, box-shadow .3s;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    resize: vertical;
    min-height: 200px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--c2);
    box-shadow: 0 0 0 4px rgba(11, 180, 209, .14);
}

.field__error {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    color: #e11d48;
}

.field__error.is-show {
    display: block;
}

.form__note {
    margin: 10px 0 30px;
    font-size: 12px;
    color: var(--ink-3);
}

.submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    letter-spacing: .2em;
    overflow: hidden;
    isolation: isolate;
    transition: opacity .4s;
}

.submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad);
    transform: translateX(-101%);
    transition: transform .6s var(--ease);
}

.submit:not(:disabled):hover::before {
    transform: none;
}

.submit:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.form__response {
    margin-top: 20px;
    text-align: center;
    font-weight: 700;
}

.form__response.is-ok {
    color: #059669;
}

.form__response.is-ng {
    color: #e11d48;
}

@media (max-width: 900px) {
    .contact {
        grid-template-columns: 1fr;
    }

    .contact__aside {
        position: static;
    }
}

/* policy */
.policy {
    max-width: 860px;
    margin: 0 auto;
}

.policy > p {
    color: var(--ink-2);
    line-height: 2.1;
}

.policy h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 56px 0 16px;
    font-size: 19px;
    font-weight: 700;
}

.policy h2::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grad);
    flex-shrink: 0;
}

.policy ul {
    margin-top: 14px;
    padding: 22px 28px;
    border-radius: 16px;
    background: var(--surface);
}

.policy li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-2);
}

.policy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .85em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c2);
}

/* ---------------------------------------------------------
   Cursor follower (pointer devices only)
--------------------------------------------------------- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    border: 1.5px solid var(--c2);
    pointer-events: none;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
    opacity: 0;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    background: rgba(11, 180, 209, .08);
}

@media (hover: none), (pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* ---------------------------------------------------------
   Reduced motion
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* keep decorative overflow (orbit, glows) from widening the mobile viewport */
main {
    display: block;
    overflow-x: hidden;
    overflow-x: clip;
}


