@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ============================================
   ナカジマ コーポレートサイト カスタムCSS
   ============================================ */

/* --- Webフォント（Noto Sans JP） --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* --- フォント指定 --- */
body,
.l-header,
.c-gnav,
.l-footer {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* --- カラー変数 --- */
:root {
    --nkj-gold: #DAA520;
    --nkj-gold-hover: #C4941A;
    --nkj-dark: #333333;
    --nkj-dark-light: #555555;
    --nkj-bg-light: #f9f9f9;
    --nkj-text: #333333;
    --nkj-text-light: #666666;
    --nkj-green: #5a7a5a;
    --nkj-subtitle-grey: #999999;
    --nkj-border: #e0e0e0;
    --nkj-white: #ffffff;
}

/* --- コンテンツ幅（900→1080） --- */
.l-mainContent__inner,
.post_content,
.l-article {
    max-width: 1080px !important;
}

/* --- セクションタイトル共通 --- */
.nkj-section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 28px;
    color: var(--nkj-green);
}

.nkj-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--nkj-gold);
    margin: 15px 0 0;
}

.nkj-section-title.has-text-align-center::after {
    margin: 15px auto 0;
}

.nkj-section-subtitle {
    color: var(--nkj-subtitle-grey);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 30px !important;
}

/* --- ゴールド帯（下層ページタイトル） --- */
.nkj-gold-band {
    background-color: var(--nkj-gold);
    color: var(--nkj-white);
    text-align: center;
    padding: 12px 24px;
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    margin: 15px 0 0;
}

/* --- ヒーロー背景画像用 --- */
.nkj-hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- ページヒーローエリア --- */
/* ヒーロー付きページのデフォルトタイトルを非表示 */
.page .l-mainContent__inner > .c-pageTitle,
.post-type-archive .l-mainContent__inner > .c-pageTitle {
    display: none !important;
}
/* タイトル非表示時、コンテンツの上マージンを詰める */
.page .l-mainContent__inner > .post_content {
    margin-top: 0;
}

.nkj-page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
}

.nkj-page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.nkj-page-hero > .swell-block-fullWide__inner {
    position: relative;
    z-index: 2;
}

/* --- トップページヒーローオーバーレイ --- */
.nkj-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.5);
    z-index: 1;
}

.nkj-hero > .swell-block-fullWide__inner {
    position: relative;
    z-index: 2;
}

/* --- トップページヒーロー --- */
.nkj-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.nkj-hero h1 {
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/* --- ボタンスタイル（ゴールドアウトライン＋矢印） --- */
.wp-block-button__link {
    background-color: transparent !important;
    border: 2px solid var(--nkj-gold) !important;
    color: var(--nkj-gold) !important;
    border-radius: 30px !important;
    padding: 12px 40px 12px 32px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.wp-block-button__link::after {
    content: "→";
    margin-left: 8px;
}

.wp-block-button__link:hover {
    background-color: var(--nkj-gold) !important;
    border-color: var(--nkj-gold) !important;
    color: var(--nkj-white) !important;
    opacity: 1 !important;
}

/* --- テーブルスタイル --- */
.wp-block-table.is-style-simple table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table.is-style-simple th {
    background-color: var(--nkj-dark);
    color: var(--nkj-white);
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
}

.wp-block-table.is-style-simple td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--nkj-border);
}

.wp-block-table.is-style-simple tr:nth-child(even) td {
    background-color: var(--nkj-bg-light);
}

/* --- ステップブロック --- */
.swell-block-step__item[data-num]::before {
    background-color: var(--nkj-gold) !important;
}

/* --- FAQブロック --- */
.swell-block-faq__question {
    font-weight: 700;
}

/* --- 経営理念インライン見出し（中央寄せ+下線を文字幅に合わせる） --- */
h3.nkj-inline-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
h3.nkj-inline-heading::after {
    content: "";
    display: block;
    width: 4em;
    height: 2px;
    background-color: #DAA520;
    margin-top: 8px;
}

/* --- アコーディオンブロック --- */
.swell-block-accordion__title {
    background-color: var(--nkj-bg-light) !important;
    font-weight: 600;
}

/* --- フローティングCTAボタン --- */
.nkj-floating-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nkj-floating-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90px;
    height: 90px;
    padding: 8px;
    color: var(--nkj-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.nkj-floating-cta a:hover {
    opacity: 0.85;
}

.nkj-floating-cta__contact {
    background-color: var(--nkj-gold);
}

.nkj-floating-cta__estimate {
    background-color: var(--nkj-gold);
}

.nkj-floating-cta__recruit-entry {
    background-color: var(--nkj-green);
}

.nkj-floating-cta__recruit-info {
    background-color: var(--nkj-green);
}

.nkj-floating-cta a span {
    display: block;
    margin-top: 4px;
}

/* --- ヘッダー --- */
.l-header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --- フッター --- */
.l-footer {
    background-color: var(--nkj-dark) !important;
}

.l-footer__inner {
    color: var(--nkj-white);
}

.l-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.l-footer a:hover {
    color: var(--nkj-white);
}

/* --- フッター会社情報 --- */
.nkj-footer-company {
    text-align: center;
    padding: 40px 0 20px;
}

.nkj-footer-company img {
    max-width: 200px;
    margin-bottom: 15px;
}

.nkj-footer-company p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.8;
}

