@charset "UTF-8";

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/************************************************
    Header
*************************************************/
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
}

#header .wrap__inner {
    display: grid;
    -ms-grid-columns: 1fr auto;
    grid-template-columns: 1fr auto;
    -ms-grid-rows: auto 1fr;
    grid-template-rows: auto 1fr;
    margin: 0 auto;
    padding: 0;
}

#header .site-name {
    display: grid;
    align-items: center;
    -ms-grid-column: 1;
    grid-column: 1;
    -ms-grid-column-span: 2;
    -ms-grid-row: 1;
    grid-row: 1;
    padding: 0 var(--base-gutter);
    background-color: #fff;
    font-size: 1.75em;
}

#header .site-name .description {
    display: none;
    font-size: 1.2rem;
    line-height: 1em;
}

#header .site-name a {
    display: block;
    width: fit-content;
}

#header .logo {
    max-height: 40px;
    width: 100%;
}

/*  Humburger Menu
------------------------------------------------*/
#header .toggle {
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 1;
    grid-row: 1;
}

.toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    width: auto;
    padding: 13.5px 7.5px;
    box-sizing: content-box;
    background-color: var(--sub-color);
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.toggle .hamburger {
    display: block;
    position: relative;
    width: 45px;
    height: 33px;
    margin: 0 auto;
    transition: all 0.5s ease;
}

.toggle .line {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 1.5px;
    transition: all 0.5s ease;
}

.toggle .line:first-of-type {
    top: 0;
}

.toggle .line:nth-of-type(2) {
    top: 0;
    bottom: 0;
    height: 0.625em;
    margin: auto;
    background-color: transparent;
}

.toggle .line:nth-of-type(2)::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    padding-left: 0.1em;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-align: center;
    content: "MENU";
}

.toggle .line:last-of-type {
    bottom: 0;
}

.js-is-open .toggle .line:first-of-type {
    transform: translateY(15px) rotate(-45deg);
}

.js-is-open .toggle .line:nth-of-type(2) {
    opacity: 0;
}

.js-is-open .toggle .line:last-of-type {
    transform: translateY(-15px) rotate(45deg);
}

/*  Navigation
------------------------------------------------*/
#header .modal {
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    grid-column: 1 / -1;
    -ms-grid-row: 2;
    grid-row: 2;
    -ms-grid-column-align: end;
    justify-self: end;
    -ms-grid-row-align: start;
    align-self: start;
    width: 100%;
    height: 0;
    padding: calc(var(--base-gutter) * 4);
    background-color: var(--light-color);
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

#header.js-is-open .modal {
    display: block;
    margin-right: 0;
    visibility: visible;
    opacity: 1;
    height: calc(100vh - 60px);
}

.navigation__list li {
    border-bottom: 1px solid var(--main-color);
}

.navigation__list li:last-child {
    border: none;
}

.navigation__list li a {
    display: block;
    padding: calc(var(--base-gutter) * 2);
}

.navigation__list li a:hover {
    background-color: var(--dark-color);
    color: #fff;
}

.navigation__list li a::before {
    margin-right: 0.5em;
    content: '▶';
}

/************************************************
    Breadcrumb
*************************************************/
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75em;
}

.breadcrumb li:not(:first-child)::before {
    margin: 0 0.5em;
    font-weight: normal !important;
    content: '>';
}

.breadcrumb li:last-child {
    font-weight: bold;
}

.breadcrumb li a {
    text-decoration: underline;
}

/************************************************
    Page Header
*************************************************/
#page-header {
    background-color: var(--light-color);
}

#page-header .wrap {
    padding: calc(var(--base-gutter) * 4) calc(var(--base-gutter) * 3);
}

#page-header .page__title {
    color: var(--main-color);
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

/************************************************
    Contents
*************************************************/
#contents {
    flex: 1;
    width: 100%;
    line-height: 1.5;
}

#contents:not(:has(#blog)) .wrap {
    margin-top: calc(var(--toggle-height) * -1);
    padding-top: var(--toggle-height);
}

#contents .wrap__inner {
    padding: calc(var(--base-gutter) * 4) calc(var(--base-gutter) * 3);
}

