@charset "utf-8";

#shingle .news-content img,
#shingle .news-content iframe {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

#shingle .news-content iframe {
    border: 0;
}

#shingle .news-content img {
    width: 90%;
    max-width: 90%;
    height: auto;
}

#shingle .news-content > iframe {
    width: 90% !important;
}

/* microCMS YouTube embeds use an aspect-ratio wrapper and an absolutely
   positioned iframe. Spacing belongs on the wrapper; iframe margins would
   move the video outside its reserved height and overlap following text. */
#shingle .news-content div[style*="padding-bottom"][style*="position: relative"] {
    width: 90% !important;
    padding-bottom: 50.625% !important;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

#shingle .news-content div[style*="padding-bottom"][style*="position: relative"] > iframe {
    margin: 0 auto;
    left: -2px !important;
    width: calc(100% + 4px) !important;
}

#shingle .news-content div[style*="padding-bottom"][style*="position: relative"]::before,
#shingle .news-content div[style*="padding-bottom"][style*="position: relative"]::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    pointer-events: none;
}

#shingle .news-content div[style*="padding-bottom"][style*="position: relative"]::before {
    left: 0;
}

#shingle .news-content div[style*="padding-bottom"][style*="position: relative"]::after {
    right: 0;
    width: 4px;
}

#snav #year2017 li:nth-last-child(1) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2018 li:nth-last-child(2) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2019 li:nth-last-child(3) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2020 li:nth-last-child(4) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2021 li:nth-last-child(5) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2022 li:nth-last-child(6) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2023 li:nth-last-child(7) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2024 li:nth-last-child(8) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2025 li:nth-last-child(9) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2026 li:nth-last-child(10) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2027 li:nth-last-child(11) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2028 li:nth-last-child(12) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2029 li:nth-last-child(13) a {
    background-color: #005197;
    color: #fff;
}
#snav #year2030 li:nth-last-child(14) a {
    background-color: #005197;
    color: #fff;
}
#snav li a::after {
    content: "年の記事";
}

/* #shingle a img,
#shingle img {
	display: block;
} */

/*===============================================
●画面の横幅が769px以上
===============================================*/
@media screen and (min-width : 769px ){
#pc------------------------------------------- {
}
header .logo {
    display: none;
}
header .inner h1 img.logo_glay {
    display: block;
}
header .inner #gnav li.gnavli a {
    color: #5A554B;
}
header .inner #gnav li.gnavli li a {
    color: #fff;
}
main {
    margin-top: 85px;
}
#snav {
    margin-bottom: 60px;
}
#snav h2 {
    font-size: 34px;
    color: #005197;
    margin-top: -40px;
    margin-bottom: 40px;
}
#snav ul {
    display: flex;
	display: -webkit-flex; /* Safari */ 　
    display: -ms-flexbox;
    flex-wrap: wrap;
	-webkit-flex-wrap: wrap; /* Safari */
    width: 1026px;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid #5A554B;
}
#snav ul li {
    width: 170px;
    border-right: 1px solid #5A554B;
    border-bottom: 1px solid #5A554B;
    border-top: 1px solid #5A554B;
}
#snav ul li:nth-of-type(7),
#snav ul li:nth-of-type(8),
#snav ul li:nth-of-type(9),
#snav ul li:nth-of-type(10),
#snav ul li:nth-of-type(11),
#snav ul li:nth-of-type(12),
#snav ul li:nth-of-type(13),
#snav ul li:nth-of-type(14),
#snav ul li:nth-of-type(15),
#snav ul li:nth-of-type(16),
#snav ul li:nth-of-type(17),
#snav ul li:nth-of-type(18)
{
    border-top: none;
}
#snav ul li a {
    display: block;
    color: #5A554B;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
}
#snav ul li a:hover {
    text-decoration: none;
    opacity: 0.7;
}
#news {
    width: 1024px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border-top: 1px solid #59564d;
    margin-bottom: 80px;
}
#news li {
    font-size: 18px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #59564d;
}
#news li a {
    color: #59564d;
    margin-left: 50px;
}
#news li a:hover {
    color: #FF9B00;
    text-decoration: none;
    transition: 0.2s;
}
#shingle {
    width: 1024px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    margin-bottom: 100px;
}
#shingle h3 {
    font-size: 24px;
    border-bottom: 1px solid #9b9a94;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