/* --- キャップブロック（囲み枠） --- */
.swell-block-capBlock.is-style-border {
    border-color: var(--nkj-gold) !important;
}

/* --- ヒーローイラスト --- */
.nkj-hero-illust img {
    max-height: 350px;
    width: auto;
    object-fit: contain;
}

/* --- 職種紹介カード（採用ページ） --- */
.nkj-job-icon img {
    max-height: 160px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* --- 人物画像（ナカジマの人たち） --- */
.nkj-people-img img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--nkj-bg-light);
    padding: 10px;
}

/* --- 福利厚生画像 --- */
.nkj-benefit-img img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* --- いいねアイコン --- */
.nkj-iine-icon img {
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    padding: 8px;
}

/* --- ページヒーロー内のh2装飾無効化 --- */
.nkj-page-hero .nkj-section-title::after,
.nkj-hero .nkj-section-title::after {
    display: none;
}

/* --- ページヒーロー内テキスト色 --- */
.nkj-page-hero .nkj-section-subtitle,
.nkj-page-hero .nkj-section-title,
.nkj-hero .nkj-section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.nkj-page-hero .nkj-section-title {
    color: #ffffff;
}

/* --- SWELLデフォルト見出し装飾をページ内では無効化 --- */
.post_content h2.nkj-section-title:where(:not([class^="swell-block-"])) {
    background: transparent !important;
    color: var(--nkj-green) !important;
    padding: 0 0 20px 0 !important;
}

.post_content h2.nkj-section-title:where(:not([class^="swell-block-"]))::before {
    display: none !important;
}

/* --- セパレータ --- */
.wp-block-separator.is-style-wide {
    border-color: var(--nkj-border);
    margin: 50px 0;
}

/* --- SWELLメインカラー上書き --- */
/* SWELLのインラインCSSより後に読み込まれるため、同じ:rootで上書き可能 */
:root {
    --color_main: #DAA520 !important;
    --color_main_thin: rgba(218, 165, 32, 0.05) !important;
    --color_main_dark: rgba(196, 148, 26, 1) !important;
    --color_htag: #5a7a5a !important;
    --color_header_bg: #ffffff !important;
    --color_header_text: #333333 !important;
    --color_footer_bg: #333333 !important;
    --color_footer_text: #ffffff !important;
    --color_bg: #ffffff !important;
}

/* フッター背景色直接指定 */
.l-footer,
.l-footer__inner {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* ヘッダーバー */
.l-header__bar {
    background: #DAA520 !important;
}

/* グローバルナビホバー */
.c-gnav a::after {
    background: #DAA520 !important;
}

/* --- 設備カテゴリ見出し（左寄せ太字下線） --- */
.nkj-equip-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--nkj-white);
    background: var(--nkj-gold);
    padding: 8px 20px;
    margin-bottom: 20px;
    display: inline-block;
}
/* SWELL見出しブロック版 設備カテゴリ見出し */
h3.nkj-equip-title-heading {
    color: var(--nkj-white) !important;
    background: var(--nkj-gold);
    padding: 8px 20px;
    margin-bottom: 20px;
    display: inline-block;
}

/* --- 設備テーブル（列幅統一） --- */
.nkj-equip-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.6;
}
.nkj-equip-table th,
.nkj-equip-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}
.nkj-equip-table thead th {
    background-color: var(--nkj-dark);
    color: var(--nkj-white);
    font-weight: 600;
    font-size: 13px;
}
.nkj-equip-table tbody tr:nth-child(even) td {
    background-color: #f9f9f9;
}
.nkj-equip-table th:nth-child(1) { width: 35%; }
.nkj-equip-table th:nth-child(2) { width: 25%; }
.nkj-equip-table th:nth-child(3) { width: 40%; }
/* SWELLテーブルブロック版（figure.wp-block-table.nkj-equip-table） */
figure.wp-block-table.nkj-equip-table table {
    font-size: 14px;
    line-height: 1.6;
}
figure.wp-block-table.nkj-equip-table th,
figure.wp-block-table.nkj-equip-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}
figure.wp-block-table.nkj-equip-table thead th {
    background-color: var(--nkj-dark);
    color: var(--nkj-white);
    font-weight: 600;
    font-size: 13px;
}
figure.wp-block-table.nkj-equip-table tbody tr:nth-child(even) td {
    background-color: #f9f9f9;
}
figure.wp-block-table.nkj-equip-table th:nth-child(1) { width: 35%; }
figure.wp-block-table.nkj-equip-table th:nth-child(2) { width: 25%; }
figure.wp-block-table.nkj-equip-table th:nth-child(3) { width: 40%; }

