@charset "UTF-8";
body {
    background-color: #efefef;
}
.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 2rem;

    .breadcrumb-inner {
        max-width: 75rem;
        margin: 0 auto;
        position: absolute;
        top: 4rem;
        left: 10rem;
        z-index: 1;

        .breadcrumb-list {
            display: flex;
            flex-wrap: wrap;
            list-style: none;
            gap: 0.5rem;

            li {
                &::after {
                    content: "›";
                    margin: 0 0.5em;
                }

                &:last-child::after {
                    content: "";
                }

                a {
                    color: #555;
                    text-decoration: none;
                }
            }
        }
    }
}
@media (max-width: 768px) {
    .breadcrumb-inner {
        justify-content: center;
    }

    h2.title-sub {
        margin: 0 auto;
    }
}

.site-main {
    position: relative;
    @media (max-width: 768px) {
        margin-top: 7rem;
    }

    .page-inner {
        max-width: 75rem;
        margin: 0 auto;
        padding-top: 13rem;
        @media (max-width: 768px) {
            margin-top: 0;
        }

        .entry-title {
            font-family: var(--font-en);
            font-size: 3rem;
            font-weight: normal;
            position: absolute;
            top: 7.5rem;
            left: 10.5rem;
            margin: 0;
        }

        h2.title-sub {
            position: absolute;
            top: 13rem;
            left: 10.5rem;
            width: max-content;
            color: #647378;
            font-size: 1rem;
            font-style: normal;
            font-weight: 500;
        }

        .entry-content {
            margin: 0 auto;
        }
    }

    .page-content {
        font-family: var(--font-ja);
        color: #505C60;
    }
}


.company-overview {
    padding: 4rem 1rem;
    background: transparent;

    .inner {
        max-width: 75rem;
        margin: 0 auto;
    }

    .overview-title {
        font-family: var(--font-en);
        font-size: 2.5rem;
        font-weight: 400;
        line-height: 1.6;
        letter-spacing: 0.05em;
        margin-bottom: 5.6rem;
        text-align: center;
    }

    .overview-list {
        display: flex;
        flex-direction: column;
        gap: 2.4rem;
        max-width: 50rem;
        margin: 0 auto;

        .overview-item {
            display: flex;
            line-height: 1.8;
            font-family: var(--font-ja);
            font-size: 1rem;


            dt {
                min-width: 10rem;
                font-weight: 500;
                padding: 0 1rem 1.5rem;
                color: #505C60;
                border-bottom: 1px solid #505C60;
            }

            dd {
                margin: 0;
                flex: 1;
                padding: 0 2rem 1.5rem;
                color: #505C60;
                border-bottom: 1px solid #F0F0F0;
            }
        }
    }

    @media (max-width: 768px) {
        .overview-item {
            flex-direction: column;
            gap: 0.5rem;

            dt {
                min-width: auto;
            }
        }
    }
}

.company-map {
    padding: 6rem 1rem;
    text-align: center;

    .map-embed {
        width: 100%;
        max-width: 1000px;
        height: 400px;
        margin: 0 auto;
        background-color: #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 1.25rem;
        font-family: var(--font-en);
    }
}

.company-mvv {
    padding: 8rem 1rem;
    background: transparent;

    .mvv-inner {
        max-width: 1180px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 4rem;
        text-align: center;
    }

    .mvv-block {
        h3 {
            font-family: var(--font-en);
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: #505C60;
        }

        p {
            font-family: var(--font-ja);
            font-size: 1rem;
            line-height: 2;
            color: #505C60;
            margin-bottom: 1rem;
        }

        small {
            font-family: var(--font-en);
            font-size: 0.875rem;
            color: #888;
            line-height: 1.6;
        }
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.75rem;

        .breadcrumb-inner {
            position: static;
            padding: 0 1rem;
            text-align: center;
            margin: 0 auto;
        }
    }

    .site-main {
        .page-inner {
            padding: 0 1rem;

            .breadcrumb {
                position: static;
                margin-top: 4rem; /* Adjust this value as needed */
            }

            .entry-title {
                position: static;
                font-size: 2rem;
                text-align: center;
                margin-top: 2rem;
                left: 0;
                top: 0;
            }

            h2.title-sub {
                position: static;
                text-align: center;
                margin-top: 1rem;
            }
        }

        .page-content {
            padding: 1rem;
        }
    }

    .company-overview {
        padding: 6rem 1rem;

        .overview-title {
            font-size: 1.5rem;
            margin-bottom: 3rem;
        }

        .overview-list {
            .overview-item {
                flex-direction: column;

                dt {
                    min-width: auto;
                }

                dd {
                    border-bottom: none;
                    padding: 0;
                }
            }
        }
    }

    .company-map {
        padding: 4rem 1rem;

        .map-embed {
            height: 250px;
        }
    }

    .company-mvv {
        padding: 4rem 1rem;

        .mvv-inner {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .mvv-block {
            h3 {
                font-size: 1.25rem;
            }

            p {
                font-size: 0.95rem;
            }

            small {
                font-size: 0.75rem;
            }
        }
    }
}

.company-access {
    padding: 8rem 0;

    .inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        text-align: center;
    }

    .access-title {
        font-family: var(--font-en);
        font-size: 2rem;
        color: #505C60;
        margin-bottom: 4rem;
    }
}

