/* 全体のベース設定 */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #222222;
    background-color: #ffffff;
    line-height: 1.8;
}

/* =========================================
   ヘッダー（画面最上部のメニューバー）
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 50px;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 社名表記の明確化（日英共通・2段組み） */
.header-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    white-space: nowrap;
}

.header-logo .corp-ja {
    font-size: 12px;
    font-weight: 700;
    color: #555555;
    letter-spacing: 1.5px;
}

.header-logo .corp-en {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
    letter-spacing: 1px;
}

/* ナビゲーションメニュー（折り返し防止） */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #444444;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: #c91010;
}

/* 言語切り替えボタン */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
    border-left: 1px solid #dddddd;
    padding-left: 25px;
}

.lang-switch a {
    text-decoration: none;
    color: #888888;
    font-weight: 600;
    padding: 4px 6px;
    transition: color 0.3s;
}

.lang-switch a:hover {
    color: #111111;
}

.lang-switch a.lang-active {
    color: #111111;
    font-weight: 800;
    border-bottom: 2px solid #c91010;
}

.lang-divider {
    color: #cccccc;
}

/* ハンバーガーボタン（PCでは非表示） */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    padding: 0;
}

/* =========================================
   ファーストビュー（最初の1画面：100vh構成）
   ========================================= */
.hero-section {
    min-height: calc(100vh - 80px);
    background-color: #fcfcfc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 20px 70px 20px;
    position: relative;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

/* シンボルロゴ */
.main-logo {
    width: 1150px;
    max-width: 92%;
    aspect-ratio: 1150 / 300;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto 15px auto;
}

/* 「SUCCESS NEXUS」の強調 */
.hero-catchphrase {
    color: #1a1a1a;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 10px;
    text-indent: 10px;
    text-transform: uppercase;
    margin: 0 0 28px 0;
}

/* 詳細（リード文） */
.hero-lead {
    color: #555555;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.1;
    letter-spacing: 0.8px;
    max-width: 880px;
    margin: 0 auto;
}

/* スクロール誘導（SCROLL ↓） */
.scroll-down {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888888;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    transition: color 0.3s;
}

.scroll-down:hover {
    color: #222222;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background-color: #e5e5e5;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #666666;
    animation: scrollLineFlow 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollLineFlow {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* =========================================
   メインコンテンツ（「ごあいさつ」背景演出・白飛び・黒文字化）
   ========================================= */
.main-wrapper {
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.intro-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-margin-top: 80px;
}

.intro-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1), transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.intro-section.is-visible .intro-bg-container {
    opacity: 1;
    transform: scale(1);
}

.intro-bg-image {
    width: 100%;
    height: 100%;
    background-image: url('handshake.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: saturate(175%) contrast(102%) brightness(104%);
}

.intro-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 70% 72% at 50% 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.85) 82%, #ffffff 98%),
        linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 84%, #ffffff 100%),
        linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0) 92%, #ffffff 100%),
        radial-gradient(ellipse 60% 70% at 50% 50%, 
            rgba(255, 255, 255, 0.88) 0%, 
            rgba(255, 255, 255, 0.76) 45%, 
            rgba(255, 255, 255, 0.56) 78%, 
            rgba(255, 255, 255, 0.62) 100%);
}

.intro-content-glass {
    position: relative;
    z-index: 2;
    max-width: 940px;
    width: 100%;
    padding: 60px 40px;
}

.intro-content-glass::before {
    content: "";
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: -30px;
    right: -30px;
    z-index: -1;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: radial-gradient(ellipse 65% 65% at 50% 50%, 
        rgba(255, 255, 255, 0.38) 0%, 
        rgba(255, 255, 255, 0.18) 58%, 
        rgba(255, 255, 255, 0.0) 88%);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000000 30%, rgba(0, 0, 0, 0.5) 65%, transparent 96%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000000 30%, rgba(0, 0, 0, 0.5) 65%, transparent 96%);
    pointer-events: none;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 8px 0;
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: 12px;
    color: #333333;
    letter-spacing: 3.5px;
    margin: 0 0 42px 0;
    font-weight: 700;
    position: relative;
}

.section-subtitle::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background-color: #c91010;
    margin: 18px auto 0 auto;
}

.intro-text {
    font-size: 16px;
    color: #0a0a0a;
    font-weight: 600;
    line-height: 2.25;
    letter-spacing: 0.8px;
    margin: 0;
}

