/* プロテック採用サイト - メインスタイルシート */

/* === CSS Variables === */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --bg-light: #f8f9fa;
    --gold: #f39c12;
    --dark-blue: #1a252f;
    --success-color: #27ae60;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --white: #ffffff;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --border-radius-small: 10px;
    --border-radius-large: 25px;
    --transition: all 0.3s ease;
}

/* === Base Styles === */
* {
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
    width: 100vw;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
}

#about {
    background: var(--bg-light);
    position: relative;
}

#about::before {
    background: linear-gradient(135deg, 
        rgba(44, 62, 80, 0.02) 0%, 
        rgba(52, 73, 94, 0.02) 100%);  /* 逆方向グラデーション */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* === Highlight Section === */
.highlight-section {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: var(--white);
    padding: 5rem 0;
    margin: 5rem 0;
    position: relative;
}

.highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);

    z-index: 1;
}

.highlight-section .container {
    position: relative;
    z-index: 2;
}

/* === Benefits Section === */
#benefits {
    background: var(--bg-light);
    position: relative;
}

#benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.98) 0%, 
        rgba(236, 240, 241, 0.95) 100%);
    z-index: 1;
}

#benefits .container {
    position: relative;
    z-index: 2;
}
/* === Typography === */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* === Navigation === */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

/* === Buttons === */
.btn {
    border-radius: var(--border-radius-large);
    font-weight: 600;
    transition: var(--transition);
    padding: 12px 30px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* === Cards === */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

/* === Splash Screen === */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 2s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.expanding-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid rgba(52, 152, 219, 1);
    opacity: 0;
    animation: expandCircle 3s ease-out infinite;
}

.splash-content {
    text-align: center;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.splash-logo {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: none;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s ease-out forwards, logoGlow 2s ease-in-out infinite alternate 1s;
}

.splash-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #333333;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.splash-tagline {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.splash-tagline .highlight-word {
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.mobile-break {
    display: none;
}

.splash-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.splash-stat {
    text-align: center;
}

.splash-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    text-shadow: none;
}

.splash-stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.splash-enter-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--gold));
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    opacity: 0;
    pointer-events: none;
    animation: fadeInUp 1s ease-out 3s forwards, pulse 2s ease-in-out 4s infinite;
}

.splash-enter-btn.ready {
    opacity: 1;
    pointer-events: auto;
}

.splash-enter-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.5);
}

.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 6s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 8s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 5s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 7s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 6s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 8s; }
.particle:nth-child(7) { left: 70%; animation-delay: 3s; animation-duration: 5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 0.8s; animation-duration: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.8s; animation-duration: 6s; }

.loading-bar {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: min(300px, 80vw);
    height: 3px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--info-color));
    width: 0%;
    animation: loading 5s ease-out forwards;
    border-radius: 10px;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./images/interview/job1.JPG') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
}

/* Hero responsive adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 768px) {
    .hero-section .order-lg-1 {
        text-align: left;
    }
}

/* === Main Content === */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.show {
    opacity: 1;
}

/* === Company Stats === */
.company-stats {
    background: var(--bg-light);
    padding: 4rem 0;
    position: relative;
}

.company-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.02) 0%, rgba(44, 62, 80, 0.02) 100%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    text-shadow: 0 2px 4px rgba(52, 152, 219, 0.1);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* === Feature Icons === */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--white);
    font-size: 2rem;
}

/* === Benefits Page Specific === */
.benefit-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: none;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.benefit-icon.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.benefit-icon.success {
    background: linear-gradient(135deg, var(--success-color), #229954);
}

.benefit-icon.info {
    background: linear-gradient(135deg, var(--info-color), #2980b9);
}

.benefit-icon.warning {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
}

.benefit-icon.accent {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.benefit-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* === Highlight Section === */
.highlight-section {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: var(--white);
    padding: 5rem 0;
    margin: 5rem 0;
}

.highlight-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.highlight-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* === Timeline === */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-light);
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
}

/* === Office Cards === */
.office-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.office-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* === Career Path === */
.career-path-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.path-step {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
}

.path-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.path-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    position: relative;
    margin-left: 60px;
}

