* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.hamburger {
    width: 30px;
    height: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    background-size: cover;
    background-position: center;
    animation: none;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hero::before {
    background-image: url('../img/bg01.jpg');
}

.hero::after {
    background-image: url('../img/bg02.jpg');
    transform: translateX(100%);
}

.hero.slide-change::before {
    transform: translateX(-100%);
}

.hero.slide-change::after {
    transform: translateX(0);
}

.hero-catch {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    padding: 30px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 100;
}

.writing-animation {
    position: relative;
}

.hero-catch-img {
    max-width: 100%;
    height: auto;
    mask: linear-gradient(90deg, #000 50%, transparent 50%);
    mask-size: 200% 100%;
    animation: revealText 2s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes revealText {
    from {
        mask-position: 100% 0;
    }
    to {
        mask-position: 0 0;
    }
}

.hero-catch-img.not-animated {
    mask-position: 100% 0;
    animation: none;
}

.hero-catch-img:not(.not-animated) {
    animation: revealText 2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Grid Section */
.grid-section {
    margin-top: -150px;
    padding: 30px 10%;
    position: relative;
    z-index: 2;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-item-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.grid-item {
    aspect-ratio: 2/1;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: white;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    box-shadow: 0px 0px 0px rgba(171, 21, 86, 1);
}

.grid-item:hover {
    transition: all 0.4s ease;
    transform: translateY(-5px);
    box-shadow: 0px 5px 0px rgba(171, 21, 86, 1);
}

.grid-item-header {
    height: 35%;
    background: #AB1556;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 6px;
    text-align: center;
    font-size: 0.7em;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid #AB1556;
    transition: color 0.4s ease;
}

.grid-item-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: left 0.4s ease;
    z-index: -1;
    transform: none;
}

.grid-item:hover .grid-item-header {
    color: #2e2e2e;
}

.grid-item:hover .grid-item-header::before {
    left: 0;
}

.grid-item-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.grid-item-content img {
    width: 90%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}


.grid-item-content .company-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

.grid-item:hover .company-logo {
    transition: transform 0.3s ease;
}

/* Numbers Section */
.numbers-section {
    padding: 50px 5%;
    border-top: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
}

.numbers-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.numbers-subtitle {
    text-align: center;
    font-weight: normal;
    margin-bottom: 80px;
    font-size: 1.3em;
}

.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    min-height: 500px;
    max-width: 1000px;
    margin: 0 auto;
}

.number-item {
    padding: 25px 15px;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: absolute;
    width: 200px;
    cursor: pointer;
    transform-origin: center center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Initial positions for each item */
.number-item.sales {
    top: 0;
    left: 2%;
}

.number-item.operating-profit {
    top: 60px;
    left: 35%;
}

.number-item.employees {
    top: 30px;
    right: 2%;
}

.number-item.male-ratio {
    top: 180px;
    left: 15%;
}

.number-item.childcare {
    top: 150px;
    right: 15%;
}

.number-item.female-ratio {
    top: 250px;
    left: 35%;
}

/* Hover effects */
.number-item:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.number-item.shrink {
    transform: scale(0.8);
    opacity: 0.7;
}

.number-item h3 {
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #333;
}

.number-item .number {
    font-size: 2.8em;
    font-weight: bold;
    color: #000;
    line-height: 1.2;
}

/* Circle Progress - Fixed calculations */
.circle-progress {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 15px solid #f0f0f0;
    box-sizing: border-box;
}

.circle-progress::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 15px solid;
    border-color: transparent;
    box-sizing: border-box;
    transition: transform 1s ease;
}

.circle-progress[data-progress="87.5"]::after {
    border-color: #4CAF50;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transform: rotate(157.5deg); /* 87.5% = (87.5/100 * 180) + 180 degrees */
}

.circle-progress[data-progress="95.8"]::after {
    border-color: #E91E63;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transform: rotate(172.44deg); /* 95.8% = (95.8/100 * 180) + 180 degrees */
}

.circle-progress[data-progress="53.5"]::after {
    border-color: #FFC107;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transform: rotate(96.3deg); /* 53.5% = (53.5/100 * 180) + 180 degrees */
}

.progress-number {
    font-size: 2em;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .numbers-section {
        padding: 40px 15px;
    }

    .numbers-title {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    .numbers-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .numbers-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        position: static;
        min-height: auto;
    }

    .number-item {
        position: static;
        width: 100%;
        padding: 15px;
        margin: 0;
        transform: none !important;
    }

    .circle-progress {
        width: 120px;
        height: 120px;
    }

    .circle-progress::before,
    .circle-progress::after {
        border-width: 12px;
    }

    .progress-number {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .number-item h3 {
        font-size: 0.85em;
    }

    .number-item .number {
        font-size: 1.8em;
    }
}

/* Initiatives Section */
.initiatives-section {
    padding: 50px 5%;
    border-top: 1px solid #ddd;
}

.initiatives-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2em;
}

.initiatives-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 5%;
}

.initiative-item {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 50px 5%;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        padding: 0 15px;
        height: 60px;  /* Smaller nav height */
    }

    .logo img {
        height: 30px;  /* Smaller logo */
    }

    .nav-menu {
        display: none;  /* Hide regular menu on mobile */
    }

    /* Hero Section */
    .hero {
        height: 60vh;
    }

    .hero-catch {
        right: 15px;
        left: 15px;
        padding: 15px;
        top: 45%;
    }

    .hero-catch-img {
        max-width: 100%;
    }

    /* Grid Section */
    .grid-section {
        margin-top: -50px;
        padding: 20px 15px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .grid-item {
        max-width: none;
    }

    .grid-item-header {
        font-size: 0.8em;
        padding: 8px;
        height: 40%;
    }

    /* Numbers Section */
    .numbers-section {
        padding: 40px 15px;
    }

    .numbers-title {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    .numbers-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .numbers-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        position: static;
        min-height: auto;
    }

    .number-item {
        position: static;
        width: 100%;
        padding: 15px;
        margin: 0;
        transform: none !important;
    }

    .circle-progress {
        width: 120px;
        height: 120px;
    }

    .circle-progress::before,
    .circle-progress::after {
        border-width: 12px;
    }

    .progress-number {
        font-size: 1.6em;
    }

    /* Modal Styles - Mobile */
    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        transform: translateY(100%);
    }

    .modal.active .modal-content {
        transform: translateY(0);
    }

    .modal-header {
        padding: 15px 15px 15px 50px;  /* Adjusted padding to account for close button */
        height: 50px;  /* Fixed height for header */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-header h2 {
        font-size: 0.95em;
        font-weight: normal;
        letter-spacing: 0.05em;
    }

    .modal-close {
        width: 30px;  /* Even smaller close button */
        height: 30px;
        font-size: 22px;

    }

    .modal-body {
        padding: 20px 20px 30px;  /* Adjusted padding */
        height: calc(100% - 50px);  /* Account for header height */
        overflow-y: auto;
    }

    .company-info {
        margin: 10px 0 25px;  /* Adjusted margins */
    }

    .company-info .company-logo {
        width: 140px;  /* Smaller logo */
        margin-bottom: 12px;
    }

    .company-info h3 {
        font-size: 0.95em;
        margin: 8px 0;
        color: #444;
    }

    .company-description {
        text-align: left;
        font-size: 0.85em;
        line-height: 1.7;
        margin-bottom: 25px;
        padding: 0 5px;  /* Add slight padding to description */
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding: 0 5px;  /* Match description padding */
    }

    .modal-button {
        width: 100%;
        padding: 13px 0;
        font-size: 0.9em;
    }

    /* Initiatives Section */
    .initiatives-section {
        padding: 40px 15px;
    }

    .initiatives-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .initiatives-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .initiative-item {
        padding: 15px;
    }

    .initiative-item h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .initiative-item p {
        font-size: 0.95em;
    }

    /* Footer */
    footer {
        padding: 30px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-content h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .footer-content ul li {
        font-size: 0.9em;
        margin: 8px 0;
    }
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .grid-item-header {
        font-size: 0.7em;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .number-item h3 {
        font-size: 0.85em;
    }

    .number-item .number {
        font-size: 1.8em;
    }

    .modal-body {
        padding: 15px;
    }

    .company-description {
        font-size: 0.9em;
        line-height: 1.7;
    }

    .modal-header h2 {
        font-size: 1em;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .company-info .company-logo {
        width: 140px;
    }

    .company-description {
        font-size: 0.85em;
        line-height: 1.5;
    }

    .modal-button {
        padding: 12px 0;
        font-size: 0.9em;
    }

    .modal-header {
        padding: 15px 15px 15px 45px;  /* Slightly reduced padding */
    }

    .modal-header h2 {
        font-size: 0.9em;
    }

    .modal-body {
        padding: 15px 15px 25px;
    }

    .company-info .company-logo {
        width: 130px;
    }

    .company-description {
        font-size: 0.8em;
        line-height: 1.6;
    }

    .modal-button {
        padding: 12px 0;
        font-size: 0.85em;
    }
}

/* Add hamburger menu functionality */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* Modal base styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-right: 17px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.modal.active .modal-content {
    transform: translateX(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    width: 50px;
    height: 50px;
    border: none;
    background: white;
    color: #AB1556;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.4s ease;
}

.modal-close:hover {
    background: #AB1556;
    color: white;
    border-color: #AB1556;
}

.modal-header {
    background: #AB1556;
    color: white;
    padding: 20px 60px;
    text-align: center;
    font-size: 1.5em;
}

.modal-body {
    padding: 50px;
}

.company-info {
    text-align: center;
    margin-bottom: 40px;
}

.company-info .company-logo {
    width: 250px;
    margin-bottom: 20px;
}

.company-info h3 {
    font-size: 1.4em;
    color: #333;
    font-weight: normal;
}

.company-description {
    text-align: center;
    line-height: 2;
    margin-bottom: 40px;
    color: #333;
}

.company-description p {
    margin-bottom: 0.5em;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.modal-button {
    padding: 20px 0;
    width: 280px;
    background: white;
    color: #AB1556;
    text-decoration: none;
    font-size: 1.1em;
    text-align: center;
    border: 2px solid #AB1556;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modal-button span {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.modal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #AB1556;
    transition: all 0.4s ease;
    z-index: 1;
}

.modal-button:hover span {
    color: white;
}

.modal-button:hover::before {
    left: 0;
}

@media (max-width: 768px) {
    .modal-content {
        transform: translateY(100%);
    }

    .modal.active .modal-content {
        transform: translateY(0);
    }

    .modal-body {
        padding: 20px;
        height: calc(100% - 60px);
        overflow-y: auto;
    }

    .company-info .company-logo {
        width: 200px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .modal-button {
        width: 100%;
        padding: 15px 0;
    }
}

html {
    overflow-y: scroll;
}

body {
    width: 100vw;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
} 