/* ==========================================================================
   STAGEING HOLDINGS - Design System & Stylesheet
   ========================================================================== */

/* Typography & Variable Definitions
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-light: #f8fafd;        /* Very light blue-gray tint (Premium Off-White) */
    --color-bg-alt: #f0f4f7;          /* Soft Gray-Blue */
    --color-bg-dark: #121316;        /* Elegant Dark Charcoal (No Navy) */
    --color-bg-dark-card: #1c1d21;   /* Sleek Dark Card */
    
    --color-primary: #57829f;        /* Brand Key Color: Blue-Gray (from Logo) */
    --color-primary-rgb: 87, 130, 159;
    --color-primary-light: #7ba5c2;
    --color-primary-dark: #2c4252;
    
    --color-accent: #e60012;         /* Vibrant Accent Red (Crimson) */
    --color-accent-hover: #b8000e;
    
    --color-text-dark: #1e2529;      /* Elegant Deep Charcoal */
    --color-text-muted: #424d52;     /* より暗く引き締まったスチールグレー（コントラスト改善） */
    --color-text-white: #ffffff;
    --color-text-white-muted: rgba(255, 255, 255, 0.85); /* より明るく見やすい白（コントラスト改善） */
    
    --color-border-light: rgba(87, 130, 159, 0.12);
    --color-border-dark: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    
    /* Structure & Animations */
    --header-utility-height: 36px;
    --header-main-height: 74px;
    --header-total-height: 110px;
    --container-width: 1600px; /* サイト全体的にブラウザ幅を広く贅沢に使うデザインに変更 */
    --page-padding: 3%; /* 左右の余白を少し詰めて画面幅を有効活用 */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); /* Ultra smooth ease-out */
}

/* Base resets & styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s var(--ease-premium);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation/UI list resets - コンテンツ領域のリストは除外 */
li {
    list-style: none;
}

/* コンテンツ領域内のリストはブラウザデフォルトのリストスタイルを復元 */
.entry-content li,
.page-content-section li,
.content-document-block li,
.wp-block-list li,
.editor-styles-wrapper li {
    list-style: inherit !important;
}

/* Utilities
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    width: 100%;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: var(--color-text-white); }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-blue {
    background: linear-gradient(135deg, #ffffff 40%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark Theme Utility Class */
.dark-theme {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

/* Buttons
   ========================================================================== */
/* Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 16px 36px;
    border-radius: 0; /* シャープでソリッドな角丸廃止 */
    font-weight: 600;
    border: 1px solid var(--color-primary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium), transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-premium);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary i {
    transition: transform 0.4s var(--ease-premium);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-primary:hover {
    color: var(--color-text-white);
    border-color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: var(--color-text-white);
    padding: 16px 36px;
    border-radius: 0;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-premium);
    z-index: -1;
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary i {
    transition: transform 0.4s var(--ease-premium);
}

.btn-secondary:hover i {
    transform: translateX(4px);
}

.btn-secondary:hover {
    color: var(--color-text-dark);
    border-color: var(--color-text-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.05rem;
}

.btn-outline-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 14px 45px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 0 !important; /* 角丸禁止 */
    background-color: transparent;
    transition: all 0.4s var(--ease-premium);
    cursor: pointer;
}

.btn-outline-square:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(87, 130, 159, 0.15);
}

.btn-outline-square i {
    font-size: 0.85rem;
    transition: transform 0.4s var(--ease-premium);
}

.btn-outline-square:hover i {
    transform: translateX(6px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.btn-text:hover::after {
    width: 100%;
}

/* Typography / Sections (More Premium & Clean)
   ========================================================================== */
.section-header {
    text-align: left;
    margin-bottom: 70px;
}

.section-num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.02em; /* 詰まりすぎを解消し上品な字間へ */
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0; /* 左寄せ用にautoを解除 */
    font-weight: 400;
    line-height: 1.7;
}

/* ダークテーマ上のサブタイトル文字色を視認性向上のため白系に修正 */
.dark-theme .section-subtitle,
.services-section .section-subtitle,
.recruit-section .section-subtitle {
    color: var(--color-text-white-muted);
}

/* Header & Utility Bar (Full-Width and Right-Aligned Nav)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s var(--ease-premium);
}

/* Adjust header position when WordPress Admin Bar is showing */
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}


