/* ==========================================================================
   Company Page Styles
   ========================================================================== */

/* Company Visual Section */
.company-visual {
    margin-bottom: 80px;
    overflow: hidden;
}

.company-visual__image {
    width: calc(100vw - 10vw);
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    margin-left: 10vw;
    margin-right: 0;
    
    /* 左上と左下を角丸に */
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.company-visual__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.company-visual__content {
    text-align: center;
}

.company-visual__name {
    font-size: 2rem;
    font-weight: 900;
    color: #333;
}

/* Philosophy Section */
.company-philosophy {
    margin-bottom: 80px;
}

.company-philosophy__header {
    text-align: center;
    margin-bottom: 50px;
}

.company-philosophy__title {
    font-family: var(--f-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.company-philosophy__subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.company-philosophy__divider {
    width: 60px;
    height: 4px;
    background-color: var(--c-accent-red);
    margin: 0 auto 40px;
}

.company-philosophy__text {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
}

.company-philosophy__text-line {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 2;
    margin: 0;
    color: #333;
}

.company-philosophy__text-line ruby {
    ruby-align: start;
}

.company-philosophy__text-line rt {
    font-size: 0.6rem;
    font-weight: 400;
}

.company-philosophy__image-wrapper {
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    width: calc(100vw - 10vw);
    overflow: hidden;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.company-philosophy__image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.company-philosophy__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Greetings Section */
.company-greetings {
    margin-bottom: 80px;
    padding: 60px 0;
    background-color: #F9F9F9;
}

.company-greetings__header {
    margin-bottom: 50px;
}

.company-greetings__title {
    font-family: var(--f-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.company-greetings__subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.company-greetings__subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--c-accent-red);
}

.company-greetings__divider {
    display: none;
}

.company-greetings__content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.company-greetings__text-wrapper {
    flex: 1;
}

.company-greetings__section-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.company-greetings__text {
    font-size: 0.95rem;
    line-height: 2;
    color: #333;
}

.company-greetings__text p {
    margin-bottom: 25px;
}

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

.company-greetings__photo {
    flex: 0 0 350px;
    text-align: center;
}

.company-greetings__img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.company-greetings__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

/* Overview Section */
.company-overview {
    margin-bottom: 80px;
}

.company-overview__header {
    margin-bottom: 50px;
}

.company-overview__title {
    font-family: var(--f-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.company-overview__subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.company-overview__subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--c-accent-red);
}

.company-overview__content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.company-overview__info {
    flex: 1;
}

.company-overview__list {
    margin: 0;
    padding: 0;
}

.company-overview__item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: baseline;
}

.company-overview__item:first-child {
    border-top: 1px solid #e0e0e0;
}

.company-overview__term {
    flex: 0 0 150px;
    font-weight: 700;
    color: #333;
}

.company-overview__desc {
    flex: 1;
    color: #666;
}

.company-overview__location {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.company-overview__location-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.company-overview__location-item {
    flex: 1;
    padding-bottom: 0;
    border-bottom: none;
}

.company-overview__location-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.company-overview__location-row .company-overview__map {
    flex: 1;
    text-align: center;
}

.company-overview__location-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.company-overview__location-detail {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin: 0 0 5px 0;
}

.company-overview__business-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-overview__business-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    padding-left: 0;
}


.company-overview__map-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.company-overview__map-iframe {
    width: 100%;
    height: 240px;
    border: 0;
    border-radius: 10px;
    margin-bottom: 15px;
}

.company-overview__map-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

/* Health Certification Section */
.company-health {
    margin-bottom: 0;
    padding: 60px 0;
    background-color: #f8f8f8;
}

.company-health__header {
    margin-bottom: 40px;
}

.company-health__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background-color: #1C1C1C;
    padding: 15px 30px;
    margin: 0;
    text-align: left;
}

.company-health__content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.company-health__text {
    flex: 1;
}

.company-health__paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px 0;
}

.company-health__paragraph:last-child {
    margin-bottom: 0;
}

.company-health__image {
    flex: 1;
    max-width: 300px;
}

.company-health__certificate {
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* SDGs Section */
.company-sdgs {
    margin-top: 0;
    margin-bottom: 80px;
    padding: 60px 0;
    background-color: #f8f8f8;
}

.company-sdgs__header {
    margin-bottom: 50px;
}

.company-sdgs__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background-color: #1C1C1C;
    padding: 15px 30px;
    margin: 0 0 30px 0;
    text-align: left;
}

.company-sdgs__intro {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
    margin: 0;
}

.company-sdgs__items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.company-sdgs__item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.company-sdgs__icon {
    flex: 0 0 120px;
}

.company-sdgs__icon-img {
    width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.company-sdgs__content {
    flex: 1;
}

.company-sdgs__item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.company-sdgs__item-goal {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.8;
    color: #333;
    margin: 0 0 15px 0;
}

.company-sdgs__item-initiatives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-sdgs__item-initiatives li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    padding-left: 0;
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.company-sdgs__item-initiatives li::before {
    content: '・';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    color: #e60012;
}

.company-sdgs__item-initiatives li:last-child {
    margin-bottom: 0;
}

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

.company-history__header {
    text-align: left;
    margin-bottom: 50px;
}

.company-history__title {
    font-family: var(--f-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.company-history__subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.company-history__subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--c-accent-red);
}

.company-history__timeline {
    max-width: 1200px;
    margin: 0 auto;
}

.company-history__item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    position: relative;
}

.company-history__item::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 40px;
    bottom: -80px;
    width: 2px;
    background-color: #e0e0e0;
    z-index: 1;
    transform: translateX(-50%);
}

