/* ============================================
   COMPANY PAGE STYLES
   ============================================ */

/* Common Container */
.company-page-container {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .company-page-container {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
        overflow: hidden;
    }
}

/* Company Hero Section */
.company-hero {
    margin-top: var(--header-height);
    position: relative;
    background: var(--white);
    padding-top
}

@media (min-width: 769px) {
    .company-hero {
        margin-top: calc(var(--header-height) + var(--border-frame) + 50px);
    }
}

.company-hero-image {
    width: 100%;
    position: relative;
    aspect-ratio: 1310 / 582;
    overflow: hidden;
}

.company-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.company-hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0.85) scaleY(1.15);
    width: 80%;
    max-width: 900px;
    height: auto;
    pointer-events: none;
    overflow: visible;
}

.company-hero-content {
    padding: 60px 0 80px;
    position: relative;
    transform: translate(0, -20%);
}

.company-hero-title {
   margin-bottom: 60px;
    
}

/* font-size は style.css の .subtitle で定義 */
.company-hero-catchphrase {
    margin-bottom: 60px;
    /* font-size: 36px; */
    /* font-weight: bold; */
    /* line-height: 1.6; */
    color: var(--white);
    text-shadow:
        -1px -1px 0 var(--navy),
        1px -1px 0 var(--navy),
        -1px 1px 0 var(--navy),
        1px 1px 0 var(--navy);
        font-size: 40px;
}

.company-hero-description {
    font-size: 14px;
    line-height: 2;
    color: var(--gray-dark);
    max-width: 700px;
}

/* Company Feature Section */
.company-feature-section {
    background: var(--white);
    padding: 0;
}

.company-feature-item {
    display: flex;
    align-items: stretch;
    position: relative;
    margin-bottom: 200px;
}
.company-feature-item:nth-child(odd) {
    
    margin-bottom: 300px;
}

.company-feature-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.company-feature-number {
    width: 140px;
    height: 160px;
    z-index: 1;
    
font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    transform: translate(30px, 50%);
}

.company-feature-item:nth-child(odd) .company-feature-number {
    left: 5%;
}

.company-feature-item:nth-child(even) .company-feature-number {
    right: 5%;
}

