/* =============================================
   グッドデザイン賞応募LP - ギャップゼロ、外国人材育成システム
   小川電機株式会社
   ============================================= */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #004EA2;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #004EA2;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    margin-top: 64px;
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.slide-caption {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.12em;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1;
}

.hero-content {
    background-color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #666;
    margin-bottom: 64px;
    line-height: 1.8;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    text-align: left;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.feature-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.feature-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

/* Section */
.section {
    padding: 100px 0;
}

.section-gray {
    background-color: #fafafa;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-intro {
    font-size: 16px;
    color: #777;
    text-align: center;
    margin-bottom: 64px;
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background-color: #fff;
    padding: 40px 32px;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #004EA2;
    background-color: #e5f0ff;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.card-text {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* Flow Diagram */
.flow-diagram {
    display: grid;
    gap: 32px;
}

.flow-step {
    background-color: #fff;
    border-left: 4px solid #004EA2;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.flow-step-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    flex: 1;
}

.flow-step-image {
    flex: 0 0 360px;
    overflow: hidden;
}

.flow-step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e8e8e8;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: #004EA2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.step-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.step-meta {
    display: grid;
    gap: 12px;
}

.meta-item {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.meta-label {
    font-weight: 600;
    color: #999;
    min-width: 80px;
}

.meta-value {
    color: #555;
}

/* Video Section */
.video-container {
    max-width: 900px;
    margin: 0 auto 40px;
}

.video-container video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background-color: #000;
}

.video-summary {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 32px;
    border: 1px solid #e5e5e5;
}

.video-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.video-summary-list {
    list-style: none;
}

.video-summary-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.video-summary-list li:last-child {
    border-bottom: none;
}

.video-summary-list strong {
    color: #333;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background-color: #fff;
    padding: 40px 24px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    white-space: nowrap;
    color: #004EA2;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.stat-note {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* Voices Grid */
.voices-grid {
    display: grid;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.voice-card {
    display: flex;
    gap: 32px;
    background-color: #fff;
    padding: 32px;
    border: 1px solid #e5e5e5;
}

.voice-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.voice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e8e8e8;
}

.voice-content {
    flex: 1;
}

.voice-quote {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.5;
}

.voice-text {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.voice-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-badge {
    font-size: 12px;
    padding: 4px 12px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 4px;
}

/* Company Voices */
.company-voices {
    display: grid;
    gap: 48px;
}

.company-voice-card {
    background-color: #fff;
    padding: 40px;
    border: 1px solid #e5e5e5;
}

.company-info {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.company-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e8e8e8;
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.company-position {
    font-size: 14px;
    color: #777;
}

.company-voice-content {
    display: grid;
    gap: 32px;
}

.voice-section {
}

.voice-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #004EA2;
    margin-bottom: 12px;
}

.voice-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* Before/After */
.before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.before-after-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.ba-label {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

.ba-before {
    background-color: #f5f5f5;
    color: #666;
}

.ba-after {
    background-color: #004EA2;
    color: #fff;
}

.ba-content {
    padding: 32px 24px;
}

.ba-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.ba-item:last-child {
    border-bottom: none;
}

.ba-category {
    font-weight: 600;
    color: #999;
}

.ba-value {
    color: #555;
    line-height: 1.6;
}

.before-after-arrow {
    font-size: 32px;
    color: #004EA2;
    font-weight: 700;
}

/* Curriculum */
.curriculum {
    display: grid;
    gap: 32px;
}

.curriculum-chapter {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.chapter-content {
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: center;
}

.chapter-content-inner {
    flex: 1;
    display: grid;
    gap: 24px;
}

.curriculum-chapter-image {
    flex: 0 0 360px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    align-self: center;
}

.curriculum-chapter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e8e8e8;
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.chapter-number {
    width: 48px;
    height: 48px;
    background-color: #004EA2;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.chapter-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.chapter-goal,
.chapter-method,
.chapter-connection {
    display: grid;
    gap: 8px;
}

.goal-label,
.method-label,
.connection-label {
    font-size: 13px;
    font-weight: 600;
    color: #004EA2;
    letter-spacing: 0.05em;
}

.chapter-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* Social Issues */
.social-issues {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.issue-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    overflow: hidden;
}

.issue-card-body {
    flex: 1;
    padding: 40px 32px;
}

.issue-card-image {
    flex: 0 0 200px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
}

.issue-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e8e8e8;
}

.issue-flag {
    font-size: 48px;
    margin-bottom: 20px;
}

.issue-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.issue-headline {
    font-size: 16px;
    font-weight: 600;
    color: #004EA2;
    margin-bottom: 16px;
    line-height: 1.6;
}

.issue-list {
    list-style: none;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.issue-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.issue-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #004EA2;
    font-weight: 700;
}

/* Solution Section */
.solution-section {
    max-width: 1000px;
    margin: 0 auto;
}

.solution-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.gap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.gap-item {
    text-align: center;
    padding: 32px 24px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
}

.gap-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.gap-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.gap-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.solution-content {
    background-color: #fff;
    padding: 48px 40px;
    border-left: 4px solid #004EA2;
    margin-bottom: 64px;
}

.solution-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.solution-text {
    font-size: 16px;
    line-height: 1.9;
    color: #666;
}

.solution-text strong {
    color: #004EA2;
    font-weight: 600;
}

/* Impact Section */
.impact-section {
}

.impact-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

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

.impact-item {
    padding: 32px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
}

.impact-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #004EA2;
    background-color: #e5f0ff;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.impact-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.impact-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #004EA2 0%, #003875 100%);
    color: #fff;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.cta-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: #fff;
    color: #004EA2;
}

.btn-primary:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 48px 0 32px;
}

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

.footer-logo {
    background-color: #fff;
    display: inline-flex;
    flex-direction: column;
    padding: calc(28px * 0.25);
    gap: 8px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    display: block;
}


.footer-info {
    text-align: right;
}

.footer-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Placeholder Images */
.placeholder-image {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    padding: 20px;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.voice-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 4px;
}

.company-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 4px;
}

.ba-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ba-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.placeholder-label {
    font-size: 13px;
    line-height: 1.6;
}

/* Tablet only */
@media (min-width: 769px) and (max-width: 1024px) {
    .flow-step {
        align-items: center;
    }

    .flow-step-image {
        flex: 0 1 260px;
        min-width: 160px;
        aspect-ratio: 16 / 9;
    }

    .curriculum-chapter-image {
        flex: 0 1 260px;
        min-width: 160px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-features {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-issues {
        grid-template-columns: 1fr;
    }

    .issue-card {
        flex-direction: column;
        padding: 0 0 24px;
        gap: 0;
    }

    .issue-card-body {
        padding: 24px 24px 16px;
    }

    .issue-card-image {
        flex: none;
        width: calc(100% - 48px);
        margin: 0 24px;
        aspect-ratio: 3 / 4;
    }

    .gap-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .before-after-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
        gap: 16px;
    }

    .hero {
        margin-top: 105px;
    }

    .hero-slider {
        height: calc(100vh - 105px);
    }

    .slide-caption {
        font-size: clamp(18px, 6vw, 48px);
        white-space: nowrap;
    }

    .hero-title {
        font-size: clamp(14px, 4.5vw, 32px);
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: clamp(11px, 3vw, 16px);
    }

    .hero-subtitle br {
        display: none;
    }

    .feature-item {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 28px;
    }

    .section {
        padding: 64px 0;
    }

    .flow-step {
        flex-direction: column;
    }

    .flow-step-body {
        flex-direction: column;
        padding: 24px;
        gap: 12px;
    }

    .flow-step-image {
        flex: none;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .chapter-content {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .curriculum-chapter-image {
        flex: none;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .voice-card {
        flex-direction: column;
    }

    .voice-placeholder {
        width: 100%;
        height: 200px;
    }

    .company-info {
        flex-direction: column;
    }

    .company-placeholder {
        width: 100%;
        height: 200px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-info {
        text-align: left;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #004EA2;
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .cta-section,
    .footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
