/* ============================================================
   Top Page  ― トップページ専用
   ============================================================ */

/* ---- FV 背景きらめき ---- */
.fv-bg-wrap {
    position: absolute;
    top: 50svh;
    left: 0;
    width: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

.fv-bg-img {
    width: 100%;
    height: auto;
    display: block;
    animation: fv-bg-sparkle 10s ease-in-out infinite;
}

@keyframes fv-bg-sparkle {
    0%,
    100% {
        filter: brightness(1) saturate(1) blur(0px);
    }
    30% {
        filter: brightness(1.25) saturate(1.2) blur(0px);
    }
    60% {
        filter: brightness(0.9) saturate(0.95) blur(0.5px);
    }
    80% {
        filter: brightness(1.35) saturate(1.25) blur(0px);
    }
}

.fv-bg-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 75%
    );
    background-size: 250% 100%;
    animation: fv-shimmer 4s linear infinite;
}

@keyframes fv-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ---- 1st View ---- */
#firstview {
    position: relative;
    width: 100%;
    min-height: max(100svh, clamp(500px, 75vw, 1100px));
    background: transparent;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
}

.fv-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.fv-logo {
    position: relative;
    z-index: 10;
    padding: 32px 0 0 60px;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.8s ease 0.1s,
        transform 0.8s ease 0.1s;
}

.fv-logo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fv-logo img {
    height: clamp(48px, 7vw, 110px);
    width: auto;
}

.fv-stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
    width: 100%;
    min-height: clamp(400px, 60vw, 900px);
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.9s ease 0.2s,
        transform 0.9s ease 0.2s;
}

.fv-stage.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fv-layer {
    position: absolute;
    top: 0;
    height: 100%;
    pointer-events: none;
    will-change: transform;
}

.fv-layer-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.fv-layer--text {
    left: 10%;
    top: -10%;
    width: 25%;
    z-index: 2;
    display: flex;
    align-items: center;
}

.fv-layer--text .fv-layer-img {
    object-fit: contain;
    object-position: center center;
}

.fv-layer--back {
    right: 0;
    width: 60%;
    z-index: 1;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 100%
    );
}

.fv-layer--back .fv-layer-img {
    mix-blend-mode: multiply;
}

.fv-layer--mid {
    inset: 0;
    width: 100%;
    z-index: 2;
}

.fv-layer--front {
    right: 0;
    width: 60%;
    z-index: 3;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 100%
    );
}

.fv-layer--front .fv-layer-img {
    mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: reduce) {
    .fv-layer {
        will-change: auto;
    }
}

/* ---- FV Info Ticker ---- */
.fv-info-ticker {
    position: absolute;
    bottom: clamp(32px, 2vw, 72px);
    right: clamp(24px, 2vw, 80px);
    max-width: clamp(280px, 46vw, 580px);
    width: calc(100% - clamp(24px, 5vw, 80px) * 2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 20px);
    padding: clamp(12px, 1.2vw, 16px) clamp(12px, 1.2vw, 16px)
        clamp(12px, 1.2vw, 16px) clamp(16px, 1.8vw, 24px);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-blue);
    border-radius: 999px;
    text-decoration: none;
    transition:
        background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fv-info-ticker:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-2px);
}

.fv-info-ticker__label {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: clamp(12px, 1vw, 15px);
    color: var(--color-blue);
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.fv-info-ticker__title {
    font-family: var(--font-ja);
    font-size: clamp(11px, 0.95vw, 14px);
    color: var(--color-dark);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
}

.fv-info-ticker__arrow {
    width: clamp(30px, 2.4vw, 38px);
    height: clamp(30px, 2.4vw, 38px);
    border-radius: 50%;
    background: var(--color-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 1vw, 14px);
    flex-shrink: 0;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fv-info-ticker:hover .fv-info-ticker__arrow {
    background: var(--color-blue-dk);
}

@media (max-width: 767px) {
    .fv-info-ticker {
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
        bottom: -3%;
    }
}

/* ---- About ---- */
#about {
    background: transparent;
}

.about-inner {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 100px);
}

.about-grid {
    display: block;
}