/* Full-Width container wrapper */
.header-container-fluid {
    width: 100%;
    padding: 0 3%; /* より端まで広げる */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Tier 1: Utility Bar */
.header-utility-bar {
    height: var(--header-utility-height);
    background-color: rgba(18, 19, 22, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s var(--ease-premium);
}

.utility-left, .utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-link {
    font-size: 0.72rem;
    color: var(--color-text-white-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.utility-link:hover {
    color: var(--color-text-white);
}

/* 青いソリッドボタン */
.utility-btn-connect {
    background-color: var(--color-primary);
    color: #ffffff !important;
    padding: 6px 12px;
    font-weight: 700;
    margin: -6px 0;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.05em;
}

.utility-btn-connect:hover {
    background-color: var(--color-primary-light);
}

.utility-sep {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Language selector drop down in utility bar */
.lang-selector-tier {
    position: relative;
    cursor: pointer;
}

.lang-current {
    font-size: 0.72rem;
    color: var(--color-text-white-muted);
    font-family: var(--font-display);
    font-weight: 600;
}

.lang-dropdown {
    position: absolute;
    top: 25px;
    right: 0;
    background-color: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 0; /* 角丸禁止 */
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s var(--ease-premium);
    z-index: 10;
}

.lang-selector-tier:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    font-size: 0.72rem;
    font-family: var(--font-display);
    color: var(--color-text-white-muted);
    padding: 6px 18px;
    font-weight: 600;
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    color: var(--color-text-white);
    background-color: var(--color-primary);
}

.search-trigger {
    border: none;
    background: transparent;
    color: var(--color-text-white-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.search-trigger:hover {
    color: var(--color-text-white);
}

/* Tier 2: Main Header Bar (Full-Width, Right-Aligned Nav) */
.header-main-bar {
    height: var(--header-main-height);
    background-color: rgba(18, 19, 22, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s var(--ease-premium);
}

.logo-link {
    width: 240px; /* 横長ロゴに合わせてコンテナ幅を拡張 */
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo-img {
    height: 38px; /* 縦幅の窮屈さを解消しヘッダーと調和させるサイズ */
    width: auto;  /* 横幅はアスペクト比を維持して自動調整 */
    /* 視覚的重心の補正: マークが上に突き出ている分、わずかに上にずらして文字の水平ラインをナビに合わせます */
    transform: translateY(-3px);
    transition: transform 0.4s var(--ease-premium), filter 0.4s var(--ease-premium);
    
    /* 白単色表示: 透過動画背景上での白飛びを防ぎ輪郭をクリアに保つため、シンプルな白変換と薄いドロップシャドウのみを適用 */
    filter: brightness(0) invert(1) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.4));
}

.logo-img .logo-outline {
    stroke: transparent;
    stroke-width: 0px;
    transition: stroke 0.4s var(--ease-premium), stroke-width 0.4s var(--ease-premium);
}

.logo-link:hover .logo-img {
    transform: translateY(-3px) scale(1.02);
}

/* Nav pushed to the far right */
.header-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-white);
    padding: 24px 0;
    position: relative;
    display: block;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-light);
    transition: width 0.4s var(--ease-premium);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-arrow {
    font-size: 0.7em;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Header scroll transitions (scrolled state) */
.site-header.scrolled .header-utility-bar {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.site-header.scrolled .header-main-bar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.site-header.scrolled .nav-link {
    color: var(--color-text-dark);
}

.site-header.scrolled .logo-img {
    filter: none;
}

.site-header.scrolled .logo-img .logo-outline {
    stroke: #231815;
    stroke-width: 0.7px;
    stroke-linejoin: round;
}

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

/* Megamenu styling (Dark glassmorphism style)
   ========================================================================== */
.nav-item.has-megamenu {
    position: static;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(18, 19, 22, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 4px solid var(--color-primary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 非表示・フェードアウト中はマウス判定を完全に無効化 */
    transform: translateY(15px);
    transition: opacity 0.4s var(--ease-premium), visibility 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
    z-index: 999;
    padding: 60px 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.nav-item.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* ホバー時のみマウス入力を有効化 */
    transform: translateY(0);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Adjust top placement of megamenu when header scrolled */
.site-header.scrolled .megamenu {
    top: var(--header-main-height);
}

.megamenu-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 80px;
}

.megamenu-info {
    border-right: 1px solid var(--color-border-dark);
    padding-right: 50px;
}

.megamenu-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-primary-light);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 12px;
}

.megamenu-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 18px;
    line-height: 1.4;
}

.megamenu-desc {
    font-size: 0.85rem;
    color: var(--color-text-white-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.megamenu-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.megamenu-more i {
    transition: transform 0.3s ease;
}

.megamenu-more:hover i {
    transform: translateX(4px);
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.megamenu-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-white);
    border-left: 3px solid var(--color-primary-light);
    padding-left: 10px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.megamenu-item-link {
    display: block;
    margin-bottom: 20px;
}

.megamenu-item-link strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.megamenu-item-link span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-white-muted);
    line-height: 1.4;
}

.megamenu-item-link:hover strong {
    color: var(--color-primary-light);
}

/* Hamburger for Mobile
   ========================================================================== */
.hamburger-menu {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-white);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .hamburger-menu, .header-utility-bar {
        display: flex;
    }
    .hamburger-menu { display: none; }
}

@media (max-width: 991px) {
    .header-utility-bar { display: none; }
    .header-main-bar {
        background-color: rgba(18, 19, 22, 0.98);
        height: 70px;
    }
    .header-nav, .header-cta { display: none; }
    .hamburger-menu { display: flex; }
}

/* Mobile Overlay List */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 100px 0 60px;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* モバイルメニュー内の検索ボックス */
.mobile-search-box {
    margin-bottom: 45px;
    width: 280px;
    max-width: 85vw;
}

.mobile-search-form {
    position: relative;
    display: flex;
    width: 100%;
}

.mobile-search-field {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-white);
    font-size: 0.9rem;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box;
}

.mobile-search-field:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color 0.3s;
}

.mobile-search-submit:hover {
    color: var(--color-primary);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-white);
}

/* Mobile Language Selector */
.mobile-lang-selector {
    margin-top: 40px;
    text-align: center;
    width: 280px;
    max-width: 85vw;
}

.mobile-lang-label {
    display: block;
    font-size: 0.85rem;
    font-family: var(--font-display);
    color: var(--color-text-white-muted);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-lang-grid .lang-select-btn {
    display: block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-white-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-lang-grid .lang-select-btn.active {
    color: var(--color-text-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.mobile-lang-grid .lang-select-btn:hover {
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

/* Hamburger active anim */
.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero Section (FV with Background Video, Full-Width)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 動画背景が美しくはっきりと見えつつ、白い文字の可読性も維持する上品な透過度 */
    background: linear-gradient(135deg, rgba(18, 19, 22, 0.25) 0%, rgba(18, 19, 22, 0.55) 100%);
    z-index: 2;
}

/* FVテキスト配置 */
.hero-content-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: center;
    padding: 0 6%;
    pointer-events: none;
}

.hero-text-left {
    text-align: left;
    color: var(--color-text-white);
    pointer-events: auto;
    margin-top: 60px;
}

.hero-title-large {
    font-family: var(--font-display);
    font-size: clamp(3.8rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-transform: uppercase;
    
    /* Animation base */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease-premium), transform 1.2s var(--ease-premium);
}

.hero-title-large.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600; /* 太くして視認性を向上 */
    letter-spacing: 0.15em;
    color: #ffffff; /* 完全な白 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); /* ドロップシャドウで動画の上でもくっきり表示 */
    
    /* Animation base */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s var(--ease-premium) 0.3s, transform 1.2s var(--ease-premium) 0.3s;
}

.hero-subtitle-sub.active {
    opacity: 1;
    transform: translateY(0);
}

/* スクロールダウン表示 */
.scroll-down-split {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-down-split span {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.arrow-line {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.arrow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--color-primary-light);
    animation: scrollLine 2.2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: translateY(-15px); }
    100% { transform: translateY(40px); }
}

/* Important News Bar (1-Line Highlight)
   ========================================================================== */
.important-news-bar {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    padding: 16px 0;
    position: relative;
    z-index: 5;
}

.important-news-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.88rem;
    flex-wrap: wrap;
    position: relative;
    padding-right: 35px; /* 右端の矢印アイコン用のスペースを確保 */
}

.important-label {
    background-color: var(--color-accent);
    color: var(--color-text-white);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 0; /* 角丸禁止 */
}

.important-date {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text-muted);
}

.important-title {
    font-weight: 700;
    color: var(--color-text-dark);
    flex-grow: 1;
}

.important-icon {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%); /* 常に右端縦中央に固定し、折り返し時の崩れを防ぐ */
}

.important-news-link:hover .important-icon {
    transform: translateY(-50%) translateX(4px); /* 縦中央を維持したままスライド */
    color: var(--color-primary);
}

/* 2. Services Portal Section (Vertical Stack of Rows)
   ========================================================================== */
.services-section {
    padding: 160px 0; /* セクションの余白を十分に確保 */
    background-color: #151a24; /* グレー・ネイビー寄りの深いダークネイビーに変更 */
    color: var(--color-text-white);
    position: relative;
    overflow: hidden;
}

.services-section .container {
    position: relative;
    z-index: 2; /* コンテンツを背景グラデーションの前面に配置 */
}

/* マーブル背景の親コンテナ（ここで一括してボカすことで超軽量化） */
.services-marble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    filter: blur(140px); /* 複数の色の境界を極限まで滑らかにブレンド */
    pointer-events: none;
    opacity: 0.85; /* 全体の薄さをコントロール */
}

/* 各マーブル blob（フィルターは適用せず、単純な円形をGPUで動かす） */
.marble-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.blob-blue {
    top: -10%;
    left: 10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(28, 77, 138, 0.7) 0%, rgba(28, 77, 138, 0) 80%);
    animation: move-blob-1 25s infinite alternate ease-in-out;
}

.blob-purple {
    bottom: -10%;
    right: 5%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(90, 48, 138, 0.6) 0%, rgba(90, 48, 138, 0) 80%);
    animation: move-blob-2 30s infinite alternate ease-in-out;
}

.blob-cyan {
    top: 30%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(24, 115, 143, 0.55) 0%, rgba(24, 115, 143, 0) 80%);
    animation: move-blob-3 22s infinite alternate ease-in-out;
}

.blob-pink {
    bottom: 20%;
    left: -10%;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(138, 43, 114, 0.45) 0%, rgba(138, 43, 114, 0) 80%);
    animation: move-blob-4 28s infinite alternate ease-in-out;
}

@keyframes move-blob-1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(8%, 12%, 0) scale(1.15); }
    100% { transform: translate3d(-5%, 6%, 0) scale(0.9); }
}

@keyframes move-blob-2 {
    0% { transform: translate3d(0, 0, 0) scale(0.95); }
    50% { transform: translate3d(-10%, -15%, 0) scale(1.2); }
    100% { transform: translate3d(5%, 5%, 0) scale(1.05); }
}

@keyframes move-blob-3 {
    0% { transform: translate3d(0, 0, 0) scale(1.1); }
    50% { transform: translate3d(-12%, 8%, 0) scale(0.85); }
    100% { transform: translate3d(6%, -10%, 0) scale(1.05); }
}

@keyframes move-blob-4 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(15%, -8%, 0) scale(1.25); }
    100% { transform: translate3d(-8%, 10%, 0) scale(0.9); }
}

.services-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 120px; /* タイル間の間隔を十分に広げて呼吸スペースを作る */
    margin-top: 80px;
}

.service-portal-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    padding-bottom: 80px;
    position: relative; /* 擬似要素の位置調整用 */
}

/* フェードアウトする洗練された光のグラデーション仕切り線 */
.service-portal-row::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(87, 130, 159, 0.45) 50%, /* 視認性を確保するため引き上げ */
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.9; /* うっすらと常に見えるように引き上げ */
    transition: opacity 0.6s var(--ease-premium), background 0.6s var(--ease-premium);
}

/* ホバー時に仕切り線がほんのり美しく光る演出 */
.service-portal-row:hover::after {
    opacity: 1;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(123, 165, 194, 0.8) 50%, /* ホバー時に明るいブルーで光る演出 */
        rgba(255, 255, 255, 0) 100%
    );
}

.service-portal-row:last-child {
    padding-bottom: 0;
}

