/* ========================================
   スクロールプログレスバー
======================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #CC3333 0%, #A02828 100%);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ========================================
   ローディング画面
======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden;
}

/* 白い背景 */
.loading-white-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000;
}

/* 白い背景を右にスライド */
.loading-white-bg.slide {
    animation: whiteSlideOut 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.loading-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
}

.loading-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: logoFadeInOut 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 赤いオーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #CC3333;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
}

/* 赤いオーバーレイが表示されて右にスライド */
.loading-overlay.active {
    animation: redSlideOut 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ロゴが下から上へフェードイン→静止→フェードアウト */
@keyframes logoFadeInOut {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    25% {
        opacity: 1;
        transform: translateY(0);
    }
    75% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 赤い画面が表示されて右にスライド */
@keyframes redSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(100%);
    }
}

/* 白い画面が右にスライド */
@keyframes whiteSlideOut {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .loading-logo img {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   リセット & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #CC3333;
    --primary-dark: #A02828;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f8f8f8;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    display: block;
}

.logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-top: 2px;
    font-weight: 300;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

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

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .logo-image {
        height: 28px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        display: block;
        padding: 20px 0;
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ========================================
   メインビジュアル
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    overflow: hidden;
}

.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(204, 51, 51, 0.03) 100px,
            rgba(204, 51, 51, 0.03) 101px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(204, 51, 51, 0.03) 100px,
            rgba(204, 51, 51, 0.03) 101px
        );
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--bg-white);
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 51, 51, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--bg-white);
    animation: fadeInUp 1s ease 0.8s both;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 300;
    display: inline-block;
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--bg-white), transparent);
    margin: 0 auto;
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollAnimation {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(20px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .hero-button {
        padding: 15px 40px;
        font-size: 14px;
    }

    .sp-only {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }
}

/* ========================================
   セクション共通
======================================== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-gray {
    background-color: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* ========================================
   会社紹介
======================================== */
.about {
    position: relative;
    z-index: 10;
    background-color: var(--bg-white);
}

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

.about-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.about-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 20px;
}

.about-description:last-child {
    margin-bottom: 0;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: visible;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* スライドイン効果 */
.about-image.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* 枠線アニメーション用の疑似要素 */
.about-image::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    opacity: 0;
    z-index: 1;
}

.about-image.border-animated::before {
    animation: drawBorder 1.5s ease-out forwards;
}

@keyframes drawBorder {
    0% {
        opacity: 0;
        clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    }
    25% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    75% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.about-factory-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.15) contrast(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
    border-radius: 8px;
}

/* ホバー時の明るさアップ＋影強調 */
.about-image:hover .about-factory-img {
    filter: brightness(1.25) contrast(1.08);
}

.about-image:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-heading {
        font-size: 24px;
    }
}

/* ========================================
   事業内容
======================================== */
.business {
    background-color: var(--bg-white);
}

.business-content {
    max-width: 1000px;
    margin: 0 auto;
}

.business-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: visible;
    box-shadow: var(--shadow);
    position: relative;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* スライドイン効果（右から） */
.business-image.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* 枠線アニメーション用の疑似要素 */
.business-image::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    opacity: 0;
    z-index: 1;
}

.business-image.border-animated::before {
    animation: drawBorder 1.5s ease-out forwards;
}

.business-factory-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: filter 0.4s ease, transform 0.4s ease;
    border-radius: 8px;
}

/* ホバー時の明るさアップ＋影強調 */
.business-image:hover .business-factory-img {
    filter: brightness(1.2) contrast(1.05);
}

