@charset "utf-8";

/* ローディング画面全体 */
#loading {
    background-color: #f7f5f4;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

/* ロゴのコンテナ */
#loading_logo {
    width: 300px;
}

/* ロゴアニメーション */
.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------Mainvisual----------*/

.mainvisual {
    height: 80vh;
}

.main_container {
    width: min(80%, 1080px);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 10% 10% 20% 10% 20% 10% 10% 10%;
    grid-template-rows: repeat(4, 25%);
}

.mainvisual h1 {
    z-index: 3;
    grid-column: 2/6;
    grid-row: 3/4;
    color: var(--titlecolor);
    font-size: clamp(3.5rem, 2.75rem + 3vw, 5rem);
    justify-self: center;
    align-self: center;
    text-shadow: 0 0 10px #fff;
}

.mainvisual img {
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: 400px;
    aspect-ratio: 3/2;
    filter: opacity(0.8);
    grid-column: 4/8;
    grid-row: 2/5;
    grid-auto-flow: column;
    outline: 1px solid #fff;
    outline-offset: -10px;
}

@media screen and (max-width: 768px) {
    .main_container {
        width: 90%;
        grid-template-columns: repeat(4, 20%);
        grid-template-rows: repeat(5, 20%);
    }
    .mainvisual h1 {
        z-index: 3;
        grid-column: 1/5;
        grid-row: 3/4;
    }
    .mainvisual img {
        mask-image: url(../images/mask_window.svg);
        mask-repeat: no-repeat;
        mask-size: contain;
        width: 100%;
        max-width: 600px;
        height: 100%;
        max-height: none;
        filter: opacity(0.8);
        grid-column: 3/6;
        grid-row: 2/5;
        outline: none;
    }
}

/* scroll */

.col {
    display: flex;
    align-items: center;
    margin-top: -20vh;
}

.scroll-down-box {
    display: block;
    position: relative;
    text-decoration: none;
}
.scroll-down-box svg {
    fill: #111;
}
.scroll-down-box.alt svg {
    fill: var(--white);
}
.scroll-down-box .scroll-text {
    width: 100px;
    height: 100px;
    -webkit-animation: rotation 10s infinite linear;
    animation: rotation 10s infinite linear;
}
.scroll-down-box.alt .scroll-text {
    -webkit-animation: none;
    animation: none;
}
.scroll-down-box.alt:hover .scroll-text {
    -webkit-animation: rotation 10s infinite linear;
    animation: rotation 10s infinite linear;
}

