@charset "utf-8";

/*
 * Modern Job Listing Page Stylesheet
 * 求人情報ページ用モダンスタイルシート
 * Optimized for readability, accessibility, and performance
 */

/* =============================================================================
   BASE STYLES - 基本スタイル
   ============================================================================= */

html,
body,
#container {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 1.7;
    background: linear-gradient(135deg, #f7fafc 0%, #f7fafc 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset and normalize elements */
dd,
dl,
dt,
figure,
form,
h1,
h2,
h3,
h4,
h5,
li,
ol,
p,
ul {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

/* =============================================================================
   TYPOGRAPHY - タイポグラフィ
   ============================================================================= */

/* Modern Typography Scale */
h1 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    line-height: 1.2; 
}

h2 { 
    font-size: 2rem; 
    font-weight: 600; 
    line-height: 1.3; 
}

h3 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    line-height: 1.4; 
}

h4 { 
    font-size: 1.25rem; 
    font-weight: 500; 
    line-height: 1.4; 
}

h5 { 
    font-size: 1rem; 
    font-weight: 500; 
    line-height: 1.5; 
}

p { 
    font-size: 1rem; 
    line-height: 1.6; 
}

/* =============================================================================
   LAYOUT COMPONENTS - レイアウトコンポーネント
   ============================================================================= */

ul {
    list-style-type: none;
}

ol {
    padding-left: 40px;
    padding-bottom: 15px;
}

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

table {
    border-collapse: collapse;
    font-size: 100%;
    border-spacing: 0;
}

video {
    max-width: 100%;
}

iframe {
    width: 100%;
}

/* Links */
a {
    color: #2b6cb0;
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #2c5282;
    text-decoration: none;
}

/* Container and Layout */
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============================================================================
   HEADER STYLES - ヘッダースタイル
   ============================================================================= */

header {
    min-height: 80px;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

header #logo {
    width: auto;
    padding-top: 15px;
}

/* =============================================================================
   NAVIGATION MENU STYLES - ナビゲーションメニュースタイル
   ============================================================================= */

.main-nav {
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    padding: 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Hamburger Menu Button (Mobile Only) */
.hamburger-menu {
    display: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(0%);
    z-index: 101;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    min-height: 3px !important;
    background: white !important;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
    content: "";
    color:#3f3f3f !important;
}

/* Hamburger Animation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu Container */
.nav-menu {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 0;
}

/* Main Menu List */
.nav-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 1.5rem;
}

.dropdown-title {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-list li {
    margin: 0;
}

.dropdown-list a {
    display: block;
    color: #4a5568;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
    border-left: 3px solid transparent;
}

.dropdown-list a:hover {
    color: #2d3748;
    background: #f7fafc;
    border-left-color: #3182ce;
    transform: translateX(4px);
}

/* Mobile Responsive Design */
@media screen and (max-width: 1024px) {
    .nav-menu {
        padding: 1rem 1.5rem;
        gap: 0;
    }
    
    .dropdown-menu {
        min-width: 280px;
    }
}

@media screen and (max-width: 768px) {
    .dropdown-toggle {
        gap: 10rem;
    }

    /* Show hamburger button on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Ensure hamburger lines are visible on mobile */
    .hamburger-line {
        width: 25px;
        height: 3px;
        background: rgb(54, 54, 54) !important;
    }
    
    /* Hide navigation menu by default on mobile */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1rem;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        z-index: 99;
    }
    
    /* Show navigation menu when active */
    .main-nav.active .nav-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Stack main menu vertically on mobile */
    .nav-menu-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        text-align: center;
        padding: 0.875rem 1rem;
        margin: 0.125rem 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        min-width: auto;
        width: 100%;
        margin-top: 0.5rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .nav-dropdown:not(.active) .dropdown-menu {
        display: none;
    }
    
    .dropdown-content {
        padding: 1rem;
    }
    
    .dropdown-title {
        margin-bottom: 0.75rem;
        font-size: 1rem;
        color: #2d3748;
    }
    
    .dropdown-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-height: 250px;
    }
    
    .dropdown-list a {
        text-align: center;
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
        color: #4a5568;
    }
}