.service-portal-row:last-child::after {
    display: none; /* 最後の要素には仕切り線を表示しない */
}

@media (min-width: 992px) {
    .service-portal-row {
        grid-template-columns: 1.15fr 1fr;
        gap: 90px; /* PCでの隙間をゆったりとる */
    }
    
    .service-portal-row.reverse {
        grid-template-columns: 1fr 1.15fr;
    }
    
    .service-portal-row.reverse .service-media {
        order: 2;
    }
    
    .service-portal-row.reverse .service-info {
        order: 1;
    }
}

.service-media {
    display: block; /* aタグ化に伴いブロック要素にする */
    height: 420px; /* すこし高さを出す */
    border-radius: 0; /* 角丸を廃止してシャープに */
    position: relative;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 背景画像をズームさせる疑似要素 */
.service-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 1.2s var(--ease-premium);
}

/* グラデーションオーバーレイ */
.service-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 19, 22, 0.55) 0%, rgba(18, 19, 22, 0.15) 100%);
    z-index: 2;
    transition: opacity 0.8s var(--ease-premium);
}

/* ホバー時に画像を上品にズームアップ */
.service-portal-row:hover .service-media::before {
    transform: scale(1.06);
}

.service-portal-row:hover .service-media::after {
    opacity: 0.35; /* 少し透過度を変えて画像を鮮明に */
}

.service-portal-row:hover {
    border-color: var(--color-primary-light);
}

.service-info {
    display: flex;
    flex-direction: column;
}

.service-num-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary-light);
    letter-spacing: 0.25em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.service-row-title {
    font-size: 2.1rem; /* 少し大きくしてコントラストをつける */
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 24px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color 0.4s var(--ease-premium);
}

.service-row-title a {
    color: inherit;
    text-decoration: none;
}

.service-portal-row:hover .service-row-title {
    color: var(--color-primary-light);
}

.service-row-desc {
    font-size: 0.95rem;
    color: var(--color-text-white-muted);
    font-weight: 500; /* 少し太くして黒背景の上でも潰れないように */
    line-height: 1.85;
    margin-bottom: 35px;
}

.service-row-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
}

.service-row-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-light);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s var(--ease-premium);
}

.service-row-links li a i {
    font-size: 0.8rem;
    transition: transform 0.4s var(--ease-premium);
}

.service-row-links li a:hover {
    color: var(--color-text-white);
}

.service-row-links li a:hover i {
    transform: translateX(6px); /* 矢印のスライド量を増加 */
}

.portal-action-row {
    margin-top: 80px;
}

/* 3. Introduction Section (Rough Sketch Page 2)
   ========================================================================== */
.intro-section {
    padding: 140px 0;
    background-color: var(--color-bg-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .intro-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 80px;
    }
}

.intro-photo-col {
    position: relative;
}

.photo-frame {
    position: relative;
    border-radius: 0; /* 角丸禁止 */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: none;
}

.photo-frame img {
    width: 100%;
    height: auto;
    filter: grayscale(10%) contrast(102%);
    transition: transform 0.8s var(--ease-premium);
}

.photo-frame:hover img {
    transform: scale(1.02);
}

.photo-overlay-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 0; /* 角丸禁止 */
}

.intro-content-col {
    display: flex;
    flex-direction: column;
}

.intro-lead-box {
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
    margin-bottom: 30px;
}

.intro-main-copy {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.intro-detail-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

.intro-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-highlights li {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    display: flex;
    align-items: flex-start; /* 複数行になった時もアイコンが1行目の上揃えになるように */
    gap: 12px;
}

.intro-highlights li i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 3px; /* テキストの1行目の中心にアイコン位置を微調整 */
    flex-shrink: 0;
}

.highlight-text {
    display: flex;
    flex-direction: column; /* モバイルでは見出しと説明を縦に並べて折り返し崩れを防止 */
    gap: 4px;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .highlight-text {
        flex-direction: row; /* タブレット・PCでは横一列にスッキリ並べる */
        align-items: baseline;
        gap: 12px;
    }
    
    .highlight-title {
        position: relative;
        padding-right: 15px;
        flex-shrink: 0;
    }
    
    /* 横並び時にのみ、タイトルの後ろに「：」を美しく付与 */
    .highlight-title::after {
        content: '：';
        position: absolute;
        right: 0;
        color: var(--color-text-muted);
    }
}

/* 4. News Section Portal (Vertical Stack Aligned with Premium Layout)
   ========================================================================== */
.news-section-portal {
    padding: 160px 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

/* Premium Row List for News */
.news-list-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    border-top: 1px solid rgba(87, 130, 159, 0.15); /* 上部に洗練された細い仕切り線 */
}

.news-list-row {
    display: flex;
    flex-direction: column;
    padding: 24px 15px;
    border-bottom: 1px solid rgba(87, 130, 159, 0.12); /* 下部仕切り線 */
    text-decoration: none;
    color: inherit;
    transition: background-color 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
    position: relative;
    gap: 12px;
}

.news-list-row:hover {
    background-color: rgba(87, 130, 159, 0.04); /* ホバー時の微細な色変化 */
    border-bottom-color: var(--color-primary); /* 下線がキーカラーに変化 */
}

/* サムネイル付きニュースリストのレイアウト設定 */
.news-list-row.has-thumbnail-layout {
    flex-direction: row !important;
    align-items: flex-start !important; /* 上揃えで配置バランスを最適化 */
    gap: 30px;
    padding: 30px 20px;
}

.news-row-thumbnail-wrapper {
    width: 220px;
    height: 136px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-row-thumbnail-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transition: transform 0.6s var(--ease-premium);
}

.news-list-row:hover .news-row-thumbnail-img {
    transform: scale(1.05); /* ホバー時にサムネイル画像が少し拡大 */
}

.news-row-thumbnail-fallback {
    width: 100%;
    height: 100%;
    padding: 25px 30px; /* フルロゴ(logo.svg)用に十分な余白を設定 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9; /* より明るいクリーンなグレー背景 */
    transition: background-color 0.4s var(--ease-premium);
}

.news-list-row:hover .news-row-thumbnail-fallback {
    background-color: #e2e8f0;
}

.news-row-fallback-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 0.15; /* 控えめな透かしロゴ */
    transition: opacity 0.4s var(--ease-premium), transform 0.6s var(--ease-premium);
}

.news-list-row:hover .news-row-fallback-logo {
    opacity: 0.28;
    transform: scale(1.02);
}

.news-row-info-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0; /* テキスト省略や幅崩れを防止 */
    padding-top: 4px; /* サムネイルの上端との視覚的バランス調整 */
}

.news-row-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 4px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行に制限 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



.news-row-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    flex-shrink: 0;
}

.news-row-date {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.news-row-badge {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 0;
    letter-spacing: 0.02em;
    display: inline-block;
    border: 1px solid transparent;
    white-space: nowrap; /* テキストが2行に折り返されないように固定 */
}

/* 発信者バッジ: ダークトーンの個別カラー */
.news-row-badge.badge-honsha {
    background-color: #2d3748;
    color: #ffffff;
    border-color: #2d3748;
}

.news-row-badge.badge-nagasaki {
    background-color: #1e4d6e;
    color: #ffffff;
    border-color: #1e4d6e;
}

.news-row-badge.badge-okinawa {
    background-color: #2e6b5e;
    color: #ffffff;
    border-color: #2e6b5e;
}

.news-row-badge.badge-vision {
    background-color: #4a3560;
    color: #ffffff;
    border-color: #4a3560;
}

.news-row-badge.badge-fukuoka {
    background-color: #5a3e2b;
    color: #ffffff;
    border-color: #5a3e2b;
}

/* カテゴリバッジ: 発信者と色味が被らない個別カラー */
.news-row-badge.badge-corp {
    background-color: #3d4f5f;
    color: #ffffff;
    border-color: #3d4f5f;
}

.news-row-badge.badge-product {
    background-color: #57829f;
    color: #ffffff;
    border-color: #57829f;
}

.news-row-badge.badge-ir {
    background-color: #8b2e3b;
    color: #ffffff;
    border-color: #8b2e3b;
}

.news-row-badge.badge-recruit-info {
    background-color: #6b5b3e;
    color: #ffffff;
    border-color: #6b5b3e;
}

.section-desc-note {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 10px;
    text-align: center;
}


.news-row-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-row-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    color: var(--color-text-dark);
    transition: color 0.3s ease;
}

