@charset "UTF-8";

/*********************************
preset variables
*********************************/
:root {
    --fontSize: 16px;
    --linkColor: #00439f;
    --textColor: #333;
    /* color preset */
    --mainColor: #00439f;
    --mainDarkColor: #0b2c5a;
    --mainLightColor: #00a0e9;
    --subColor: #ffa800;
    --subDarkColor: ;
    --subLightColor: ;
    /* width preset */
    --gutter: 1.3rem;
    --gap: 3rem;
    --contentWidth: 1000px;
}

/* OVERWRITE RADIX */

body {
    min-width: var(--contentWidth);
}

.centering {
    width: var(--contentWidth);
    max-width: var(--contentWidth);
}

/* OVERWRITE end */
/*************************************
* START header
*************************************/
header {
    padding: 0 1rem;
}

header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

header h1 a {
    color: var(--textColor);
    font: 1.4rem/1 "Noto serif JP";
    font-weight: 900;
    text-decoration: none !important;
}

header a.sitemap {
    position: relative;
    color: var(--textColor);
    padding-left: 27px;
    line-height: 20px;
}

header a.sitemap::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    font-family: "Font Awesome 5 Free";
    content: "\f0e8";
    font-weight: 900;
    color: var(--linkColor);
}

/*************************************
* END header START nav
*************************************/
nav {
    background: #000;
}

nav ul.centering {
    display: flex;
}

nav li {
    width: 100%;
    flex-grow: 1;
    padding: 0.5rem 0;
}

nav li a {
    display: grid;
    height: 100%;
    place-items: center;
    padding: 0.3rem 1.3rem;
    border-right: 1px solid #fff;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.4;
}

nav li a:hover {
    color: var(--subColor);
    text-decoration: none;
}

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

/*************************************
* END nav START main
*************************************/
main {
    background: #eee;
}

img.eyecatch {
    display: block;
    max-width: var(--contentWidth);
    margin: auto;
}

main > article {
    --containerBg: transparent;
    --itemBg: #fff;
    padding: 1px 0;
    margin: 0;
    background: var(--containerBg);
}

main > article:nth-of-type(2n-1) {
    --containerBg: #fff;
    --itemBg: #eee;
}

main article > section {
    width: var(--contentWidth);
    position: relative;
    margin: var(--gap) auto;
}

main article h1 {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    position: relative;
    padding: 0.5rem 0.75rem 0;
    background: var(--itemBg);
    font: 1.5rem/1.4 "Noto Serif JP";
    font-weight: 700;
    overflow: hidden;
    margin-top: 2rem;
}
main article h1::after {
    content: "";
    display: block;
    width: calc(100% + 1.5rem);
    height: 0.3rem;
    grid-row: 2/3;
    grid-column: 1/2;
    transform: translateX(-0.75rem);
    margin-top: 0.5rem;
    background-color: var(--mainColor);
}
main.sub article h1::after {
    background-color: var(--mainLightColor);
}

main h2 {
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: solid 2px #7f7f7f;
    margin-top: 1rem;
}

main h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6rem;
    border-left: 10px solid var(--mainColor);
    padding-left: 0.6rem;
    margin: 1rem 0 0.4rem 0;
}
main h4 {
    font-size: 1rem;
    /*color: var(--mainColor);*/
    font-weight: 700;
    line-height: 1.6rem;
    padding-left: 0.2rem;
    margin: 1rem 0 0.4rem 0;
}

.breadcrumb {
    background: var(--mainColor);
    color: #fff;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    width: var(--contentWidth);
    margin: 0 auto;
    padding: 10px 0;
}

.breadcrumb ul li:not(:last-child) {
    position: relative;
    padding-right: 15px;
    margin-right: 15px;
}

.breadcrumb ul li:not(:last-child)::after {
    position: absolute;
    top: 2px;
    right: -2px;
    font-family: "Font Awesome 5 Free";
    content: "\f105";
    font-weight: 900;
}

.breadcrumb ul li a {
    color: #fff;
    text-decoration: underline;
}

.img_flex_wrapper {
    display: flex;
    margin-bottom: var(--gutter);
}

