/* コンテンツ
================================================== */
h1 {
	font-size: 32px;
	font-weight: bold;
    line-height: 1.5em;
    margin: 80px 0 0 0;
}
h1.toppage_h1, h1.list_h1 {
    margin-bottom: 50px;
}
@media only screen and (max-width: 767px) {
    h1 {
        font-size: 24px;
    }
}

p.more a {
    margin: 50px auto 0 auto;
    width: 30%;
    display: block;
    padding: 20px 30px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2em;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
p.more a::after {
    background: rgba(255,255,255,0.3);
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: .1s cubic-bezier(0.45, 0, 0.55, 1);
    z-index: -1;
}
p.more a:hover {
    color: #fff;
    opacity: 1;
}
p.more a:hover::after {
    transform: scale(1, 1);
}
@media only screen and (max-width: 767px) {
    p.more a {
        width: 80%;
        font-size: 14px;
    }
}



/* 一覧ページ
================================================== */
ul.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ccc;
}
ul.news-list li {
    padding: 0;
    border-bottom: 1px solid #ccc;
}
ul.news-list li > a {
    display: flex;
    gap: 1.5rem;
    padding: 14px 4px;
    color: #333;
    text-decoration: none;
}
ul.news-list li:hover {
    background: #f7f7f7;
}
ul.news-list time {
    flex: 0 0 9.5em;
    color: #666;
    font-variant-numeric: tabular-nums;
}
ul.news-list li > a > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.empty {
    color: #666;
}
@media only screen and (max-width: 767px) {
    ul.news-list li > a {
        display: block;
        padding: 10px 0;
        font-size: 13px;
        line-height: 1.5em;
    }
    ul.news-list time {
        display: block;
        font-size: 12px;
    }
}

/* 一覧ページ用 ページャー */
.pager {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.pager a,
.pager span {
    min-width: 40px;
    padding: 7px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ccc;
    text-decoration: none;
    color: #333;
}
.pager a:hover {
    opacity: 0.8;
}
.pager .cur {
    background: #f70;
    color: #fff;
    font-weight: 700;
}
.pager .dis {
    opacity: .35;
}



/* 記事ページ
================================================== */
.news_article {
    margin-top: 80px;
}
.news_article time {
	color: #666;
	font-size: 14px;
}
.news_article .body {
	margin: 50px 0;
}
.news_article a {
    font-weight: bold;
}

/* アイキャッチ画像（記事ページの先頭） */
.eyecatch_fig {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 50px;
}
.eyecatch_fig .eyecatch {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}
.eyecatch_fig figcaption.caption {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5em;
    text-align: right;
    padding-right: 10%;
}
.images figure {
  margin: 0;
}

/* 画像 */
.images {
    display: grid;
    gap: 16px;
}
.images img {
    margin: 20px auto 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/* キャプション */
.caption {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5px;
    color: #555;
}

/* PDF */
.files {
    list-style: none;
    margin-top: 50px;
    background: #f0f0f0;
    padding: 50px 50px 40px 50px;
}
.files li {
    margin-bottom: 10px;
}
.files li a {
    display: block;
    padding: 10px;
    color: #333;
    font-weight: bold;
    background: #fff;
}
.files li a:hover {
    background: #ccc;
}
.files a::before {
  content: "PDF";
  display: inline-block;
  margin-right: .7em;
  padding: 15px 30px 15px 60px;
  font-size: 100%;
  line-height: 1.6;
  border-radius: 6px;
  color: #fff;
  background: #f30;
  position: relative;
}
.files a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8M8 17h6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 30px;
}
@media only screen and (max-width: 767px) {
    .files {
        padding: 20px 20px 10px 20px;
    }
}

/* PDFリンク：キャプションの右隣にファイル名 */
.files .fname {
  margin-left: .6em;
  font-size: 75%;
  font-weight: normal;
  overflow-wrap: anywhere;
}

/* 記事ページ 下部：前後移動ボタン */
.article_nav {
    margin: 100px auto;
    max-width: 560px;
    display: flex;
    gap: 10px;
}
.article_nav a,
.article_nav span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2em;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.article_nav > :first-child,
.article_nav > :last-child {
    flex: 0 0 100px;
    padding: 20px 10px;
}
.article_nav > :nth-child(2) {
    flex: 1.4;
}
.article_nav a::after {
    background: rgba(255,255,255,0.3);
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: .1s cubic-bezier(0.45, 0, 0.55, 1);
    z-index: -1;
}
.article_nav a:hover {
    color: #fff;
    opacity: 1;
}
.article_nav a:hover::after {
    transform: scale(1, 1);
}
.article_nav span {
    opacity: .3;
}
.article_nav > :first-child::before,
.article_nav > :last-child::before {
    content: '';
    box-sizing: border-box;
    flex: none;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
}
.article_nav > :first-child::before {
    margin-right: 2.4px;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
}
.article_nav > :last-child::before {
    order: 1;
    margin-left: 2.4px;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
@media only screen and (max-width: 767px) {
    .article_nav {
        gap: 6px;
    }
    .article_nav a,
    .article_nav span {
        padding: 16px 8px;
        font-size: 14px;
    }
    .article_nav > :first-child,
    .article_nav > :last-child {
        padding: 16px 6px;
    }
}



/* サムネイル付き一覧ページ（横4×縦5）
================================================== */
ul.news-thumb-list {
    list-style: none;
    margin: 50px 0 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
}
ul.news-thumb-list li a {
    display: block;
    color: #222;
    text-decoration: none;
}
.news-thumb-list .thumb {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e5e5e5;
}
.news-thumb-list .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.news-thumb-list .noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 14px;
    letter-spacing: .1em;
}
.news-thumb-list .ttl {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5em;
    overflow-wrap: anywhere;
}
.news-thumb-list time {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 13px;
    line-height: 1.5em;
}
.news-thumb-list a:hover .ttl {
    text-decoration: underline;
}
@media only screen and (max-width: 767px) {
    ul.news-thumb-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }
    .news-thumb-list .ttl {
        font-size: 13px;
    }
    .news-thumb-list time {
        font-size: 12px;
    }
}