.news-list-row:hover .news-row-title {
    color: var(--color-primary); /* ホバー時にタイトルをキーカラーに */
}

.news-row-tag {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
}

.news-row-arrow {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    opacity: 0.5;
    transition: transform 0.4s var(--ease-premium), opacity 0.4s var(--ease-premium);
    font-size: 0.95rem;
    margin-left: auto;
}

.news-list-row:hover .news-row-arrow {
    opacity: 1;
    transform: translateX(6px); /* 矢印がスライドするマイクロインタラクション */
}

/* PCレスポンシブ時の1行プレミアムスッキリレイアウト */
@media (min-width: 992px) {
    /* 通常のサムネイル無し1行レイアウト（既存レイアウトの保持） */
    .news-list-row:not(.has-thumbnail-layout) {
        flex-direction: row;
        align-items: center;
        padding: 28px 25px;
        gap: 50px;
    }
    
    .news-list-row:not(.has-thumbnail-layout) .news-row-meta {
        min-width: 380px;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 15px;
    }
    
    .news-list-row:not(.has-thumbnail-layout) .news-row-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }
    
    .news-list-row:not(.has-thumbnail-layout) .news-row-title {
        max-width: 78%;
    }
    
    .news-list-row:not(.has-thumbnail-layout) .news-row-tag {
        margin-left: auto; /* タグを右端へ */
        white-space: nowrap;
    }
    
    .news-list-row:not(.has-thumbnail-layout) .news-row-arrow {
        margin-left: 20px;
        flex-shrink: 0;
    }

    /* サムネイル付きのリッチな2カラムニュースリストレイアウト（PC用） */
    .news-list-row.has-thumbnail-layout {
        flex-direction: row !important;
        align-items: center !important; /* サムネイルと情報エリアを縦中央揃えに */
        padding: 30px 25px !important;
        gap: 40px !important;
    }

    .news-list-row.has-thumbnail-layout .news-row-info-area {
        flex-direction: column !important; /* 右側コンテンツエリア内は絶対に縦積み */
        align-items: flex-start !important;
        gap: 10px !important;
        flex-grow: 1;
        width: auto;
    }

    .news-list-row.has-thumbnail-layout .news-row-meta {
        min-width: 0 !important; /* 既存の横一列用固定幅をクリア */
        width: 100% !important;
        gap: 8px 15px !important;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .news-list-row.has-thumbnail-layout .news-row-body {
        flex-direction: row !important; /* タイトルとタグは横並び */
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .news-list-row.has-thumbnail-layout .news-row-title {
        max-width: 80% !important;
        font-size: 1.25rem !important; /* 少しタイトルを目立たせる */
        line-height: 1.45 !important;
        white-space: normal !important;
    }

    .news-list-row.has-thumbnail-layout .news-row-tag {
        margin-left: 0 !important; /* 左寄せにしてタイトルの直後に配置 */
        white-space: nowrap;
    }

    .news-list-row.has-thumbnail-layout .news-row-excerpt {
        width: 100% !important;
        margin-top: 2px !important;
        max-width: 90% !important; /* 抜粋の横幅を適度に制限して可読性アップ */
        white-space: normal !important;
    }

    .news-list-row.has-thumbnail-layout .news-row-arrow {
        margin-left: auto !important; /* 矢印を右端にプッシュ */
        flex-shrink: 0 !important;
    }
}

/* タブレット・スマホ時のニュースリスト・バッジ表示最適化 */
@media (max-width: 768px) {
    .news-row-meta {
        gap: 8px 10px !important;
    }
    .news-row-date {
        font-size: 0.88rem !important;
        display: block !important;
        width: 100% !important; /* 日付を1行に独立させてバッジをすべて下に落とす */
        margin-bottom: 4px !important; /* 日付とバッジの間に適切な隙間を確保 */
    }
    .news-row-badge {
        font-size: 0.65rem !important;
        padding: 3px 10px !important; /* タップしやすく余白を少し調整 */
        letter-spacing: 0 !important;
    }
}

/* スマホ時のサムネイル表示最適化（縦並びカード型に変換） */
@media (max-width: 576px) {
    .news-list-row.has-thumbnail-layout {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
        padding: 20px 15px !important;
        position: relative;
    }
    
    .news-row-thumbnail-wrapper {
        width: 100% !important;
        height: 150px !important;
    }
    
    .news-row-thumbnail-fallback {
        padding: 20px 40px !important;
    }
    
    .news-row-info-area {
        padding-top: 0 !important;
        padding-right: 25px; /* 右端の矢印と重ならないようにマージンを確保 */
    }
    
    .news-row-excerpt {
        -webkit-line-clamp: 3; /* スマホ時は少し長めに3行まで表示可能に */
        font-size: 0.84rem;
    }

    .news-row-arrow {
        position: absolute;
        right: 15px;
        bottom: 20px;
        margin-left: 0 !important;
    }
    
    .news-list-row:hover .news-row-arrow {
        transform: none !important; /* スマホ時は横移動のアニメーションを無効化して安定させる */
    }
}

/* 5. Works Section (Vertical Stack of Rows - Design Aligned with Services)
   ========================================================================== */
.works-section {
    padding: 160px 0;
    background-color: var(--color-bg-light);
}

.tab-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 70px;
}

.tab-btn {
    border: 1px solid var(--color-border-light);
    background-color: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: 12px 36px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0; /* 丸みのあるタブから、シャープで品格のあるタブに変更 */
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.5s var(--ease-premium);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 8px 25px rgba(87, 130, 159, 0.15);
}

.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
    opacity: 1;
}

/* Vertical Stack for Works (Premium Aligned with Services) */
.works-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 100px; /* ゆったりとした間隔 */
    margin-top: 60px;
}

.work-portal-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 80px;
    transition: border-color 0.6s var(--ease-premium);
}

.work-portal-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 992px) {
    .work-portal-row {
        grid-template-columns: 1.15fr 1fr;
        gap: 90px;
    }
    
    .work-portal-row.reverse {
        grid-template-columns: 1fr 1.15fr;
    }
    
    .work-portal-row.reverse .work-media {
        order: 2;
    }
    
    .work-portal-row.reverse .work-info {
        order: 1;
    }
}

.work-media {
    height: 400px;
    border-radius: 0; /* 角丸を廃止しシャープに */
    position: relative;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* 疑似要素による背景画像ズーム */
.work-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 1.2s var(--ease-premium);
}

/* 上品なオーバーレイ */
.work-media::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 19, 22, 0.15) 0%, rgba(18, 19, 22, 0.02) 100%);
    z-index: 2;
    transition: opacity 0.8s var(--ease-premium);
}

.work-portal-row:hover .work-media::before {
    transform: scale(1.06);
}

.work-portal-row:hover {
    border-color: var(--color-primary);
}

.work-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0; /* シャープに */
    z-index: 3;
    letter-spacing: 0.05em;
}

.work-info {
    display: flex;
    flex-direction: column;
}

.work-meta-row {
    margin-bottom: 16px;
}

.work-detail-date {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.08em;
}

.work-row-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
    transition: color 0.4s var(--ease-premium);
}

.work-portal-row:hover .work-row-title {
    color: var(--color-primary);
}

.work-row-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Spec Tables (Refining border & alignment) */
.work-spec-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
    border-top: 1px solid var(--color-border-light);
}

.work-spec-table tr {
    border-bottom: 1px solid var(--color-border-light);
}

.work-spec-table th {
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    width: 180px;
    padding: 12px 20px 12px 0;
    color: var(--color-primary-dark);
    vertical-align: top;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.work-spec-table td {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    padding: 12px 0;
    line-height: 1.55;
}

.work-card-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.4s var(--ease-premium);
}

.work-card-link i {
    transition: transform 0.4s var(--ease-premium);
}

.work-card-link:hover {
    color: var(--color-primary-dark);
}

.work-portal-row:hover .work-card-link i {
    transform: translateX(6px);
}

/* 実績一覧・詳細のスマホ表示最適化 */
@media (max-width: 991px) {
    .work-portal-row {
        gap: 30px !important;
        padding-bottom: 50px !important;
    }
    .work-media {
        height: 260px !important; /* スマホ向けに画像の高さを調整 */
    }
    .work-row-title {
        font-size: 1.35rem !important; /* タイトルを読みやすいサイズに */
        margin-bottom: 15px !important;
    }
    .works-specs-col .section-title {
        font-size: 1.5rem !important;
    }
    .works-summary-grid {
        gap: 40px !important;
        margin-bottom: 50px !important;
    }
}

