/* =========================================================
   株式会社 西日本都市開発
   ========================================================= */

:root {
    --bg: #f4f3ef;
    --bg-2: #e9e7e1;
    --ink: #141414;
    --ink-2: #1c1c1c;
    --text: #2a2a2a;
    --muted: #85827b;
    --line: rgba(20, 20, 20, .14);
    --line-light: rgba(255, 255, 255, .16);
    --accent: #2f5d43;

    --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --font-en: "Jost", "Zen Kaku Gothic New", sans-serif;

    --header-h: 96px;
    --container: 1280px;
    --gutter: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(.19, 1, .22, 1);
    --ease-io: cubic-bezier(.77, 0, .175, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-ja);
    font-size: 15px;
    line-height: 2.1;
    letter-spacing: .06em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(100px, 14vw, 180px) 0;
}

/* ---------- 共通パーツ ---------- */
.sec-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.sec-label__num {
    color: var(--ink);
}

.sec-label__num::after {
    content: "";
    display: inline-block;
    width: 48px;
    height: 1px;
    margin-left: 16px;
    vertical-align: middle;
    background: currentColor;
}

.sec-label--light {
    color: rgba(255, 255, 255, .5);
}

.sec-label--light .sec-label__num {
    color: #fff;
}

.heading {
    font-family: var(--font-mincho);
    font-weight: 600;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.6;
    letter-spacing: .08em;
    color: var(--ink);
}

.heading--lg {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.55;
}

.sec-top {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: clamp(48px, 7vw, 96px);
}

.sec-top__lead {
    margin-top: 24px;
    max-width: 640px;
}

.arrow-circle {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: 50%;
    overflow: hidden;
    transition: background-color .5s var(--ease), color .5s var(--ease);
}

.arrow-circle::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateX(-2px) rotate(45deg);
}

.arrow-circle--lg {
    width: 72px;
    height: 72px;
}

.arrow-circle--lg::before {
    width: 12px;
    height: 12px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
    letter-spacing: .1em;
}

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

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

/* ---------- Loader ---------- */
.loader {
    display: none;
}

.js .loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    transition: transform 1s var(--ease-io);
}

.loader__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fade-in 1s .1s var(--ease) forwards;
}

.loader__ja {
    font-family: var(--font-mincho);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .3em;
}


.is-loaded .loader {
    transform: translateY(-100%);
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
    padding: 0 clamp(20px, 3.4vw, 48px);
    color: #fff;
    transition: height .6s var(--ease), color .4s, background-color .4s, transform .6s var(--ease);
}

.header.is-scrolled {
    --header-h: 76px;
    color: var(--ink);
    background: rgba(244, 243, 239, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.logo__ja {
    font-family: var(--font-mincho);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .14em;
}


.gnav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
}

.gnav__list {
    display: flex;
    gap: clamp(18px, 2vw, 32px);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
}

.gnav__list a {
    position: relative;
    padding: 4px 0;
}

.gnav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .6s var(--ease);
}

.gnav__list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gnav__contact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
}

.gnav__contact:hover .arrow-circle {
    background: currentColor;
}

.gnav__contact:hover .arrow-circle::before {
    border-color: var(--bg);
}

.header:not(.is-scrolled) .gnav__contact:hover .arrow-circle::before {
    border-color: var(--ink);
}

.menu-btn {
    display: none;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 120;
    height: 48px;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: .2em;
}

.menu-btn__lines {
    position: relative;
    width: 32px;
    height: 10px;
}

.menu-btn__lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .6s var(--ease), top .6s var(--ease);
}

.menu-btn__lines span:nth-child(1) { top: 0; }
.menu-btn__lines span:nth-child(2) { top: 9px; }

.menu-btn.active .menu-btn__lines span:nth-child(1) { top: 5px; transform: rotate(20deg); }
.menu-btn.active .menu-btn__lines span:nth-child(2) { top: 5px; transform: rotate(-20deg); }

