@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

/* =======================
   Base styles
   ======================= */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    color: white;
}

body {
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInPage 0.8s ease-in forwards;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    filter: brightness(70%);
    object-fit: cover;
    background-color: black;
}

.top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 12px;
    line-height: 1.5;
}

.hero {
    width: 100%;
    max-height: 100vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .hero {
        height: 100vh; /* ?????? calc(50vw) ??? */
    }
}


.center-text {
    line-height: 1.5;
    font-size: 40px;
}

.center-text .italic {
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    letter-spacing: .1em;
    font-weight: 400;
}

.center-text .italic::before,
.center-text .italic::after {
    content: "";
    width: 100px;
    border-bottom: 2px solid white;
    margin: 0 10px;
}

.center-text .bold {
    font-weight: 900;
    font-size: 58px;
    letter-spacing: .2em;
}

.center-text div:nth-child(3) {
    font-size: 24px;
    margin-top: 20px;
    letter-spacing: 3px;
}

/* =======================
   Section general
   ======================= */
.section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #222;
    padding: 50px 20px 0px 20px;
    box-sizing: border-box;
    text-align: center;
}

/* Titles */
.title-red {
    color: #b81c2b;
    font-size: 35px;
    font-weight: bold;
    border-bottom: 4px solid #b81c2b;
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-align: center;
    display: inline-block;
    letter-spacing: 3px;
}

.title-white {
    color: white;
    font-size: 35px;
    font-weight: bold;
    border-bottom: 4px solid white;
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-align: center;
    display: inline-block;
    position: relative;
    z-index: 1;
    letter-spacing: 3px;
}

.title-black {
    margin-top: 5px;
    margin-bottom: 70px;
    font-size: 20px;
    font-weight: 200;
    letter-spacing: .45em;
}

/* Subtexts */
.section .subtext {
    text-align: center;
    margin-bottom: 20px;
}

.subtext.bold.large {
    font-weight: 900;
    font-size: 32px;
    letter-spacing: .2em;
    line-height: 1.4;
    margin-bottom: 30px;
}

.subtext.bold.small {
    font-weight: bold;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    letter-spacing: .15em;
}

/* Main images */
.section .main-image {
    width: 79.5%;
    max-width: 1200px;
    height: auto;
    margin-top: 20px;
}

