* {
    box-sizing: border-box;
}

:root {
    --main-color: #26b7bc;
    --accent-color: #3a5faf;
    --text-color: #333333;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text-color);
    font-size: 14px;
}
img {
    max-width: 100%;
    vertical-align: top;
}
a {
    color: var(--accent-color);
}

.pc-il {
    display: none;
}
.sp-il {
    display: inline;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
    width: 100%;
    padding: 0 5vw;
    background: #ffffff80;
    backdrop-filter: blur(10px);
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: min(2vw, 24px);
        max-width: 1280px;
        margin: 0 auto;
        div {
            width: 132px;
        }
        ul {
            display: flex;
            justify-content: right;
            align-items: center;
            gap: min(2vw, 24px);
            margin: 0;
            padding: 20px 0;
            list-style: none;
            li {
                display: inline-block;
                a {
                    text-decoration: none;
                    color: var(--text-color);
                    font-weight: 700;
                    &:hover {
                        color: var(--main-color);
                    }
                }
                &.corporate {
                    a {
                        display: block;
                        padding: 0.5em 1.25em;
                        color: var(--accent-color);
                        border: 1px solid var(--accent-color);
                        border-radius: 9999px;
                        &:hover {
                            background-color: var(--accent-color);
                            color: #ffffff;
                        }
                    }
                }
            }
        }
    }
}

footer {
    padding: 60px 0 20px;
    border-top: 1px solid #e2e2e2;
    background-color: #ffffff;
    .contact {
        width: 90%;
        max-width: 480px;
        margin: 0 auto 40px;
        padding: 20px 40px;
        border: 1px solid var(--text-color);
        h2 {
            font-size: 16px;
        }
    }
    > a {
        display: flex;
        justify-content: space-between;
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 1em 1em;
        border-bottom: 1px solid var(--text-color);
        color: var(--text-color);
        text-decoration: none;
        &::after {
            content: ">";
            display: block;
            margin-left: auto;
        }
        &:hover {
            color: var(--accent-color);
        }
    }
    .footer-logo {
        margin-top: 40px;
        text-align: center;
        img {
            width: min(100px, 25vw);
        }
    }
    .copyright {
        margin-top: 40px;
        font-size: smaller;
        text-align: center;
    }
}

h1 {
    font-size: min(28px, 5vw);
	font-weight: 700;
    font-feature-settings: "palt";
}
h2 {
    font-size: min(24px, 6vw);
    font-weight: 700;
    font-feature-settings: "palt";
}
h3 {
    font-size: min(18px, 4.5vw);
    font-weight: 700;
    font-feature-settings: "palt";
}
h4 {
    font-weight: 700;
    font-feature-settings: "palt";
}
strong {
    font-weight: 900;
}
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    header {
        display: block;
    }

    .pc-il {
        display: inline;
    }
    .sp-il {
        display: none;
    }

    h1 {
        font-size: min(32px, 2.5vw);
    }
    h2 {
        font-size: min(40px, 8vw);
    }
    h3 {
        font-size: min(32px, 6vw);
    }
    h4 {
        font-size: min(20px, 6vw);
    }
}



