@charset "UTF-8";

/*
tablet: 959
mobile: 480
*/

/* ==================================
// Settings
================================== */

/* ====================
color scheme
==================== */
:root {
    --color-black: #181818;
    --color-gray: #bbbbbb;
    --color-lightgray: #EEEEEE;
    --color-orange: #ffbb66;
}

/* ====================
site settings
==================== */
* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: "游ゴシック体", YuGothic, "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Meiryo", sans-serif;
    font-size: 1.6rem;
    color: var(--color-black);
    background-color: white;
}

p {
    line-height: 1.6;
}

a {
    &:hover {
        text-decoration: none;
    }
}

img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

ul,ol {
    margin: 0;
    padding: 0;

    li {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    html {
      /* font-size: 3.125vw; */
      font-size: 2.6vw;
    }
}


/* ==================================
// Layouts
================================== */
.l-wrap {
    width: 100%;
}

.l-header {
    width: 100%;

    .l-header__inner {
        width: 96%;
        margin-right: auto;
        margin-left: auto;
        padding: 24px 0;
    }
}

.l-main {
    width: 100%;

    .l-main__inner {
        max-width: 944px;
        width: 90%;
        margin-right: auto;
        margin-left: auto;
        padding: 40px 0;
        border-bottom: 1px solid #EEEEEE;
    }

    @media screen and (max-width: 480px) {
        .l-main__inner {
            padding: 5% 0;
        }
    }
}

.l-footer {
    width: 100%;

    .l-footer__inner {
        max-width: 1024px;
        width: 90%;
        margin-right: auto;
        margin-left: auto;
        padding: 40px 0;

        @media screen and (max-width: 480px) {
            padding: 5% 0;
        }
    }
}


/* ==================================
// Projects
================================== */
.p-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    .p-header__item {
        width: 50%;

        &:last-child {
            display: flex;
            justify-content: flex-end;
        }
    }

    @media screen and (max-width: 959px) {
        .p-header__item {
            width: 60%;

            &:last-child {
                width: 30%;
            }
        }
    }
}

.p-logo {
    &.p-logo--jma {
        max-width: 370px;
    }
    &.p-logo--sub {
        max-width: 260px;
    }
    &.p-logo--jma,
    &.p-logo--sub {
        img {
            width: 100%;
        }
    }
}

.p-column {
    &.p-column--2for1 {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

        .p-column__item {
            width: 48%;
        }

        @media screen and (max-width: 959px) {
            .p-column__item {
                width: 100%;

                &.p-column__item--right {
                    margin-top: 40px;
                }
            }
        }
    }
}

.p-block {
    &.p-block--info {
        position: relative;
        padding-bottom: 24px;
        text-align: center;
        
        &::after {
            content: "";
            display: block;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 1px;
            background-color: #EEEEEE;
        }

        .p-block__item {
            a {
                color: #181818;
            }
            &.p-block__item--title {
                font-weight: bold;
                font-size: 2rem;
                line-height: 2;
            }
            &.p-block__item--text {
                font-size: 1.4rem;
                line-height: 2;
            }
        }

        @media screen and (max-width: 480px) {
            padding-bottom: 5%;

            .p-block__item {
                &.p-block__item--title {
                    font-size: 4vw;
                }
                &.p-block__item--text {
                    font-size: 3vw;
                }
            }
        }
    }
}

.p-nav {
    &.p-nav--footer {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 24px 0;
        line-height: 1.6;

        .p-nav__item {
            display: inline-block;
            text-align: center;
            font-size: 1.4rem;

            &::after {
                content: "|";
                display: inline-block;
                padding: 0 1rem;
                color: #EEEEEE;
            }

            a {
                color: #181818;
            }

            &:last-child {
                &::after {
                    content: none;
                }
            }
        }

        @media screen and (max-width: 480px) {
            padding: 5% 0;

            .p-nav__item {
                font-size: 3vw;

                 &::after {
                    padding: 0 1vw;
                 }
            }
        }
    }
}

