/*******************************************************************************
 * File name:           01_style_base_e_desktop.css
 * Description:         This is the style sheet for the base elements.
 *******************************************************************************/
/*
 * Google Fonts
 * --------------------------------------------------------------------------------
 *      No special fonts used
 */

 /*
 * Fundamental settings
 * --------------------------------------------------------------------------------
 */
:root {
    /*** Size ***/
    --max-site-width:           1280px;
    --sidebar-width:            3.2rem;
    --site-symbol-height:      16.0rem;
    --widget-menu-width:       36.0rem;
}

html {
    font-size: clamp(0.375rem, 0.78vw, 0.625rem);   /* Max-width 1280px case */
    /*font-size: clamp(0.391rem, 0.98vw, 0.625rem); /* Max-width 1024px case */
    font-weight: 200;
    line-height: 2.0;
}

h1 {font-size: 4.2rem;}
h2 {font-size: 2.8rem;}
h3 {font-size: 2.2rem;}

/*
 * Basic elements
 * --------------------------------------------------------------------------------
 */
.site {
    max-width: var(--max-site-width);
}

.site-inner {
    width: 100%;
}

.site-top {
    position: fixed;
    top: 0;
    width: min(var(--max-site-width), 100%);
    z-index: 10;
    opacity: 0;
    transition: all 0.5s;
}

.site-top:hover {
    opacity: 1;
}

.site-body {
    width: 100%;
}

.site-bottom {
    width: 100%;
    padding: 2.4rem 0;
    text-align: center;
}

/*
 * Sidebar elements
 * --------------------------------------------------------------------------------
 */
.sidebar {
    position: absolute;
    font-size: 1.6rem;
    height: 100%;
    width: var(--sidebar-width);
}

.sidebar-inner {
    flex-direction: column;
    position: fixed;
    top: 0;
}

.sidebar.left {
    left: 0px;
}

.sidebar.right {
    right: 0px;
}

.sidebar-inner {  
    flex-direction: column;
    width: var(--sidebar-width);
}

/*** Site symbol ***/
.sidebar .site-symbol {
    display: table;
    height: var(--site-symbol-height);
    width: 100%;
    transition: all 0.5s;
}

.sidebar .site-symbol:hover {
    width: var(--site-symbol-height);
    border-radius: 50%;
}

.sidebar.right .site-symbol:hover {
    margin-left: calc(-0.9 * var(--site-symbol-height) + var(--sidebar-width));
}

.sidebar.left .site-symbol:hover {
    margin-left: calc(-0.1 * var(--site-symbol-height));
}

.sidebar .site-name {
    transition: all 0.4s;
}

.sidebar .site-name:nth-child(1) {
    display: table-cell;
}

.sidebar .site-name:nth-child(2) {
    display: none;
}

.sidebar .site-name:nth-child(3) {
    display: none;
}

.sidebar .site-symbol:hover .site-name:nth-child(1) {
    display: none;
}

.sidebar .site-symbol:hover .site-name:nth-child(2) {
    display: table-cell;
}

/*** Widget menu ***/
.sidebar .widget-menu-area {
    position: relative;
}

.sidebar .widget-menu-button {
    width: var(--sidebar-width);
    height: calc(0.5rem + var(--sidebar-width));
}

.sidebar .widget-menu-button:hover {
    background-color: rgb(var(--color-dark-navy-blue) / 1.0);
    border: 1px solid white;
    border-radius: 50%;
}

