@charset "utf-8";

/* 色の変数　　color: var(--blue); */
:root {
    --white: #fff;
    --black: #000;
    --blue: #333b97;
    --lightblue: #00edff;
    --green: #57766b;
    --lightyellow: #e5e5b4;
    --lightgreen: #cce8d9;
    --yellow: #bebe3c;
    --beige: #fcf6e8;
    --gray: #e0e0e0;
    --red: #903f3f;
    --lightpink: #dea4a4;
    --purple: #6b4378;
    --brown: #7e622a;
    --html: #B84020;
    --css: #115A90;
    --javascript: #D1B81A;
    --php: #733288;


    /* 書式 */
    --notoSans: "Noto Sans JP", sans-serif;


    /* 文字サイズ */
    --size12: 1.2rem;
    --size15: 1.5rem;
    --size16: 1.6rem;
    --size17: 1.7rem;
    --size18: 1.8rem;
    --size20: 2rem;
    --size22: 2.2rem;
    --size24: 2.4rem;
    --size26: 2.6rem;
    --size30: 3rem;
    --size35: 3.5rem;
    --size36: 3.6rem;

    /* ウェイト */
    --weight700: 700;
    --weight500: 500;

    /* 行間 */
    --lineHight133: 1.333333;
    --lineHight15: 1.5;
    --lineHight175: 1.75;

    /* 文字間 */
    --fontSpace005: 0.05em;

    /* トランジションの変数　 */
    --transitionBase: all 0.4s ease-in-out;

    /* 角丸の変数　 */
    --borderRadius50: 50px;
    --borderRadius20: 20px;
    --borderRadius10: 10px;
}



@media screen and (max-width: 1200px) {
    :root {
        /* サイズ */
        --size15: 1.4rem;
        --size16: 1.5rem;
        --size17: 1.6rem;
        --size18: 1.7rem;
        --size20: 1.9rem;
        --size22: 2.1rem;
        --size24: 2.3rem;
        --size26: 2.5rem;
        --size30: 2.9rem;
        --size35: 3.4rem;
        --size36: 3.5rem;
    }
}

@media screen and (max-width: 1024px) {
    :root {
        /* サイズ */
        --size15: 1.4rem;
        --size16: 1.5rem;
        --size17: 1.6rem;
        --size18: 1.7rem;
        --size20: 1.8rem;
        --size22: 2.2rem;
        --size24: 2.2rem;
        --size26: 2.4rem;
        --size30: 2.75rem;
        --size35: 3.2rem;
        --size36: 3.3rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        /* サイズ */
        --size15: 1.4rem;
        --size16: 1.5rem;
        --size17: 1.6rem;
        --size18: 1.7rem;
        --size20: 1.8rem;
        --size22: 2.0rem;
        --size24: 2.1rem;
        --size26: 2.4rem;
        --size30: 2.5rem;
        --size35: 2.9rem;
        --size36: 3rem;
    }
}

@media screen and (max-width: 600px) {
    :root {
        /* サイズ */
        --size15: 1.4rem;
        --size16: 1.4rem;
        --size17: 1.5rem;
        --size18: 1.6rem;
        --size20: 1.7rem;
        --size22: 1.8rem;
        --size24: 2rem;
        --size26: 2.3rem;
        --size30: 2.5rem;
        --size35: 2.7rem;
        --size36: 2.8rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        /* サイズ */
        --size15: 1.3rem;
        --size16: 1.3rem;
        --size17: 1.4rem;
        --size18: 1.5rem;
        --size20: 1.6rem;
        --size22: 1.7rem;
        --size24: 1.9rem;
        --size26: 2.3rem;
        --size30: 2.4rem;
        --size35: 2.6rem;
        --size36: 2.7rem;
    }
}

@media screen and (max-width: 390px) {
    :root {
        /* サイズ */
        --size26: 2rem;
        --size30: 2.1rem;
        --size35: 2.2rem;
        --size36: 2.3rem;
    }
}

