/*
Theme Name:   Twenty Twenty-Three Child
Theme URI:    https://wordpress.org/themes/twentytwentythree/
Description:  Twenty Twenty-Three Child Theme
Author:       WordPress.org
Author URI:   https://wordpress.org/
Template:     twentytwentythree
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  twentytwentythree-child
*/

/* トップページの記事リストのh2のフォントサイズをカスタマイズ */
.wp-block-query h2,
.wp-block-post-title h2 {
    font-size: 1rem !important;
}

/* 記事リストの抜粋テキストのフォントサイズをカスタマイズ */
.wp-block-post-excerpt__excerpt {
    font-size: 0.875rem !important;
}

/* 記事リストの投稿日のフォントサイズをカスタマイズ */
.wp-block-post-date {
    font-size: 0.75rem !important;
}

/* トップページのh1の行間を調整 */
.home h1,
.blog h1 {
    line-height: 1.5;
}

/* 個別投稿のセパレーターを非表示 */
.single .wp-block-separator.alignwide.has-css-opacity {
    display: none;
}

/* 個別投稿ページのh2の文字サイズを調整 */
.single .wp-block-post-content h2 {
    font-size: 1.75rem;
}

/* 個別投稿ページのh3の文字サイズを調整 */
.single .wp-block-post-content h3 {
    font-size: 1.5rem;
}

/* カテゴリーページのタイトルから「カテゴリー:」を非表示 */
.archive.category .wp-block-query-title span {
    font-size: 0;
}

.archive.category .wp-block-query-title span::before {
    font-size: 1rem;
    content: attr(data-content);
}

/* 個別ページのタイトルの幅を制限 */
.single .wp-block-post-title,
.page .wp-block-post-title {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 2rem;
}

/* コンテンツ部分の横幅を制限 */
.wp-block-post-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* markdown-main-panel の横幅を制限 */
.markdown-main-panel {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-post-content table {
    min-width: 100%;
    width: 100%;
    white-space: nowrap;
    font-size: .75rem;
    overflow-x: auto;
    display: block;
    margin-left: 0;
    margin-right: 0;
    border-collapse: collapse;
}

.wp-block-post-content table td {
    padding: 0.5rem;
    border: 1px solid gray;
}

.wp-block-post-content table td:nth-child(1) {
    width: 20%;
    max-width: 150px;
    text-align: center;
    font-weight: bold;
    background-color: lightgrey;
}

.wp-block-post-content table td:nth-child(2) {
    width: 40%;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

.wp-block-post-content table td:nth-child(3) {
    width: 40%;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

/* テーブルの項目を一行で表示 */
.wp-block-post-content table thead td {
    white-space: nowrap;
    text-align: center;
    font-weight: bold;
    background-color: lightgrey;
}

