/* --- 共通スタイル (Base & Reset) --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Noto Sans JP", sans-serif; line-height: 1.8; color: #333; background-color: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* --- 変数定義 --- */
:root {
    --color-primary: #2b4c7e;
    --color-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    --color-text-main: #333;
    --color-text-sub: #666;
    --color-bg-light: #ffffff;
    --color-border: #e2e8f0;
    --font-en: "Arial", sans-serif;
}

/* --- レイアウト --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; background-color: #fff; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-family: var(--font-en); font-size: 2.8rem; font-weight: 700; letter-spacing: 0.05em;
    margin-bottom: 5px; text-transform: capitalize;
    background: var(--color-accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block;
}
.section-subtitle {
    font-size: 1rem; color: var(--color-text-sub); display: block; font-weight: 500; margin-top: 5px;
}
.section-subtitle::after {
    content: ""; display: block; width: 40px; height: 3px; background: var(--color-accent-gradient);
    margin: 15px auto 0; border-radius: 2px;
}

/* --- 共通カード（白い箱） --- */
.common-card {
    background: #fff; padding: 60px; border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    width: 100%; position: relative; z-index: 1;
}

/* --- ボタン --- */
.btn-primary {
    display: inline-block; background: var(--color-accent-gradient); color: #fff;
    padding: 16px 50px; border-radius: 50px; font-weight: bold; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); letter-spacing: 0.05em; border: none;
    position: relative; overflow: hidden; z-index: 1; transition: all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); color: #fff; opacity: 0.95; }

/* --- ヘッダー --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.header.scrolled {
    background-color: transparent;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ（グラデーション丸角枠） */
.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 6px 20px;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #3b82f6, #a855f7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.logo a:hover {
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.25);
}

.header-logo-img {
    height: 40px;
    width: auto;
}

.header-logo-placeholder { 
    font-weight: 700; 
    color: #3b82f6; 
    font-size: 1.5rem; 
}

/* ナビゲーション（グラデーション丸角枠） */
.global-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.global-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 10px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.global-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    padding: 6px 18px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.global-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ハンバーガーメニュー（PCでは非表示） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 56px;
    height: 38px;
    cursor: pointer;
    z-index: 1001;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0 14px;
    background-image: linear-gradient(135deg, #3b82f6, #a855f7), linear-gradient(135deg, #3b82f6, #a855f7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.hamburger:hover {
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 英語ラベル */
.en-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
    text-transform: lowercase;
    margin-top: 2px;
}