@media (max-width: 768px) {
    /* スペックテーブルを縦並びに変換し、狭い画面での可読性を大幅に向上 */
    .work-spec-table, 
    .work-spec-table tbody, 
    .work-spec-table tr, 
    .work-spec-table th, 
    .work-spec-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .work-spec-table th {
        padding: 12px 0 4px 0 !important;
        border-bottom: none !important;
        font-size: 0.8rem !important;
    }
    .work-spec-table td {
        padding: 0 0 12px 0 !important;
        font-size: 0.88rem !important;
    }
    .work-spec-table tr {
        border-bottom: 1px solid var(--color-border-light) !important;
    }
}

/* 6. Recruit Section (Rough Sketch Page 3)
   ========================================================================== */
/* 6. Recruit Section (Rough Sketch Page 3)
   ========================================================================== */
.recruit-section {
    padding: 160px 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    position: relative;
}

.recruit-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 80%, rgba(87, 130, 159, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* 2 Column layout wrapper */
.recruit-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px; /* モバイル表示時のマージン空きすぎを解消 */
    align-items: center;
    margin-bottom: 0; /* 下部余白の二重加算を防ぐため 0 に設定 */
}

@media (min-width: 992px) {
    .recruit-grid-wrapper {
        grid-template-columns: 1fr 1.25fr;
        gap: 50px; /* デスクトップ表示での間隔を適切に調整 */
    }
}

.recruit-info-col {
    text-align: left;
}

.recruit-info-col .section-num {
    display: inline-block;
    margin-bottom: 20px;
}

.recruit-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px; /* 見出し下のマージンを詰めて文章との一体感を高める */
    letter-spacing: -0.01em;
}

.recruit-desc {
    color: var(--color-text-white-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 0;
}

.recruit-tile-card {
    width: 100%;
    margin: 0;
    text-align: left;
    border: none;
}

.diary-container {
    text-align: left;
}

.diary-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-align: center;
}

.diary-section-desc {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 60px;
}

.diary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 576px) {
    .diary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .diary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.diary-card {
    background-color: var(--color-text-white);
    border: 1px solid var(--color-border-light);
    border-radius: 0; /* 角丸廃止 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--ease-premium);
}

.diary-img-holder {
    height: 200px;
    background-size: cover;
    background-position: center;
    filter: brightness(80%);
    position: relative;
    overflow: hidden;
}

.diary-img-holder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--ease-premium);
}

.diary-card:hover .diary-img-holder::before {
    transform: scale(1.08);
}

.diary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(87, 130, 159, 0.15);
}

.diary-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.diary-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}

.diary-date {
    font-family: var(--font-display);
    font-weight: 500;
}

.diary-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.instagram-follow-row {
    margin-top: 80px;
    text-align: center;
}

.btn-insta-follow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--color-text-dark);
    color: var(--color-text-dark);
    padding: 14px 36px;
    border-radius: 0; /* 角丸廃止 */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.5s var(--ease-premium);
}

.btn-insta-follow:hover {
    background-color: var(--color-text-dark);
    color: var(--color-text-white);
    border-color: var(--color-text-dark);
    transform: translateY(-2px);
}

/* 7. Double Link Blocks with Bidirectional Arrow (Rough Sketch Page 3)
   ========================================================================== */
.dual-banner-section {
    padding: 120px 0;
    background-color: var(--color-bg-light);
}

.dual-banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .dual-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.dual-banner-card {
    position: relative;
    height: 460px; /* 縦長でゆとりのあるカード */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    border: none;
    overflow: hidden;
}

/* 背景画像とオーバーレイのズーム用疑似要素 */
.dual-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 1.2s var(--ease-premium);
}

/* ダークオーバーレイ */
.dual-banner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 19, 22, 0.72); /* テキストの視認性をしっかり確保 */
    z-index: 2;
    transition: background-color 0.6s var(--ease-premium);
}

.dual-banner-card:hover::before {
    transform: scale(1.05);
}

.dual-banner-card:hover::after {
    background-color: rgba(18, 19, 22, 0.62); /* ホバー時にうっすら明るく */
}

/* メインリンクエリア */
.banner-main-link {
    position: relative;
    z-index: 3;
    padding: 50px 50px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-sub {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--color-primary-light);
    margin-bottom: 12px;
}

.banner-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.banner-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92); /* 明るくして視認性を大幅に向上 */
    font-weight: 500; /* 太くして画像の上でもはっきりと読めるように */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); /* 微細なシャドウで可読性を担保 */
    margin-bottom: 30px;
    max-width: 460px;
}

.banner-btn-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    transition: all 0.4s var(--ease-premium);
}

.banner-btn-text i {
    transition: transform 0.4s var(--ease-premium);
}

.banner-main-link:hover .banner-btn-text {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.banner-main-link:hover .banner-btn-text i {
    transform: translateX(6px);
}

/* カード下のポータルリンク */
.banner-portal-links {
    position: relative;
    z-index: 3;
    background-color: rgba(18, 19, 22, 0.45); /* ポータルリンクの背景を落ち着かせる */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
}

.banner-portal-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.banner-portal-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--color-primary-light);
    transition: transform 0.3s ease;
}

.banner-portal-links a:hover {
    color: var(--color-text-white);
}

.banner-portal-links a:hover::before {
    transform: translateX(4px);
}

/* Footer & Site Map Grid
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.85); /* 視認性向上のため明るさを引き上げ */
    padding: 100px 0 50px; /* 上下のパディングを広くして品格を高める */
    border-top: 1px solid rgba(255, 255, 255, 0.06); /* 上部の薄い区切り線 */
}

/* ヘッダーと完璧に左右余白を一致させる */
.footer-container-fluid {
    width: 100%;
    padding: 0 4%;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 80px; /* 下部との間隔を広げる */
}

@media (min-width: 992px) {
    .footer-top {
        grid-template-columns: 320px 1fr; /* 左のブランド幅を制限 */
        gap: 100px; /* 隙間を広げて窮屈さを完全に排除 */
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    width: 180px; /* ロゴサイズをやや控えめにして上品に */
    height: auto;
    filter: brightness(0) invert(1); /* 白ロゴに統一 */
}

.footer-company-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-white);
    letter-spacing: 0.05em;
    margin: 5px 0 0 0;
}

.footer-tagline {
    font-size: 0.78rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8); /* 視認性向上のため明るさを引き上げ */
    font-weight: 400;
    max-width: 450px; /* 横幅を広げて不自然な改行を防止 */
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0; /* 角丸廃止 */
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.4s var(--ease-premium);
}

.social-icon:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-3px);
}

/* サイトマップのグリッド */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

@media (min-width: 576px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-nav-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
    }
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
}

.footer-nav-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* 見出し下の極細のアンダーラインで整える */
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 間隔を適度に詰める */
}

.footer-nav-list a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8); /* 視認性向上のため明るさを引き上げ */
    font-weight: 500; /* 少し肉厚にして可読性を向上 */
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: var(--color-primary-light);
    transform: translateX(4px); /* ホバー時のテキストスライド効果 */
}

/* フッター最下部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.footer-bottom-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75); /* 視認性向上のため明るさを引き上げ */
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-text-white);
}

.footer-credits {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7); /* 視認性向上のため明るさを引き上げ */
    letter-spacing: 0.02em;
    font-family: var(--font-display);
}

/* Animations Trigger Classes
   ========================================================================== */
.k-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}

.k-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.k-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}

.k-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* 6.5. Staff Diary Section (Instagram Feed Integration)
   ========================================================================== */
.staff-diary-section {
    padding: 160px 0;
    background-color: var(--color-bg-alt);
    color: var(--color-text-dark);
    position: relative;
    border-top: 1px solid var(--color-border-light);
}

