/* Service Page Specific Styles */

/* Ensure body is scrollable on service page */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
    background-color: #000000;
}

/* Page Background Slideshow (トップページのhero-backgroundと同様) */
.page-background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.page-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-bg-slide.active {
    opacity: 0.3;
}

/* Header always white background on service page - High specificity */
.header,
.header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* Ensure all header elements are black on service page */
.header .logo a,
.header.scrolled .logo a {
    color: var(--color-black) !important;
}

.header .nav-list a,
.header.scrolled .nav-list a {
    color: var(--color-black) !important;
}

.header .header-social a svg,
.header.scrolled .header-social a svg {
    color: var(--color-black) !important;
}

.header .hamburger span,
.header.scrolled .hamburger span {
    background: var(--color-black) !important;
}

.header .nav-contact-btn,
.header.scrolled .nav-contact-btn {
    background: var(--color-steel-blue) !important;
    color: var(--color-white) !important;
}

/* Page Hero Section */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: var(--header-height);
}

.page-hero-background {
    display: none;
}

.page-hero-image {
    display: none;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(45, 55, 72, 0.2));
    z-index: 1;
}

/* Technical Grid Background */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(70, 130, 180, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 130, 180, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 2;
}

/* Rivets Pattern */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(70, 130, 180, 0.2) 2px, transparent 2px);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.page-hero-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    animation: heroFadeIn 1.2s ease;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: var(--color-steel-blue-light);
    transition: var(--transition-base);
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-steel-blue-light);
    transition: var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--color-steel-blue);
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: var(--color-white);
}

/* Page Hero Title */
.page-hero-title {
    text-align: left;
    position: relative;
}

.page-hero-title-en {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-steel-blue-light);
    margin-bottom: var(--spacing-xs);
}

.page-hero-title-ja {
    display: block;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--color-white);
    text-shadow: 
        0 0 40px rgba(70, 130, 180, 0.5),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    padding-left: 2rem;
}

/* Diagonal Cut Line Decoration */
.page-hero-title-ja::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) skewY(-15deg);
    width: 8px;
    height: 120%;
    background: linear-gradient(180deg, var(--color-steel-blue), var(--color-steel-blue-light));
    box-shadow: 0 0 30px rgba(70, 130, 180, 0.7);
}

/* Service Intro Section */
.service-intro {
    background: transparent;
    padding: var(--spacing-xl) 0 var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.service-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(
        135deg,
        rgba(70, 130, 180, 0.15) 0%,
        rgba(45, 55, 72, 0.25) 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 80px rgba(70, 130, 180, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    border: 2px solid rgba(70, 130, 180, 0.3);
}

.service-intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-intro-content:hover {
    background: linear-gradient(
        135deg,
        rgba(70, 130, 180, 0.2) 0%,
        rgba(45, 55, 72, 0.3) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    box-shadow: 
        0 25px 70px rgba(70, 130, 180, 0.4),
        inset 0 0 100px rgba(70, 130, 180, 0.15);
    border-color: var(--color-steel-blue);
}

/* Diagonal accent lines */
.service-intro-content::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, var(--color-steel-blue) 50%);
    opacity: 0.5;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Corner rivets */
.service-intro-content::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 8px;
    height: 8px;
    background: var(--color-steel-blue);
    border-radius: 50%;
    box-shadow: 
        calc(100% - 60px) 0 0 var(--color-steel-blue),
        0 calc(100% - 90px) 0 var(--color-steel-blue),
        calc(100% - 90px) calc(100% - 90px) 0 var(--color-steel-blue),
        0 0 15px rgba(70, 130, 180, 0.8);
    pointer-events: none;
    z-index: 3;
}

/* Grid pattern overlay */
.service-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(70, 130, 180, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 130, 180, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.service-intro-text {
    font-size: 1.2rem;
    line-height: 2.2;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-intro-text:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--color-white);
}

/* Main Services Section */
.main-services {
    background: rgba(0, 0, 0, 0.9);
    padding: var(--spacing-2xl) 0;
    position: relative;
}

/* Technical Grid Background */
.main-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(70, 130, 180, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 130, 180, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Service Overview Header (moved into main-services) */
.main-services .service-overview-header {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.main-services .service-overview-header .section-title-ja {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    color: var(--color-white);
    padding-left: 2rem;
    position: relative;
}

/* Diagonal Cut Line Decoration */
.main-services .service-overview-header .section-title-ja::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) skewY(-15deg);
    width: 8px;
    height: 120%;
    background: linear-gradient(180deg, var(--color-steel-blue), var(--color-steel-blue-light));
    box-shadow: 0 0 20px rgba(70, 130, 180, 0.5);
}

.main-services .section-title-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-steel-blue), transparent);
    margin-left: 2rem;
    box-shadow: 0 0 10px rgba(70, 130, 180, 0.5);
}

