/* =========================================
   西口建設 デモサイト CSS
   ========================================= */

/* ---- Variables ---- */
:root {
    --blue-dark: #1a3f8f;
    --blue-mid: #2456cc;
    --blue-light: #eef2fb;
    --btn-dark: #1a1a2e;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f7f8fa;
    --border: #e5e5e5;
    --white: #ffffff;
    --max-width: 1200px;
    --header-h: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section-pad { padding: 100px 0; }
.bg-light { background: var(--bg-light); }

.section-bg-text {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(60px, 10vw, 140px);
    color: rgba(0, 0, 0, 0.04);
    letter-spacing: 0.05em;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 60px;
    line-height: 1.3;
}

.section-sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-mid);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.section-label-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--blue-mid);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 50px;
    font-size: 14px;
    line-height: 1.7;
}

/* ---- Fade-in Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0 0 32px;
    gap: 40px;
}

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

.logo-mark {
    width: 38px;
    height: 38px;
    background: var(--blue-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-dark);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.header-nav {
    flex: 1;
}

.header-nav ul {
    display: flex;
    gap: 36px;
}

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-mid);
    transition: width 0.3s ease;
}

.header-nav a:hover { color: var(--blue-mid); }
.header-nav a:hover::after { width: 100%; }

.header-cta {
    display: flex;
    flex-shrink: 0;
    height: 100%;
}

.btn-contact,
.btn-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    height: 100%;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-contact { background: var(--btn-dark); }
.btn-entry { background: var(--blue-mid); }
.btn-contact:hover,
.btn-entry:hover { opacity: 0.85; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    margin-right: 20px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--blue-dark);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- SP Menu ---- */
.sp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 130;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sp-overlay.active { opacity: 1; }

.sp-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100dvh;
    background: var(--blue-dark);
    z-index: 140;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: calc(var(--header-h) + 40px) 36px 40px;
    flex-direction: column;
    gap: 0;
}

.sp-menu.active { right: 0; }

.sp-menu ul {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sp-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }

.sp-link {
    display: block;
    padding: 18px 0;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.sp-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-btn-contact,
.sp-btn-entry {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
}

.sp-btn-contact { background: var(--btn-dark); }
.sp-btn-entry { background: var(--blue-mid); }

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    margin-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 25, 60, 0.7) 0%,
        rgba(10, 25, 60, 0.35) 60%,
        rgba(10, 25, 60, 0.1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 60px;
    transition-delay: 0.2s;
}

.hero-catch {
    font-size: clamp(28px, 4.5vw, 58px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/* =========================================
   NEWS TICKER
   ========================================= */
.news-bar {
    background: var(--white);
    border-top: 3px solid var(--blue-mid);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.news-inner {
    display: flex;
    align-items: center;
    height: 56px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    gap: 20px;
}

.news-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--blue-mid);
    background: var(--blue-light);
    padding: 4px 12px;
    flex-shrink: 0;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 20px;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
}

.ticker-item {
    font-size: 13px;
    color: var(--text-light);
    margin-right: 80px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.news-all {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-dark);
    flex-shrink: 0;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.news-all:hover { opacity: 0.6; }

/* =========================================
   MESSAGE
   ========================================= */
.message {
    position: relative;
    overflow: hidden;
}

.message-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.message-text {
    font-size: 15px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 40px;
}

.dot-map {
    position: relative;
    width: 160px;
    height: 100px;
    background:
        radial-gradient(circle, var(--blue-mid) 1.5px, transparent 1.5px) 0 0 / 8px 8px,
        radial-gradient(circle, rgba(36,86,204,0.3) 1px, transparent 1px) 4px 4px / 8px 8px;
    mask-image: ellipse(70px 45px at center);
    -webkit-mask-image: radial-gradient(ellipse 80px 50px at center, black 60%, transparent 100%);
    margin-top: 20px;
}

.dot-map-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--blue-mid);
    font-weight: 500;
    white-space: nowrap;
}

.message-right img {
    border-radius: 2px;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-section {
    overflow: hidden;
    width: 100%;
    padding: 0;
    background: var(--white);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeSlide 30s linear infinite;
}

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

.marquee-item {
    flex-shrink: 0;
    margin-right: 16px;
    overflow: hidden;
}

.marquee-item img {
    width: 380px;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.marquee-item:hover img { transform: scale(1.04); }

@keyframes marqueeSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   POINT
   ========================================= */
.point {
    position: relative;
    overflow: hidden;
}

.point-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.point-item:last-child { margin-bottom: 0; }

.point-item--reverse .point-text { order: 2; }
.point-item--reverse .point-img  { order: 1; }

.point-num {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.pn-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--blue-mid);
    margin-top: 16px;
}

.pn-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: rgba(26, 63, 143, 0.1);
    line-height: 1;
}