.about-heading {
    padding-bottom: clamp(40px, 4vw, 72px);
}

.about-heading h1 {
    font-family: var(--font-ja);
    font-size: clamp(32px, 5vw, 88px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    color: var(--color-blue);
}

.about-body {
    max-width: 900px;
}

.about-body p {
    font-family: var(--font-ja);
    font-size: clamp(14px, 1.5vw, 22px);
    line-height: 1.9;
    letter-spacing: 0.1em;
    color: var(--color-blue);
    margin-bottom: 1.6em;
}

.about-acro {
    list-style: none;
    margin: 1.6em 0;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.about-acro li {
    font-family: var(--font-ja);
    font-size: clamp(13px, 1.3vw, 19px);
    line-height: 1.7;
    letter-spacing: 0.1em;
    color: var(--color-blue);
    display: flex;
    align-items: baseline;
    gap: 0.75em;
}

.about-acro span {
    flex-shrink: 0;
    display: inline-block;
    width: 1.2em;
    text-align: center;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.6em;
    letter-spacing: 0;
    line-height: 1;
}

/* ---- Why ARTE? ---- */
#why-arte {
    background: var(--color-blue);
    background-image: url("../../images/WebP/bg-earth-8.webp");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 50% 40vw;
    position: relative;
    overflow: hidden;
    padding-top: clamp(80px, 7vw, 140px);
}

@media (min-width: 1500px) {
    #why-arte {
        background-position: 50% 40vw;
    }
}

#why-arte .section-head .en-heading {
    color: var(--color-white);
}

#why-arte .section-sub {
    color: rgba(255, 255, 255, 0.8);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 56px);
}

.why-card {
    position: relative;
    background: transparent;
    aspect-ratio: 437 / 640;
    padding: 25% 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: initial;
}

.why-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

.why-card-icon,
.why-card h3,
.why-card p {
    position: relative;
    z-index: 1;
}

.why-card-icon {
    height: clamp(80px, 14vw, 220px);
    width: auto;
    flex: 1;
    object-fit: contain;
}

.why-card h3 {
    font-family: var(--font-ja);
    font-size: clamp(21px, 2.1vw, 33px);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-blue);
    flex-shrink: 0;
}

.why-card p {
    font-family: var(--font-ja);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.8;
    letter-spacing: 0.08em;
    color: var(--color-black);
    flex-shrink: 0;
}

/* ---- Services ---- */
#services {
    position: relative;
    padding-top: clamp(40px, 6vw, 100px);
}

.services-deco {
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}

.services-deco img {
    width: 40%;
    height: auto;
    display: block;
}

.services-lead {
    max-width: 900px;
    margin: 0 auto clamp(40px, 5vw, 80px);
    text-align: center;
}

.services-lead h2 {
    font-family: var(--font-ja);
    font-size: clamp(22px, 3vw, 52px);
    font-weight: 700;
    letter-spacing: 0.125em;
    color: var(--color-white);
    margin-bottom: clamp(24px, 3vw, 48px);
    line-height: 1.4;
}

.services-lead p {
    font-family: var(--font-ja);
    font-size: clamp(13px, 1.2vw, 18px);
    line-height: 1.9;
    letter-spacing: 0.1em;
    color: var(--color-white);
    text-align: left;
}

.services-subtitle {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 72px);
}

.services-subtitle h3 {
    font-family: var(--font-ja);
    font-size: clamp(18px, 2.5vw, 44px);
    font-weight: 700;
    letter-spacing: 0.125em;
    color: var(--color-white);
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 32px);
    max-width: 75vw;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--color-white);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    text-align: center;
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8%;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.service-card-en {
    display: block;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 22px);
    letter-spacing: 0.002em;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.service-card h4 {
    font-family: var(--font-ja);
    font-size: clamp(14px, 1.6vw, 24px);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-blue);
    line-height: 1.5;
}

/* ---- Recruit (Top) ---- */
#recruit {
    background: var(--color-white);
    overflow: hidden;
    padding-bottom: clamp(40px, 4vw, 70px);
}

.recruit-head {
    margin-bottom: clamp(48px, 6vw, 96px);
}

.recruit-head .en-heading {
    text-align: left;
}