.company-history__item:last-child {
    margin-bottom: 0;
}

.company-history__item:last-child::before {
    display: none;
}

.company-history__year {
    flex: 0 0 120px;
    font-family: var(--f-en);
    font-size: 2rem;
    font-weight: 900;
    color: #333;
    text-align: center;
    padding-top: 0;
    position: relative;
    padding-left: 30px;
    align-self: flex-start;
}

.company-history__year::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #1947AA;
    border-radius: 50%;
    z-index: 2;
}

.company-history__content {
    flex: 1;
    padding-top: 15px;
    min-width: 0;
}

.company-history__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    margin-top: 0;
}

.company-history__images {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.company-history__img {
    flex: 1;
    min-width: 0;
    aspect-ratio: 280 / 180;
    object-fit: cover;
    border-radius: 10px;
    height: auto;
}

/* Contact Section */
.company-contact {
    margin-bottom: 80px;
    padding: 60px 0;
    background-color: #f9f9f9;
}

.company-contact__header {
    text-align: center;
    margin-bottom: 50px;
}

.company-contact__title {
    font-family: var(--f-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: #333;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.company-contact__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--c-accent-red);
}

.company-contact__text {
    font-size: 1rem;
    color: #666;
}

.company-contact__buttons {
    max-width: 800px;
    margin: 0 auto;
}

.company-contact__line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 20px;
    background-color: #06c755;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}

.company-contact__line-btn:hover {
    opacity: 0.9;
}

.company-contact__line-btn i {
    font-size: 1.5rem;
}

.company-contact__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.company-contact__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.company-contact__link:hover {
    border-color: var(--c-primary);
    background-color: #f5f5f5;
}

.company-contact__link i {
    font-size: 2.5rem;
    color: var(--c-primary);
}

.company-contact__link-text {
    text-align: center;
}

.company-contact__link-tel {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.company-contact__link-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .company-visual {
        margin-bottom: 60px;
    }

    .company-visual__image {
        height: 250px;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
        width: calc(100vw - 40px);
        margin-left: 20px;
    }

    .company-visual__name {
        font-size: 1.5rem;
    }

    .company-philosophy {
        margin-bottom: 60px;
    }

    .company-philosophy__title {
        font-size: 2rem;
    }

    .company-philosophy__subtitle {
        font-size: 0.9rem;
    }

    .company-philosophy__divider {
        width: 50px;
        margin-bottom: 30px;
    }

    .company-philosophy__text-line {
        font-size: 1.1rem;
    }

    .company-philosophy__image-wrapper {
        width: calc(100vw - 40px);
        margin-left: calc(-50vw + 50% + 20px);
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .company-philosophy__image {
        height: 250px;
    }

    .company-philosophy__text {
        font-size: 1rem;
    }

    .company-greetings {
        margin-bottom: 60px;
        padding: 40px 0;
    }

    .company-greetings__title {
        font-size: 2rem;
    }

    .company-greetings__section-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .company-greetings__content {
        flex-direction: column;
        gap: 40px;
    }

    .company-greetings__text-wrapper {
        order: 2;
    }

    .company-greetings__photo {
        flex: 1;
        order: 1;
        max-width: 300px;
        margin: 0 auto;
    }

    .company-greetings__text {
        font-size: 0.9rem;
    }

    .company-overview {
        margin-bottom: 60px;
    }

    .company-overview__title {
        font-size: 2rem;
    }

    .company-overview__content {
        flex-direction: column;
        gap: 40px;
    }

    .company-overview__item {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .company-overview__term {
        flex: 1;
        font-size: 0.9rem;
        padding-top: 0;
    }

    .company-overview__desc {
        font-size: 0.9rem;
    }

    .company-overview__location-row {
        flex-direction: column;
        gap: 20px;
    }

    .company-overview__location-item {
        padding-bottom: 0;
        border-bottom: none;
    }

    .company-overview__location-row .company-overview__map {
        order: 2;
    }

    .company-overview__location-title {
        font-size: 0.95rem;
    }

    .company-overview__location-detail {
        font-size: 0.85rem;
    }

    .company-overview__business-list li {
        font-size: 0.85rem;
    }

    .company-health {
        margin-bottom: 0;
        padding: 40px 0;
    }

    .company-health__title {
        font-size: 1.2rem;
        padding: 12px 20px;
    }

    .company-health__content {
        flex-direction: column;
        gap: 30px;
    }

    .company-health__image {
        max-width: 100%;
    }

    .company-health__paragraph {
        font-size: 0.9rem;
    }

    .company-sdgs {
        margin-top: 0;
        margin-bottom: 60px;
        padding: 40px 0;
    }

    .company-sdgs__title {
        font-size: 1.2rem;
        padding: 12px 20px;
        margin-bottom: 20px;
    }

    .company-sdgs__intro {
        font-size: 0.9rem;
    }

    .company-sdgs__items {
        gap: 25px;
    }

    .company-sdgs__item {
        flex-direction: column;
        gap: 20px;
    }

    .company-sdgs__icon {
        flex: 0 0 auto;
        max-width: 120px;
    }

    .company-sdgs__icon-img {
        max-width: 120px;
        width: 100%;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .company-sdgs__item-title {
        font-size: 1.1rem;
    }

    .company-sdgs__item-goal {
        font-size: 0.9rem;
    }

    .company-sdgs__item-initiatives li {
        font-size: 0.9rem;
    }

    .company-history {
        margin-bottom: 60px;
    }

    .company-history__title {
        font-size: 2rem;
    }

    .company-history__subtitle {
        font-size: 1rem;
    }

    .company-history__item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        padding-left: 40px;
    }

    .company-history__item::before {
        left: 0px;
        top: 30px;
        bottom: -60px;
        transform: translateX(-50%);
    }

    .company-history__year {
        flex: 1;
        text-align: left;
        padding-top: 0;
        padding-left: 0;
        align-self: flex-start;
    }

    .company-history__year::before {
        left: -40px;
        top: 50%;
        margin-top: 0;
        width: 10px;
        height: 10px;
        transform: translate(-50%, -50%);
    }

    .company-history__content {
        padding-top: 15px;
    }

    .company-history__images {
        flex-direction: column;
    }

    .company-history__img {
        aspect-ratio: 280 / 180;
    }

    .company-contact {
        margin-bottom: 60px;
        padding: 40px 0;
    }

    .company-contact__title {
        font-size: 2rem;
    }

    .company-contact__links {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 961px) {
    .company-visual__image {
        height: 600px;
        width: calc(100vw - 10vw);
        margin-left: 10vw;
        margin-right: 0;
        border-top-left-radius: 100px;
        border-bottom-left-radius: 100px;
    }

    .company-visual__img {
        height: 100%;
    }

    .company-philosophy__image-wrapper {
        width: calc(100vw - 10vw);
        border-top-right-radius: 100px;
        border-bottom-right-radius: 100px;
    }

    .company-philosophy__image {
        height: 600px;
    }
}