/* ---------- 全画面メニュー ---------- */
.menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--ink);
    color: #fff;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}

.menu.active {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path .9s var(--ease-io), visibility 0s;
}

.menu__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    height: 100%;
    padding: 100px var(--gutter) 40px;
    overflow-y: auto;
}

.menu__list a {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
}

.menu__num {
    font-family: var(--font-en);
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

.menu__ja {
    font-family: var(--font-mincho);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .12em;
}

.menu__list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.menu.active .menu__list li {
    opacity: 1;
    transform: none;
}

.menu.active .menu__list li:nth-child(1) { transition-delay: .35s; }
.menu.active .menu__list li:nth-child(2) { transition-delay: .4s; }
.menu.active .menu__list li:nth-child(3) { transition-delay: .45s; }
.menu.active .menu__list li:nth-child(4) { transition-delay: .5s; }
.menu.active .menu__list li:nth-child(5) { transition-delay: .55s; }
.menu.active .menu__list li:nth-child(6) { transition-delay: .6s; }
.menu.active .menu__list li:nth-child(7) { transition-delay: .65s; }

.menu__info {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.menu__tel {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-en);
    color: #fff;
}

.menu__tel span {
    font-size: 11px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .5);
}

.menu__tel a {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: .06em;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .1) 55%),
        linear-gradient(180deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, 0) 25%);
}

.hero__slides,
.hero__slide {
    position: absolute;
    inset: 0;
}

.hero__slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.15);
    transition: opacity 1.8s ease, transform 9s linear;
}

.hero__slide.is-active {
    opacity: 1;
    transform: scale(1.02);
}

.mask {
    display: block;
    overflow: hidden;
}

.mask > span {
    display: block;
}

.js .hero .mask > span {
    transform: translateY(105%);
    transition: transform 1.4s var(--ease);
}

.js .is-loaded .hero .mask > span {
    transform: none;
}

.js .is-loaded .hero__vertical .mask > span {
    transition-delay: .3s;
}

.hero__vertical {
    position: absolute;
    z-index: 2;
    top: calc(var(--header-h) + 40px);
    right: clamp(24px, 6vw, 96px);
    writing-mode: vertical-rl;
    font-family: var(--font-mincho);
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 600;
    letter-spacing: .3em;
    line-height: 1;
}

.hero__vertical .mask > span {
    padding: 0 .1em;
}

.js .hero__vertical .mask > span {
    transform: translateY(-101%);
}

.hero__content {
    position: absolute;
    z-index: 2;
    left: var(--gutter);
    right: var(--gutter);
    bottom: clamp(96px, 12vh, 140px);
}

