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

:root {
    --ink: #0f1316;
    --ink-2: #1a2026;
    --text: #1f262c;
    --muted: #69737c;
    --line: #e1e5e8;
    --paper: #ffffff;
    --paper-2: #f4f6f5;
    --accent: #2f8f46;
    --accent-dark: #22703a;
    --accent-soft: #e7f3ea;

    --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --font-en: "Montserrat", "Noto Sans JP", sans-serif;

    --header-h: 84px;
    --container: 1200px;
    --gutter: clamp(20px, 5vw, 48px);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-ja);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: .04em;
    color: var(--text);
    background: var(--paper);
    -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, h4, p, ul, dl, dd {
    margin: 0;
}

ul {
    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(80px, 12vw, 140px) 0;
}

.section--gray {
    background: var(--paper-2);
}

.pc-only {
    display: inline;
}

/* ---------- Section heading ---------- */
.sec-head {
    margin-bottom: clamp(32px, 5vw, 56px);
}

.sec-head__en {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 1;
    letter-spacing: .02em;
    color: var(--ink);
}

.sec-head__ja {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--accent);
}

.sec-head__ja::before {
    content: "";
    width: 36px;
    height: 2px;
    background: currentColor;
}

.sec-head--center {
    text-align: center;
}

.sec-head--center .sec-head__ja {
    justify-content: center;
}

.sec-head--light .sec-head__en {
    color: #fff;
}

.sec-head--light .sec-head__ja {
    color: #7fd394;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 56px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    border: 1px solid transparent;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn--accent {
    background: var(--accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--accent-dark);
}

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

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

.btn__arrow {
    position: relative;
    width: 28px;
    height: 1px;
    background: currentColor;
    transition: width .3s var(--ease);
}

.btn__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 1px;
    background: currentColor;
    transform: rotate(35deg);
    transform-origin: right center;
}

.btn:hover .btn__arrow {
    width: 38px;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    color: #fff;
    transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}

.header.is-scrolled {
    --header-h: 72px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line);
    backdrop-filter: blur(8px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    padding: 0 clamp(20px, 3vw, 40px);
}

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

.logo__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .02em;
}

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

.logo__ja {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .08em;
}

.logo__en {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    opacity: .7;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
}

.nav__list {
    display: flex;
    gap: 26px;
}

.nav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .08em;
    padding: 6px 0;
}

.nav__en {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--accent);
}

.header:not(.is-scrolled) .nav__en {
    color: #8fdca3;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width .3s var(--ease);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    min-height: 48px;
    padding: 0 26px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    z-index: 120;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform .35s var(--ease), opacity .35s var(--ease), top .35s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }

.menu-toggle.active span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

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

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

.hero__slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.6s ease, transform 8s linear;
}

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

.hero__overlay {
    background:
        linear-gradient(90deg, rgba(10, 14, 17, .82) 0%, rgba(10, 14, 17, .45) 55%, rgba(10, 14, 17, .2) 100%),
        linear-gradient(0deg, rgba(10, 14, 17, .55) 0%, rgba(10, 14, 17, 0) 40%);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: var(--header-h) var(--gutter) 40px;
}

.hero__label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .24em;
    color: #8fdca3;
}

.hero__label::before {
    content: "";
    width: 40px;
    height: 2px;
    background: currentColor;
}

.hero__title {
    margin-top: 24px;
    font-size: clamp(38px, 7vw, 88px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .06em;
}

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

.hero__lead {
    margin-top: 28px;
    max-width: 640px;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    line-height: 2;
    color: rgba(255, 255, 255, .88);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
}

.hero__dots {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    bottom: 48px;
    display: flex;
    gap: 10px;
}

.hero__dot {
    width: 36px;
    height: 3px;
    background: rgba(255, 255, 255, .3);
    overflow: hidden;
    position: relative;
}

.hero__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.hero__dot.is-active::after {
    animation: dot-progress var(--slide-duration, 6s) linear forwards;
}

@keyframes dot-progress {
    to { transform: scaleX(1); }
}

.hero__vertical {
    position: absolute;
    z-index: 2;
    right: clamp(20px, 3vw, 40px);
    top: 50%;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, .55);
}

.hero__scroll {
    position: absolute;
    z-index: 3;
    left: var(--gutter);
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
}

.hero__scroll span {
    writing-mode: vertical-rl;
}