/* ーーーーーーーーーーーーーーー
common
ーーーーーーーーーーーーーーー */
body {
    color: var(--black);
    font-family: var(--notoSans);
    font-weight: var(--weight700);
    font-size: var(--size18);
}

main {
    padding-bottom: 10%;
}


.section {
    padding: 0 0 clamp(30px, 7vw, 100px);
}


.section__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.single-post h2,
.section__ttl {
    width: fit-content;
    padding: 10px;
    background-color: #f6f6f6;
    border-left: 5px solid var(--blue);
    font-size: var(--size26);
    margin-bottom: max(4%, 25px);
}

.single-post h2 {

    font-size: var(--size30);

    &:not(:first-child) {
        margin-top: max(12%, 40px);
    }
}


.section__txt {
    font-weight: var(--weight500);
    margin-bottom: max(1%, 5px);
    font-size: var(--size18);
    line-height: var(--lineHight15);
}

.section__txt--mTop {
    margin-top: max(2%, 15px);
}

.sectionBox {
    padding-left: max(2.5%, 15px);
    margin-bottom: 5%;
}

.sectionBox__list {
    margin-bottom: max(3%, 20px);
}

/* .sectionBox__ttl {
    position: relative;
    font-size: var(--size22);

    &::before {
        position: absolute;
        content: "";
        width: 10px;
        height: 10px;
        background-color: var(--black);
        border-radius: var(--borderRadius50);
        top: calc((var(--size22)) / 2);
        right: 101%;
        transform: translateY(-30%);
    }
} */



/* .sectionBox__detail {
    margin-top: max(1%, 5px);
} */


.marker {
    background: linear-gradient(transparent 81%, var(--lightblue) 90%);
}

.marker-html {
    background: linear-gradient(transparent 81%, var(--html) 90%);
}

.marker-css {
    background: linear-gradient(transparent 81%, var(--css) 90%);
}

.marker-javascript {
    background: linear-gradient(transparent 81%, var(--javascript) 90%);
}

.marker-php {
    background: linear-gradient(transparent 81%, var(--php) 90%);
}

.bg-gray {
    display: inline-block;
    background-color: var(--gray);
    padding: 2px 5px;
}


.choiceBox {
    display: flex;
    justify-content: center;
    width: min(100%, 800px);
    margin: max(5%, 35px) auto max(5%, 25px);
}

.choiceBox__item {
    width: calc(100% / 4);
    margin-left: 50px;
    height: 50px;

    &:first-child {
        margin-left: 0;
    }

}

.choiceBox__link {
    width: 100%;
    height: 100%;
    background-color: var(--gray);
    border-radius: var(--borderRadius10);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black);
    transition: var(--transitionBase);

    &.html {

        &:hover,
        &.code-open {
            background-color: var(--html);
            color: var(--white);
        }
    }

    &.css {

        &:hover,
        &.code-open {
            background-color: var(--css);
            color: var(--white);
        }
    }

    &.javascript {

        &:hover,
        &.code-open {
            background-color: var(--javascript);
            color: var(--white);
        }
    }

    &.php {

        &:hover,
        &.code-open {
            background-color: var(--php);
            color: var(--white);
        }
    }
}


.choiceBox-sub {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 0;
    width: 100%;
    justify-content: flex-end;

    & .choiceBox__item {
        width: min(100%, 200px);
        margin-left: 0;
    }

    & .choiceBox__link {
        border-radius: 0;
    }
}

.sectionBox__code {
    margin-bottom: max(5%, 20px);
}

.sectionBox__html,
.sectionBox__css,
.sectionBox__javascript,
.sectionBox__php {
    position: relative;
    display: none;
}

.codeTtl {
    font-size: var(--size22);
    margin-bottom: 15px;
}


