/**
 * Theme Name:     Generic Child
 * Author:         chikezo
 * Template:       generic
 * Text Domain:	   generic-child
 * Description:    A fully responsive, SEO-ready, schema-ready, social-media-ready, accessibility-ready, translation-ready, and jQuery-ready starter theme for designers and developers, which comes with its own built-in, lightweight CSS grid (https://generic.tools/grid/). This generic/starter/clean/simple/bare/blank/minimalist/example/cheatsheet/white-label/HTML5/CSS3/base/foundation/framework/skeleton/boilerplate/whatever theme was created specifically as a tool to assist you with building client sites virtually from scratch or building your own themes. It
 */
:root {
    --color_main: #0284c7;
    --color_text: #333;
    --color_link: #0284c7;
    --color_htag: #0284c7;
    --color_bg: #fdfdfd;
    --color_gradient1: #d8ffff;
    --color_gradient2: #87e7ff;
    --color_main_thin: rgba(3, 165, 249, 0.05);
    --color_main_dark: rgba(2, 99, 149, 1);
    --color_list_check: #0284c7;
    --color_list_num: #0284c7;
    --color_list_good: #86dd7b;
    --color_list_triangle: #f4e03a;
    --color_list_bad: #f36060;
    --color_faq_q: #d55656;
    --color_faq_a: #6599b7;
    --color_icon_good: #3cd250;
    --color_icon_good_bg: #ecffe9;
    --color_icon_bad: #4b73eb;
    --color_icon_bad_bg: #eafaff;
    --color_icon_info: #f578b4;
    --color_icon_info_bg: #fff0fa;
    --color_icon_announce: #ffa537;
    --color_icon_announce_bg: #fff5f0;
    --color_icon_pen: #7a7a7a;
    --color_icon_pen_bg: #f7f7f7;
    --color_icon_book: #787364;
    --color_icon_book_bg: #f8f6ef;
    --color_icon_point: #ffa639;
    --color_icon_check: #86d67c;
    --color_icon_batsu: #f36060;
    --color_icon_hatena: #5295cc;
    --color_icon_caution: #f7da38;
    --color_icon_memo: #84878a;
    --color_deep01: #e44141;
    --color_deep02: #3d79d5;
    --color_deep03: #63a84d;
    --color_deep04: #f09f4d;
    --color_pale01: #fff2f0;
    --color_pale02: #f3f8fd;
    --color_pale03: #f1f9ee;
    --color_pale04: #fdf9ee;
    --color_mark_blue: #b7e3ff;
    --color_mark_green: #bdf9c3;
    --color_mark_yellow: #fcf69f;
    --color_mark_orange: #ffddbc;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

html {
    scroll-behavior: smooth
}

body {
    line-height: 1
}

a {
    text-decoration-skip-ink: auto
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none
}

button {
    outline: 0
}

ol,
ul {
    list-style: none
}

blockquote,
q {
    quotes: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none
}

q {
    display: inline;
    font-style: italic
}

q:before {
    content: '"';
    font-style: normal
}

q:after {
    content: '"';
    font-style: normal
}

textarea,
input[type="text"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="search"],
input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0
}

input[type="search"] {
    -webkit-appearance: textfield
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

th,
td {
    padding: 2px
}

big {
    font-size: 120%
}

small,
sup,
sub {
    font-size: 80%
}

sup {
    vertical-align: super
}

sub {
    vertical-align: sub
}



kbd,
tt {
    font-family: courier;
    font-size: 12px
}

ins {
    text-decoration: underline
}

del,
strike,
s {
    text-decoration: line-through
}

dt {
    font-weight: bold
}

address,
cite,
var {
    font-style: italic
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.5s ease
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    color: #767676;
    line-height: normal;
    word-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

/*header*/
#sp_menu {
    display: none;
}

.l-header__inner {
    display: flex;
    align-items: center;
    min-height: 55px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1246px;
    justify-content: space-between;
}

header {
    transition: all 0.3s;
}

header.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
z-index: 9999;
}

body[data-scrolled="false"] header.scrolled {
    top: env(safe-area-inset-top, 0);
    top: calc(var(--wp-admin--admin-bar--height, 0px));
}

#logo {
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    width: auto;
    display: block;
    min-width: 50px;
}

.c-gnav>.menu-item>a {
    display: block;
    text-decoration: none;
    color: #333;
}

/*コンテンツ*/
#container {
    max-width: 700px;
    margin: auto;
    padding: 5px;
}

.pr_on {
    position: relative;
}

.pr_on:after {
    content: "PR";
    background-color: #fff;
    color: var(--color_main);
    display: inline-block;
    padding: 5px;
    line-height: 1;
    font-size: 12px;
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 5;
}

/*footer*/
#footer {
    background-color: #eef2ff;
    color: #333;
    position: relative;
    z-index: 0;
    padding-bottom: 1em;
    padding-top: 1em;
}

#footer nav ul {
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: .5em 0 1em;
}

#footer #copyright {
    font-size: 12px;
    text-align: center;
}

#footer nav a {
    font-size: 13px;
    padding: 0 .75em;
    color: #505050;
    text-decoration: none;
}

.p-fixBtnWrap {
    align-items: flex-end;
    bottom: 1.25em;
    display: flex;
    flex-direction: column;
    opacity: 0;
    position: fixed;
    right: 1em;
    text-align: center;
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    transition: opacity .3s, visibility .3s, -webkit-transform .3s;
    transition: opacity .3s, transform .3s, visibility .3s;
    transition: opacity .3s, transform .3s, visibility .3s, -webkit-transform .3s;
    visibility: hidden;
    z-index: 99;
}

