@charset "utf-8";
/*
Theme Name: 株式会社平成測量
Author: BASARA
Version: 1.0
*/

:root {
    --light: #e8f3fc;
    --dark: #39434c;
    --base: #178ce5;
}
*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    backface-visibility: hidden;
}
html {
    margin: 0;
    padding: 0;
}
body {
    min-width: 375px;
    margin: 0;
    padding: 0;
    transition: 0.1s ease-in-out;
    color: var(--dark);
    font-family: "Jost", "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-style: normal;
    overflow-wrap: anywhere; /* 収まらない場合に折り返す */
    word-break: normal; /* 単語の分割はデフォルトに依存 */
    line-break: strict; /* 禁則処理を厳格に適用 */
}
div,
p,
ul,
ul li,
dl,
dt,
dd {
    font-size: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img,
video,
object {
    max-width: 100%;
    height: auto;
    border: none;
}
img {
    display: block;
    image-rendering: -webkit-optimize-contrast;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.5;
    letter-spacing: 0;
    padding: 0;
    margin: 0;
}
a {
    color: var(--color-main);
    text-decoration: none;
    transition: all ease 0.3s;
}
.sp_none {
    display: block;
}
.pc_none {
    display: none;
}
@media (max-width: 1024px) {
    header *,
    main *,
    footer * {
        font-size: 14px;
    }
    .sp_none {
        display: none;
    }
    .pc_none {
        display: block;
    }
}
/* =========================================================================================
共通
=========================================================================================*/
p {
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1.8em;
    text-align: justify;
}
a {
    text-decoration: none;
}
main {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.container {
    width: 80%;
    max-width: 1200px;
    box-sizing: border-box;
}
li {
    list-style: none;
    line-height: 1.8em;
}
.img {
    line-height: 0;
}
img {
    width: 100%;
}
a.more {
    font-size: 17px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 7px 54px;
    position: relative;
}
a.more.sp_none {
    display: inline;
}
a.more::after {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 9px;
    height: 11px;
    content: "";
    background-size: contain;
}
.bg_text {
    font-size: 200px;
    color: #fff;
    opacity: 0.3;
    position: absolute;
    top: 45px;
    left: 76px;
}
.img_none {
    display: none;
}
/* ------------------ sp ---------------------------*/
@media (max-width: 1024px) {
    .container {
        width: calc(100% - 40px);
    }
    p {
        font-size: 15px;
        letter-spacing: 0;
    }
    a.more {
        padding: 7px 48px;
        font-size: 14px;
    }
    a.more.sp_none {
        display: none;
    }
    a.more::after {
        width: 8px;
        height: 10px;
    }
}
/* =========================================================================================
HEADER
=========================================================================================*/
#header {
    background: var(--dark);
    padding: 28px 60px;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    z-index: 99;
    top: -100px;
    transition: 0.3s ease-in-out;
}
#header.fixed {
    top: 0;
}
#header .logo {
    width: 200px;
    position: fixed;
    left: 60px;
    top: 30px;
}
#header h1.logo {
    font-size: 1em;
    line-height: 1;
}
#header .logo a:hover {
    opacity: 0.7;
}
#header .menu li:not(:last-of-type) {
    margin-right: 76px;
}
#header .menu li.active a,
#header .menu li a:hover {
    color: var(--base);
}
#header .menu li a {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
#header .sp_menu_container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
}
#header .menu_contact a::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 100%;
    background-image: url(images/common/icon_mail_l.svg);
    background-position: center;
    background-repeat: no-repeat;
}
#header .menu_contact a:hover::before,
#header .menu_contact.active a::before {
    background-image: url(images/common/icon_mail_b.svg);
}
#header ul.menu {
    display: flex;
}
#header .button_block {
    display: none;
}
/* ------------------ sp ---------------------------*/
@media (max-width: 1024px) {
    #header,
    #header.fixed {
        top: -100%;
        padding: 0;
        z-index: 999;
        height: 100vh;
        transition: 0.5s ease-in-out;
    }
    #header.active {
        top: 0;
    }
    #header .logo {
        left: 20px;
        top: 20px;
    }
    #header .sp_menu_container {
        justify-content: center;
    }
    #header ul.menu {
        flex-direction: column;
        margin-top: 120px;
    }
    #header .menu li:not(:last-of-type) {
        margin-right: 0;
    }
    #header ul.menu li:not(:last-of-type) {
        margin-bottom: 25px;
    }
    #header .menu li {
        text-align: center;
    }
    #header .button_block {
        display: block;
        position: fixed;
        right: 10px;
        top: 10px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        background: var(--dark);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 1em;
    }
    .sp_menu {
        position: relative;
        height: 16px;
        width: 28px;
        cursor: pointer;
        margin: 5px;
    }
    .sp_menu span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        position: absolute;
        transition: 0.2s ease-in;
    }
    .sp_menu span:first-of-type {
        top: 0;
    }
    .sp_menu span:nth-of-type(2) {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .sp_menu span:last-of-type {
        bottom: 0;
    }
    .sp_menu.active span:first-of-type {
        transform: rotate(45deg);
        top: 7px;
    }
    .sp_menu.active span:nth-of-type(2) {
        width: 0;
    }
    .sp_menu.active span:last-of-type {
        transform: rotate(-45deg);
        bottom: 7px;
    }
    body.active {
        overflow: hidden;
    }
}