/* --- Hero --- */
.hero {
    position: relative; height: 100vh; min-height: 600px; background-color: #0f172a;
    color: #fff; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 0 20px; overflow: hidden; margin-top: 0;
}
.hero-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 1200px; }
.hero-sub { font-size: 1.4rem; font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(59, 130, 246, 0.8); margin-bottom: 20px; display: inline-block; }
.hero-title { font-size: 4rem; font-weight: 700; line-height: 1.2; margin-bottom: 40px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(59, 130, 246, 0.5); }
.hero-text { font-size: 1.1rem; font-weight: 500; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); margin-bottom: 50px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.text-yellow-300 { color: #fde047 !important; }
.btn-secondary {
    display: inline-block; background: transparent; color: #fff;
    padding: 16px 50px; border-radius: 50px; font-weight: bold; font-size: 1.1rem;
    border: 2px solid #fff; letter-spacing: 0.05em;
    position: relative; overflow: hidden; z-index: 1; transition: all 0.3s ease;
}
.btn-secondary:hover { transform: translateY(-2px); background: #fff; color: #3b82f6; }

/* --- Concept --- */
.concept-content { text-align: center; }
.concept-text h4 { font-size: 2.2rem; margin-bottom: 40px; color: var(--color-text-main); line-height: 1.5; }
.concept-text h4 strong { background: linear-gradient(120deg, transparent 60%, rgba(34, 211, 238, 0.2) 60%); padding-bottom: 5px; }

.concept-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    margin-top: 60px;
}
.concept-card {
    background: #fff; padding: 40px 30px; border-radius: 16px;
    border: 1px solid var(--color-border); text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.concept-card:hover {
    transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.concept-icon {
    width: 60px; height: 60px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.5rem; font-weight: bold;
    color: #fff; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.concept-card:nth-child(1) .concept-icon { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); }
.concept-card:nth-child(2) .concept-icon { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.concept-card:nth-child(3) .concept-icon { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.concept-card h4 {
    font-size: 1.3rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 15px; line-height: 1.4;
}
.concept-card p {
    color: var(--color-text-sub); line-height: 1.7; font-size: 0.95rem;
}

/* --- Service (3列レイアウト) --- */
.service { background-color: var(--color-bg-light); }
.service-lead { text-align: center; margin-bottom: 50px; font-size: 1.1rem; }

/* サービスカード自体のスタイル */
.service-item-card {
    background-color: #fff;
    border-radius: 2rem;
    border: 1.5px solid #cbd5e1; /* よりはっきりした境界線 (gray-300) */
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* よりはっきりした影 */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-item-card:hover {
    transform: translateY(-12px); /* 浮き上がりを強調 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); /* ホバー時の影を強調 */
    border-color: #3b82f6; /* ホバー時に境界線を青色に (グループ会社カードと同じ) */
}

/* サービスカード内のボタンに影と境界線を追加 */
.service-content .bg-\[#6B52FF\] {
    box-shadow: 0 4px 15px rgba(107, 82, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.service-content .bg-\[#6B52FF\]:hover {
    box-shadow: 0 8px 25px rgba(107, 82, 255, 0.5);
    transform: translateY(-2px);
}
.service-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 30px;
}
.service-card {
    background: #fff; padding: 40px 30px; border-radius: 16px;
    border: 1px solid var(--color-border); text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.service-card:hover {
    transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.service-icon {
    font-size: 3rem; margin-bottom: 20px; display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.service-card h4 {
    font-size: 1.3rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 15px; line-height: 1.4;
}
.service-card p {
    color: var(--color-text-sub); line-height: 1.7; font-size: 0.95rem;
}

.service-link {
    display: inline-block; margin-top: 15px; padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff; text-decoration: none; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease;
}
.service-link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* --- 追加サービスセクション --- */
.additional-services {
    margin-top: 60px; text-align: center;
}
.additional-services h4 {
    font-size: 1.5rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 30px;
}
.additional-service-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-top: 20px;
}
.additional-service-item a {
    display: flex; flex-direction: column; align-items: center; padding: 30px 20px;
    background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
    text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.additional-service-item:hover {
    transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.additional-icon {
    font-size: 2.5rem; margin-bottom: 15px; display: block;
}
.additional-title {
    font-size: 1rem; font-weight: 600; color: var(--color-text-main);
    text-align: center;
}

/* --- Service Detail --- */
.service-detail-content {
    max-width: 1200px; margin: 0 auto;
}
.service-intro {
    margin-bottom: 50px;
}
.service-intro h4 {
    font-size: 1.8rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 20px; line-height: 1.4;
}
.service-problems {
    list-style: none; margin: 20px 0 30px 0;
}
.service-problems li {
    position: relative; padding-left: 30px; margin-bottom: 15px;
    color: var(--color-text-sub); line-height: 1.7;
}
.service-problems li::before {
    content: "▶"; position: absolute; left: 0; top: 0;
    color: #3b82f6; font-size: 0.8rem;
}
.service-solution {
    font-size: 1.1rem; color: var(--color-text-main);
    line-height: 1.8; margin-top: 20px;
    padding: 20px; background: #f8fafc; border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.service-reasons {
    margin: 60px 0;
}
.service-reasons h4 {
    font-size: 1.6rem; font-weight: 700; color: var(--color-text-main);
    text-align: center; margin-bottom: 40px;
}
.reason-card {
    background: #fff; padding: 30px; border-radius: 16px;
    border: 1px solid var(--color-border); margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.reason-icon {
    font-size: 2rem; margin-bottom: 20px; display: block;
}
.reason-card h5 {
    font-size: 1.3rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 15px; line-height: 1.4;
}
.reason-card p {
    color: var(--color-text-sub); line-height: 1.7;
}

.service-features {
    margin: 60px 0;
}
.service-features h4 {
    font-size: 1.6rem; font-weight: 700; color: var(--color-text-main);
    text-align: center; margin-bottom: 30px;
}
.service-table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.service-table th, .service-table td {
    padding: 16px; text-align: left; border-bottom: 1px solid var(--color-border);
}
.service-table th {
    background: #f8fafc; font-weight: 700; color: var(--color-text-main);
}
.service-table tr:last-child td { border-bottom: none; }
.service-table th:first-child,
.service-table td:first-child {
    width: 35%;
    min-width: 250px;
}

.network-types, .use-cases, .course-list, .service-types, .server-types, .remote-types {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    margin: 30px 0;
}
.network-type, .use-case, .course-item, .service-type, .server-type, .remote-type {
    background: #fff; padding: 25px; border-radius: 12px;
    border: 1px solid var(--color-border); box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.network-type h5, .use-case h5, .course-item h5, .service-type h5, .server-type h5, .remote-type h5 {
    font-size: 1.2rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 10px;
}
.network-type p, .use-case p, .course-item p, .service-type p, .server-type p, .remote-type p {
    color: var(--color-text-sub); line-height: 1.6;
}

.industry-types {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    margin: 30px 0;
}
.industry-type {
    background: #fff; padding: 25px; border-radius: 12px;
    border: 1px solid var(--color-border); box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.industry-type h5 {
    font-size: 1.2rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 10px;
}
.industry-type p {
    color: var(--color-text-sub); line-height: 1.6;
}

.service-message {
    margin: 60px 0; padding: 30px; background: #f0f9ff;
    border-radius: 12px; border-left: 4px solid #0ea5e9;
}
.service-message h4 {
    font-size: 1.4rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 15px;
}
.service-message p {
    color: var(--color-text-sub); line-height: 1.8;
}

.contact-cta {
    background: #f8fafc;
}
.cta-content {
    max-width: 600px; margin: 0 auto;
}
.cta-content h3 {
    font-size: 1.8rem; font-weight: 700; color: var(--color-text-main);
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 1.1rem; color: var(--color-text-sub);
    line-height: 1.7; margin-bottom: 30px;
}
.text-center { text-align: center; }

/* --- Recruit --- */
.recruit-section-custom { background-color: var(--color-bg-light); }
.es-recruitment-title {
    font-size: 2.8rem; font-family: var(--font-en); font-weight: 700;
    background: var(--color-accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-align: center; margin: 0 0 10px 0;
}
.es-recruitment-subtitle { text-align: center; color: var(--color-text-sub); margin-bottom: 50px; font-weight: bold; }

.es-footer-text{
    text-align: right;
}
 .recruit-header-box {
     background: #f8fafc;
     border: 1px solid #e5e7eb;
     border-radius: 14px;
     padding: 18px 20px;
 }

 .recruit-date {
     font-size: 0.95rem;
     color: var(--color-text-sub);
     margin: 0 0 12px 0;
 }

 .recruit-badges {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 10px;
 }

 .es-recruitment-wrapper .badge {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 6px 12px;
     border-radius: 999px;
     font-size: 0.85rem;
     font-weight: 700;
     line-height: 1;
     border: 1px solid transparent;
 }

 .es-recruitment-wrapper .badge-blue {
     color: #1d4ed8;
     background: rgba(59, 130, 246, 0.12);
     border-color: rgba(59, 130, 246, 0.25);
 }

 .es-recruitment-wrapper .badge-gray {
     color: #334155;
     background: rgba(148, 163, 184, 0.18);
     border-color: rgba(148, 163, 184, 0.35);
 }

 .es-recruitment-wrapper .badge-orange {
     color: #9a3412;
     background: rgba(251, 146, 60, 0.16);
     border-color: rgba(251, 146, 60, 0.32);
 }

 .recruit-status-text {
     color: var(--color-text-main);
     font-weight: 700;
 }

 .recruit-body {
     margin-top: 22px;
 }

 .recruit-body p {
     color: var(--color-text-main);
     line-height: 1.9;
 }

 .recruit-note-box {
     margin-top: 22px;
     background: #fff7ed;
     border: 1px solid #fed7aa;
     border-radius: 14px;
     padding: 16px 18px;
     color: #7c2d12;
 }

 .recruit-note-box p {
     margin: 0;
 }

 .recruit-action {
     margin-top: 26px;
     display: flex;
     justify-content: center;
 }

 .btn-recruit {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     background: var(--color-accent-gradient);
     color: #fff;
     padding: 14px 34px;
     border-radius: 50px;
     font-weight: 700;
     box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
     transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
 }

 .btn-recruit:hover {
     transform: translateY(-2px);
     box-shadow: 0 16px 35px rgba(59, 130, 246, 0.35);
     opacity: 0.98;
 }

.es-group-info { border-top: 1px solid #e2e8f0; padding-top: 40px; margin-top: 60px; }
.es-group-title { font-size: 1.3rem; font-weight: bold; margin-bottom: 30px; display: block; text-align: center; }
.es-group-grid {
    display: grid;
    gap: 20px;
    /* PC表示時は4列固定 */
    grid-template-columns: repeat(4, 1fr);
}

/* レスポンシブ対応: 画面幅が狭い時は列数を減らす */
@media (max-width: 1024px) {
    .es-group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .es-group-grid {
        grid-template-columns: 1fr;
    }
}
.es-group-card {
    background: #fff; border: 1px solid #e2e8f0; padding: 10px; border-radius: 12px;
    text-decoration: none; color: inherit; display: block; transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
a.es-group-card:hover,
div.es-group-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1); 
    border-color: #3b82f6; 
}
.es-category { font-size: 0.75rem; color: #3b82f6; font-weight: bold; display: block; margin-bottom: 8px; }
.es-company { font-weight: bold; display: block; margin-bottom: 2px; font-size: 1.rem; }
.es-service{
    font-size: 0.7rem; color: #555;
}
/* --- Company Map (Google Map) --- */
.company-map-wrapper {
    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.company-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
}

@media (max-width: 768px) {
    .company-map-wrapper iframe {
        height: 250px;
    }
}

/* --- Contact (Index用・ボタンのみ) --- */
.contact { background: #fff; text-align: center; border-top: 1px solid #f1f5f9; }
.contact .section-title {
    background: var(--color-accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-content-wrapper {
    margin: 0 auto;
    max-width: 1000px;
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    background: #fff;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--color-text-sub);
    margin: 0 0 30px 0;
    line-height: 1.8;
}

.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 40px; }
.contact-tel {
    color: var(--color-primary); font-size: 2.5rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center; gap: 15px;
}
.contact-tel a { color: inherit; }
.contact-tel span { font-size: 2rem; color: var(--color-primary); }

.btn-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-only { display: none; }

/* --- Contact Form --- */
.contact-intro {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
}

.es-contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.required {
    color: #dc2626;
    font-weight: normal;
    font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-base);
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-group label:hover {
    background-color: #f1f5f9;
}

.radio-group input[type="radio"] {
    margin: 0;
    accent-color: var(--color-primary);
}

.confirm-group {
    background-color: #fef2f2;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.confirm-group p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-main);
}

.note {
    font-size: 0.85rem;
    color: #7f1d1d;
}

.confirm-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.confirm-group input[type="checkbox"] {
    margin: 0;
    accent-color: var(--color-primary);
}

.form-submit {
    margin-top: 20px;
    text-align: center;
}

.form-submit .btn-primary {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

 .contact-page-wrapper {
     background: #f9fafb;
     padding: 120px 20px 80px;
     min-height: calc(100vh - 80px);
 }

 .contact-card {
     max-width: 1200px;
     margin: 0 auto;
     background: #fff;
     border: 1px solid var(--color-border);
     border-radius: 20px;
     box-shadow: 0 10px 40px rgba(0,0,0,0.05);
     overflow: hidden;
 }

 .contact-card-header {
     background: var(--color-accent-gradient);
     color: #fff;
     padding: 48px 40px;
     text-align: center;
 }

 .contact-title {
     font-size: 2.2rem;
     font-weight: 700;
     letter-spacing: 0.04em;
     margin-bottom: 12px;
 }

 .contact-desc {
     font-size: 1rem;
     opacity: 0.95;
     line-height: 1.9;
 }

 .contact-card-body {
     padding: 40px;
 }

 .contact-error-area {
     margin-bottom: 20px;
 }

 .contact-form-table {
     display: block;
 }

 .form-row {
     display: grid;
     grid-template-columns: 30% 70%;
     gap: 24px;
     padding: 26px 0;
     border-bottom: 1px solid #e5e7eb;
 }

 .form-row-last {
     border-bottom: none;
 }

 .form-label label {
     display: inline-flex;
     align-items: center;
     gap: 10px;
     font-size: 1.2rem;
     font-weight: 400;
     color: var(--color-text-main);
     line-height: 1.5;
 }

 .badge-required {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     font-size: 0.75rem;
     padding: 4px 10px;
     border-radius: 999px;
     background: rgba(255,255,255,0.18);
     border: 1px solid rgba(255,255,255,0.25);
     color: #fff;
 }

 .contact-card-body .badge-required {
     background: rgba(59, 130, 246, 0.12);
     border: 1px solid rgba(59, 130, 246, 0.25);
     color: #1d4ed8;
 }

 .form-input input[type="text"],
 .form-input input[type="email"],
 .form-input input[type="tel"],
 .form-input select,
 .form-input textarea {
     width: 100%;
     padding: 14px 16px;
     border: 1px solid #e5e7eb;
     border-radius: 10px;
     font-size: 1rem;
     font-family: "Noto Sans JP", sans-serif;
     background: #fff;
     transition: border-color 0.2s ease, box-shadow 0.2s ease;
 }

 .form-input textarea {
     resize: vertical;
     min-height: 160px;
 }

 .form-input input:focus,
 .form-input select:focus,
 .form-input textarea:focus {
     outline: none;
     border-color: rgba(59, 130, 246, 0.8);
     box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
 }

 .form-input .radio-group label {
     padding: 10px 12px;
 }

 .form-input .confirm-group {
     background-color: #f8fafc;
     border: 1px solid #e5e7eb;
 }

 .form-submit-area {
     padding-top: 34px;
     display: flex;
     justify-content: center;
 }

 .btn-submit {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 240px;
     background: var(--color-accent-gradient);
     color: #fff;
     padding: 16px 44px;
     border-radius: 12px;
     font-weight: 700;
     font-size: 1.05rem;
     border: none;
     cursor: pointer;
     box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
     transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
 }

 .btn-submit:hover {
     transform: translateY(-2px);
     box-shadow: 0 16px 35px rgba(59, 130, 246, 0.45);
     opacity: 0.98;
 }

 .btn-secondary {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 12px 24px;
     border-radius: 10px;
     border: 1px solid #cbd5e1;
     color: #334155;
     background: #fff;
     transition: all 0.2s ease;
 }

 .btn-secondary:hover {
     border-color: rgba(59, 130, 246, 0.7);
     color: #1d4ed8;
     box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
 }

 .success-message {
     text-align: center;
     padding: 30px 20px;
     background: #f8fafc;
     border: 1px solid #e5e7eb;
     border-radius: 14px;
 }

 .success-message h3 {
     color: #0f172a;
     margin-bottom: 12px;
     font-size: 1.4rem;
 }

 .success-message p {
     color: #334155;
     margin-bottom: 20px;
 }

 .error-message {
     display: block;
     margin-top: 10px;
     color: #dc2626;
     font-size: 0.95rem;
 }

 @media (max-width: 768px) {
     .contact-page-wrapper {
         padding: 110px 14px 60px;
     }

     .contact-card-header {
         padding: 38px 20px;
     }

     .contact-card-body {
         padding: 24px 18px;
     }

     .form-row {
         grid-template-columns: 1fr;
         gap: 12px;
         padding: 22px 0;
     }

     .form-label label {
         font-size: 1.05rem;
     }

     .btn-submit {
         width: 100%;
         min-width: 0;
     }
 }

/* --- Footer --- */
.footer { background-color: #0f172a; color: #fff; padding: 28px 0; border-top: 1px solid #1e293b; }

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-logo { flex: 0 0 auto; }
.footer-logo a { display: inline-flex; align-items: center; }
.footer-logo-img { height: 150px; width: auto; display: block; }

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1 1 auto;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 260px;
}

.footer-nav li { margin: 0; padding: 0; }

.footer-nav a {
    display: block;
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 6px 6px;
    white-space: nowrap;
}

.footer-nav a:hover { color: #38bdf8; }

.copyright {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* タブレット用の調整 */
    .hero-title { font-size: 3rem; }
    .section { padding: 60px 0; }
    .common-card { padding: 35px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-text { font-size: 0.95rem; }
    .section-title { font-size: 2rem; }
    .service-grid { grid-template-columns: 1fr; }
    .concept-features { grid-template-columns: 1fr; gap: 20px; }
    .additional-service-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .contact-tel { font-size: 1.8rem; }
    .contact-content-wrapper { padding: 30px; }
    .sp-only { display: block; }
    .footer-flex { flex-direction: column; align-items: center; gap: 14px; }
    .footer-nav { min-width: 0; flex-wrap: wrap; }
    .copyright { white-space: normal; text-align: center; }
    .common-card { padding: 20px; }
    
    /* ヘッダーのレスポンシブ対応 */
    .header {
        height: 60px;
    }
    
    .header-inner {
        padding: 0 15px;
    }
    
    .logo a {
        padding: 4px 14px;
    }
    
    .header-logo-img {
        height: 30px;
    }
    
    /* モバイルナビゲーション */
    .global-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .global-nav.active {
        display: block;
    }
    
    .global-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background-image: none;
        background-color: #fff;
    }
    
    .global-nav li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .global-nav a {
        padding: 18px 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-radius: 0;
        font-weight: 500;
        color: #444;
    }
    
    .global-nav a:hover {
        background: rgba(59, 130, 246, 0.04);
        color: #2b4c7e;
    }
    
    .global-nav a:hover .en-label {
        color: #999;
    }
    
    .global-nav .en-label {
        font-size: 0.75rem;
        opacity: 0.6;
    }
    
    /* ハンバーガーをモバイルで表示 */
    .hamburger {
        display: flex;
        width: 50px;
        height: 34px;
    }
    
    /* サービスカードのレスポンシブ */
    .service-item-card {
        padding: 25px 20px;
    }
    
    /* 会社概要テーブル */
    .company-table th,
    .company-table td {
        padding: 15px 12px;
        font-size: 0.9rem;
    }
    
    .company-table th {
        width: 35%;
    }
}


/* --- 問い合わせ一覧テーブル専用スタイル --- */
.contact-list-wrapper table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.contact-list-wrapper th,
.contact-list-wrapper td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 各列の横幅（パーセンテージ）指定 */
.contact-list-wrapper th.col-id {
    width: 5%;
}
.contact-list-wrapper th.col-date {
    width: 5%;
}
.contact-list-wrapper th.col-sender {
    width: 10%;
}
.contact-list-wrapper th.col-contact {
    width: 20%;
}
.contact-list-wrapper th.col-message {
    width: 60%;
}

/* News Section */
.news { padding: 60px 0; background: #fff; border-bottom: 1px solid #e2e8f0; }
.news-container { max-width: 900px; margin: 0 auto; display: flex; align-items: flex-start; gap: 40px; }
.news-title { font-family: Arial, sans-serif; font-size: 1.5rem; font-weight: 700; color: #2b4c7e; line-height: 1; }
.news-list { flex: 1; }
.news-item { display: flex; align-items: center; gap: 20px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dotted #ccc; }
.news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-date { font-size: 0.9rem; color: #888; white-space: nowrap; }
.news-cat { font-size: 0.8rem; padding: 2px 10px; background: #eee; border-radius: 4px; color: #555; white-space: nowrap; }
.news-cat.info { background: #e0f2fe; color: #0369a1; }
.news-link { font-size: 1rem; color: #333; text-decoration: underline; text-underline-offset: 3px; }
.news-link:hover { color: #2b4c7e; }
@media (max-width: 768px) {
    .news-container { flex-direction: column; gap: 20px; }
    .news-item { flex-wrap: wrap; gap: 10px; }
}

/* --- サービス料金プラン用スタイル --- */
.service-pricing {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.service-pricing h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.plan-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.plan-name {
    font-weight: 600;
    color: #333;
}

.plan-desc {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.price {
    font-weight: 700;
    color: #2b4c7e;
    font-size: 1.1rem;
}

.price-note {
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    color: #2b4c7e;
    font-size: 1.1rem;
}

.spec {
    font-weight: 600;
    color: #333;
}

.price-desc {
    color: #666;
    font-size: 0.9rem;
}

/* --- 比較テーブル用スタイル --- */
.service-comparison {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.service-comparison h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 2px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 2px;
}

.comparison-cell {
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.comparison-header .comparison-cell {
    font-weight: 600;
    background: #f1f5f9;
    color: #333;
}

.comparison-cell.highlight {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.comparison-benefits {
    text-align: center;
    padding: 15px;
    background: #dbeafe;
    border-radius: 8px;
    border: 1px solid #93c5fd;
}

.comparison-benefits p {
    margin: 0;
    color: #1e40af;
    font-weight: 600;
}

/* --- キャリア情報用スタイル --- */
.recruit-career-info {
    margin: 30px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.recruit-career-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

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

.career-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.career-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.career-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.step-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.step-title {
    font-weight: 600;
    color: #333;
}

.step-desc {
    color: #666;
    font-size: 0.9rem;
}

.salary-model {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.salary-level {
    color: #666;
}

.salary-amount {
    font-weight: 700;
    color: #2b4c7e;
    font-size: 1.1rem;
}

.welfare-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welfare-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.welfare-icon {
    font-size: 1.2rem;
    min-width: 30px;
}

.welfare-text {
    color: #333;
    font-size: 0.95rem;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .career-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .comparison-cell {
        min-height: auto;
        text-align: left;
        justify-content: flex-start;
    }
    
    .service-pricing,
    .service-comparison,
    .recruit-career-info {
        padding: 20px;
    }
}