/* ==========================================================================
   Mobile Responsive Optimization (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. セクション全体のパディングをモバイル向けに最適化（無駄な余白の削除） */
    .services-section,
    .intro-section,
    .news-section-portal,
    .works-section,
    .recruit-section,
    .staff-diary-section,
    .dual-banner-section {
        padding: 80px 0;
    }

    /* 2. セクションヘッダーの下部余白の調整 */
    .section-header {
        margin-bottom: 40px;
    }

    /* 3. モバイルヘッダーロゴのサイズ調整（ハンバーガーメニューとの衝突防止） */
    .logo-link {
        width: 170px !important;
    }
    .logo-img {
        height: 27px !important;
    }

    /* 4. 事業紹介・実績の画像が縦長に間延びするのを防ぐ高さ最適化 */
    .service-media {
        height: 230px;
    }
    .work-media {
        height: 210px;
    }

    /* 5. 企業紹介写真とテキストの間隔を最適化 */
    .intro-grid {
        gap: 35px;
    }

    /* 6. バナーカード（採用・お問合せ・会社案内）のモバイル表示調整 */
    .dual-banner-card {
        height: auto;
        min-height: 420px;
    }
    .banner-main-link {
        padding: 35px 24px 20px;
        height: auto;
    }
    .banner-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    .banner-desc {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .banner-portal-links {
        padding: 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 7. 実績（Works）の「詳細を見る」リンクをモバイルで右揃えに調整 */
    .work-card-link {
        align-self: flex-end;
        margin-top: 15px;
    }
}

/* ==========================================================================
   下層ページ（Page Header Premium）のレイアウト＆視認性調整
   ========================================================================== */

/* 下層ページのメインエリア上部パディングをゼロにして、
   黒背景のプレミアムヘッダーをヘッダー（fixed）の背後に回り込ませる。
   これにより、ヘッダーの高さ変更（スクロールによる縮小）時に白い隙間が露出するのを防ぐ。 */
.site-main {
    padding-top: 0 !important;
}

/* プレミアムヘッダー自体の padding-top をヘッダー高さ分（110px）増やし、
   コンテンツの開始位置を適正化する。 */
.page-header-premium {
    padding-top: calc(110px + 100px) !important; /* 初期値100px ＋ ヘッダーの初期高さ110px */
}

/* モバイル表示（991px以下）では、ヘッダーの高さが70pxになるため、それに合わせて調整 */
@media (max-width: 991px) {
    .page-header-premium {
        padding-top: calc(70px + 80px) !important; /* 初期値80px ＋ モバイルヘッダー高さ70px */
    }
}

/* ヒーローエリアのボディコピー（リード文）が日本語の不自然な位置で改行されるのを防ぐ */
.page-header-premium .section-subtitle,
.profile-hero-section .section-subtitle {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 黒背景の上でのリード文（サブタイトル）の視認性を改善するためのユーティリティクラス */
.text-white-muted {
    color: var(--color-text-white-muted) !important;
}

/* ==========================================================================
   会社概要ページのサブメニュー（quick-nav-bar）の位置・吸着調整
   ========================================================================== */
.quick-nav-bar {
    transition: top 0.4s var(--ease-premium) !important;
}

/* スクロールしてヘッダーが縮んだ（74px）後、サブメニューの吸着位置も連動して74pxにする */
.site-header.scrolled ~ #primary .quick-nav-bar,
.site-header.scrolled ~ .site-main .quick-nav-bar {
    top: 74px !important;
}

/* モバイル（991px以下）ではヘッダー高さが70pxになるため連動 */
@media (max-width: 991px) {
    .site-header.scrolled ~ #primary .quick-nav-bar,
    .site-header.scrolled ~ .site-main .quick-nav-bar {
        top: 70px !important;
    }
}

/* ==========================================================================
   ページ遷移アニメーション（シャッタースライド・トランジション）
   ========================================================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-primary); /* コーポレートカラーのブルーグレー単色 */
    z-index: 99999;
    pointer-events: none;
    transform: translateX(0); /* 初期状態：画面全体を覆っている */
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden; /* 子要素（ロゴラッパー）をクリップし、マスクを実現 */
}

/* スライドアウト（ページロード後：右へ抜ける） */
.page-transition-overlay.fade-out {
    transform: translateX(100%);
}

/* スライドイン（リンククリック時：左から入ってきて画面を覆う） */
.page-transition-overlay.fade-in {
    transform: translateX(0);
}

/* 逆変形ロゴラッパー：親の動きを完全に打ち消し、ロゴを画面中央に固定したままマスクする */
.page-transition-logo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

/* 親が右（100%）に抜けるとき、子は左（-100%）に動いて中央位置をキープ */
.page-transition-overlay.fade-out .page-transition-logo-wrapper {
    transform: translateX(-100%);
}

/* 親が左（-100%）から入ってくるとき、子は右（100%）から中央（0）へ動く（JSとCSSのクラスで制御） */
.page-transition-overlay.fade-in .page-transition-logo-wrapper {
    transform: translateX(0);
}

/* トランジションロゴ本体：余計な枠線やグローは廃止し、シンプルにマスクで出現させる */
.page-transition-logo {
    position: relative;
    pointer-events: none;
}

.transition-logo-svg {
    width: clamp(100px, 16vw, 160px); /* レスポンシブに大迫力サイズスケール */
    height: auto;
    display: block;
}

/* 通常（PC版：ヘッダー直下のポップダウン検索バー） */
@media (min-width: 992px) {
    .search-overlay {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 76px; /* 遠慮気味なスリムサイズ */
        background-color: rgba(18, 19, 22, 0.98); /* ヘッダー非スクロール時：ダーク */
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px); /* 上部から小さくポップダウン */
        transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium), visibility 0.4s, background-color 0.4s, border-color 0.4s;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* ヘッダーがスクロールされた状態での検索バーの配色（白ヘッダーに合わせる） */
    .site-header.scrolled .search-overlay {
        background-color: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--color-border-light);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    }

    .search-overlay.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .search-overlay-close {
        position: absolute;
        top: 50%;
        right: 4%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.4rem;
        cursor: pointer;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    /* スクロール時のクローズボタンの色 */
    .site-header.scrolled .search-overlay-close {
        color: var(--color-text-dark);
    }

    .search-overlay-close:hover {
        color: var(--color-primary);
        transform: translateY(-50%) rotate(90deg);
    }

    .search-overlay-inner {
        width: 100%;
        max-width: 800px;
        padding: 0 40px;
    }

    .search-field-overlay {
        width: 100%;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 10px 40px 10px 0;
        font-size: 1.2rem; /* 遠慮気味なフォントサイズ */
        font-weight: 600;
        color: #fff;
        outline: none;
        transition: border-color 0.4s ease, color 0.4s;
    }

    .site-header.scrolled .search-field-overlay {
        color: var(--color-text-dark);
        border-bottom-color: var(--color-border-light);
    }

    .search-field-overlay:focus {
        border-color: var(--color-primary);
    }

    .search-submit-overlay {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.1rem;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .site-header.scrolled .search-submit-overlay {
        color: var(--color-text-muted);
    }

    .search-submit-overlay:hover {
        color: var(--color-primary-light);
    }

    .search-field-overlay::placeholder {
        color: rgba(255, 255, 255, 0.35);
    }

    .site-header.scrolled .search-field-overlay::placeholder {
        color: rgba(0, 0, 0, 0.3);
    }
}

/* スマホ表示（SP版：現状維持の全画面オーバーレイ） */
@media (max-width: 991px) {
    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(11, 12, 16, 0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50px);
        transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium), visibility 0.4s;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search-overlay.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .search-overlay-close {
        position: absolute;
        top: 30px;
        right: 30px;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 2rem;
        cursor: pointer;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .search-overlay-close:hover {
        color: #fff;
        transform: rotate(90deg);
    }

    .search-overlay-inner {
        width: 90%;
        max-width: 600px;
        text-align: center;
    }

    .search-overlay-form {
        position: relative;
        width: 100%;
    }

    .search-field-overlay {
        width: 100%;
        background: none;
        border: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        padding: 15px 50px 15px 0;
        font-size: clamp(1.4rem, 4vw, 2.2rem);
        font-weight: 800;
        color: #fff;
        outline: none;
        transition: border-color 0.4s ease;
    }

    .search-field-overlay:focus {
        border-color: var(--color-primary);
    }

    .search-submit-overlay {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.6rem;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .search-submit-overlay:hover {
        color: var(--color-primary-light);
    }

    .search-field-overlay::placeholder {
        color: rgba(255, 255, 255, 0.25);
        font-weight: 600;
    }
}

/* ==========================================================================
   Back to Top Button (Solid Square Style)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0; /* 角丸禁止 */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998; /* 他のオーバーレイ(999, 99999)の下に配置 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium), background-color 0.3s ease, border-color 0.3s ease, visibility 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 1.1rem;
    transition: transform 0.3s var(--ease-premium);
}

.back-to-top:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary-light);
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* ==========================================================================
   Unified Content Typography & Elements (WordPress Standard)
   ========================================================================== */
/* コンテンツ幅の標準規格オプション（Wide & Middle） */
.content-width-wide {
    max-width: 1600px !important;
}
.content-width-middle {
    max-width: 1200px !important;
}

/* 通常の投稿・固定ページのメイン文章幅（デフォルトをMiddle: 1200pxに設定し、レイアウトの美しさを確保） */
.entry-content,
.page-content-section > .container,
.wp-custom-form-content,
.content-document-block {
    max-width: 1200px !important;
    margin: 0 auto !important;
}



/* 一部の全幅表示したいセクションや、特殊レイアウトを持つ場合は個別指定が可能なように親を制限しない設計 */
.entry-content h1,
.page-content-section h1,
.content-document-block h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 900;
    line-height: 1.35;
    color: var(--color-text-dark);
    margin-top: 60px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
}

.entry-content h2,
.page-content-section h2,
.content-document-block h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-text-dark);
    margin-top: 50px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.entry-content h3,