.hero__scroll::after {
    content: "";
    width: 1px;
    height: 72px;
    background: linear-gradient(#fff 0 0) no-repeat top / 1px 0, rgba(255, 255, 255, .3);
    animation: scroll-line 2.2s var(--ease) 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; }
}

/* ヒーローの文字アニメーション */
.hero__label,
.hero__line,
.hero__lead,
.hero__actions {
    opacity: 0;
    transform: translateY(28px);
    animation: hero-in 1.1s var(--ease) forwards;
}

.hero__label                { animation-delay: .2s; }
.hero__line:nth-child(1)    { animation-delay: .4s; }
.hero__line:nth-child(2)    { animation-delay: .6s; }
.hero__lead                 { animation-delay: .9s; }
.hero__actions              { animation-delay: 1.1s; }

@keyframes hero-in {
    to { opacity: 1; transform: none; }
}

/* ---------- About ---------- */
.about-intro__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
}

.about-intro__catch {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 900;
    line-height: 1.7;
    letter-spacing: .06em;
    color: var(--ink);
    margin-bottom: 28px;
}

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

.about-intro__visual {
    position: relative;
    padding: 0 0 60px 60px;
}

.about-intro__visual::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 70%;
    background: var(--accent-soft);
}

.about-intro__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

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

.about-intro__badge {
    position: absolute;
    left: 0;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: clamp(130px, 16vw, 190px);
    aspect-ratio: 1;
    padding: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(15, 19, 22, .14);
}

.strengths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: clamp(70px, 10vw, 120px);
}

.strength {
    position: relative;
    padding: 40px 32px 36px;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.strength::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width .5s var(--ease);
}

.strength:hover::before {
    width: calc(100% + 2px);
}

.strength__num {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 44px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}

.strength__title {
    margin: 18px 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.strength p {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Services ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service {
    background: #fff;
    overflow: hidden;
    transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 19, 22, .1);
}

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

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

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

.service__body {
    position: relative;
    padding: 36px 32px 40px;
}

.service__num {
    position: absolute;
    top: -34px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 22px;
}

.service__en {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--accent);
}

.service__title {
    margin: 6px 0 14px;
    font-size: 22px;
    font-weight: 900;
    color: var(--ink);
}

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

/* ---------- Works ---------- */
.works__head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px 80px;
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.works__head .sec-head {
    margin-bottom: 0;
}

.works__lead {
    max-width: 560px;
    padding-bottom: 6px;
}

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

.stat {
    padding: 36px 28px;
}

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

.stat__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.stat__value {
    margin-top: 10px;
    font-family: var(--font-en);
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--ink);
}

.stat__value--text {
    font-family: var(--font-ja);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 900;
    letter-spacing: .06em;
    padding-top: .4em;
}

.stat__small,
.stat__unit {
    font-family: var(--font-ja);
    font-size: .32em;
    font-weight: 700;
    color: var(--accent);
}

.stat__small {
    margin-right: 6px;
}

.stat__unit {
    margin: 0 4px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(160px, 20vw, 260px);
    gap: 8px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
    cursor: zoom-in;
}

.gallery__item--wide {
    grid-column: span 2;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease), filter .5s var(--ease);
}

.gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(47, 143, 70, .25);
    opacity: 0;
    transition: opacity .4s var(--ease);
}

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

.gallery__item:hover::after {
    opacity: 1;
}

/* ---------- Media ---------- */
.media {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.media__tag {
    display: inline-block;
    padding: 2px 14px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.media__title {
    margin: 16px 0 18px;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.7;
    color: var(--ink);
}

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

.media__video {
    position: relative;
    background: var(--ink);
    aspect-ratio: 16 / 9;
    box-shadow: 0 30px 60px rgba(15, 19, 22, .15);
}

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

/* ---------- Recruit ---------- */
.recruit {
    position: relative;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}

.recruit__bg {
    position: absolute;
    inset: 0;
    background: url("image/web/2.jpg") center 60% / cover no-repeat;
    opacity: .28;
}

.recruit__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ink) 15%, rgba(15, 19, 22, .4));
}

.recruit__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.recruit__catch {
    margin-bottom: 20px;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: .06em;
}

.recruit__head > p:last-child {
    color: rgba(255, 255, 255, .8);
}

.recruit__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.jobs {
    display: grid;
    gap: 16px;
}

.job {
    padding: 26px 30px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 3px solid var(--accent);
    backdrop-filter: blur(4px);
}

.job__name {
    font-size: 14px;
    font-weight: 700;
    color: #8fdca3;
}

