/* リセットCSS */

/*! destyle.css v4.0.1 | MIT License | https://github.com/nicolas-cusan/destyle.css */

/* Reset box-model and set borders */
/* ============================================ */

*,
::before,
::after {
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Document */
/* ============================================ */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 * 3. Remove gray overlay on links for iOS.
 */

html {
    line-height: 1.15;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
    -webkit-tap-highlight-color: transparent;
    /* 3*/
}

/* Sections */
/* ============================================ */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
    display: block;
}

/* Vertical rhythm */
/* ============================================ */

p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
    margin: 0;
}

/* Headings */
/* ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

/* Lists (enumeration) */
/* ============================================ */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Lists (definition) */
/* ============================================ */

dt {
    font-weight: bold;
}

dd {
    margin-left: 0;
}

/* Grouping content */
/* ============================================ */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
    border-top-width: 1px;
    margin: 0;
    clear: both;
    color: inherit;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace;
    /* 1 */
    font-size: inherit;
    /* 2 */
}

address {
    font-style: inherit;
}

/* Text-level semantics */
/* ============================================ */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    text-decoration: underline dotted;
    /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace;
    /* 1 */
    font-size: inherit;
    /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Replaced content */
/* ============================================ */

/**
 * Prevent vertical alignment issues.
 */

svg,
img,
embed,
object,
iframe {
    vertical-align: bottom;
}

/* Forms */
/* ============================================ */

/**
 * Reset form fields to make them styleable.
 * 1. Make form elements stylable across systems iOS especially.
 * 2. Inherit text-transform from parent.
 */

button,
input,
optgroup,
select,
textarea {
    -webkit-appearance: none;
    /* 1 */
    appearance: none;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    text-align: inherit;
    text-transform: inherit;
    /* 2 */
}

/**
 * Correct cursors for clickable elements.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
    cursor: default;
}

/**
 * Improve outlines for Firefox and unify style with input elements & buttons.
 */

:-moz-focusring {
    outline: auto;
}

select:disabled {
    opacity: inherit;
}

/**
 * Remove padding
 */

option {
    padding: 0;
}

/**
 * Reset to invisible
 */

fieldset {
    margin: 0;
    padding: 0;
    min-width: 0;
}