#contents:has(#blog) .wrap__inner {
    display: flex;
    flex-direction: column;
    row-gap: calc(var(--base-gutter) * 8);
}

/*  Blog
------------------------------------------------*/
#blog article {
    padding: calc(var(--base-gutter) * 2);
    border: 1px solid var(--border-color);
}

#blog article .post__title {
    color: var(--main-color);
    font-size: 1.125em;
    font-weight: bold;
}

#blog .post__list li + li {
    margin-top: calc(var(--base-gutter) * 4);
}

#blog .post__archive figure {
    display: flex;
    flex-direction: column;
    row-gap: calc(var(--base-gutter) * 2);
}

#blog .post__archive figure img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

#blog .post__archive .post__excerpt::before {
    display: block;
    margin: calc(var(--base-gutter) * 2) 0;
    border-top: 1px solid var(--main-color);
    content: '';
}

#blog .post__single .post__title {
    padding-bottom: var(--base-gutter);
    border-bottom: 1px solid var(--main-color);
}

#blog .post__single section {
    margin: calc(var(--base-gutter) * 4) 0;
}

#blog .post__single time {
    display: block;
    padding-top: var(--base-gutter);
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/*  Sidebar
------------------------------------------------*/
#contents .sidebar > ul {
    display: flex;
    flex-direction: column;
    row-gap: calc(var(--base-gutter) * 4);
}

#contents .sidebar .widget_block .wp-block-heading {
    margin: 0;
    padding: var(--base-gutter);
    font-size: 1.125em;
}

#contents .sidebar .widget_block li {
    padding: calc(var(--base-gutter) / 2) var(--base-gutter);
}

#contents .sidebar .widget_block > ul li::before {
    margin-right: 0.5em;
    content: '▶';
}

#contents .sidebar .widget_block > ul li + li {
    border-top: 1px dotted var(--border-color);
}

/*  Pager
------------------------------------------------*/
#contents .pagination {
    margin-top: calc(var(--base-gutter) * 8);
}

#contents .pager {
    display: flex;
    justify-content: space-between;
    column-gap: var(--base-gutter);
}

#contents .pager li {
    flex: 1;
}

#contents .pager a {
    display: inline-block;
    padding: calc(var(--base-gutter) / 2) var(--base-gutter);
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
    color: #fff;
    text-align: center;
}

/************************************************
    Fixed Link
*************************************************/
#fixedlink {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: right;
}

#fixedlink ul {
    display: flex;
    row-gap: var(--base-gutter);
    column-gap: var(--base-gutter);
    padding: var(--base-gutter);
    background-color: var(--light-color);
}

#fixedlink .contact {
    flex: 1;
}

#fixedlink a {
    -js-display: inline-flex;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 50px;
    min-height: 50px;
    padding: 0 var(--base-gutter);
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
    transition: all 0.5s ease;
    pointer-events: all;
}

#fixedlink .contact a {
    font-size: 1.375em;
}

#fixedlink .contact a::before {
    position: relative;
    top: 2px;
    margin-right: calc(var(--base-gutter) / 2);
}

#fixedlink .return a {
    background-color: var(--dark-color);
}

#fixedlink .return a::before {
    display: inline-block;
    transform: rotate(90deg);
    color: #fff;
    content: '≪';
}

/************************************************
    Footer
*************************************************/
#footer {
    width: 100%;
    background: var(--main-color);
    color: #fff;
    line-height: 1.2;
}

#footer .wrap__inner {
    padding: calc(var(--base-gutter) * 4) calc(var(--base-gutter) * 3);
}

#footer .site-name {
    margin: 0 auto calc(var(--base-gutter) * 4);
    font-size: 1.75em;
    text-align: center;
}

#footer .site-name .logo {
    display: block;
    max-height: 40px;
    margin: 0 auto;
}

#footer .sns-link {
    display: flex;
    column-gap: var(--base-gutter);
    justify-content: center;
    margin: calc(var(--base-gutter) * 4) auto;
}

#footer .sns-link__item {
    font-size: 1.875em;
    line-height: 1;
}