/*
Theme Name: 株式会社 石田工業
Theme URI: https://example.com/
Author: 株式会社 石田工業
Description: 株式会社 石田工業（京都府・解体工事）のホームページ用テーマです。トップページ・事業内容・会社概要・採用情報・施工実績・お問い合わせ・新着情報のページがあり、施工実績やお知らせは「投稿」から更新できます。
Version: 1.0.27
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ishida-kogyo
*/

/* ==========================================================================
   このファイルには、サイトの見た目（色・大きさ・並び方）がすべて入っています。
   色を変えたいときは、すぐ下の「:root」の --color-red などを変えると、サイト全体に反映されます。
   ========================================================================== */

/* ==========================================================================
   WordPress style.css そのまま貼り付け用 ベーススタイル（完全統合・完成版）
   Theme Name: Ishida Kougyou Official Theme
   Author: IshiDaKouGyou Co., Ltd.
   ========================================================================== */
:root {
    --color-black: #262626;       /* ロゴのチャコールブラック */
    --color-dark: #1a1a1a;        /* 深みのある背景黒 */
    --color-red: #B63734;         /* ロゴのディープレッド */
    --color-red-dark: #8f2422;    /* ホバー用ダークレッド */
    --color-white: #ffffff;
    --color-gray-bg: #f4f5f7;
    --color-gray-border: #dcdcdc;
    --color-text: #333333;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-en: 'Oswald', sans-serif;

    /* ヒーロー動画表示カスタム変数（85%推奨バランス初期値） */
    --hero-min-h-sp: 680px;
    --hero-min-h-pc: 780px;
    --hero-vid-scale: 1.12;
    --hero-vid-pos-y: 42%;
    --hero-overlay-opacity: 0.25;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.8;
    font-size: clamp(14.5px, 1.6vw, 16px);
    overflow-x: hidden;
    padding-bottom: 60px; /* スマホ下部固定バー余白 */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* レスポンシブ改行・単語分断防止クラス */
.pc-br { display: none; }
.sp-br { display: inline; }
@media (min-width: 768px) {
    .pc-br { display: inline; }
    .sp-br { display: none; }
}
.ib { display: inline-block; }

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   共通パーツ・見出し・ボタン（ロゴの斜めカッティングモチーフ）
   ========================================================================== */
.sec-padding {
    padding: clamp(55px, 7vw, 85px) 0;
}

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

.bg-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.sec-title-wrap {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 50px);
    position: relative;
}

.sec-title-en {
    font-family: var(--font-en);
    font-size: clamp(13px, 1.5vw, 15px);
    letter-spacing: 0.2em;
    color: var(--color-red);
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.sec-title-ja {
    font-size: clamp(22px, 3.6vw, 32px);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.sec-title-ja::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-black) 50%, var(--color-red) 50%);
}

.bg-dark .sec-title-ja::after,
.top-recruit-sec .sec-title-ja::after {
    background: linear-gradient(90deg, var(--color-white) 50%, var(--color-red) 50%);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-weight: 700;
    font-size: clamp(14px, 1.6vw, 16px);
    padding: clamp(13px, 1.8vw, 16px) clamp(24px, 4vw, 45px);
    border: 2px solid var(--color-red);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(182, 55, 52, 0.3);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--color-black);
    border-color: var(--color-black);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-dark:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

/* ==========================================================================
   ヘッダー＆グローバルナビゲーション (header.php 領域)
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-top-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: clamp(10.5px, 1.2vw, 12px);
    padding: 6px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(68px, 8vw, 80px);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 14px);
    cursor: pointer;
}

.logo-svg {
    width: clamp(38px, 5vw, 46px);
    height: clamp(38px, 5vw, 46px);
    flex-shrink: 0;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: clamp(9.5px, 1.1vw, 10.5px);
    font-weight: 700;
    color: var(--color-red);
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.logo-main {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 900;
    color: var(--color-black);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.logo-en {
    font-family: var(--font-en);
    font-size: clamp(10px, 1.1vw, 11px);
    color: #666;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-top: 2px;
}

.header-contact-pc {
    display: none;
    align-items: center;
    gap: 20px;
}

.header-tel-box {
    text-align: right;
    white-space: nowrap;
}

.header-tel-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-red);
    display: block;
}

.header-tel-num {
    font-family: var(--font-en);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.1;
}

.header-tel-num i {
    color: var(--color-red);
    margin-right: 4px;
    font-size: 20px;
}

.global-nav {
    background-color: var(--color-black);
    display: none;
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.nav-item:first-child {
    border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-link {
    display: block;
    color: var(--color-white);
    padding: 13px 6px;
    font-size: 13.5px;
    font-weight: 700;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--color-red);
    color: var(--color-white);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-white);
    transition: 0.3s;
}

.mobile-nav-drawer {
    display: none;
    background-color: var(--color-black);
    border-top: 2px solid var(--color-red);
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.mobile-nav-list a i {
    color: var(--color-red);
}

@media (min-width: 992px) {
    .header-contact-pc {
        display: flex;
    }
    .global-nav {
        display: block;
    }
    .mobile-menu-btn {
        display: none;
    }
    .mobile-nav-drawer {
        display: none !important;
    }
}

/* ==========================================================================
   ページ切り替え制御（WordPress全6ページプレビュー用）
   ========================================================================== */
