/* ---- ベース：スマホ用 ---- */
* {
    margin: 0;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: url(images/bg.png);
    font-size: min(3.73vw, 16px);
    overflow-x: hidden;
}

.no_scroll {
    overflow-y: hidden;
}

header {
    width: 100vw;
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.header_inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

h1 {
    position: relative;
    z-index: 9999;
    height: 50px;
}

h1 a {
    display: inline-block;
    height: 100%;
}

h1 a img {
    height: 100%;
    width: 86px;
    object-fit: contain;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: red;
    border-radius: 50%;
    box-shadow: inset 0px -2px 6px 2px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 11;
}

.nav-btn span {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.nav-btn span::before,
.nav-btn span::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
    position: absolute;
    left: 0;
}

.nav-btn span::before {
    bottom: 8px;
}

.nav-btn span::after {
    top: 8px;
}

.nav-btn.close span {
    transform: rotate(-45deg);
}

.nav-btn.close span::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: #000;
    top: 0;
    left: 0;
    transform: rotate(90deg);
}

.nav-btn.close span::after {
    display: none;
}

nav {
    display: none;
    height: 100dvh;
    width: 100vw;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    padding-top: 92px;
}

nav a {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

nav.active {
    display: block;
    background: #d7eeff;
}

.content_l {
    display: none;
}

main {
    width: 90%;
    margin: 96px auto 0;
}

a {
    color: blue;
}

a.btn {
    display: block;
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
}

img {
    width: 100%;
}

h2 {
    margin-bottom: 30px;
    text-align: center;
}

h2 img {
    max-height: 44px;
    width: auto;
    max-width: 100%;
}

.rainbow {
    font-style: italic;
    transform: scale(1, 2.5);
    letter-spacing: 0.2em;
    color: red;
    text-shadow: 1px 1px 3px #000000,
        -1px 1px 3px #000000,
        1px -1px 3px #000000,
        -1px -1px 3px #000000;
    text-align: center;
    background: linear-gradient(to right, #e60000, #f39800, #fff100, #009944, #0068b7, #1d2088, #920783);
    margin-bottom: 30px;
    padding: 2px 0;
    box-shadow: 0px 2px 4px 0px #0000007a;
}

.border {
    border: double;
    padding: 0.8em;
    line-height: 1.5;
    background: #ffffff;
}

.border.top_text {
    width: fit-content;
    margin: 0 auto;
}

span.dot_red {
    line-height: 1.5;
    margin-right: 0.5em;
    vertical-align: middle;
}

span.dot_red::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-image: radial-gradient(circle at 20% 30%, white, red 60%);
}

.news_wrap p.border::before {
    display: none;
}

.border_red {
    border: solid 1px red;
    outline: solid 4px red;
    outline-offset: 1px;
    margin: 6px;
    font-size: min(4.8vw,18px);
    color: blue;
    background: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 4px;
}

footer {
    margin-top: 80px;
}

.footer_inner {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 10px;
}

.footer_inner a {
    display: block;
    line-height: 1.5;
    width: fit-content;
}

address {
    font-style: normal;
    line-height: 1.5;
    margin: 20px 0;
}

address a {
    color: #000;
    text-decoration: none;
}

/***** トップページ *****/
.counter span {
    color: red;
}

.kv {
    padding-bottom: 20px;
}

.kv_img {
    width: 70%;
    margin: 0 auto;
}

.click_img {
    width: 50%;
    margin: 0 auto;
    max-width: 250px;
}

section {
    padding: 30px 0 20px;
}

section.border-line {
    border-top: 0.5px solid #000000;
}

table {
    width: 100%;
}

table th,
table td {
    display: block;
}

table.news_table th,
table.news_table td {
    padding: 0.2em 1em;
    text-align: center;
}

table.news_table td {
    font-size: min(4.27vw,18px);
}

table.news_table td a {
    text-decoration: none;
}

table.news_table td a::before {
    content: "";
    display: inline-block;
    height: calc(tan(60deg) * 1em / 2);
    width: 0.8em;
    background: red;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    margin-right: 0.5em;
}

/***** ニュースページ *****/
.news_wrap:nth-of-type(n+2) {
    padding-top: 40px;
}

.date {
    padding-bottom: 10px;
}

.news_content {
    margin-top: 16px;
}

/***** Q&Aページ *****/
details {
    border: double;
    padding: 0 10px;
    background: #ffffff;
}

details:nth-of-type(n+2) {
    margin-top: 12px;
}

summary {
    font-size: 1.1em;
    padding: 6px 20px 6px 0;
    line-height: 1.5;
    cursor: pointer;
    display: block;
    list-style: none;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "";
    display: inline-block;
    background: #000000;
    height: calc(tan(60deg) * 0.8em / 2);
    width: 1em;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
}

details[open] summary::after {
    transform: rotate(180deg);
}

.faq_a {
    line-height: 1.5;
    border-top: 1px solid #000000;
    padding: 6px 0 10px;
}


/***** 会社情報ページ *****/
.info-wrap {
    padding: 14px 10px;
    border-top: 1px solid #000000;
}

.info-wrap span {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.info-wrap p {
    line-height: 1.5;
}

.info-wrap a {
    color: #000000;
    text-decoration: none;
}

iframe {
    width: 100%;
    height: 235px;
}

/***** お問い合わせページ *****/
#formWrap table {
    margin-bottom: 20px;
}

table.contact_table tr:nth-of-type(n+2) th {
    margin-top: 16px;
}

table.contact_table th {
    text-align: left;
    margin-bottom: 6px;
    font-size: min(4.27vw,16px);
}

table.contact_table input {
    width: 100%;
    max-width: 360px;
    padding: 6px;
    border: 1px solid #000000;
    font-size: min(4.27vw,16px);
}

table.contact_table textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #000000;
    font-size: min(4.27vw,16px);
}

