/*
Theme Name: Ogawa Engineering Theme
Author: Your Name
Description: 株式会社オガワエンジニアリングのウェブサイト用カスタムテーマ
Version: 1.0
*/

/* ===================================================================
   基本設定 (リセット & 全体)
=================================================================== */
:root {
    --main-dark: #333;
    --fluorescent-glow: #cceeff;
    --text-dark: #333;
    --text-light: #fff;
}

html {
    scroll-padding-top: 90px; 
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.85;
}

body.nav-open {
    overflow: hidden;
}

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

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

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 4%; 
}

/* ===================================================================
   ヘッダー & ナビゲーション
=================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 4%;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 1002;
}

.site-logo img {
    height: 30px;
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.site-header.scrolled .site-logo {
    opacity: 0;
    visibility: hidden;
}

/* PC用ナビゲーション */
.pc-nav {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pc-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.pc-nav li a {
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background-color: rgba(240, 240, 240, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1002;
}

.hamburger-menu span {
    width: 100%; 
    height: 3px; 
    background-color: var(--text-dark); 
    border-radius: 2px;
    transition: background-color 0.4s ease;
}

/* スライドナビゲーション */
.site-nav {
    position: fixed;
    top: 0;
    right: 0; 
    width: 320px;
    height: 100vh;
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: -4px 0 20px rgba(0,0,0,0.25); 
    padding: 120px 40px 40px;
    box-sizing: border-box;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s, visibility 0.5s;
    z-index: 1001;
}

body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.site-nav ul {
    margin: 0; 
    padding: 0; 
    list-style: none;
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
}

.site-nav li {
    width: 100%;
}

.site-nav li a {
    display: block; 
    padding: 15px 0; 
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    padding-bottom: 15px;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 260px;
    width: 30px;
    height: 30px;
    background: none; 
    border: none; 
    cursor: pointer;
}

.close-menu span {
    display: block; 
    width: 100%; 
    height: 3px;
    background-color: var(--text-light);
    position: absolute; 
    top: 50%; 
    left: 0;
}

.close-menu span:first-child { transform: rotate(45deg); }
.close-menu span:last-child { transform: rotate(-45deg); }

/* ヘッダーのスクロール/状態変化 */
.site-header:not(.scrolled) .hamburger-menu {
    background-color: rgba(0, 0, 0, 0.2);
}

.site-header:not(.scrolled) .hamburger-menu span {
    background-color: var(--text-light);
}

.site-header.scrolled .pc-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-header.scrolled .hamburger-menu {
    display: flex;
}

/* ===================================================================
   ボタン
=================================================================== */
.button-primary {
    display: inline-block;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    text-align: center;
    text-shadow: none;
}

.button-primary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.button-secondary {
    display: inline-block;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    background-color: transparent;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    text-align: center;
}

.button-secondary:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.pc-nav .button-primary { margin-left: 16px; }
.site-nav .button-primary { margin-top: 20px; }
.section-more-button { text-align: center; margin-top: 60px; }
#business .button-primary { border-color: var(--text-light); color: var(--text-light); }
#business .button-primary:hover { background-color: var(--text-light); color: var(--text-dark); }

/* ===================================================================
   共通のセクション & 見出し
=================================================================== */
.content-section { 
    padding: 100px 0; 
}

.section-title { 
    font-size: 2.5rem; 
    font-family: 'Roboto', sans-serif; 
    margin-bottom: 60px; 
    text-align: center; 
}

.section-title .en { 
    display: block; 
    font-weight: 700; 
}

.section-title .ja { 
    display: block; 
    font-size: 1rem; 
    font-family: 'Noto Sans JP', sans-serif; 
    margin-top: 5px; 
}

.section-title.text-white { 
    color: var(--text-light); 
}

/* ===================================================================
   トップページ (#main-visual)
=================================================================== */
#main-visual { 
    position: relative; 
    height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    color: var(--text-light); 
    overflow: hidden;
}

.hero-image { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    z-index: -1; 
    animation: zoom-in 20s ease-out forwards; 
}

@keyframes zoom-in { 
    from { transform: scale(1); } 
    to { transform: scale(1.1); } 
}


#main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.catchphrase {
    text-align: left;
    padding: 0 4% 10vh 4%; 
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.catchphrase h1, .catchphrase p {
    opacity: 0;
    transform: translateY(20px);
    text-shadow: none;
}
.catchphrase h1 {
    font-size: inherit;
    margin: 0;
}

.catchphrase .catchphrase-en {
    font-family: 'Roboto', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 10px;
    animation: fade-up 1s ease-out 0.5s forwards;
}

.catchphrase .catchphrase-ja {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    animation: fade-up 1s ease-out 0.8s forwards;
}

@keyframes fade-up { 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.scrolldown { 
    position: absolute; 
    bottom: 30px; 
    left: auto; 
    right: 4%;
    font-size: 0.8rem; 
    writing-mode: vertical-rl; 
    letter-spacing: 0.2em; 
    z-index: 2;
}

.scrolldown::after { 
    content: ''; 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    width: 1px; 
    height: 50px; 
    background: var(--text-light); 
    margin-top: 10px; 
    transform: translateX(-50%); 
    animation: scroll-hint 2s infinite ease-out; 
}

@keyframes scroll-hint { 
    0% { transform: scaleY(0); transform-origin: top; } 
    50% { transform: scaleY(1); transform-origin: top; } 
    51% { transform: scaleY(1); transform-origin: bottom; } 
    100% { transform: scaleY(0); transform-origin: bottom; } 
}


/* ===================================================================
   トップページ (各セクション)
=================================================================== */
#philosophy .container { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
}

#philosophy .text-content, #philosophy .image-content { 
    flex: 1; 
}