.p-copyright {
    font-size: 1.2rem;
    text-align: center;
    color: #6d6d6d;

    @media screen and (max-width: 480px) {
        font-size: 3vw;
    }
}

.p-title {
    &.p-title--main {
        text-align: center;
        font-weight: bold;
        font-size: 2.8rem;
        line-height: 1.6;

        @media screen and (max-width: 480px) {
            font-size: 5.6vw;
        }
    }
}

.p-image {
    &.p-image--border {
        padding: 8px;
        text-align: center;
        border: 1px solid var(--color-lightgray);

        &.p-image--0padding {
            padding: 0;
        }
    }
}

/* コンテンツエリアのスタイリング */
.p-wysiwyg {
    line-height: 1.6;

    h2 {
        position: relative;
        margin-bottom: 16px;
        padding-bottom: 4px;
        font-weight: bold;
        font-size: 2rem;
        line-height: 2;

        &::before,
        &::after {
            content: "";
            display: block;
            position: absolute;
            bottom: 0;
            left: 0;
        }
        &::before {
            width: 100%;
            height: 3px;
            background-color: #e9e9e9;
        }
        &::after {
            width: 20%;
            height: 3px;
            background-color: #181818;
        }

        @media screen and (max-width: 480px) {
            margin-bottom: 5%;
            font-size: 5vw;
        }
    }

    h3 {
        margin-bottom: 14px;
        font-weight: bold;
        font-size: 1.8rem;
        border-bottom: 1px solid #e9e9e9;

        @media screen and (max-width: 480px) {
            margin-bottom: 5%;
            font-size: 4.6vw;
        }
    }

    h4 {
        margin-bottom: 14px;
        font-weight: bold;

        @media screen and (max-width: 480px) {
            margin-bottom: 5%;
        }
    }

    p {
        padding-bottom: 1.6rem;

        @media screen and (max-width: 480px) {
            padding-bottom: 5%;
        }
    }

    ul,
    ol {
        margin-bottom: 16px;
        margin-left: 8px;
        padding-left: 1rem;

        @media screen and (max-width: 480px) {
            margin-bottom: 5%;
        }
    }
    ul {
        li {
            list-style-type: disc;
        }
    }
    ol {
        li {
            list-style-type: decimal;
        }
    }

    table {
        width: 100%;
        margin-bottom: 24px;

        tr {
            th,
            td {
                padding: 8px;
                text-align: center;
                border-collapse: collapse !important;
                border: 1px solid var(--color-lightgray) !important;
            }
        }

        thead {
            tr {
                th {
                    background-color: lightgray;
                }
            }
        }

        @media screen and (max-width: 480px) {
            margin-bottom: 5%;
        }
    }

    dl {
        margin-bottom: 24px;

        dt {
            font-weight: bold;
        }
        dd {
            p {
                padding-top: 8px;
            }
        }

        @media screen and (max-width: 480px) {
            margin-bottom: 5%;
        }
    }

    .box {
        &.box--border {
            margin-bottom: 16px;
            padding: 24px;
            border: 2px solid var(--color-lightgray);

            ul {
                padding: 0;

                li {
                    position: relative;
                    list-style-type: none;
                    padding-left: 24px;

                    &::before {
                        content: "";
                        display: block;
                        position: absolute;
                        top: 50%;
                        left: 0;
                        transform: translateY(-50%);
                        width: 10px;
                        height: 10px;
                        border-radius: 50%;
                        background-color: var(--color-black);
                    }
                }
            }

            @media screen and (max-width: 480px) {
                margin-bottom: 5%;
                padding: 5%;

                ul {
                    li {
                        padding-left: 6%;
                    }
                }
            }
        }
    }
}

.p-form--marketo {
    margin: 0 auto 24px;
    padding: 24px;
    background-color: #f5f5f5;

    @media screen and (max-width: 480px) {
        margin: 0 auto 5%;
        padding: 5%;
    }
}

.p-box {
    &.p-box--privacy {
        width: 100%;
        margin-bottom: 16px;
        padding: 8px;
        border: 1px solid #d3d3d3;
        background-color: white;

        p {
            margin-bottom: 4px;

            strong {
                font-weight: bold;
            }
        }
    }
}