.intro-text p {
    margin: 0 0 26px 0;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .pc-br {
        display: none;
    }
}

/* =========================================
   お問い合わせセクション
   ========================================= */
.contact-section {
    background-color: #fafafa;
    border-top: 1px solid #eeeeee;
    padding: 80px 20px;
    text-align: center;
    scroll-margin-top: 80px;
}

.contact-inner {
    max-width: 560px;
    margin: 0 auto;
}

.contact-compact-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #c91010;
    border-radius: 6px;
    padding: 30px 35px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.contact-form-disabled {
    margin: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #444444;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    cursor: not-allowed;
    font-family: inherit;
    resize: none;
}

.form-button-area {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 18px;
}

.submit-btn-disabled {
    background-color: #ebebeb;
    color: #999999;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 9px 32px;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
}

.contact-note {
    font-size: 12.5px;
    color: #555555;
    line-height: 1.8;
    margin: 0;
    padding-top: 16px;
    border-top: 1px dashed #e5e5e5;
    text-align: center;
}

/* =========================================
   フッター
   ========================================= */
.footer {
    text-align: center;
    padding: 35px 20px;
    background-color: #f9f9f9;
    color: #888888;
    font-size: 12px;
    border-top: 1px solid #eaeaea;
}

/* =========================================
   スマホ・タブレット対応（画面幅900px以下）
   ========================================= */
@media (max-width: 900px) {
    .header {
        padding: 0 20px;
    }

    .hamburger {
        display: block;
        z-index: 1100;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #222222;
        margin: 6px auto;
        transition: 0.3s;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 80px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        transition: right 0.3s ease;
    }

    .nav-menu.is-open {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .lang-switch {
        border-left: none;
        border-top: 1px solid #eeeeee;
        padding-left: 0;
        padding-top: 20px;
        width: 100%;
    }

    .main-logo {
        height: auto;
    }

    .hero-catchphrase {
        font-size: 22px;
        letter-spacing: 6px;
        text-indent: 6px;
    }

    .intro-section {
        padding: 80px 16px;
    }

    .intro-content-glass {
        padding: 35px 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .intro-text {
        font-size: 14.5px;
        line-height: 2.1;
    }

    .contact-compact-box {
        padding: 24px 20px;
    }
}

/* =========================================
   英語版（lang="en"）専用の欧文タイポグラフィ微調整
   ========================================= */
html[lang="en"] .hero-lead {
    letter-spacing: 1.2px;
    font-size: 16px;
    font-weight: 500;
}

html[lang="en"] .intro-text {
    letter-spacing: 0.2px;
    line-height: 2.0;
    font-size: 16.5px;
}

/* =========================================
   事業内容ページ（business.html）：上段（テキスト＋地図イラスト横並び）
   ========================================= */
.biz-hero-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 90px 30px 70px 30px;
    scroll-margin-top: 80px;
}

.biz-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.biz-text-area {
    flex: 1.15;
    text-align: left;
}

/* 左揃え用の見出し調整（赤いラインも左端に揃える） */
.section-title.biz-align-left {
    text-align: left;
}

.section-subtitle.biz-align-left {
    text-align: left;
    margin-bottom: 32px;
}

.section-subtitle.biz-align-left::after {
    margin: 16px 0 0 0; /* 赤ラインを左寄せ */
}

.biz-lead-text {
    font-size: 20px;
    color: #111111;
    line-height: 1.7;
    margin: 0 0 22px 0;
    letter-spacing: 0.8px;
}

.biz-desc-text {
    font-size: 15.5px;
    color: #333333;
    line-height: 2.15;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 右側：赤い日本地図イラスト（上下の無駄な白余白をカットして地球を大きく見せる） */
.biz-image-area {
    flex: 0.85;
    display: flex;
    justify-content: center;
    align-items: center;
}

.biz-map-img {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1.05; /* 正方形に近い比率で上下の白余白をトリミング */
    object-fit: cover;
    object-position: center 58%; /* 地球と日本列島がど真ん中に来るピンポイント位置 */
    mix-blend-mode: multiply;    /* 画像の白背景をサイトの白に100%溶け込ませる */
    display: block;
}

/* =========================================
   事業内容ページ：下段「当社の強み（OUR STRENGTH）」
   ========================================= */
.strength-section {
    background-color: #f8f9fa; /* ほんのり上品なアイスグレーで空間を切り替える */
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 95px 30px 105px 30px;
    text-align: center;
}

.strength-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCでは美しい2段組み（左右並び） */
    gap: 36px;
    margin-top: 20px;
    text-align: left;
}

.strength-card {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-top: 3px solid #c91010; /* 上部にブランドの赤ラインを入れて強さを演出 */
    border-radius: 6px;
    padding: 40px 36px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.strength-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #c91010;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.strength-card h3 {
    font-size: 18.5px;
    font-weight: 800;
    color: #111111;
    line-height: 1.6;
    margin: 0 0 18px 0;
    letter-spacing: 0.5px;
}

.strength-card p {
    font-size: 14.5px;
    color: #444444;
    line-height: 2.05;
    margin: 0;
}

/* =========================================
   【静・カモフラージュ仕様】会社概要・決算公告（赤線なし・控えめトーン）
   ========================================= */
.quiet-info-section {
    background-color: #ffffff;
    padding: 90px 25px 100px 25px;
    scroll-margin-top: 80px;
}

.quiet-info-inner {
    max-width: 720px; /* 幅を狭めてこぢんまりと静かに配置 */
    margin: 0 auto;
}

.quiet-block {
    margin-bottom: 70px;
    scroll-margin-top: 100px;
}

.quiet-block:last-child {
    margin-bottom: 0;
}

/* 赤線なし・色もグレーに落とした目立たない見出し */
.quiet-title {
    font-size: 18px;
    font-weight: 600;
    color: #555555;
    letter-spacing: 2px;
    margin: 0 0 4px 0;
    text-align: left;
}

.quiet-subtitle {
    font-size: 10.5px;
    color: #999999;
    letter-spacing: 2.5px;
    margin: 0 0 20px 0;
    font-weight: 500;
    text-align: left;
}

/* 控えめで静かな会社概要テーブル */
.quiet-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #eaeaea;
}

