/* ========================================
   TOP PAGE SPECIFIC STYLES
   ======================================== */

/* ========================================
   HERO & FEATURE
   ======================================== */
.hero {
    position: relative;
    height: 900px;
}

.hero-main {
    width: 70%;
    height: auto;
    max-height: 870px;
    overflow: hidden;
}

.hero-main img {
    width: 100%;
    display: block;
}

.feature-box {
    width: 680px;
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    right: 24px;
    top: 320px;
    padding: 60px;
}

.feature-panel {
    display: flex;
    justify-content: space-between;
}

.feature-heading {
    position: absolute;
    top: 64px;
    right: 120px;
    margin-right: 40px;
}

.feature-text {
    background: rgba(27, 47, 102, 0.9);
    padding: 38px 57px;
    font-size: 21px;
    color: #FFFFFF;
    letter-spacing: 2px;
    line-height: 46px;
}

.feature-list {
    list-style: none;
    padding-left: 30px;
}

.feature-list li {
    display: inline-block;
    margin-bottom: 12px;
    background: rgba(27, 47, 102, 0.9);
    color: #FFFFFF;
    padding: 10px 17px;
}

.feature-list li:nth-child(2) {
    margin-left: 25px;
}

.feature-list li:nth-child(3) {
    margin-left: 50px;
}

.feature-title {
    display: inline-block;
    font-weight: bold;
    font-size: 27.16px;
    letter-spacing: 2.26px;
    padding-right: 30px;
}

.feature-desc {
    display: inline-block;
    font-size: 14.16px;
    letter-spacing: 1.18px;
}

.feature-image {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 20px;
}

.feature-image img {
    width: 335px;
    height: auto;
    margin-left: 40px;
}

/* ========================================
   GREETING
   ======================================== */
.greeting h2 {
    font-size: 26.16px;
    font-weight: 100;
    color: #000000;
    letter-spacing: 2.18px;
}

.greeting-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.greeting-img {
    flex: 0 0 538px;
}

.greeting-img img {
    width: 100%;
    max-width: 538px;
    height: auto;
    border-radius: 4px;
}

.greeting-text h3 {
    font-size: 27px;
    font-weight: 100;
    color: #000000;
    letter-spacing: 2.18px;
    margin-bottom: 12px;
}

.greeting-text p {
    margin-bottom: 12px;
}

.greeting-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

/* ========================================
   PROFILE
   ======================================== */
.prof-wrap {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.prof-set {
    flex: 1;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 6px;
}

.prof-set h2 span {
    font-size: 12px;
    padding-left: 24px;
}

.prof-ph-set {
    display: flex;
    align-items: start;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.career-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    color: #000000;
    letter-spacing: 1.17px;
}

.career-table th,
.career-table td {
    padding: 2px;
    text-align: left;
    border: none;
    vertical-align: top;
}

.career-table th {
    font-weight: bold;
    width: 6em;
}

.career-table td {
    padding-left: 20px;
}

.license {
    font-size: 14px;
}

/* ========================================
   MENU CARDS
   ======================================== */
.menu h2 {
    font-size: 41.16px;
    font-weight: 100;
    color: #000000;
    letter-spacing: 3.43px;
}

.menu .fblk {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.menu .fblk .fblk-title {
    font-size: 27px;
}

.menu .fblk .fblk-body {
    width: 1440px;
    box-sizing: border-box;
    padding: 28px 38px;
}

.menu-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    margin: 24px auto 0;
    gap: 32px;
}

.menu-cards .card {
    flex: 0 1 30%;
    max-width: 350px;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.menu-cards .card.quarter {
    flex: 0 1 22%;
    max-width: 320px;
}

.menu-cards .card.link {
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    box-shadow: 6px 6px 0 0 rgba(27,47,102,0.26) !important;
    transition: box-shadow 0.3s;
}

.menu-cards .card.link:hover {
    box-shadow: 2px 2px 0 0 rgba(27,47,102,0.26) !important;
}

.menu-cards .card-img img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 16px;
}

.menu-cards .card h4 {
    font-size: 18px;
    text-align: left;
    margin-bottom: 16px;
    width: 100%;
    color: #1B2F66;
    font-weight: bold;
}

.menu-cards .card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.menu-cards .card-list li {
    font-size: 14px;
    color: #1B2F66;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
    line-height: 1.5;
}

.menu-cards .card-list li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
    position: absolute;
    left: 0;
    color: #1B2F66;
    font-weight: bold;
}