/* ==================================
// Utility
================================== */

/* ====================
position
==================== */
.u-pos-relative {
    position: relative;
}
.u-of-hidden {
    overflow: hidden;
}
.u-of-x-hidden {
    overflow-x: hidden;
}
.u-of-y-hidden {
    overflow-y: hidden;
}

/* ====================
width / height
==================== */
.u-mw-880 {
    max-width: 88rem;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}
.u-mw-720 {
    max-width: 72rem;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
}
.u-mw-200 {
    max-width: 20rem;
    width: 100%;
}

@media screen and (max-width: 480px) {
    .u-w-100-mb {
        width: 100%;
    }
    .u-w-80-mb {
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }
    .u-w-60-mb {
        width: 60%;
        margin-right: auto;
        margin-left: auto;
    }
}


/* ====================
display
==================== */
.u-d-inlineblock {
    display: inline-block;
}
.u-d-block {
    display: block;
}
@media screen and (max-width: 959px) {
    .u-d-none-tablet {
        display: none;
    }
}
@media screen and (max-width: 480px) {
    .u-d-none-mobile {
        display: none;
    }
}


/* ====================
margin
==================== */

/* margin */
.u-mx-auto {
    margin-right: auto;
    margin-left: auto;
}

/* margin-top */
.u-mt-8 {
    margin-top: .8rem;
}
.u-mt-16 {
    margin-top: 1.6rem;
}
.u-mt-24 {
    margin-top: 2.4rem;
}
.u-mt-40 {
    margin-top: 4rem;
}
.u-mt-48 {
    margin-top: 4.8rem;
}
.u-mt-64 {
    margin-top: 6.4rem;
}
.u-mt-80 {
    margin-top: 8rem;
}
@media screen and (max-width: 959px) {
    .u-mt-0-tb {
        margin-top: 0;
    }
    .u-mt-16-tb {
        margin-top: 1.6rem;
    }
    .u-mt-24-tb {
        margin-top: 2.4rem;
    }
    .u-mt-32-tb {
        margin-top: 3.2rem;
    }
    .u-mt-40-tb {
        margin-top: 4rem;
    }
    .u-mt-64-tb {
        margin-top: 6.4rem;
    }
    .u-mt-80-tb {
        margin-top: 8rem;
    }
}
@media screen and (max-width: 480px) {
    .u-mt-0-mb {
        margin-top: 0;
    }
    .u-mt-16-mb {
        margin-top: 1.6rem;
    }
    .u-mt-24-mb {
        margin-top: 2.4rem;
    }
    .u-mt-32-mb {
        margin-top: 3.2rem;
    }
    .u-mt-40-mb {
        margin-top: 4rem;
    }
    .u-mt-64-mb {
        margin-top: 6.4rem;
    }
    .u-mt-80-mb {
        margin-top: 8rem;
    }
}

/* margin-bottom */
.u-mb-8 {
    margin-bottom: .8rem;
}
.u-mb-16 {
    margin-bottom: 1.6rem;
}
.u-mb-24 {
    margin-bottom: 2.4rem;
}
.u-mb-40 {
    margin-bottom: 4rem;
}
.u-mb-48 {
    margin-bottom: 4.8rem;
}
.u-mb-64 {
    margin-bottom: 6.4rem;
}
.u-mb-80 {
    margin-bottom: 8rem;
}
@media screen and (max-width: 959px) {
    .u-mb-0-tb {
        margin-bottom: 0;
    }
    .u-mb-16-tb {
        margin-bottom: 1.6rem;
    }
    .u-mb-24-tb {
        margin-bottom: 2.4rem;
    }
    .u-mb-32-tb {
        margin-bottom: 3.2rem;
    }
    .u-mb-40-tb {
        margin-bottom: 4rem;
    }
    .u-mb-64-tb {
        margin-bottom: 6.4rem;
    }
    .u-mb-80-tb {
        margin-bottom: 8rem;
    }
}
@media screen and (max-width: 480px) {
    .u-mb-0-mb {
        margin-bottom: 0;
    }
    .u-mb-16-mb {
        margin-bottom: 1.6rem;
    }
    .u-mb-24-mb {
        margin-bottom: 2.4rem;
    }
    .u-mb-32-mb {
        margin-bottom: 3.2rem;
    }
    .u-mb-40-mb {
        margin-bottom: 4rem;
    }
    .u-mb-64-mb {
        margin-bottom: 6.4rem;
    }
    .u-mb-80-mb {
        margin-bottom: 8rem;
    }
}