.quiet-table th,
.quiet-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eaeaea;
    font-size: 13.5px; /* 少し小さめの文字で視線を奪わない */
    line-height: 1.7;
    text-align: left;
}

.quiet-table th {
    width: 26%;
    color: #777777;
    font-weight: 500;
}

.quiet-table td {
    color: #444444;
}

.quiet-notice-text {
    font-size: 13.5px;
    color: #666666;
    background-color: #fbfbfb;
    border: 1px solid #eeeeee;
    padding: 18px 22px;
    border-radius: 4px;
    margin: 0;
}

/* スマホ・タブレット対応（business.html用） */
@media (max-width: 900px) {
    .biz-hero-section {
        padding: 50px 20px;
    }

    .biz-hero-inner {
        flex-direction: column; /* スマホでは縦並び（文章の下に地図イラスト） */
        gap: 30px;
    }

    .biz-map-img {
        max-width: 320px;
    }

    .strength-section {
        padding: 65px 20px;
    }

    .strength-grid {
        grid-template-columns: 1fr; /* スマホでは強みカードを縦並びに */
        gap: 24px;
    }

    .strength-card {
        padding: 28px 22px;
    }

    .quiet-table th,
    .quiet-table td {
        display: block;
        width: 100%;
    }

    .quiet-table th {
        border-bottom: none;
        padding-bottom: 2px;
        font-size: 12px;
    }

    .quiet-table td {
        padding-top: 0;
        padding-bottom: 12px;
    }
}

/* 英語版（business_en.html）専用のタイポグラフィ微調整 */
html[lang="en"] .biz-lead-text {
    font-size: 21px;
    line-height: 1.55;
    letter-spacing: 0.3px;
}

html[lang="en"] .biz-desc-text {
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.2px;
}

html[lang="en"] .strength-card h3 {
    font-size: 17.5px; /* 英語の長めの見出しが2行で美しく収まるサイズ */
    line-height: 1.45;
    letter-spacing: 0.2px;
}

html[lang="en"] .strength-card p {
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.15px;
}

/* 事業概要下の受託業務（インスペクション）控えめリスト枠 */
.biz-sub-list {
    list-style: none;
    margin: 22px 0 0 0;
    padding: 12px 18px;
    background-color: #f8f9fa;
    border-left: 3px solid #bbbbbb; /* 主張しすぎない上品なグレーライン */
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #444444;
    font-weight: 500;
    line-height: 1.7;
}