/* Front page only */
/* Hero Section */
section.hero {
    position: relative;
    display: block;
    min-height: 700px;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    padding: 0;
    color: var(--color-white);
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
    flex-shrink: 0;
    --hero-vertical-shift: clamp(56px, 7.5vh, 96px);
}

.hero .hero-subtitle,
.hero .hero-scroll {
    color: var(--color-white);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #111;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1);
    animation: kenBurns 18s infinite ease-in-out;
}

.slide:nth-of-type(1) {
    animation-delay: 0s;
}

.slide:nth-of-type(2) {
    animation-delay: 6s;
}

.slide:nth-of-type(3) {
    animation-delay: 12s;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

@keyframes kenBurns {
    0% {
        opacity: 0;
        transform: scale(1.15);
    }
    11% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    44% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: scale(1.0);
    }
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content a,
.hero-content button {
    pointer-events: auto;
}

.hero-title {
    position: absolute;
    top: calc(50% - var(--hero-vertical-shift));
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    display: flex;
    justify-content: center;
}

.hero-logo {
    height: clamp(160px, 20vh, 220px);
    width: auto;
    filter: brightness(0) invert(1);
}

.hero-subtitle {
    position: absolute;
    top: calc(50% - var(--hero-vertical-shift) + clamp(80px, 10vh, 110px) + 24px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

/* 450〜768px（ランドスケープのスマホ含む）: ロゴ幅を320pxに固定 */
@media (max-width: 768px) {
    .hero-title {
        width: 320px;
    }

    .hero .hero-logo {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
    }

    .hero-subtitle {
        top: calc(50% - var(--hero-vertical-shift) + 320px * 190.16 / 276.91 / 2 + clamp(16px, 3.5vw, 26px));
        font-size: clamp(0.75rem, 3.2vw, 0.9375rem);
        letter-spacing: clamp(0.03em, 0.2vw, 0.08em);
        line-height: 1.5;
    }
}

/* 450px以下: 従来のSP設定（画面幅の75%） */
@media (max-width: 450px) {
    .hero-title {
        width: 75vw;
    }

    .hero-subtitle {
        top: calc(50% - var(--hero-vertical-shift) + 75vw * 190.16 / 276.91 / 2 + clamp(16px, 3.5vw, 26px));
    }
}

@media (min-width: 1025px) {
    .hero-logo {
        width: calc(210px * 276.91 / 121.06);
        max-width: 90vw;
        height: auto;
    }

    .hero-subtitle {
        top: calc(50% - var(--hero-vertical-shift) + 210px * 190.16 / 121.06 / 2 + 24px);
    }
}

.hero-scroll {
    position: absolute;
    z-index: 2;
    bottom: clamp(16px, 3vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-family: var(--font-en);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: clamp(28px, 5vh, 60px);
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--color-white);
    animation: scroll 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-height: 420px) {
    .hero-scroll {
        bottom: 8px;
        gap: 8px;
        font-size: 0.6875rem;
    }

    .scroll-line {
        height: 18px;
    }
}

/* 低い横長画面（PC幅のみ）: スマホ横向きは320px固定側に任せる */
@media (max-height: 420px) and (min-width: 769px) {
    .hero-logo {
        height: clamp(92px, 28vh, 116px);
    }

    .hero-subtitle {
        top: calc(50% - var(--hero-vertical-shift) + clamp(46px, 14vh, 58px) + 12px);
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@keyframes scroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* About Section */
.front-about {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: var(--color-bg);
}

.about-intro {
    margin-bottom: 120px;
}

.about-vision {
    font-size: 1.5rem;
    color: var(--color-text-light);
    font-weight: 300;
    margin-top: 24px;
    line-height: 1.8;
}

.about-message-button {
    margin-top: 40px;
}

.values-subtitle {
    margin-bottom: 48px;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.value-item {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.value-img {
    margin-bottom: 24px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-border);
}

.value-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-item:hover .value-img img {
    transform: scale(1.05);
}

.value-en {
    display: block;
    font-family: var(--font-en);
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.value-ja {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-desc {
    font-size: 1rem;
    color: var(--color-text-light);
    padding-left: 0.95em;
}

/* Recruit Section */
.front-recruit {
    background-color: var(--color-white);
}

.recruit-inner {
    padding: 80px;
    background-color: var(--color-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.recruit-content {
    max-width: 100%;
}

.recruit-copy-heading {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.6;
}

.recruit-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.recruit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruit-text {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Company & Contact Section */
.info-list {
    border-top: 1px solid var(--color-border-dark);
}

.info-row {
    display: flex;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-row dt {
    width: 160px;
    flex-shrink: 0;
    font-weight: 700;
}

.info-row dd {
    flex-grow: 1;
    color: var(--color-text-light);
    line-height: 1.8;
}

.company-more {
    margin-top: 40px;
}

.contact-info {
    padding-left: 40px;
}

.contact-desc {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* News Section */
.front-news {
    background-color: var(--color-bg);
}

.news-more {
    text-align: center;
}