@media screen and (max-width: 480px) {
    .nav-menu {
        padding: 1.5rem 1rem;
    }
    
    .hamburger-menu {
        right: 0.5rem;
        width: 40px;
        height: 40px;
        background: transparent !important;
    }
    
    .hamburger-line {
        width: 22px;
        height: 3px;
        background: white;
    }
    
    .dropdown-list {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.875rem;
    }
    
    .dropdown-content {
        padding: 0.75rem;
    }
    
    .dropdown-list a {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
    }
}

/* =============================================================================
   MAIN CONTENT STYLES - メインコンテンツスタイル
   ============================================================================= */

#contents {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: transparent;
    padding: 3rem 0;
}

#contents .inner {
    padding: 2rem 0;
}

#contents h2 {
    clear: both;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-size: 2.5rem;
    text-align: center;
    color: #2d3748;
    font-weight: 700;
}

#contents h2.type1 {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding: 1rem;
    color: #474747;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

/* Hover effect for main title */
#contents h2.type1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

#contents h2.type1:hover::before {
    left: 100%;
}

#contents h2 span {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-top: 0.5rem;
}

#contents h3 {
    clear: both;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #2d3748;
    position: relative;
    padding-bottom: 0.75rem;
}

/* Decorative underline for h3 elements */
#contents h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    border-radius: 2px;
}

#contents p {
    padding: 0 0 1.5rem;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Spacing adjustments for headings followed by paragraphs */
#contents h2+p,
#contents h3+p {
    margin-top: -10px;
}

#contents section+section {
    margin-top: 40px;
}

/* =============================================================================
   CONTENT CARDS AND LAYOUT - コンテンツカードとレイアウト
   ============================================================================= */

.main {
    float: left;
    width: 100%;
    background: white;
    border-radius: 1rem;
    
    margin-bottom: 2rem;
}

.list {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    margin-bottom: 2rem;
    
    border: none;
}

.list h4 {
    font-size: 1.75rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.list h4 a {
    color: #3182ce;
}

.list p {
    padding: 0 0 1rem !important;
    color: #4a5568;
}

/* =============================================================================
   ICONS AND TAGS - アイコンとタグ
   ============================================================================= */

.icon {
    display: inline-block;
    margin: 0.25rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: none;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    
}

.icon:hover {
    transform: translateY(-2px);
    
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
}

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

/* Icon color variants */
.icon.color1 {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: #ffffff;
    
}

.icon.color1:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    
}

.icon.color2 {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #ffffff;
    font-size: 1rem;
    
}

.icon.color2:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2c2c 100%);
    
}

.icon.color3 {
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    color: #ffffff;
    
}

.icon.color3:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #553c9a 100%);
    
}

/* =============================================================================
   BUTTONS - ボタン
   ============================================================================= */

a.btn, .btn {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    color: #fff;
    font-size: 1.125rem;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    
}

a.btn:hover, .btn:hover {
    transform: translateY(-2px);
    
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
    color: #fff;
}


/* =============================================================================
   SITE FOOTER STYLES - サイトフッタースタイル  
   ============================================================================= */

/* Site Footer - New footer section as per requirements */
.site-footer {
    color: #ffffff;
    margin-top: 3rem;
    padding: 2rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #38a169, #3182ce);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    text-align: center;
}

.footer-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.footer-contact {
    font-size: 1rem;
    margin: 0;
    color: #e2e8f0;
}

.footer-contact-label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.footer-email {
    color: #90cdf4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-email:hover {
    color: #ffffff;
    border-bottom-color: #90cdf4;
    transform: translateY(-1px);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    color: #a0aec0;
    font-weight: 400;
}