.page-content-section h3,
.content-document-block h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--color-text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 8px;
}

.entry-content h4,
.page-content-section h4,
.content-document-block h4 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-top: 35px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.entry-content h4::before,
.page-content-section h4::before,
.content-document-block h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    margin-right: 10px;
}

.entry-content h5,
.page-content-section h5,
.content-document-block h5 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-top: 30px;
    margin-bottom: 10px;
}

/* 段落間の余白と行間 */
.entry-content p,
.page-content-section p,
.content-document-block p {
    margin-bottom: 25px;
    line-height: 1.95;
    color: var(--color-text-muted);
}

/* コンテンツ領域内のリンク：視認性とホバーエフェクト */
.entry-content a,
.page-content-section a,
.content-document-block a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(87, 130, 159, 0.35);
    transition: all 0.3s var(--ease-premium);
}

.entry-content a:hover,
.page-content-section a:hover,
.content-document-block a:hover {
    color: var(--color-primary-dark);
    text-decoration-color: var(--color-primary-dark);
}

/* リスト（箇条書き・番号付き）の統一（ソリッドスクエアに合致する四角いマーカー） */
.entry-content ul,
.page-content-section ul,
.content-document-block ul {
    list-style-type: square;
    padding-left: 20px;
    margin-bottom: 25px;
    color: var(--color-text-muted);
}

.entry-content ol,
.page-content-section ol,
.content-document-block ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 25px;
    color: var(--color-text-muted);
}

.entry-content li,
.page-content-section li,
.content-document-block li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* テーブル（表）の統一スタイルは下部の Gutenberg Block Editor Integration セクションで
   .wp-block-table と .entry-content を統合して一括定義しています */

/* レスポンシブテーブル対応 */
@media (max-width: 768px) {
    .entry-content table,
    .page-content-section table,
    .content-document-block table,
    .wp-block-table table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Office Cards & Subsidiaries (About Page)
   ========================================================================== */
.office-card {
    transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium) !important;
}
.office-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.06) !important;
}
/* ホバー時に写真（オフィスイメージ）がゆっくりと優雅に拡大する */
.office-card:hover .office-media {
    transform: scale(1.05);
}
.office-link {
    transition: color 0.3s var(--ease-premium);
}
.office-card:hover .office-link {
    color: var(--color-primary) !important;
}
.office-btn i {
    transition: transform 0.3s var(--ease-premium);
}
.office-card:hover .office-btn {
    color: var(--color-primary-dark) !important;
}
.office-card:hover .office-btn i {
    transform: translateX(5px);
}

/* ==========================================================================
   Contact Form 7 Integration & Premium Styling
   ========================================================================== */
/* CF7のフォームコンテナ */
.wp-custom-form-content .wpcf7,
.sth-premium-form {
    background-color: #ffffff;
    padding: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    border: none;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .wp-custom-form-content .wpcf7,
    .sth-premium-form {
        padding: 30px 20px !important;
    }
}

/* フォームの各項目グループ */
.wp-custom-form-content .form-group,
.sth-premium-form .form-group {
    margin-bottom: 35px;
}
.wp-custom-form-content .form-group:last-of-type,
.sth-premium-form .form-group:last-of-type {
    margin-bottom: 40px;
}

/* ラベル表示 */
.wp-custom-form-content .form-group label,
.sth-premium-form .form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.wp-custom-form-content .form-group label .required-badge,
.sth-premium-form .form-group label .required-badge {
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 3px 8px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.wp-custom-form-content .form-group label .optional-badge,
.sth-premium-form .form-group label .optional-badge {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 10px;
}

/* テキスト・メール・電話・テキストエリア入力 */
.wp-custom-form-content .wpcf7-text,
.wp-custom-form-content .wpcf7-textarea,
.sth-premium-form input[type="text"],
.sth-premium-form input[type="email"],
.sth-premium-form input[type="tel"],
.sth-premium-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--color-text-dark);
    transition: border-color 0.3s;
    background-color: #ffffff;
}

.wp-custom-form-content .wpcf7-textarea,
.sth-premium-form textarea {
    line-height: 1.6;
    resize: vertical;
}

.wp-custom-form-content .wpcf7-text:focus,
.wp-custom-form-content .wpcf7-textarea:focus,
.sth-premium-form input[type="text"]:focus,
.sth-premium-form input[type="email"]:focus,
.sth-premium-form input[type="tel"]:focus,
.sth-premium-form textarea:focus {
    border-color: var(--color-primary-light);
    outline: none;
}

/* CF7特有の input/textarea を包む span のブロック化 */
.wp-custom-form-content .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* ラジオボタンのレイアウト調整 */
.wp-custom-form-content .wpcf7-radio,
.sth-premium-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.wp-custom-form-content .wpcf7-radio .wpcf7-list-item,
.sth-premium-form .radio-group label {
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.wp-custom-form-content .wpcf7-radio input[type="radio"],
.sth-premium-form input[type="radio"] {
    accent-color: var(--color-primary);
    border-radius: 0;
    margin: 0;
    cursor: pointer;
}

/* プライバシーポリシー同意枠 */
.wp-custom-form-content .privacy-agreement-block,
.sth-premium-form .privacy-agreement-block {
    background-color: var(--color-bg-alt);
    padding: 35px;
    margin-bottom: 40px;
    border: none;
}

.wp-custom-form-content .privacy-agreement-block h4,
.sth-premium-form .privacy-agreement-block h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--color-text-dark);
}

.wp-custom-form-content .privacy-agreement-block p,
.sth-premium-form .privacy-agreement-block p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 22px;
}

/* CF7のチェックボックスの無駄なインデントやマージンをリセットして左端を揃える */
.wp-custom-form-content .privacy-agreement-block .wpcf7-acceptance,
.wp-custom-form-content .privacy-agreement-block .wpcf7-list-item {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-custom-form-content .privacy-agreement-block label,
.wp-custom-form-content .privacy-agreement-block .wpcf7-list-item label,
.sth-premium-form .privacy-agreement-block label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-text-dark);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.wp-custom-form-content .privacy-agreement-block input[type="checkbox"],
.wp-custom-form-content .privacy-agreement-block .wpcf7-list-item input[type="checkbox"],
.sth-premium-form .privacy-agreement-block input[type="checkbox"] {
    accent-color: var(--color-primary);
    border-radius: 0;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    position: relative;
    top: 0px;
    vertical-align: middle !important;
}

.wp-custom-form-content .privacy-agreement-block .wpcf7-list-item-label {
    display: inline-block !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}


/* 送信ボタンエリア */
.wp-custom-form-content .submit-button-area,
.sth-premium-form .submit-button-area {
    text-align: center;
}

.wp-custom-form-content .wpcf7-submit,
.sth-premium-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: 18px 45px;
    font-size: 1.05rem;
    border-radius: 0;
    font-weight: 600;
    border: 1px solid var(--color-primary);
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium), transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
}

/* サイト共通のボタンと同様の背景黒スライドアニメーション */
.wp-custom-form-content .wpcf7-submit::before,
.sth-premium-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-premium);
    z-index: -1;
}