.wp-page-view {
    display: none;
    animation: fadeIn 0.35s ease;
}

.wp-page-view.active-page {
    display: block;
}

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

/* ==========================================================================
   ファーストビュー (メインビジュアル + PC横中央 / スマホ縦フィット背景動画)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: var(--hero-min-h-sp);
    display: flex;
    align-items: center;
    background-color: #111;
    color: var(--color-white);
    overflow: hidden;
    padding: 40px 0 60px;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: var(--hero-min-h-pc);
        padding: 60px 0 64px;
    }
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #141414;
}

/* 両端の余白をシネマティックに埋めるぼかし背景動画 */
.hero-video-blur {
    position: absolute;
    inset: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    object-fit: cover;
    filter: blur(22px) brightness(0.55);
    transform: scale(1.08);
    z-index: 1;
    pointer-events: none;
}

/* メイン動画（PCは横中央・85%〜100%表示 / スマホは縦フィット） */
.hero-video-main {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center var(--hero-vid-pos-y);
    transform: translateX(-50%) scale(var(--hero-vid-scale));
    transform-origin: center var(--hero-vid-pos-y);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.25s ease, object-position 0.25s ease;
}

/* PCは横中央・スマホは縦画面フィットモード */
.hero-section.mode-pc-center-sp-vert .hero-video-main {
    object-fit: cover;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-section.mode-pc-center-sp-vert .hero-video-main {
        object-fit: contain;
        width: auto;
        max-width: 100%;
        height: 100%;
    }
}

/* 画面全体カバーモード */
.hero-section.mode-cover-all .hero-video-main {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* テキスト視認性を高めるオーバーレイ（暗さ調整連動） */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(15, 15, 15, calc(var(--hero-overlay-opacity) + 0.12)) 0%,
        rgba(20, 20, 20, var(--hero-overlay-opacity)) 55%,
        rgba(182, 55, 52, calc(var(--hero-overlay-opacity) * 0.65)) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* ロゴのKの斜めモチーフ装飾 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    display: none; /* 斜めの赤いライン：一時的に非表示（戻すときはこの行を削除） */
    height: 100%;
    background-color: var(--color-red);
    opacity: 0.38;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 840px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    font-weight: 700;
    font-size: clamp(11px, 1.4vw, 13px);
    padding: 6px 16px;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
}

.hero-concept {
    font-family: var(--font-serif);
    font-size: clamp(28px, 5.2vw, 54px);
    font-weight: 900;
    line-height: 1.32;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 14px rgba(0,0,0,0.7);
}

.hero-concept span {
    color: #ff5b57;
}

.hero-lead {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.8;
    border-left: 4px solid var(--color-red);
    padding-left: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* ヒーロー内：新着情報（背景透明・動画を透かす） */
.hero-news {
    margin-top: 150px;
    max-width: 820px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.85);
}

/* ① 見出しを赤いタブにして、枠の左上にくっつける */
.hero-news-head {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    background: var(--color-red);
    padding: 7px 30px 7px 16px;
    margin-bottom: 0;
    letter-spacing: 0.06em;
    text-shadow: none;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.hero-news-head span {
    font-family: var(--font-en);
    font-size: 12px;
    color: #ffd2d0;
    margin-right: 10px;
    letter-spacing: 0.18em;
}

/* ② 最新の記事（1番上）に「NEW」マークと赤い縦線（WordPressでも最新記事に自動で付きます） */
/* 記事の背景：薄い赤 → 透明 → 薄い赤 → 透明 …の交互（記事が増えても自動で交互になります） */
.hero-news .blog-item:nth-child(odd) {
    background: rgba(182, 55, 52, 0.32);
}

.hero-news .blog-item:first-child {
    box-shadow: inset 5px 0 0 var(--color-red);
    background: rgba(182, 55, 52, 0.32);
}

.hero-news .blog-item:first-child .blog-meta::before {
    content: 'NEW';
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    background: #fff;
    color: var(--color-red);
    padding: 1px 8px;
    letter-spacing: 0.12em;
    text-shadow: none;
    line-height: 1.6;
}

/* ④ 枠の下の「一覧を見る」リンク */
.hero-news-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    float: right;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid var(--color-red);
    padding-bottom: 2px;
}

.hero-news-more:hover {
    color: #ffb1ab;
}

.hero-news::after {
    content: '';
    display: block;
    clear: both;
}

.hero-news .blog-scroll-frame {
    max-width: none;
    margin: 0;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: none;
    padding-right: 12px;
}

.hero-news .blog-list {
    max-height: 330px; /* 1行のお知らせが約4.5件見える高さ（スマホ） */
}

@media (min-width: 992px) {
    .hero-news .blog-list {
        max-height: 337px; /* 1行のお知らせが約4.5件見える高さ（パソコン） */
    }
}

