/* 基本のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: initial;
    text-decoration: none;
    font-size: 14px;
    font-weight: unset;
    line-height: unset;
    list-style: none;
    letter-spacing: 0.05em;
}

html {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    scroll-behavior: smooth;
}

a {
    transition: 0.3s;
}

a:hover {
    opacity: 0.5!important;
}

section#service, section#company-case, section#about, section#contact {
    padding-top: 100px;
    margin-top: -100px;
}

section#contact {
    padding-top: 150px;
}

hr {
    max-width: 1024px;
    margin: auto;
    border: initial;
    border-bottom: 1px solid black;
}

.shippori-antique-b1-regular {
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
}  

.noto-sans-jp-regural {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.libre-bodoni-bold {
    font-family: "Libre Bodoni", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.br-pc {
    display: inherit;
}

.br-sp {
    display: none;
}

.hr-separater {
    width: 100%;
    height: 1px;
    background: #000000;
    margin-top: 1px;
}

h2.m-philosophy-title, .m-service-title, .m-company-cases-header, .m-about-title {
    width: fit-content;
    white-space: nowrap;
}

.m-title-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.m-intro-title-underlay {
    margin-top: 50vh;
}

/* header */

header.l-header {
    position: fixed;
    z-index: 100;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

a.m-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    
    img {
        height: 50px;
    }
}

nav.m-nav {
    display: flex;
    gap: 1em;
    height: 50px;
}

ul.m-nav-list {
    display: flex;
    gap: 1em;
}

a.m-nav-link {
    position: relative;
    display: flex;
    height: 100%;
    padding: 0 1em;
    align-items: center;
}

a.m-nav-link:after {
    content: "";
    position: absolute;
    width: calc(100% - 2em);
    height: 1px;
    background: linear-gradient(90deg, #08D1BA, #079EE0);
    bottom: 0.5em;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
}


a.m-nav-link:hover:after {
    transform: scale(1, 1);
}

a.m-nav-cta {
    display: flex;
    align-items: center;
    background: #08D1BA;
    color: #ffffff;
    padding: 0 2em;
    border-radius: 4px;
}

ul.m-nav-sublist {
    position: absolute;
    top: 65px;
    margin: auto;
    display: grid;
    gap: 0.75em;
    width: max-content;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-30px);
    transition: 500ms;
    background: #ffffff;
    border: 1px solid #000;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.2));
    padding: 15px 25px;
}

li.m-nav-item {
    position: relative;
    display: flex;
    justify-content: center;
}

li.m-nav-item:hover ul.m-nav-sublist {
    visibility: visible;
    opacity: 1;
    transform: translateY(0px);
}

ul.m-nav-sublist:before {
    content: "";
    position: absolute;
    top: -16px;
    left: calc(50% - 0.5px);
    width: 1px;
    height: 15px;
    background: #000;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.2));
}

li.m-nav-item:hover a.m-nav-link:after {
    transform: scale(1, 1);
}

/* menu */

.m-menu-container-sp {
    display: none;
}

.m-menu-button {
    position: relative;
    width: 40px;
    height: 40px;
}

.m-menu-button:before {
    content: "";
    position: absolute;
    top: 15px;
    width: 100%;
    height: 1px;
    background: #000;
    transition: 300ms;
}

.m-menu-button:after {
    content: "";
    position: absolute;
    bottom: 15px;
    right: 0;
    width: 80%;
    height: 1px;
    background: #000;
    transition: 300ms;
}

.m-menu-button.opened:before {
    transform: rotate(45deg);
    width: 100%;
    top: calc(50% - 1px);
}

.m-menu-button.opened:after {
    transform: rotate(-45deg);
    width: 100%;
    bottom: calc(50% - 1px);
}

.m-menu-sp {
    position: absolute;
    width: 100%;
    left: 0px;
    bottom: -60px;
    background: #ffffffBF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: 300ms;
}

.m-menu-sp.opened {
    visibility: visible;
    opacity: 1;
    transform: translateY(0px);
}