.job__pay {
    font-family: var(--font-en);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
}

.job__unit {
    font-family: var(--font-ja);
    font-size: .42em;
    font-weight: 700;
    margin: 0 4px;
}

.job__unit:first-child {
    margin-left: 0;
}

.perks {
    padding: 26px 30px;
    background: #fff;
    color: var(--text);
}

.perks__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.perks__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.perks__list li {
    padding: 4px 14px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
}

.perks__note {
    font-size: 14px;
    color: var(--muted);
}

.recruit__body .btn {
    margin-top: 8px;
}

/* ---------- Company ---------- */
.company__table {
    max-width: 960px;
    margin-left: auto;
    border-top: 1px solid var(--ink);
}

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

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

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

.company__row a {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Contact ---------- */
.contact {
    padding: clamp(80px, 12vw, 130px) 0;
    background:
        linear-gradient(rgba(34, 112, 58, .93), rgba(26, 82, 44, .96)),
        url("image/web/6.jpg") center / cover no-repeat;
    color: #fff;
}

.contact .sec-head--light .sec-head__ja {
    color: #fff;
}

.contact__lead {
    text-align: center;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, .88);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.contact__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 28px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

a.contact__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.contact__label {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .24em;
    color: var(--accent);
}

.contact__value {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    word-break: break-all;
    line-height: 1.5;
}

.contact__value--tel {
    font-family: var(--font-en);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: .02em;
}

.contact__note {
    font-size: 12px;
    color: var(--muted);
}

.contact__address {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .75);
    padding: 72px 0 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 56px;
}

.logo--light {
    color: #fff;
}

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

.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 48px;
    font-size: 14px;
}

.footer__nav a {
    transition: color .3s var(--ease);
}

.footer__nav a:hover {
    color: #8fdca3;
}

.footer__copy {
    padding: 22px var(--gutter);
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .5);
}

/* ---------- Page top ---------- */
.page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 52px;
    height: 52px;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background-color .3s;
}

.page-top::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.page-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.page-top:hover {
    background: var(--accent);
}

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

.lightbox::backdrop {
    background: rgba(10, 14, 17, .9);
}

.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: 10px;
    top: 21px;
    width: 24px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

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

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

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

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

    .nav__en {
        display: none;
    }

    .nav__list {
        gap: 20px;
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 68px;
    }

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

    .menu-toggle {
        display: block;
    }

    /* スマホ・タブレット用 全画面メニュー */
    .nav {
        position: fixed;
        inset: 0;
        z-index: 110;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 80px 32px 40px;
        background: var(--ink);
        color: #fff;
        opacity: 0;
        visibility: hidden;
        transition: opacity .4s var(--ease), visibility .4s var(--ease);
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        max-width: 360px;
    }

    .nav__link {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        padding: 14px 0;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .nav__link::after {
        display: none;
    }

    .nav__en,
    .header:not(.is-scrolled) .nav__en {
        display: block;
        order: 2;
        color: #8fdca3;
    }

    .nav__cta {
        width: 100%;
        max-width: 360px;
    }

    /* backdrop-filter があると fixed のメニューが全画面にならないため解除 */
    .header.menu-open {
        color: #fff;
        backdrop-filter: none;
    }

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

    .hero__vertical {
        display: none;
    }

    .about-intro__grid,
    .media,
    .recruit__inner {
        grid-template-columns: 1fr;
    }

    .about-intro__visual {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .strengths,
    .services {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .strengths {
        margin-top: 80px;
    }

    .works__head {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .works__head .sec-head {
        margin-bottom: 24px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 42vw;
    }
}

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

    .pc-only {
        display: none;
    }

    .logo__mark {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .logo__ja {
        font-size: 15px;
    }

    .logo__en {
        font-size: 9px;
    }

    .hero__label {
        font-size: 11px;
        letter-spacing: .16em;
    }

    .hero__label::before {
        width: 24px;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .contact__value {
        font-size: 15px;
    }

    .hero__dots {
        bottom: 32px;
    }

    .hero__dot {
        width: 24px;
    }

    .about-intro__visual {
        padding: 0 0 40px 32px;
    }

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

    .stat {
        padding: 26px 4px;
    }

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

    .service__body,
    .strength {
        padding-left: 24px;
        padding-right: 24px;
    }

    .company__row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 18px 0;
    }

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

    .job,
    .perks {
        padding: 22px;
    }

    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 24px;
        width: 100%;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