.hero-news .blog-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-news .blog-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.hero-news .blog-meta {
    margin-bottom: 2px;
    gap: 10px;
}

.hero-news .blog-date {
    color: #ff8a86;
    font-size: 13px;
}

.hero-news .blog-meta span[style*="#eee"] {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff;
}

.hero-news .blog-item-title {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 2px;
}

.hero-news .blog-item-desc {
    color: #ececec;
    font-size: 12.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-news .custom-scrollbar-track {
    width: 12px;
    background: rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-news .custom-scrollbar-thumb {
    left: 2px;
    right: 2px;
    background: rgba(20, 20, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
}

.hero-news .custom-scrollbar-thumb:active,
.hero-news .custom-scrollbar-thumb.dragging {
    background: rgba(20, 20, 20, 0.8);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ヒーロー下部：動画読み込み＆80%/85%/100%・暗さ・高さ調整バー */
.hero-video-ctrl-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 50;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 4px solid var(--color-red);
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

.ctrl-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ctrl-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    transition: 0.2s;
}

.ctrl-btn:hover,
.ctrl-btn.active {
    background: var(--color-red);
    border-color: var(--color-red);
}

.file-upload-btn-wrap {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--color-red);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(182,55,52,0.4);
}

.file-upload-btn-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.vid-status-badge {
    font-size: 11px;
    color: #ffb1ab;
    background: rgba(182, 55, 52, 0.25);
    border: 1px solid rgba(255, 91, 87, 0.4);
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 700;
}

.ctrl-slider-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ddd;
    font-size: 11px;
    font-weight: 700;
}

.ctrl-slider-label input[type="range"] {
    width: 68px;
    accent-color: var(--color-red);
    cursor: pointer;
}

/* ==========================================================================
   トップページ：各ブロック（daiei2015の構成＋石田工業オリジナル機能）
   ========================================================================== */
.top-intro-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 40px);
    align-items: center;
}

@media (min-width: 768px) {
    .top-intro-box {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.top-intro-heading {
    font-size: clamp(19px, 2.6vw, 24px);
    font-weight: 900;
    color: var(--color-black);
    line-height: 1.55;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--color-red);
    padding-bottom: 12px;
}

/* スライドショー */
.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* iPhone の写真（横4：縦3）がぴったり収まる形 */
    overflow: hidden;
    box-shadow: 12px 12px 0 var(--color-red);
    background: #222;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.slide-dot.active {
    background: var(--color-red);
    width: 24px;
    border-radius: 5px;
}

/* AI 解体概算コスト＆工期シミュレーター */
.ai-tool-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    border: 2px solid var(--color-red);
    color: #fff;
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    position: relative;
}

#simStruct {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    background-color: #262626 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='18' viewBox='0 0 12 18' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7l4-4 4 4'/%3E%3Cpath d='M2 11l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 18px !important;
}

.ai-tool-title {
    font-size: clamp(19px, 2.6vw, 24px);
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

/* トップ求人セクション（石田工業様オリジナル重機ロゴ画像をリピート配置） */
:root {
    --recruit-bg-img: none;
    --recruit-bg-size-sp: contain;
    --recruit-bg-size-pc: contain;
    --recruit-overlay: 0.30;
}

.top-recruit-sec {
    background-color: var(--color-black);
    background-image:
        linear-gradient(rgba(18, 18, 18, var(--recruit-overlay)), rgba(18, 18, 18, calc(var(--recruit-overlay) + 0.06))),
        var(--recruit-bg-img);
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, var(--recruit-bg-size-sp), var(--recruit-bg-size-sp);
    background-position: center top;
    background-origin: border-box, border-box;
    color: var(--color-white);
    position: relative;
}

@media (min-width: 768px) {
    .top-recruit-sec {
        background-size: 100% 100%, var(--recruit-bg-size-pc), var(--recruit-bg-size-pc);
        /* パソコン・タブレット：画面の幅に合わせて絵をぴったり並べ、端で絵が切れないようにする */
        background-repeat: no-repeat, round;
    }
}

.recruit-catch-box {
    max-width: 660px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 0.25);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255,255,255,0.22);
    border-left: 6px solid var(--color-red);
    padding: clamp(24px, 4vw, 40px) clamp(18px, 3.5vw, 30px);
}

.recruit-catch-box p {
    font-size: 14px;
    line-height: 1.75;
}

.top-recruit-sec .sec-title-ja,
.top-recruit-sec .sec-title-en {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.9);
}

@media (min-width: 992px) {
    .top-recruit-sec {
        background-position: left top;
    }
    .recruit-catch-box {
        margin: 0 auto; /* パソコンでは中央に配置 */
    }
}

.recruit-catch-title {
    font-size: clamp(20px, 3.3vw, 31px);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.45;
}

.recruit-catch-title span {
    color: #ff5b57;
}

.recruit-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0 30px;
}

.recruit-hl-card {
    background-color: rgba(0,0,0,0.65);
    border: 1px solid var(--color-red);
    padding: 16px 12px;
    text-align: center;
}