/* --- 設備動画 --- */
.nkj-equip-video-item {
    max-width: 800px;
    margin: 0 auto 40px;
}
.nkj-equip-video-label {
    background-color: var(--nkj-green);
    color: var(--nkj-white);
    text-align: center;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
/* SWELL見出しブロック版 動画ラベル */
h3.nkj-equip-video-heading {
    background-color: var(--nkj-green);
    color: var(--nkj-white) !important;
    text-align: center;
    padding: 10px 20px;
    max-width: 800px;
    margin: 0 auto 16px;
}
/* YouTube埋め込みブロック（動画セクション内） */
h3.nkj-equip-video-heading + .wp-block-embed {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.nkj-equip-video {
    max-width: 800px;
    margin: 0 auto;
}
.nkj-equip-video iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

/* --- 設備写真 --- */
.nkj-equip-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* --- ステップ内写真対応 --- */
.nkj-step-with-photo {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.nkj-step-with-photo > p {
    flex: 1;
}

.nkj-step-with-photo > .wp-block-image {
    flex: 0 0 40%;
}

/* --- セクションイラスト（小さく配置） --- */
.nkj-section-illust img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

/* --- ゴールド帯テキスト（永田風） --- */
.nkj-gold-highlight {
    background-color: var(--nkj-gold);
    color: var(--nkj-white);
    padding: 16px 32px;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    margin: 30px 0;
    font-weight: 500;
}

/* --- キャプション枠（囲み） --- */
.nkj-highlight-box {
    border: 2px solid var(--nkj-gold);
    padding: 24px 32px;
    text-align: center;
    margin: 20px 0 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--nkj-text);
}

/* --- セクション交互背景 --- */
.nkj-section-alt {
    background-color: #f7f7f7 !important;
}

/* ============================================
   永田製作所参考ページ（TOP2）用CSS
   プレフィックス: ngt-
   ============================================ */

/* --- NGT ヒーロー --- */
.ngt-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.ngt-hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ngt-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.ngt-hero > .swell-block-fullWide__inner {
    position: relative;
    z-index: 2;
}

.ngt-hero h1 {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* --- NGT スライドギャラリー --- */
.ngt-slide-gallery {
    gap: 0 !important;
}

.ngt-slide-gallery .wp-block-image {
    margin: 0 !important;
}

.ngt-slide-gallery .wp-block-image img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

/* --- NGT グレー背景セクション --- */
.ngt-section-grey {
    background-color: #eee !important;
}

/* --- NGT セクションタイトル --- */
.ngt-section-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 30px !important;
}

.ngt-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #32373c;
    margin: 12px auto 0;
}

/* --- NGT 課題リスト --- */
.ngt-problem-list {
    list-style: none;
    padding: 0;
    text-align: center;
    max-width: 600px;
    margin: 30px auto 0;
}

.ngt-problem-list li {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
    position: relative;
    padding-left: 24px;
}

.ngt-problem-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c00;
    font-weight: 700;
}

/* --- NGT ソリューション（隙間なし2カラム） --- */
.ngt-cols-fit {
    gap: 0 !important;
}

.ngt-cols-fit .wp-block-column {
    margin: 0 !important;
}

.ngt-cols-fit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ngt-solution-text {
    background-color: #f5f5f5;
    padding: 60px 40px !important;
}

/* --- NGT ダークボタン（永田風丸ボタン） --- */
.ngt-btn-dark .wp-block-button__link {
    background-color: #32373c !important;
    border-color: #32373c !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
}

.ngt-btn-dark .wp-block-button__link:hover {
    background-color: #555 !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

.ngt-btn-dark .wp-block-button__link::after {
    content: none;
}

/* --- NGT カードグリッド --- */
.ngt-card-grid {
    gap: 24px !important;
}

.ngt-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
}

.ngt-card .wp-block-image {
    margin-bottom: 16px;
}

.ngt-card .wp-block-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ngt-card h3 {
    padding: 0 16px;
}

.ngt-card p {
    padding: 0 16px;
}

/* --- NGT スタッフバナー --- */
.ngt-staff-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- NGT お問い合わせカード --- */
.ngt-contact-grid {
    gap: 20px !important;
}

.ngt-contact-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px !important;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- レスポンシブ --- */
@media (max-width: 959px) {
    .nkj-section-title {
        font-size: 24px;
    }

    .nkj-hero {
        min-height: 400px;
    }

    .nkj-hero h1 {
        font-size: 28px !important;
    }

    .nkj-floating-cta {
        position: fixed;
        right: auto;
        left: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        width: 100%;
        gap: 0;
    }

    .nkj-floating-cta a {
        flex: 1;
        width: auto;
        padding: 8px 4px;
        font-size: 10px;
        flex-direction: row;
        gap: 4px;
    }

    .nkj-floating-cta a span {
        margin-top: 0;
    }

    /* スマホ時のフッター下部余白（フローティングCTA分） */
    .l-footer {
        padding-bottom: 50px !important;
    }

    .nkj-gold-highlight {
        padding: 12px 20px;
        font-size: 14px;
    }

    .nkj-highlight-box {
        padding: 16px 20px;
        font-size: 14px;
    }

    /* NGT レスポンシブ */
    .ngt-hero {
        min-height: 350px;
    }

    .ngt-hero h1 {
        font-size: 28px !important;
    }

    .ngt-slide-gallery .wp-block-image img {
        height: 120px;
    }

    .ngt-solution-text {
        padding: 30px 20px !important;
    }

    .ngt-problem-list li {
        font-size: 16px;
    }
}

@media (max-width: 599px) {
    .nkj-hero h1 {
        font-size: 24px !important;
    }

    .nkj-section-title {
        font-size: 22px;
    }

    .wp-block-table.is-style-simple th,
    .wp-block-table.is-style-simple td {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* NGT レスポンシブ(SP) */
    .ngt-hero h1 {
        font-size: 24px !important;
    }

    .ngt-slide-gallery .wp-block-image img {
        height: 80px;
    }

    .ngt-card .wp-block-image img {
        height: 160px;
    }
}

/* ============================================
   コンタクトフォーム (CF7) スタイル
   ============================================ */

/* --- フォーム全体 --- */
.nkj-form {
    max-width: 700px;
    margin: 30px auto 0;
}

/* --- フォーム行 --- */
.nkj-form__row {
    margin-bottom: 24px;
}

/* --- ラベル --- */
.nkj-form__label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--nkj-text);
}

