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

 /*
 * Fundamental settings
 * --------------------------------------------------------------------------------
 */
:root {
    /*** Size ***/
    --sidebar-height:             3.6rem;
    --site-symbol-height:      16.0rem;
    --widget-menu-width:         280px;
}

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: 3.8rem;}
h2 {font-size: 2.6rem;}
h3 {font-size: 2.2rem;}

/*
 * Basic elements
 * --------------------------------------------------------------------------------
 */
.site {
    width: 100%;
}

.site-inner {
    width: 100%;
}

.site-top { /* Dummy element for sidebar spacing */
    display: block;
    position: relative;
    height: var(--sidebar-height);
    width: 100%;
}

.site-body {
    width: 100%;
}

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

/*
 * Sidebar elements
 * --------------------------------------------------------------------------------
 */
.sidebar {
    position: fixed;
    font-size: 2.4rem;
    top: 0;
    left: 0;
    height: var(--sidebar-height);
    width: 100%;
}

.sidebar-inner {
    flex-direction: row;
    position: relative;
    height: 100%;
    width: 100%;
}

/*** Site symbol ***/
.sidebar .site-symbol {
    display: block;
    position: relative;
    height: 100%;
    padding: 0 1.0rem;
    width: 100px;
    transition: all 0.5s;
}

.sidebar .site-name {
    height: 100%;
}

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

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

.sidebar .site-name:nth-child(3) {
    display: flex;
    align-items: center;
}

/*** Widget menu ***/
.sidebar .widget-menu-area {
    position: absolute;
    top: 0;
    right: 0;
}

.sidebar .widget-menu-button {
    height: var(--sidebar-height);
    width: var(--sidebar-height);
    align-items: center;
}

.sidebar .widget-menu {
    top: var(--sidebar-height);
    right: 0;
    width: var(--widget-menu-width);
    opacity: 0;
    padding: 1.2rem 3.2rem;
    transition: all 0.4s ease-in-out;
    text-align: center;
}

.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.right .widget-menu.active,
.sidebar.left .widget-menu.active {
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease-in-out;
}

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

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

/*** Site menu ***/
.sidebar .site-menu {
    width: calc(100% - 130px);
}

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


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


.sidebar .menu-item:hover {

}

.sidebar.right .menu-item:hover {

}

.sidebar.left .menu-item:hover {

}

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

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

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

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

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

.post-list-page .post-info {
    position: relative;
    width: 60%;
    padding: 0.4rem 0.8rem;
}

.post-list-page .post-title {
    /* font-size: 2.4rem; */
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.4;
}

.post-list-page .post-date,
.post-list-page .post-category  {
    position: absolute;
    font-size: 2.2rem;
    line-height: 1.4;
    text-align: right;
    padding-right: 2.4rem;
    right: 0;
    width: 100%;
}

.post-list-page .post-date {
    bottom: 3.2rem;
}

.post-list-page .post-category  {
    bottom: 0.6rem;
}

.post-list-page .post-excerpt {
    display: none;
}

/*
 * 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: 5.5%;
    clip-path: polygon(
          0%   0%,
        100%  75%,
        100%   0%,
         45% 100%,
          0% 100%,
          0%   0%
    );
}

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

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

.post-single-page .post-excerpt {
    font-size: 1.6rem;
    margin: 4.8rem 2% 0 2%;
    padding: 4.8rem 6.0rem;
    border-radius: 4px;
    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: 2.0rem;
    margin: 4.8rem 2% 0 2%;
    padding: 3.6rem 1.8rem;
    border-radius: 4px;
}

.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: 3.6rem 0;
    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: 3.6rem 0;
    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: 2.4rem 3.6rem;
}

.post-single-page .post-article figcaption {

}

.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: 4.8rem;
    height: 4.8rem;
    border-radius: 10%;
    border: 1px solid rgb(var(--color-black) / 1.0);
    margin: 0 2.0%;
    transition: .2s ease-in-out;
}

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

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

.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: 1.2rem;
}

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

/* Breadcrumb */
.breadcrumb {
    display: none;
}

/*
 * Comments elements
 * --------------------------------------------------------------------------------
 */
.post-single-page .post-comments {
    margin: 4.8rem 2% 0 2%;
    padding: 3.6rem 1.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;
    /*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: 1;
    grid-row: 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;
    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;
}

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

.front-page .welcome-message {
    top: 12rem;
    left: 5%;
    width: 90%;
    aspect-ratio: 13 / 4;
    border-radius: 6px;
    padding: 0.1rem;
}

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

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

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

.front-page .recent-posts-table {
    grid-template-columns: 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;
}

.front-page .recent-post .post-meta {
    position: absolute;
    background: rgb(var(--color-black) / 0.8);
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 1rem;
}

.front-page .recent-post .post-title {
    font-size: 2.4rem;
    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 {
    font-size: 1.8rem;
    width: 50%;
    padding: 0.2rem 1.6rem;
}

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

/*
 * Category Page
 * --------------------------------------------------------------------------------
 */
.category-page .category-table {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0;
}

.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: 70%;
}

.category-page .category-item-name {
    position: absolute;
    background: linear-gradient( 90deg, rgb(var(--color-black) / 0.0), 
                                       rgb(var(--color-black) / 1.0));
    font-size: 2.8rem;
    bottom: 0;
    left: 0;
    height: 5.2rem;
    width: 100%;
    padding-left: 40%;
    text-align: center;
}

.category-page .category-item-info {
    display: none;
}

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

.archive-page .archive-table {

}

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

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

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

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

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

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

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