.recruit-head .section-sub {
    text-align: left;
}

.recruit-catch {
    width: 90%;
    margin-left: auto;
    margin-right: 0;
    margin-top: clamp(-240px, -18vw, -120px);
    margin-bottom: clamp(32px, 4vw, 64px);
    position: relative;
    z-index: 3;
}

.recruit-catch-img {
    width: 100%;
    height: auto;
    display: block;
}

.recruit-photo {
    margin-top: -10vw;
    margin-bottom: clamp(32px, 4vw, 64px);
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: clamp(210px, 24vw, 364px);
}

.recruit-photo-track {
    display: flex;
    gap: 12px;
    height: 100%;
    width: max-content;
    animation: recruit-marquee 24s linear infinite;
    will-change: transform;
}

.recruit-photo-item {
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
}

.recruit-photo-item img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
}

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

@media (prefers-reduced-motion: reduce) {
    .recruit-photo-track {
        animation: none;
    }
}

.recruit-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.recruit-deco {
    position: relative;
    z-index: 2;
    margin-top: -300px;
    margin-left: clamp(32px, 5vw, 80px);
    width: 75%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.recruit-evolve-img {
    width: 100%;
    height: auto;
    display: block;
}

.recruit-content h3 {
    font-family: var(--font-ja);
    font-size: clamp(18px, 2vw, 42px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-blue);
    line-height: 1.5;
    margin-bottom: clamp(20px, 2.5vw, 40px);
}

.recruit-content p {
    font-family: var(--font-ja);
    font-size: clamp(13px, 1.1vw, 17px);
    line-height: 1.9;
    letter-spacing: 0.1em;
    color: var(--color-black);
    text-align: justify;
    margin-bottom: clamp(24px, 3vw, 40px);
}

/* ---- Company (Top) ---- */
#company {
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(40px, 4vw, 70px);
    padding-bottom: clamp(300px, 40vw, 600px);
}

.company-bg {
    position: absolute;
    inset: -25% 0;
    background-image: url("../../images/WebP/alq-hd-map.webp");
    background-repeat: no-repeat;
    background-position: right calc(50% - 120px);
    background-size: 90%;
    will-change: transform;
    z-index: 0;
}

#company .section-inner {
    position: relative;
    z-index: 1;
}

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

.company-content {
    max-width: 100%;
}

.company-circlewrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-circlewrap img {
    width: 100%;
    max-width: 660px;
    height: auto;
    display: block;
}

.company-content .en-heading {
    text-align: left;
    margin-bottom: 8px;
}

.company-content .section-sub {
    text-align: left;
    color: var(--color-blue);
    margin-bottom: clamp(24px, 3vw, 48px);
}

.company-content h3 {
    font-family: var(--font-ja);
    font-size: clamp(22px, 2.5vw, 48px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-blue);
    line-height: 1.4;
    margin-bottom: clamp(20px, 2.5vw, 36px);
}

.company-content p {
    font-family: var(--font-ja);
    font-size: clamp(13px, 1.1vw, 17px);
    line-height: 1.9;
    letter-spacing: 0.1em;
    color: var(--color-black);
    text-align: justify;
    margin-bottom: 1.6em;
}

.company-brands {
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    margin-bottom: clamp(20px, 2.5vw, 36px);
}

.company-brand-img {
    width: clamp(120px, 18vw, 240px);
    height: auto;
}

.company-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-start;
}

/* ---- Information ---- */
#information {
    background: var(--color-paleblue);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vw, 20px);
}

.info-item {
    background: var(--color-white);
    border: 1px solid var(--color-blue);
    border-radius: 4px;
    padding: clamp(20px, 2.5vw, 36px) clamp(24px, 3vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 32px);
    transition: box-shadow 0.25s ease;
}

.info-item:hover {
    box-shadow: 0 4px 20px rgba(0, 18, 181, 0.12);
}

.info-item__body {
    flex: 1;
    min-width: 0;
}

.info-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 4px 12px;
    background: var(--color-blue);
    color: var(--color-white);
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.08em;
    border-radius: 2px;
    flex-shrink: 0;
}