/* スマホ用の横書き見出し（PC・タブレットでは右側の縦書きを表示） */
.hero__title {
    display: none;
    font-family: var(--font-mincho);
    font-size: clamp(44px, 11vw, 64px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .1em;
}

.hero__title .mask {
    padding-bottom: .04em;
}

.js .is-loaded .hero__title .mask:nth-child(2) > span {
    transition-delay: .12s;
}

.hero__lead {
    margin-top: 0;
    max-width: 560px;
    font-size: 14px;
    line-height: 2;
    color: rgba(255, 255, 255, .85);
    opacity: 0;
    transition: opacity 1.4s .6s var(--ease);
}

.is-loaded .hero__lead,
html:not(.js) .hero__lead {
    opacity: 1;
}

.hero__counter {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: .1em;
}

.hero__bar {
    position: relative;
    width: 96px;
    height: 1px;
    background: rgba(255, 255, 255, .3);
    overflow: hidden;
}

.hero__bar span {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.hero__bar span.is-running {
    animation: bar var(--slide-duration, 6s) linear forwards;
}

@keyframes bar {
    to { transform: scaleX(1); }
}

.hero__scroll {
    position: absolute;
    z-index: 3;
    left: var(--gutter);
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.hero__scroll::before {
    content: "";
    width: 1px;
    height: 100%;
    background: linear-gradient(#fff 0 0) no-repeat top / 1px 0, rgba(255, 255, 255, .3);
    animation: scroll-line 2.4s var(--ease-io) infinite;
}

@keyframes scroll-line {
    0%   { background-size: 1px 0;    background-position: top; }
    50%  { background-size: 1px 100%; background-position: top; }
    51%  { background-size: 1px 100%; background-position: bottom; }
    100% { background-size: 1px 0;    background-position: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--line);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee__track span {
    display: flex;
    align-items: center;
    font-family: var(--font-en);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 300;
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(20, 20, 20, .35);
}

.marquee__track span::after {
    content: "";
    width: .18em;
    height: .18em;
    margin: 0 .5em;
    border-radius: 50%;
    background: var(--accent);
}

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

/* ---------- 画像の出現アニメーション ---------- */
.img-reveal {
    overflow: hidden;
}

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

.js .img-reveal[data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.4s var(--ease-io);
}

.js .img-reveal[data-reveal].is-inview {
    clip-path: inset(0);
}

/* ---------- About ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.about__body {
    margin-top: clamp(32px, 4vw, 56px);
    max-width: 520px;
}

.about__body p + p {
    margin-top: 1.4em;
}

.about__visual {
    position: relative;
    padding-bottom: 120px;
}

.about__photo--main {
    aspect-ratio: 4 / 5;
    width: 82%;
    margin-left: auto;
}

.about__photo--main img {
    height: 112%;
}

.about__photo--sub {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 3 / 4;
    border: 10px solid var(--bg);
}

.about__photo--sub img {
    height: 115%;
}

.about__badge {
    position: absolute;
    right: -10px;
    bottom: 40px;
    width: clamp(110px, 12vw, 160px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .15));
}

/* ---------- Service ---------- */
.service {
    background: var(--bg-2);
}

.service__list {
    border-top: 1px solid var(--ink);
}

.service__item {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1.1fr 1.3fr 240px;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.service__item::before {
    content: "";
    position: absolute;
    inset: -1px 0 -1px;
    background: var(--bg);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .7s var(--ease);
    z-index: 0;
}

.service__item:hover::before {
    transform: scaleY(1);
}

.service__item > * {
    position: relative;
    z-index: 1;
}

.service__num {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: .1em;
    color: var(--muted);
    padding-left: 8px;
}

.service__name h3 {
    font-family: var(--font-mincho);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.5;
    color: var(--ink);
}


.service__desc {
    font-size: 14px;
}

.service__img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.service__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 1.2s var(--ease);
}

.service__item:hover .service__img img {
    transform: scale(1.1);
}

/* ---------- Works ---------- */
.works__list {
    margin-bottom: clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--line);
}

.works__list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mincho);
    font-size: clamp(17px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: .08em;
    color: var(--ink);
}

.works__part {
    display: inline-block;
}

.works__list li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-.2em);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink);
    margin-bottom: clamp(56px, 8vw, 100px);
}

.stat {
    padding: 32px 0 0;
}

.stat + .stat {
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 1px solid var(--line);
}

.stat dt {
    font-size: 13px;
    color: var(--muted);
}

.stat dd {
    margin-top: 6px;
    font-family: var(--font-en);
    font-size: clamp(48px, 6.4vw, 96px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--ink);
}

.stat dd small {
    font-family: var(--font-ja);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
    margin: 0 6px;
}

.stat dd small:first-child {
    margin-left: 0;
}

.stat dd.stat__text {
    font-family: var(--font-mincho);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: .12em;
    padding-top: .5em;
}