.path-number {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* === Testimonials === */
.testimonial-section {
    padding: 5rem 0;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-role {
    color: #999;
    font-size: 0.9rem;
}

/* === Contact Section === */
.contact-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
}

/* === Footer === */
footer {
    background: #2c3e50 !important;
    color: var(--white);
    padding: 2rem 0;
}

/* === Animations === */
@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(52, 152, 219, 0.3); }
    100% { text-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
}

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

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandCircle {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(20);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* === Responsive Design === */

/* Extra Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large screens (992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .timeline-content {
        width: 45%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 55%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 55%;
    }
}

/* Medium screens (768px and up) */
@media (min-width: 768px) {
    .splash-stats {
        gap: 2rem;
        flex-direction: row;
    }
    
    .benefit-card {
        min-height: 400px;
    }
    
    .hero-section .d-flex {
        flex-direction: row !important;
    }
    
    .stat-item {
        border-right: 1px solid rgba(44, 62, 80, 0.1);
    }
    
    .stat-item:last-child {
        border-right: none;
    }
}

/* Small screens (576px and up) */
@media (min-width: 576px) {
    .splash-enter-btn {
        padding: 18px 45px;
        font-size: 1.2rem;
    }
    
    .container {
        max-width: 540px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Medium to Large screens - Timeline adjustments */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .timeline-content {
        width: 42%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 58%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 58%;
    }
}

/* Extra small screens (below 768px) */
@media (max-width: 767.98px) {
    /* Splash Screen Mobile */
    .splash-logo {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 0.5rem;
    }

    .splash-subtitle {
        font-size: clamp(0.8rem, 2.5vw, 0.95rem);
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .splash-tagline {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
        line-height: 1.4;
        font-weight: 700;
    }

    .mobile-break {
        display: inline;
    }
    
    .splash-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .splash-stat-number {
        font-size: clamp(1.8rem, 6vw, 2rem);
    }
    
    .splash-enter-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .loading-bar {
        width: 90vw;
        bottom: 30px;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 100px 0 60px;
        min-height: 90vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: clamp(1rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Navigation Mobile */
    .navbar-brand {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        text-align: center;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-top: 1rem;
    }
    
    /* Sections Mobile */
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2rem);
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 60px;
        bottom: -10px;
    }
    
    /* Stats Mobile */
    .company-stats {
        padding: 3rem 0;
    }
    
    .stat-item {
        padding: 1.5rem 0.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
        margin-right: 0 !important;
        padding: 1.5rem;
    }
    
    .timeline-date {
        left: 2rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Cards Mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Office Cards Mobile */
    .office-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .office-name {
        font-size: 1.3rem;
    }
    
    /* Button Mobile */
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Contact Section Mobile */
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-section .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Extra extra small screens (below 480px) */
@media (max-width: 479.98px) {
    .container {
        padding: 0 10px;
    }
    
    /* Splash Screen Extra Small */
    .splash-content {
        padding: 1rem;
    }

    .splash-logo {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .splash-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .splash-tagline {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        font-weight: 700;
    }

    .mobile-break {
        display: inline;
    }
    
    .splash-enter-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Hero Section Extra Small */
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    /* Navigation Extra Small */
    .navbar-brand {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    /* Sections Extra Small */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards Extra Small */
    .card-body {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Stats Extra Small */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Timeline Extra Small */
    .timeline-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Office Cards Extra Small */
    .office-card {
        padding: 1rem;
    }
    
    .office-name {
        font-size: 1.2rem;
    }
    
    /* Footer Extra Small */
    footer .row {
        text-align: center;
    }
    
    footer .col-md-6:first-child {
        margin-bottom: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .splash-screen {
        padding: 1rem;
    }
    
    .splash-content {
        transform: scale(0.8);
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .splash-logo {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .splash-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .splash-tagline {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .mobile-break {
        display: inline;
    }

    .splash-stats {
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('./images/interview/job1.JPG');
    }
}

/* Container responsive adjustments */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Fix for Bootstrap responsive utilities */
.d-flex.gap-3 {
    gap: 1rem !important;
}

@media (max-width: 575.98px) {
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-3 > * {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Image responsive fixes */
.img-fluid {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .office-card img,
    .card img {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }
}

/* Typography responsive improvements */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    hyphens: auto;
}

p {
    word-wrap: break-word;
}

/* Form responsive improvements */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Better touch targets for mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .splash-screen,
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .main-content {
        opacity: 1 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .section-title {
        color: black;
        font-size: 18pt;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .splash-screen {
        transition: none;
    }
    
    .particle {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --accent-color: #0066ff;
        --text-color: #000000;
        --bg-light: #ffffff;
    }

    .card {
        border: 2px solid #000000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #2c3e50;
        --text-color: #ecf0f1;
        --white: #34495e;
    }
    
    body {
        background-color: #2c3e50;
        color: #ecf0f1;
    }
    
    .card {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .navbar {
        background: rgba(52, 73, 94, 0.95) !important;
    }
    
    .navbar-brand,
    .nav-link {
        color: #ecf0f1 !important;
    }
}

/* --------------------------------------------------------- */
/* 最小限の修正のみ追加 - styles.cssの既存内容に以下を追加 */

/* スマホでのナビゲーションブランドの幅制限（メニューボタンが画面外に出る問題を修正） */
@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: calc(100vw - 80px); /* トグルボタンの幅を確保 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ドロップダウンの親がアクティブになるスタイル */
.nav-link.dropdown-toggle.active {
    color: var(--accent-color, #3498db) !important;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
}

/* ドロップダウン内のアクティブアイテム */
.dropdown-item.active {
    background-color: var(--accent-color, #3498db);
    color: white !important;
}

/* モバイルでのドロップダウン親のアクティブスタイル */
@media (max-width: 991.98px) {
    .nav-link.dropdown-toggle.active {
        background-color: rgba(52, 152, 219, 0.1);
        border-radius: 5px;
    }
}

/* モバイルドロップダウンメニューのスタイル（PC版・モバイル版両対応） */
/* styles.cssの最後に追加してください */

/* PC版（992px以上）ではBootstrapのデフォルトスタイルを維持 */
@media (min-width: 992px) {
    .navbar .dropdown-menu {
        /* Bootstrapのデフォルトを使用 */
        position: absolute !important;
        display: none; /* デフォルトは非表示 */
    }
    
    .navbar .dropdown.show .dropdown-menu,
    .navbar .dropdown-menu.show {
        display: block !important;
    }
    
    /* ホバー時のスタイル（オプション） */
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* モバイル版（991px以下）のスタイル */
@media (max-width: 991.98px) {
    /* Bootstrapのデフォルトを上書き */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        background-color: #f8f9fa !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        transform: none !important;
        display: none !important; /* デフォルトは非表示 */
        opacity: 1 !important;
        visibility: visible !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* ドロップダウンメニューが表示されている時 */
    .navbar-collapse .dropdown.show .dropdown-menu,
    .navbar-collapse .dropdown-menu.show {
        display: block !important;
        animation: mobileSlideDown 0.3s ease-out;
    }
    
    /* ドロップダウントグルボタンのスタイル */
    .navbar-collapse .dropdown-toggle {
        width: 100%;
        text-align: left;
        position: relative;
        padding-right: 2rem !important;
    }
    
    /* ドロップダウントグルボタンの矢印 */
    .navbar-collapse .dropdown-toggle::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s;
        border-top-width: 0.4em;
        border-right-width: 0.4em;
        border-left-width: 0.4em;
    }
    
    /* 開いている時の矢印 */
    .navbar-collapse .dropdown.show .dropdown-toggle::after,
    .navbar-collapse .dropdown-toggle[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* ドロップダウンアイテムのスタイル */
    .navbar-collapse .dropdown-item {
        padding: 0.75rem 2.5rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #333 !important;
        background-color: transparent !important;
        transition: all 0.2s;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        font-weight: 400 !important;
        text-align: left !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    
    .navbar-collapse .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* ホバー/フォーカス時のスタイル */
    .navbar-collapse .dropdown-item:hover,
    .navbar-collapse .dropdown-item:focus {
        background-color: rgba(52, 152, 219, 0.1) !important;
        color: #3498db !important;
        text-decoration: none !important;
    }

    /* アクティブ状態のスタイル */
    .navbar-collapse .dropdown-item.active,
    .navbar-collapse .dropdown-item:active {
        background-color: rgba(52, 152, 219, 0.15) !important;
        color: #3498db !important;
        font-weight: 500 !important;
    }
    
    /* ドロップダウン区切り線 */
    .navbar-collapse .dropdown-divider {
        height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    /* アイコンの配置調整 */
    .navbar-collapse .dropdown-item i {
        display: inline-block !important;
        width: 20px !important;
        text-align: center !important;
        margin-right: 0.75rem !important;
        color: #3498db !important;
    }
    
    /* ドロップダウンの親要素のスタイル */
    .navbar-collapse .dropdown {
        position: static !important;
    }
    
    /* タップ時のハイライトを防ぐ */
    .navbar-collapse .dropdown-toggle,
    .navbar-collapse .dropdown-item {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* スライドダウンアニメーション */
    @keyframes mobileSlideDown {
        from {
            opacity: 0;
            max-height: 0;
            overflow: hidden;
        }
        to {
            opacity: 1;
            max-height: 500px;
            overflow: visible;
        }
    }
}

/* タッチデバイス専用スタイル */
@media (hover: none) and (max-width: 991.98px) {
    .navbar-collapse .dropdown-item:hover {
        background-color: transparent !important;
    }
    
    .navbar-collapse .dropdown-item:active {
        background-color: rgba(52, 152, 219, 0.2) !important;
    }
}

/* iOS Safari対応 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 991.98px) {
        .navbar-collapse .dropdown-menu {
            -webkit-transform: translate3d(0, 0, 0);
        }
        
        .navbar-collapse .dropdown-toggle,
        .navbar-collapse .dropdown-item {
            cursor: pointer !important;
        }
    }
}

/* ドロップダウンの親がアクティブな時のスタイル（全サイズ共通） */
.nav-link.dropdown-toggle.active {
    color: var(--accent-color, #3498db) !important;
}

/* ドロップダウン内のアクティブアイテム（全サイズ共通） */
.dropdown-item.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db !important;
}