.info-date {
    font-family: var(--font-ja);
    font-size: clamp(12px, 1vw, 15px);
    color: rgba(0, 18, 181, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

.info-title {
    font-family: var(--font-ja);
    font-size: clamp(14px, 1.3vw, 20px);
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1.5;
}

.info-text {
    font-family: var(--font-ja);
    font-size: clamp(12px, 1vw, 16px);
    color: var(--color-dark);
    line-height: 1.8;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

.info-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--color-blue);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.info-item:hover .info-arrow {
    background: var(--color-blue);
    color: var(--color-white);
}

.info-more {
    margin-top: clamp(32px, 4vw, 56px);
    text-align: center;
}

/* ============================================================
   Top Page Responsive
   ============================================================ */
@media (max-width: 768px) {
    /* 1st View */
    #firstview {
        padding-top: 64px;
        min-height: 70svh;
    }

    .fv-logo {
        padding: 16px 0 0 20px;
    }

    .fv-logo img {
        height: 40px;
    }

    /* About */
    .about-heading h1 {
        font-size: clamp(28px, 7vw, 52px);
    }

    .about-body p,
    .about-acro li {
        font-size: clamp(14px, 3.5vw, 18px);
    }

    /* Why ARTE? */
    #why-arte {
        background-size: 164%;
        background-position: 50% 85%;
        padding-top: clamp(48px, 8vw, 80px);
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .why-grid .why-card:last-child {
        grid-column: 1 / -1;
        width: 56%;
        margin: 0 auto;
        margin-top: -7%;
    }

    .why-card {
        padding: 20% 8%;
    }

    .why-card h3 {
        font-size: clamp(14px, 3.6vw, 20px);
    }

    .why-card p {
        font-size: clamp(11px, 2.8vw, 15px);
    }

    .why-card p br {
        display: none;
    }

    .why-card-icon {
        height: auto;
        width: 90%;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 100%;
    }

    .service-card-en {
        font-size: clamp(12px, 3vw, 16px);
    }

    .service-card h4 {
        font-size: clamp(12px, 3vw, 16px);
    }

    .services-deco img {
        width: 60%;
    }

    .services-lead h2 {
        font-size: clamp(20px, 5vw, 32px);
    }

    .services-subtitle h3 {
        font-size: clamp(16px, 4vw, 24px);
    }

    /* Recruit */
    .recruit-head .en-heading {
        font-size: clamp(40px, 10vw, 72px);
    }

    .recruit-head {
        margin-bottom: clamp(24px, 4vw, 40px);
    }

    .recruit-catch {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
    }

    .recruit-body {
        grid-template-columns: 1fr;
    }

    .recruit-deco {
        display: none;
    }

    .recruit-content h3 {
        font-size: clamp(18px, 5vw, 28px);
    }

    .recruit-content p {
        font-size: clamp(13px, 3.5vw, 16px);
    }

    /* Company (Top) */
    #company {
        padding-bottom: clamp(40px, 8vw, 80px);
    }

    .company-body {
        grid-template-columns: 1fr;
    }

    .company-content .en-heading {
        font-size: clamp(40px, 10vw, 72px);
    }

    .company-content h3 {
        font-size: clamp(20px, 5vw, 32px);
    }

    .company-circlewrap img {
        max-width: 400px;
    }

    /* Information */
    .info-item {
        padding: 20px;
    }

    .info-arrow {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .about-heading h1 {
        font-size: clamp(22px, 6vw, 28px);
    }

    #firstview {
        overflow-x: clip;
    }

    .fv-stage {
        top: -60px;
        transform: scale(1.3) translateY(24px);
        transform-origin: center top;
    }

    .fv-stage.is-visible {
        transform: scale(1.3) translateY(0);
    }

    .company-bg {
        background-position: right 55%;
        background-size: 90%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .service-card-en {
        font-size: clamp(16px, 3vw, 22px);
    }

    .service-card h4 {
        font-size: clamp(16px, 3vw, 22px);
    }

    #why-arte {
        background-size: 150%;
        background-position: 50% 110%;
    }

    .company-circlewrap {
        margin-top: clamp(24px, 4vw, 48px);
    }
}