.gallery__track {
    display: flex;
    gap: 16px;
    padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
    scrollbar-width: none;
    cursor: grab;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.gallery__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.gallery__track.is-dragging .gallery__item {
    pointer-events: none;
}

.gallery__item {
    flex: 0 0 auto;
    height: clamp(280px, 36vw, 480px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: zoom-in;
    background: var(--bg-2);
}

.gallery__item--wide {
    aspect-ratio: 3 / 2;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
    -webkit-user-drag: none;
    user-select: none;
}

.gallery__item:hover img {
    transform: scale(1.06);
}

.gallery__ui {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
}

.gallery__progress {
    position: relative;
    flex: 1;
    height: 1px;
    background: var(--line);
}

.gallery__progress span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    background: var(--ink);
    transition: left .2s linear;
}

.gallery__btns {
    display: flex;
    gap: 10px;
}

.gallery__btn {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}

.gallery__btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translate(-65%, -50%) rotate(45deg);
}

.gallery__btn--prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

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

/* ---------- Media ---------- */
.media {
    padding-top: 0;
}

.media__item {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: end;
}

.media__video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ink);
}

.media__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media__tag {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 2px 14px;
    border: 1px solid var(--ink);
    border-radius: 999px;
}

.media__title {
    margin: 20px 0 16px;
    font-family: var(--font-mincho);
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: .06em;
    color: var(--ink);
}

.media__text > p:last-child {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Recruit ---------- */
.recruit {
    background: var(--ink);
    color: #fff;
    padding-bottom: clamp(100px, 12vw, 160px);
}

.recruit__visual {
    position: relative;
    height: clamp(360px, 60vw, 720px);
}

.recruit__visual img {
    height: 125%;
    opacity: .78;
}

.recruit__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--ink) 0%, rgba(20, 20, 20, 0) 60%);
}

.recruit__title {
    position: absolute;
    z-index: 1;
    left: var(--gutter);
    bottom: clamp(24px, 4vw, 56px);
    display: flex;
    flex-direction: column;
}

.recruit__ja {
    font-family: var(--font-mincho);
    font-size: clamp(44px, 8vw, 120px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .12em;
}

.recruit__body {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(40px, 6vw, 96px);
    margin-top: clamp(56px, 7vw, 96px);
}

.recruit__msg {
    font-family: var(--font-mincho);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 2;
    letter-spacing: .08em;
}

.recruit__table {
    border-top: 1px solid rgba(255, 255, 255, .5);
    margin-bottom: 40px;
}

.recruit__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--line-light);
}

.recruit__row dt {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}

.recruit__row dd {
    font-family: var(--font-en);
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 300;
    line-height: 1.2;
}

.recruit__row dd small {
    font-family: var(--font-ja);
    font-size: 13px;
    margin: 0 6px;
}

.recruit__row dd small:first-child {
    margin-left: 0;
}

.recruit__row--text dd {
    font-family: var(--font-ja);
    font-size: 15px;
    line-height: 2;
}

/* ---------- Company ---------- */
.company__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
}

.company__head {
    position: sticky;
    top: 120px;
    align-self: start;
}

.company__table {
    border-top: 1px solid var(--ink);
}

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

.company__row dt {
    font-weight: 500;
    color: var(--muted);
}

.company__row dd {
    color: var(--ink);
}

.company__row dd small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.company__row a {
    border-bottom: 1px solid currentColor;
}

/* ---------- Contact ---------- */
.contact {
    padding: clamp(100px, 13vw, 170px) 0 clamp(80px, 10vw, 120px);
    background: var(--accent);
    color: #fff;
}

.contact__big {
    font-family: var(--font-mincho);
    font-size: clamp(40px, 7.4vw, 112px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .1em;
}

.contact__lead {
    margin: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
    color: rgba(255, 255, 255, .85);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, .4);
}

.contact__box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 36px 0 8px;
}

.contact__box + .contact__box {
    padding-left: clamp(24px, 4vw, 56px);
    border-left: 1px solid rgba(255, 255, 255, .25);
}

a.contact__box .arrow-circle {
    position: absolute;
    right: clamp(24px, 4vw, 56px);
    top: 50%;
    transform: translateY(-50%);
}

a.contact__box:hover .arrow-circle {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}

