:root {
    --text-color: #333;
    --bg-color: #fff;
    --accent-color: #000;
    --gray-light: #f5f5f5;
    --font-main: 'Noto Sans JP', sans-serif;
}

/* Scroll Animations */
.js-scroll-trigger {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-scroll-trigger.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in {
    /* No transform for simple fade */
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.entry-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--text-color);
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.entry-btn:hover {
    background-color: var(--text-color);
    color: white;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Styles */
.site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 150;
}

.site-nav.active {
    right: 0;
}

.site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.site-nav a {
    font-size: 1.5rem;
    color: #000;
}

.site-nav .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    align-items: flex-start;
}

.site-nav .sub-menu a {
    font-size: 1.2rem;
    color: #666;
}

/* Burger Menu Animation */
.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero (Common for subpages) */
.hero {
    padding: 60px 0;
    text-align: center;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

/* Hero (Top Page) */
.hero-top {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered */
    text-align: center;
    /* Centered */
    background-color: #000;
    background-image: none;
    color: #fff;
    position: relative;
    padding: 0 100px;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-top .container {
    position: relative;
    z-index: 2;
    /* Ensure content is above video */
    max-width: 900px;
    /* Increased width for centered layout */
    margin: 0 auto;
    /* Centered */
}

.hero-content {
    position: relative;
    display: inline-block;
    text-align: center;
    /* Explicitly set text align */
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    display: block;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.4;
}

.hero-top .hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    /* Centered */
    white-space: normal;
    /* Allow wrapping if needed */
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image .vision-map {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.about-title {
    font-size: 3.5rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    line-height: 1;
    color: #000;
}

.about-link {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.about-link:hover {
    color: #000;
    border-bottom-color: #000;
    transform: translateY(-2px);
}

.about-link .arrow {
    font-family: monospace;
    /* Or use an icon */
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-title {
        font-size: 2rem;
    }
}

/* Pitch Section */
.pitch-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.pitch-embed {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pitch-link-container {
    text-align: center;
    margin-top: 20px;
}

.pitch-link {
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.pitch-link:hover {
    color: #000;
    border-bottom-color: #000;
    transform: translateY(-2px);
}

/* Department Section */
.department-section {
    padding: 80px 0;
}

.department-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.department-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.department-title {
    font-size: 3.5rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    line-height: 1;
    color: #000;
}

.department-link {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.department-link:hover {
    color: #000;
    border-bottom-color: #000;
    transform: translateY(-2px);
}

.department-link .arrow {
    font-family: monospace;
}

@media (max-width: 768px) {
    .department-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .department-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Office Section */
.office-section {
    padding: 80px 0;
    background-color: var(--gray-light);
    text-align: center;
}

.office-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    /* Add spacing between images */
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: translateY(-5px);
}

.carousel-slide img {
    width: 100%;
    height: 250px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .carousel-slide img {
        height: 500px;
    }
}

.carousel-slide:hover img {
    opacity: 0.85;
}

.area-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: #333;
    transform: scale(1.2);
}

/* Career Section */
.career-section {
    padding: 80px 0;
}

.career-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.career-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.career-title {
    font-size: 3.5rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    line-height: 1;
    color: #000;
}

.career-link {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.career-link:hover {
    color: #000;
    border-bottom-color: #000;
    transform: translateY(-2px);
}

.career-link .arrow {
    font-family: monospace;
}

@media (max-width: 768px) {
    .career-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .member-grid {
        grid-template-columns: 1fr;
    }

    /* Additional tablet optimizations */
    .about-grid,
    .department-grid,
    .career-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-top .hero-title {
        font-size: 3.5rem;
        text-align: center;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-title,
    .department-title,
    .career-title {
        font-size: 1.8rem;
    }

    .interview-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .entry-button {
        padding: 16px 60px;
        font-size: 1.2rem;
    }

    .info-link {
        padding: 18px 15px;
    }

    .info-text {
        font-size: 1rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .logo img {
        height: 30px;
    }

    .entry-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .burger-menu {
        width: 35px;
        height: 35px;
    }

    /* Hero (Common) */
    .hero {
        padding: 80px 0 40px !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-top: 0 !important;
    }

    /* Hero (Top Page) */
    .hero-top {
        min-height: 60vh;
        justify-content: center;
        /* Vertically center content if flex-direction is column, or horizontally if row. Default row. */
        padding: 40px 20px;
    }

    .hero-top .container {
        width: 100%;
        /* Take full width */
        margin: 0;
        /* Remove auto margins */
        display: flex;
        justify-content: center;
        /* Center content */
    }

    .hero-top .hero-title {
        font-size: 2.5rem;
        line-height: 1.4;
        letter-spacing: normal;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        white-space: normal;
        text-align: center;
    }



    /* Section Padding */
    .about-section,
    .department-section,
    .office-section,
    .career-section,
    .members,
    .president-section,
    .info-section {
        padding: 50px 0;
    }

    /* Titles */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .about-title,
    .department-title,
    .career-title {
        font-size: 1.5rem;
        padding-bottom: 8px;
    }

    /* Office Carousel */
    .office-description {
        font-size: 0.8rem;
        margin-top: 10px;
    }

    /* Interview Links */
    .interview-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .more-members-link {
        font-size: 0.95rem;
    }

    /* Info Section */
    .info-link {
        padding: 15px 10px;
    }

    .info-icon {
        font-size: 1.3rem;
        margin-right: 10px;
    }

    .info-text {
        font-size: 0.95rem;
    }

    .info-arrow {
        font-size: 1.5rem;
    }

    .entry-button {
        padding: 14px 40px;
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }

    /* Carousel Indicators */
    .office-carousel-indicators,
    .members-carousel-indicators {
        margin-top: 10px;
    }

    .office-carousel-indicator,
    .members-carousel-indicator {
        width: 10px;
        height: 10px;
    }

    /* Member Cards */
    .member-card {
        padding: 12px;
    }

    /* Footer */
    .site-footer {
        padding: 30px 0;
    }





    .copyright {
        font-size: 0.8rem;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-grid,
    .department-grid,
    .career-grid {
        gap: 60px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Mission */
.mission {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.mission-text {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Members */
.members {
    padding: 80px 0;
    background-color: var(--gray-light);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.members-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.members-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.member-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.member-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.member-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.interview-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.interview-link:hover {
    background-color: #333;
    color: white;
    transform: translateY(-2px);
}

/* Referral Read More Button */
.referral-read-more-btn {
    display: inline-block;
    padding: 18px 60px;
    background: #fff;
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.15em;
}

.referral-read-more-btn:hover {
    background: #333;
    color: #fff;
}

.member-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.member-info .role {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-info .description {
    color: #333;
    line-height: 1.6;
}

.members-carousel-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.members-carousel-indicator {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.members-carousel-indicator.active {
    background: #333;
    transform: scale(1.2);
}

.view-more-members {
    margin-top: 30px;
    text-align: center;
}

.more-members-link {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    color: #000;
    text-decoration: none;
}

.more-members-link:hover {
    color: #000;
    border-bottom-color: #000;
    transform: translateY(-2px);
}

/* President Section */
.president-section {
    padding: 80px 0;
}

.president-link {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s, opacity 0.3s;
}

.president-link:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.president-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.president-section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.president-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.president-image-wrapper {
    display: block;
    flex: 1;
}

.president-text-link {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    padding-bottom: 5px;
}

.president-text-link:hover {
    border-bottom-color: #333;
    transform: translateX(5px);
}

.president-link-container {
    text-align: center;
}

/* Info Section */
.info-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.info-links {
    max-width: 700px;
    margin: 0 auto 50px;
}

.info-link {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    background: white;
    margin-bottom: 2px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.info-link:hover {
    background-color: #fafafa;
    border-left-color: #333;
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    min-width: 40px;
}

.info-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: bold;
}

.info-arrow {
    font-size: 2rem;
    color: #ccc;
    transition: color 0.3s;
}

.info-link:hover .info-arrow {
    color: #333;
}

.entry-section {
    text-align: center;
    margin-top: 60px;
}

.entry-button {
    display: inline-block;
    padding: 20px 100px;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid #333;
    border-radius: 50px;
    transition: all 0.3s;
    letter-spacing: 0.15em;
}

.entry-button:hover {
    background: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
    padding: 40px 0;
    background-color: #111;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.footer-entry-btn {
    display: inline-block;
    padding: 14px 50px;
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.footer-entry-btn:hover {
    background: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.5);
}

.entry-btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.entry-main {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.entry-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.entry-sub {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.9;
}

.footer-note-banner {
    display: block;
    padding: 15px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.footer-note-banner:hover {
    background-color: #2a2a2a;
}

.note-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.note-icon {
    font-size: 2rem;
}

.note-text {
    flex: 1;
}

.note-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-link-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.note-subtitle {
    font-size: 0.75rem;
    color: #aaa;
}

.footer-nav {
    flex: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 30px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-actions {
    display: flex;
    gap: 20px;
}

.footer-info {
    text-align: right;
    min-width: 250px;
}

.company-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.company-address {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 8px;
}

.company-phone {
    margin-bottom: 15px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #aaa;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.3s;
}

.phone-link:hover {
    color: #fff;
    border-color: #666;
    background-color: rgba(255, 255, 255, 0.05);
}

.phone-icon {
    width: 16px;
    height: 16px;
}

.company-link {
    margin-bottom: 20px;
}

.company-link a {
    font-size: 0.9rem;
    color: #aaa;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.company-link a:hover {
    color: #fff;
}

.corporate-link-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.footer-sns {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.footer-sns a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-sns a:hover {
    color: #fff;
}

.footer-sns svg {
    width: 24px;
    height: 24px;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

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

    .footer-info {
        text-align: left;
        width: 100%;
    }

    .footer-sns {
        justify-content: flex-start;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px 4%;
        /* Vertical gap 15px, Horizontal gap 4% */
    }

    /* President Section Mobile */
    .president-images {
        flex-direction: column;
    }

    .footer-links a {
        width: 48%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

/* Position Link Hover Effect */
.position-link {
    color: #333;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.position-link:hover {
    color: #0056b3;
    text-decoration: none;
    transform: translateX(5px);
    opacity: 0.8;
}

/* Referral Page Styles */
.merit-grid,
.process-grid,
.member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.process-grid {
    margin-bottom: 40px;
    align-items: stretch;
}

.member-grid {
    margin-bottom: 40px;
}

/* Responsive for Referral Page */
@media (max-width: 768px) {

    .merit-grid,
    .process-grid,
    .member-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .merit-grid {
        margin-bottom: 40px;
    }

    /* Reverse order for Merit 2 on mobile (Image first) */
    .merit-reverse> :nth-child(2) {
        order: -1;
    }
}

.section-intro {
    text-align: center;
    color: #666;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .section-intro {
        margin-bottom: 40px;
    }
}

/* Benefit Page Styles */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.benefit-item {
    text-align: center;
}

.benefit-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.benefit-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.view-more-container {
    text-align: center;
    margin-bottom: 100px;
}

.view-more-btn {
    display: inline-block;
    padding: 15px 60px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: white;
    border-radius: 4px;
}

.view-more-btn:hover {
    background: #333;
    color: white;
}

/* Style Section */
.style-section {
    margin-bottom: 100px;
    text-align: center;
}

.style-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.style-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: bold;
}

.style-content {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.style-content.reverse {
    flex-direction: row-reverse;
}

.style-image {
    flex: 1;
    border: 1px solid #ddd;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
}

.style-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.style-text {
    flex: 1;
}

.style-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.style-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #333;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.style-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.radio-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
}

/* Responsive for Benefit Page */
@media (max-width: 768px) {
    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefit-title {
        font-size: 1.1rem;
    }

    .benefit-desc {
        font-size: 0.85rem;
    }

    .view-more-btn {
        padding: 12px 40px;
        font-size: 1rem;
    }

    .style-section {
        margin-bottom: 60px;
    }

    .style-title {
        font-size: 1.5rem;
    }

    .style-subtitle {
        font-size: 0.9rem;
    }

    .style-content,
    .style-content.reverse {
        flex-direction: column;
        gap: 30px;
    }

    /* Ensure image always comes first on mobile */
    .style-content .style-image,
    .style-content.reverse .style-image {
        order: 1;
    }

    .style-content .style-text,
    .style-content.reverse .style-text {
        order: 2;
    }

    .style-image {
        width: 100%;
        height: 250px;
    }

    .style-text {
        text-align: left;
    }

    .style-text p {
        font-size: 0.9rem;
    }

    .style-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
}

/* Q&A Page Styles */

/* Featured Q&A (Expandable with full answer) */
.qa-featured {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}

.qa-question-featured {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qa-question-featured .qa-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4A90E2;
    flex-shrink: 0;
}

.qa-question-featured .qa-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: bold;
}

.qa-question-featured .qa-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4A90E2;
    border: none;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

.qa-featured.active .qa-question-featured .qa-toggle {
    background: #999;
}

.qa-answer-featured {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.qa-answer-featured .qa-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4A90E2;
    flex-shrink: 0;
}

.qa-answer-text {
    flex: 1;
    line-height: 1.8;
    color: #555;
}

/* Customer Voice Section Redesign */
.customer-voice-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin: 60px 0 0 0;
}

.voice-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.voice-card {
    background-color: #fff;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    /* Full height for equal sizing */
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.voice-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.voice-date {
    text-align: right;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Regular Q&A Items (Compact) */
.qa-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50px;
    margin-bottom: 15px;
}

.qa-item .qa-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4A90E2;
    flex-shrink: 0;
}

.qa-item .qa-text {
    flex: 1;
    font-size: 1rem;
}

.qa-item .qa-toggle-simple {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4A90E2;
    border: none;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .qa-featured {
        padding: 20px;
    }

    .qa-question-featured .qa-text {
        font-size: 1rem;
    }

    .qa-item {
        padding: 15px 20px;
    }

    .qa-item .qa-text {
        font-size: 0.9rem;
    }
}

/* Q&A Accordion Styles */
.qa-item {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa-item.active {
    border-radius: 20px;
}

.qa-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    cursor: pointer;
}

.qa-item .qa-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4A90E2;
    flex-shrink: 0;
}

.qa-item .qa-text {
    flex: 1;
    font-size: 1rem;
    font-weight: bold;
}

.qa-item .qa-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4A90E2;
    border: none;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.qa-item.active .qa-toggle {
    transform: rotate(45deg);
    background: #999;
}

.qa-answer {
    display: none;
    padding: 0 30px 30px;
    gap: 15px;
    align-items: flex-start;
}

.qa-item.active .qa-answer {
    display: flex;
}

/* Responsive adjustments for Q&A */
@media (max-width: 768px) {
    .qa-item {
        border-radius: 30px;
    }

    .qa-item.active {
        border-radius: 20px;
    }

    .qa-question {
        padding: 15px 20px;
    }

    .qa-answer {
        padding: 0 20px 20px;
    }
}

/* Featured Q&A Accordion Logic */
.qa-answer-featured {
    display: none;
}

.qa-featured.active .qa-answer-featured {
    display: flex;
}

/* Career Page Styles */
.career-chart {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.career-start-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
}

.career-label {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.career-box-start {
    background: #e0e0e0;
    border: 1px solid #999;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    padding: 20px 0;
    min-height: 400px;
}

.career-options-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.career-option-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.career-arrow {
    width: 40px;
    height: 2px;
    background: #4A90E2;
    position: relative;
}

.career-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid #4A90E2;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.career-option-box {
    border: 1px solid #999;
    padding: 20px;
    background: #fff;
    flex: 1;
}

.career-option-box h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.career-option-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Evaluation Chart */
.evaluation-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    position: relative;
}

.eval-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    position: absolute;
}

.eval-circle.common {
    border: 2px solid #333;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.eval-circle.performance {
    border: 2px solid #333;
    bottom: 20px;
    left: 50%;
    transform: translateX(-85%);
    z-index: 2;
}

.eval-circle.multi {
    border: 2px solid #ffc0cb;
    color: #ffc0cb;
    bottom: 20px;
    left: 50%;
    transform: translateX(-15%);
    z-index: 3;
}

/* Responsive Career */
@media (max-width: 768px) {
    .career-chart {
        flex-direction: column;
        gap: 30px;
    }

    .career-start-col {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .career-box-start {
        writing-mode: horizontal-tb;
        height: auto;
        min-height: auto;
        padding: 15px;
        flex: 1;
    }

    .career-option-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .career-arrow {
        transform: rotate(90deg);
        margin-left: 20px;
        width: 30px;
    }
}

/* Department Page Styles */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dept-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.dept-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.dept-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dept-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.dept-content p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

.area-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #fff;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.area-btn:hover {
    background: #333;
    color: #fff;
}

.career-link-card {
    background: #e0e0e0;
    /* Distinct background for career link */
    border: none;
}

/* Responsive adjustments for Department */
@media (max-width: 768px) {
    .dept-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Area Page Styles */
.office-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customer-voice {
    background: #fff;
}

/* Atmosphere Charts */
.office-atmosphere {
    text-align: center;
}

/* Responsive adjustments for Area Page */
@media (max-width: 768px) {
    .office-slider {
        height: 300px;
    }

    .access-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .customer-voice>div {
        flex-direction: column;
        align-items: center;
    }

    .customer-voice>div>div {
        width: 100%;
    }
}

/* Office Atmosphere Layout */
.atmosphere-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-info-container {
    padding-top: 60px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-info-item {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.staff-bg-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    color: #f2f2f2;
    z-index: 0;
    transform: translate(20%, 20%) rotate(-10deg);
    pointer-events: none;
}

.staff-bg-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.staff-info-content {
    position: relative;
    z-index: 1;
}

/* Responsive Atmosphere */
@media (max-width: 1024px) {
    .atmosphere-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .atmosphere-grid {
        grid-template-columns: 1fr;
    }

    .staff-info-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .staff-info-item {
        width: 100%;
        max-width: 350px;
        /* Limit width on mobile for better icon placement */
    }
}