@media (max-width: 576px) {
    .container {
        overflow-x: clip;
    }
}

.philosophy-section{
    padding: 0 0 100px;
}

/*------------------------------------------------------

    OUTSIDE

------------------------------------------------------*/
.outside {
    position: relative;
}

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

.outside .column-outside-left {
    margin-right: -20%;
}

.outside .column-outside-right {
    margin-left: -20%;
}

.outside .column {
    z-index: 1;
}

.outside .column img.wave {
    width: 70px;
    margin: 18px 0 28px;
}

.outside .column h3 {
    color: #00464A;
    font-size: var(--fz-lg);
    font-weight: 500;
    letter-spacing: 4px;
}

.outside .column h4 {
    font-size: var(--fz-lg);
    font-weight: 600;
    margin-bottom: 10px;
}

.outside .column p {
    font-size: var(--role-body);
    font-weight: 400;
    margin-bottom: 30px;
}

.outside span.number {
    position: absolute;
    top: 2%;
    color: #e6e7e8;
    font-size: 120px;
    font-weight: 500;
}

.outside-left .column {
    padding-left: 10%;
    padding-right: 0;
}

.outside-left span.number {
    right: 2%;
}

.outside-right .column {
    padding-left: 5%;
}

.outside-right span.number {
    left: 2%;
}

/*------------------------------------------------------

    INFO

------------------------------------------------------*/
#info .container {
    position: relative;
    border-radius: 0px;
    background: linear-gradient(180deg, #ecf5f6 0%, #ffffff 50%, #ecf5f6 100%);
    padding: 70px 8% 60px;
    overflow: hidden;
}

#info hgroup {
    text-align: center;
}

#info hgroup p {
    font-size: var(--fz-xl);
    font-weight: 500;
    margin: 10px 0;
}

#info hgroup h4 {
    font-size: var(--role-meta);
    margin: 20px 0 10px;
    font-weight: 700;
}

#info hgroup img {
    width: 70px;
}

#info .data {
    margin: 55px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

#info table.data-table {
    width: 50%;
    border-top: 1px solid #00464A;
    border-color: #00464A;
    border-collapse: collapse;
}

#info table.data-table tr {
    border-bottom: 1px solid #00464A;
    border-color: #00464A;
}

#info table.data-table th,
#info table.data-table td {
    font-size: var(--role-body);
    line-height: 1.8;
    padding: 20px 0 20px 45px;
    border-color: #00464A;
}

#info table.data-table th {
    width: 22%;
    color: #00464A;
}

#info table.data-table td {
    width: 78%;
}

#info table.data-table td a {
    color: #00464A;
    display: inline-block;
}

#info table.data-table td a::after {
    right: -15px;
}

/*------------------------------------------------------

    INFO

------------------------------------------------------*/
#info .partner {
    width: 62%;
    margin: 100px auto 0;
}

#info .partner h5 {
    position: relative;
    margin-bottom: 30px;
    padding-left: 18px;
    font-size: var(--fz-lg);
    font-weight: 600;
}

#info .partner h5::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: #00464A;
}

#info .partner ul {
    display: flex;
    justify-content: space-between;
    padding-left: 20px;
}

#info .partner ul li {
    text-align: center;
}

#info .partner ul li p {
    font-size: var(--role-legal);
    margin-top: 10px;
}

/*------------------------------------------------------

    ALTERNATING SECTIONS (VISION / VALUE)

------------------------------------------------------*/

#vision .container,
#value .container {
    max-width: unset;
    width: 100%;
}

#vision .text-column {
    padding-right: 10%;
    padding-left: 0;
}

#value .text-column {
    padding-left: 10%;
    padding-right: 0;
}

.philosophy-bg-text {
    width: 100vw;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 10vw;
    color: rgba(0, 70, 74, 0.06);
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.2;
    margin-top: 0;
    overflow: hidden;
}

.philosophy-bg-text .en {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
}

.alternating-section {
    padding: 0 50px 50px;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}
.alternating-section hgroup {
    text-align: left;
    margin-bottom: 40px;
}

.alternating-section hgroup h3 {
    font-size: var(--role-section);
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 1px;
}

.alternating-section hgroup p {
    font-size: var(--role-body);
    font-weight: 500;
    margin-bottom: 15px;
    color: #333333;
}

.alternating-section hgroup img {
    width: 40px;
}