.business-image:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.business-card {
    background-color: var(--bg-white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.business-icon {
    margin-bottom: 30px;
}

.business-icon svg {
    margin: 0 auto;
}

.business-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.business-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 40px;
}

.business-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.business-features li {
    position: relative;
    padding-left: 30px;
    text-align: left;
    font-size: 15px;
    color: var(--text-gray);
}

.business-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.business-features li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .business-card {
        padding: 40px 30px;
    }

    .business-title {
        font-size: 24px;
    }

    .business-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================
   会社概要
======================================== */
.company {
    background-color: var(--bg-white);
}

.company-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.company-table tr:last-child {
    border-bottom: none;
}

.company-table th,
.company-table td {
    padding: 25px 30px;
    text-align: left;
}

.company-table th {
    width: 200px;
    background-color: var(--bg-gray);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
}

.company-table td {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.company-table td a {
    color: var(--primary-color);
    text-decoration: underline;
}

.company-table td a:hover {
    color: var(--primary-dark);
}

.company-map {
    max-width: 900px;
    margin: 60px auto 0;
}

.company-map-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.company-map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.company-map-wrapper iframe {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .company-table th {
        padding-bottom: 10px;
        font-size: 13px;
    }

    .company-table td {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .company-map-title {
        font-size: 20px;
    }

    .company-map-wrapper iframe {
        height: 300px;
    }
}

/* ========================================
   沿革
======================================== */
.history {
    background-color: var(--bg-white);
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    gap: 40px;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.history-year {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 150px;
    position: relative;
}

.history-year::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: var(--border-color);
}

.history-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        gap: 15px;
        padding: 25px 20px;
    }

    .history-year {
        font-size: 18px;
        min-width: auto;
    }

    .history-year::after {
        display: none;
    }
}

/* ========================================
   製品概要
======================================== */
.products {
    background-color: var(--bg-white);
}

.products-intro {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 50px;
}

.products-table-wrapper {
    max-width: 1000px;
    margin: 0 auto 60px;
    overflow-x: auto;
}

.products-table {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.products-table thead {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.products-table th {
    padding: 20px 15px;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
}

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

.products-table tbody tr:last-child {
    border-bottom: none;
}

.products-table tbody tr:hover {
    background-color: #fafafa;
}

.products-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: var(--text-gray);
}

.products-process {
    max-width: 1000px;
    margin: 0 auto;
}

.products-process-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

.products-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-item {
    background-color: var(--bg-white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.process-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.process-number {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.3;
}

.process-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.process-item p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .products-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-table-wrapper {
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .products-process-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   製造設備
======================================== */
.facilities {
    background-color: var(--bg-white);
}

.facilities-content {
    max-width: 1000px;
    margin: 0 auto;
}

.facilities-table-wrapper {
    overflow-x: auto;
}

.facilities-table {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.facilities-table thead {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.facilities-table th {
    padding: 20px 15px;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
}

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

.facilities-table tbody tr:last-child {
    border-bottom: none;
}

.facilities-table tbody tr:hover {
    background-color: #fafafa;
}

.facilities-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .facilities-table-wrapper {
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
}

/* ========================================
   試験検査
======================================== */
.inspection {
    background-color: var(--bg-white);
}

.inspection-intro {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 50px;
}

.inspection-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.inspection-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.inspection-table {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
    margin-bottom: 30px;
}

.inspection-table thead {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.inspection-table th {
    padding: 15px 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
}

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

.inspection-table tbody tr:last-child {
    border-bottom: none;
}

.inspection-table tbody tr:hover {
    background-color: #fafafa;
}

.inspection-table td {
    padding: 15px 12px;
    font-size: 13px;
    color: var(--text-gray);
}

.inspection-types-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inspection-type-card {
    background-color: var(--bg-white);
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.inspection-type-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.inspection-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.inspection-type-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.inspection-type-card p {
    font-size: 13px;
    color: var(--text-gray);
}

@media (max-width: 968px) {
    .inspection-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .inspection-table {
        font-size: 12px;
    }

    .inspection-table th,
    .inspection-table td {
        padding: 12px 8px;
    }
}

/* ========================================
   お問い合わせ
======================================== */
.contact {
    background-color: var(--bg-gray);
    position: relative;
    z-index: 10;
}

.contact-intro {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.contact-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.contact-tel,
.contact-email,
.contact-fax {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-tel a,
.contact-email a {
    color: var(--primary-color);
}

.contact-tel a:hover,
.contact-email a:hover {
    color: var(--primary-dark);
}

.contact-time {
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 968px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-item {
        padding: 30px 25px;
    }
}

/* ========================================
   グループ会社
======================================== */
.group-companies {
    background-color: var(--bg-white);
    position: relative;
    z-index: 10;
    padding: 60px 0;
}

.group-companies .section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.group-companies-content {
    text-align: center;
}

.group-company-banner {
    max-width: 600px;
    margin: 0 auto;
}

.group-company-banner a {
    display: block;
    padding: 40px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.group-company-banner a:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.banner-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.4s ease;
}

.group-company-banner a:hover .banner-image {
    transform: scale(1.05);
}

.banner-business {
    list-style: none;
    padding: 0;
    margin: 20px auto 0;
    text-align: center;
    max-width: 450px;
}

.banner-business li {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 2;
    position: relative;
}

.banner-business li::before {
    content: "•";
    margin-right: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 968px) {
    .group-company-banner {
        max-width: 100%;
    }

    .group-company-banner a {
        padding: 30px 20px;
    }

    .banner-image {
        max-width: 280px;
    }

    .banner-caption {
        font-size: 14px;
    }
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: #2a2a2a;
    color: var(--bg-white);
    padding: 60px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.footer-address,
.footer-tel,
.footer-fax {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 30px;
    }

    .footer-nav {
        gap: 40px;
    }

    .footer-bottom {
        padding-top: 20px;
    }
}

/* フッター内プライバシーポリシー */
.footer-privacy {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-privacy-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.footer-privacy-content {
    max-width: 900px;
}

.footer-privacy-text {
    font-size: 10px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    text-align: justify;
    margin-bottom: 8px;
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: var(--bg-white);
}

.footer-privacy-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
}

@media (max-width: 768px) {
    .footer-privacy {
        margin-top: 30px;
        padding: 20px 0;
    }

    .footer-privacy-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-privacy-text {
        font-size: 9px;
        line-height: 1.6;
    }
    
    .footer-privacy-date {
        font-size: 8px;
    }
}

/* ========================================
   フローティングお問い合わせボタン
======================================== */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(204, 51, 51, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(204, 51, 51, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), #8a2222);
}

.floating-contact-btn svg {
    width: 20px;
    height: 20px;
}

/* スクロール時のアニメーション */
.floating-contact-btn {
    animation: floatingBounce 3s ease-in-out infinite;
}

@keyframes floatingBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.floating-contact-btn:hover {
    animation: none;
}

@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .floating-contact-btn span {
        display: none;
    }
    
    .floating-contact-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .floating-contact-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   セクション区切りラインアニメーション
======================================== */
.section {
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.8s ease;
}

.section.line-animated::after {
    width: 80%;
}

@media (max-width: 768px) {
    .section.line-animated::after {
        width: 90%;
    }
}
