/* 基本設定 */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    color: #333;
    touch-action: pan-y;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ヘッダー */
/* --- ヘッダー全体の基本設定（最初は透過） --- */
header {
    /* 【変更】白背景から透明（transparent）に変更 */
    background: transparent; 
    
    /* 【変更】最初は影を消しておく（画像の上で見えるため） */
    box-shadow: none; 
    
    /* 【変更】sticky（追従）から fixed（固定）に変更 */
    /* これでヘッダーが背景画像の上に「重なる」ようになります */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* 【追記】色がジワ〜っと変わるように 0.3秒の余韻をもたせる */
    transition: all 0.3s ease; 
}

/* --- スクロール後にJSで「is-scrolled」という名前がついた時の見た目 --- */
header.is-scrolled {
    /* 【追記】スクロールしたら白背景にする */
    background: #fff; 
    /* 【追記】スクロールしたら影を出して立体感を出す */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.header-inner {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

/* ロゴまわり */
.logo {
    margin: 0;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* --- 社名テキストの色切り替え --- */
.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    
    /* 【変更】最初は「白文字」にする（背景画像が暗いので映える） */
    color: #fff; 
    
    white-space: nowrap;
    /* 【追記】文字の色もジワ〜っと変わるように設定 */
    transition: color 0.3s ease;
}

/* 【追記】スクロールした時だけ、社名を元の「青色」に戻す */
header.is-scrolled .logo-text {
    color: #004da0; 
}

/* --- ナビゲーション（メニュー）の文字色 --- */
.pc-nav ul li a {
    /* 【変更】最初は「白文字」にする */
    color: #fff; 
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 【追記】スクロールした時だけ、メニューを「青（または黒）」にする */
header.is-scrolled .pc-nav ul li a {
    color: #004da0; 
}

/* スマホの時は少し調整 */
@media (max-width: 768px) {
    .header-inner {
        padding: 10px 20px; /* スマホでは端の余白を少し狭める */
    }
    .logo img {
        height: 35px;
    }
    .logo-text {
        font-size: 1.1rem;  /* スマホでは文字を小さくして収める */
    }
}

/* PCナビ */
.pc-nav ul {
    display: flex;
    gap: 20px;
}

.pc-nav a:hover {
    color: #004da0;
}

/* ハンバーガーボタン */
.hamburger {
    display: none; /* PCでは隠す */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 200;
}

/* --- ハンバーガーの「棒」の形と色 --- */
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px; /* ★棒の太さを指定 */
    background-color: #fff; /* ★最初は「白」 */
    transition: all 0.3s ease;
}

/* 3本の棒の位置をそれぞれ固定する */
.hamburger span:nth-child(1) { top: 0; }    /* 1本目：一番上 */
.hamburger span:nth-child(2) { top: 11px; } /* 2本目：真ん中 */
.hamburger span:nth-child(3) { top: 22px; } /* 3本目：一番下 */

/* --- スクロールして白背景になった時 --- */
header.is-scrolled .hamburger span {
    background-color: #004da0; /* ★スクロール後は「紺」に変える */
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* スマホメニュー表示時のボタンアニメーション */
.hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* スマホ用ナビ */
.sp-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 77, 160, 0.95);
    color: #fff;
    z-index: 150;
    padding-top: 80px;
    text-align: center;
}

.sp-nav ul li {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* レスポンシブ設定（スマホの時だけ） */
@media (max-width: 768px) {
    .pc-nav { display: none; }
    .hamburger { display: block; }
    .sp-nav.is-active { display: block; }
}

/* --- メインビジュアル（Hero）エリア --- */
.hero {
    width: 100%;
    /* 1. 高さを固定ではなく「画面幅に応じた比率」にする工夫 */
    height: auto; 
    aspect-ratio: 16 / 9; /* PCで一般的な横長比率を維持（見切れ防止） */
    min-height: 400px;    /* あまりに小さくなりすぎないよう下限を設定 */

    /* 2. 画像の表示設定 */
    
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), /* 40%の黒いカーテン */
            url('../images/hero-bg.jpg'); 
        /* 背景画像は画面に合わせて埋める（余白を作らない） */
        background-size: auto, cover;
        background-position: center; /* 中央を中心に表示 */
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* 文字を囲む枠 */
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.motto-container {
    position: relative;
}

/* 背景に大きく出す英語（SPEED & PRECISION） */
.motto-eng {
    font-size: 8rem; /* かなり大きく */
    font-weight: 900;
    line-height: 0.8;
    color: #fff;
    opacity: 0.1; /* 10%だけ透けさせて背景に馴染ませる */
    position: absolute;
    top: -60px;
    left: -20px;
    font-family: 'Arial Black', sans-serif;
    pointer-events: none; /* 文字が邪魔しないように */
    white-space: nowrap;
}

/* 日本語のメインモットー */
.motto-jp {
    font-size: 3.2rem;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    position: relative;
}

/* 文字の下の青いライン（マーカー風） */
.motto-jp span {
    background: linear-gradient(transparent 70%, rgba(0, 77, 160, 0.8) 70%);
    display: inline-block;
    padding: 0 5px;
}

/* モットーの下の補足テキスト */
.motto-desc {
    font-size: 1.2rem;
    font-weight: 500;
    border-left: 4px solid #fff;
    padding-left: 20px;
    margin-top: 15px;
    letter-spacing: 0.05em;
}

/* --- スマホ用の調整（レスポンシブ） --- */
@media (max-width: 768px) {
    .hero {
        height: 450px; 
        background-size: cover;

        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), /* 40%の黒いカーテン */
            url('../images/hero-sp.jpg');

        /* 2. 画像の「下（bottom）」を基準にする。これで上が削れます */
        background-position: center bottom; 
        
        display: flex;
        /* 3. 上下中央に配置。高さ450pxならこれでちょうど良くなります */
        align-items: center; 
        
        /* 4. ヘッダーとの兼ね合いで微調整。少し下げたいなら残す */
        padding-top: 40px;
        
    }

    .hero-inner {
        padding: 0 30px;
    }

    .motto-jp {
        font-size: 1.8rem; /* スマホで一行が長すぎないサイズ */
        line-height: 1.4;
    }

    .motto-eng {
        font-size: 3.5rem;
        top: -20px;
        left: 10px;
    }
    
    .motto-desc {
        font-size: 1rem;
        padding-left: 15px;
    }
}

    /* --- 主要設備 --- */
    .equipment-section {
        padding: 88px 20px 96px;
        background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    }

    /* --- ホーム --- */
    .home-intro {
        padding: 88px 20px 96px;
        background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    }

    .home-container {
        max-width: 1100px;
        margin: 0 auto;
    }

    .home-lead {
        margin: 14px 0 0;
        line-height: 1.9;
        color: #4b5b70;
        max-width: 760px;
    }

    .home-service-link {
        display: block;
        margin-top: 28px;
        padding: 20px 22px;
        background: #ffffff;
        border: 1px solid #dbe5f1;
        border-left: 6px solid #1e78d7;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(11, 49, 92, 0.06);
        color: inherit;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .home-service-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(11, 49, 92, 0.12);
        border-color: #bcd0e7;
    }

    .home-service-link-label {
        display: inline-block;
        margin-bottom: 8px;
        color: #1e78d7;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.18em;
    }

    .home-service-link-text {
        display: block;
        line-height: 1.9;
        color: #4b5b70;
    }

    .home-links {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 28px;
    }

    .home-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-top: 28px;
    }

    .home-card {
        display: block;
        padding: 24px 22px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        border: 1px solid #dbe5f1;
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(11, 49, 92, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

/* --- Service page additions --- */
.service-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.service-section {
    background: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
    border: 1px solid #e6eef8;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(11,49,92,0.05);
}

.service-card h3 {
    margin-top: 6px;
    margin-bottom: 8px;
    color: #004da0;
    font-size: 1.25rem; /* 少し大きめにしてアイコンがない分を補う */
}

.service-card p { font-size: 1.05rem; line-height: 1.75; color: #43546a; }

.service-features {
    background: linear-gradient(180deg,#f7fbff 0%, #ffffff 100%);
    padding: 40px 0;
}

.strength-hero {
    font-size: clamp(1.1rem, 1.8vw + 0.8rem, 1.6rem);
    font-weight: 800;
    color: #00356e;
    text-align: center;
    margin: 10px 0 18px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.features-list li {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9f2fb;
    box-shadow: 0 6px 20px rgba(11,49,92,0.04);
}

.service-gallery {
    padding: 40px 0;
}

.service-gallery-slider {
    position: relative;
    margin-top: 16px;
}

.service-gallery-viewport {
    position: relative;
    min-height: 490px;
}

.service-gallery-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transition: opacity 0.25s ease;
}

.service-gallery-page.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.service-gallery-page figure {
    margin: 0;
}

.service-gallery-page img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.service-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #004da0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.service-gallery-prev {
    left: -8px;
}

.service-gallery-next {
    right: -8px;
}

.service-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.service-gallery-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: #b7c7db;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.service-gallery-dot.is-active {
    width: 28px;
    background: #1e78d7;
}

.equipment-gallery-slider {
    position: relative;
    margin-top: 16px;
}

.equipment-gallery-viewport {
    position: relative;
    min-height: 390px;
}

.equipment-gallery-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transition: opacity 0.25s ease;
}

.equipment-gallery-page.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.equipment-gallery-item {
    margin: 0;
}

.equipment-gallery-item img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.equipment-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #004da0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.equipment-gallery-prev {
    left: -8px;
}

