@charset "UTF-8";

:root{
    /* --base_color: #f0f0f0; */
    --base_color: white;
    --main_color: #c41f26;
    --white_color: white;
    --text_color: #1a1a1a;
    --footer_color: #333;
    --gray_color: #bbb;
    --gray_to_read_color: #888;
}

html{
    font-family: 'Noto Sans JP', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    cursor: auto;
}

body{
    background-color: var(--base_color);
    color: var(--text_color);
    font-size: 15px;
}

/* loading ------------------------------------------------------ */
#loading{
    display: grid;
    place-items: center;
    background-color: var(--main_color);
    position: fixed;
    inset: 0;
    font-size: 1.3em;
    z-index: 400;
    transition-property: opacity;
    transition-duration: 1s;
    transition-delay: 0.4s;
    pointer-events: none;
}
#loading.loaded {
    opacity: 0;
}
#loading div{
    display: grid;
    place-items: center;
    row-gap: 20px;
}
#loading-happi{
    width: 200px;
    height: auto;
    animation: loadingAnimation 1.0s infinite;
}
#loading-text{
    width: 160px;
    height: auto;
}
@keyframes loadingAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}
#main.unloaded {
    pointer-events: none;
}


/* main ------------------------------------------------------ */
main{
    margin: 10px 20%;
    /* font-size: 16px; */
    letter-spacing: 0.03em;
}
h1{
    color: var(--main_color);
    font-size: 1.8em;
}
h2 {
    text-decoration: underline;
    text-decoration-color: var(--main_color);
    text-underline-offset: 0.3em;
    text-decoration-thickness: 2px;
    font-size: 1.4em;
}
h3 {
    position: relative;
    padding-left: 12px;
    font-size: 1.15em;
}
h3::before{
    content: "";
    position: absolute;
    background-color: var(--text_color);
    top: 4px;
    left: 0;
    width: 6px;
    height: 1.15em;
}
p {
    text-align: left;
}
span.highlight{
    font-weight: bold;
    background: linear-gradient(transparent 60%, rgb(255, 254, 170) 30%);
}

ul.kome {
    padding-left: 0;
}

ul.kome li {
    list-style: none;
    position: relative;
    padding-left: 1.2em;
}

ul.kome li::before {
    content: "※";
    position: absolute;
    top: 0;
    left: 0;
}

.btn {
    display: inline-block;
    border-radius: 5px;
    background-color: rgb(50, 144, 35);
    padding: 10px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: .3s;
}

.btn:hover {
    text-decoration: none;
    color: white;
    transform: scale(1.1);
}

div.border_line{
    width: 85%;
    height: 1px;
    background-color: #bbb;
    margin: 4em auto;
}
div.notice{
    padding: 0 10px;
    margin: 20px 0;
    width: 100%;
    --notice_info: #107c19;
    --notice_warn: #c41f26;
}
div.notice-wrapper{
    width: 100%;
    margin-bottom: 1em;
    border-radius: 8px;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}
div.notice-wrapper:last-child{
    margin-bottom: 0;
}
div.notice-wrapper.info{
    border-left: 3px solid var(--notice_info);
}
div.notice-wrapper.warn{
    border-left: 3px solid var(--notice_warn);
}
div.notice-wrapper.info .notice-title-icon {
    content: url('/assets/images/情報アイコン.svg');
    height: 20px;
}
div.notice-wrapper.warn .notice-title-icon {
    content: url('/assets/images/注意のアイコン.svg');
    height: 20px;
}
div.notice-title{
    width: 100%;
    /* height: 1.9em; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3em 0.7em;
    background-color: var(--notice_color);
    border-radius: 6px 6px 0 0;
    font-weight: bold;
    /* font-size: 1.05em; */
    color: var(--white_color);
}
div.notice-title .notice-date{
    font-weight: normal;
    font-size: 0.8em;
}
div.notice-wrapper.info div.notice-title{
    background-color: var(--notice_info);
}
div.notice-wrapper.warn div.notice-title{
    background-color: var(--notice_warn);
}
div.notice-title-wrapper{
    display: flex;
    align-items: center;
}
div.notice-title-wrapper img{
    padding-right: 0.4em;
    pointer-events: none;
}
div.notice-title-wrapper div{
    position: relative;
    top: -0.05em;
}
div.notice-content{
    /* padding-left: 1em;
    padding-right: 1em; */
    padding: 0 1em 1em 1em;
}
div.notice-content :last-child{
    margin-bottom: 0;
}
li {
    margin-bottom: 0.3em;
}
ul li:last-child {
    margin-bottom: 0;
}
ol li:last-child {
    margin-bottom: 0;
}
a{
    text-decoration: none;
    color: #1f61c4;
}
a:hover{
    text-decoration: underline;
    color: #1f22c4;
}
a.article-piece-main-btn {
	display: flex;
    align-items: center;
	text-align: left;
	vertical-align: middle;
	text-decoration: none;
	width: 400px;
	padding: 0.2em 1em;
    font-size: 1.2em;
	border: 2px solid var(--main_color);
	background: var(--main_color);
	color: var(--base_color);
	border-radius: 100vh;
	transition: 0.3s;
}
a.article-piece-main-btn::before {
	content: '';
	width: 7px;
	height: 7px;
	border-top: 2px solid var(--base_color);
	border-right: 2px solid var(--base_color);
	transform: rotate(45deg);
    transition: 0.3s;
}
div.article-piece-main-btn-text{
    padding-left: 0.8em;
}
a.article-piece-main-btn:hover {
	color: var(--main_color);
	background: var(--base_color);
}
a.article-piece-main-btn:hover::before{
    border-top: 2px solid var(--main_color);
	border-right: 2px solid var(--main_color);
    transition: 0.3s;
}