.sidebar .widget-menu-button::after {
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.sidebar .widget-menu-button:checked::after {
    background-color: rgb(var(--color-cyan) / 1.0);
    color: rgb(var(--color-dark-navy-blue) / 1.0);
    border-radius: 50%;
}

.sidebar .widget-menu {
    top: 0;
    left: 0;
    width: 0;
    opacity: 0;
    padding: 1.2rem 3.2rem;
    transition: all 0.4s ease-in-out;
}

.sidebar.right .widget-menu.active {
    left: calc(-1 * var(--widget-menu-width));
    width: var(--widget-menu-width);
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease-in-out;
}

.sidebar.left .widget-menu.active {
    left: var(--sidebar-width);
    width: var(--widget-menu-width);
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease-in-out;
}

.sidebar .widget-area {
    font-size: 1.4rem;
    line-height: 1.2;
    white-space: nowrap;
}

.sidebar .widget-block h2 {
/*    font-size: 2.4rem;*/
    line-height: 1.8;
    padding-bottom: 1.0rem;
}


/*** Site menu ***/
.sidebar .site-menu {
    width: var(--sidebar-width);
}

.sidebar .menu-list {
    flex-direction: column;
    height: 100%;
}

.sidebar .menu-item {
    width: 100%;
    height: 12.0rem;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.sidebar.right .menu-item {
    border-left: 1px solid white;
    writing-mode: sideways-rl;
}

.sidebar.left .menu-item {
    border-right: 1px solid white;
    writing-mode: sideways-lr;
}

.sidebar .menu-item:hover {
    background-color: rgb(var(--color-cyan) / 1.0);
    color: rgb(var(--color-dark-navy-blue) / 1.0);
    width: 6.0rem;
}

.sidebar.right .menu-item:hover {
    margin-left: calc(var(--sidebar-width) - 6.0rem);
    border-radius: 6.0rem 0 0 6.0rem;
}

.sidebar.left .menu-item:hover {
    margin-left: 0;
    border-radius: 0 6.0rem 6.0rem 0;
}

/*
 * Post list elements
 * --------------------------------------------------------------------------------
 */
.page {
    padding-bottom: 4.8rem;
    overflow: visible;
}

.page .content-main {
    overflow: visible;
}

.page-title {
    font-weight: 400;
    padding: 0 4.2rem;
}

.post-list-page .post-thumbnail {
    width: 50%;
}

.post-list-page .post-thumbnail img {
    width: 100%;
    filter: grayscale(100%);
    -webkit-transition:	all 0.4s ease;
    transition:			all 0.4s ease;
}

.post-list-page .post-thumbnail img:hover {
    filter: grayscale(0%);
}

.post-list-page .post-info {
    width: 50%;
    padding: 0.6rem 2.4rem;
}

.post-list-page .post-title {
    font-size: 2.4rem;
}

.post-list-page .post-date,
.post-list-page .post-category  {
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: right;
    padding-right: 2.4rem;
}

.post-list-page .post-excerpt {
    font-size: 1.6rem;
    padding: 1.2rem 2.4rem;
}

/*
 * Post single page elements
 * --------------------------------------------------------------------------------
 */
.post-single-page {

}

.post-single-page .content-main {

}

.post-single-page .post {
    width: 100%;
}

.post-single-page .post-thumbnail {
    width: 100%;
}

.post-single-page .post-thumbnail img {

}

.post-single-page .post-info {
    position: absolute;
    background-color: rgb(var(--color-black) / 0.8);
    color: rgb(var(--color-white) / 1.0);
    bottom: 0;
    height: 40%;
    width: 100%;
    padding-top: 7%;
    clip-path: polygon(
          0%   0%,
        100%  75%,
        100%   0%,
         60% 100%,
          0% 100%,
          0%   0%
    );
}

.post-single-page .post-title {
    font-size: 3.6rem;
    line-height: 1.2;
    width: 60%;
    padding-left: 4.8rem;
}

.post-single-page .post-date,
.post-single-page .post-category  {
    font-size: 1.8rem;
    line-height: 1.2;
    text-align: right;
    padding-right: 4.8rem;
}

.post-single-page .post-excerpt {
    font-size: 1.6rem;
    margin: 4.8rem 10% 0 10%;
    padding: 4.8rem 12.0rem;
    border-radius: 6px;
    text-align: center;
}

.post-single-page .post-excerpt::before {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 1.2rem;
}

.post-single-page .post-article {
    font-size: 1.8rem;
    margin: 4.8rem 10% 0 10%;
    padding: 4.8rem;
    border-radius: 6px;
}

.post-single-page .post-article h1.wp-block-heading  {
    /*font-size: 4.2rem;*/
    font-weight: 400;
    margin: 3.6rem 0;
    padding: 0;
}

.post-single-page .post-article h2.wp-block-heading {
    /*font-size: 2.8rem;*/
    font-weight: 400;
    margin: 6.0rem 0 2.4rem;
    padding: 0;
}

.post-single-page .post-article h2.wp-block-heading:before,
.post-single-page .post-article h2.wp-block-heading:after {

}

.post-single-page .post-article h2.wp-block-heading:before {

}

.post-single-page .post-article h2.wp-block-heading:after {

}

.post-single-page .post-article h3.wp-block-heading {
    /*font-size: 2.4rem;*/
    font-weight: 400;
    margin: 4.8rem 0 1.2rem;
    padding: 0 2.4rem;
}

.post-single-page .post-article h3.wp-block-heading:before {

}

.post-single-page .post-article p {
    margin: 0 0 1.2rem;
    line-height: 1.6;
}

.post-single-page .post-article figure {
    margin: 1.2rem 0 3.6rem;
}

.post-single-page .post-article figcaption {
    margin: 2.4rem 4.8rem;
}

.post-single-page .post-article hr {

}

/*** List on content page ***/
.post-single-page .post-article ul,
.post-single-page .post-article ol {

}

.post-single-page .post-article ul {

}

.post-single-page .post-article ul ul,
.post-single-page .post-article ol ul {

}

.post-single-page .post-article ol {
    list-style: decimal;
}

.post-single-page .post-article ul ol,
.post-single-page .post-article ol ol {

}

/*** Table on content page ***/
.post-single-page .post-article thead,
.post-single-page .post-article tbody,
.post-single-page .post-article tfoot {}

.post-single-page .post-article thead {

}

.post-single-page .post-article tbody {

}

.post-single-page .post-article tfoot {

}

.post-single-page .post-article table {

}

.post-single-page .post-article caption,
.post-single-page .post-article th,
.post-single-page .post-article td {
    font-size: 1.6rem;
    padding: 0.5rem;
}

.post-single-page .post-article th {

}

.post-single-page .post-article td {

}

/*
 * Site navigation parts
 * --------------------------------------------------------------------------------
 */
/* Post pagination */
.site-navigation .post-pagination {
    width: 100%;
    padding: 2.4rem 1.2rem;
    clear: both;
}

.post-pagination a.page-numbers,
.post-pagination span.page-numbers {
    font-size: 2.0rem;
    width: 6.0rem;
    height: 6.0rem;
    border-radius: 10%;
    border: 1px solid rgb(var(--color-black) / 1.0);
    margin: 0 0.5%;
    transition: .2s ease-in-out;
}

/* Post navigation */
.post-navigation .nav-links {
    flex-direction: row;
}

.post-navigation .nav-links .nav-prev,
.post-navigation .nav-links .nav-next {
    width: 50%;
}

.post-navigation .nav-links .nav-prev .prev-post-img,
.post-navigation .nav-links .nav-next .next-post-img {
    float: left;
    width: 50%;
}

.post-navigation .nav-links .nav-prev .prev-post-title,
.post-navigation .nav-links .nav-next .next-post-title {
    font-size: 2.0rem;
}

.post-navigation .nav-links .nav-prev .prev-post-meta,
.post-navigation .nav-links .nav-next .next-post-meta {
    font-size: 1.2rem;
    font-weight: 400;
}

.post-navigation .nav-links .nav-prev .prev-post-meta {
    right: 3.6rem;
}

.post-navigation .nav-links .nav-next .next-post-meta {
    left: 3.6rem;
}

/* Breadcrumb */
.breadcrumb {
    width: 100%;
    padding: 0 1.2rem;
    clear: both;
}

.breadcrumb-item::after {
    transform: scaleX(0);
    transition: transform .3s ease;
}

.breadcrumb-item:hover::after {
    transform: scaleX(1);
}

.breadcrumb-current {
    font-weight: 600;
}

/*
 * Comments elements
 * --------------------------------------------------------------------------------
 */
.post-single-page .post-comments {
    margin: 4.8rem 10% 0 10%;
    padding: 4.8rem; 
    border-radius: 6px;
}

.post-single-page .comment-title {
    font-size: 2.4rem;
    font-weight: 400;
    text-align: center;
}

.post-single-page .comment-reply-title {
    margin-bottom: 3rem;
}

.post-single-page .comments-list,
.post-single-page .comment-respond {
    margin: 3rem 2rem;
}

.post-single-page .comment {
    margin: 3rem 0;
}

.post-single-page .comment-author {
    font-size: 2.0rem;
}

.post-single-page .comment-meta {
    text-align: right;
}

.post-single-page .comment-body {
    width: 100%;
    margin-bottom: 6rem;
}

.post-single-page .comment-body p {
    margin: 0 3.2rem;
    padding: 1.0rem 0;
}

.post-single-page .comment-body .reply,
.post-single-page .comment-respond .form-submit {
    margin: 0 3.2rem;
    text-align: right;
}

.post-single-page .comment-body .comment-reply-link,
.post-single-page .comment-respond .submit {
    border-radius: 6px;
    padding: 0rem 1.0rem;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.post-single-page .form-submit {
    grid-column: 1 / -1;
    grid-row: 7;
}

/* コメントフォームの基本レイアウト */
#commentform {
    grid-template-columns: 1fr 2fr;
    column-gap: 1.2rem;
    max-width: 100%;
    margin-top: 1.6rem;
}

/* ログイン済みユーザーのコメントフォーム */
#commentform_logged_in {
    margin-top: 1.6rem;
}

/* 左側のフィールドを配置 */
.post-single-page .comment-form-author {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0.6rem;
}

.post-single-page .comment-form-email {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0.6rem;
}

.post-single-page .comment-form-url {
    grid-column: 1;
    grid-row: 3;
    padding-top: 0.6rem;
}

/* 右側にコメント欄を配置 */
.post-single-page .comment-form-comment {
    grid-column: 2;
    grid-row: 1 / span 4;
    padding-top: 0.6rem;
}

.post-single-page .comment-form-comment-logged-in {
    flex-direction: column;
    padding: 0.6rem 3.4rem;
}

/* 下部の要素の順序を制御 */
.post-single-page .comment-notes {
    grid-column: 1 / -1;
    grid-row: 5;
    margin: 1.5rem 0;
}

.post-single-page .comment-form-cookies-consent {
    grid-column: 1 / -1;
    grid-row: 6;
    margin: 1.5rem 0;
    align-items: flex-start;
}

.post-single-page .comment-form-cookies-consent input[type="checkbox"] {
    /* 幅を自動に設定 */
    appearance: auto;
}

.archive-page .comment-form-cookies-consent label {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

/* 入力フィールドのスタイリング */
#commentform input[type="text"],
#commentform textarea {
    width: 100%;
    padding: 0 0.6rem;
    border-radius: 4px;
}

/* テキストエリアの高さ設定 */
#commentform textarea {

}