.menu-cards .card p {
    font-size: 14px;
    color: #555;
    text-align: center;
    width: 100%;
}

.menu-cards .card.last-card {
    flex-basis: 100%;
    max-width: 100%;
    display: block;
}

.menu-cards .card.last-card p {
    text-align: center;
    font-size: 21px;
}

/* ========================================
   SCHEDULE TABLE
   ======================================== */
.schedule-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 16px;
    color: #333;
    letter-spacing: 1.33px;
    border-radius: 6px;
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #f9f9f9;
    background-color: #FFFFFF;
}

.schedule-table th {
    background-color: #1B2F66;
    color: #fff;
    font-weight: normal;
}

.schedule-table td:first-child {
    background-color: #e8e8e8;
    font-weight: bold;
}

.schedule-table td:not(:first-child) {
    font-size: 20px;
}

.gairaitantou {
    width: 100%;
    padding: 20px 0 40px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 6px;
    text-align: center;
}

.gairaitantou img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* ========================================
   UTILITY COMPONENTS
   ======================================== */
.divider-notch {
    margin: 40px 0;
}

.divider-notch svg {
    display: block;
}

/* ========================================
   SNS LINKS
   ======================================== */
.sns-link {
    text-align: center;
    margin: 2rem 0;
}

.sns-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 3rem;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.sns-link a:hover {
    opacity: 0.8;
}

.sns-link i {
    font-size: 1.2em;
}

.sns-link a:first-child {
    background: linear-gradient(45deg, #1B2F66, #2A3F7F, #394F99, #485FB3, #576FCC, #667FE6);
}

.sns-link a:last-child {
    background: #00B900;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media screen and (max-width: 1250px) {
    .menu .fblk .fblk-body {
        width: 75%;
    }
}

/* Desktop */
@media screen and (max-width: 1024px) {
    .greeting-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .prof-set h2 > span {
        display: block;
        padding-left: 0;
    }

    .prof-ph-set {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .menu-cards .card.quarter {
        flex: 0 1 45%;
        max-width: 100%;
    }
}

/* Tablet */
@media screen and (max-width: 992px) {
    .menu-cards {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .menu-cards .card {
        flex: 0 1 45%;
        width: 100%;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    /* Hero & Feature */
    .hero {
        height: auto;
    }

    .hero-main {
        width: 100%;
    }

    .feature-box {
        position: static;
        width: 100%;
        padding: 24px;
        margin-top: 24px;
    }

    .feature-heading {
        position: static;
        text-align: center;
        margin-bottom: 16px;
        width: 100%;
    }

    .feature-image {
        flex-direction: column;
        align-items: center;
        padding-top: 12px;
    }

    .feature-image img {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        max-width: 300px;
    }

    .feature-list li {
        display: block;
    }

    .feature-list li span {
        display: block;
    }

    .feature-title {
        font-size: 1.3em;
    }

    .feature-desc {
        font-size: 0.8em;
    }

    .feature-text {
        font-size: 16px;
        line-height: 1.8;
        padding: 24px;
    }

    /* Greeting */
    .greeting-inner {
        flex-direction: column;
    }

    .greeting-img {
        width: 100%;
        flex: 0 0 auto;
    }

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

    .greeting-text h3 {
        font-size: 1.3em;
        letter-spacing: 0.05em;
    }

    /* Profile */
    .prof-wrap {
        flex-direction: column;
        gap: 24px;
    }

    .prof-set {
        width: 100%;
        max-width: 100%;
    }

    .prof-ph-set {
        flex-direction: column;
        align-items: center;
    }

    .prof-ph-set img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    .career-table {
        width: 100%;
    }

    .prof-set h2 span {
        display: block;
        padding-left: 0;
    }

    /* Menu */
    .menu .fblk {
        flex-direction: column;
    }

    .menu .fblk .fblk-body {
        width: 100%;
        margin-top: 28px;
        margin-bottom: 30px;
        padding: 20px;
    }

    .menu-cards {
        flex-direction: column;
        gap: 16px;
    }

    .menu-cards .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card-img img {
        max-width: 100%;
    }

    /* Schedule Table */
    .schedule-table {
        font-size: 14px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 4px;
    }

    .schedule-table td:not(:first-child) {
        font-size: 16px;
    }
}

/* Small Mobile */
@media screen and (max-width: 600px) {
    .menu-cards .card.quarter {
        flex: 0 1 100%;
        max-width: 100%;
    }
}