@charset "UTF-8";

/* ===========================================
* 共通部分
* ======================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

:root {
    --main-color: #00afcc;
    --background-color: #f5f5f5;
    --text-color: #404040;
    --link-color: #696969;
    --table-bg-color: #eee;
}

html {
    font-size: 100%;
}

body {
    font-family: "Noto Sans JP",
        "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
}

.wrapper {
    max-width: 100vw;
    position: relative;
}

.inner {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 3%;
    position: relative;
}

.material-symbols-outlined {
    vertical-align: -.17em;
}

.caution {
    color: #d44950;
    font-weight: bold;
}

/* ===========================================
* ヘッダー
* ======================================== */

header {
    width: 100%;
    padding: min(40px, 5vw);
    color: #fff;
    background: var(--main-color);

    & .logo {
        font-size: 24px;
    }

    & a {
        color: #fff;
    }
}

/* ===========================================
* MAIN
* ======================================== */

main {
    margin-block: 60px 80px;
}

.ttl {
    margin-bottom: 40px;
    text-align: center;
    color: var(--main-color);
}

/* カテゴリー選択 */
.category-conteiner {
    display: grid;
    grid-template: auto / repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;

    & .category-conteiner-item {
        padding-block: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px 0;
        align-items: center;
        font-size: 17px;
        border: #ddd 1px solid;
        transition: .3s;

        & .icon {
            font-size: 40px;
            color: var(--main-color);
        }

        &:hover {
            opacity: .75;
        }
    }
}

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 30px;

    & ol {
        display: flex;

        & li {
            color: var(--link-color);
            /* 折り返し禁止 */
            white-space: nowrap;


            /* 斜線 */
            &::after {
                content: "/";
                padding-inline: .3em;
            }

            /* 折り返し禁止 */
            &:last-child {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;

                /* 斜線を非表示 */
                &::after {
                    display: none;
                }
            }
        }

        & a {
            color: var(--link-color);
            text-decoration: underline;

            &:hover {
                text-decoration: none;
            }
        }
    }
}

/* リスト */
.help-list {
    max-width: 900px;
    margin-inline: auto;

    & li {
        font-size: 1.1em;
        border-top: #ddd 1px solid;

        &:last-of-type {
            border-bottom: #ddd 1px solid;
        }

        & a {
            width: 100%;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: .3s;

            &::after {
                content: "\e5e1";
                font-family: "Material Symbols Outlined";
                color: var(--main-color);
            }

            &:hover {
                opacity: .75;
            }
        }
    }
}

/* ===========================================
* post
* ======================================== */

.post-body {
    max-width: 900px;
    margin-inline: auto;

    & h3 {
        margin-block: 20px;
        padding-bottom: 4px;
        border-bottom: var(--main-color) 3px solid;

        /* 2つめ以降の間隔 */
        &:not(:first-of-type) {
            margin-top: 100px;
        }
    }

    & h4 {
        margin-block: 20px 8px;
        font-size: 18px;
        color: var(--main-color);

        /* 2つめ以降の間隔 */
        &:not(:first-of-type) {
            margin-top: 40px;
        }
    }

    & p {
        margin-bottom: 20px;
    }

    & img {
        display: inline-block;
        margin-block: 1em 2em;
        box-shadow: 0 0 5px #ddd;
    }

    & a {
        color: var(--main-color);
        text-decoration: underline;

        &:hover {
            text-decoration: none;
        }
    }
}

/* ===========================================
* 利用規約
* ======================================== */

.post-body {
    & ol {
        & li {
            margin-left: 1.3em;
            margin-bottom: .4em;
            list-style: decimal;
        }

        & li:only-child {
            margin-left: initial;
            list-style: none;
        }

        & ol {
            margin-top: .4em;
        }
    }
}

/* ===========================================
* footer
* ======================================== */

footer {
    padding: 20px 40px;
    border-top: #ddd 2px solid;

    & .footer-inner {
        max-width: 1000px;
        margin-inline: auto;
        display: flex;
        gap: 40px 20vw;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        justify-content: center;
    }

    & .company-name {
        margin-left: 10px;
        font-weight: 500;
    }

    & .contact-btn {
        display: block;
        margin-top: 20px;
        margin-inline: auto;
        padding: 10px 34px;
        font-weight: 500;
        color: var(--main-color);
        border: var(--main-color) 2px solid;
        border-radius: 3px;
        transition: .3s;

        & .material-symbols-outlined {
            margin-right: .1em;
            vertical-align: -.25em;
        }

        &:hover {
            color: #fff;
            background: #00afcc;
        }
    }

    & .copyright {
        margin-top: 40px;
        font-size: 13.5px;
        text-align: center;

        & span:not(:first-child)::before {
            content: "/";
            margin-inline: 7px;
        }

        & address {
            margin-top: 3px;
            font-style: normal;
        }
    }
}

/* ===========================================
* 404ページ
* ======================================== */

.e404 {

    & h2 {
        color: var(--main-color);
        margin-bottom: .5em;
    }

    & a {
        display: inline-block;
        margin-top: 2em;
        color: var(--main-color);
        text-decoration: underline;

        &:hover {
            text-decoration: none;
        }
    }
}