/* --- 必須マーク --- */
.nkj-form__required::after {
    content: "必須";
    display: inline-block;
    background-color: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- 入力フィールド --- */
.nkj-form__field input[type="text"],
.nkj-form__field input[type="email"],
.nkj-form__field input[type="tel"],
.nkj-form__field input[type="date"],
.nkj-form__field input[type="url"],
.nkj-form__field select,
.nkj-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.nkj-form__field input:focus,
.nkj-form__field select:focus,
.nkj-form__field textarea:focus {
    border-color: var(--nkj-gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.15);
}

.nkj-form__field textarea {
    min-height: 150px;
    resize: vertical;
}

.nkj-form__field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

/* --- CF7のspanラッパーをブロックに --- */
.nkj-form__field .wpcf7-form-control-wrap {
    display: block;
}

/* --- ファイル添付の注釈 --- */
.nkj-form__note {
    font-size: 12px;
    color: var(--nkj-text-light);
    margin-top: 6px;
}

/* --- ラジオボタン・チェックボックス --- */
.nkj-form__field .wpcf7-radio .wpcf7-list-item,
.nkj-form__field .wpcf7-checkbox .wpcf7-list-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
}

.nkj-form__field .wpcf7-radio .wpcf7-list-item label,
.nkj-form__field .wpcf7-checkbox .wpcf7-list-item label {
    font-weight: 400;
    cursor: pointer;
}

/* --- 個人情報同意 --- */
.nkj-form__privacy {
    border-top: 1px solid var(--nkj-border);
    padding-top: 20px;
    margin-top: 30px;
}

.nkj-form__privacy .wpcf7-acceptance label {
    font-size: 14px;
    cursor: pointer;
}

/* --- 送信ボタン --- */
.nkj-form__submit {
    text-align: center;
    margin-top: 30px;
}

.nkj-form__submit input[type="submit"],
.nkj-form__buttons input[type="submit"] {
    background-color: var(--nkj-gold) !important;
    border: 2px solid var(--nkj-gold) !important;
    color: #fff !important;
    padding: 14px 48px !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 240px;
}

.nkj-form__submit input[type="submit"]:hover,
.nkj-form__buttons input[type="submit"]:hover {
    background-color: var(--nkj-gold-hover) !important;
    border-color: var(--nkj-gold-hover) !important;
}

/* --- 戻るボタン --- */
.nkj-form__buttons input[type="button"],
.nkj-form__buttons .cf7msm_back {
    background-color: #999 !important;
    border: 2px solid #999 !important;
    color: #fff !important;
    padding: 14px 48px !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.nkj-form__buttons input[type="button"]:hover,
.nkj-form__buttons .cf7msm_back:hover {
    background-color: #777 !important;
    border-color: #777 !important;
}

/* --- 確認画面ボタン並び --- */
.nkj-form__buttons {
    text-align: center;
    margin-top: 30px;
}

/* wpautop が [back]/[submit] を <p> で包み <br> を挿入するため、
   内側の <p> を flex 化し <br> を無効化して横並びにする */
.nkj-form__buttons p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
}

.nkj-form__buttons br {
    display: none;
}

/* --- 確認画面タイトル --- */
.nkj-form__confirm-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--nkj-green);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--nkj-gold);
}

/* --- 確認画面の行 --- */
.nkj-form__row--confirm {
    display: flex;
    border-bottom: 1px solid var(--nkj-border);
    padding: 14px 0;
    align-items: flex-start;
}

.nkj-form__row--confirm .nkj-form__label {
    flex: 0 0 180px;
    font-weight: 600;
    color: var(--nkj-text);
    margin-bottom: 0;
    padding-top: 2px;
}

.nkj-form__value {
    flex: 1;
    color: var(--nkj-text);
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

/* --- バリデーションエラー --- */
.wpcf7-not-valid-tip {
    color: #e53935;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #e53935 !important;
}

/* --- CF7レスポンスメッセージ --- */
.wpcf7-response-output {
    text-align: center;
    padding: 12px 20px;
    margin: 20px 0 0;
    border-radius: 4px;
    font-size: 14px;
}

/* --- ローディング --- */
.wpcf7-spinner {
    display: block;
    margin: 10px auto;
}

/* --- フォームレスポンシブ --- */
@media (max-width: 599px) {
    .nkj-form {
        margin: 20px auto 0;
    }

    .nkj-form__row--confirm {
        flex-direction: column;
    }

    .nkj-form__row--confirm .nkj-form__label {
        flex: none;
        margin-bottom: 4px;
        font-size: 13px;
        color: var(--nkj-text-light);
    }

    .nkj-form__submit input[type="submit"],
    .nkj-form__buttons input[type="submit"],
    .nkj-form__buttons input[type="button"],
    .nkj-form__buttons .cf7msm_back {
        min-width: 0;
        width: 100%;
        padding: 12px 20px !important;
    }

    .nkj-form__buttons p {
        flex-direction: column-reverse;
    }
}

/* ============================================
   共通CTA セクション
   ============================================ */

/* --- CTAラッパー（フッター前直接出力） --- */
.nkj-cta-wrap {
    width: 100%;
    overflow: hidden;
}

/* --- CTAセクション（背景画像+オーバーレイ） --- */
.nkj-cta-section {
    position: relative;
}

.nkj-cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.75);
    z-index: 1;
}