.equipment-gallery-next {
    right: -8px;
}

.equipment-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.equipment-gallery-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: #b7c7db;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.equipment-gallery-dot.is-active {
    width: 28px;
    background: #1e78d7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 8px; }

.service-contact-cta {
    background: #004da0;
    color: #fff;
    padding: 36px 0;
    text-align: center;
}

.service-contact-cta .service-container { padding: 0 20px; }
.service-contact-cta h3 { margin: 0 0 8px; font-size: 1.6rem; }
.service-contact-cta p { margin: 0 0 16px; opacity: 0.95; }
.cta-button.large { display: inline-block; padding: 14px 22px; background: #ffd100; color: #00253a; border-radius: 10px; font-weight:700; }

@media (max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; }
    .features-list { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .service-gallery-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-gallery-viewport { min-height: 630px; }
    .service-gallery-page img { height: 180px; }
    .equipment-gallery-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .equipment-gallery-viewport { min-height: 520px; }
    .equipment-gallery-item img { height: 155px; }
}

@media (max-width: 480px) {
    .gallery-grid img { height: 130px; }
    .service-gallery-viewport { min-height: 900px; }
    .service-gallery-page { grid-template-columns: 1fr; }
    .service-gallery-page img { height: 190px; }
    .service-gallery-btn { width: 40px; height: 40px; }
    .service-gallery-prev { left: 0; }
    .service-gallery-next { right: 0; }
    .equipment-gallery-page { grid-template-columns: 1fr; }
    .equipment-gallery-viewport { min-height: 800px; }
    .equipment-gallery-item img { height: 170px; }
    .equipment-gallery-btn { width: 40px; height: 40px; }
    .equipment-gallery-prev { left: 0; }
    .equipment-gallery-next { right: 0; }
}

    .home-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(11, 49, 92, 0.12);
        border-color: #bcd0e7;
    }

    .home-card-kicker {
        display: inline-block;
        margin-bottom: 10px;
        color: #1e78d7;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.18em;
    }

    .home-card h3 {
        margin: 0;
        font-size: 1.25rem;
        color: #00356e;
    }

    .home-card p {
        margin: 12px 0 0;
        line-height: 1.8;
        color: #4b5b70;
    }

    .factory-showcase {
        padding: 0 20px 96px;
        background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    }

    .factory-slider {
        position: relative;
        margin-top: 28px;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 24px;
        overflow: hidden;
        background: #0c203c;
        box-shadow: 0 18px 40px rgba(11, 49, 92, 0.16);
    }

    .factory-viewport {
        position: relative;
        aspect-ratio: 4 / 3;
        min-height: 280px;
    }

    .factory-slide {
        position: absolute;
        inset: 0;
        margin: 0;
        opacity: 0;
        transition: opacity 0.45s ease;
    }

    .factory-slide.is-active {
        opacity: 1;
        z-index: 1;
    }

    .factory-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .factory-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 48px;
        height: 48px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.88);
        color: #00356e;
        font-size: 1.9rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .factory-slider-btn:hover {
        transform: translateY(-50%) scale(1.05);
        background: #fff;
    }

    .factory-slider-prev {
        left: 18px;
    }

    .factory-slider-next {
        right: 18px;
    }

    .factory-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 18px;
    }

    .factory-dot {
        width: 10px;
        height: 10px;
        border: none;
        border-radius: 999px;
        background: #b7c7db;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
    }

    .factory-dot.is-active {
        width: 28px;
        background: #1e78d7;
    }

    .home-link-button {
        display: inline-block;
        background: #004da0;
        color: #fff;
        font-weight: 700;
        padding: 14px 28px;
        border-radius: 999px;
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .home-link-button:hover {
        transform: translateY(-2px);
        background: #003b7b;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

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

    .equipment-intro {
        margin-bottom: 28px;
    }

    .section-kicker {
        margin: 0 0 10px;
        color: #1e78d7;
        letter-spacing: 0.2em;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .section-heading {
        margin: 0;
        font-size: 2rem;
        color: #00356e;
        letter-spacing: 0.06em;
    }

    .section-lead {
        margin: 14px 0 0;
        line-height: 1.9;
        color: #4b5b70;
    }

    .equipment-block {
        margin-top: 36px;
    }

    .equipment-block-title {
        margin: 0 0 16px;
        font-size: 1.35rem;
        color: #00356e;
        border-left: 6px solid #1e78d7;
        padding-left: 14px;
        line-height: 1.3;
    }

    .equipment-table-wrap {
        overflow-x: auto;
        background: #fff;
        border: 1px solid #dbe5f1;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(11, 49, 92, 0.06);
    }

    .equipment-table {
        width: 100%;
        min-width: 920px;
        border-collapse: collapse;
    }

    .equipment-table th,
    .equipment-table td {
        border-bottom: 1px solid #e6edf5;
        padding: 14px 12px;
        text-align: left;
        vertical-align: top;
        line-height: 1.6;
    }

    .equipment-table th {
        background: #f3f8fe;
        color: #00356e;
        font-weight: 700;
        white-space: nowrap;
    }

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

    .equipment-table td:nth-child(1) {
        font-weight: 700;
        color: #15395f;
    }

    .equipment-table td:nth-child(2),
    .equipment-table td:nth-child(3),
    .equipment-table td:nth-child(4),
    .equipment-table td:nth-child(5) {
        white-space: nowrap;
    }

    .equipment-block-partner {
        margin-top: 54px;
    }

    @media (max-width: 768px) {
        .home-intro {
            padding: 64px 20px 72px;
        }

        .equipment-section {
            padding: 64px 20px 72px;
        }

        .section-heading {
            font-size: 1.6rem;
        }

        .equipment-block-title {
            font-size: 1.15rem;
        }

        .home-links {
            flex-direction: column;
            align-items: flex-start;
        }

        .home-cards {
            grid-template-columns: 1fr;
        }

        .factory-showcase {
            padding: 0 20px 72px;
        }

        .factory-viewport {
            aspect-ratio: auto;
            min-height: auto;
        }

        .factory-slider {
            padding: 12px;
        }

        .factory-slide {
            position: relative;
            inset: auto;
            margin: 0;
            opacity: 0;
            display: none;
            transition: none;
        }

        .factory-slide.is-active {
            opacity: 1;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .factory-slide-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
        }

        .factory-slide-image {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            display: block;
            border-radius: 14px;
        }

        .factory-dots {
            flex-wrap: wrap;
            padding: 0 10px;
        }

        .factory-slider-btn {
            width: 40px;
            height: 40px;
            font-size: 1.5rem;
        }

        .factory-slider-prev {
            left: 12px;
        }

        .factory-slider-next {
            right: 12px;
        }

        .equipment-table {
            min-width: 760px;
        }

        .equipment-table th,
        .equipment-table td {
            padding: 12px 10px;
            font-size: 0.92rem;
        }
    }

/* --- 会社案内ページ / 主要設備ページ --- */
.company-page,
.equipment-page,
.service-page {
    background: #f4f7fb;
}

.company-page main,
.equipment-page main,
.service-page main {
    padding-top: 76px;
}

.company-page .logo-text,
.company-page .pc-nav ul li a,
.equipment-page .logo-text,
.equipment-page .pc-nav ul li a,
.service-page .logo-text,
.service-page .pc-nav ul li a {
    color: #004da0;
}

.company-page .hamburger span,
.equipment-page .hamburger span,
.service-page .hamburger span {
    background-color: #004da0;
}

.service-section {
    padding: 88px 20px 96px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.service-container {
    max-width: 1100px;
    margin: 0 auto;
}

.service-lead {
    margin: 14px 0 0;
    line-height: 1.9;
    color: #4b5b70;
    max-width: 760px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(11, 49, 92, 0.06);
}

.service-card h3 {
    margin: 0;
    color: #00356e;
    font-size: 1.2rem;
}

.service-card p {
    margin: 12px 0 0;
    line-height: 1.8;
    color: #4b5b70;
}

.service-note {
    margin-top: 30px;
    padding: 16px 18px;
    background: #eef6ff;
    border-left: 5px solid #1e78d7;
    border-radius: 10px;
    line-height: 1.8;
    color: #35506f;
}

.equipment-gallery-block {
    margin-top: 38px;
    margin-bottom: 38px;
}

.equipment-gallery-lead {
    margin: 0 0 18px;
    color: #4b5b70;
    line-height: 1.8;
}

.equipment-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.equipment-gallery-item {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #eef5fb;
    box-shadow: 0 10px 28px rgba(11, 49, 92, 0.08);
}

.equipment-gallery-item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.company-hero {
    background:
        linear-gradient(120deg, rgba(0, 77, 160, 0.9), rgba(0, 35, 92, 0.9)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 20px 90px;
}

.company-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.company-hero-sub {
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.85;
}

.company-hero h2 {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: 0.08em;
}

.company-hero p {
    margin-top: 22px;
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 760px;
}

.company-section {
    padding: 72px 20px;
}

.section-alt {
    background: #fff;
}

.company-container {
    max-width: 1100px;
    margin: 0 auto;
}

.company-container-wide {
    max-width: 1260px;
}

.section-title {
    margin: 0 0 28px;
    font-size: 1.8rem;
    color: #00356e;
    border-left: 6px solid #1e78d7;
    padding-left: 14px;
    line-height: 1.3;
}

.company-section p {
    line-height: 2;
    font-size: 1rem;
}

.philosophy-banner {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: center;
}

.philosophy-lead {
    margin: 0;
    font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem);
    font-weight: 900;
    color: #00356e;
    line-height: 1.45;
    max-width: 100%;
    letter-spacing: 0.03em;
}

.philosophy-lead-label {
    display: block;
    margin-bottom: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #1e78d7;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.philosophy-statement {
    display: block;
    margin-top: 4px;
    font-size: clamp(1.9rem, 2.2vw + 0.8rem, 3rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.commitment-intro {
    margin: 0 0 18px;
    color: #4b5b70;
    line-height: 1.9;
    font-size: 1.02rem;
    max-width: 760px;
}

.commitment-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    padding: 30px 28px;
    min-height: 240px;
    box-shadow: 0 12px 32px rgba(12, 43, 82, 0.06);
}

.commitment-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #1e78d7;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.commitment-card h4 {
    margin: 0 0 12px;
    color: #00356e;
    font-size: 1.55rem;
    line-height: 1.5;
}

.commitment-copy {
    margin: 0;
    color: #4b5b70;
    line-height: 2;
    font-size: 1.05rem;
}

.signature {
    text-align: right;
    margin-top: 30px;
    font-weight: bold;
    color: #00356e;
}

.company-table-wrap {
    overflow-x: auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.company-table th,
.company-table td {
    border-bottom: 1px solid #dde4ee;
    padding: 18px 14px;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 180px;
    color: #00356e;
    background: #f6f9ff;
    font-weight: 700;
}

.history-list {
    margin: 0;
    padding: 0;
}

.history-list li {
    list-style: none;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #dbe3ef;
}

.history-list .year {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0057b8;
}

.history-list p {
    margin: 0;
}

.company-cta {
    padding: 72px 20px 84px;
    background: linear-gradient(180deg, #0f4f97, #083568);
    color: #fff;
    text-align: center;
}

.company-cta h3 {
    margin: 0;
    font-size: 1.9rem;
}

.company-cta p {
    margin: 16px 0 30px;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #004da0;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-page {
    background: #f4f7fb;
}

.contact-page main {
    padding-top: 76px;
}

.contact-page .logo-text,
.contact-page .pc-nav ul li a {
    color: #004da0;
}

.contact-page .hamburger span {
    background-color: #004da0;
}

.contact-hero {
    background:
        linear-gradient(120deg, rgba(0, 77, 160, 0.9), rgba(0, 35, 92, 0.9)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
}

.contact-section {
    padding: 72px 20px 96px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-intro {
    margin-bottom: 28px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.contact-card {
    background: #fff;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(11, 49, 92, 0.06);
}

.contact-card h3 {
    margin: 0 0 16px;
    color: #00356e;
    font-size: 1.25rem;
}

.contact-info-list {
    margin: 0;
    padding-left: 1.2em;
    line-height: 1.9;
    color: #4b5b70;
}

.contact-detail-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.contact-detail-item {
    padding: 16px 0;
    border-bottom: 1px solid #e2eaf2;
}

.contact-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-detail-item dt {
    margin: 0 0 8px;
    color: #00356e;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contact-detail-item dd {
    margin: 0;
    color: #4b5b70;
    line-height: 1.8;
}

.contact-note {
    margin: 18px 0 0;
    color: #6a7d93;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .company-page main,
    .equipment-page main,
    .service-page main,
    .contact-page main {
        padding-top: 62px;
    }

    .company-hero {
        padding: 96px 20px 64px;
    }

    .company-hero h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .philosophy-banner {
        padding: 0;
    }

    .philosophy-lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .philosophy-statement {
        font-size: 1.45rem;
        line-height: 1.4;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .commitment-card {
        padding: 24px 20px;
        min-height: auto;
    }

    .commitment-card h4 {
        font-size: 1.3rem;
    }

    .commitment-copy,
    .commitment-intro {
        font-size: 0.98rem;
    }

    .company-table th,
    .company-table td {
        padding: 14px 10px;
        font-size: 0.95rem;
    }

    .company-table th {
        width: 130px;
    }

    .history-list li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-section {
        padding: 64px 20px 72px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .equipment-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .equipment-gallery-item img {
        height: 180px;
    }

    .contact-section {
        padding: 64px 20px 72px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* モバイル用: hero はスマホ専用画像を使い、幅を100%にして縦は自動に戻す */
@media (max-width: 768px) {
    .hero {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
            url('../images/hero-sp.jpg');
        background-size: auto, 100% auto; /* グラデはauto、画像は幅100% */
        background-position: center;
        min-height: 240px; /* スマホでは高さを控えめに */
        aspect-ratio: auto; /* アスペクト比は画像に任せる */
    }
}