/* --- 変数設定（カラー変更はここを一括調整） --- */
:root {
    --primary-color: #0d47a1;     /* メインカラー：信頼のネイビーブルー */
    --primary-hover: #1565c0;
    --accent-color: #f57c00;      /* アクセントカラー：オレンジ */
    --text-color: #333333;
    --bg-light: #f4f6f8;
    --border-color: #e0e0e0;
}

/* --- 基本設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s, background-color 0.2s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

/* --- ボタンパーツ --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color, #004080);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #002b55;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* -----------------------------------
   押せる感を出す共通ボタン装飾
----------------------------------- */
.btn-contact,
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.btn-contact {
    background: linear-gradient(135deg, #005bac, #003d75);
    color: #ffffff !important;
}

.hero-btn {
    background-color: #ffffff;
    color: #005bac;
    border: 2px solid #005bac;
}

.btn-contact:hover,
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.btn-contact:active,
.hero-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-contact::after,
.hero-btn::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.25s ease;
}

.btn-contact:hover::after,
.hero-btn:hover::after {
    transform: translateX(4px);
}

/* --- セクション共通 --- */
.section {
    padding: 70px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* --- カードレイアウト（サービス紹介等） --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- 2分割セクション --- */
.split-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.split-box {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.split-box h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* --- フッター --- */
.footer {
    background-color: #1a252f;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #334455;
    color: #777;
    font-size: 0.85rem;
}

/* --- ページタイトル --- */
.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.section-lead {
    margin-bottom: 30px;
}

/* --- 会社概要テーブル --- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.info-table th, .info-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.info-table th {
    width: 25%;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
}

/* --- お問い合わせフォーム --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.required {
    background-color: #d9534f;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-submit {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

/* --- 画像プレースホルダー --- */
.img-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--bg-light);
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* --- 作業写真 --- */
.work-photo {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    margin: 15px 0;
    display: block;
    cursor: pointer;
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    background-color: #f9f9f9;
    display: block;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

/* --- 画像拡大（モーダル） --- */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.is-active {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.image-modal-close:hover {
    color: #ccc;
}

/* --- 当社の強み (strength) --- */
.strength-item {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.strength-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.strength-num {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
    min-width: 100px;
}

.strength-content {
    flex: 1;
}

.strength-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.strength-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.strength-lead {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 25px;
    font-weight: 500;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.strength-card {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.strength-card h3 {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 10px;
}

.strength-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* --- 会社概要（レイアウト・マップ） --- */
.company-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.company-img-box {
    width: 35%;
    max-width: 320px;
    flex-shrink: 0;
}

.company-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: block;
}

.company-table-box {
    flex: 1;
}

.access-section {
    margin-top: 40px;
}

.section-subtitle {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.map-box {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- 点検・校正の流れ --- */
.flow-certificate-box {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.certificate-card {
    background-color: #fff;
    padding: 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.certificate-img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.certificate-caption {
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

.inspection-flow-section {
    margin-bottom: 60px;
}

.flow-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.flow-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step-card {
    position: relative;
    background-color: #ffffff;
    padding: 24px 28px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    border-left: 6px solid var(--primary-color, #004080);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-card:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: -23px;
    left: 45px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color, #004080);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.step-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--primary-color, #004080);
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.step-header h3 {
    font-size: 1.2rem;
    color: #1a202c;
    margin: 0;
    font-weight: bold;
}

.step-card p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.7;
}

/* --- 製品詳細ページ --- */
.breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color, #004080);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.product-detail-img-box {
    width: 40%;
    max-width: 400px;
    flex-shrink: 0;
}

.product-detail-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: pointer;
}

.product-detail-info {
    flex: 1;
}

.product-catch {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color, #004080);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #333;
}

.product-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary-color, #004080);
    font-weight: bold;
}

.product-cta {
    margin-top: 20px;
}

.product-spec-section {
    margin-bottom: 50px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spec-table th, .spec-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.spec-table th {
    width: 25%;
    background-color: #f8fafc;
    color: #334155;
    text-align: left;
    font-weight: bold;
}

.spec-table td {
    color: #475569;
}

.back-btn-box {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-block;
    color: #555;
    background-color: #f1f5f9;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #e2e8f0;
}

/* --- 製品オプションセクション --- */
.product-option-section {
    margin-bottom: 50px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.option-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.option-card h3 {
    font-size: 1.05rem;
    color: var(--primary-color, #004080);
    margin: 0 0 8px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.option-card h3::before {
    content: "＋";
    display: inline-block;
    margin-right: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color, #004080);
}

.option-card p {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* --- メインビジュアル（スライダー）--- */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 700px;
    border-radius: 16px;
    overflow: hidden;
    color: #ffffff;
    margin-bottom: 50px;
    background-color: #0a192f;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slider .slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-start;
}

.slide-content.is-right {
    justify-content: flex-end;
}

.slide-inner {
    max-width: 600px;
    width: 100%;
}

.slide-title-large {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.glow-line {
    width: 100%;
    max-width: 650px;
    height: 3px;
    background: linear-gradient(90deg, #00d2ff 0%, #0066ff 60%, transparent 100%);
    box-shadow: 0 0 12px #00d2ff, 0 0 6px #0066ff;
    margin-bottom: 20px;
    border-radius: 2px;
}

.slide-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.03em;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.slide-title span {
    font-size: 2.1rem;
}

.hero-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.hero-check-list li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 6px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* --- ハンバーガーボタン --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- レスポンシブ表示 (768px以下) --- */
@media (max-width: 768px) {
    .header-inner {
        position: relative;
    }

    .hamburger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 150;
    }

    .nav.is-active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .btn-contact {
        display: flex;
        width: 100%;
        text-align: center;
    }

    .strength-item {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 50px;
        padding-bottom: 40px;
    }

    .strength-num {
        font-size: 3.5rem;
        min-width: auto;
    }

    .company-layout {
        flex-direction: column;
    }
    
    .company-img-box {
        width: 100%;
        max-width: 100%;
    }

    .step-card {
        padding: 18px 20px;
    }
    .step-card:not(:last-child)::after {
        left: 30px;
    }

    .product-detail-layout {
        flex-direction: column;
    }
    .product-detail-img-box {
        width: 100%;
        max-width: 100%;
    }
    .spec-table th, .spec-table td {
        display: block;
        width: 100%;
    }
    .spec-table th {
        background-color: #e2e8f0;
        padding-bottom: 6px;
    }

    .hero {
        height: auto;
        min-height: 520px;
        border-radius: 8px;
    }

    .slide-content {
        padding: 40px 20px;
    }

    .slide-title-large { font-size: 1.8rem; }
    .slide-desc { font-size: 0.95rem; line-height: 1.6; }
    .slide-title { font-size: 1.3rem; }
    .slide-title span { font-size: 1.5rem; }
    .hero-check-list li { font-size: 0.85rem; }

    .hero-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
}
/* ロゴ全体（横並び配置） */
.logo {
    display: flex !important;
    flex-direction: row !important; /* 横並びにする指定 */
    align-items: center;            /* 上下中央揃え */
    gap: 12px;                      /* ロゴ画像とテキストの間の余白 */
    text-decoration: none;
}

/* ロゴ画像 */
.logo-img {
    height: 40px;                  /* ヘッダーに収まるサイズ */
    width: auto;
    display: block;
}

/* ロゴテキスト群（テキスト同士は縦並び） */
.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* 日本語社名 */
.logo-main {
    font-size: 1.15rem;
    font-weight: bold;
    color: #333333;
}

/* 英語社名 */
.logo-sub {
    font-size: 0.65rem;
    color: #666666;
    letter-spacing: 0.05em;
}