/* --- 共通スタイル (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, #22d3ee 0%, #3b82f6 50%, #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 var(--color-border);
    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: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    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;
}

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

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

/* ナビゲーション */
.global-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-nav a {
    display: flex;
    flex-direction: column; /* 縦並び (日本語 + 英語) */
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    line-height: 1.2;
}

.global-nav a:hover {
    color: #2b4c7e; /* ホバー色 */
}

/* 英語ラベル */
.en-label {
    font-size: 0.65rem;
    color: #999;
    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: 80px;
}
.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: 900px; }
.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; }

/* --- 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; }

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

.service-grid {
    display: grid;
    /* PC: 3列固定 */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff; padding: 40px 30px; border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease; text-align: center; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; /* 内容を中央揃え */
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1); border-color: #3b82f6; }
.service-card::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--color-accent-gradient); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover::after { opacity: 1; }

.service-icon {
    font-size: 3rem; margin-bottom: 25px; width: 80px; height: 80px;
    display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 20px; color: #3b82f6;
}
.service-card h4 { font-size: 1.3rem; margin-bottom: 15px; color: var(--color-text-main); }
.service-card p { font-size: 0.95rem; color: var(--color-text-sub); line-height: 1.7; }

/* --- Company --- */
.company-table { width: 100%; border-collapse: separate; border-spacing: 0 25px; }
.company-table th { width: 25%; font-weight: bold; color: #3b82f6; white-space: nowrap; position: relative; vertical-align: top; }
.company-table th::before {
    content: ""; display: inline-block; width: 6px; height: 6px;
    background: var(--color-accent-gradient); border-radius: 50%; margin-right: 10px; vertical-align: middle;
}
.company-table td { padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }

/* --- 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 { 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;
}
/* --- 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: 1000px;
     margin: 0 auto;
     background: #fff;
     border: 1px solid var(--color-border);
     border-radius: 18px;
     box-shadow: 0 20px 60px rgba(0,0,0,0.06);
     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 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 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); } /* タブレット2列 */
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .service-grid { grid-template-columns: 1fr; } /* スマホ1列 */
    .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; }
    .global-nav { display: none; }
    .common-card { padding: 30px; }
}