/* ラベルのスタイリング */
#commentform label {
     margin-bottom: 0.2rem;
}

#cancel-comment-reply-link {
    margin-right: 3.2rem;
    padding: 0.5rem 2.0rem;
    float: right;
    transition: all 0.4s ease;
}

#cancel-comment-reply-link:hover{
    background-color: rgb(var(--color-white) / 1.0);
    border: solid 1px rgb(var(--color-black) / 1.0);
    color: rgb(var(--color-black) / 1.0);
}

/*
 * Front Page elements
 * --------------------------------------------------------------------------------
 */
.front-page .front-page-eyecatch {
    top: 0;
    left: 0;
    width: 100%;
}

.front-page .welcome-message {
    top: 8%;
    left: 5%;
    width: 40%;
    aspect-ratio: 9 / 8;
    border-radius: 6px;
    padding: 1rem;
}

.front-page .message-title {
    font-size: 3.6rem;
    font-weight: 400;
    margin-top: 30%;
    text-align: center;
}

.front-page .message-text {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.front-page .recent-posts {
    margin-top: 7.2rem;
}

.front-page .recent-posts-title {
    padding: 2.4rem 0;
    text-align: center;
}

.front-page .recent-posts-table {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 0.5rem;
    width: 100%;
}

.front-page .recent-post {
    width: 100%;
}

.front-page .recent-post img {
    width: 100%;
    object-fit: cover;
}

.front-page .post-thumbnail {
    width: 100%;
}

.front-page .mask {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.front-page .recent-post .mask:hover {
    opacity: 1;
}

.front-page .recent-post .post-meta {
    position: relative;
}

.front-page .recent-post .post-title {
    font-size: 1.6rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.6;
    padding: 2.0rem 1.6rem 0.6rem 1.6rem;
}

.front-page .recent-post .post-info {
    flex-direction: row;
    font-size: 1.2rem;
    align-items: center;
}

.front-page .recent-post .post-date,
.front-page .recent-post .post-category {
    width: 50%;
    padding: 0.2rem 0.4rem;
}

.front-page .recent-post .post-excerpt {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/*
 * Category Page
 * --------------------------------------------------------------------------------
 */
.category-page .category-table {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 0.5rem;
    padding: 0 var(--sidebar-width);
}

.category-page .category-table {
    width: 100%;
}

.category-page .category-item {
    width: 100%;
}

.category-page .category-item-img {
    width: 100%;
}

.category-page .category-item-img img {
    width: 100%;
    filter: grayscale(100%);
}

.category-page .category-item-name {
    padding: 0 2rem;
}

.category-page .category-item-info p {
    padding: 1rem 2rem 4rem;
    text-align: center;
    vertical-align: middle;
}

.category-page .category-item-img .mask {
    background: linear-gradient( 0deg, rgb(var(--color-black) / 0.0), 
                                       rgb(var(--color-black) / 0.8), 
                                       rgb(var(--color-black) / 0.0));                                       
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition:	all 0.4s ease;
    transition:			all 0.4s ease;
}

.category-page .category-item-img:hover .mask {
    opacity: 1;
}

/*
 * Archive Page
 * --------------------------------------------------------------------------------
 */
 .archive-page .archive-page-title {
    font-size: 3.6rem;
    font-weight: 400;
    margin: 2rem 4rem;
    text-align: right;
}

.archive-page .archive-table {
    padding: 0 var(--sidebar-width);
}

.archive-page .archive-table table,
.archive-page .archive-table tr {
    font-size: 1.4rem;
    font-weight: 200;
   
}

.archive-page .archive-table th,
.archive-page .archive-table td {
    width: 14.285%;
    text-align: right;
    padding-right: 0.7rem;
}

.archive-page .archive-table summary {
    font-size: 2.4rem;
}

.archive-page .archive-table summary a {
    margin: 0 1rem;
}

.archive-page .archive-calendar-table {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.archive-page .archive-calendar {
    padding: 1rem 2rem;
}

.archive-page .archive-calendar caption {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}