/* =========================================================================================
Footer
=========================================================================================*/
footer {
    display: flex;
    justify-content: center;
    background: var(--dark);
    padding: 100px 0 50px;
    z-index: 21;
    position: relative;
}
footer .logo {
    width: 260px;
    margin-bottom: 10px;
}
.footer_menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid #fff;
    margin-bottom: 30px;
    padding-bottom: 30px;
}
footer ul.menu {
    display: flex;
}
footer ul.menu li:not(:last-of-type) {
    margin-right: 76px;
}
footer ul.menu li a {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
footer p,
footer p span,
address,
.address_block a {
    color: #fff;
    font-weight: 400;
}
footer p {
    letter-spacing: 0;
}
footer p span {
    font-weight: 700;
    letter-spacing: 0;
    padding-right: 18px;
}
.address_block {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
}
address {
    font-size: 13px;
    letter-spacing: 0.1em;
}
.address_block a {
    display: flex;
    align-items: center;
    font-size: 16px;
}
.address_block a:first-of-type {
    margin-right: 20px;
}
.address_block a::after {
    content: "";
    display: inline-block;
    background-image: url(images/common/icon_link.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    margin-left: 10px;
}
footer a:hover {
    color: var(--base) !important;
}
.address_block a:hover::after {
    background-image: url(images/common/icon_link_b.svg);
}
.address_block div {
    display: flex;
    flex-wrap: wrap;
}
/* ------------------ sp ---------------------------*/
@media (max-width: 1024px) {
    footer {
        padding: 60px 0 90px;
    }
    footer .logo {
        width: 212px;
        margin-bottom: 35px;
    }
    .footer_menu {
        margin-bottom: 20px;
        padding-bottom: 40px;
        flex-direction: column;
        align-items: center;
    }
    footer ul.menu {
        width: 200px;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    footer .menu li:not(:nth-last-of-type(-n + 2)) {
        margin-bottom: 12px;
    }
    footer .menu li:not(:last-of-type) {
        margin-right: 0 !important;
    }
    footer .menu li {
        width: 85px;
        text-align: center;
    }
    footer p {
        font-size: 14px;
        text-align: center;
    }
    footer p span {
        padding-right: 0;
        display: block;
        font-size: 15px;
    }
    .address_block {
        flex-direction: column-reverse;
        align-items: center;
        margin-top: 40px;
    }
    address {
        font-size: 10px;
        margin-top: 40px;
    }
    .address_block div {
        flex-direction: column;
        align-items: center;
    }
    .address_block a:first-of-type {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* =========================================================================================
page top
=========================================================================================*/
#page_top {
    width: 70px;
    height: 70px;
    position: fixed;
    right: 40px;
    bottom: 50px;
    z-index: 99;
}

#page_top a {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    padding-top: 4px;
    box-sizing: border-box;
}
#page_top a:hover {
    background: var(--base);
    border: 1px solid var(--base);
    color: #fff;
}

#page_top a::before {
    content: "";
    display: inline-block;
    background-image: url(images/common/arrow_d.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
    width: 10px;
    height: 13px;
}
#page_top a:hover::before {
    background-image: url(images/common/arrow_l.svg);
}
/* ------------------ sp ---------------------------*/
@media (max-width: 1024px) {
    #page_top {
        width: 50px;
        height: 50px;
        right: 10px;
        bottom: 20px;
    }
    #page_top a {
        font-size: 12px;
    }
    #page_top a img {
        width: 7px;
    }
}