ul.m-nav-list-sp {
    display: grid;
    grid-template-columns: repeat(5 , 1fr);
}

ul.m-nav-list-sp li.m-nav-item a {
    width: 100%;
    padding: 20px 0px;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 600;
}

/* main */
.m-scroll-indicator {
    /* position: sticky;
    top: 0;
    z-index: -10; */
    width: 100vw;
    height: 100vh;
    background: center/ cover url(../img/img-001.webp);
}

.m-scroll-indicator:before {
    content: url(../img/scroll-arrow.svg);
    position: absolute;
    bottom: 20px;
    left: 15px;
}
.m-scroll-indicator:after {
    content: "scroll";
    position: absolute;
    bottom: 128px;
    left: 15px;
    transform: rotate(90deg);
    color: #fff;
    font-size: 0.8em;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.m-intro-content {
    position: sticky;
    top: 120px;
    margin-bottom: 20px;
    padding: 0 40px;
    font-weight: 500;
    margin-top: calc(-50vh - 63.75px);
    transform-origin: 0 0;
    transition: 1s;
}

h1.m-intro-title {
    font-size: 3.3em;
    letter-spacing: 0.1em;
}

p.m-intro-description {
    font-size: 2em;
}
p.m-intro-description-en {
    font-size: 1em;
}

.m-intro-text {
    width: 624px;
    margin-top: 60vh;
    margin-left: auto;
    margin-right: calc((100vw - 1024px) / 2);
    /* padding-bottom: 200px; */
    font-size: 1.3em;
    font-weight: 500;
    line-height: 2.2em;
    
    span.m-highlight {
        display: block;
        font-size: 2.3em;
        line-height: 2.2em;
        font-weight: 100;
        padding: 2em 0;
    }
}

.m-signature {
    text-align: right;
    font-weight: 700;
    margin-top: 3em;
}

/* philosophy */
section.m-philosophy {
    /* height: 100vh; */
    max-width: 1024px;
    margin: 200px auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
h2.m-philosophy-title {
    font-size: 2em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h3.m-philosophy-subtitle {
    font-size: 2.6em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-left: 50px;
    margin-bottom: 75px;
}

.m-sentence-spacer {
    width: 1px;
    height: 70px;
    background: #000;
    margin: 50px auto;
}

picture.m-philosophy-image {
    display: block;
    width: 300px;
    aspect-ratio: 0.75;
    background: gray;
}

.m-philosophy-details {
    display: grid;
    grid-template-columns: auto auto;
    gap: 50px;
}

p.m-philosophy-paragraph {
    font-size: 1.3em;
    line-height: 2.2em;
}

.m-highlight {
    font-size: 1em;
    font-weight: 700;
}

img.m-quadrants-image-img {
    width: 100%;
}

picture.m-quadrants-image {
    display: block;
    padding: 100px 30px;
}

/* howto */

.m-howto-title {
    font-size: 2.3em;
    font-weight: 700;
    text-align: center;
}

picture.m-howto-image {
    display: block;
    position: relative;
    width: 380px;
    overflow: hidden;
    aspect-ratio: 1.5;
    /* background: tomato; */
    position: sticky;
    top: calc((100vh - 236px) / 2);
}

img.m-howto-image-img {
    width: 100%;
    /* position: absolute; */
    /* left: -85%; */
    /* top: 0; */
    /* transition: 2s; */
}

.m-howto-details {
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: auto auto;
    gap: 50px;
}

p.m-howto-paragraph {
    font-size: 1.3em;
    line-height: 2.2em;
}

.m-howto-details:last-child {
    margin-bottom: 0px;
}

/* service-area */

section.m-service {
    max-width: 1024px;
    margin: 200px auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

h2.m-service-title {
    font-size: 2em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h3.m-service-subtitle {
    font-size: 2.6em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-left: 50px;
    margin-bottom: 75px;
}

p.m-service-paragraph {
    font-size: 1.3em;
    line-height: 2.2em;
}

.m-service-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

img.m-service-image-img {
    width: 100%;
}

picture.m-service-image {
    display: block;
    padding: 100px 50px 50px;
}

picture.m-service-areas-image {
    height: fit-content;
    position: sticky;
    top: calc((100vh - 236px) / 2);
}

.m-service-areas-content {
    display: grid;
    gap: 50px;
}

.m-service-area-title {
    font-size: 1.3em;
    font-weight: 600;
}

.m-service-area-subtitle {
    font-size: 3em;
    font-weight: 600;
}

.m-service-area-header {
    margin-bottom: 50px;
}

.m-service-area-description {
    margin-top: 25px;
    font-size: 1.3em;
    line-height: 2.2em;
}

.m-service-area {
    padding: 50px;
    /* background: tomato; */
}

.m-service-area:nth-child(1) {
    background: linear-gradient(-90deg, #08D1BA00, #08D1BA33);
    border-left: 2px solid #08D1BA;
}
.m-service-area:nth-child(2) {
    background: linear-gradient(-90deg, #079EE000, #079EE033);
    border-left: 2px solid #079EE0;
}
.m-service-area:nth-child(3) {
    background: linear-gradient(-90deg, #FCE60600, #FCE60633);
    border-left: 2px solid #FCE606;
}

.m-service-overview-title {
    font-size: 2.3em;
    font-weight: 700;
    text-align: center;
}

.m-service-overview {
    /* display: grid;
    gap: 50px; */
    /* margin-top: 100px; */
}

.m-service-overview-description {
    font-size: 1.3em;
    line-height: 2.2em;
}

img.m-service-areas-image-img {
    /* width: 100%;
    position: sticky;
    top: calc((100vh - 350px)/2); */
}

img.m-service-overview-image-img {
    width: 100%;
}

picture.m-service-overview-image {
    display: block;
    padding: 100px 50px 50px;
}

/* about */

section.m-about {
    max-width: 1024px;
    margin: 200px auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

h2.m-about-title {
    font-size: 2em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h3.m-about-subtitle {
    font-size: 2.6em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-left: 50px;
    margin-bottom: 75px;
}

p.m-about-paragraph {
    /* font-size: 1.3em; */
    line-height: 2.2em;
}

.m-about-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 75px;
}

.m-about-partners-text {
    line-height: 2.2em;
}

.m-about-partners-text span.m-highlight {
    font-size: 1.5em;
}

.m-about-partners {
    display: grid;
    grid-template-columns: 1fr;
}

img.m-about-image-img {
    width: 100%;
}

picture.m-about-image {
    margin-right: 50px;
    display: flex;
    align-items: center;
}

/* member */

.m-team-title {
    font-size: 2.3em;
    font-weight: 700;
    text-align: center;
}

.m-team {
    margin-top: 50px;
}

ul.m-team-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

img.m-team-member-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    /* background: tomato; */
}
.m-team-member {
    cursor: pointer;
}
.m-team-member-details {
    margin-top: 20px;
}

.m-team-member-name {
    font-size: 1.5em;
    font-weight: 700;
}

.m-team-member-ename {
    font-weight: 700;
}

.m-team-member-role {
    font-size: 0.9em;
    font-weight: 700;
    margin-top: 15px;
}

.m-team-member-description {
    line-height: 2.2em;
    margin-top: 30px;
}

li.m-team-member:after {
    content: url(../img/icon-plus.svg);
    position: absolute;
    bottom: -20px;
    right: 0px;
}

li.m-team-member {
    position: relative;
    border-bottom: 1px solid black;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* card */

.test {
    position: fixed;
    width: 100vw;
    height: calc(100vh - 90px);
    background: #ffffff;
    top: 90px;
    left: 0;
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: 300ms;
}
.test-card {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: calc(100vh - (90px + 40px));
    margin: 20px auto;
    position: relative;
    background: #ffffff;
    overflow: scroll;
}

.test-card:after {
    content: "scroll";
    position: fixed;
    bottom: 3px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    font-size: 0.7em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.test-card .test-image, .test-card .test-name, .test-card .test-ename, .test-card .test-role, .test-card .test-description {
    transition: opacity 300ms;
    opacity: 1;
}

.test-card.hide .test-image, .test-card.hide .test-name, .test-card.hide .test-ename, .test-card.hide .test-role, .test-card.hide .test-description {
    opacity: 0;
}

picture.test-image-container {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2.16;
}

img.test-image {
    display: block;
    width: 100%;
    position: absolute;
    /* aspect-ratio: 1.7421602787; */
    /* background: tomato; */
}

.test-details {
    display: flex;
    flex-direction: column;
    /* height: calc(100% - 287px); */
    /* height: calc(100% - 30vh); */
    padding: 20px 50px;
    position: relative;
}

.test-profile {
    display: flex;
    align-items: flex-end;
    gap: 1em;
}

.test-name {
    font-size: 1.85em;
    font-weight: 700;
}

.test-ename {
    font-weight: 700;
}

.test-role {
    font-size: 0.85em;
    font-weight: 700;
    margin-top: 15px;
}

.test-description {
    line-height: 2.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    /* overflow: scroll; */
}

.test-spacer {
    display: block;
    width: 1px;
    height: 15px;
    background: black;
    margin: 20px auto 0px;
}

.test-scroll {
    
    font-size: 0.7em;
    font-weight: 700;
    text-align: center;
}

.test-closer {
    content: url(../img/icon-plus.svg);
    position: absolute;
    width: 32px;
    height: 32px;
    aspect-ratio: 1;
    right: calc(((100vw - 500px) / 2) - 16px);
    top: 4px;
    transform: rotate(45deg);
    cursor: pointer;
    z-index: 1;
}

.test-left-arrow {
    width: 42px;
    height: 42px;
    padding: 10px;
    background: no-repeat center url(../img/icon-arrow.svg);
    position: absolute;
    left: calc(((100vw - 500px)/2) - 52px);
    top: calc(50% - 21px);
    transform: rotate(90deg);
    cursor: pointer;
}

.test-right-arrow {
    width: 42px;
    height: 42px;
    padding: 10px;
    background: no-repeat center url(../img/icon-arrow.svg);
    position: absolute;
    right: calc(((100vw - 500px)/2) - 52px);
    top: calc(50% - 21px);
    transform: rotate(-90deg);
    cursor: pointer;
}

/* footer */
p.m-footer-text {
    font-size: 0.7em;
    text-align: center;
    margin: 1em auto;
}

/* cases */
.m-company-cases-header {
    font-size: 2em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.m-company-cases {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* padding: 50px 0 0; */
    /* background: #f6f6f6;
    padding: 50px 25px; */
}

.m-company-profile {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    /* gap: 20px; */
}

a.m-company-case {
    display: flex;
    /* flex-direction: column; */
    gap: 35px;
    /* padding-bottom: 5px;
    border-bottom: 1px solid #cccccc; */
}

.m-company-cases-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

picture.m-company-case-image {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1.5;
    /* background: tomato; */
}

a.m-company-case:nth-child(2) picture.m-company-case-image {
    background: right/cover no-repeat url(../img/img-hero_musvi.webp);
}
a.m-company-case:nth-child(1) picture.m-company-case-image {
    background: right/cover no-repeat url(../img/img-hero_kobunshoin.webp);
}

.m-company-case-title {
    font-size: 1.7em;
    font-weight: 700;
}

h3.m-company-cases-subtitle {
    font-size: 2.6em;
    font-family: "Shippori Antique B1", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-left: 50px;
    margin-bottom: 25px;
}

.m-company-case-description {
    font-size: 1.1em;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 2em;
    padding-left: 20px;
    border-left: 1px solid #cccccc;
    height: fit-content;
}

.m-company-case-link {
    font-weight: 700;
    margin-top: auto;
    padding-top: 10px;
    /* text-align: right; */
}

.m-img-caption {
    text-align: center;
    color: gray;
    display: none;
}

.m-service-content, .m-philosophy-content {
    margin-bottom: 50px;
}

/* form */

.m-partnership-content {
    width: 100%;
    max-width: 1024px;
    margin: auto;
}

.m-partnership-title {
    font-size: 3.3em;
    font-weight: 700;
    text-align: center;
}

.m-partnership-description {
    font-size: 1.1em;
    line-height: 2.2em;
    max-width: 800px;
    margin: auto;
}

.m-partnership-contact {
    width: 100%;
    max-width: 1024px;
    margin: auto;
}

.m-partnership-contact-content {
    display: flex;
    flex-direction: column;
}

.m-partnership-contact-item {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
    margin-top: 50px;
    padding-bottom: 50px;
}

.m-partnership-contact-text {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 2em;
}

.m-partnership-contact-description {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.m-partnership-contact-details {
    font-size: 1.1em;
    line-height: 2.2em;
}

/* .m-partnership-contact-form {background: #c2c2c2;} */

iframe {
    width: 100%;
    height: 100%;
}

.m-partnership-contact-item:nth-child(1) {
    border-bottom: 1px solid #000;
}

.m-partnership-contact-title {
    font-size: 1.3em;
    width: fit-content;
    margin: 100px auto 0 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.m-partnership-contact-title:after {
    content: "私たちとお話ししませんか";
    position: absolute;
    transform: translateY(-9px);
}

/* 親要素からはみ出た部分は overflow: hidden で隠す*/
.zoom__img {
    overflow: hidden;
}
/* transitionでscaleとobuject-positonをアニメーション */
.zoom__img img {
    transition: transform .3s ,object-position .3s;
    width: 100%;
    height: auto;
    display: block;
}
/* hover時に画像を拡大 */
.zoom__img:hover img {
    /* transform: scale(3); */
    position: relative;
}

/* モーダル */
.m-highlight-clickable {
    cursor: pointer;
}

.m-howto-additional, .m-service-areas-additional {
    position: fixed;
    top: 90px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100% - 90px);
    padding: 0px 100px 50px;
    background-color: #ffffffbf;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: 500ms;
    display: flex;
    align-items: center;
    justify-content: center;
}

picture.m-howto-image-additional, picture.m-service-areas-image-additional {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 800px;
    /* height: 100%; */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

img.m-howto-image-img-additional, img.m-service-areas-image-img-additional {
    width: 100%;
}

.m-howto-image-additional-closer, .m-service-areas-image-additional-closer {
    content: url(../img/icon-plus.svg);
    position: absolute;
    width: 32px;
    height: 32px;
    aspect-ratio: 1;
    top: 0px;
    right: 0px;
    transform: rotate(45deg);
    cursor: pointer;
}

picture.m-howto-image-additional {
    height: fit-content;
}

.m-partnership-contact-text {
    font-size: 1.25em;
    text-indent: -1em;
    padding-left: 1em;
    line-height: 1.5em;
    margin-bottom: 0.5em;
}


@media screen and (max-width: 1024px) {
    .m-intro-text {
        padding-left: 25px;
        padding-right: 25px;
    }

    .m-intro-text {
        width: 90%;
        margin: 0px auto 0px;
    }

    .m-intro-title-underlay {
        height: 110px;
        position: sticky;
        top: 80px;
        z-index: 5;
        background: #ffffffBF;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .m-intro-content {
        z-index: 10;
    }
    
    section.m-philosophy {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    hr {
        margin: auto 25px;
    }
    
    section#service {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    section#about {
        padding-left: 25px;
        padding-right: 25px;
    }

    section.m-service {
        padding-left: 25px;
        padding-right: 25px;
    }

    section.m-partnership {
        padding: 0 25px;
    }
}

@media screen and (max-width: 768px) {
    * {
        font-size: 12px;
    }

    header.l-header {
        padding: 0 20px;
    }
    
    ul.m-nav-list {
        display: none;
    }

    .m-menu-container-sp {
        display: block;
    }
    
    h3.m-philosophy-subtitle {
        font-size: 2.4em;
        padding-left: 25px;
    }
    
    .m-howto-details {gap: 25px;}
    
    picture.m-howto-image {
        width: 280px;
    }
    
    h3.m-service-subtitle {
        font-size: 2.2em;
        padding-left: 25px;
    }
    
    .m-service-areas {
        grid-template-columns: auto auto;
    }
    
    picture.m-service-areas-image {
        width: 280px;
    }
    
    .m-service-area {
        padding: 50px 25px;
    }
    
    h3.m-company-cases-subtitle {
        font-size: 2.2em;
        padding-left: 25px;
    }
    
    h3.m-about-subtitle {
        font-size: 2.2em;
        padding-left: 25px;
    }
    
    ul.m-team-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .m-partnership-contact-item {
        grid-template-columns: 1fr;
    }

    .m-service-area-header {
        margin-bottom: 25px;
    }
    
    .m-service-area-subtitle {
        font-size: 2.5em;
    }
    
    hr {
        margin-left: initial;
    }
}

@media screen and (max-width: 500px) {
    .br-pc {
        display: none;
    }
    .br-sp {
        display: initial;
    }

    section#service, section#company-case, section#about {
        /* padding-top: 100px; */
    }
    
    a.m-logo img {
        width: 130px;
        height: auto;
    }
    
    ul.m-nav-list-sp {
        grid-template-columns: 1fr;
    }
    
    .m-menu-sp {
        bottom: unset;
        top: 80px;
        padding: 10px 0 20px;
    }
    
    a.m-nav-cta {
        padding: 0 1.5em;
    }

    .m-intro-content {
        padding: 0 5vw;
        top: 80px;
    }

    .m-intro-text {
        span.m-highlight {
            font-size: 6.5vw;
            text-align: center;
        }
    }
    
    h1.m-intro-title {
        font-size: 10vw;
    }

    .m-intro-text {
        width: 100%;
    }
    
    h3.m-philosophy-subtitle, h3.m-service-subtitle, h3.m-service-subtitle, h3.m-company-cases-subtitle, h3.m-about-subtitle {
        padding: initial;
    }
    
    picture.m-quadrants-image {
        padding: 100px 0 10px;
    }
    
    .m-howto-details {
        grid-template-columns: 1fr;
        gap: initial;
    }
    
    .m-service-areas {
        grid-template-columns: 1fr;
        gap: initial;
    }

    picture.m-howto-image {
        display: none;
    }

    picture.m-service-areas-image {
        display: none;
    }

    .m-philosophy-text {
        width: 100%;
    }
    
    .m-philosophy-details {
        gap: initial;
    }
    
    .m-service-area {
        padding-right: 0px;
    }
    
    picture.m-service-image {
        padding: 100px 0 10px;
    }
    
    picture.m-service-overview-image {
        padding: 100px 0 10px;
    }
    
    a.m-company-case {
        flex-direction: column;
    }
    
    picture.m-company-case-image {
        max-width: none;
    }
    
    .m-about-details {
        grid-template-columns: 1fr;
    }
    
    picture.m-about-image {
        margin: 0 auto 50px auto;
        max-width: 200px;
    }
    
    ul.m-team-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }

    .test-left-arrow {
        left: 0px;
        z-index: 1;
    }
    
    .test-right-arrow {
        z-index: 1;
        right: 0;
    }

    .test {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    .test-card {
        margin: 0;
        max-height: calc(100vh - (90px + 5px));
    }
    
    .test-closer {
        top: 10px;
        right: 10px;
    }

    .test-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
    }
    
    .m-company-profile {
        gap: 10px;
    }

    h2.m-philosophy-title, h2.m-service-title, h2.m-company-cases-header, h2.m-about-title {
        font-size: 1.7em;
    }

    .m-img-caption {
        display: inherit;
    }

    .m-partnership-contact-title img {
        width: 100%;
    }

    .m-partnership-contact-text {
        font-size: 1.4em;
    }

    /* モーダル */
    .m-howto-additional {
        top: 80px;
        height: calc(100% - 80px);
        padding: 0px 10px 50px;
    }
    
    picture.m-howto-image-additional {
        padding: 10px;
    }


    .zoom__img:hover img {
        transform: scale(3);
        position: relative;
    }
}