.wp-custom-form-content .wpcf7-submit:hover::before,
.sth-premium-form button[type="submit"]:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ホバー時に擬似要素beforeの挙動と連動させてカラーと枠線等を変化 */
.wp-custom-form-content .wpcf7-submit:hover,
.sth-premium-form button[type="submit"]:hover {
    color: var(--color-text-white) !important;
    border-color: var(--color-bg-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ホバー時のアイコンスライドの挙動 */
.wp-custom-form-content .wpcf7-submit i,
.sth-premium-form button[type="submit"] i {
    transition: transform 0.4s var(--ease-premium);
}

.wp-custom-form-content .wpcf7-submit:hover i,
.sth-premium-form button[type="submit"]:hover i {
    transform: translateX(4px);
}

/* CF7のエラーメッセージなどのスタイル微調整 */
.wp-custom-form-content .wpcf7-not-valid-tip {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 600;
}

.wp-custom-form-content .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border: 2px solid var(--color-primary) !important;
    background-color: var(--color-bg-alt) !important;
    font-size: 0.9rem !important;
    color: var(--color-text-dark) !important;
    text-align: center;
}

.wp-custom-form-content .wpcf7-response-output.wpcf7-validation-errors {
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
}

.wp-custom-form-content .wpcf7-response-output.wpcf7-mail-sent-ok {
    border-color: #39b54a !important;
    color: #39b54a !important;
}

/* ==========================================================================
   Post Navigation Card Styles (Single Post Navigation)
   ========================================================================== */
.post-navigation-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.post-navigation-wrapper .nav-previous,
.post-navigation-wrapper .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation-wrapper .nav-next {
    margin-left: auto; /* 前の記事がない場合に次の記事を右寄せにする */
}

.post-navigation-wrapper a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-nav-card {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    transition: all 0.4s var(--ease-premium);
    height: 100%;
}

.post-navigation-wrapper .nav-next .post-nav-card {
    text-align: right;
    align-items: flex-end;
}

.post-navigation-wrapper .nav-previous .post-nav-card {
    text-align: left;
    align-items: flex-start;
}

.post-nav-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    transition: color 0.4s var(--ease-premium);
}

.post-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: color 0.4s var(--ease-premium);
}

/* ホバー時のプレミアムエフェクト */
.post-navigation-wrapper a:hover .post-nav-card {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(87, 130, 159, 0.15);
}

.post-navigation-wrapper a:hover .post-nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.post-navigation-wrapper a:hover .post-nav-title {
    color: var(--color-text-white);
}

/* モバイルレスポンシブ対応 */
@media (max-width: 768px) {
    .post-navigation-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .post-navigation-wrapper .nav-previous,
    .post-navigation-wrapper .nav-next {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }
    
    .post-nav-card {
        padding: 16px 20px;
    }
    
    .post-navigation-wrapper .nav-next .post-nav-card {
        text-align: left;
        align-items: flex-start;
    }
}

/* Google Translate Widget - バナーバー・ツールチップの非表示
   ========================================================================== */
.goog-te-banner-frame {
    display: none !important;
}

/* Google翻訳がbodyにtop:40pxを自動付与するのを打ち消す */
body {
    top: 0 !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#goog-gt-tt {
    display: none !important;
}

/* ==========================================================================
   Gutenberg Block Editor Integration & Styling
   ========================================================================== */

/* 1. Table Block Styling (.wp-block-table) */
.wp-block-table {
    margin-bottom: 35px;
    background-color: transparent;
    box-shadow: none;
}

.wp-block-table table,
.entry-content table,
.page-content-section table,
.content-document-block table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    border-top: 2px solid var(--color-primary) !important;
    border-radius: 0;
    background-color: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.01);
}

.wp-block-table th,
.entry-content th,
.page-content-section th,
.content-document-block th {
    background-color: var(--color-bg-alt);
    color: var(--color-primary-dark);
    font-weight: 700;
    text-align: left;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border-light);
    border-right: none;
    border-left: none;
    border-top: none;
    font-size: 0.95rem;
    vertical-align: middle;
}

.wp-block-table td,
.entry-content td,
.page-content-section td,
.content-document-block td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border-light);
    border-right: none;
    border-left: none;
    border-top: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    background-color: #ffffff;
}

/* 2. List Block Styling (.wp-block-list) */
.wp-block-list,
.entry-content ul,
.page-content-section ul,
.content-document-block ul {
    list-style-type: disc !important;
    padding-left: 24px !important;
    margin-bottom: 25px;
}

.wp-block-list.is-ordered,
.entry-content ol,
.page-content-section ol,
.content-document-block ol {
    list-style-type: decimal !important;
    padding-left: 24px !important;
    margin-bottom: 25px;
}

.wp-block-list li,
.entry-content li,
.page-content-section li,
.content-document-block li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: var(--color-text-muted);
    list-style-position: outside !important;
    display: list-item !important;
}

/* 3. YouTube Embed Block (.wp-block-embed-youtube) */
.wp-block-embed-youtube,
.wp-block-embed.is-type-video,
.editor-styles-wrapper .wp-block-embed-youtube,
.editor-styles-wrapper .wp-block-embed.is-type-video {
    margin-bottom: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-radius: 0px; /* IPO企業向けのシャープな直角デザイン */
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 4. Image Block & Lightbox (.wp-block-image) */
.wp-block-image,
.editor-styles-wrapper .wp-block-image {
    margin-bottom: 35px;
}

.wp-block-image img,
.editor-styles-wrapper .wp-block-image img {
    border-radius: 0px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-border-light);
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Captions */
.wp-block-image figcaption,
.wp-block-embed figcaption,
.editor-styles-wrapper .wp-block-image figcaption,
.editor-styles-wrapper .wp-block-embed figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    font-family: var(--font-base);
}

/* WordPress Core Lightbox (WP 6.4+) Style Adjustments */
.wp-lightbox-overlay {
    background-color: rgba(18, 19, 22, 0.95) !important;
}

.wp-lightbox-overlay button {
    color: #ffffff !important;
}

.wp-lightbox-overlay .wp-lightbox-close-button {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s var(--ease-premium);
}

.wp-lightbox-overlay .wp-lightbox-close-button:hover {
    background-color: var(--color-primary) !important;
}

/* 5. Separator Block (.wp-block-separator) */
.wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
    border: none;
    border-top: 1px solid var(--color-primary);
    margin: 50px auto;
    max-width: 100px;
    opacity: 0.8;
}

.wp-block-separator.is-style-wide,
.editor-styles-wrapper .wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-separator.is-style-dots,
.editor-styles-wrapper .wp-block-separator.is-style-dots {
    border: none;
    height: auto;
    line-height: 1;
    text-align: center;
    background: none;
}

.wp-block-separator.is-style-dots::before,
.editor-styles-wrapper .wp-block-separator.is-style-dots::before {
    content: "···";
    color: var(--color-primary);
    font-size: 1.5rem;
    letter-spacing: 1em;
    padding-left: 1em;
}

/* ==========================================================================
   ローンチ用モバイルレスポンシブ余白・統一感の全体調整
   ========================================================================== */
@media (max-width: 768px) {
    /* スマホビューでのページ左右のパディングを適正化（端に張り付くのを防ぐ） */
    :root {
        --page-padding: 20px !important;
    }

    /* 各種セクションのインライン巨大 padding (100px 0 など) をSP向けに一括調整 */
    .news-archive-section,
    .works-archive-section,
    .job-post-archive-section,
    .staff-interview-archive-section,
    .prev-next-interviews-section,
    .staff-gallery-section,
    .project-story-section,
    .photo-gallery-section,
    article#post,
    article.post,
    article.works,
    article.job_post,
    article.staff_interview,
    .entry-footer,
    main > section,
    .site-main > section {
        padding-top: 55px !important;
        padding-bottom: 55px !important;
    }
    
    /* 巨大な上下マージン（120pxなど）をSP用に縮小・統一 */
    .interview-qa-zigzag .qa-block-row,
    .staff-gallery-section,
    .prev-next-interviews-section,
    .entry-footer {
        margin-top: 55px !important;
        margin-bottom: 55px !important;
    }

    /* パンくずリスト、ページヘッダーのスマホ余白調整 */
    .page-header-premium {
        padding: 80px 0 50px 0 !important;
    }
    .breadcrumb-bar {
        padding: 10px 0 !important;
    }
    
    /* ボタン類のSP最適化（押しやすさ確保と余白調整） */
    .btn-outline-square,
    .btn-primary {
        padding: 14px 30px !important;
        font-size: 0.85rem !important;
    }
}