legend {
    padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * Correct the outline style in Safari.
 */

[type="search"] {
    outline-offset: -2px;
    /* 1 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Fix font inheritance.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button;
    /* 1 */
    font: inherit;
    /* 2 */
}

/**
 * Fix appearance for Firefox
 */
[type="number"] {
    -moz-appearance: textfield;
}

/**
 * Clickable labels
 */

label[for] {
    cursor: pointer;
}

/* Interactive */
/* ============================================ */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/*
 * Remove outline for editable content.
 */

[contenteditable]:focus {
    outline: auto;
}

/* Tables */
/* ============================================ */

/**
1. Correct table border color inheritance in all Chrome and Safari.
*/

table {
    border-color: inherit;
    /* 1 */
    border-collapse: collapse;
}

caption {
    text-align: left;
}

td,
th {
    vertical-align: top;
    padding: 0;
}

th {
    text-align: left;
    font-weight: bold;
}



/*　リセットCSSここまで */
/* 基本設定 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto sans JP', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: clip;
    width: 100%;
}

body.active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body,
html,
figure {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

ul {
    padding-left: 20px;
}

.pc-block {
    display: block !important;
}

.sp-block {
    display: none !important;
}

@media (max-width: 800px) {
    .main-fv-image img {
        width: 100%;
        height: 100%;
        position: relative;
        aspect-ratio: unset;
    }

    .pc-block {
        display: none !important;
    }

    .sp-block {
        display: block !important;
    }
}

/* フッター */
.footer {
    width: 100%;
    background-color: #fff;
    padding: 30px 0;
    padding-bottom: 250px;

    .footer-copyright {
        font-size: 12px;
        letter-spacing: 0.3em;
        font-weight: 500;
        line-height: 1.6;
        text-align: center;
    }
}

/* メイン　共通 */
.main {
    width: 100%;
    background-color: #fff;
}

.main-container {
    width: 96%;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
}

.main-container2 {
    width: 94%;
    max-width: 450px;
    margin: 0 auto;
    padding: 50px;
}

.main-fv,
.main-station,
.main-method,
.main-faq,
.main-detail {
    position: relative;

    &::after {
        content: '';
        display: block;
        width: 100%;
        height: 20px;
        position: absolute;
        bottom: -10px;
        left: 0;
        z-index: 1;
        background-image: url('images/hart-gry.svg');
        background-size: auto 100%;
        background-repeat: space;
        background-position: center;
    }
}

.main-station-h2,
.main-method-h2,
.main-faq-h2 {
    font-family: 'M PLUS 1', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    font-weight: 600;
    font-size: 23px;
    line-height: 42px;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 20px;
}

.main-station-h3,
.main-method-h3,
.main-faq-h3 {
    font-family: 'M PLUS 1', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
}

@media (max-width: 800px) {
    .main-container {
        padding: 25px 0px;
    }
}

@media (min-width: 800px) {

    .main-fv,
    .main-station,
    .main-method {
        &::after {
            height: 30px !important;
            bottom: -15px !important;
            background-size: 60px 100% !important;
        }
    }

    .main-station-h2,
    .main-method-h2,
    .main-faq-h2 {
        font-size: 30px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .main-station-h3,
    .main-method-h3,
    .main-faq-h3 {
        font-size: 25px;
        line-height: 1.5;
        margin-bottom: 25px;
    }
}

.main-method-present{
    background: #fff;
    position: relative;
    padding: 15px 5.5% 30px 5.5%;
    border-radius: 20px;
    border: solid 4px #f8bd1e;
    margin-bottom: 40px;
    h2{
        font-size: 20px;
        text-align: center;
        font-weight: bold;
        font-family: 'M PLUS 1', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    }
    h3{
        font-size: 20px;
        margin: 20px 0 5px 0;
        font-weight: 600;
        color: #b73519;
        font-family: 'M PLUS 1', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    }
}


/* 追従ボタン */
.main-form {
    width: 100%;
    height: fit-content;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99;
    background: linear-gradient(0deg, rgb(0, 0, 0, 60%) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 40px 0 10px;
    pointer-events: none;

    a {
        width: 96%;
        max-width: 450px;
        margin: 0 auto;
        color: #fff;
        text-decoration: none;
        display: block;
        height: fit-content;
        border: 2px solid #ffffff;
        background: #1b47a6;
        font-family: 'M PLUS 1', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
        font-weight: 400;
        font-size: 24px;
        line-height: 50px;
        letter-spacing: 5%;
        text-align: center;
        pointer-events: all;
        transition: all 0.3s ease;

        &:hover {
            background: #fff;
            color: #1b47a6;
        }

        &.none-active {
            background: #666666;

            pointer-events: none;
        }
    }
}

@media (min-width: 800px) {
    .main-form {
        a {
            width: calc(clamp(370px, 80%, 1000px) - 100px);
            max-width: 700px;
        }
    }
}

/* メインファーストビュー */
.main-fv {
    width: 100%;
    height: fit-content;
    min-height: 100vh;
    padding-bottom: 50px;
    position: relative;
    background-color: #ae071a;

    &::before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        background-image: url('images/tile.webp');
        background-size: 16px 16px;
        background-repeat: repeat;
        z-index: 0;
        opacity: 0.1;
    }

    .main-fv-content {
        width: 96%;
        margin: auto;
        height: 100%;
        position: relative;
        z-index: 1;
    }

    .main-fv-top {
        position: relative;
        width: 94%;
        max-width: 450px;
        left: 2.5%;
        height: auto;
        aspect-ratio: 7/4;
        margin: 0 auto 0px;
        z-index: 2;
        background-image: url('images/top-sp.webp');
        background-size: contain;
        background-repeat: no-repeat;
    }

    .main-fv-box {
        width: 94%;
        max-width: 450px;
        margin: 20px auto 0;
        height: fit-content;
        position: relative;
        z-index: 2;
    }

    .main-fv-left,
    .main-fv-right {
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .main-fv-right {
        height: 100%;
    }

    @media(max-width:800px) {
        .main-fv-right {
            position: absolute;
            top: 20%;
        }
    }

    .main-fv-image {
        width: 100%;
        height: auto;
        aspect-ratio: 7/6;
        background-size: contain;
        background-repeat: no-repeat;

    }

    .main-fv-character,
    .main-fv-banner {
        width: 100%;
        height: auto;
    }

    .main-fv-character {
        aspect-ratio: 6/4;
    }

    .main-fv-banner {
        margin-top: -10%;
        position: relative;
        width: 100%;
        aspect-ratio: 6/2.5;
        background-image: url('images/banner.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    div.main-fv-heart {
        height: auto;
        aspect-ratio: 3/1;
        background-image: url('images/hart-white.svg');
        background-size: 20% 45%;
        background-repeat: space;
        background-position: center;
        margin-top: 120px;
        scale: 0.9;
    }
}


.main-fv-image {
    background-image: url('images/image.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.main-fv-character {
    bottom: unset;
    position: relative;
    background-image: url('images/character.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 800px) {
    .main-fv {
        min-height: 700px;

        .main-fv-top {
            width: 60%;
            max-width: 650px;
            background-image: url('images/top-pc.webp');
            background-size: contain;
            background-position: top center;
            background-repeat: no-repeat;
        }

        .main-fv-box {
            width: 100%;
            max-width: 1000px;
            display: flex;
            justify-content: space-between;
            margin-top: clamp(10px, 0.5vw, 200px);
        }

        .main-fv-left,
        .main-fv-right {
            width: 49%;
            position: relative;
            z-index: 2;
            height: 100%;
        }

        .main-fv-banner {
            margin-top: -20%;
            position: relative;
        }
    }
}

.main-station {
    width: 100%;
    height: fit-content;
    background-color: #fff0c0;
    padding: 25px 0;

    .main-station-texts {
        font-size: 14px;
        font-weight: 500;
        line-height: 24px;
        letter-spacing: 0;
        margin-bottom: 15px;

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

    .main-station-box {
        width: 100%;
        height: fit-content;
        background-color: #fff;
        padding: 5% 6.5%;
        border-radius: 10px;
        margin-bottom: 25px;
    }

    .main-station-detail {
        margin-top: 10px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.8;
    }
}

@media (min-width: 800px) {
    .main-station {
        .main-station-texts {
            font-size: 18px;
            line-height: 1.8;
        }

        .main-station-box {
            margin-top: 25px;
            padding: 2.5% 5%;
        }

        .main-station-detail {
            font-size: 16px;
            line-height: 1.8;
        }
    }
}

.main-method {
    padding: 25px 0;

    .main-method-top {
        width: 100%;
        padding: 15px;
        border: 1px solid #000000;
        background: #fff;
        position: relative;
    }

    .main-method-subject {
        font-size: 14px;
        font-weight: 500;
        line-height: 24px;
        position: relative;

        &::before {
            content: '●';
            display: inline-block;
        }
    }

    .main-method-bottom {
        width: 100%;
        height: fit-content;
        position: relative;
        margin-top: 25px;
        margin-bottom: 25px;

        &::after {
            content: '　';
            position: absolute;
            height: 90%;
            width: 20px;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            background-color: #eeeeee;
            z-index: 0;
        }
    }

    .main-method-box {
        width: 100%;
        height: fit-content;
        background-color: #fde7cd;
        border-radius: 20px;
        padding: 15px 5.5%;
        margin-bottom: 15px;
        position: relative;
        z-index: 1;

        &:last-child {
            margin-bottom: 20px;
        }
    }

    .main-method-h4 {

        font-weight: 600;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .main-method-text {
        font-size: 14px;
        font-weight: 500;
        line-height: 24px;
    }

    .main-method-button {
        width: 100%;
        display: block;
        height: fit-content;
        background-color: #fff;
        border-radius: 10px;
        padding: 15px;
        border: 2px solid #000000;
        text-align: center;
        text-decoration: none;
        color: #000000;
        font-weight: 500;
        font-size: 20px;
        line-height: 24px;
        margin-top: 10px;
        transition: all 0.3s ease;
        box-shadow: 0px 4px 4px 0px #00000040;
        margin-bottom: 10px;

        &:hover {
            background-color: #000000;
            color: #fff;
        }

        &.none-active {
            background: #666666;
            pointer-events: none;
        }
    }

    .main-method-period {
        font-weight: 700;
        font-size: 20px;
        line-height: 1.6;
        letter-spacing: 0%;
        text-align: center;

        span {
            font-size: 24px;
            font-weight: 700;
        }
    }

    &::before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-image: url(images/tile.webp);
        background-size: 16px 16px;
        background-repeat: repeat;
        z-index: 0;
        opacity: 0.04;
    }
}


@media (min-width: 800px) {
    .main-method {
        .main-method-subject {
            font-size: 18px;
            line-height: 1.8;
        }

        .main-method-bottom {
            margin-top: 25px;
        }

        .main-method-box {
            margin-bottom: 25px;
        }

        .main-method-h4 {
            font-size: 25px;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .main-method-text {
            font-size: 16px;
            line-height: 1.8;
        }

        .main-method-button {
            font-size: 24px;
            line-height: 1.5;
            margin-top: 15px;
            margin-bottom: 15px;
        }

        .main-method-period {
            font-size: 24px;
            line-height: 1.5;

            span {
                font-size: 28px;
            }
        }
    }
}

.main-faq {
    width: 100%;
    height: fit-content;
    background-color: #ebf2ff;
    padding: 25px 0;

    .main-faq-item {
        width: 100%;
        height: fit-content;
        padding: 15px 0;
        border-bottom: 2px solid #d9d9d9;
    }

    .main-faq-question {
        position: relative;
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        letter-spacing: 0%;
        text-align: left;
        margin-bottom: 15px;
        padding-left: 35px;

        &::before {
            content: 'Q';
            display: block;
            background-color: #0050e9;
            color: #fff;
            border-radius: 50px;
            width: 26px;
            height: 26px;
            text-align: center;
            position: absolute;
            left: 0;
            top: 0;
            line-height: 23px;
        }
    }

    .main-faq-answer {
        font-size: 14px;
        font-weight: 500;
        line-height: 24px;
        letter-spacing: 0%;
        text-align: left;
        position: relative;
        padding-left: 35px;

        &::before {
            content: 'A';
            display: block;
            background-color: #ec0074;
            color: #fff;
            border-radius: 50px;
            width: 26px;
            height: 26px;
            font-size: 16px;
            text-align: center;
            position: absolute;
            left: 0;
            top: 0;
            line-height: 24px;
        }
    }
}

@media (min-width: 800px) {
    .main-faq {
        .main-faq-question {
            font-size: 18px;
            line-height: 1.8;
            padding-left: 40px;

            &::before {
                width: 30px;
                height: 30px;
                line-height: 27px;
            }
        }

        .main-faq-answer {
            font-size: 16px;
            line-height: 1.8;
            padding-left: 40px;

            &::before {
                font-size: 18px;
                width: 30px;
                height: 30px;
                line-height: 28px;
            }
        }
    }
}


.main-detail {
    width: 100%;
    height: fit-content;

    .main-detail-button {
        color: #fff;
        text-decoration: none;
        display: block;
        height: fit-content;
        margin: 20px 0;
        padding: 10px 0;
        background-color: #760d08;
        color: #fff;
        font-size: 24px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: 0.1em;
        font-family: 'Noto serif', "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
        text-align: center;
        border-radius: 5px;
        border: 2px solid #fff;
        padding: 10px 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

        &:hover {
            background-color: #fff;
            color: #760d08;
            border: 2px solid #760d08;
        }
    }
}

.main-contact {
    background-color: #F8F8F8;
    padding: 25px 0;
    margin-bottom: 50px;

    .main-contact-h2 {
        font-size: 35px;
        font-weight: 500;
        margin-bottom: 25px;
        text-align: center;
        color: #0F2554;
    }

    .main-contact-box {
        width: 100%;
        margin: 0 auto;
        background-color: #fff;
        padding: 20px;
    }

    .main-contact-text {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        text-align: center;
        color: #0F2554;
        margin-bottom: 15px;
    }

    .main-contact-tel,
    .main-contact-email {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        color: #0F2554;
    }

    @media (min-width: 768px) {
        padding: 0;

        .main-contact-box {
            max-width: 650px;
        }
    }
}