.recruit-hl-label {
    font-size: 12px;
    color: #ccc;
    display: block;
    margin-bottom: 4px;
}

.recruit-hl-val {
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 900;
    color: #ff5b57;
}

/* 施工実績カード */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.work-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #262626;
}

.work-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    z-index: 5;
}

.work-body {
    padding: 20px;
}

.work-date {
    font-size: 13px;
    color: #777;
    font-family: var(--font-en);
}

.work-title {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 10px;
    color: var(--color-black);
    line-height: 1.45;
}

.work-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* 新着情報 -ブログ-（黒枠囲み＋右側に常時表示される縦スクロールバー付きボックス） */
.blog-scroll-frame {
    max-width: 900px;
    margin: 0 auto;
    border: 3px solid var(--color-black);
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    position: relative;
    padding-right: 14px;
}

.blog-list {
    max-height: 350px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* 独自の細いバーを常時表示するため標準は隠す */
}

.blog-list::-webkit-scrollbar {
    display: none; /* 独自の細いバーを常時表示するため標準は隠す */
}

/* スマホでもPCでも右端に必ず常時表示され、直接触って動かせる縦スクロールバー */
.custom-scrollbar-track {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 100%;
    background: #f1f1f1;
    border-left: 1px solid #dcdcdc;
    z-index: 10;
    cursor: pointer;
    touch-action: none; /* スマホでバーを触った時に画面全体が動かないように固定 */
    user-select: none;
    -webkit-user-select: none;
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 3px;
    right: 3px;
    height: 70px;
    background: #b0b0b0;
    border-radius: 8px;
    border: none;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* つまみの中央に滑り止め風の3本線アイコンを表示 */
.custom-scrollbar-thumb::after {
    content: '';
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.custom-scrollbar-thumb:active,
.custom-scrollbar-thumb.dragging {
    cursor: grabbing;
    background: #8a8a8a;
}

.blog-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--color-gray-border);
    transition: background 0.2s;
}

/* Googleマップ 本社・置き場切り替えタブ */
.map-switch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.map-tab-btn {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-black);
    font-weight: 900;
    font-size: clamp(13.5px, 1.5vw, 15.5px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.map-tab-btn i {
    color: var(--color-red);
    transition: color 0.25s ease;
}

.map-tab-btn.active,
.map-tab-btn:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(182, 55, 52, 0.3);
}

.map-tab-btn.active i,
.map-tab-btn:hover i {
    color: var(--color-white);
}

@media (min-width: 640px) {
    .blog-item {
        flex-direction: row;
        align-items: center;
    }
}

.blog-item:hover {
    background-color: #fafafa;
}

.blog-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ddd;
    background-color: #262626;
}

@media (min-width: 640px) {
    .blog-thumb {
        width: 125px;
        height: 88px;
    }
}

.blog-info {
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.blog-date {
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-red);
    font-weight: 700;
}

.blog-item-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 4px;
}

.blog-item-desc {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   下層ページ共通ヘッダー・テーブル・フロー・フォーム
   ========================================================================== */
.page-header-banner {
    background-color: var(--color-black);
    background-image: linear-gradient(120deg, rgba(26,26,26,0.9) 60%, rgba(182,55,52,0.8) 100%);
    background-size: cover;
    background-position: center;
    padding: clamp(42px, 6vw, 58px) 0;
    text-align: center;
    color: var(--color-white);
    border-bottom: 4px solid var(--color-red);
}

.page-header-en {
    font-family: var(--font-en);
    font-size: 16px;
    letter-spacing: 0.2em;
    color: #ff6b68;
    display: block;
}

.page-header-title {
    font-size: clamp(23px, 4vw, 36px);
    font-weight: 900;
    margin-top: 5px;
}

.std-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    border-top: 3px solid var(--color-black);
}

.std-table th,
.std-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-gray-border);
    text-align: left;
    vertical-align: top;
}

.std-table th {
    width: 28%;
    background-color: #f8f8f8;
    font-weight: 700;
    color: var(--color-black);
    border-right: 1px solid var(--color-gray-border);
    position: relative;
}

.std-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-red);
}

@media (max-width: 640px) {
    .std-table th,
    .std-table td {
        display: block;
        width: 100%;
    }
    .std-table th {
        border-right: none;
        padding-bottom: 8px;
    }
    .std-table td {
        padding-top: 10px;
    }
}

/* 事業内容ページ：行末に1〜2文字だけ残る「中途半端な行」を防ぐ */
#page-business p,
#page-business h3 {
    text-wrap: pretty;
}

#page-business h2 {
    text-wrap: balance;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-box {
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-top: 4px solid var(--color-black);
    padding: 28px;
    transition: 0.3s;
}

.service-box:hover {
    border-top-color: var(--color-red);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.service-box-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-black);
}

.service-box-title i {
    color: var(--color-red);
}

.flow-vertical {
    max-width: 860px;
    margin: 0 auto;
}