/* Responsive Footer Design */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-main {
        margin-bottom: 1rem;
    }
    
    .footer-tagline {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .footer-contact {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .site-footer {
        padding: 1rem 0 0.75rem;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-contact {
        font-size: 0.85rem;
    }
    
    .footer-contact-label {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .footer-copyright {
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .footer-copyright p {
        font-size: 0.75rem;
    }
}

/* =============================================================================
   EXISTING FOOTER STYLES - 既存のフッタースタイル
   ============================================================================= */

footer {
    clear: both;
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
    color: #000000;
    text-align: left;
    padding: 2rem 0;
}

footer a {
    color: #494949;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #667eea;
}

footer .pr {
    display: block;
    font-size: 80%;
}

/* =============================================================================
   TABLES - テーブル
   ============================================================================= */

.ta1 {
    width: 100%;
    margin: 0 0 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: none;
}

.ta1,
.ta1 td,
.ta1 th {
    border: none;
    padding: 1.25rem 1.5rem;
    word-break: break-word;
    background-color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.ta1 th.tamidashi {
    width: auto;
    text-align: left;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: none;
}

.ta1 th {
    width: 200px;
    text-align: left;
    font-weight: 600;
    background: #e4f4ff;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.ta1 td {
    background: white;
    color: #4a5568;
    line-height: 1.6;
}

.ta1 tr:last-child td,
.ta1 tr:last-child th {
    border-bottom: none;
}

.ta1 th img {
    width: 100%;
    border-radius: 0.5rem;
}

.ta1.cms td label {
    display: block;
    float: left;
    width: 50%
}

/* Modern Form Styling */
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #4a5568;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3182ce;
    
}

.form-control.error,
input.error,
select.error,
textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.25);
}

.field-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    vertical-align: top;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #3182ce;
    border-color: #3182ce;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-label {
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
}



#contents input[type=button].btn,
#contents input[type=reset].btn,
#contents input[type=submit].btn {
    padding: 1rem 2rem;
    border: none;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    
}

#contents input[type=button].btn:hover,
#contents input[type=reset].btn:hover,
#contents input[type=submit].btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
}

.link {
    display: block;
    margin-top: -100px;
    padding-top: 100px
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Add smooth animations to major elements */
.list, .ta1 {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, .form-control:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

body .nav-fix-pos-pagetop a {
    display: none
}

body.is-fixed-pagetop .nav-fix-pos-pagetop a {
    display: block;
    text-decoration: none;
    text-align: center;
    width: 50px;
    height: 50px;
    line-height: 50px;
    z-index: 1;
    position: fixed;
    bottom: 20px;
    right: 3%;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    
    animation-name: scroll;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    transition: all 0.3s ease;
}

body.is-fixed-pagetop .nav-fix-pos-pagetop a:hover {
    transform: translateY(-2px);
    
}

/* Essential utility classes */
.mb15 {
    margin-bottom: 1rem !important;
}

.c {
    text-align: center !important
}



@media screen and (max-width:1000px) {
    #contents h2 {
        font-size: 2.25rem;
    }
}



/* Modern Tablet Responsive Design */
@media screen and (max-width: 1024px) {
    .inner {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    #contents h2 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    #contents h2.type1 {
        font-size: 2.25rem;
    }

    .list {
        padding: 2rem;
    }

    .ta1 th {
        width: 150px;
    }
}

/* Modern Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .ta1 {
        font-size: 0.875rem;
    }

    .ta1 th,
    .ta1 td {
        display: block;
        width: 100% !important;
        border-bottom: 1px solid #e2e8f0;
        text-align: left;
        /* Fix for Issue #21: Improve text wrapping and prevent overflow */
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .ta1 th {
        background: #f7fafc;
        padding: 0.75rem 1rem;
        font-weight: 600;
        text-align:center !important;
    }

    .ta1 td {
        padding: 1rem;
        margin-bottom: 0.5rem;
        /* Fix for Issue #21: Ensure proper spacing and prevent text cutoff */
        box-sizing: border-box;
    }

    .ta1 tr {
        display: block;
        overflow: hidden;
        background: white;
    }

    /* Fix for Issue #22: Center align section headings on mobile */
    .ta1 th.tamidashi,
    .ta1 th[colspan="2"] {
        text-align: center !important;
    }
}

@media screen and (max-width:480px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    .inner {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #contents {
        padding: 1.5rem 0;
    }

    #contents .inner {
        padding: 1rem 0;
    }

    #contents h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    #contents h2.type1 {
        padding: 1rem 1rem;
        border-radius: 1rem;
        margin: 1.5rem 0;
        font-size: 2rem;
        line-height: 1.3;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    #contents h2 span {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }

    #contents h3 {
        font-size: 1.25rem;
        padding-left: 0;
    }

    #contents h3::after {
        width: 100%;
    }

    #contents p {
        padding: 0 0 1.25rem;
    }

    .list {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
    }

    .list h4 {
        font-size: 1.25rem;
    }

    .ta1,
    .ta1 td,
    .ta1 th {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .ta1 th {
        width: 120px;
    }

    .form-control {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    a.btn, .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .ta1,
    .ta1 td,
    .ta1 th {
        padding: 5px
    }

    .ta1 th {
        width: 100px
    }
}

@media screen and (max-width:360px) {
    .ta1.cms td label {
        float: none;
        width: 100%
    }
    
    #contents h2 {
        font-size: 1.875rem;
        margin-bottom: 1.25rem;
    }

    #contents h2.type1 {
        padding: 2.5rem 1.25rem;
        font-size: 1.875rem;
        line-height: 1.4;
    }

    #contents h2 span {
        font-size: 0.875rem;
        margin-top: 0.75rem;
    }
}