.company-feature-image {
    width: 55%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.company-feature-image img {
    width: 100%;
    aspect-ratio: 720 / 480;
    object-fit: cover;
}

.company-feature-content {
    width: 55%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-top: 0px;
}
.company-feature-content-inner {
    padding: 80px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

/* 奇数番目: テキストが左、画像が右 → テキストを右にはみ出させる */
.company-feature-item:nth-child(odd) .company-feature-content {
    margin-right: -10%;
}

/* 偶数番目: 画像が左、テキストが右 → テキストを左にはみ出させる */
.company-feature-item:nth-child(even) .company-feature-content {
    margin-left: -10%;
    margin-top: -250px;
}

.company-feature-item:nth-child(odd) .company-feature-image {
    align-self: flex-start;
}

.company-feature-item:nth-child(even) .company-feature-image {
    align-self: flex-end;
}

.company-feature-title {
    margin-bottom: 20px;
    /* font-size: 24px;
    font-weight: bold; */
    color: var(--navy);
    /* line-height: 1.4; */
}

.company-feature-description {
    /* font-size: 14px;
    line-height: 2; */
    color: var(--gray-dark);
}

.company-feature-description p {
    margin-bottom: 20px;
}

.company-feature-description p:last-child {
    margin-bottom: 0;
}

/* Business Data Section */
.business-data-section {
    background: #f7f8f8;
    color: var(--navy);
    padding: 100px 0 45px;
}

.business-data-container {
    /* Uses .company-page-container */
}

/* font-size は style.css の .Section-title で定義 */
.business-hero-title {
    margin-bottom: 60px;
}

.business-data-intro {
    /* font-size: 14px;
    line-height: 1.8; */
    margin-bottom: 60px;
    /* max-width: 800px; */
}

.business-data-category {
    margin-bottom: 40px;
}

.business-data-category-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 10px;
}

.business-data-stats {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.business-data-stat-main {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    font-size: 180px;
    /* font-weight: bold; */
    color: var(--navy);
    line-height: 1;
    transform: scaleX(0.85) scaleY(1.1);
    transform-origin: left bottom;
}

.business-data-stat-main .percent {
    font-size: 100px;
}

.business-data-stat-sub {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.business-data-stat-item {
    display: flex;
    flex-direction: column;
}

.business-data-stat-item .stat-label {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: bold;
}

.business-data-stat-item .stat-value {
        font-size: 55px;
        font-weight: bold;
        color: var(--navy);
        line-height: 1;
        transform: scaleX(0.85) scaleY(1.3);
        transform-origin: left bottom;
}

.business-data-stat-item  .count-up {

        font-size: 85px;
        font-weight: bold;
}
.business-data-note {
    font-size: 12px;
    margin-top: 20px;
    color: var(--navy);
}

/* 30th Anniversary Section */
.anniversary-section {
    background: #f7f8f8;
    color: var(--gray-dark);
    padding: 0px 0 100px;
}

.anniversary-container {
    /* Uses .company-page-container */
}

.anniversary-logo {
    margin-bottom: 60px;
}

.anniversary-logo img {
    /* height: 80px;
    width: auto; */
    width: 40%;
}

.anniversary-message {
    margin-bottom: 60px;
    /* font-size: 36px;
    font-weight: bold;
    line-height: 1.6; */
    color: #f7f8f8;
    text-shadow:
        -1px -1px 0 var(--navy),
        1px -1px 0 var(--navy),
        -1px 1px 0 var(--navy),
        1px 1px 0 var(--navy);
    font-size: 40px;
}

.anniversary-description {
    /* font-size: 14px;
    line-height: 2; */
    margin-bottom: 60px;
    max-width: 800px;
    color: var(--gray-dark);
}

.anniversary-buttons {
    display: flex;
    gap: 20px;
}

.anniversary-button {
    /* display: flex;
    align-items: center; */
    /* justify-content: space-between; */
    padding: 20px 40px;
    background: var(--navy);
    color: var(--white);
    /* flex: 1; */
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-block;
    vertical-align: middle;
    width: 48%;
}

.anniversary-button:hover {
    opacity: 0.8;
}

.anniversary-button-text {
    font-size: 38px;
    
font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    letter-spacing: 0em;
    transform: scaleX(0.8) scaleY(1.3);
    
    
    display: inline-block;
    vertical-align: middle;
    
    width: calc(100% - 8px - 70px);

}
.anniversary-button-link-container {
    display: inline-block;
    
    display: inline-block;
    vertical-align: middle;
}
.anniversary-button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 1px solid var(--white);
    border-radius: 50%;
    font-size: 10px;
    text-align: center;
    line-height: 1.4;
    background: var(--navy-original);
}

/* About Us Section */
.about-us-section {
    padding: 0;
    color: var(--white);
}

.about-us-header {
    background: var(--white);
    padding: 100px 0 0;
}

.about-us-header-inner {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* font-size は style.css の .Section-title で定義 */
.about-us-title {
    margin-bottom: 60px;
}

.about-us-content-wrapper {
    background: var(--navy);
}

.about-us-content {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 0 100px;
}

.about-us-image {
    margin-bottom: 60px;
    max-width: 500px;
    background: #d0d0d0;
}

.about-us-image img {
    width: 100%;
    height: auto;
}

/* History Section */
.history-section {
    margin-bottom: 80px;
}

/* font-size は style.css の .SubSection-title で定義 */
.history-title-text {
    /* font-size: 42px; */
    font-weight: bold;
    color: var(--white);
    transform-origin: left center;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.history-title-text::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('../image/common/white_pen_icon.svg') no-repeat center center;
    background-size: contain;
    transform: translateY(5px) scaleY(0.8);
}

.history-list {
    padding-left: 40px;
}

.history-item {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.history-year {
    /* font-weight: bold; */
    color: var(--white);
    min-width: 60px;
}

.history-event {
    color: var(--white);
}

/* Company Info Section */
.company-info-section {
    margin-bottom: 80px;
}

/* font-size は style.css の .SubSection-title で定義 */
.company-info-title-text {
    /* font-size: 42px; */
    font-weight: bold;
    color: var(--white);
    transform-origin: left center;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.company-info-title-text::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('../image/common/white_pen_icon.svg') no-repeat center center;
    background-size: contain;
    transform: translateY(5px) scaleY(0.8);
}

.company-info-table {
    padding-left: 40px;
}

.company-info-row {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.company-info-label {
    /* font-weight: bold; */
    color: var(--white);
    min-width: 100px;
}

.company-info-value {
    color: var(--white);
}

/* Access Section */
.access-section {
    margin-bottom: 0;
}

/* font-size は style.css の .SubSection-title で定義 */
.access-title-text {
    /* font-size: 42px; */
    /* font-weight: bold; */
    
font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    color: var(--white);
    transform-origin: left center;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.access-title-text::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('../image/common/white_pen_icon.svg') no-repeat center center;
    background-size: contain;
}

.access-map {
    padding-left: 40px;
}

.access-map-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 14px;
}

.access-map iframe {
    width: 100%;
    aspect-ratio: 1000 / 400;
    border: 0;
    filter: grayscale(100%);
}

/* ============================================
   COMPANY PAGE ANIMATIONS
   ============================================ */

/* Company Feature - Content Fade In */
.company-feature-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    width: 55%;
}

.company-feature-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Company Feature - Image Slide In */
.company-feature-image {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    width: 55%;
}

/* 奇数番目(01,03): 画像が右側 → 右からスライドイン */
.company-feature-item:nth-child(odd) .company-feature-image {
    transform: translateX(100px);
}

.company-feature-item:nth-child(odd) .company-feature-image.slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

/* 偶数番目(02,04): 画像が左側 → 左からスライドイン */
.company-feature-item:nth-child(even) .company-feature-image {
    transform: translateX(-100px);
}

.company-feature-item:nth-child(even) .company-feature-image.slide-in-left {
    opacity: 1;
    transform: translateX(0);
}

/* Business Data Section Fade In */
.business-data-section .business-data-category {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.business-data-section.fade-in .business-data-category {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE - Company Page
   ============================================ */
@media (max-width: 768px) {
    .company-hero {
        padding-top:var(--header-height);
    }

    .company-hero-content {
        padding: 40px 0 60px;
    transform: translate(0, 0%);
    }

    .company-hero-title {
        margin-bottom: 30px;
    }

    .company-hero-overlay-text {
        width: 90%;
    }

    /* font-size は style.css の .subtitle で定義 */
    .company-hero-catchphrase {
        font-size: 24px;
    }

    .company-feature-item,
    .company-feature-item:nth-child(odd),
    .company-feature-item:nth-child(even) {
        flex-direction: column-reverse;
        margin-bottom: 0px;
    }

    
    .company-feature-image,
    .company-feature-content {
        width: 100%;
    }

    .company-feature-item:nth-child(odd) .company-feature-content,
    .company-feature-item:nth-child(even) .company-feature-content {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
    }

    .company-feature-content {
        padding: 40px 0.5%;
    }
    .company-feature-content-inner {
        padding:80px 20px 40px;
    }
    .company-feature-number {
        font-size: 80px;
        top: 20px;
    }

    .company-feature-item:nth-child(odd) .company-feature-number,
    .company-feature-item:nth-child(even) .company-feature-number {
        left: 5%;
        right: auto;
    }
.anniversary-logo img {
    width: 80%;
    margin: auto;
}
    .anniversary-message {
        font-size: 22px;
    }

    .business-data-section,
    .anniversary-section {
        padding: 60px 0;
    }
    .business-data-section {
        padding-bottom: 0;
    }

    /* font-size は style.css の .Section-title で定義 */
    .business-hero-title,
    .about-us-title {
        word-break: break-all;
    }
    .business-data-stat-main {
        font-size: 120px;
    }

    .about-us-header {
        padding: 60px 0 0;
    }

    .about-us-header-inner,
    .about-us-content {
        width: 90%;
    }

    .about-us-content {
        padding: 40px 0 60px;
    }

    .business-data-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .business-data-category-title {
        text-align: center;
    }
    .business-data-stat-main {
        transform-origin: center bottom;
    }

    .business-data-stat-sub {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        width: 100%;
    }

    .business-data-stat-item {
        align-items: center;
        text-align: center;
    }

    .business-data-stat-item .stat-value {
        transform-origin: center bottom;
    }

    .anniversary-buttons {
        flex-direction: column;
    }

    .anniversary-button {
        text-align: center;
        width: 100%;
        padding: 20px;
    }

    /* font-size は style.css の .SubSection-title で定義 */
    .company-info-title-text,
    .company-info-title-text,
    .access-title-text {
            /* font-size: 30px; */
    }

    .access-map iframe {
        aspect-ratio: 1000 / 600;
    }

    .anniversary-button-text {
        font-size: 28px;
    }

    .history-item,
    .company-info-row {
        flex-direction: column;
        gap: 5px;
    }

    .history-list,
    .company-info-table,
    .access-map {
        padding-left: 0;
    }
}