.philosophy-subtitle { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
}

.bg-green {
    background-color: var(--main-dark); 
    color: var(--text-light); 
} 

.service-item { 
    display: flex; 
    align-items: stretch; 
    gap: 50px; 
    margin-bottom: 50px; 
}
.service-item:last-child { 
    margin-bottom: 0; 
}
.service-item.reverse { 
    flex-direction: row-reverse; 
}
.service-item .text-content, .service-item .image-content { 
    flex: 1; 
}
.service-item h3 { 
    font-size: 1.5rem; 
    border-bottom: 2px solid var(--text-light); 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}

.works-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}
.work-item { 
    position: relative; 
    overflow: hidden; 
}
.work-item img { 
    transition: transform 0.5s ease; 
}
.work-item:hover img { 
    transform: scale(1.1); 
}
.work-overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); 
    color: var(--text-light); 
    padding: 30px; 
    box-sizing: border-box; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.work-item:hover .work-overlay { 
    opacity: 1; 
}
.work-overlay h4 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
}
.work-overlay p { 
    font-size: 0.9rem; 
}

/* 採用情報 */
#join-us { 
    width: 100%;
    padding: 120px 0; 
    
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    
    /* ▼▼▼ ここを変更（固定を解除） ▼▼▼ */
    background-attachment: scroll; 
    /* ▲▲▲ ここを変更（固定を解除） ▲▲▲ */
    
    text-align: center; 
    position: relative; 
    color: var(--text-light); 
    background-color: #1a1a1a;
}

/* 全体にかける暗いオーバーレイ */
#join-us::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    z-index: 1;
}

.join-us-content { 
    position: relative; 
    z-index: 2; 
}
.join-us-subtitle { 
    font-size: 1.8rem; 
    font-weight: 700; 
}