.nkj-cta-section > .swell-block-fullWide__inner {
    position: relative;
    z-index: 2;
}

/* --- CTA見出し --- */
.nkj-cta-heading {
    color: #fff !important;
    margin-bottom: 0 !important;
}

.nkj-cta-heading::after {
    display: none !important;
}

.nkj-cta-sub {
    color: var(--nkj-gold) !important;
    margin-bottom: 30px !important;
    position: relative;
}

.nkj-cta-sub::before,
.nkj-cta-sub::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--nkj-gold);
    vertical-align: middle;
    margin: 0 12px;
}

/* --- CTAカード --- */
.nkj-cta-cards {
    gap: 20px !important;
    max-width: 1000px;
    margin: 0 auto;
}

.nkj-cta-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nkj-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nkj-cta-card h3 {
    color: var(--nkj-dark) !important;
    margin-bottom: 20px !important;
    padding: 0 0 16px !important;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none !important;
    background: none !important;
    line-height: 1.5 !important;
}

.nkj-cta-card h3::before {
    display: none !important;
}

.nkj-cta-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--nkj-green);
}

.nkj-cta-card p {
    color: var(--nkj-text) !important;
}

/* --- 電話カード --- */
.nkj-cta-card__hours {
    color: var(--nkj-gold) !important;
    font-weight: 600;
    margin-bottom: 4px !important;
}

.nkj-cta-card__tel {
    margin-bottom: 8px !important;
}

.nkj-cta-card__tel a {
    color: var(--nkj-gold) !important;
    text-decoration: none;
}

/* --- CTAカードアイコン（CSS背景画像で表示） --- */
.nkj-cta-card__icon {
    margin-bottom: 8px !important;
    line-height: 1 !important;
    font-size: 0 !important;
    min-height: 56px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 56px 56px;
}

.nkj-cta-card__icon--mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%235a7a5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='14' width='48' height='36' rx='4'/%3E%3Cpolyline points='8,14 32,34 56,14'/%3E%3C/svg%3E");
}

.nkj-cta-card__icon--estimate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%235a7a5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h20l10 10v38a2 2 0 0 1-2 2H18a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2z'/%3E%3Cpolyline points='38,8 38,18 48,18'/%3E%3Cline x1='22' y1='28' x2='42' y2='28'/%3E%3Cline x1='22' y1='34' x2='42' y2='34'/%3E%3Cline x1='22' y1='40' x2='34' y2='40'/%3E%3Cpath d='M40 44l-2 8 8-2 10-10-6-6z' fill='none'/%3E%3C/svg%3E");
}

.nkj-cta-card__icon--person {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%235a7a5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='20' r='10'/%3E%3Cpath d='M12 56c0-11 8.9-20 20-20s20 9 20 20'/%3E%3C/svg%3E");
}

/* --- CTAカードリンク --- */
.nkj-cta-card__link {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.nkj-cta-card__link a {
    color: var(--nkj-gold) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nkj-cta-card__link a:hover {
    opacity: 0.7;
}

/* --- リンクカード全体クリッカブル --- */
.nkj-cta-card--link {
    cursor: pointer;
    position: relative;
}

/* ============================================
   フッターウィジェット
   ============================================ */

/* --- フッター会社情報 --- */
.nkj-footer-company-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.nkj-footer-logo {
    max-width: 200px;
    height: auto;
}

.nkj-footer-company-detail {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* --- フッターナビ --- */
.nkj-footer-nav__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nkj-footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nkj-footer-nav__list li {
    margin-bottom: 10px;
}

.nkj-footer-nav__list li::before {
    content: "—";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.nkj-footer-nav__list a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nkj-footer-nav__list a:hover {
    color: #fff !important;
}

/* --- CTAレスポンシブ --- */
@media (max-width: 959px) {
    .nkj-cta-cards {
        flex-wrap: wrap !important;
    }

    .nkj-cta-cards > .wp-block-column {
        flex-basis: calc(50% - 10px) !important;
    }

    .nkj-cta-card h3 {
        font-size: 16px !important;
        min-height: auto;
    }
}

@media (max-width: 599px) {
    .nkj-cta-cards > .wp-block-column {
        flex-basis: 100% !important;
    }

    .nkj-cta-card {
        padding: 20px 16px !important;
    }

    .nkj-cta-card__icon {
        font-size: 36px !important;
    }
}


/* ============================================
   事例紹介 アーカイブ
   ============================================ */
.nkj-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.nkj-case-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--nkj-dark, #333);
    transition: box-shadow .2s, transform .2s;
}
.nkj-case-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.nkj-case-card__thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}
.nkj-case-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nkj-case-card__nothumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}
.nkj-case-card__body {
    padding: 16px 20px 20px;
}
.nkj-case-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.nkj-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 3px;
    line-height: 1.6;
}
.nkj-tag--industry {
    background: var(--nkj-green, #5a7a5a);
    color: #fff;
}
.nkj-tag--process {
    background: #e8e8e8;
    color: #555;
}
.nkj-case-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
    color: var(--nkj-dark, #333);
}
.nkj-case-card__meta {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ============================================
   お客様の声 アーカイブ
   ============================================ */
.nkj-voice-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.nkj-voice-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px 28px;
    text-decoration: none;
    color: var(--nkj-dark, #333);
    transition: box-shadow .2s;
}
.nkj-voice-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.nkj-voice-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.nkj-voice-card__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.nkj-voice-card__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--nkj-dark, #333);
}
.nkj-voice-card__years {
    font-size: 12px;
    color: #999;
}
.nkj-voice-card__rating {
    white-space: nowrap;
}
.nkj-star {
    color: #ddd;
    font-size: 18px;
}
.nkj-star--filled {
    color: #DAA520;
}
.nkj-voice-card__request {
    font-size: 14px;
    margin: 0 0 8px;
    color: #555;
}
.nkj-voice-card__good {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.6;
}
.nkj-voice-card__more {
    font-size: 13px;
    color: var(--nkj-green, #5a7a5a);
    font-weight: 600;
}

/* ============================================
   事例・声 共通: 詳細見出し
   ============================================ */
.nkj-detail-heading {
    margin-bottom: 32px;
}
.nkj-detail-heading.-center {
    text-align: center;
}
.nkj-detail-heading h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--nkj-dark, #333);
    margin: 0 0 4px;
    padding: 0 0 16px;
    position: relative;
    line-height: 1.4;
}
.nkj-detail-heading h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--nkj-green, #5a7a5a);
}
.nkj-detail-heading.-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}
.nkj-detail-heading__sub {
    font-size: 14px;
    font-weight: 600;
    color: #a7a7a7;
    margin: 8px 0 0;
    letter-spacing: .05em;
}