#contents h2.type2 {
    background: #333;
    background: url(/group/wp-content/qoler/jobs/recruit/images/letter.jpg) no-repeat center center/cover;
    padding: 20px 20px;
    color: rgb(0, 0, 0);
    font-size: 16px;
    text-align: left;
}

/* Modern Gallery Styles - Slick.js-inspired */
.gallery-container {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    background: white;
    border-radius: 1.25rem;
    
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.slick-gallery {
    position: relative;
    border-radius: 1.25rem 1.25rem 0 0;
    height: 400px;
    overflow: hidden;
}

.slick-slide-item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slick-slide-item.active {
    display: block;
    opacity: 1;
}

.slick-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.3s ease;
    border-radius: 1.25rem 1.25rem 0 0;
}

.slick-slide-item img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Custom Navigation Arrows */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    font-size: 20px;
    color: #667eea;
    font-weight: bold;
    z-index: 10;
    
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slick-prev {
    left: 20px;
}

.slick-next {
    right: 20px;
}

.slick-prev:hover,
.slick-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    
    color: #5a67d8;
}

/* Custom Dots */
.slick-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 8px;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.slick-dot {
    margin: 0;
    padding: 0;
}

.slick-dot button {
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    cursor: pointer;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slick-dot.slick-active button,
.slick-dot button:hover {
    background: white;
    transform: scale(1.3);
    
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0 1.25rem 1.25rem;
    position: relative;
    /* Smooth scrolling behavior */
    scroll-behavior: smooth;
    /* Hide scrollbar for Firefox */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    /* CSS custom properties for dynamic indicator opacity */
    --left-fade-opacity: 0;
    --right-fade-opacity: 1;
}

/* Enhanced webkit scrollbar styling */
.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
    margin: 0 8px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #cbd5e0 0%, #a0aec0 100%);
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #a0aec0 0%, #718096 100%);
    transform: scaleY(1.2);
}

/* Scroll indicators - fade gradients on edges */
.gallery-thumbnails::before,
.gallery-thumbnails::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails::before {
    left: 0;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.9) 0%, transparent 100%);
    border-radius: 0 0 0 1.25rem;
    opacity: var(--left-fade-opacity, 0);
}

.gallery-thumbnails::after {
    right: 0;
    background: linear-gradient(270deg, rgba(248, 250, 252, 0.9) 0%, transparent 100%);
    border-radius: 0 0 1.25rem 0;
    opacity: var(--right-fade-opacity, 1);
}

.gallery-thumbnail {
    min-width: 90px;
    height: 70px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: #667eea;
    transform: scale(1.05) translateY(-2px);
    
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

/* Modal for Image Zoom */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.gallery-modal.show {
    display: block;
}

.gallery-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: 2.5% auto;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    
    animation: zoomIn 0.3s ease;
}

.gallery-modal img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .slick-gallery {
        height: 280px;
    }

    .slick-prev,
    .slick-next {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }

    .slick-prev {
        left: 15px;
    }

    .slick-next {
        right: 15px;
    }

    .gallery-thumbnails {
        padding: 1rem;
        /* Enhanced mobile scrollbar */
        scrollbar-width: auto;
    }
    
    .gallery-thumbnails::-webkit-scrollbar {
        height: 10px;
    }
    
    .gallery-thumbnails::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #4a5568 0%, #2d3748 100%);
        border-radius: 5px;
    }

    .gallery-thumbnail {
        min-width: 70px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .slick-gallery {
        height: 220px;
    }

    .gallery-container {
        margin: 1rem 0;
        border-radius: 1rem;
    }

    .slick-gallery {
        border-radius: 1rem 1rem 0 0;
    }

    .slick-slide-item img {
        border-radius: 1rem 1rem 0 0;
    }

    .gallery-thumbnails {
        border-radius: 0 0 1rem 1rem;
        padding: 0.75rem;
    }
}

