@charset "UTF-8";

/* --- Base & Typography --- */
* {
    box-sizing: border-box;
}

body {
    font-family: "Arial","Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    margin: 4rem 0 0;
    background-color: #fff;
}

p {
    line-height: 2;
    margin: 1rem 0;
}

a {
    text-decoration: None;
}

a:hover {
    color: #142143;
}

h2, h3, h4 {
    color: #142143;
}

h2 {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 3rem;
    font-size: 200%;
    text-align: center;
    text-shadow: 1px 1px 6px #6b7a9f;
}

h2:before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: calc(50% - 30px);
    width: 60px;
    height: 5px;
    background: #6b7a9f;
}

h3 {
    padding: 1rem 2rem;
    margin: 1rem 1rem 1rem 0;
    font-size: 120%;
    border-bottom: 4px solid #142143;
    background-color: #e5e7eb;
}

h4 {
    margin: 0.5rem 0.5rem 0.5rem 1rem;
    padding: 0.5rem;
    width: 95%;
    border-left: 3px solid #e5e7eb;
}

hr {
    height: 2px;
    border: 0;
    border-top: 1px solid #fff;
}

address {
    font-style: normal;
    padding: 0.5rem;
}

/* --- Layout --- */
main {
    padding: 0 2%;
    margin: 10rem 10rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 13rem;
    background: #e5e7eb;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}

/* --- Header --- */
header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 30px 15% 10px;
    background-color: #e5e7eb;
    position: absolute;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #142143;
}

header h1 a {
    font-size: 25px;
}

#fixed-header {
    width: 100%;
    position: fixed;
    top: -90px;
    transition: .5s;
}
#fixed-header.is-show {
    top: -15px;
    z-index: 100;
    opacity: 0.9;
}

.title {
    flex-grow: 1;
}

/* --- Navigation --- */
nav {
    margin-left: auto;
}

.topnav {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.topnav li {
    margin-left: 15px;
    font-size: 14px;
}

.topnav li a {
    display: block;
    padding: 1em;
    color: #142143;
    position: relative;
}

.topnav li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: #142143;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.topnav li a:hover::after {
    bottom: 12px;
    opacity: 1;
    visibility: visible;
}

/* --- Contents Area --- */
.contents,
.blog-contents {
    font-feature-settings: "palt";
    letter-spacing: 0.1rem;
}

.contents a, .blog-contents a{
    text-decoration: none;
    color: #4b5564;
}

.contents a:hover, .blog-contents a:hover{
    color: #142143;
}

.contents {
    margin: 0 1.5rem;
    padding: 0.5rem;
}

.blog-contents {
    margin: 0 2rem;
    padding: 0.5rem;
}

.blog-contents h3 {
    margin: 2rem -2rem;
    padding: 1rem 2rem;
    border-bottom: 4px solid #142143;
}

/* --- Definition Lists --- */

dl {
    width: 70%;
}

dt {
    float: left;
    padding: 2px 5px;
}

dd {
    margin-left: 0;
    padding: 2px 5px;
    border-bottom: 1px solid #ccc;
}

dl.activity {
    width: 95%;
    font-size: 15px;
    margin-left: 0;
}

dl.activity dt::after {
    content: '';
    padding: 0 0.2rem;
}

dl.news {
    width: 95%;
}

dl.news dt {
    float: left;
    padding: 10px 5px;
}

dl.news dd {
    padding: 10px 5px;
    margin-left: 0px;
}

dl.news dt a {
    background: #e5e7eb;
    color: #142143;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    /* display: inline-block; */
    padding: 4px 15px;
    margin: 0 5px;
}

dl.news dt a:hover {
    background: #142143;
    color: #e5e7eb;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    /* display: inline-block; */
    padding: 4px 15px;
    margin: 0 5px;
}

dl.news dd a:hover {
    color: #4b5564;
}

/* --- Components --- */
.breadcrumb {
    padding: 0;
    margin-left: 1rem;
    list-style: none;
}

.breadcrumb li {
    display: inline;
    font-weight: bold;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    padding: 0 0.2em;
    color: #555;
}