.flow-step-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-left: 6px solid var(--color-black);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.flow-step-card:nth-child(even) {
    border-left-color: var(--color-red);
}

.flow-badge {
    display: inline-block;
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 14px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.flow-step-card:nth-child(even) .flow-badge {
    background-color: var(--color-red);
}

.flow-step-title {
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--color-black);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-req {
    display: inline-block;
    white-space: nowrap;
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 11px;
    padding: 2px 8px;
    margin-left: 8px;
    font-weight: 700;
}

.form-note {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: inherit;
    background: #fdfdfd;
    /* パソコンがダークモードでも、文字が白くならず普通に読めるようにする */
    color: var(--color-black);
    color-scheme: light;
}

select.form-control option {
    color: var(--color-black);
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-red);
    background: #fff;
}

.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-top: 5px solid var(--color-red);
    padding-top: 60px;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.footer-nav-list a {
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}

.footer-nav-list a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

/* メニューの各行の高さをそろえる（SNSボタンの行と合わせるため） */
.footer-nav-list > li {
    line-height: 25px;
}

/* SNS：施工実績の横から2段ぶん使い、ボタンの行をメニューの文字の行にそろえる */
.footer-sns {
    grid-row: span 2;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px 8px;
}

.footer-nav-list .footer-sns a {
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    color: #ddd;
}

.footer-nav-list .footer-sns a:hover {
    border-color: var(--color-red);
    color: #fff;
}

.copyright-bar {
    background-color: #111;
    text-align: center;
    padding: 18px 10px;
    font-size: 13px;
    color: #999;
}

/* ==========================================================================
   戻るボタン（トップ以外のページで、ヘッダーのすぐ下・左上に固定表示）
   ========================================================================== */
.page-back-btn {
    position: fixed;
    top: calc(var(--header-h, 120px) + 12px);
    left: 12px;
    z-index: 998;
    display: none;
    align-items: center;
    gap: 4px;
    background: rgba(20, 20, 20, 0.45);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px 4px 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: background 0.2s ease;
}

.page-back-btn svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.page-back-btn:hover {
    background: rgba(20, 20, 20, 0.7);
}

body.is-subpage .page-back-btn {
    display: inline-flex;
}

/* スマホでは、戻るボタンとページタイトルが重ならないよう、タイトル帯の上に余白を足す */
@media (max-width: 767px) {
    .page-header-banner {
        padding-top: 54px;
    }
}

/* ==========================================================================
   施工実績ページ：一覧を黒枠で囲み、枠の中を上下にスクロール
   ========================================================================== */
.works-scroll-frame {
    position: relative;
    border: 3px solid var(--color-black);
    background: var(--color-gray-bg);
    padding-right: 14px;
    margin-top: 10px;
}

.works-scroll-list {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    /* 端までスクロールしたら、そのままページ全体が上下に動く */
    overscroll-behavior: auto;
    scrollbar-width: none;
    padding: 18px;
}

.works-scroll-list::-webkit-scrollbar {
    display: none;
}

.works-scroll-list .works-grid {
    margin-top: 0;
}

/* ==========================================================================
   施工実績一覧ページ：横長カード（左に写真・右に文章）＋ページ切り替え
   ========================================================================== */
.works-all-count {
    font-size: 13.5px;
    color: #666;
    margin-bottom: 14px;
}

.works-all-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.work-row {
    display: flex;
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-left: 5px solid var(--color-black);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.work-row:hover {
    border-left-color: var(--color-red);
}

.work-row-img {
    position: relative;
    flex: 0 0 300px;
    min-height: 190px;
    background: #262626;
}

.work-row-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-row-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.work-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.work-row-cat {
    background: var(--color-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
}

.work-row-case {
    font-family: var(--font-en);
    font-size: 13px;
    color: #777;
}

.work-row-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.5;
}

.work-row-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
}

/* スマホ：写真を上に大きく、文章を下に */
@media (max-width: 640px) {
    .work-row {
        flex-direction: column;
        border-left: 1px solid var(--color-gray-border);
        border-top: 5px solid var(--color-black);
    }
    .work-row:hover {
        border-top-color: var(--color-red);
    }
    .work-row-img {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .work-row-body {
        padding: 14px 16px 16px;
        gap: 5px;
    }
    .work-row-title {
        font-size: 16.5px;
    }
    .work-row-excerpt {
        font-size: 13.5px;
        line-height: 1.7;
    }
    .work-row-cat {
        font-size: 11px;
        padding: 1px 8px;
    }
}

.works-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.pager-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 2px solid var(--color-black);
    background: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pager-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.pager-btn.is-current {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    cursor: default;
}

.pager-btn.pager-step {
    font-family: var(--font-sans);
    font-size: 13.5px;
}

/* ==========================================================================
   施工実績の記事ページ＋写真の拡大表示
   ========================================================================== */
.is-link {
    cursor: pointer;
}

.work-card.is-link:focus-visible,
.work-row.is-link:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 2px;
}