/* Custom separator with colored squares */
.alternating-section hgroup .separator {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.alternating-section hgroup .separator::before {
    content: '';
    width: 60px;
    height: 2px;
    background-color: #e0e0e0;
    margin-right: 10px;
}

.alternating-section hgroup .separator .square {
    width: 8px;
    height: 8px;
    margin-right: 6px;
}

.alternating-section hgroup .separator .square:nth-child(1) {
    background-color: #00464A;
}

.alternating-section hgroup .separator .square:nth-child(2) {
    background-color: #00A3A6;
}

.alternating-section hgroup .separator .square:nth-child(3) {
    background-color: #999999;
}

.alternating-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.image-column {
    flex: 1;
}

.text-column {
    flex: 1;
}

.section-image {
    width: 100%;
    height: auto;
}

.text-column .section__contents h4 {
    font-size: var(--fz-lg);
    font-weight: 600;
    margin-bottom: 30px;
    padding: 0;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #333333;
}

.text-column .section__contents h4 em {
    letter-spacing: 0;
    display: inline-block;
    background: linear-gradient(90deg, #00464A, #00A3A6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-column .section__contents p {
    font-size: var(--role-body);
    font-weight: 400;
    margin-bottom: 20px;
}

/*------------------------------------------------------

    MESSAGE SECTION

------------------------------------------------------*/
.message-section {
    padding: 100px 0;
}

.message-section .container {
    max-width: unset;
    width: 100%;
}

.message-section hgroup {
    text-align: center;
    margin-bottom: 50px;
}

.message-section hgroup h3 {
    font-size: var(--role-section);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.message-section hgroup img {
    width: 40px;
    margin-top: 10px;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.representative-image {
    width: 100%;
    height: auto;
}

.message-text {
    flex: 1;
    padding-right: 15%;
}

.message-text h4 {
    font-size: var(--fz-md);
    font-weight: 700;
    margin-bottom: 30px;
    padding: 0;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.message-text p {
    font-size: var(--role-body);
    line-height: 2;
    margin-bottom: 20px;
}

.message-author {
    margin-top: 50px;
    padding-top: 0;
    border-top: none;
    text-align: right;
}

.message-author p {
    font-size: var(--role-body);
    margin-bottom: 15px;
    line-height: 1;
}

.message-author .author-name {
    font-family: "Noto Serif Japanese", serif;
    font-size: var(--fz-lg);
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 2px;
}

.message-author .author-name .last-char {
    letter-spacing: 0;
}


/*------------------------------------------------------

    ACCESS SECTION

------------------------------------------------------*/
.access-section {
    padding: 100px 0;
}

.access-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.access-text {
    flex: 0 0 200px;
}

.access-text h3 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0;
    padding: 0;
    color: #ebeced;
    font-size: 4vw;
    font-weight: 500;
    white-space: nowrap;
    z-index: -1;
}

.access-map {
    flex: 1;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

#access01 {
    margin-top: 120px;
    margin-bottom: 70px;
}

#access01 .container {
    position: relative;
}

#access01 .container span.en-title {
    position: absolute;
    top: -10%;
    left: 0%;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    color: #f4f6f8;
    font-size: 8vw;
    font-weight: 500;
    white-space: nowrap;
    /* filter: blur(1.5px); */
}

#info .clients {
    width: 100%;
    margin-top: 60px;
}

#info .clients h5 {
    position: relative;
    margin-bottom: 30px;
    padding-left: 18px;
    font-size: var(--fz-lg);
    font-weight: 600;
}

#info .clients h5::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: #00464A;
}

.client-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    gap: 20px;
}

.client-list li {
    text-align: center;
    width: 18%;
}

.client-list .client-logo {
    height: 80px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.client-list p {
    font-size: var(--role-meta);
    font-weight: 500;
    color: #333;
}

#access02 {
    margin-bottom: 100px;
}

.outside .container {
    align-items: flex-start;
}

.column {
    width: 54%;
}

.outside-right .column {
    padding-left: 19.5%;
    padding-top: 10px;
}

.gmap-container {
    width: 100%;
    margin: 0 auto;
}

#gmap {
    height: 0;
    overflow: hidden;
    padding-bottom: 38.25%;
    position: relative;
}

#gmap iframe {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.message-image {
    width: 40%;
    height: auto;
}

/*------------------------------------------------------

    RESPO / PC FIRST

------------------------------------------------------*/
@media (max-width: 1200px) {
    .outside .column h4 {
        font-size: 2.3vw;
    }

    .text-column .section__contents h4 {
        font-size: 2.8vw;
    }

    .message-text h4 {
        font-size: 2.5vw;
    }

    .alternating-content {
        gap: 50px;
    }

    .message-content {
        gap: 40px;
    }

    .access-content {
        gap: 40px;
    }

    .alternating-section hgroup h3 {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    #info .partner {
        width: 85%;
    }

    .client-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .client-list li {
        width: 30%;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .alternating-content {
        flex-direction: column;
        gap: 40px;
    }

    .image-column {
        order: 1;
    }

    .text-column {
        order: 2;
    }

    .alternating-section hgroup {
        text-align: center;
        margin-bottom: 30px;
    }

    .alternating-section hgroup h3 {
        font-size: 16px;
    }

    .alternating-section hgroup p {
        font-size: 15px;
        text-align: center;
    }

    .text-column .section__contents h4 {
        font-size: 28px;
        text-align: center;
    }

    .text-column .section__contents p {
        font-size: 15px;
        text-align: center;
    }

    #vision .text-column .section__contents p {
        text-align: left;
    }

    #value .text-column .section__contents p {
        text-align: left;
    }

    #vision .text-column hgroup p,
    #value .text-column hgroup p {
        text-align: center!important;
    }

    .message-content {
        flex-direction: column;
        gap: 30px;
    }

    .message-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .client-list li {
        width: 45%;
    }
}