.access-map {
    width: 67.5rem;
    max-width: 100%;
    margin: 0 auto;
    flex-shrink: 0;

    iframe {
        width: 100%;
        height: 420px;
        border: none;
        filter: grayscale(100%);
    }

    @media (max-width: 768px) {
        width: 100%;

        iframe {
            aspect-ratio: 16 / 9;
            height: auto;
        }
    }
}

.contact-form {
    max-width: 40rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    font-family: var(--font-ja);
    color: #505C60;

    .form-group {
        margin-bottom: 2.5rem;

        label {
            display: inline-block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            font-size: 1rem;

            .required {
                display: inline-block;
                font-size: 0.75rem;
                color: #505C60;
                background: #f5f5f5;
                border: 1px solid #ddd;
                padding: 0.25rem 0.75rem;
                margin-left: 0.5rem;
                font-family: var(--font-ja);
            }
        }

        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid #999;
            background: #f5f5f5;
            font-size: 1rem;
            font-family: var(--font-ja);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 10rem;
        }
    }

    .form-group.consent {
        text-align: center;

        label {
            font-size: 0.875rem;
            font-weight: normal;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        input[type="checkbox"] {
            transform: scale(1.1);
        }
    }

    .form-submit {
        text-align: center;

        input[type="submit"] {
            border: 1px solid #505C60;
            background: transparent;
            font-size: 1rem;
            font-family: var(--font-en);
            padding: 0.75rem 3rem;
            cursor: pointer;
            transition: all 0.3s ease;

            &:hover {
                background: #505C60;
                color: #fff;
            }
        }
    }

    @media (max-width: 768px) {
        padding: 3rem 1rem;

        .form-group {
            margin-bottom: 2rem;

            label {
                font-size: 0.95rem;
            }

            .form-control {
                font-size: 0.95rem;
            }
        }

        .form-submit input[type="submit"] {
            width: 100%;
        }
    }
}

.entry-thanks {
    text-align: center;
    padding: 8rem 1rem;

    .thanks-title {
        font-family: var(--font-en);
        font-size: 2.25rem;
        font-weight: 400;
        line-height: 1.6;
        margin-bottom: 2rem;
        color: #505C60;
    }

    .thanks-lead {
        font-family: var(--font-ja);
        font-size: 1rem;
        line-height: 2;
        color: #505C60;
        margin-bottom: 0.5rem;
    }

    .thanks-note {
        font-family: var(--font-ja);
        font-size: 0.95rem;
        color: #505C60;
        line-height: 2;
        margin-bottom: 3rem;
    }

    .thanks-button {
        text-align: center;

        .btn {
            display: inline-block;
            font-family: var(--font-ja);
            font-size: 0.95rem;
            padding: 1rem 3rem;
            color: #505C60;
            border: 1px solid #505C60;
            text-decoration: none;
            transition: all 0.3s ease;
            max-width: 15rem;
            max-height: 3.5rem;
            width: 100%;
            box-sizing: border-box;

            &:hover {
                background: #505C60;
                color: #fff;
            }
        }
    }

    @media (max-width: 768px) {
        .thanks-button {
            .btn {
                font-size: 0.85rem;
                padding: 0.75rem 2rem;
            }
        }
    }
}

<header class="entry-header">
    <?php
        $subtitle = get_field('page_subtitle');

        if ( is_singular() ) :
            echo '<h1 class="entry-title">' . get_the_title() . '</h1>';
            if ( $subtitle ) {
                echo '<h2 class="title-sub">' . esc_html($subtitle) . '</h2>';
            }
        else :
            echo '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . get_the_title() . '</a></h2>';
            if ( $subtitle ) {
                echo '<h3 class="title-sub">' . esc_html($subtitle) . '</h3>';
            }
        endif;

        if ( 'post' === get_post_type() ) :
    ?>
</header>