.test-number {
    color: var(--white);
    font-size: var(--size22);
    display: inline-block;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow__item {
    margin-bottom: max(3%, 20px);
}

@media screen and (max-width:1024px) {
    .push01 {
        display: inline-block;
    }

    .none01 {
        display: none;
    }

    .section__inner {
        padding: 0 max(6%, 15px);
    }
}

@media screen and (max-width:900px) {
    .sectionBox__code {
        margin-bottom: 80px;
    }
}

@media screen and (max-width:768px) {
    .push02 {
        display: inline-block;
    }

    .none02 {
        display: none;
    }

    .section__ttl {
        font-size: 2.3rem;
    }

    .test-number {
        font-size: 2.3rem;
    }

    .sectionBox__ttl {
        &::before {
            width: 5px;
            height: 5px;
            right: 101.5%;
            transform: none;
        }
    }
}

@media screen and (max-width:695px) {
    .choiceBox:not(.choiceBox-sub) {
        flex-direction: column;
    }

    .choiceBox__item:not(.choiceBox__item--sub) {
        width: 100%;
        margin: 0 auto 20px;

        &:last-child {
            margin: 0 auto;
        }
    }
}

@media screen and (max-width:480px) {
    .push03 {
        display: inline-block;
    }

    .none03 {
        display: none;
    }

    .sectionBox {
        padding-left: 0;
    }
}

/* ーーーーーーーーーーーーーーー
Prism.js
ーーーーーーーーーーーーーーー */
pre[class*=language-] {
    margin: 0;
    margin-bottom: 30px;
}

code[class*=language-] {
    font-size: var(--size18);
    white-space: pre-wrap;
}

/* ーーーーーーーーーーーーーーー
btn
ーーーーーーーーーーーーーーー */

.linkBtn {
    width: min(100%, 250px);
    margin: 20px 0;
}

.btn>a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--black);
    z-index: 50;
    transition: .3s;
    text-align: center;

    &::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        background-color: var(--black);
        top: 0;
        left: -101%;
        transition: .3s;
    }

    &:hover {
        color: var(--white);
        /* border-color: transparent; */

        &::after {
            left: 0;
            z-index: -1;
        }
    }
}

/* .btnTxt {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(0deg);
    font-size: var(--size18);
} */






/* ーーーーーーーーーーーーーーー
header
ーーーーーーーーーーーーーーー */
.headerNav-sp,
.hamburger {
    display: none;
}


.header {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(60px, 5.938vw, 110px);
    padding: 10px 20px 0;
    background-color: var(--white);
    z-index: 100;
}

.headerNav-pc {
    width: 100%;
    height: 100%;
}

.headerNav__list--pc {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
}

.headerNav__item--pc {
    font-size: var(--size18);
    position: relative;
}

.headerNav__item--pc a,
.headerNav__item--sp a {
    display: inline-block;
    padding: 20px 30px;
    transition: var(--transitionBase);
}


.headerNav__item--pc a:hover,
.headerNav__item--sp a:hover {

    background-color: var(--gray);
}