.work-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.work-detail-cat {
    background: var(--color-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
}

.work-detail-date {
    font-family: var(--font-en);
    font-size: 14px;
    color: #777;
}

.work-detail-title {
    font-size: clamp(21px, 3.2vw, 28px);
    font-weight: 900;
    color: var(--color-black);
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--color-black);
    position: relative;
}

.work-detail-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 80px;
    height: 3px;
    background: var(--color-red);
}

.work-detail-main {
    display: block;
    width: 100%;
    /* 写真の形のまま、全体を表示する（縦長の写真は画面の高さに収まる大きさで、左右は濃いグレー） */
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    background: #262626;
    cursor: zoom-in;
    margin-bottom: 26px;
}

.work-detail-h {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-black);
    border-left: 5px solid var(--color-red);
    padding-left: 12px;
    margin: 30px 0 14px;
}

.work-detail-body p {
    margin-bottom: 14px;
    line-height: 1.95;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.work-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #262626;
    cursor: zoom-in;
    border: 1px solid var(--color-gray-border);
}

@media (max-width: 640px) {
    .work-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.work-detail-hint {
    font-size: 12.5px;
    color: #888;
    margin-top: 8px;
}

.work-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-border);
}

.work-detail-nav button {
    flex: 1;
    min-height: 48px;
    border: 2px solid var(--color-black);
    background: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.work-detail-nav button:hover:not(:disabled) {
    border-color: var(--color-red);
    color: var(--color-red);
}

.work-detail-nav button.is-list {
    background: var(--color-black);
    color: var(--color-white);
}

.work-detail-nav button.is-list:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

.work-detail-nav button:disabled {
    opacity: 0.3;
    cursor: default;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-count {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ddd;
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   新着情報一覧ページ：お知らせ・施工実績を全文で表示
   ========================================================================== */
.news-all-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-row {
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-left: 5px solid var(--color-black);
    padding: 20px 24px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.news-row.is-new {
    border-left-color: var(--color-red);
}

.news-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.news-row-new {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--color-red);
    color: var(--color-red);
    padding: 0 7px;
    letter-spacing: 0.12em;
}

.news-row-date {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-red);
}

.news-row-cat {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding: 2px 10px;
    background: #555;
}

.news-row-cat.is-notice {
    background: var(--color-red);
}

.news-row-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.55;
    margin-bottom: 6px;
}

.news-row-body {
    font-size: 14.5px;
    color: #555;
    line-height: 1.85;
}

@media (max-width: 640px) {
    .news-row {
        padding: 16px 16px;
    }
    .news-row-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   新着情報（更新のお知らせ）：ラベル・押せる行・お知らせの記事ページ
   ========================================================================== */
.ncat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    padding: 1px 9px;
    color: #fff;
    background: #6b6b6b;
    white-space: nowrap;
    text-shadow: none;
}

.ncat-notice { background: var(--color-red); }
.ncat-works { background: #3a3a3a; }
.ncat-recruit { background: #fff; color: var(--color-red); box-shadow: inset 0 0 0 1px var(--color-red); }
.ncat-company, .ncat-business { background: #6b6b6b; }

.hero-news .ncat-works,
.hero-news .ncat-company,
.hero-news .ncat-business {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hero-news .blog-item.is-link,
.news-row.is-link {
    position: relative;
    cursor: pointer;
    padding-right: 36px;
}

.hero-news .blog-item.is-link::after,
.news-row.is-link::after {
    content: '›';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
}

.news-row.is-link::after {
    color: #999;
}

.news-row.is-link:hover {
    border-left-color: var(--color-red);
}

.news-row.is-link:hover::after {
    color: var(--color-red);
}

.news-row .news-row-title {
    margin-bottom: 0;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: -6px 0 22px;
}

.news-detail-date {
    font-family: var(--font-en);
    font-size: 15px;
    color: #777;
}

.news-detail-nav {
    display: flex;
    justify-content: center;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-border);
}

.news-detail-nav button {
    min-width: 220px;
    min-height: 48px;
    border: 2px solid var(--color-black);
    background: var(--color-black);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.news-detail-nav button:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* 地図の下の「Googleマップで開く」ボタン */
.map-open-wrap {
    text-align: right;
    margin-top: 12px;
}

.map-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.map-open-btn span {
    font-size: 20px;
    line-height: 1;
}

.map-open-btn:hover {
    background: var(--color-red);
}

@media (max-width: 640px) {
    .map-open-wrap {
        text-align: center;
    }
    .map-open-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }
}

.sp-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.sp-fixed-bar a {
    flex: 1;
    text-align: center;
    padding: 14px 5px;
    font-weight: 900;
    font-size: 15px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.sp-btn-tel {
    background-color: var(--color-black);
}

.sp-btn-mail {
    background-color: var(--color-red);
}

@media (min-width: 992px) {
    .sp-fixed-bar {
        display: none;
    }
}
/* 動画が自動再生できない端末（iPhoneの低電力モードなど）では、動画の最初の場面を静止画で表示し、再生ボタンは出さない */
.hero-video-bg video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-video-bg video::-webkit-media-controls { display: none !important; }

/* ==========================================================================
   ▼ ここから下は WordPress 用に追加した見た目です（プレビューのデザインは上の部分そのまま）
   ========================================================================== */

/* ロゴを押すとトップページへ（リンクにしても見た目は同じ） */
a.logo-link {
    color: inherit;
}

/* 一覧のページ切り替え（1 2 3 次へ）をリンクにしても、ボタンと同じ見た目にする */
a.pager-btn,
span.pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

span.pager-btn.dots {
    border-color: transparent;
    cursor: default;
}

/* 管理画面にログインしているとき、上の黒いバーとヘッダーが重ならないようにする */
@media (min-width: 783px) {
    .admin-bar .site-header {
        top: 32px;
    }
}

@media (min-width: 601px) and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* 記事ページの本文（投稿画面で書いた文章・写真） */
.work-detail-body img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
}

.work-detail-body figure {
    margin: 0 0 16px;
}

.work-detail-body .wp-block-gallery {
    gap: 12px;
    margin-bottom: 16px;
}

.work-detail-body .wp-block-gallery img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--color-gray-border);
}

/* 本文のギャラリー（クラシック画面の「ギャラリーを作成」で入れた写真） */
.work-detail-body .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.work-detail-body .gallery-item {
    margin: 0;
}

.work-detail-body .gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--color-gray-border);
    background: #262626;
}

