@charset "utf-8";

/*=============================
Overseas
=============================*/

.overseas-page {
    background: var(--color-pale);
}

.overseas-page p {
    font-weight: 400;
}

.overseas-heading {
    padding: 20px 20px 0;
    text-align: center;
}

.overseas-page .line {
    width: 1px;
    height: 40px;
    margin: 0 auto 28px;
    background: var(--color-navy);
}

.overseas-heading h1 {
    margin-bottom: 26px;
    font-size: 22px;
    line-height: 1.5;
}

.overseas-heading > p,
.overseas-section-heading > p,
.overseas-subheading > p {
    font-size: 15px;
    line-height: 1.5;
}

/*=============================
Service navigation
=============================*/

.overseas-steps {
    width: 100%;
    max-width: 344px;
    margin: 16px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 6px;
    list-style: none;
}

.overseas-steps li:last-child {
    width: calc((100% - 6px) / 2);
    grid-column: 1 / -1;
    justify-self: center;
}

.overseas-steps a {
    height: 154px;
    display: block;
    position: relative;
}

.overseas-steps a::before,
.overseas-steps a::after {
    content: '';
    width: 146px;
    height: 146px;
    max-width: 100%;
    position: absolute;
    top: 12px;
    right: 0;
    border-radius: 50%;
}

.overseas-steps a::before {
    background: #fff;
}

.overseas-steps a::after {
    width: 120px;
    height: 120px;
    top: 25px;
    right: 13px;
    border: 4px solid var(--color-navy);
    border-left-color: transparent;
    transition: border-color 0.25s ease;
}