.scroll-down-box .scroll-icon {
    width: 70px;
    height: 70px;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

.scroll-down-box.alt .scroll-icon {
    width: 35px;
}

.scroll-down-box:hover .scroll-icon {
    -webkit-animation: move 1s infinite linear;
    animation: move 1s infinite linear;
}

.scroll-down-box.alt:hover .scroll-icon {
    -webkit-animation: none;
    animation: none;
}

@keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes move {
    0% {
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    25% {
        -ms-transform: translate(-50%, -35%);
        -webkit-transform: translate(-50%, -35%);
        transform: translate(-50%, -35%);
    }
    50% {
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    75% {
        -ms-transform: translate(-50%, -65%);
        -webkit-transform: translate(-50%, -65%);
        transform: translate(-50%, -65%);
    }
    100% {
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}
@-webkit-keyframes move {
    0% {
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    25% {
        -ms-transform: translate(-50%, -40%);
        -webkit-transform: translate(-50%, -40%);
        transform: translate(-50%, -40%);
    }
    50% {
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    75% {
        -ms-transform: translate(-50%, -60%);
        -webkit-transform: translate(-50%, -60%);
        transform: translate(-50%, -60%);
    }
    100% {
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

/* CSS アニメーション　フェードイン */

.fadein {
    opacity: 0;
    transform: translate(0, 200px);
    transition: all 1s;
}

.fadein.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ----------------intro section---------------- */
.intro_text {
    text-align: center;
}

.intro_text p {
    word-break: auto-phrase;
}

.intro_text p:first-child {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ----------------Service section---------------- */
.service_unit ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.service_unit li {
    padding: 1rem;
    text-align: center;
}

.service_unit img {
    height: 100px;
    width: auto;
}

.service_title {
    font-family: var(--mainfont);
    font-size: 1.5rem;
    font-style: normal;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

span.service_text {
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.service_unit li p {
    font-size: 14px;
    text-align: justify;
    padding: 0 4em;
}

.service ol li {
    list-style-position: inside;
    display: flex;
    gap: 1rem;
}

.flow_sec {
    padding-left: 4rem;
    padding-right: 4rem;
}

.flow_sec .container > p {
    margin: 1rem auto;
    text-align: center;
}

.flow_unit > p {
    text-align: center;
    margin-bottom: 1rem;
}

.flow_unit > ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow_unit > ul > li {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 0px 15px -5px rgba(120, 120, 120, 0.7);
}

.flow_step_head {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-right: 1px dotted var(--textcolor);
    padding-right: 1rem;
}

.flow_step_head span:first-child {
    font-size: 1rem;
    font-family: var(--titlefont);
}

.flow_step_head span:last-child {
    font-size: 2rem;
    font-family: var(--titlefont);
    line-height: 1;
}

.flow_step_title {
    font-family: var(--mainfont);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: left;
}

.flow_step_p {
    margin-bottom: 0.5rem;
}

.flow_step_description {
    margin-left: 1rem;
}

.flow_step_description ol li {
    list-style-position: inside;
}

@media screen and (max-width: 900px) {
    .service_unit ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .service_unit ul {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* ----------project section---------- */

.project {
    margin-top: 5rem;
}

/* ----------page section---------- */

.works_sec {
    width: 100%;
}

.works_list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.works_list h3 {
    font-size: 1.25rem;
    font-family: var(--mainfont);
    font-style: normal;
}

.works_list figure:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
}

.works_list li .works_tag,
.works_list li .term_list {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.term_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.works_tag li,
.term_list li {
    text-align: center;
    padding: 0.25rem;
    font-size: 14px;
}
.works_tag li::before,
.term_list li::before {
    content: "\f02b";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* ----------Profile---------- */

.profile {
    width: 90%;
    display: grid;
    grid-template-columns: 2fr 3fr;
    margin: 0 auto 3rem;
}

.profile_detail > p {
    margin-top: 1rem;
    text-align: justify;
}

.profile_detail > p:first-child {
    text-align: center;
    font-size: 1.2rem;
}
.profile_detail > p:first-child span {
    display: block;
    text-align: center;
    font-size: 0.75rem;
}

.profile_detail dt {
    font-size: 1.2rem;
}

.profile img {
    width: 50%;
    justify-self: center;
    align-self: center;
    border: 1px solid var(--textcolor);
}

.profile_text {
    margin: 0 auto;
}

.skill_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.skill_list > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
    .works_list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .works_detail th,
    .works_detail td {
        display: block;
    }

    .flow_sec {
        padding-left: 0;
        padding-right: 0;
    }

    .flow_step_head {
        flex-direction: row;
        justify-content: center;
        align-items: baseline;
        border-right: none;
        border-bottom: 1px dotted var(--textcolor);
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .flow_step_head span {
        align-items: center;
    }

    .flow_unit > ul > li {
        flex-direction: column;
    }

    .skill > ul {
        display: grid;
        grid-template-columns: 1fr;
    }

    .about {
        flex-direction: column;
    }

    .about img {
        width: 300px;
    }

    .profile {
        display: flex;
        flex-direction: column;
    }

    .contact_sec form {
        padding: 20px;
    }

    .contact_sec h2 {
        font-size: 2em;
    }

    .footer_nav ul {
        width: 90%;
    }
}

/* -----------------------------------------お問い合せページ------------------------------------------------ */

.form {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.form_item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.form_label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    vertical-align: bottom;
}

/* 必須項目 */
.required {
    display: inline-block;
    background: #ea7474;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem;
    margin-left: 0.5rem;
    vertical-align: bottom;
}

/* 入力エリアのサイズ */

.form_content {
    width: 60%;
}

.form_content #fullname,
.form_content #email,
.form_content #company {
    width: 100%;
    height: 40px;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #707070;
}

/* テキストエリアのサイズ */
.form_content textarea {
    width: 100%;
    height: 200px;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #707070;
}

.form_content.checkbox_content {
    display: flex;
    flex-direction: column;
}

.form_content.checkbox_content span {
    margin-left: 10px;
}

.contact_privacylink {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    word-break: auto-phrase;
}

.contact_privacylink a {
    color: var(--pointcolor);
}

.contact_privacylink a:hover {
    text-decoration: underline;
}

/* 送信ボタン */
.btn-send,
.btn-back {
    display: block;
    width: 130px;
    background: var(--pointcolor);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 0;
    margin: 0 auto;
    border-radius: 5px;
    font-family: var(--mainfont);
    border: 1pcx solid var(--white);
}

@media screen and (max-width: 768px) {
    .form_item {
        width: 100%;
        max-width: 400px;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        margin: 0 auto;
    }
    .form {
        padding: 0;
        align-items: center;
    }
    .form_content {
        width: 100%;
        max-width: 400px;
    }

    .contact_privacylink {
        padding: 0;
    }
}

/* -----------------------------------------privacy policy----------------------------------------------- */

.content.privacy h2 {
    font-size: 1.5rem;
    text-align: left;
    font-family: var(--mainfont);
    font-style: normal;
}

.content.privacy > ul {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* page 詳細ページ　single-page.php */

.post_title {
    margin-bottom: 1.062em;
    font-size: clamp(1.5rem, 0.343rem + 2.41vw, 2rem);
    font-weight: bold;
    line-height: 1.625;
    font-style: normal;
}

.works_p p {
    text-align: center;
    margin-bottom: 1rem;
    word-break: auto-phrase;
}

.works_single .works_eyecatch {
    margin-bottom: 5rem;
    background-color: #ffffff;
    border: 10px solid #fff;
    border-radius: 10px;
    line-height: 0;
}
.works_single .works_eyecatch img {
    width: 100%;
}
.works_single .works_content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 70px;
    gap: 3rem;
}
.works_single .item-left {
    flex: 2;
    font-size: 1rem;
}

.works_single .item-left p {
    word-break: auto-phrase;
}

.item-left .works_content_box {
    margin-bottom: 1rem;
}

.item-left .works_content_box h3 {
    font-family: var(--mainfont);
    font-style: normal;
    font-size: 1.25rem;
    text-align: left;
    border-bottom: 1px dotted var(--pointcolor);
    padding-bottom: 0.25rem;
}

.item-left .term_list {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.works_single .view-more {
    margin-top: 2rem;
    width: 100%;
}

.works_single .view-more a {
    width: 100%;
    overflow-wrap: break-word;
}

.works_single .view-more a:hover {
    color: var(--pointcolor);
}

.works_single .item-right {
    flex: 1;
    font-size: 1rem;
    line-height: 2;
}
.works_single .item-right dl {
    display: flex;
    justify-content: space-between;
}
.works_single .item-right dl:nth-of-type(2) {
    margin-bottom: 2rem;
}
.works_single .item-right dl dt {
    min-width: 4.5em;
    margin-right: 1.5em;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .works_single .works_content {
        flex-direction: column;
    }
}

.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}
/* .page-nav li {
    width: 20%;
    min-width: 8rem;
} */
.page-nav li:first-of-type a::after {
    right: auto;
    left: 0.5rem;
    transform: translateY(-50%) scale(-1, 1);
}
.page-nav a {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    background-color: rgb(from var(--pointcolor) r g b / 0.7);
    padding: 1rem 1.5rem;
    display: inline-block;
    transition: 0.3s;
    position: relative;
}

.page-nav a::after {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
}
.page-nav a:hover {
    border-radius: 16px;
}

/* --------------------service-------------------- */

.content.service_content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;

    /* box-shadow: 0px 0px 15px -5px rgba(120, 120, 120, 0.7); */
    /* display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%;
    grid-template-rows: 25% 25% 25% 25%; */
}

/* .service img {
    outline: 1px solid #fff;
    outline-offset: -10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    grid-column: 1 /4;
    grid-row: 1 / 4;
} */

.service_textbox {
    background: linear-gradient(#ffffffba, #ffffffba) center center / cover
            no-repeat,
        url(../images/serviceimage04.jpg) center center / cover no-repeat;
    padding: 1rem;
    outline: 1px solid var(--titlecolor);
    outline-offset: -10px;
}

.service_inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.service_inner:last-child {
    padding-top: 0;
}

.service h2 {
    text-align: center;
    font-size: 2rem;
    font-style: normal;
    font-family: var(--mainfont);
}

.service h3 {
    text-align: left;
    font-size: 1.5rem;
    font-style: normal;
    font-family: var(--mainfont);
}

.flow .container > p {
    text-align: center;
    margin-top: 1rem;
}

.service-price table {
    width: min(80%, 900px);
    margin-inline: auto;
}
.service-price table tr {
    border-bottom: 1px solid rgb(from var(--titlecolor) r g b / 0.2);
    height: 3rem;
    vertical-align: middle;
}

.service-price table th {
    width: 50%;
    min-width: 12em;
    text-align: left;
    font-weight: normal;
    vertical-align: middle;
}

.service-price table th span {
    display: block;
    font-size: 12px;
    text-indent: 0.5em;
}
.service-price table td {
    text-align: right;
    vertical-align: middle;
}

@media screen and (max-width: 900px) {
    .service {
        display: block;
        padding: 0;
    }

    .service ol li {
        flex-direction: column;
        gap: 0.25rem;
    }
    .service-price table {
        width: 100%;
    }

    .flow_step_title {
        flex-basis: inherit; /* ラベル部分の固定幅 */
        flex-shrink: 0; /* 幅を縮めない */
    }

    .works_single .item-left {
        width: 100%;
    }
}