@media screen and (max-width:1024px) {
    .headerNav-pc {
        display: none;
    }

    .header {
        position: relative;
    }

    .headerNav-sp {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        transition: var(--transitionBase);
        background-color: var(--gray);
    }

    .active .headerNav-sp {
        right: 0;
    }

    .headerNav__list--sp {
        width: 45%;
        height: 100vh;
        margin: 0 0 0 auto;
        padding: clamp(80px, 9.77%, 100px) clamp(10px, 1.96%, 20px) 0 clamp(10px, 3%, 30px);
        background-color: var(--white);
    }

    .headerNav__item--sp {
        position: relative;
        width: min(100%, 200px);

        & a {
            width: 100%;
            padding: 20px 0 20px 10px;
        }
    }



    .hamburger {
        display: block;
        position: fixed;
        right: 1%;
        width: 55px;
        height: 55px;
        cursor: pointer;
        z-index: 100;
        transition: var(--transitionBase);
        background-color: var(--gray);
    }

    .line {
        position: absolute;
        width: 70%;
        height: 2px;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: .4s;
        background-color: var(--black);
    }

    .line:nth-of-type(1) {
        top: 25%;
    }

    .active .line:nth-of-type(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .line:nth-of-type(2) {
        top: 50%;
    }

    .active .line:nth-of-type(2) {
        opacity: 0;
    }

    .line:nth-of-type(3) {
        top: 75%;
    }

    .active .line:nth-of-type(3) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}


@media screen and (max-width:480px) {
    .headerNav__list--sp {
        width: 70%;
    }

    .hamburger {
        width: 45px;
        height: 45px;
    }

    .header {
        padding: 0;
    }
}


/* ーーーーーーーーーーーーーーー
mv
ーーーーーーーーーーーーーーー */
.mv {
    position: relative;
    margin-top: clamp(60px, 5.938vw, 110px);
    /* ヘッダーの高さ分 */
    height: max(20vw, 200px);
}

.mv__ttl {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(30px, 4vw, 60px);
}

@media screen and (max-width:1024px) {
    .mv {
        margin-top: 0;
    }
}

/* ーーーーーーーーーーーーーーー
テンプレ
ーーーーーーーーーーーーーーー */
.temp__list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: max(10%, 50px);
}

.temp__item {
    width: calc((100% - 120px)/4);
    aspect-ratio: 1 / 1;
    /* 幅と高さの比率を1:1に */
    font-size: 2.5rem;
    margin: 0 40px 40px 0;
    border: 3px solid var(--black);
    border-radius: var(--borderRadius25);
    background-color: var(--gray);
    transition: var(--transitionBase);
}

.temp__item:nth-child(4n) {
    margin-right: 0;
}

/* 最後の行のアイテムに対して margin-bottom: 0; を適用 */
/* .temp__item:nth-last-child(-n + 4) {
    margin-bottom: 0;
} */

.temp__item:hover {
    background-color: var(--white);
    transform: translateY(-5px);
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.3));
}

.temp__item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

@media screen and (max-width:1200px) {
    .temp__list {
        max-width: 768px;
        margin: max(10%, 50px) auto 0;
    }

    .temp__item {
        font-size: 2rem;
    }
}

@media screen and (max-width:768px) {
    .temp__item {
        width: calc((100% - 40px)/3);
        margin: 0 20px 20px 0;
        border: 2px solid var(--black);
    }

    .temp__item:nth-child(4n) {
        margin-right: 20px;
    }

    /* 最後の行のアイテムに対して margin-bottom: 0; を適用 */
    /*     .temp__item:nth-last-child(-n + 4) {
        margin-bottom: auto;
    } */

    .temp__item:nth-child(3n) {
        margin-right: 0;
    }
}

@media screen and (max-width:480px) {

    .temp__item {
        font-size: 1.2rem;
        border: 1px solid var(--black);
    }

    .temp__item {
        width: calc((100% - 20px)/3);
        margin: 0 10px 10px 0;
    }

    .temp__item:nth-child(4n) {
        margin-right: 10px;
    }

    .temp__item:last-child {
        margin-right: 0;
    }
}

@media screen and (max-width:328px) {
    .temp__item {
        font-size: 1rem;
    }
}


/* ーーーーーーーーーーーーーーー
footer
ーーーーーーーーーーーーーーー */

.footer {
    background-color: var(--gray);
    padding: clamp(30px, 3.13%, 50px) 0 clamp(15px, 3.44%, 55px);
    position: relative;
    font-size: 16px;
}

.footer-nav {
    max-width: 600px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
}

.footer-nav a {
    position: relative;
}

.footer-nav a:not(:first-child):before {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    background-color: #000;
    top: 50%;
    left: -14px;
    transform: translate(50%, -50%);
}

.copyright {
    text-align: center;
}