@media (max-width: 576px) {

    #info hgroup p {
        font-size: 28px;
        font-weight: 500;
        margin: 5px 0;
    }

    #info hgroup img {
        width: 50px;
    }

    #info table.data-table tr {
        padding: 10px;
    }

    .client-list li {
        width: 100%;
    }

    #vision .text-column,
    #value .text-column {
        padding-right: 15px;
        padding-left: 15px;
    }

    #info .container {
        padding: 40px 20px;
    }

    #info table.data-table {
        width: 100%;
    }

    #info table.data-table th,
    #info table.data-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
        text-align: left;
    }

    #info table.data-table th {
        padding-top: 20px;
        padding-bottom: 5px;
        font-weight: 700;
    }

    #info table.data-table td {
        padding-top: 0;
        padding-bottom: 20px;
    }

    #info .clients {
        margin: 50px auto 0;
    }

    #info .clients h5 {
        font-size: 6vw;
        margin-bottom: 20px;
    }

    .alternating-section,
    .message-section,
    .access-section {
        padding: 25px 0;
    }

    .alternating-section hgroup h3 {
        font-size: 10.5vw;
    }

    .alternating-section hgroup p {
        font-size: 14px;
        text-align: center;
    }

    .alternating-section hgroup img {
        width: 30px;
    }

    .text-column .section__contents h4 {
        font-size: 24px;
        padding: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .text-column .section__contents p {
        font-size: 14px;
        line-height: 1.7;
    }

    #vision .text-column hgroup p,
    #value .text-column hgroup p {
        text-align: center;
    }

    #vision .text-column .section__contents p {
        text-align: left;
    }

    #value .text-column .section__contents p {
        text-align: left;
    }

    .alternating-content {
        gap: 30px;
    }

    .message-section hgroup h3 {
        font-size: 28px;
        font-weight: 700;
        margin: 0;
    }

    .message-section hgroup img {
        width: 30px;
    }

    .message-text {
        padding: 0 20px;
    }

    .message-text h4 {
        font-size: 5vw;
        padding: 15px 0 0px;
    }

    .message-text p {
        font-size: 14px;
    }

    .message-author {
        margin-top: 30px;
        padding-top: 20px;
        padding: 0 10px;
    }

    .message-author p {
        font-size: 4vw;
    }

    .access-text h3 {
        font-size: 10vw;
        font-weight: 700;
    }

    #info .partner {
        width: 100%;
        margin: 50px auto 0;
    }

    #info .partner h5 {
        font-size: 6vw;
        margin-bottom: 20px;
    }

    #info .partner ul {
        gap: 3px;
        padding-left: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    #info .partner ul li p {
        font-size: 3.5vw;
        margin-top: 0;
    }

    #access {
        margin-top: 50px;
        margin-bottom: 40px;
    }

    #access .container {
        width: 100%;
    }

    .access-content {
        flex-direction: column;
        gap: 30px;
    }

    .access-section h4 {
        font-size: 5vw;
        font-weight: 500;
        margin-bottom: 0;
    }

    .access-text {
        flex: none;
        text-align: center;
    }

    .access-text h3 {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }

    .access-text h3 br {
        display: none;
    }

    #access .access-content {
        display: grid;
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto 1fr;
        column-gap: 0;
        row-gap: 12px;
        align-items: start;
    }

    #access .access-text {
        grid-column: 1;
        grid-row: 1 / span 2;
        text-align: left;
    }

    #access .access-text h3 {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    #access hgroup {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }

    #access .access-map {
        grid-column: 2;
        grid-row: 2;
    }

    .outside .container {
        flex-direction: column-reverse;
    }

    .outside .column-outside-right {
        width: 100%;
        margin-left: 7.8%;
    }

    .outside-right .column {
        padding-left: 10%;
    }

    #access01 .container span.en-title {
        top: -10%;
        left: -13%;
        font-size: 19vw;
    }

    #gmap {
        padding-bottom: 118%;
    }
}

#info .more-link a {
    color: #fff;
    background: linear-gradient(90deg, #00464A, #00A3A6);
    border-radius: 100px;
}

#info .more-link a::before {
    content: none;
}

#info .more-link a::after {
    border-color: #fff;
}

#info .more-link a:hover {
    background: #fff;
    color: #00464A;
}

#info .more-link a:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 100px;
    background: linear-gradient(90deg, #00464A, #00A3A6) border-box;
    -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    -webkit-mask-clip: padding-box, border-box;
    -webkit-mask-composite: destination-out;
    mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    mask-clip: padding-box, border-box;
    mask-composite: destination-out;
}

#info .more-link a:hover::after {
    border-color: #00464A;
}

/* iframe */
iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

@media (max-width: 576px) {
    iframe {
        height: 300px;
        width: 100vw;
    }

    /* Prevent overflow and keep map width consistent in the #access section */
    #access .access-map iframe {
        width: 100%;
    }
}