/* ▼▼▼ モバイル表示時の調整 ▼▼▼ */
@media (max-width: 768px) {
    #join-us {
        /* モバイル固有の調整があればここに記述 */
        /* background-size: cover; は継承されるのでそのままでOK */
        height: auto;
        padding: 100px 0;
    }
}
.news-list { border-top: 1px solid #e0e0e0; }
.news-item { display: flex; align-items: center; flex-wrap: wrap; padding: 25px 15px; border-bottom: 1px solid #e0e0e0; transition: background-color 0.3s; color: var(--text-dark); }
.news-item:hover { background-color: #f7f7f7; }
.news-date { min-width: 120px; font-family: 'Roboto', sans-serif; color: #555; font-weight: 700; }
.news-category { font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 5px; margin: 0 25px; color: var(--text-light); background-color: var(--text-dark); }
.news-title { margin: 0; flex: 1; }
.news-more-button { text-align: center; margin-top: 50px; }


/* ===================================================================
   下層ページ共通スタイル
=================================================================== */
#subpage-header {
    padding: 180px 4% 100px;
    background-size: 115%;
    background-position: center;
    position: relative;
    text-align: center;
    color: var(--text-light);
}
#subpage-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.subpage-header-content {
    position: relative;
    z-index: 1;
}
.subpage-header-content .en {
    font-size: 2.8rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.subpage-header-content .ja {
    font-size: 1rem;
    margin-top: 10px;
}

.breadcrumb-wrapper {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}
.breadcrumb {
    font-size: 0.8rem;
    color: #888;
}
.breadcrumb a {
    color: var(--text-dark);
    transition: opacity 0.3s;
}
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb span { font-weight: 700; color: var(--text-dark); }

.page-section { padding: 100px 0; }
.page-section.bg-dark-gray { background-color: var(--main-dark); color: #e0e0e0; }
.page-section.bg-dark-gray h2 { color: #fff; border-bottom-color: #555; }
.page-section.bg-dark-gray strong { color: #fff; }
.page-content h2 { font-size: 2rem; margin-bottom: 40px; padding-bottom: 15px; border-bottom: 2px solid var(--text-dark); }
.page-content h3 { font-size: 1.5rem; margin-top: 60px; margin-bottom: 25px; padding-left: 15px; border-left: 5px solid var(--text-dark); }
/* --- h4の共通スタイル (装飾なし) --- */
.page-content h4 {
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    /* ボーダーとパディングは削除 */
}

/* --- 情報セキュリティ専用スタイル (ここに線を移設) --- */
.security-heading {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* --- 採用フロー (間隔調整版) --- */
.recruitment-flow { display: flex; justify-content: space-between; text-align: center; gap: 20px; margin-top: 30px; }
.flow-step { flex: 1; position: relative; padding: 0 10px; }
.flow-step:not(:last-child)::after { content: '▶'; position: absolute; top: 40px; right: -20px; transform: translate(50%, -50%); color: #666; font-size: 1.5rem; }

/* 間隔を詰める */
.flow-icon { width: 80px; height: 80px; margin: 0 auto 10px; background-color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.flow-icon svg { width: 40px; height: 40px; fill: var(--main-dark); }
.flow-step-number { font-family: 'Roboto', sans-serif; font-weight: 700; color: #ccc; font-size: 0.9rem; margin-bottom: 5px; display: block; }
.flow-step-title { font-size: 1.2rem; color: #fff; margin: 0 0 10px 0; }
.flow-step-desc { font-size: 0.9rem; color: #f0f0f0; line-height: 1.5; margin: 0; }

/* モバイル表示 */
@media (max-width: 900px) {
    .recruitment-flow { flex-direction: column; gap: 25px; }
    .flow-step:not(:last-child)::after { content: '▼'; top: auto; bottom: -25px; right: 50%; transform: translateX(50%); }
}
.page-content p { margin-bottom: 20px; }
.page-content ul { list-style: none; padding-left: 0; }
.page-content ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.page-content ul li::before { content: '■'; position: absolute; left: 0; color: var(--text-dark); font-size: 0.8em; }
.greeting-lead { font-size: 1.2em; display: block; margin-bottom: 0.5em; }


/* ===================================================================
   コンポーネント (テーブル、フォームなど)
=================================================================== */
.profile-table { width: 100%; border-collapse: collapse; margin: 30px 0; background-color: #fff; border: 1px solid #e0e0e0; }
.profile-table th, .profile-table td { padding: 20px; text-align: left; vertical-align: top; border-bottom: 1px solid #e0e0e0; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: none; }
.profile-table th { width: 25%; font-weight: 700; background-color: #f9f9f9; }
.profile-table td ul { margin: 0; padding-left: 20px; }
.profile-table td ul li { margin-bottom: 5px; }
.profile-table td ul li::before { content: none; }
.bg-dark-gray .profile-table { background-color: transparent; border: none; border-top: 2px solid #666; border-bottom: 2px solid #666; }
.bg-dark-gray .profile-table th, .bg-dark-gray .profile-table td { padding: 25px 15px; border: none; border-bottom: 1px solid #555; }
.bg-dark-gray .profile-table tr:last-child th, .bg-dark-gray .profile-table tr:last-child td { border-bottom: none; }
.bg-dark-gray .profile-table th { background-color: transparent; color: #fff; font-weight: 700; }
.bg-dark-gray .profile-table td { color: #f0f0f0; }
.bg-dark-gray .profile-table td ul { list-style: disc; margin: 0; padding-left: 20px; }

.recruitment-table { width: 100%; border-collapse: collapse; margin: 30px 0; border: 1px solid #e0e0e0; }
.recruitment-table th, .recruitment-table td { padding: 20px; text-align: left; vertical-align: top; border-bottom: 1px solid #e0e0e0; }
.recruitment-table tr:last-child th, .recruitment-table tr:last-child td { border-bottom: none; }
.recruitment-table th { width: 25%; font-weight: 700; background-color: #f7f7f7; }
.entry-button-wrapper { text-align: center; margin-top: 50px; }

.service-detail { display: flex; align-items: center; gap: 40px; margin-top: 40px; }
.service-detail.reverse { flex-direction: row-reverse; }
.service-image { flex: 1; min-width: 40%; }
.service-text { flex: 1.5; }
.service-text h4 { font-size: 1.3rem; margin-top: 0; margin-bottom: 20px; }
.service-text ul { list-style: none; padding-left: 0; }
.service-text ul li { position: relative; padding-left: 20px; margin-bottom: 15px; }
.service-text ul li::before { content: '●'; position: absolute; left: 0; top: 0.1em; font-size: 0.8em; color: var(--text-dark); }
.bg-dark-gray .service-text ul li::before { color: #fff; }
.service-text ul li strong { display: block; margin-bottom: 3px; }

.works-grid-archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.work-card { display: flex; flex-direction: column; border: 1px solid #e0e0e0; border-radius: 5px; overflow: hidden; color: var(--text-dark); transition: box-shadow 0.3s, transform 0.3s; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.work-card-image { width: 100%; height: 180px; overflow: hidden; }
.work-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.work-title { font-size: 1.1rem; margin: 0 0 8px 0; }
.work-excerpt { font-size: 0.9rem; color: #666; margin: 0; flex-grow: 1; }
.work-card-content time { font-size: 0.85rem; font-family: 'Roboto', sans-serif; color: #888; margin-top: 15px; text-align: right; }

.news-list-archive { margin-top: 30px; border-top: 1px solid #e0e0e0; }
.news-item-archive { display: flex; align-items: center; padding: 20px 10px; border-bottom: 1px solid #e0e0e0; transition: background-color 0.3s; color: var(--text-dark); }
.news-item-archive:hover { background-color: #f7f7f7; }
.news-item-archive .news-date { min-width: 120px; font-family: 'Roboto', sans-serif; color: #555; font-weight: 700; }
.news-item-archive .news-category { font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 5px; margin: 0 25px; color: var(--text-light); background-color: var(--text-dark); flex-shrink: 0; }
.news-item-archive .news-title { margin: 0; flex: 1; font-weight: 700; }

.contact-form-container { max-width: 800px; margin: 0 auto; }
.form-intro { text-align: center; margin-bottom: 40px; }
.form-group { margin-bottom: 25px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-label .required { font-size: 0.8rem; font-weight: normal; background-color: #c0392b; color: #fff; padding: 2px 6px; border-radius: 3px; margin-left: 8px; }
.form-control { width: 100%; padding: 12px 15px; font-size: 1rem; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s; }
.form-control:focus { outline: none; border-color: var(--text-dark); box-shadow: 0 0 8px rgba(51, 51, 51, 0.15); }
textarea.form-control { resize: vertical; }
.privacy-policy-section { margin: 40px 0; text-align: center; }
.privacy-policy-details { margin-bottom: 20px; text-align: left; }
.privacy-policy-summary { cursor: pointer; font-weight: 700; padding: 10px; background-color: #f7f7f7; border: 1px solid #e0e0e0; border-radius: 5px; transition: background-color 0.3s; }
.privacy-policy-summary:hover { background-color: #f0f0f0; }
.privacy-policy-content { margin-top: 15px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 5px; font-size: 0.9rem; line-height: 1.8; }
.privacy-policy-content p { margin-bottom: 1em; }
.form-check { display: flex; justify-content: center; align-items: center; gap: 10px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; }
.submit-button-wrapper { text-align: center; margin-top: 30px; }
.submit-button-wrapper .button-secondary { padding: 12px 60px; font-size: 1.1rem; }

.pagination { text-align: center; margin-top: 50px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.pagination a, .pagination span { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; border: 1px solid #ccc; border-radius: 5px; transition: background-color 0.3s; }
.pagination a:hover { background-color: var(--text-dark); color: var(--text-light); }
.pagination .current { background-color: var(--text-dark); color: var(--text-light); border-color: var(--text-dark); font-weight: 700; }
.pagination .next-page { width: auto; border: none; }
.pagination .next-page a { width: auto; border: none; line-height: normal; padding: 0 10px; color: var(--text-dark); }
.pagination .next-page a:hover { background-color: transparent; color: #555; }

.map-container { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; margin-top: 30px; border: 1px solid #e0e0e0; }
.bg-dark-gray .map-container { border-color: #555; }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.security-action { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 5px; }
.security-logo { flex-shrink: 0; }
.security-logo img { max-width: 100px; margin: 0; box-shadow: none; border-radius: 0; }
.security-text p { margin-bottom: 0; font-size: 0.9rem; }


/* ===================================================================
   事業紹介 画像レイアウト (クラス分離・最終確定版)
=================================================================== */
.top-service-grid { display: flex; gap: 15px; aspect-ratio: 1 / 1; }
.top-service-grid .image-zoom-container { flex: 1; height: 100%; }
.top-service-grid .image-zoom-container img { width: 100%; height: 100%; object-fit: cover; }

.subpage-service-grid { display: flex; gap: 15px; aspect-ratio: 1 / 1; }
.subpage-service-grid .image-zoom-container { flex: 1; height: 100%; }
.subpage-service-grid .image-zoom-container img { width: 100%; height: 100%; object-fit: cover; }


/* ===================================================================
   フッター
=================================================================== */
.site-footer { background-color: #2b2b2b; color: #f0f0f0; padding: 80px 4% 0; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.footer-logo { height: 30px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-about .company-name { font-weight: 700; margin-bottom: 5px; }
.footer-about .tagline { font-size: 0.8rem; color: #aaa; margin: 0; }
.footer-nav h4, .footer-contact h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-contact p { line-height: 2; color: #ccc; }
.footer-contact p a:hover { color: #fff; }
.copyright { text-align: center; padding: 20px 0; font-size: 0.8rem; color: #aaa; border-top: 1px solid #444; }


/* ===================================================================
   ヘルパー & アニメーション
=================================================================== */
.pc-nav li a:not(.button-primary),
.footer-nav li a,
.site-nav li a:not(.button-primary) {
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s;
}
.pc-nav li a:not(.button-primary)::after,
.footer-nav li a::after,
.site-nav li a:not(.button-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #fff;
    box-shadow: 0 0 8px #fff, 0 0 16px var(--fluorescent-glow), 0 0 24px var(--fluorescent-glow);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.pc-nav li a:not(.button-primary):hover,
.footer-nav li a:hover,
.site-nav li a:not(.button-primary):hover {
    color: #fff;
}
.pc-nav li a:not(.button-primary):hover::after,
.footer-nav li a:hover::after,
.site-nav li a:not(.button-primary):hover::after {
    transform: translateX(-50%) scaleX(1);
}
.footer-nav li a { color: #ccc; padding-bottom: 5px; }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1s; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: rgba(43, 43, 43, 0.8); backdrop-filter: blur(5px); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 500; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.4s, visibility 0.4s, transform 0.4s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: rgba(10, 10, 10, 0.9); }
.back-to-top::after { content: ''; width: 10px; height: 10px; border-top: 3px solid var(--text-light); border-left: 3px solid var(--text-light); transform: rotate(45deg) translateY(2px); }

.button-primary, .button-secondary { transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s; }
.button-primary:hover, .button-secondary:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.bg-dark-gray a:not(.button-primary) { color: #fff; text-decoration: underline; transition: opacity 0.3s; }
.bg-dark-gray a:not(.button-primary):hover { opacity: 0.8; }


/* ===================================================================
   レスポンシブデザイン
=================================================================== */
@media (max-width: 900px) {
    html { scroll-padding-top: 70px; }
    .header-container { height: 70px; }
    .pc-nav { display: none; }
    .hamburger-menu { display: flex; }
    
    .site-header.scrolled .site-logo {
        opacity: 0;
        visibility: hidden;
    }

    .works-grid-archive { grid-template-columns: repeat(2, 1fr); }
    .recruitment-flow { flex-direction: column; gap: 50px; }
    .flow-step:not(:last-child)::after { content: '▼'; top: auto; bottom: -40px; right: 50%; transform: translateX(50%); }
    .recruitment-table th { width: 35%; }
}

@media (max-width: 768px) {
    .content-section, .page-section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .catchphrase .catchphrase-en { font-size: 3.5rem; }
    .catchphrase .catchphrase-ja { font-size: 1.2rem; }
    #philosophy .container, .service-item, .service-item.reverse { flex-direction: column; }
    .works-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-about, .footer-nav, .footer-contact { display: flex; flex-direction: column; align-items: center; }
    #subpage-header { padding: 140px 4% 80px; }
    .subpage-header-content .en { font-size: 2.2rem; }
    .page-content h2 { font-size: 1.8rem; }
    .page-content h3 { font-size: 1.3rem; }
    .news-item { flex-direction: column; align-items: flex-start; padding: 20px 10px; }
    .news-date { margin-bottom: 10px; }
    .news-category { margin: 0 0 10px 0; }
    .news-title { margin-top: 5px; }
    .profile-table th, .profile-table td,
    .bg-dark-gray .profile-table th, .bg-dark-gray .profile-table td { display: block; width: 100%; box-sizing: border-box; }
    .profile-table th, .bg-dark-gray .profile-table th { border-bottom: 1px solid #e0e0e0; }
    .bg-dark-gray .profile-table th { border-bottom-color: #555; }
    .security-action { flex-direction: column; text-align: center; }
    .service-detail, .service-detail.reverse { flex-direction: column; }
    .works-grid-archive { gap: 20px; }
    .news-item-archive { flex-wrap: wrap; padding: 15px 5px; }
    .news-item-archive .news-date { width: 100%; margin-bottom: 10px; }
    .news-item-archive .news-category { margin: 0 15px 0 0; }
    .recruitment-table th, .recruitment-table td { display: block; width: 100%; box-sizing: border-box; }
    .recruitment-table th { border-bottom: none; background-color: transparent; padding-bottom: 5px; }
    .recruitment-table td { border-bottom: 2px solid #e0e0e0; padding-top: 0; }
    .form-intro { text-align: left; }
    .join-us-content { padding: 0 4%; }
}

@media (max-width: 600px) {
    .works-grid-archive { grid-template-columns: 1fr; }
}

/* =============================================
   Contact Form 7 調整用スタイル (最終版)
============================================== */

/* 自動挿入されるpタグの余白をリセット */
.wpcf7 p {
    margin: 0;
    padding: 0;
}

/* エラーメッセージ等の位置調整 */
.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    margin-top: 5px;
}

/* 同意チェックボックスのレイアウト調整 */
.form-check .wpcf7-list-item {
    margin: 0;
}
.form-check label {
    display: flex;
    justify-content: center; /* 中央揃え */
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* =============================================
   Contact Form 7 送信ボタン位置修正 (絶対配置版)
============================================== */

/* 1. ボタンエリアの基準を作る */
.submit-button-wrapper {
    position: relative; /* 子要素の絶対配置の基準 */
    display: flex;
    justify-content: center; /* コンテナの中央に配置 */
    align-items: center;
    width: 100%;
    margin-top: 30px;
}

/* 2. 送信ボタンの余白をリセット */
.wpcf7 input[type="submit"] {
    margin: 0 !important; /* 強制的に余白削除 */
}

/* 3. スピナーを「絶対配置」にして場所を取らないようにする */
.wpcf7-spinner {
    position: absolute !important; /* 浮遊させる */
    margin: 0 !important;
    top: 50%;
    transform: translateY(-50%);
    
    /* ▼▼▼ 位置調整 ▼▼▼ */
    left: 50%; /* 画面の真ん中を起点に */
    margin-left: 110px; /* ボタンの右端付近に来るように数値を調整 (ボタン幅の半分+α) */
    /* ▲▲▲ 位置調整 ▲▲▲ */
    
    visibility: hidden; /* 通常時は非表示 */
}

/* 送信中は表示 */
.wpcf7-spinner.is-active {
    visibility: visible;
}