/* Service Overview Content (moved into main-services) */
.main-services .service-overview-content {
    max-width: 1200px;
    margin: 0 0 var(--spacing-2xl) 0;
}

.main-services .service-overview-text {
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
}

.main-services .service-overview-text:last-child {
    margin-bottom: 0;
}

/* Service Detail Block */
.service-detail-block {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: rgba(26, 26, 26, 0.7);
    border: 2px solid rgba(70, 130, 180, 0.3);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    position: relative;
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

.service-detail-block:last-child {
    margin-bottom: 0;
}

/* Metal plate effect */
.service-detail-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-steel-blue), var(--color-steel-blue-light));
    transition: var(--transition-slow);
    box-shadow: 0 0 15px rgba(70, 130, 180, 0.5);
}

/* Corner rivets */
.service-detail-block::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 8px;
    height: 8px;
    background: var(--color-steel-blue);
    border-radius: 50%;
    box-shadow: 
        calc(100% - 60px) 0 0 var(--color-steel-blue),
        0 calc(100% - 60px) 0 var(--color-steel-blue),
        calc(100% - 60px) calc(100% - 60px) 0 var(--color-steel-blue),
        0 0 10px rgba(70, 130, 180, 0.5);
    pointer-events: none;
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-detail-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(70, 130, 180, 0.4);
    line-height: 1;
    text-shadow: 0 0 30px rgba(70, 130, 180, 0.6);
    letter-spacing: 0.05em;
}

.service-detail-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.service-detail-content.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.service-detail-content.reverse .service-detail-image {
    order: 2;
}

.service-detail-content.reverse .service-detail-text {
    order: 1;
}

.service-detail-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    background: var(--color-battleship-gray);
    border: 2px solid var(--color-battleship-gray-light);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(70, 130, 180, 0.2);
}

/* Image frame */
.service-detail-image::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(70, 130, 180, 0.3);
    pointer-events: none;
    z-index: 2;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
    transition: var(--transition-slow);
}

.service-detail-block:hover .service-detail-image img {
    transform: scale(1.05);
    filter: contrast(1.15) brightness(1);
}

.service-detail-text {
    padding: var(--spacing-md) 0;
}

.service-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-steel-blue-light);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

/* Title decoration line */
.service-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--color-steel-blue);
    box-shadow: 0 0 10px rgba(70, 130, 180, 0.5);
}

.service-description {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.service-note {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-steel-blue-light);
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(70, 130, 180, 0.1);
    border-left: 3px solid var(--color-steel-blue);
}

/* Service List Box */
.service-list-box {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid rgba(70, 130, 180, 0.3);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    position: relative;
}

/* Corner accent */
.service-list-box::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 6px;
    height: 6px;
    background: var(--color-steel-blue);
    border-radius: 50%;
    box-shadow: 
        calc(100% - 30px) 0 0 var(--color-steel-blue),
        0 calc(100% - 30px) 0 var(--color-steel-blue),
        calc(100% - 30px) calc(100% - 30px) 0 var(--color-steel-blue);
}

.service-list-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-steel-blue-light);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xs);
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--color-steel-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(70, 130, 180, 0.6);
}

/* Safety & Quality Section */
.safety-quality {
    background: rgba(13, 13, 13, 0.8);
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

/* Technical Grid Background */
.safety-quality::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(70, 130, 180, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 130, 180, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Rivets Pattern */
.safety-quality::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(70, 130, 180, 0.15) 2px, transparent 2px);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.safety-quality .section-container {
    position: relative;
    z-index: 1;
}

.safety-quality-header {
    text-align: left;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.safety-quality-header .section-title-ja {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    color: var(--color-white);
    padding-left: 2rem;
    position: relative;
}

/* Diagonal Cut Line Decoration */
.safety-quality-header .section-title-ja::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) skewY(-15deg);
    width: 8px;
    height: 120%;
    background: linear-gradient(180deg, var(--color-steel-blue), var(--color-steel-blue-light));
    box-shadow: 0 0 20px rgba(70, 130, 180, 0.5);
}

.safety-quality-header .section-title-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-steel-blue), transparent);
    margin-left: 2rem;
    box-shadow: 0 0 10px rgba(70, 130, 180, 0.5);
}

.safety-quality-intro {
    max-width: 900px;
    margin: 0 0 var(--spacing-xl) 0;
}

.safety-quality-intro-text {
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
}

.safety-quality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.safety-quality-card {
    padding: var(--spacing-xl);
    background: rgba(26, 26, 26, 0.7);
    border: 2px solid rgba(70, 130, 180, 0.3);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    position: relative;
    transition: var(--transition-base);
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

.safety-quality-card:nth-child(1) { animation-delay: 0.2s; }
.safety-quality-card:nth-child(2) { animation-delay: 0.4s; }

/* Metal plate effect */
.safety-quality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-steel-blue), var(--color-steel-blue-light));
    transition: var(--transition-slow);
    box-shadow: 0 0 15px rgba(70, 130, 180, 0.5);
}