/* ============================================
   事例・声 共通: 詳細ページ
   ============================================ */
.nkj-cs-overview {
    max-width: 700px;
    margin: 0 auto;
}
.nkj-cs-table {
    width: 100%;
    border-collapse: collapse;
}
.nkj-cs-table th,
.nkj-cs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    text-align: left;
}
.nkj-cs-table th {
    width: 140px;
    font-weight: 700;
    color: var(--nkj-green, #5a7a5a);
    white-space: nowrap;
}
.nkj-cs-section {
    margin-bottom: 48px;
}
.nkj-cs-section:last-child {
    margin-bottom: 0;
}
.nkj-cs-comment blockquote {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 32px;
    background: #f9f9f9;
    border-left: 4px solid var(--nkj-green, #5a7a5a);
    border-radius: 4px;
}
.nkj-cs-comment cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #888;
    font-style: normal;
}

/* ============================================
   共通: ボタン・ページネーション
   ============================================ */
.nkj-btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--nkj-gold, #DAA520);
    color: var(--nkj-gold, #DAA520);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.nkj-btn-outline:hover {
    background: var(--nkj-gold, #DAA520);
    color: #fff;
}
.nkj-pagination {
    text-align: center;
    margin-top: 20px;
}
.nkj-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.nkj-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: background .2s, color .2s;
}
.nkj-pagination .page-numbers.current {
    background: var(--nkj-green, #5a7a5a);
    color: #fff;
    border-color: var(--nkj-green, #5a7a5a);
}
.nkj-pagination .page-numbers:hover:not(.current) {
    background: #f5f5f5;
}

/* レスポンシブ: 事例グリッド */
@media (max-width: 959px) {
    .nkj-case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 599px) {
    .nkj-case-grid {
        grid-template-columns: 1fr;
    }
    .nkj-voice-card {
        padding: 16px 20px;
    }
    .nkj-cs-table th {
        width: 100px;
    }
}

/* ============================================
   採用情報ページ
   ============================================ */

/* --- CTA丸画像ボタン --- */
.nkj-cta-circle img {
    border-radius: 50%;
    border: 4px solid var(--nkj-green);
    background-color: var(--nkj-gold);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nkj-cta-circle img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.nkj-cta-circle a {
    text-decoration: none;
}

/* --- いいねアイコン大きく表示 --- */
.nkj-iine-icon img {
    max-width: 280px;
    height: auto;
}

/* --- インタビューカード --- */
.nkj-interview-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}
.nkj-interview-card:hover {
    transform: translateY(-4px);
}

/* --- 採用ページ テーブル列幅（1/3 + 2/3） --- */
.page-id-41 .wp-block-table.is-style-stripes table {
    table-layout: fixed;
}
.page-id-41 .wp-block-table.is-style-stripes td:first-child {
    width: 33%;
}
.page-id-41 .wp-block-table.is-style-stripes td:last-child {
    width: 67%;
}
/* テーブル内フォントサイズ・ウェイト統一 */
.page-id-41 .wp-block-table td {
    font-size: 18px;
    line-height: 1.8;
}
.page-id-41 .wp-block-table td strong {
    font-weight: normal;
}
.page-id-41 .wp-block-table td:first-child strong {
    font-weight: 600;
}
/* リスト・本文フォントサイズ統一 */
.page-id-41 .wp-block-list li {
    font-size: 18px;
    line-height: 1.8;
}
/* ナカジマの強み説明文・募集職種本文をテーブルと統一 */
.page-id-41 .swl-fz.u-fz-l {
    font-size: 18px !important;
}

/* --- 検査設備カード --- */
.nkj-equip-card {
    background: #fff;
    border-radius: 8px;
    padding: 0 0 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}
.nkj-equip-card .wp-block-image {
    margin: 0 0 16px;
}
.nkj-equip-card .wp-block-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.nkj-equip-card h4 {
    padding: 0 20px;
    margin-bottom: 4px;
}
.nkj-equip-card p {
    padding: 0 20px;
}
@media (max-width: 599px) {
    .nkj-equip-cards {
        flex-direction: column !important;
    }
}

/* --- 製品カード --- */
.nkj-product-cards {
    gap: 16px;
}
.nkj-product-cards .nkj-equip-card {
    padding-bottom: 20px;
}
.nkj-product-cards .nkj-equip-card .wp-block-image img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f9f9f9;
    padding: 12px;
}
@media (max-width: 599px) {
    .nkj-product-cards {
        flex-direction: column !important;
    }
}

/* --- ライトボックス：透過PNG画像に白背景を付与 --- */
.lum-lightbox-image-wrapper img {
    background: #fff;
}

/* --- 投稿：関連記事を非表示 --- */
.l-articleBottom__section.-related {
    display: none !important;
}

/* --- 数字で見るナカジマ --- */
.nkj-numbers__item {
    text-align: center;
    padding: 20px 8px;
}
.nkj-numbers__value {
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
}
.nkj-numbers .wp-block-column {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.nkj-numbers .wp-block-column:last-child {
    border-right: none;
}
@media (max-width: 599px) {
    .nkj-numbers {
        flex-wrap: wrap !important;
    }
    .nkj-numbers .wp-block-column {
        flex-basis: 50% !important;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .nkj-numbers .wp-block-column:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }
    .nkj-numbers__value {
        font-size: 36px !important;
    }
}

/* --- プロフィールアバター位置調整 --- */
.c-postAuthor__figure .avatar {
    object-position: center 15%;
}

/* --- お知らせリスト --- */
.nkj-news-list {
    max-width: 800px;
    margin: 0 auto;
}
.nkj-news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--nkj-dark);
    transition: opacity 0.3s ease;
}
.nkj-news-item:first-child {
    border-top: 1px solid #eee;
}
.nkj-news-item:hover {
    opacity: 0.7;
}
.nkj-news-item__date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    min-width: 80px;
}
.nkj-news-tag {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 3px;
    white-space: nowrap;
    color: #fff;
    background: var(--nkj-green);
}
.nkj-news-tag--media {
    background: var(--nkj-gold);
}
.nkj-news-tag--holiday {
    background: #888;
}
.nkj-news-item__title {
    font-size: 15px;
    flex: 1;
}
@media (max-width: 599px) {
    .nkj-news-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .nkj-news-item__date {
        min-width: auto;
    }
    .nkj-news-item__title {
        width: 100%;
        flex: none;
    }
}