.contact__label {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.contact__tel {
    font-family: var(--font-en);
    font-size: clamp(36px, 4.6vw, 64px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .02em;
}

.contact__mail {
    font-family: var(--font-en);
    font-size: clamp(17px, 1.9vw, 24px);
    line-height: 1.6;
    word-break: break-all;
    margin-top: 12px;
}

.contact__note {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
    padding-top: clamp(64px, 8vw, 96px);
    overflow: hidden;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer__name {
    margin-bottom: 12px;
    font-family: var(--font-mincho);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .14em;
    color: #fff;
}

.footer__info p:last-child {
    font-size: 13px;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 4px 64px;
    font-family: var(--font-en);
    font-size: 15px;
    letter-spacing: .1em;
}

.footer__nav a {
    transition: color .3s;
}

.footer__nav a:hover {
    color: #fff;
}

.footer__mark {
    margin: clamp(48px, 7vw, 96px) 0 0;
    padding: 0 calc(var(--gutter) / 2);
    font-family: var(--font-mincho);
    font-size: 12vw;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .08em;
    white-space: nowrap;
    color: rgba(255, 255, 255, .08);
    text-align: center;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid var(--line-light);
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: .1em;
}

.footer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.footer__up {
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    transform: translateY(2px) rotate(45deg);
}

/* ---------- Lightbox ---------- */
.lightbox {
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(10, 10, 10, .92);
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    margin: 0 auto;
}

.lightbox__close {
    position: absolute;
    right: 0;
    top: -52px;
    width: 44px;
    height: 44px;
}

.lightbox__close::before,
.lightbox__close::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 21px;
    width: 28px;
    height: 1px;
    background: #fff;
    transform: rotate(45deg);
}

.lightbox__close::after {
    transform: rotate(-45deg);
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .gnav {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
    }

    .header.menu-open {
        color: #fff;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header.menu-open .logo {
        position: relative;
        z-index: 120;
    }

    .service__item {
        grid-template-columns: 56px 1fr 200px;
        grid-template-areas:
            "num name img"
            "num desc img";
        gap: 8px 28px;
    }

    .service__num  { grid-area: num; align-self: start; padding-top: 10px; }
    .service__name { grid-area: name; align-self: end; }
    .service__desc { grid-area: desc; align-self: start; }
    .service__img  { grid-area: img; }
}

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

    .header.is-scrolled {
        --header-h: 64px;
    }

    .about__grid,
    .media__item,
    .recruit__body,
    .company__grid {
        grid-template-columns: 1fr;
    }

    .about__visual {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .company__head {
        position: static;
    }

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

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

    .stat {
        padding: 24px 0;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .logo__ja {
        font-size: 15px;
    }


    .menu-btn__label {
        display: none;
    }

    .hero__vertical {
        display: none;
    }

    .hero__title {
        display: block;
    }

    .hero__content {
        bottom: 110px;
    }

    .hero__lead {
        font-size: 13px;
        margin-top: 20px;
    }

    .hero__counter {
        bottom: 28px;
    }

    .hero__bar {
        width: 56px;
    }

    .hero__scroll {
        height: 56px;
    }

    .about__visual {
        padding-bottom: 80px;
    }

    .service__item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img"
            "num"
            "name"
            "desc";
        gap: 6px;
        padding: 28px 0 36px;
    }

    .service__img {
        margin-bottom: 14px;
    }

    .service__num {
        padding: 0;
    }

    .service__desc {
        margin-top: 6px;
    }

    .gallery__item {
        height: 300px;
    }

    .gallery__ui {
        gap: 20px;
    }

    .gallery__btn {
        width: 44px;
        height: 44px;
    }

    .recruit__row,
    .company__row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 20px 0;
    }

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

    .contact__box + .contact__box {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .25);
        margin-top: 28px;
    }

    a.contact__box .arrow-circle {
        width: 52px;
        height: 52px;
        right: 0;
    }

    .contact__mail {
        font-size: 16px;
    }

    .footer__nav {
        gap: 4px 40px;
    }

    .footer__bottom {
        flex-direction: column-reverse;
        gap: 12px;
    }
}

@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;
    }
}