/* Keyframe Animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.error {
    background-color:rgb(255, 205, 251);
    color:red;
}

/* =============================================================================
   MOBILE UI IMPROVEMENTS - モバイルUI改善
   ============================================================================= */

/* Fix for Issue #21: Additional mobile text overflow prevention */
@media screen and (max-width: 768px) {
    /* Ensure all text content wraps properly on mobile */
    .ta1 td, .ta1 th, .list p, #contents p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }
    
    /* Ensure proper padding and prevent horizontal overflow */
    .inner {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box;
    }
    
    .list {
        padding: 1rem;
        box-sizing: border-box;
    }
}

/* Fix for Issue #22: Center align all section headings on mobile screens only */
@media screen and (max-width: 768px) {
    /* Center align section titles in tables */
    .ta1 th.tamidashi,
    .ta1 th[colspan="2"] {
        text-align: center !important;
        background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
        color: rgb(255, 255, 255);
        font-size: 1.125rem;
    }
    
    /* Center align main headings */
    #contents h3 {
        text-align: center !important;
    }
    
    /* Center align job title */
    .list h4 {
        text-align: center !important;
    }
}

/* =============================================================================
   COMPANY LOGO STYLES - 企業ロゴスタイル (Issue #51)
   ============================================================================= */

/* Title container with logo */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
}