/* Corner rivets */
.safety-quality-card::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 6px;
    height: 6px;
    background: var(--color-steel-blue);
    border-radius: 50%;
    box-shadow: 
        calc(100% - 40px) 0 0 var(--color-steel-blue),
        0 calc(100% - 40px) 0 var(--color-steel-blue),
        calc(100% - 40px) calc(100% - 40px) 0 var(--color-steel-blue),
        0 0 10px rgba(70, 130, 180, 0.5);
    pointer-events: none;
}

.safety-quality-card:hover {
    background: rgba(45, 55, 72, 0.8);
    border-color: var(--color-steel-blue);
    box-shadow: 
        0 15px 40px rgba(70, 130, 180, 0.3),
        inset 0 0 30px rgba(70, 130, 180, 0.1);
    transform: translateY(-5px);
}

.safety-quality-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.safety-quality-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: rgba(70, 130, 180, 0.15);
    border: 2px solid var(--color-steel-blue);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: var(--transition-base);
}

.safety-quality-icon svg {
    color: var(--color-steel-blue-light);
    transition: var(--transition-base);
}

.safety-quality-card:hover .safety-quality-icon {
    background: rgba(70, 130, 180, 0.3);
    box-shadow: 0 0 30px rgba(70, 130, 180, 0.5);
}

.safety-quality-card:hover .safety-quality-icon svg {
    color: var(--color-white);
}

.safety-quality-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
}

.safety-quality-list {
    list-style: none;
    padding-left: 0;
}

.safety-quality-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
}

.safety-quality-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--color-steel-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(70, 130, 180, 0.6);
}

.safety-quality-footer {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 2px solid rgba(70, 130, 180, 0.3);
    position: relative;
}

/* Accent line on border */
.safety-quality-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--color-steel-blue);
    box-shadow: 0 0 10px rgba(70, 130, 180, 0.5);
}

.safety-quality-footer-text {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Active nav link */
.nav-list a.active {
    color: var(--color-steel-blue);
}

.nav-list a.active::before {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .service-detail-content,
    .service-detail-content.reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-detail-content.reverse .service-detail-image,
    .service-detail-content.reverse .service-detail-text {
        order: unset;
    }
    
    .service-detail-image {
        height: 350px;
    }
    
    .safety-quality-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    /* Mobile: Change body background to scroll for better performance */
    body {
        background-attachment: scroll !important;
    }
    
    .page-bg-slide {
        background-attachment: scroll !important;
    }
    
    .page-hero {
        height: 50vh;
        min-height: 350px;
        margin-top: 70px;
    }
    
    .page-hero-title-ja {
        font-size: clamp(2rem, 10vw, 3.5rem);
        padding-left: 1.5rem;
    }
    
    /* Service Intro Mobile */
    .service-intro-content {
        padding: var(--spacing-lg) var(--spacing-md);
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
    }
    
    .service-intro-content::before {
        width: 50px;
        height: 50px;
    }
    
    .service-intro-content::after {
        top: 20px;
        left: 20px;
        width: 6px;
        height: 6px;
        box-shadow: 
            calc(100% - 40px) 0 0 var(--color-steel-blue),
            0 calc(100% - 60px) 0 var(--color-steel-blue),
            calc(100% - 60px) calc(100% - 60px) 0 var(--color-steel-blue),
            0 0 10px rgba(70, 130, 180, 0.8);
    }
    
    .service-intro-text {
        font-size: 1rem;
        line-height: 2;
    }
    
    .main-services .service-overview-header .section-title-ja {
        padding-left: 1.5rem;
    }
    
    .main-services .section-title-decoration {
        margin-left: 1.5rem;
    }
    
    .service-intro-text br.pc-only,
    .service-overview-text br,
    .service-description br,
    .safety-quality-intro-text br {
        display: none;
    }
    
    .service-detail-block {
        padding: var(--spacing-md);
    }
    
    .service-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .service-detail-number {
        font-size: 3.5rem;
    }
    
    .service-detail-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .service-detail-image {
        height: 250px;
    }
    
    .safety-quality-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .service-detail-image {
        height: 200px;
    }
    
    .service-overview-header .section-title-ja,
    .main-services .service-overview-header .section-title-ja,
    .safety-quality-header .section-title-ja {
        padding-left: 1.5rem;
    }
    
    .section-title-decoration,
    .main-services .section-title-decoration,
    .safety-quality-header .section-title-decoration {
        margin-left: 1.5rem;
    }
    
    .service-intro-content {
        padding: var(--spacing-md);
    }
}