@media screen and (max-width:768px) {
    .footer {
        font-size: 14px;
    }

    .footer-nav {
        max-width: 500px;
    }

    .footer-nav a:not(:first-child):before {
        left: -6px;
    }
}

@media screen and (max-width:550px) {
    .footer {
        font-size: 12px;
    }

    .footer-nav {
        max-width: 430px;
    }
}

@media screen and (max-width:440px) {
    .footer-nav {
        max-width: none;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav a:not(:first-child):before {
        display: none;
    }

    .footer-nav a:not(:last-child) {
        margin-bottom: 10px;
    }
}

/*******************************************
headerサブメニュー
*******************************************/
.current_page_parent {
    background-color: var(--gray);
}

.acoItem {
    position: relative;

    & a {
        cursor: pointer;
    }

    & .subMenu {
        width: 100%;
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        background-color: #f2f2f2;
        opacity: 0;
        visibility: hidden;
        transition: var(--transitionBase);

        & a {
            width: 100%;
            text-align: center;
        }
    }

    &:hover .subMenu {
        opacity: 1;
        visibility: visible;
    }
}

@media screen and (max-width:1024px) {
    .acoItem {

        &>a::before,
        &>a::after {
            position: absolute;
            content: "";
            width: 10px;
            height: 1px;
            background-color: var(--black);
            top: 50%;
            left: 103%;
            transition: var(--transitionBase);

        }

        &>a::before {
            transform: translateY(-50%);
        }

        &>a::after {
            transform: translateY(-50%) rotate(90deg);
        }

        & .subMenu {
            display: none;
            opacity: 1;
            visibility: visible;
            transition: none;
        }

        &.open>a::before {
            transform: translateY(-50%) rotate(180deg);
        }

        &.open>a::after {
            transform: translateY(-50%) rotate(360deg);
        }

    }
}



/*******************************************
 wp
*******************************************/
.h3-box {
    margin-top: 4%;
    margin-bottom: max(3%, 20px);
}

.single-post .h3-box h3 {
    line-height: 1.5;
    display: inline;
    border-bottom: 5px solid #b6bcff;
    max-width: fit-content;
    font-size: var(--size26);
}

h4 {
    position: relative;
    padding-left: 20px;
    font-size: var(--size22);
    margin-bottom: 10px;
    margin-top: 5%;

    &::before {
        position: absolute;
        content: "";
        width: 15px;
        height: 2px;
        background-color: var(--black);
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

.single-post h4 {
    margin-top: 2%;
}

.linkBtn-end {
    margin-top: 10%;
    margin-left: auto;
}

/*******************************************
フォームページで確認画面と完了画面のタイトルを非表示
*******************************************/
.page-id-15 .post-556,
.page-id-15 .post-559 {
    display: none;
}


/*******************************************
右下のreCAPTCHAのロゴを非表示
*******************************************/

.grecaptcha-badge {
    visibility: hidden;
}

/*******************************************
流れ続けるテキスト01
*******************************************/
.mvLoop__list {
    padding: max(1.25%, 5px) 0;
    background-color: var(--black);
    color: var(--white);
    min-width: 1000px;
    display: flex;
    white-space: nowrap;
}

.mvLoop__item {
    font-size: max(1.71vw, 15px);
    animation: mvLoop 20s linear infinite;
}


@keyframes mvLoop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/*******************************************
流れ続けるテキスト02
*******************************************/
.merit__txtLoop {
    position: relative;

    height: 100px;/* テンプレ用 */

    &::before,
    &::after {
        content: attr(data-text);
        font-size: max(4vw,50px);
        position: absolute;
        white-space: nowrap;
        color: var(--black);
        animation: keyframe_marquee 10s linear infinite;
    }

    &::after {
        animation: keyframe_marquee_invert 10s linear infinite;
    }
}

@keyframes keyframe_marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes keyframe_marquee_invert {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}