.overseas-steps b {
    position: relative;
    z-index: 1;
    display: block;
    text-align: left;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.overseas-steps span {
    position: absolute;
    inset: 54px 0 auto;
    z-index: 1;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.overseas-steps a:hover::after {
    border-color: var(--color-blue);
    border-left-color: transparent;
}

.overseas-service {
    scroll-margin-top: 75px;
}

.overseas-step-arrow {
    position: absolute;
    z-index: 1;
    top: 122px;
    right: 72px;
    width: 1px;
    height: 16px;
    background: #000;
    animation: overseas-arrow-down 1.6s ease-in-out infinite;
}

.overseas-step-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    border-top: 7px solid #000;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.overseas-steps a:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 5px;
}

@keyframes overseas-arrow-down {
    0%, 100% {
        transform: translateY(0);
    }
    55% {
        transform: translateY(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .overseas-step-arrow {
        animation: none;
    }
}

/*=============================
Service content
=============================*/

.overseas-section-heading {
    padding: 32px 20px 20px;
    text-align: center;
}

.overseas-section-heading h2 {
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.5;
}

.overseas-body {
    padding: 20px 0 30px;
    background: url("../../images/subpage-background.jpg") center / auto 180% no-repeat;
}

.overseas-body--market {
    background-position: center bottom;
}

.overseas-body--japan {
    background-size: cover;
}

.overseas-panel {
    width: 81.54%;
    margin: 0 auto;
    padding: 20px 34px;
    background: rgba(255, 255, 255, 0.94);
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
}

.overseas-panel h3,
.overseas-panel-lead {
    font-size: 15px;
    line-height: 1.4;
}

.overseas-research-copy h3 {
    margin-bottom: 26px;
}

.overseas-research-copy p + h3 {
    margin-top: 40px;
}

.overseas-research-copy h3:nth-of-type(2) {
    margin-bottom: 12px;
}

.overseas-research-copy .overseas-brands-link {
    display: block;
    position: static;
    max-width: 100%;
    margin: 32px auto 0;
    transform: none;
}

.overseas-subheading {
    margin: 24px 20px 16px;
    text-align: center;
}

.overseas-subheading h3 {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.5;
}

.overseas-oem-pc {
    display: none;
}

.overseas-pictures {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.overseas-pictures img {
    display: block;
    width: 80%;
    height: auto;
}

.overseas-pictures--oem {
    margin-top: 36px;
}

.overseas-pictures--oem img {
    aspect-ratio: 1.6;
    object-fit: cover;
}

.overseas-pictures--japan {
    margin-top: 24px;
}

.overseas-panel ul {
    padding: 0;
    list-style: none;
}

.overseas-panel li::before {
    content: '・';
}

.overseas-panel-lead + ul {
    margin-top: 28px;
}

/*=============================
Gallery
=============================*/

.overseas-gallery {
    margin-top: 24px;
}

.overseas-gallery--italy {
    margin-top: 30px;
}

.overseas-gallery h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.overseas-gallery--italy h3 {
    text-align: right;
}

.overseas-gallery figure {
    margin: 0;
    min-width: 0;
}

.overseas-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    object-fit: cover;
    display: block;
}

.overseas-gallery figcaption {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.overseas-subheading--culture h3 {
    font-size: 18px;
}

.overseas-culture-photo {
    display: block;
    width: 80%;
    height: auto;
    margin-top: 20px;
    aspect-ratio: 1.6;
    object-fit: cover;
}

/* Overseas pc */
@media screen and (min-width: 769px) {
    .overseas-heading {
        padding-top: clamp(70px, 9.722vw, 140px);
    }

    .overseas-page .line {
        height: clamp(60px, 8.056vw, 116px);
        margin-bottom: clamp(28px, 3.472vw, 50px);
    }

    .overseas-heading h1 {
        margin-bottom: 36px;
        font-size: 28px;
    }

    .overseas-heading > p,
    .overseas-section-heading > p,
    .overseas-subheading > p {
        font-size: 15px;
    }

    .overseas-sp-break {
        display: none;
    }

    .overseas-steps {
        width: calc(100% - 48px);
        max-width: 1000px;
        margin-top: 60px;
        padding: 0 24px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .overseas-steps li:last-child {
        width: auto;
        grid-column: auto;
        justify-self: stretch;
    }

    .overseas-steps a {
        height: clamp(175px, 18.75vw, 270px);
    }

    .overseas-steps a::before {
        width: clamp(145px, 17.014vw, 245px);
        height: clamp(145px, 17.014vw, 245px);
        top: 16px;
    }

    .overseas-steps a::after {
        width: clamp(121px, 13.889vw, 200px);
        height: clamp(121px, 13.889vw, 200px);
        top: clamp(28px, 2.674vw, 38.5px);
        right: clamp(12px, 1.563vw, 22.5px);
        border-width: 7px;
    }

    .overseas-steps b {
        font-size: clamp(48px, 5.556vw, 80px);
    }

    .overseas-steps span {
        top: clamp(79px, 9.375vw, 135px);
        font-size: 17px;
        white-space: nowrap;
    }

    .overseas-step-arrow {
        top: calc(clamp(130px, 13.75vw, 198px) - 10px);
        right: clamp(72px, 8.507vw, 122.5px);
        height: 24px;
    }

    .overseas-section-heading {
        padding: clamp(50px, 5.556vw, 80px) 5% 36px;
    }

    .overseas-section-heading h2 {
        margin-bottom: 34px;
        font-size: 24px;
    }

    .overseas-section-heading > p {
        max-width: 1080px;
        margin: 0 auto;
    }

    #research .overseas-section-heading > p {
        text-align: center;
    }

    #marketing .overseas-section-heading > p {
        max-width: 1320px;
    }

    .overseas-body {
        padding: 50px 0 60px;
    }

    .overseas-panel {
        width: 84%;
        max-width: 1208px;
        padding: clamp(40px, 5.556vw, 80px);
        font-size: 14px;
    }

    .overseas-panel h3,
    .overseas-panel-lead {
        font-size: 17px;
        line-height: 1.5;
    }

    .overseas-research-copy h3 {
        margin-bottom: 24px;
    }

    .overseas-research-copy p + h3 {
        margin-top: 52px;
    }

    .overseas-research-copy h3:nth-of-type(2) {
        margin-bottom: 24px;
    }

    .overseas-subheading {
        margin: 48px 20px 12px;
    }

    .overseas-subheading h3 {
        margin-bottom: 16px;
        font-size: 24px;
    }

    .overseas-oem-pc {
        display: block;
    }

    .overseas-oem-pc h3 {
        margin-bottom: 24px;
    }

    .overseas-oem-sp {
        display: none;
    }

    .overseas-pictures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overseas-pictures--oem {
        grid-template-columns: 46% 54%;
        margin-top: 8px;
        margin-left: 70px;
    }

    .overseas-pictures--oem img {
        aspect-ratio: auto;
    }

    .overseas-pictures--japan {
        max-width: 864px;
        margin: 16px auto 0;
    }

    .overseas-panel-lead + ul {
        margin-top: 24px;
    }

    .overseas-gallery {
        margin-top: 48px;
    }

    .overseas-gallery--italy {
        margin-top: 30px;
    }

    .overseas-gallery h3 {
        margin-bottom: 24px;
        font-size: 24px;
    }

    .overseas-gallery-photos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .overseas-gallery figcaption {
        margin-top: 16px;
        font-size: 14px;
    }

    .overseas-subheading--culture h3 {
        margin-bottom: 0;
    }

    .overseas-culture-photo {
        margin-top: 12px;
        aspect-ratio: auto;
    }
}

@media screen and (max-width: 375px) {
    .overseas-heading {
        padding-right: 14px;
        padding-left: 14px;
    }

    .overseas-heading h1 {
        font-size: 20px;
    }

    .overseas-steps span {
        font-size: 15px;
    }

    .overseas-panel {
        width: 86%;
        padding-right: 24px;
        padding-left: 24px;
    }

    .overseas-section-heading h2 {
        font-size: 21px;
    }
}

@media screen and (min-width: 1140px) {
    .overseas-section-heading h2,
    .overseas-subheading h3,
    .overseas-gallery h3 {
        font-size: 35px;
    }

    .overseas-panel h3,
    .overseas-panel-lead {
        font-size: 27px;
    }

    .overseas-panel {
        font-size: 16px;
    }

    .overseas-heading h1 {
        font-size: 40px;
        margin-bottom: 36px;
    }

    .overseas-heading > p {
        font-size: 27px;
    }

    .overseas-steps {
        margin-top: 64px;
    }

    .overseas-steps span {
        top: clamp(95px, 8.333vw, 120px);
        font-size: 22px;
    }

    .overseas-steps li:last-child span {
        right: 36px;
    }
}