/* ====================
text
==================== */

/* text-align */
.u-ta-left {
    text-align: left;
}
.u-ta-center {
    text-align: center;
}
.u-ta-right {
    text-align: right;
}
@media screen and (max-width: 480px) {
    .u-ta-left-mb {
        text-align: left;
    }
    .u-ta-center-mb {
        text-align: center;
    }
    .u-ta-right-mb {
        text-align: right;
    }
}

/* font-weight */
.u-fw-bold {
    font-weight: bold;
}


/* ==================================
// Marketo Form
================================== */
.mktoForm {
    width: 100% !important;
    max-width: 660px;
    margin-right: auto;
    margin-left: auto;

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea,
    select {
        padding: 8px !important;
        border: 1px solid #d3d3d3;
    }
    textarea {
        min-height: 80px;
        resize: vertical !important;
    }

    .mktoFormRow {
        .mktoFormCol {
            width: 100% !important;
            margin-bottom: 16px !important;

            .mktoOffset {
                display: none;
            }

            .mktoFieldWrap {
                width: 100% !important;

                &.mktoRequiredField {}

                label.mktoLabel {
                    float: none !important;
                    width: 100% !important;
                    display: flex;

                    .mktoAsterix {
                        float: none !important;
                        order: 2;
                    }
                }

                .mktoGutter {
                    display: none;
                }

                .mktoField {
                    float: none !important;
                    width: 100% !important;
                    margin-top: 8px;
                }

                /* パーツ（自由記述） */
                .mktoHtmlText {
                    width: 100% !important;
                }

                /* ラジオボタンとチェックボックス */
                .mktoRadioList,
                .mktoCheckboxList {
                    width: 100% !important;
                    padding: 8px 0 0 0 !important;

                    input {
                        float: left !important;
                        width: auto !important;
                        margin: 5px !important;
                        line-height: 1.2em;
                    }

                    label {
                        display: block !important;
                        margin-left: 0 !important;
                        padding-top: 4px;
                    }
                }

                /* チェックボックス（個人情報同意） */
                label#LblForm_PrivacyPolicyConsent__c ~ div.mktoLogicalField {
                    display: flex;
                    justify-content: center;
                }
            }
        }
    }

    .mktoButtonRow {
        width: 100% !important;

        .mktoButtonWrap {
            display: block;
            width: 100% !important;
            margin-left: 0 !important;

            .mktoButton {
                background-image: none !important;
                border: none !important;
                cursor: pointer !important;
                outline: none !important;
                appearance: none !important;

                display: block;
                width: 100%;
                max-width: 400px;
                margin: 0 auto !important;
                padding: 10px 16px !important;
                font-size: 1.8rem !important;
                border-radius: 6px;
                background-color: var(--color-orange) !important;
                opacity: 1;

                &:hover {
                    opacity: .8;
                }
            }
        }
    }

    @media screen and (max-width: 480px) {
        padding: 0 !important;

        textarea {
            min-height: 100px;
        }
        select {
            font-size: initial !important;
        }

        .mktoButtonRow {
            .mktoButtonWrap {
                .mktoButton {
                    font-size: 4.6vw !important;
                }
            }
        }
    }
}


/* ==================================
// Marketo CSS resetting
================================== */
.mktoGen.mktoImg {
    display: block !important;
}

/* ==================================
// Main Visual Centering
================================== */
#mkto_gen_heroImage {
    margin-bottom: 24px;
    text-align: center;
}