[data-scrolled=true] .p-fixBtnWrap {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    visibility: visible;
}

button#pagetop {
    cursor: pointer;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color_main);
    box-shadow: var(--swl-box_shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    letter-spacing: normal;
    line-height: 1;
    opacity: .75;
    overflow: hidden;
    text-align: center;
    transition: all .25s;
}

button#pagetop:before {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-left: 2px solid var(--color_main);
    border-top: 2px solid var(--color_main);
    transform: rotate(45deg);
    content: "";
    margin-top: 2px;
}

@media (min-width: 960px) {
    .pc_none {
        display: none;
    }

    .l-header__inner {
        padding-left: 32px;
        padding-right: 32px;
    }

    .gnav ul {
        display: flex;
    }

    .c-gnav>.menu-item>a {
        font-size: 14px;
        text-align: center;
        padding: 10px 12px;
        position: relative;
    }

    .c-gnav>.menu-item>a:after {
        bottom: 0;
        content: "";
        display: block;
        left: 0;
        position: absolute;
        transition: width .25s, height .25s, -webkit-transform .25s;
        transition: transform .25s, width .25s, height .25s;
        transition: transform .25s, width .25s, height .25s, -webkit-transform .25s;
        background: var(--color_main);
        width: 100%;
        height: 2px;
        transform: scaleX(0);
    }

    .c-gnav>.menu-item>a:hover:after {
        transform: scaleX(1)
    }

    #logo-container {
        height: 60px;
        display: block;
        padding: 5px 0;
    }
}

@media not all and (min-width: 960px) {
    .sp_none {
        display: none;
    }

    .l-header__inner {
        padding-left: 5px;
        padding-right: 5px;
    }

    button.menu_btn {
        border: none;
        background-color: transparent;
        cursor: pointer;
        width: 55px;
        height: 55px;
        padding: 18px 15px;
    }

    #manuOpen {
        display: flex;
        align-content: space-between;
        flex-wrap: wrap;
    }

    .menu_btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: 0.4s;
    }

    /* SPメニュー全体 */
    #sp_menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 101;
        display: block;
    }

    body[data-spmenu="closed"] #sp_menu {
        opacity: 0;
        pointer-events: none;
        transition-delay: 1s;
    }

    .p-spMenu__inner {
        position: absolute;
        top: 0;
        right: -88vw;
        width: 88vw;
        height: 100%;
        box-shadow: 0 0 8px var(--swl-color_shadow);
        padding-top: var(--logo_size_sp);
        transition: transform 0.45s ease-out;
        z-index: 1;
        background-color: #fff;
    }

    body[data-scrolled="false"] .p-spMenu__inner {
        position: absolute;
        top: env(safe-area-inset-top, 0);
        top: calc(var(--wp-admin--admin-bar--height, 0px));
    }

    .p-spMenu__overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 0;
    }

    body[data-spmenu="opened"] .p-spMenu__inner {
        transform: translateX(-88vw);
    }

    body[data-spmenu="opened"] .p-spMenu__overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body[data-spmenu="closed"] .p-spMenu__inner {
        transform: translateX(0);
    }

    body[data-spmenu="closed"] .p-spMenu__overlay {
        opacity: 0;
        pointer-events: none;
    }

    .p-spMenu__closeBtn {
        display: flex;
        justify-content: end;
    }

    /* ハンバーガーがXに変形 */
    #manuClose span:nth-child(1) {
        transform: rotate(45deg);
    }

    #manuClose span:nth-child(2) {
        transform: translateY(-2px) rotate(-45deg);
    }

    .p-spMenu__body {
        padding: 0 4vw;
        position: relative;
    }

    .c-widget__title.-spmenu {
        padding: .5em .75em;
        background: var(--color_main);
        color: #fff;
        overflow: hidden;
        position: relative;
        font-weight: 700;
        font-size: 0.9em;
    }

    .p-spMenu__body li {
        margin: 0;
        position: relative;
    }

    .p-spMenu__body a {
        padding: .75em 1em .75em 1.5em;
        transition: padding .25s;
        border-bottom: 1px solid hsla(0, 0%, 78%, .5);
        display: block;
        line-height: 1.4;
        position: relative;
        text-decoration: none;
    }

    .p-spMenu__body .menu-item:first-child>a {
        border-top: none;
    }

    .p-spMenu__body a:before {
        color: inherit;
        content: "";
        display: inline-block;
        left: 5px;
        position: absolute;
        top: 50%;
        width: 6px;
        height: 6px;
        border-top: 1px solid #333;
        border-right: 1px solid #333;
        transform: translateY(-50%) rotate(45deg);
    }

}

@media (min-width: 600px) {
    header.scrolled {
        top: env(safe-area-inset-top, 0);
        top: calc(var(--wp-admin--admin-bar--height, 0px));
    }

    .p-spMenu__inner {
        top: env(safe-area-inset-top, 0);
        top: calc(var(--wp-admin--admin-bar--height, 0px));
    }

    #footer nav a {
        border-right: 1px solid;
    }

    #footer nav li:first-child a {
        border-left: 1px solid;
    }
}

@media screen and (max-width: 599px) {
    #footer nav li {
        width: 50%;
        text-align: center;
    }
}
#manuOpen,#gnav{display: none;}