/* --- 社員紹介 一覧カード --- */
.nkj-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.nkj-staff-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--nkj-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}
.nkj-staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.nkj-staff-card__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.nkj-staff-card__body {
    padding: 20px;
}
.nkj-staff-card__tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.nkj-staff-card__name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.nkj-staff-card__year {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.nkj-staff-card__desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.nkj-staff-card__favorite {
    font-size: 14px;
    color: var(--nkj-gold);
    margin-bottom: 12px;
}
.nkj-staff-card__more {
    font-size: 14px;
    color: var(--nkj-gold);
    font-weight: 600;
}

/* --- 社員紹介 詳細ページ --- */
.nkj-staff-detail__header {
    display: block;
}
.nkj-staff-detail__photo-top {
    text-align: center;
    margin-top: -160px;
    margin-bottom: 24px;
}
.nkj-staff-detail__photo-top img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.nkj-staff-detail__dept {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.nkj-staff-detail__name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}
.nkj-staff-detail__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}
.nkj-staff-detail__role {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}
.nkj-staff-interview {
    max-width: 800px;
    margin: 0 auto;
}
.nkj-staff-qa {
    margin-bottom: 24px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 24px;
}
.nkj-staff-qa__q {
    font-size: 18px;
    font-weight: 700;
    color: var(--nkj-green);
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 3px solid var(--nkj-green);
}
.nkj-staff-qa__a {
    font-size: 16px;
    line-height: 1.8;
    padding-left: 16px;
}
.nkj-staff-qa--highlight {
    background: #f0f4f0;
}
.nkj-staff-about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.nkj-staff-about__item {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.nkj-staff-about__item h4 {
    font-size: 14px;
    color: var(--nkj-green);
    margin-bottom: 8px;
    font-weight: 700;
}
.nkj-staff-about__answer {
    font-size: 15px;
    line-height: 1.6;
}
.nkj-btn-back {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--nkj-gold);
    border-radius: 50px;
    color: var(--nkj-gold);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}
.nkj-btn-back:hover {
    background: var(--nkj-gold);
    color: #fff;
}
@media (max-width: 599px) {
    .nkj-staff-grid {
        grid-template-columns: 1fr;
    }
    .nkj-staff-detail__header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .nkj-staff-detail__name {
        font-size: 24px;
    }
    .nkj-staff-detail__meta {
        justify-content: center;
    }
    .nkj-staff-about {
        grid-template-columns: 1fr;
    }
}