.work-detail-body .gallery-caption {
    font-size: 12.5px;
    color: #777;
    margin-top: 4px;
}

.work-detail-body br[style] {
    display: none;
}

@media (max-width: 640px) {
    .work-detail-body .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.work-detail-body h2,
.work-detail-body h3 {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-black);
    border-left: 5px solid var(--color-red);
    padding-left: 12px;
    margin: 30px 0 14px;
}

.work-detail-body ul,
.work-detail-body ol {
    margin: 0 0 14px 1.4em;
}

/* 記事ページの前後ボタン：前後の記事がないときは押せない見た目 */
.work-detail-nav button[disabled] {
    opacity: 0.3;
    cursor: default;
}

/* 一覧に記事がまだないとき */
.ishida-empty {
    text-align: center;
    color: #777;
    padding: 30px 0;
}

.hero-news .ishida-empty {
    color: #eee;
    padding: 20px 14px;
    text-align: left;
}

/* お問い合わせフォーム（Contact Form 7）を、今のデザインと同じ見た目にする */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

/* 入力もれの赤い文字は、入力欄のすぐ下の余白に表示する
   （文字が出たり消えたりしても、送信ボタンの位置が動かないようにするため） */
.wpcf7 .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: 100%;
    color: var(--color-red);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 3px;
}

.wpcf7 form .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 20px;
    border: 2px solid #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
    font-weight: 700;
    text-align: center;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: var(--color-red);
    background: #fdecea;
    color: var(--color-red);
}

/* 送信中は、くるくるマークの代わりにボタンを薄くして、2回押せないようにする */
.wpcf7 .wpcf7-spinner {
    display: none;
}

.wpcf7 form.submitting input[type="submit"] {
    opacity: 0.6;
    pointer-events: none;
}

.wpcf7 input[type="submit"].btn-primary {
    width: 100%;
    max-width: 360px;
    font-family: inherit;
}

/* 管理者にだけ見える案内（お問い合わせフォームが未設定のときなど） */
.ishida-admin-note {
    background: #fff8e1;
    border: 2px dashed #f0b400;
    color: #5d4300;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.8;
}

/* そのほかの固定ページ（プライバシーポリシーなど） */
.page-content {
    max-width: 860px;
}

.page-content p {
    margin-bottom: 14px;
    line-height: 1.95;
}

.page-content h2,
.page-content h3 {
    font-weight: 900;
    border-left: 5px solid var(--color-red);
    padding-left: 12px;
    margin: 30px 0 14px;
}

/* 画面の読み上げ用（WordPressの標準） */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* プライバシーポリシーへのリンク（ページが公開されているときだけ出ます） */
.footer-privacy {
    margin-bottom: 6px;
}
.footer-privacy a {
    color: #bbb;
    text-decoration: underline;
}
.footer-privacy a:hover {
    color: #fff;
}
.privacy-note {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    text-align: center;
}
.privacy-note a {
    color: var(--color-red);
    text-decoration: underline;
}
/* プライバシーポリシーなどの固定ページ本文のリンク */
.page-content a {
    color: var(--color-red);
    text-decoration: underline;
}
/* プライバシーポリシーなどの固定ページ本文の箇条書き */
.page-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 14px;
    line-height: 1.9;
}