table.contact_table tr:last-of-type th span {
    text-align: center;
    display: block;
    margin-bottom: 2em;
    margin-top: 3em;
}

table.contact_table tr:last-of-type th p {
    font-weight: normal;
    font-size: min(3.73vw, 16px);
    line-height: 1.5;
}

table.contact_table tr:last-of-type th p:nth-of-type(n+2) {
    margin-top: 20px;
}

table.contact_table tr:last-of-type th p:last-of-type {
    text-align: center;
}

table.contact_table .check_box {
    text-align: center;
    margin: 16px 0 20px;
    color: #4300FF;
}

table.contact_table .check_box label {
    display: flex;
    justify-content: center;
    align-items: center;
}

table.contact_table .check_box input {
    width: fit-content;
    margin-right: 0.5em;
    inline-size: 1.5em;
    block-size: 1.5em;
}

#formWrap h3,
#formWrap h4 {
    text-align: center;
    margin-bottom: 14px;
}

p.error_messe {
    line-height: 1.5;
}

.contact_check_page #formWrap table {
    margin-top: 30px;
}

.contact_check_page #formWrap table th {
    display: inline-block;
    text-align: left;
    width: 10em;
    line-height: 1.5;
}

.contact_check_page #formWrap table td {
    display: inline-block;
}

.contact_check_page #formWrap table tr:nth-of-type(n+6) {
    display: none;
}

.contact_check_page #formWrap button:nth-of-type(n+2) {
    margin-top: 10px;
}

button {
    border: none;
}

a.btn_top {
    display: inline-block;
    width: 214px;
    margin-top: 30px;
}

/***** 個人情報の取り扱いページ *****/
.privacy-wrap p {
    line-height: 1.5;
}

.privacy-wrap li {
    margin: 20px 0 0 1em;
    line-height: 1.5;
}

.privacy-wrap .address {
    margin: 10px 0;
    padding-bottom: 10px;
    width: fit-content;
    border-bottom: 1px solid #000000;
}

/* ---- 画面が広い場合（PC用） ---- */
@media screen and (min-width: 768px) {
    .sp-nav {
        display: none;
    }

    main {
        width: 80vw;
        margin: 100px 0 100px 20vw;
        padding: 0 30px;
    }

    header {
        width: fit-content;
        position: fixed;
        top: 0;
        left: 20px;
        z-index: 9999;
    }

    .header_inner {
        width: 100%;
    }

    .content_l {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 20vw;
        height: 100vh;
        background: #d7eeff;
    }

    .content_l nav {
        display: block;
        width: 100%;
        background: none;
        padding-top: 200px;
    }

    .content_l nav a {
        text-align: left;
        width: fit-content;
        margin-left: 20%;
    }

    footer {
        width: 20vw;
        position: fixed;
        bottom: 0;
        left: 0;
    }

    .footer_inner {
        width: 100%;
        padding: 0 20px 10px;
    }

    address {
        font-size: 14px;
    }
}

@media screen and (min-width: 1440px) {
    main {
        width: 80vw;
        margin: 100px auto 100px;
        max-width: 850px;
    }
}