/* Section gray */
.section-gray {
    width: 100%;
    background-color: #f8f8f8;
    color: #222;
    padding: 50px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Members */
.members-container {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 10px;
    width: 100%;
}

.member-box {
    background-color: white;
    padding: 20px;
    flex: 0 0 285px;
    box-sizing: border-box;
    font-size: 14px;
    border: 1px solid #efefef;
    text-align: center;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-box:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.member-box.show {
    opacity: 1;
    transform: translateY(0);
}

.member-image img {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.member-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.member-underline {
    width: 60px;
    height: 2px;
    background-color: #b81c2b;
    margin: 0 auto 15px auto;
}

.member-department {
  display: none;
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
}

.member-text {
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    margin-top: 30px;
    color: #666;
    word-break: break-word;
    display: block;
}

/* Video section */
.section-video {
    width: 100%;
    background-color: white;
    color: #222;
    padding: 50px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-video iframe {
    width: 80%;
    height: 450px;
    max-width: 800px;
    border: none;
}

/* Company section */
.section-company {
    width: 100%;
    background-color: #f8f8f8;
    color: #222;
    padding: 50px 20px;
    box-sizing: border-box;
    text-align: center;
}

.section-company .title-black {
    margin-bottom: 50px;
}

.section-company .company-content {
    display: flex;
    align-items: stretch;
    gap: 20px;
    justify-content: center;
}

.section-company .company-image {
    flex: 0 0 auto;
}

.section-company .company-image iframe {
    width: 100%;
    max-width: 700px;
    height: 350px;
    border: none;
}

.section-company table {
    flex: 1;
    width: 40%;
    max-width: 600px;
    margin: 0 0 0 40px;
    border-collapse: collapse;
    text-align: left;
    letter-spacing: .15em;
}

.section-company th, .section-company td {
    padding: 10px;
}

.section-company tr:not(:last-child) th,
.section-company tr:not(:last-child) td {
    border-bottom: 1px solid #ccc;
}

.section-company th {
    font-weight: bold;
    padding-left: 30px;
    text-align: left;
}

.section-company td {
    text-align: left;
}

/* Map section */
.section-map {
    width: 100%;
    height: 80vh;
}

.section-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Careers section */
.section-careers {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(184,28,43,0.8);
    color: white;
    padding: 50px 20px;
    box-sizing: border-box;
    text-align: center;
}

.section-careers .title-white {
    font-size: 36px;
    font-weight: bold;
    border-bottom: 4px solid white;
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    z-index: 1;
    letter-spacing: 3px;
}

.section-careers .subtitle-white {
    margin-bottom: 20px;
    margin-top: 5px;
    font-size: 20px;
    font-weight: 200;
    letter-spacing: .45em;
}

.section-careers .subtitle-white.graduates {
    background-color: rgba(255, 255, 255, 0.2);
    width: 100%;
    font-size: 22px;
    line-height: 1.2;
    margin: 40px auto 20px auto;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    box-sizing: border-box;
    display: inline-block;
}

.careers-box-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 60px;
    margin: 30px auto 0 auto;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.careers-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
    flex-shrink: 0;
}

.career-tab {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: .1em;
}

.career-tab.active,
.career-tab:hover {
    background: #ffffff;
    color: #b81c2b;
}

.careers-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.careers-box {
    position: relative;
    display: none;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(255,255,255,0.95);
    color: #222;
    padding: 10px 20px 30px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.careers-box.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.careers-box .job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.careers-box .job-header strong {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1.3;
    text-align: left;
    color: #000;
    width: 100%;
    font-feature-settings: "palt";
}

.careers-box .job-header .job-icon-small {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.careers-box .job-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.careers-box .job-details .job-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
    color: #222;
    letter-spacing: .05em;
}

.careers-box .job-details .job-item img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.careers-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.careers-box:hover .job-header strong {
    color: #ff9922;
}

/* Animations */
@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-text-animate {
    opacity: 0;
    transform: translateY(0);
    animation-fill-mode: forwards;
}

.hero-text-top {
    transform: translateY(-30px);
    animation: fadeDown 1s ease forwards;
}

.hero-text-bottom {
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.5s;
}

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

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

.member-readmore {
    display: none;
}

.mobile-br {
  display: none;
}

.site-footer {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    box-sizing: border-box;
    letter-spacing:2px;
}

@media screen and (max-width: 768px) {

    .hero {
        height: 100vh;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 0 20px;
        text-align: center;
        box-sizing: border-box;
        position: relative;
    }

    .center-text {
        font-size: 34px;
        line-height: 1.4;
        margin: 0 auto;
        width: 100%;
        max-width: 90%;
        transform: translateY(-10px);
    }

    .center-text .italic {
        font-size: 22px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-style: italic;
        letter-spacing: .08em;
        margin-bottom: 6px;
    }

    .center-text .italic::before,
    .center-text .italic::after {
        width: 50px;
        content: "";
        border-bottom: 2px solid white;
    }

    .center-text .bold {
        font-size: 46px;
    }

    .center-text div:nth-child(3) {
        font-size: 20px;
    }

    .top-left {
        font-size: 16px;
        top: 8px;
        left: 10px;
    }

    #background-video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* =======================
       Section Company
       ======================= */
    .section-company {
        flex-direction: column;
        gap: 20px;
        padding: 50px 15px 3px 15px;
        width: 100%;
    }

    .section-company .company-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .section-company table {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
        border-collapse: collapse;
        border-top: 2px solid #ccc;
        border-bottom: 2px solid #ccc;
    }

    .section-company .company-image {
        order: 0;
        width: 100%;
    }

    .section-company .company-image iframe {
        height: 250px;
    }

    .section-company tr {
        display: table-row;
        border: none;
    }

    .section-company th,
    .section-company td {
        display: table-cell;
        width: 100%;
        padding: 8px 0;
        text-align: left;
        border: none;
    }

    .section-company th {
        font-weight: bold;
        padding-left: 0;
    }

    .section-company td {
        color: #555;
    }

    /* =======================
       Section Map
       ======================= */
    .section-map {
        height: 50vh;
        margin-top: 20px;
    }

    .section-map iframe {
        width: 100%;
        height: 100%;
    }

    /* =======================
       Careers
       ======================= */
    .careers-box-container {
        flex-direction: column;
        gap: 30px;
    }

    .careers-left {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .careers-right {
        width: 100%;
        gap: 20px;
    }

    .careers-box {
        padding: 0px 15px 15px 15px;
        gap: 0px;
    }

    .careers-box .job-header strong {
        font-size: 16px;
        letter-spacing: 2px;
    }

/* Members mobile */
.members-container {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    gap: 15px;
    width: 100%;
}

.member-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #eee;
    max-height: 120px;
}

.member-image {
    flex: 0 0 80px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-image img {
    width: 80px;
    height: 80px;
    border-radius: 0%;
    object-fit: cover;
    margin: 0;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10px;
    width: auto;
    transform: translateY(-6px);
    min-width:180px;
}



.member-name {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    color: #222;
    display: inline-block;
    text-align: left;
}

.member-underline {
    display: block;
    width: 80%;
    max-width: 100%;
    height: 3px;
    background-color: #b81c2b;
    margin: 0;
    align-self: flex-start;
}

.member-text {
    display: none !important;
}

    .member-readmore {
        display: block;
        position: absolute;
        bottom: 8px;
        right: 10px;
        font-size: 12px;
        color: #b81c2b;
        cursor: pointer;
        font-weight: bold;
    }

    .member-box {
        position: relative;
    }

    .section-video iframe {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
        max-height: 300px;
        border: none;
        display: block;
        margin: 0 auto;
    }

  .mobile-br {
    display: inline;
  }

.title-black {
    margin-top: 5px;
    margin-bottom: 50px;
    font-size: 20px;
    font-weight: 200;
    letter-spacing: .45em;
}

.section-careers .subtitle-white {
    margin-bottom: 20px;
    margin-top: 5px;
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 6px;
}

.subtext.bold.large {
    font-weight: 900;
    font-size: 28px;
    letter-spacing: .2em;
    line-height: 1.4;
    margin-bottom: 30px;
}

.section .main-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-top: 0px;
}

.section-careers {
    padding:30px 20px;
}

.section-careers .subtitle-white.graduates {
    background-color: rgba(255, 255, 255, 0.2);
    width: 100%;
    font-size: 22px;
    line-height: 1.2;
    margin: 40px auto 0 auto;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    box-sizing: border-box;
    display: inline-block;
}

.section-gray {
    padding: 50px 20px 20px 20px;
}

  .member-department {
    display: block;
    text-align: left;
    font-size: 12px;
  }

}