/* スマホ時：全ページ共通のフォントサイズ縮小とボタン中央揃え */
@media (max-width: 599px) {
    /* メインビジュアル */
    .p-mainVisual .swl-fz[style*="font-size:3rem"] {
        font-size: 1.5rem !important;
    }
    /* 大きな見出し・テキストの縮小 */
    .post_content [style*="font-size:48px"],
    .post_content h2[style*="font-size:48px"] {
        font-size: 28px !important;
    }
    .post_content [style*="font-size:40px"] {
        font-size: 24px !important;
    }
    .post_content [style*="font-size:36px"],
    .post_content h1[style*="font-size:36px"] {
        font-size: 22px !important;
    }
    .post_content [style*="font-size:28px"] {
        font-size: 20px !important;
    }
    .post_content [style*="font-size:24px"] {
        font-size: 18px !important;
    }
    .post_content [style*="font-size:22px"] {
        font-size: 17px !important;
    }
    .post_content [style*="font-size:20px"] {
        font-size: 16px !important;
    }
    /* SWELLの大きめテキスト */
    .post_content .swl-fz.u-fz-l {
        font-size: 15px !important;
    }
    .post_content .swl-fz.u-fz-xl {
        font-size: 1em !important;
    }
    /* ボタンを中央揃え */
    .post_content .wp-block-buttons {
        justify-content: center !important;
    }
    /* ヒーローセクションの見出し */
    .nkj-page-hero h1[style*="font-size:36px"] {
        font-size: 24px !important;
    }
    .nkj-page-hero [style*="font-size:20px"] {
        font-size: 15px !important;
    }
}

/* スマホでは中央揃えの文章を左揃えにして自然な折り返しにする */
/* 採用情報(41)・お問合せ(44)・ホーム(35)は除外 */
@media (max-width: 599px) {
    .post_content .has-text-align-center {
        text-align: left;
    }
    .page-id-41 .post_content .has-text-align-center,
    .page-id-44 .post_content .has-text-align-center,
    .page-id-35 .post_content .has-text-align-center {
        text-align: center;
    }
    /* 採用情報：本文の長いテキストだけ左寄せ＆改行無視 */
    .page-id-41 .post_content .nkj-sp-left {
        text-align: left !important;
    }
    .page-id-41 .post_content .nkj-sp-left br {
        display: none;
    }
    /* 採用情報：テーブルをスマホで縦積み表示 */
    .page-id-41 .wp-block-table table,
    .page-id-41 .wp-block-table thead,
    .page-id-41 .wp-block-table tbody,
    .page-id-41 .wp-block-table tr,
    .page-id-41 .wp-block-table td,
    .page-id-41 .wp-block-table th {
        display: block;
        width: 100% !important;
    }
    .page-id-41 .wp-block-table td:first-child {
        background: var(--nkj-green);
        color: #fff;
        font-weight: 700;
        padding: 10px 16px;
        font-size: 16px;
        border-bottom: none;
    }
    .page-id-41 .wp-block-table td:first-child strong {
        color: #fff;
    }
    .page-id-41 .wp-block-table td:last-child {
        padding: 12px 16px 20px;
        border-bottom: 1px solid #ddd;
        background: #fff;
        font-size: 16px;
    }
}

/* --- お問合せ電話セクション区切り線 --- */
.nkj-sep-gold {
    width: 60px;
    border-top: 3px solid var(--nkj-gold);
    margin: 16px auto;
}

/* --- ワークフロー ステップ内画像 --- */
.nkj-step-photo {
    margin-top: 16px;
    border-radius: 6px;
    overflow: hidden;
}
.nkj-step-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* --- お問合せハブページ --- */
.nkj-contact-hub__card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 24px 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nkj-contact-hub__card h3 {
    margin-bottom: 16px;
}
.nkj-contact-hub__card p {
    flex-grow: 1;
}
.nkj-contact-hub__card .wp-block-buttons {
    margin-top: 20px;
}
.nkj-contact-hub .wp-block-column {
    min-width: 0;
}
@media (max-width: 599px) {
    .nkj-contact-hub {
        flex-direction: column !important;
    }
}

/* ============================================
   ナカジマの取り組み（SDGs・ISO）ページ
   ============================================ */
.nkj-sdgs-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.nkj-sdgs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.nkj-iso-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.nkj-iso-table table {
    max-width: 600px;
    margin: 0 auto;
}
.nkj-iso-table td {
    padding: 12px 16px !important;
    font-size: 15px;
}
.nkj-iso-table td:first-child {
    white-space: nowrap;
    width: 120px;
    color: var(--nkj-green);
    font-weight: 600;
}
@media (max-width: 599px) {
    .nkj-sdgs-card {
        margin-bottom: 16px;
    }
    .nkj-iso-table td:first-child {
        width: 100px;
    }
}

/* ============================================
   事業内容ページ（ナカジマに出来ること）
   ============================================ */
.nkj-capability-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nkj-capability-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.nkj-network-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nkj-network-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
@media (max-width: 599px) {
    .nkj-capability-card {
        margin-bottom: 8px;
    }
    .nkj-network-card {
        margin-bottom: 8px;
    }
}
.nkj-industry-block {
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid var(--nkj-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.nkj-industry-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.nkj-material-card {
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nkj-material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