.m-wrapper {
    padding: 0 5vw;
    &::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        z-index: -10;
        display: block;
        width: 100%;
        height: 100lvh;
        background: url("m-bg-sp.jpg?v=2001") center;
        background-size: cover;
    }
    section {
        max-width: 1280px;
        margin: 0 auto;
        &.m2 {
            max-width: none;
            margin-right: -5vw;
            margin-left: -5vw;
        }
    }
    h2 {
        text-align: center;
    }
    strong.elmo {
        display: inline-block;
        margin-right: 0.125em;
        color: var(--main-color);
        border-bottom: 2px solid var(--main-color);
    }
    .text-2l {
        font-size: 24px;
    }
    .text-lg {
        font-size: 18px;
    }
    .text-md {
        font-size: 16px;
    }
}
.m1 {
    position: relative;
    > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5svh;
        min-height: 100svh;
        padding-top: 5svh;
        padding-bottom: 10svh;
        > div {
            &:first-child {
                img {
                    width: 50vw;
                }
            }
        }
    }
    h1 {
        margin: 0;
        line-height: 1.5;
    }
    .tagline {
        margin: 0.5em 0 0.25em;
        font-size: min(48px, 8vw);
        font-weight: 700;
        font-feature-settings: "palt";
        line-height: 1.25;
    }
    .intro {
        line-height: 1.75;
    }
    .scroll {
        position: absolute;
        bottom: 0;
        left: 50%;
        padding-bottom: 8svh;
        text-align: center;
        transform: translateX(-50%);
        .scroll-text {
            animation: scroll-text-anim 3s ease infinite;
        }
        .scroll-mark {
            position: absolute;
            bottom: 2svh;
            left: 50%;
            display: block;
            width: 1px;
            height: 5svh;
            overflow: hidden;
            transform: translateX(-50%);
            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: currentColor;
                animation: scroll-mark-anim 1.5s ease infinite;
            }
        }
    }
}
@keyframes scroll-text-anim {
    0% {
        opacity: 0;
    }
    12.5% {
        opacity: 1;
    }
    87.5% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes scroll-mark-anim {
    0% {
        transform: translateY(-100%);
    }
    25% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}
.m2 {
    padding: 1vw 0 5vw;
    background-color: #ffffff;
    .message {
        width: fit-content;
        margin-top: 2em;
        margin-right: auto;
        margin-left: auto;
        padding-right: 1em;
        padding-left: 1em;
        p {
            line-height: 1.75;
            letter-spacing: 1px;
        }
    }
    .logo-strip {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 40px;
        margin-bottom: 40px;
        .logo-row {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 10px;
            width: min(90%, 960px);
            margin: 0 auto;
            padding-left: 0;
            li {
                display: flex;
                align-items: center;
                justify-content: center;
                height: calc(var(--h, 36px) * 0.66);
                img {
                    height: 100%;
                    width: auto;
                    object-fit: contain;
                }
            }
        }
    }
}
.m3 {
    padding: 5vw 0;
    .area {
        display: flex;
        flex-direction: column;
        gap: 5svh;
        margin: 5svh 0;
        h3 {
            width: fit-content;
            margin: 0 0 0.5em;
            padding: 0.125em 0.5em;
            font-size: min(24px, 6vw);
            background-color: var(--main-color);
            color: #ffffff;
        }
        h4 {
            margin: 0;
            font-size: min(20px, 5vw);
        }
        strong {
            color: var(--accent-color);
        }
    }
}
.m4 {
    padding: 10svh 0 20svh;
    .message {
        width: fit-content;
        margin-top: 2.5em;
        margin-right: auto;
        margin-left: auto;
        p {
            margin-top: 2em;
        }
    }
    .logo-intro,
    .logo-color {
        h3 {
            margin: 0;
            font-size: min(32px, 7.5vw);
        }
        h4 {
            margin: 0 0 0.125em;
            padding: 0.25em 0.75em;
            font-size: min(20px, 5vw);
        }
    }
    .logo-intro {
        ol {
            counter-reset: intro-cnt;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 0;
            margin-bottom: 20px;
            padding-left: 0;
            li {
                h3 {
                    color: var(--accent-color)
                }
                h4 {
                    background-color: #ffffffcc;
                }
            }
        }
    }
    .logo-color {
        display: flex;
        flex-direction: column;
        gap: 20px;
        div {
            h3 {
                display: flex;
                align-items: center;
                gap: 10px;
                &::before {
                    content: "";
                    flex-shrink: 0;
                    display: block;
                    width: 48px;
                    height: 48px;
                    border-radius: 8px;
                }
            }
            &:first-child h3::before {
                background-color: var(--main-color);
            }
            &:last-child h3::before {
                background-color: var(--accent-color);
            }
            h4 {
                background-color: #404040;
                color: #ffffff;
            }
            p {
                margin-bottom: 0;
            }
        }
    }
}
@media (min-width: 768px) {
    .m-wrapper {
        background: url("m-bg.jpg?v=2001") center;
        background-attachment: fixed;
        background-size: cover;
        &::before {
            content: none;
        }
        .text-2l {
            font-size: 32px;
        }
        .text-lg {
            font-size: 24px;
        }
        .text-md {
            font-size: 20px;
        }
    }
    .m1 {
        display: grid;
        place-items: center;
        min-height: 100svh;
        padding-top: 80px;
        padding-bottom: 8svh;
        .tagline {
            font-size: min(52px, 3.75vw);
        }
        > div {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            gap: min(80px, 4vw);
            min-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            > div {
                flex-basis: 600px;
            }
        }
    }
    .m2 {
        .message {
            padding-right: 0;
            padding-left: 0;
            text-align: center;
        }
        .logo-strip {
            gap: 20px;
            margin-top: 80px;
            margin-bottom: 60px;
            .logo-row {
                justify-content: space-between;
                gap: 20px;
                li {
                    height: calc(var(--h, 36px));
                }
            }
        }
    }
    .m3 {
        .area {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: min(40px, 2.5vw);
            margin: 80px 0;
            h4 {
                font-size: min(28px, 2.5vw);
            }
            p {
                font-size: 18px;
            }
        }
        .text-center {
            text-align: center;
        }
    }
    .m4 {
        padding: 5vw 0 10vw;
        .logo-visual {
            width: 720px;
            margin: 0 auto;
        }
        .logo-intro,
        .logo-color {
            p {
                font-size: 18px;
            }
        }
        .logo-intro {
            ol {
                flex-direction: row;
                justify-content: center;
                gap: 40px;
                > li {
                    flex-basis: 33.3334%;
                }
            }
        }
        .logo-color {
            flex-direction: row;
            justify-content: center;
            gap: 40px;
            > div {
                flex-basis: 33.3334%;
                padding: 40px;
            }
        }
    }
}
.m1 {
    .js-observer-offset {
        opacity: 0;
        filter: blur(20px);
        &.is-shown {
            opacity: 1;
            filter: blur(0);
            transition: opacity 1s ease 0.5s, filter 1s ease 0.5s;
        }
    }
}
.m2,
.m3,
.m4 {
    .js-observer-threshold {
        opacity: 0;
        filter: blur(20px);
        &.is-shown {
            opacity: 1;
            filter: blur(0);
            transition: opacity 0.75s ease, filter 0.75s ease;
        }
    }
}

.i-wrapper {
    padding: 7.5svh 5vw;
    background: #ffffff;
    section {
        max-width: 960px;
        margin: 0 auto;
        padding: 7.5svh 0;
    }
    h2 {
        padding-bottom: 0.5em;
        border-bottom: 1px solid #999999;
    }
    .image {
        text-align: center;
    }
}
.i1 {
    .timeline {
        list-style: none;
        width: fit-content;
        margin: 0 auto;
        padding-left: 0;
        li {
            position: relative;
            margin: 24px 0;
            padding: 1em 2em;
            background-color: #f7f7f7;
            time {
                font-size: 18px;
                font-weight: 700;
            }
            b {
                display: block;
                font-size: 24px;
            }
            p {
                margin-bottom: 0;
            }
            &::after {
                content: "";
                position: absolute;
                top: calc(100% - 1px);
                left: 50%;
                width: 40px;
                height: 20px;
                background-color: #f7f7f7;
                transform: translateX(-50%);
                clip-path: polygon(0 0, 100% 0, 50% 100%);
            }
            &:last-child {
                &::after {
                    content: none;
                }
            }
        }
    }
    table {
        margin: 40px auto 0;
        border-collapse: collapse;
        thead tr th {
            padding: 0.75em 1.5em;
            border-bottom: 2px solid var(--text-color);
        }
        tbody tr td {
            padding: 0.75em 1.5em;
            border-bottom: 1px solid #e2e2e2;
        }
    }
}
.i2 {
    .image {
        margin-top: 40px;
    }
    .con {
        margin-bottom: 40px;
        padding: 1em;
        background-color: #f7f7f7;
    }
}
.i3 {
    .tpc {
        margin-top: 40px;
        padding: 1em;
        background-color: #f7f7f7;
        h3 {
            margin: 0 0 0.5em;
            font-size: 20px;
        }
        ul {
            margin: 0;
            padding-left: 1.5em;
            li {
                margin-bottom: 0.5em;
                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
    }
}
.i4 {
    dl {
        div {
            padding: 20px 0;
            border-bottom: 1px solid #e2e2e2;
            dt {
                display: flex;
                align-items: start;
                gap: 10px;
                margin-bottom: 8px;
                span {
                    display: block;
                    padding: 10px 0;
                }
                &::before {
                    content: "Q";
                    flex-shrink: 0;
                    display: grid;
                    place-items: center;
                    width: 40px;
                    aspect-ratio: 1;
                    font-weight: 700;
                    border: 2px solid currentColor;
                }
            }
            dd {
                display: flex;
                align-items: start;
                gap: 10px;
                margin-left: 0;
                span {
                    display: block;
                    padding: 10px 0;
                }
                &::before {
                    content: "A";
                    flex-shrink: 0;
                    display: grid;
                    place-items: center;
                    width: 44px;
                    aspect-ratio: 1;
                    font-weight: 700;
                    background-color: var(--text-color);
                    color: #ffffff;
                }
            }
        }
    }
}
@media (min-width: 768px) {
    .i-wrapper {
        padding: 5vw;
        section {
            padding: 5vw 0;
        }
    }
    .i1 {
        .timeline {
            li {
                time {
                    display: inline-block;
                    min-width: 7em;
                }
                b {
                    display: inline;
                    margin-left: 0.5em;
                }
            }
        }
    }
}