#shingle time {
    text-align: right;
    display: block;
    margin-top: -50px;
    margin-bottom: 20px;
}
#shingle div {
    font-size: 15px;
    line-height: 2em;
}

#shingle .news-content img,
#shingle .news-content video,
#shingle .news-content iframe {
    max-width: 100%;
}

#shingle .news-content iframe[src*="youtube.com"],
#shingle .news-content iframe[src*="youtube-nocookie.com"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

#shingle .wp-image-center {
	display: block;
	width: 640px;
	margin: 20px auto;
}
}



/*===============================================
●画面の横幅が768pxまで
===============================================*/
@media screen and (max-width:768px){
	
/*===============================================
●sp-tablet
===============================================*/
#sptablet------------------------------------------- {
}
main {
    margin-top: 14%;
}
#snav {
    margin-bottom: 5%;
}
#snav h2 {
    font-size: 20px;
    color: #005197;
    margin-bottom: 5%;
}
#snav ul {
    display: flex;
	display: -webkit-flex; /* Safari */ 　
    display: -ms-flexbox;
    flex-wrap: wrap;
	-webkit-flex-wrap: wrap; /* Safari */
    margin-left: 3%;
    margin-right: 3%;
    border-left: 1px solid #5A554B;
    border-top: 1px solid #5A554B;
}
#snav ul li {
    width: 49.5%;
    border-bottom: 1px solid #5A554B;
    border-right: 1px solid #5A554B;
}
#snav ul li a {
    display: block;
    color: #5A554B;
    font-size: 11px;
    height: 40px;
    line-height: 40px;
}
#snav ul li a:hover {
    text-decoration: none;
    opacity: 0.7;
}
#snav ul li.this a {
    background-color: #005197;
    color: #fff;
}
#news {
    margin-left: 5%;
    margin-right: 5%;
    text-align: left;
    border-top: 1px solid #59564d;
    margin-bottom: 10%;
}
#news li {
    font-size: 14px;
    padding-top: 3%;
    padding-bottom: 3%;
    border-bottom: 1px solid #59564d;
}
#news li a {
    color: #59564d;
    display: block;
}
#news li a:hover {
    color: #FF9B00;
    text-decoration: none;
    transition: 0.2s;
}
#shingle {
    margin-left: 5%;
    margin-right: 5%;
    text-align: left;
    margin-bottom: 10%;
}
#shingle h3 {
    font-size: 18px;
    border-bottom: 1px solid #9b9a94;
    padding-bottom: 1%;
}
#shingle time {
    text-align: right;
    display: block;
    margin-bottom: 1%;
}
#shingle div {
    line-height: 2em;
}

#shingle .news-content img,
#shingle .news-content video,
#shingle .news-content iframe {
    max-width: 100%;
    height: auto;
}

#shingle .news-content iframe[src*="youtube.com"],
#shingle .news-content iframe[src*="youtube-nocookie.com"] {
    width: 100%;
    aspect-ratio: 16 / 9;
}

#shingle .news-content ul,
#shingle .news-content ol {
    padding-left: 1.5em;
}

#shingle .wp-image-center {
	display: block;
	margin: 20px auto;
}

}



/*===============================================
●画面の横幅が400pxまで
===============================================*/
@media screen and (max-width:400px){
/*===============================================
●sp400
===============================================*/
#sp400------------------------------------------- {
}
}



/*===============================================
●画面の横幅が320pxまで
===============================================*/
@media screen and (max-width:320px){
/*===============================================
●sp320
===============================================*/
#sp320------------------------------------------- {
}

}



/*===============================================
●画面の横幅が481pxから768pxまで
===============================================*/
@media screen and (min-width:481px) and (max-width:768px) {
/*===============================================
●tablet
===============================================*/
#tab------------------------------------------- {
}
}