/* 赤い囲み-------------------------------------------------- */
.square_info {
    width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 3px solid var(--main_color);
    padding-bottom: 15px;
}
.square_info-items {
    padding: 0 20px;
    margin: 30px 0;
}
.square_info-items-head {
    width: 5em;
    font-size: 1.3em;
    margin: 0 auto 1em auto;
    padding: 0 0 0.2em 0;
    border-bottom: 2px solid var(--gray_color);
}
.square_info-items-content {
    font-weight: bold;
    font-size: 1.6em;
}
@media screen and (max-width: 480px) {
    .square_info {
        width: calc(100% - 20px);
    }

    .square_info-items-head {
        font-size: 1.1em;
    }
    .square_info-items-content {
        font-size: 1.2em;
    }
}

/* indent---------------------------------------------------- */

.indent {
    padding-left: .5em;
}

.indent p {
    padding-left: .5em;
}

/* 広告------------------------------------------------------ */
div.ad-title {
    text-align: center;
}
div.ads-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
div.ads-wrapper a {
    margin: 1em 1em 0 1em;
}
div.ads-wrapper img {
    width: 300px;
    height: 100px;
    object-fit: contain;
}

/* header ------------------------------------------------------ */
header{
    position: relative;
    z-index: 500;
}
nav.header{
    width: 100vw;
    background-color: var(--main_color);
    color: var(--white_color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding-right: 12px;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.14);
}
nav a{
    display: block;
    color: var(--white_color);
    text-decoration: none;
    padding: 8px 15px;
    display: flex;
}
nav a:hover {
    color: var(--white_color);
    text-decoration: none;
}
div.header-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
img.header-brand {
    height: 40px;
    pointer-events: none;
}
/* div.header-brand{
    display: flex;
    align-items: center;
}
img.header-brand-logo{
    height: 40px;
}
div.header-brand-title{
    padding: 0px 10px;
    font-size: 1.5em;
} */
button.hamburger{
    margin-right: 15px;
    display: none;
    width: 50px;
    height: 50px;
    position: relative;
    border: none;
    background: transparent;
    appearance: none;
    padding: 0;
    cursor: pointer;
}
span.hamburger_bar{
    display: none;
    width: 44%;
    height: 2px;
    background: var(--white_color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: .5s;
}
button.hamburger--open span.hamburger_bar{
    top: 50%;
}
button.hamburger--open span.hamburger_bar:first-child{
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
button.hamburger--open span.hamburger_bar:last-child{
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}
button.hamburger--open span.hamburger_bar:nth-child(2){
    display: none;
}
span.hamburger_bar:first-child{
    top: 16px;
}
span.hamburger_bar:nth-child(2){
    top: 24px;
}
span.hamburger_bar:last-child{
    top: 32px;
}
div.header-menu-menu{
    height: 100%;
    display: flex;
    align-items: center;
}
a.header-menu-items{
    height: 100%;
    display: flex;
    align-items: center;
}
a.header-menu-items.cur{
    background-color: var(--white_color);
    color: var(--main_color);
}
a.header-menu-items:hover{
    background-color: #d5454c;
    color: var(--white_color);
}
.head-photo{
    margin-top: 50px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    pointer-events: none;
}

/* footer ------------------------------------------------------ */
footer {
    background-color: var(--footer_color);
    color: var(--white_color);
    margin: 50px 0 0 0 ;
    padding: 2em 0;
    padding-left: 20%;
    letter-spacing: 0.03em;
}
img.footer-brand {
    display: block;
    margin-bottom: 1em;
    pointer-events: none;
    height: 50px;
}
/* div.footer-brand {
    padding-bottom: 1.5em;
    display: flex;
    align-items: center;
}
img.footer-brand-logo {
    pointer-events: none;
    height: 50px;
}
div.footer-brand-title {
    padding: 0 10px;
    font-size: 2em;
} */
div.footer-links-wrapper {
    display: flex;
    align-items: center;
}
div.footer-links-info {
    order: 2;
}
div.footer-links-sns {
    order: 1;
    margin-right: 3em;
}
div.footer-links-info-set a{
    margin-bottom: 0.4em;
    display: flex;
    align-items: center;
    color: var(--white_color);
    text-decoration: none;
}
div.footer-links-info-set a:nth-child(3){
    margin-bottom: 0;
}
div.footer-links-info-set div:first-child {
    font-size: 0.5em;
    padding-right: 0.5em;
}
div.footer-links-info-set div:nth-child(2):hover {
    text-decoration: underline;
}
div.footer-links-border_line {
    width: min(18em, 100%);
    height: 1px;
    background-color: var(--white_color);
    margin-top: 1em;
    margin-bottom: 1em;
    display: none;
}
div.footer-links-sns-description {
    padding-bottom: 0.5em;
}
div.footer-links-sns-icon{
    width: 10em;
    display: flex;
    justify-content: space-between;
}
img.footer-links-sns-icon {
    height: 2em;
}
img.footer-links-sns-icon:hover {
    transform: scale(1.1);
}
div.footer-copyright {
    margin-top: 1.5em;
    font-size: 0.8em;
}

.flexbox{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.flexbox div{
    width: 100%;
}

.box {
    margin: 15px;
}

@media screen and (min-width: 480px) {
    .flexbox div{
        width: 45%;
    }
}

/* ヘッダー部分のレスポンシブ */
@media screen and (max-width: 1240px) {
    nav.header{
        display: block;   
        padding-right: 0; 
    }

    img.header-brand-logo{
        height: 30px;
    }

    div.header-brand-title{
        font-size: 1.2em;
    }

    button.hamburger{
        display: block;
    }

    span.hamburger_bar{
        display: inline-block;
    }

    div.header-menu{
        display: none;
    }

    div.header-menu-menu{
        height: auto;
        display: block;
        border-top: solid #d5454c 3px;
    }

    a.header-menu-items{
        border-bottom: solid #d5454c 1px;
        padding: 12px 15px;
    }

    a.header-menu-cur_item{
        border-bottom: solid #d5454c 1px;
        padding: 12px 15px;
    }

    div.header-menu-description{
        padding-left: 10px;
    }
}

/* タブレット対応 */
@media screen and (max-width:840px) {
    body {
        font-size: 15px;
    }
    
    main{
        margin: 10px 8%;
        /* font-size: 15px; */
    }

    footer {
        display: block;
        padding-left: 8%;
        padding-right: 8%;
    }

    img.head-photo{
        margin-top: 45px;
        width: 100vw;
        height: 160px;
    }

    a.article-piece-main-btn{
        width: 350px;
    }
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    main{
        margin: 10px 8%;
        /* font-size: 14px; */
    }

    h1{
        font-size: 1.4em;
    }

    h2 {
        font-size: 1.2em;
    }

    ul {
        padding-left: 20px;
    }

    footer {
        display: block;
        padding: 1em 8%;
    }

    div.footer-brand {
        padding-bottom: 0.8em;
    }

    img.footer-brand-logo {
        height: 40px;
    }

    div.footer-brand-title {
        padding: 0 6px;
        font-size: 1.3em;
    }

    div.footer-links-wrapper {
        display: block;
    }

    div.footer-links-sns {
        margin-right: 0;
    }

    div.footer-links-border_line {
        display: block;
    }

    img.head-photo{
        margin-top: 45px;
        width: 100vw;
        height: 80px;
        object-fit: cover;
    }

    a.article-piece-main-btn{
        width: 320px;
    }
    div.notice{
        padding: 10px 10px;
        width: 100%;
    }
    div.notice-header{
        width: 16em;
        font-weight: bold;
        font-size: 1.1em;
        border-bottom: 2px solid var(--gray_color);
        margin-bottom: 1em;
    }
    div.notice-wrapper{
        width: 100%;
        border: 2px solid var(--notice_color);
        background-color: var(--notice_background);
    }
    div.notice-title{
        font-size: 0.9em;
    }
    div.notice-title .notice-date{
        display: none;
        font-size: 0.8em;
    }
}