/* 記事の本文：文章の後ろに続けて入れた写真（ギャラリーと同じ並び方にそろえる） */
.work-detail-body .ishida-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.work-detail-body .ishida-photos a {
    display: block;
}
.work-detail-body .ishida-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--color-gray-border);
    background: #262626;
}
.work-detail-body .ishida-photos.is-single {
    display: block;
}
.work-detail-body .ishida-photos.is-single img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    aspect-ratio: auto;
}
@media (max-width: 640px) {
    .work-detail-body .ishida-photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* トップ「自慢の施工実績」：写真が右から左へ流れ続ける帯 */
.works-marquee {
    overflow: hidden;
    margin-top: 30px;
    padding: 4px 0 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.works-marquee-track,
.works-marquee-track .wm-copy {
    display: flex;
    gap: 18px;
    width: max-content;
}
.works-marquee-track {
    padding-right: 18px;
    animation: ishida-wm-scroll var(--wm-dur, 60s) linear infinite;
}
.works-marquee-track .wm-copy {
    padding-left: 0;
}
.works-marquee:hover .works-marquee-track {
    animation-play-state: paused;
}
@keyframes ishida-wm-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.wm-item {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 300px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--color-gray-border);
    background: #262626;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.wm-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.wm-item:hover img {
    transform: scale(1.05);
}
.wm-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 640px) {
    .wm-item {
        width: 230px;
    }
    .works-marquee-track,
    .works-marquee-track .wm-copy {
        gap: 12px;
    }
    .works-marquee-track {
        padding-right: 12px;
    }
}

/* 石田工業オリジナルのアイコン（油圧ショベル・ダンプなど。inc/icons.php） */
.ishida-icon {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}
.ishida-svg {
    width: 1.3em;
    height: 1.3em;
    vertical-align: -0.28em;
}

/* スマホ：トップの動画の上の説明文と求人情報の文字に、黒いふちを付けて読みやすくする（コンセプトの大きな文字と PC は今のまま） */
@media (max-width: 767px) {
    .hero-lead,
    .recruit-catch-box,
    .recruit-catch-box * {
        text-shadow: 1.5px 1.5px 0 rgba(0,0,0,.92), -1.5px -1.5px 0 rgba(0,0,0,.92), 1.5px -1.5px 0 rgba(0,0,0,.92), -1.5px 1.5px 0 rgba(0,0,0,.92), 0px 1.5px 0 rgba(0,0,0,.92), 0px -1.5px 0 rgba(0,0,0,.92), 1.5px 0px 0 rgba(0,0,0,.92), -1.5px 0px 0 rgba(0,0,0,.92), 0 0 8px rgba(0,0,0,.85), 0 2px 12px rgba(0,0,0,.6) !important;
    }
    .recruit-catch-title,
    .recruit-catch-title * {
        text-shadow: 2px 2px 0 rgba(0,0,0,.92), -2px -2px 0 rgba(0,0,0,.92), 2px -2px 0 rgba(0,0,0,.92), -2px 2px 0 rgba(0,0,0,.92), 0px 2px 0 rgba(0,0,0,.92), 0px -2px 0 rgba(0,0,0,.92), 2px 0px 0 rgba(0,0,0,.92), -2px 0px 0 rgba(0,0,0,.92), 0 0 10px rgba(0,0,0,.9), 0 4px 16px rgba(0,0,0,.6) !important;
    }
    .recruit-catch-box {
        background: rgba(18, 18, 18, 0.6);
    }
}

/* トップ「新着情報（NEWS & BLOG）」の欄：AI 概算と求人情報の間 */
#newsSection .blog-scroll-frame {
    border: 3px solid var(--color-red); /* 赤い枠の外側を黒で囲む */
    box-shadow: 0 0 0 3px #111, 0 8px 24px rgba(0, 0, 0, 0.15);
}
#newsSection .blog-list {
    max-height: 449px; /* 1行の記事が約4.5件見える高さ */
}
#newsSection .blog-item {
    border-bottom: 2px dashed #c9c9c9; /* 1件ごとに点線で区切る */
    padding: 16px 18px;
}
#newsSection .blog-item-title {
    font-style: italic; /* 記事らしく斜めの文字 */
}
.top-news-more {
    text-align: center;
    margin-top: 30px;
}
.top-news-more .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* スマホだけ：動画の上の帯は透明の赤（PC は今のまま） */
@media (max-width: 767px) {
    .hero-badge {
        background-color: rgba(182, 55, 52, 0.55);
    }
}

/* フッター：SNS ボタンはメニューの一番下に、横一列で並べる */
.footer-sns {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-wrap: nowrap;
    margin-top: 4px;
}

/* 工事の種類ごとのラベルの色（施工実績のカード・流れる帯・一覧・記事ページ）
   1 木造解体工事＝赤 / 2 RC・鉄骨解体工事＝黒 / 3 内装・残置物撤去＝白 / 4 外構・土木工事＝黄色 / 5 その他の工事＝水色 */
.wt-1 { background: var(--color-red) !important; color: #fff !important; box-shadow: none !important; }
.wt-2 { background: #111 !important; color: #fff !important; box-shadow: none !important; }
.wt-3 { background: #fff !important; color: #111 !important; box-shadow: inset 0 0 0 1px #111 !important; }
.wt-4 { background: #f5c400 !important; color: #111 !important; box-shadow: none !important; }
.wt-5 { background: #4cb8e8 !important; color: #111 !important; box-shadow: none !important; }