.point-text h3 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

.point-text p {
    font-size: 14px;
    line-height: 2;
    color: var(--text-light);
}

.point-img-wrap {
    position: relative;
}

.point-img-wrap img {
    border-radius: 2px;
}

.point-img-deco {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--blue-mid);
    z-index: -1;
    border-radius: 2px;
}

/* =========================================
   SERVICE
   ========================================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(36, 86, 204, 0.12);
}

.service-img {
    overflow: hidden;
    height: 220px;
}

.service-img img {
    height: 100%;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img { transform: scale(1.05); }

.service-body {
    padding: 28px 24px 32px;
}

.service-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--blue-dark);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-dark);
    border-radius: 40px;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: var(--blue-dark);
    color: var(--white);
}

.btn-outline .arrow { transition: transform 0.25s ease; }
.btn-outline:hover .arrow { transform: translateX(4px); }

/* =========================================
   WORKS
   ========================================= */
.works-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.filter-btn {
    background: none;
    border: none;
    padding: 14px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    margin-bottom: -1px;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-mid);
    transition: width 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover { color: var(--blue-mid); }
.filter-btn.active::after,
.filter-btn:hover::after { width: 100%; }
.filter-btn.active { font-weight: 700; }

.works-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.works-item {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.works-item.hidden { display: none; }

.works-img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 8px;
}

.works-img img {
    height: 100%;
    transition: transform 0.45s ease;
}

.works-item:hover .works-img img { transform: scale(1.06); }

.works-item p {
    font-size: 13px;
    color: var(--text-light);
}

.works-more {
    text-align: center;
}

/* =========================================
   COMPANY
   ========================================= */
.company-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid var(--border);
}

.company-table th,
.company-table td {
    padding: 20px 24px;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 180px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.company-table td { color: var(--text); }

.map-link {
    color: var(--blue-mid);
    font-size: 13px;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.map-link:hover { opacity: 0.7; }

/* =========================================
   RECRUIT CTA
   ========================================= */
.recruit-cta {
    padding: 80px 0 100px;
    background: var(--white);
}

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

.recruit-text-top h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.4;
}

.recruit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    margin: 0 auto;
}

.recruit-img {
    overflow: hidden;
    aspect-ratio: unset;
}

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

.recruit-box {
    background: var(--blue-mid);
    color: var(--white);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.recruit-box-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.recruit-box h3 {
    font-size: 22px;
    font-weight: 700;
}

.recruit-box p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.9;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--blue-mid);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 40px;
    margin-top: 8px;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.btn-white:hover { opacity: 0.85; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.footer-inner {
    padding-top: 56px;
    padding-bottom: 56px;
}

.footer-nav {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 60px;
}

.footer-main-links {
    display: flex;
    gap: 32px;
}

.footer-main-links a {
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.2s;
}

.footer-main-links a:hover { color: var(--blue-mid); }

.footer-recruit-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-recruit-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.footer-recruit-links ul {
    display: flex;
    gap: 24px;
}

.footer-recruit-links a {
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.2s;
}

.footer-recruit-links a:hover { color: var(--blue-mid); }

.footer-copy {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* =========================================
   RESPONSIVE — Tablet (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .header-cta { display: none; }
    .hamburger { display: flex; }
    .sp-overlay { display: block; pointer-events: none; }
    .sp-menu { display: flex; }

    .message-layout { gap: 48px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .works-grid { grid-template-columns: repeat(4, 1fr); }
    .point-item { gap: 48px; }
}

/* =========================================
   RESPONSIVE — Mobile (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .container { padding: 0 20px; }
    .section-pad { padding: 60px 0; }

    .logo-text { font-size: 12px; }

    .hero { min-height: 520px; height: 80svh; }
    .hero-content { padding: 0 24px; }
    .hero-catch { font-size: clamp(22px, 7vw, 36px); }

    .news-inner { padding: 0 20px; gap: 12px; }

    .message-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .section-title { margin-bottom: 36px; }

    .marquee-item img { width: 260px; height: 180px; }

    .point-item,
    .point-item--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .point-item--reverse .point-text { order: unset; }
    .point-item--reverse .point-img  { order: unset; }

    .pn-num { font-size: 56px; }
    .point-img-deco { display: none; }

    .service-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }

    .works-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn { white-space: nowrap; }

    .company-table th { width: 110px; }
    .company-table th,
    .company-table td { padding: 14px 12px; }

    .recruit-layout { grid-template-columns: 1fr; }
    .recruit-box { padding: 36px 24px; }

    .footer-nav { flex-direction: column; gap: 28px; justify-content: flex-start; }
    .footer-main-links { flex-wrap: wrap; gap: 16px; }
    .footer-recruit-links ul { flex-wrap: wrap; gap: 16px; }
}