/* Company logo styling */
.company-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Job title styling */
.job-title {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

/* Responsive design for mobile */
@media screen and (max-width: 768px) {
    .title-container {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    .company-logo {
        margin-bottom: 0.75rem;
    }
        
    .job-title {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
   
    .job-title {
        font-size: 1.125rem;
    }
}

/* Fix for Issue #23: Application form grouping and visual enhancement */
.form-group-container {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    
    position: relative;
    overflow: hidden;
}

.form-group-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-group-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

.form-group-container .ta1 {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 0;
    
}

.form-group-container .ta1 th,
.form-group-container .ta1 td {
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.form-group-container .ta1 th {
    background: #f8fafc;
    font-weight: 600;
    color: #3f3f3f;
}

.submit-container {
    text-align: center !important;
    padding: 1.5rem !important;
}

.submit-container .btn {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    
    text-transform: none;
    letter-spacing: 0.5px;
}

.submit-container .btn:hover {
    transform: translateY(-2px);
    
    background: linear-gradient(135deg, #5a67d8 0%, #553c9a 100%);
}

/* Mobile-specific form grouping improvements */
@media screen and (max-width: 768px) {
    .form-group-container {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
        border-radius: 0.75rem;
    }
    
    .form-group-container h2 {
        font-size: 1.5rem;
    }
    
    .submit-container .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: auto;
        min-width: 150px;
    }
}

/* Additional mobile padding fixes */
@media screen and (max-width: 480px) {
    .form-group-container {
        padding: 1rem 0.75rem;
        margin: 1rem 0;
    }
}

/* Improved form field styling within the group */
.form-group-container .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: white;
}

.form-group-container .form-control:focus {
    border-color: #667eea;
    
    outline: none;
}

.form-group-container .form-check {
    margin: 0.75rem 0;
}

.form-group-container .form-check-input {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.form-group-container .form-check-label {
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
}

/* =============================================================================
   SELECTION FLOW STYLES - 選考フロー スタイル
   ============================================================================= */

.selection-flow-container {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 1rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.selection-flow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3182ce, #38a169, #3182ce);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.selection-flow-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.selection-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem 0rem;
    position: relative;
    padding: 2rem 1rem;
    justify-items: center;
    align-items: start;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 160px;
}

.flow-step-box {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 3px solid #3182ce;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.15);
}

.flow-step-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.25);
    border-color: #2c5282;
}

.flow-step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.flow-step-text {
    text-orientation: upright;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* New arrow system for 2-column layout */
.flow-arrow {
    display: none; /* Hide default arrows */
}


.flow-step-description {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #4a5568;
    line-height: 1.4;
    max-width: 140px;
    opacity: 0.8;
}

/* Special styling for specific steps */
.flow-step.step-application .flow-step-box {
    border-color: #e53e3e;
}

.flow-step.step-application .flow-step-number {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.flow-step.step-contact .flow-step-box {
    border-color: #ed8936;
}

.flow-step.step-contact .flow-step-number {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.flow-step.step-test .flow-step-box {
    border-color: #38a169;
}

.flow-step.step-test .flow-step-number {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.flow-step.step-interview .flow-step-box {
    border-color: #805ad5;
}

.flow-step.step-interview .flow-step-number {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
}

.flow-step.step-offer .flow-step-box {
    border-color: #d69e2e;
}

.flow-step.step-offer .flow-step-number {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}

/* Grid positioning for 2-column layout */
.flow-step.step-application {
    grid-column: 1;
    grid-row: 1;
}

.flow-step.step-contact {
    grid-column: 3;
    grid-row: 1;
}

.flow-step.step-test {
    grid-column: 5;
    grid-row: 1;
}

.flow-step.step-interview {
    grid-column: 2;
    grid-row: 2;
}

.flow-step.step-offer {
    grid-column: 4;
    grid-row: 2;
}

.flow-step.step1, .flow-step.step2, .flow-step.step3, .flow-step.step4 {
    position: relative;
    top: 10%;
    font-size: 50px;
}

.flow-step.step1 {
    grid-column: 2;
    grid-row: 1;
}
.flow-step.step2 {
    grid-column: 4;
    grid-row: 1;
}
.flow-step.step3 {
    grid-column: 1;
    grid-row: 2;
}

.flow-step.step4 {
    grid-column: 3;
    grid-row: 2;
}

/* Animation effects */
@keyframes flowPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9; 
    }
}

.flow-step-box:hover .flow-step-number {
    animation: flowPulse 1.5s ease-in-out infinite;
}

/* Mobile responsive design */
@media screen and (max-width: 768px) {
    .selection-flow-container {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .selection-flow-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .selection-flow {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 1rem;
    }
    
    .flow-step {
        width: 100%;
        max-width: 280px;
    }
    
    /* Reset grid positioning for mobile */
    .flow-step.step-application,
    .flow-step.step-contact,
    .flow-step.step-test,
    .flow-step.step-interview,
    .flow-step.step-offer {
        grid-column: unset;
        grid-row: unset;
    }
    
    /* Hide all arrows on mobile */
    .flow-step.step-application::after,
    .flow-step.step-application::before,
    .flow-step.step-contact::after,
    .flow-step.step-contact::before,
    .flow-step.step-test::after,
    .flow-step.step-test::before,
    .flow-step.step-interview::after,
    .flow-step.step-interview::before,
    .flow-step.step1, .flow-step.step2, .flow-step.step3, .flow-step.step4 {
        display: none;
    }
    
    .flow-step-box {
        width: 100%;
        height: 80px;
        flex-direction: row;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .flow-step-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 1rem;
        margin-left: 1rem;
        text-align: left;
    }
    
    .flow-arrow {
        position: static;
        width: 3px;
        height: 40px;
        background: linear-gradient(180deg, #3182ce 0%, #38a169 100%);
        margin: 0 auto;
        transform: none;
    }
    
    .flow-arrow::after {
        top: auto;
        bottom: -8px;
        right: 50%;
        transform: translateX(50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 12px solid #38a169;
        border-bottom: none;
    }
    
    .flow-step:last-child .flow-arrow {
        display: none;
    }
    
    .flow-step-description {
        margin-top: 0.75rem;
        max-width: 100%;
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 480px) {
    .selection-flow-container {
        padding: 1rem 0.75rem;
    }
    
    .flow-step-box {
        height: 70px;
        padding: 0.75rem;
    }
    
    .flow-step-text {
        font-size: 0.875rem;
    }
    
    .flow-step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

/* =============================================================================
   FLOW DETAIL MODAL STYLES - フロー詳細モーダル スタイル
   ============================================================================= */

.flow-detail-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flow-detail-modal.show {
    display: block;
    opacity: 1;
}

.flow-detail-content {
    position: relative;
    background: white;
    margin: 5% auto;
    max-width: 600px;
    width: 90%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.flow-detail-modal.show .flow-detail-content {
    transform: translateY(0);
}

.flow-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
    color: white;
}

.flow-detail-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.flow-detail-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.flow-detail-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.flow-detail-body {
    padding: 0;
    color: #2d3748;
}

.flow-detail-body h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-detail-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-detail-body li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

@media screen and (max-width: 768px) {
    .flow-detail-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .flow-detail-header {
        padding: 1rem 1.5rem;
    }
    
    .flow-detail-header h3 {
        font-size: 1.125rem;
    }
    
    .flow-detail-body {
        padding: 0;
    }
}