.breadcrumb li a {
    color: #555;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.more_button a {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    max-width: 250px;
    margin: 1.5rem auto;
    padding: 0.5rem 2rem;
    color: #142143;
    background: #e5e7eb;
    border-radius: 3px;
    font-weight: 500;
    line-height: 1.8;
    box-shadow: 1px 1px 5px #6b7a9f;
    transition: 0.3s ease-in-out;
}

.more_button a:hover {
    background: #142143;
    color: #fff;
}

.more_button a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 5px;
    height: 5px;
    border-top: 3px solid #142143;
    border-right: 3px solid #142143;
    border-radius: 1px;
    transform: rotate(45deg) translateY(-50%);
    transition: 0.3s ease-in-out;
}

.more_button a:hover::after {
    border-color: #fff;
}

.top {
    padding: 0.5rem 2rem;
    margin-top: 2rem;
    text-align: right;
}

.top a {
    color: #4b5564;
    border-bottom: 1px solid #4b5564;
}

.top a:hover {
    color: #000;
    border-bottom: 1px solid #555;
}

/* --- Footer --- */
.footer {
    padding: 2rem;
    font-size: 15px;
    color: #4b5564;
    background: #e5e7eb;
}

.footer a {
    color: #4b5564;
}

.footer a:hover {
    color: #142143;
}

.footer ul {
    padding: 0;
    list-style: none;
}

ul.link li a {
    color: #4b5564;
}

ul.link li a:hover {
    color: #142143;
}

.footer_navi {
    display: flex;
    margin-bottom: 0.75rem;
}

.footer_navi li {
    margin: 0 10px;
    width: 30px;
}

.footer_navi li img{
    transition: transform 1s;
    transform: rotate(-360deg);
}

.footer_navi li:hover img{
    transition: transform 1s;
    transform: rotate(360deg) scale(1.3);
}

.footer_navi_heading {
    font-weight: 600;
}

.footer_address {
    margin-bottom: 2rem;
}

.footer_address a {
    text-decoration: underline;
}

.copyright {
    text-align: center;
}

/* --- Media Queries --- */
@media (max-width: 1100px) {
    main {
        margin: 10rem 0.5rem;
    }
    header {padding: 25px 4% 10px;}
}

@media (max-width: 700px) {
    body {
        font-size: 14px;
        margin-top: 3rem;
    }
    p {
        margin: 0;
    }
    main {
        margin: 6rem 0.5rem;
    }
    h2 {
        font-size: 150%;
    }
    h3 {
        padding: 1rem;
        margin: 1rem 0.2rem;
    }
    h4 {
        margin: 0.1rem;
        padding: 0.4rem;
    }
    header {padding: 25px 4% 10px;}
    header h1 { font-size: 8px; }
    header h1 a { font-size: 18px; }

    .topnav li { font-size: 10px; }
    .topnav li a { padding: 0.1rem; }
    .topnav li a::after { bottom: 0; }
    .topnav li a:hover::after { bottom: 1px; }

    .contents,
    .blog-contents {
        letter-spacing: 0.09rem;
    }
    .contents {
        margin: 0 0.1rem;
        padding: 0.4rem;
    }
    .blog-contents {
        margin: 0 0.1rem;
        padding: 0.5rem;
    }
    .blog-contents h3 {
        margin: 2rem -1rem;
    }
    dl.news dt,
    dl.activity dt {
        float: left;
    }
    dl.news dt {
        padding: 7px, 5px;
    }
    dl.activity {
        font-size: 14px;
    }
    dl.activity dt,
    dl.activity dd {
        padding: 2px 4px;
    }
    .update {
        font-size: 10px;
        margin-left: 1rem;
    }
    .footer_navi li {
        margin: 0 5px;
    }
    .grid {
        margin: 0;
    }
}

@media (max-width: 365px) {
    body {
        margin-top: 4.5rem;
    }
    main {
        margin: auto 0; /* from 1100px */
    }
    h2 {
        font-size: 100%;
    }
    .header h1 { font-size: 7px; }
    .header h1 a { font-size: 13px; }

    dl.activity {
        font-size: 15px;
        margin-left: 1rem;
        width: 90%;
    }
    dl.activity dt,
    dl.activity dd {
        padding: 2px 5px;
    }
    .footer_navi {
        margin-bottom: 0.75rem;
    }
    .footer_navi li {
        width: 20px;
        margin: 0; /* widthが指定されているためmarginをリセット */
    }
}