/* Global Styles */
html {
    scroll-behavior: smooth;      /* スムーススクロール追加 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #1a4470;
}

ul {
    list-style: none;
}

.button {
    display: inline-block;
    background-color: #1a4470;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0e2b4e;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    align-items: center;
    position: relative;
}

.logo-container {
    flex: 1;
}

.logo {
    max-width: 220px;
}

.main-nav {
    flex: 2;
}

.main-nav ul {
    display: flex;
    justify-content: center;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a4470;
    transition: width 0.3s;
}

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

.contact-access {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.contact, .access {
    text-align: center;
    margin-left: 10px;
}

.contact a, .access a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    background-color: #4cbbae;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.contact a:hover, .access a:hover {
    background-color: #3aa99c;
}

.contact img, .access img {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

/* Hero Section */
.hero {
    background-image: url('images/4.メインビジュアル背景_3.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: flex-start;        /* 上揃えに変更 */
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 68, 112, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 280px;              /* 上から280pxの位置に配置 */
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Company Info */
.company-info {
    text-align: center;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.company-info p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Content Container */
.content-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

main {
    flex: 3;
    padding-right: 30px;
}

/* Recruit Section */
.recruit-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 20px;
}

.recruit-section h2 {
    flex: 1;
    min-width: 250px;
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
}

.recruit-buttons {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recruit-buttons .button {
    margin-bottom: 20px;
    text-align: center;
}

.recruit-image {
    flex: 2;
    min-width: 300px;
}

.recruit-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.internship-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 20px;
}

.internship-section h2 {
    flex: 1;
    min-width: 250px;
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
    margin-bottom: 20px;
}

.internship-section .internship-content {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.internship-section p {
    margin-bottom: 20px;
}

.internship-section .button {
    align-self: flex-start;
    margin-bottom: 20px;
}

.internship-image {
    flex: 2;
    min-width: 300px;
}

.internship-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Office Map */
.office-map {
    margin-bottom: 60px;
}

.office-map h2 {
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
    margin-bottom: 20px;
}

.office-map p {
    margin-bottom: 20px;
}

.office-map-image {
    position: relative;
}

.office-map-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.employee-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.employee {
    position: absolute;
    width: 120px;
    text-align: center;
}

.employee img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    object-fit: cover;
    object-position: center center;
}

.employee img:hover {
    transform: scale(1.1);
}

.employee-info {
    background-color: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    font-size: 12px;
}

/* About Us */
.about-us {
    margin-bottom: 60px;
}

.about-us h2 {
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
    margin-bottom: 20px;
}

.about-us p {
    margin-bottom: 20px;
}

.company-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-box {
    width: 30%;
    background-color: #f0f5f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 16px;
    color: #1a4470;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

/* Recruitment Flow */
.recruitment-flow {
    margin-bottom: 60px;
}

.recruitment-flow h2 {
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
    margin-bottom: 20px;
}

.recruitment-flow > p {
    margin-bottom: 30px;
}

.flow-chart {
    display: flex;
    justify-content: space-between;
}

.flow-step {
    width: 22%;
    position: relative;
}

.flow-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 20%;
    height: 2px;
    background-color: #ddd;
}

.flow-number {
    background-color: #1a4470;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}

.flow-content {
    background-color: #f0f5f9;
    border-radius: 8px;
    padding: 20px;
    min-height: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-content h3 {
    font-size: 16px;
    color: #1a4470;
    margin-bottom: 10px;
}

.flow-content p {
    font-size: 14px;
}

/* Employee Education */
.employee-education {
    margin-bottom: 60px;
}

.employee-education h2 {
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
    margin-bottom: 20px;
}

.employee-education > p {
    margin-bottom: 30px;
}

.education-phase {
    margin-bottom: 30px;
}

.phase-title {
    background-color: #1a4470;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}

.education-phase ul {
    list-style: disc;
    padding-left: 20px;
}

.education-phase li {
    margin-bottom: 10px;
}

/* Office Event */
.office-event {
    margin-bottom: 60px;
}

.office-event h2 {
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
    margin-bottom: 20px;
}

.office-event > p {
    margin-bottom: 30px;
}

.event-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.event-item {
    width: 30%;
    margin-bottom: 30px;
    text-align: center;
}

.event-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.event-item p {
    font-weight: bold;
}

/* Q&A Section */
.qa-section {
    margin-bottom: 60px;
}

.qa-section h2 {
    font-size: 28px;
    line-height: 1.3;
    color: #1a4470;
    margin-bottom: 30px;
}

.qa-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.question {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 16px;
}

.q-mark {
    background-color: #1a4470;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.answer {
    padding-left: 34px;
}

.more-qa {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    margin-top: 20px;
}

.more-qa:hover {
    background-color: #000;
}

/* Side Menu */
.side-menu {
    flex: 1;
    position: relative;
}

.side-menu-inner {
    background-color: #1a4470;
    color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    position: sticky;
    top: 20px;
}

.side-menu h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin-bottom: 15px;
}

.side-menu a {
    color: #fff;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.side-menu a:hover, .side-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Recruit Detail (新卒・中途ページ) */
.page-title {
    font-size: 32px;
    color: #1a4470;
    margin-bottom: 40px;
    line-height: 1.3;
}

.recruit-table {
    margin-bottom: 40px;
}

.recruit-table table {
    width: 100%;
    border-collapse: collapse;
}

.recruit-table th, .recruit-table td {
    border: 1px solid #ddd;
    padding: 15px;
}

.recruit-table th {
    background-color: #f0f5f9;
    width: 25%;
    text-align: left;
    vertical-align: top;
}

.entry-button {
    text-align: center;
    margin: 40px 0;
}

/* Job Position (中途採用ページ) */
.job-position {
    margin-bottom: 60px;
}

.job-position h2 {
    font-size: 24px;
    color: #1a4470;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a4470;
}

/* Intern Detail */
.intern-intro {
    display: flex;
    margin-bottom: 60px;
}

.intern-main-image {
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.intern-text {
    flex: 1;
    padding-left: 30px;
}

.intern-text h2 {
    font-size: 24px;
    color: #1a4470;
    margin-bottom: 20px;
    line-height: 1.4;
}

.intern-program, .application-info, .intern-voice, .intern-faq {
    margin-bottom: 60px;
}

.intern-program h2, .application-info h2, .intern-voice h2, .intern-faq h2 {
    font-size: 24px;
    color: #1a4470;
    margin-bottom: 20px;
}

.program-item {
    background-color: #f0f5f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.program-item h3 {
    font-size: 18px;
    color: #1a4470;
    margin-bottom: 15px;
}

.voice-item {
    display: flex;
    margin-bottom: 30px;
    background-color: #f0f5f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.voice-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.voice-info {
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a4470;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item .question {
    background-color: #f0f5f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #1a4470;
}

.faq-item .answer {
    padding: 0 15px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

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

/* インターンシップページ専用スタイル */

/* インターンシップ詳細セクション */
.intern-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 36px;
    line-height: 1.2;
    color: #1a4470;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* インターンシップ紹介部分 */
.intern-intro {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 30px;
}

.intern-main-image {
    width: 400px;              /* 固定幅で制御 */
    max-width: 100%;           /* レスポンシブ対応 */
    height: auto;              /* 縦横比を維持 */
    border-radius: 8px;        /* 角を丸く */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
    flex-shrink: 0;            /* 画像が縮まないように */
    object-fit: cover;         /* 画像の表示方法を調整 */
}

.intern-text {
    flex: 1;
    padding-left: 0px;
}

.intern-text h2 {
    font-size: 24px;
    line-height: 1.4;
    color: #1a4470;
    margin-bottom: 20px;
}

.intern-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* プログラム詳細セクション */
.intern-program {
    margin-bottom: 60px;
}

.intern-program h2 {
    font-size: 28px;
    color: #1a4470;
    margin-bottom: 30px;
    border-bottom: 3px solid #1a4470;
    padding-bottom: 10px;
}

.program-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.program-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.program-item h3 {
    color: #1a4470;
    margin-bottom: 15px;
    font-size: 20px;
}

.program-item p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 応募情報セクション */
.application-info {
    margin-bottom: 60px;
    text-align: center;
}

.application-info h2 {
    font-size: 28px;
    color: #1a4470;
    margin-bottom: 20px;
}

.entry-button {
    margin-top: 30px;
}

/* 参加者の声セクション */
.intern-voice {
    margin-bottom: 60px;
}

.intern-voice h2 {
    font-size: 28px;
    color: #1a4470;
    margin-bottom: 30px;
    border-bottom: 3px solid #1a4470;
    padding-bottom: 10px;
}

.voice-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.voice-item {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

.voice-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.voice-text {
    flex: 1;
}

.voice-info {
    font-weight: bold;
    color: #1a4470;
    margin-bottom: 10px;
}

/* FAQ セクション */
.intern-faq {
    margin-bottom: 60px;
}

.intern-faq h2 {
    font-size: 28px;
    color: #1a4470;
    margin-bottom: 30px;
    border-bottom: 3px solid #1a4470;
    padding-bottom: 10px;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item .question {
    background-color: #f0f7ff;
    padding: 15px 20px;
    font-weight: bold;
    color: #1a4470;
    border-left: 4px solid #1a4470;
}

.faq-item .answer {
    padding: 15px 20px;
}

.faq-item .answer p {
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }
    
    main {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .side-menu-inner {
        position: static;
    }
    
    .flow-chart {
        flex-wrap: wrap;
    }
    
    .flow-step {
        width: 45%;
        margin-bottom: 30px;
    }
    
    .flow-step:nth-child(odd):after {
        display: none;
    }
    
    .event-item {
        width: 45%;
    }
    
    .stat-box {
        width: 45%;
    }
    
    /* タブレット用のhero調整 */
    .hero-content {
        margin-top: 250px;              /* タブレットでは250pxに調整 */
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px;
    }
    
    .contact-access {
        margin-top: 15px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-content {
        margin-top: 220px;              /* モバイル版では220pxに調整 */
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .recruit-section, .internship-section {
        flex-direction: column;
    }
    
    .recruit-section h2, .internship-section h2 {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .recruit-buttons, .internship-content {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .recruit-image, .internship-image {
        text-align: center;
    }
    
    .employee {
        width: 80px;
    }
    
    .employee img {
        width: 60px;
        height: 60px;
    }
    
    .employee-info {
        font-size: 10px;
        padding: 5px;
    }
    
    .flow-step, .stat-box, .event-item {
        width: 100%;
    }
    
    /* インターンシップページのレスポンシブ対応 */
    .intern-intro {
        flex-direction: column;
    }
    
    .intern-main-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
    
    .intern-text {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .voice-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .voice-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* スマートフォン用レスポンシブスタイル */
@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .hero {
        height: 350px;                  /* さらに小さな画面では高さを縮小 */
    }
    
    .hero-content {
        margin-top: 180px;              /* 小画面では180pxに調整 */
    }
    
    .hero h1 {
        font-size: 24px;                /* フォントサイズも調整 */
        line-height: 1.3;
    }
    
    .intern-main-image {
        width: 100%;
        max-width: 100%;
    }
    
    .intern-text h2 {
        font-size: 20px;
    }
    
    .program-item,
    .voice-item,
    .faq-item {
        padding: 15px;
    }
}

/* 動画モーダルのスタイル */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.video-close:hover {
    color: #ccc;
}

#modalVideo {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.clickable-employee {
    cursor: pointer;
}

.clickable-employee:hover {
    opacity: 0.8;
}


/* 動画モーダルのスタイル */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.video-close:hover {
    color: #ccc;
}

#modalVideo {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.clickable-employee {
    cursor: pointer;
}

.clickable-employee:hover {
    opacity: 0.8;
}