.pagetitle h1 {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 3rem 0.8rem 1rem;
    margin-bottom: 0;
    background: #fff;
    font-family: "Noto Serif JP";
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
}

.pagetitle h1 span {
    margin-left: 1rem;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.pagetitle .centering {
    padding: 2rem 0;
    background: url(../img/theme/sub_header.png) no-repeat right center;
    background-size: auto 100%;
}

dl.news {
    background: var(--itemBg);
    padding: 2rem 2rem 2rem 3rem;
}

dl.news dt {
    position: relative;
}

dl.news dt::before {
    position: absolute;
    top: 0;
    left: -1rem;
    font-family: "Font Awesome 5 Free";
    content: "\f105";
    font-weight: 900;
    color: var(--mainColor);
}

dl.news dt.new::after {
    content: "New!";
    margin-left: 0.5rem;
    color: #f00;
    font-weight: 700;
}

dl.news dd:not(:last-child) {
    margin-bottom: var(--gutter);
}

a.details {
    display: inline-block;
    text-decoration: underline;
    position: relative;
    padding-right: 1em;
    font-size: 1.2rem;
    line-height: 1.5;
}

a.details::after {
    content: "\f105";
    position: absolute;
    top: 0;
    right: 0;
    color: var(--mainColor);
    font-size: 1.2em;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    line-height: 1.4;
}

dl.relation-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

dl.relation-links dt {
    width: 10rem;
    padding: 2rem 1em 2rem 0;
    font-family: "Noto Serif JP";
    font-weight: 700;
    border-bottom: 1px solid #ccc;
}

dl.relation-links dd {
    width: calc(100% - 10rem);
    padding: 2rem 0;
    border-bottom: 1px solid #ccc;
}

dl.relation-links dt:first-of-type,
dl.relation-links dd:first-of-type {
    padding-top: 1rem;
}
dl.relation-links dt:last-of-type,
dl.relation-links dd:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
}

ul.banner {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
}

ul.link-list {
    list-style: none;
    margin-bottom: 0;
}

ul.link-list li {
    margin-bottom: 0.5rem;
}

ul.link-list a {
    color: #000;
    position: relative;
    padding-left: 1rem;
    font-family: "Noto Serif JP";
    line-height: 1.4;
}

ul.link-list a::before {
    content: "\f105";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--mainColor);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    line-height: 1.5;
}

.theme-list {
    list-style: none;
    padding: 0;
}

.theme-list li {
    display: flex;
    padding: 1.5rem 0;
}

.theme-list li:not(:last-child) {
    border-bottom: solid 1px #ccc;
}

.theme-list li img {
    object-fit: contain;
    margin-right: 1rem;
}

dl.papers {
    counter-reset: papers-list;
    font-family: "Noto Serif JP";
}

dl.papers dt::before {
    counter-increment: papers-list;
    content: counter(papers-list);
    font-family: "Noto Sans JP";
    position: absolute;
    left: -2rem;
}

dl.papers dt,
dl.papers dd {
    margin-left: 3rem;
}

dl.papers dt {
    position: relative;
}

dl.papers dd {
    margin-bottom: 1rem;
}

dl.papers dd {
    font-style: italic;
}

.red {
    color: #f44336;
}

.italic {
    font-style: italic;
}

figure {
    text-align: center;
    margin: 0 auto;
}

figure.img_research {
    max-width: 80%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

ol.news li {
    margin-bottom: 1rem;
}

ol.topics li {
  margin-bottom: 1rem;
}
ol.topics li img {
    display: block;
    width: 25%;
    margin: 1rem;
}

main.index article section dl.news a, main.sub article section a {
    word-break: break-all;
}

/*************************************
* END main START footer
*************************************/
footer {
    padding: 2rem 0;
    background: #000;
    color: #fff;
}

footer nav {
    margin-bottom: 1.3rem;
}

footer nav li {
    width: auto;
    flex-grow: 1;
    padding: 0.5rem 0;
}

footer nav li a {
    display: grid;
    height: 100%;
    place-items: center;
    padding: 0;
    border-right: 1px solid #fff;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
}
