@charset 'UTF-8';
/*
Theme Name: Simple Text
Description: Simple Text
Version: 1.0
Author: Lingmu Jingzi
*/

/*
COLORS
================================================ */
:root {
    /* Color */
    --color-bg:        #f8f6f2;
    --color-surface:   #ffffff;
    --color-text:      #2a2a2a;
    --color-muted:     #888880;
    --color-subtle:    #c8c6c0;
    --color-rule:      #d4d2cc;
    /*
    --light-grey: #ccc;
    --grey: #666;
    --dark-grey: #707070;
    --green: #7bba93;
    --dark-blue: #39565C;
    --white: #fff;
    --pale-yellow: #F9F9F4;
    */

    /* Font */
    --font-serif-ja:   'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    --font-serif-en:   'EB Garamond', 'Georgia', serif;
    
    /* Font/Space Size */
    --font-sm: .75rem;
    --font-md: 1rem;
    --font-lg: 1.75rem;
    --font-xl: 1.625rem;

    /* Border Radius Size */
    --round-sm: 6px;
    --round-md: 10px;
    --round-lg: 50%;
}

/*
GENERAL STYLING
================================================ */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-serif-ja);
    font-weight: 400;
    min-height: 100vh;
    /*
	color: var(--grey);
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--pale-yellow);
    */
}

/*
COMMON
================================================ */
p {
    line-height: 1.9;
}
img,
iframe {
    max-width: 100%;
}

/*
LAYOUT
================================================ */
.wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/*
HEADER
================================================ */
.site-header {
    height: 130px;
    background: url(images/header.jpg) center/cover;
    padding-top: 1rem;
    margin-bottom: 1rem;
    -webkit-clip-path: ellipse(100% 100% at 50% 0);
    clip-path: ellipse(100% 100% at 50% 0);
}
.site-title {
    margin-bottom: .5rem;
}
.site-logo {
    height: 40px;
}
.site-description {
    color: var(--color-surface);
    font-size: var(--font-sm);
}

/* Navigation - モバイル（600px未満）: ハンバーガーメニュー */
.primary-navigation {
    position: relative;
}

/* ヘッダー内：ロゴとボタンを横並びにする行 */
.site-header-row {
    display: flex;
    align-items: center;
}

.site-title {
    flex: 1;
    margin-bottom: 0;
}

/* ハンバーガーボタン：モバイルで表示 */
.btn-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    margin-right: 1rem; /* 画面端からのマージン */
    flex-shrink: 0;
}

/* 三本線・×を白色に */
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-surface); /* 白 */
    transition: all 0.3s;
}

/* ドロップダウンメニュー：初期は非表示 */
.menu-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 100%; /* .primary-navigationの直下に表示 */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-rule);
    z-index: 9;
}

.menu-wrapper li {
    padding: 0.75rem 1rem;
}
.menu-wrapper a {
    white-space: nowrap;
}

/* ボタンが押されたときメニューを表示 */
.menu-wrapper.open-menu {
    display: flex;
}

/* ×マークのアニメーション */
.btn-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.btn-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.btn-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/*
.btn-menu {
    color: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: var(--round-sm);
    padding: .5rem 1rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,.3);
}
.admin-bar .btn-menu {
    top: calc(1rem + 46px);
}
.menu-wrapper {
    background: rgba(255,255,255,.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    margin-top: 1rem;
    position: absolute;
    z-index: 1;
    top: 50px;
    right: 0;
    overflow-x: hidden;
    text-align: center;
    width: 0;
    transition: .5s;
}
.admin-bar .menu-wrapper {
    top: calc(50px + 46px);
}
.menu-wrapper li {
    padding: 1rem;
}
.menu-wrapper a {
    white-space: nowrap;
}
.menu-wrapper.open-menu {
    width: 100%;
}
*/


/*
MAIN
================================================ */
.main-contents {
    margin-bottom: 3rem;
}

/*
POST LIST
================================================ */
.home .post-list,
.archive .post-list,
.search .post-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}
.post-item {
    background: var(--white);
    border-radius: 0; /*カード全体の角を丸くする var(--round-md); */
    position: relative;
}
.post-item .wp-post-image {
    border-radius: 0; /*画像の上の角を丸くする var(--round-md) var(--round-md) 0 0; */
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.post-header {
    padding: 1rem;
}
.post-title {
    margin-bottom: .5rem;
    line-height: 1.5;
    word-break: break-word;
}
.post-date {
    color: var(--light-grey);
    font-size: var(--font-sm);
}
.post-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.post-categories li {
    background: var(--color-muted);
    color: var(--color-surface);
    font-size: var(--font-sm);
    border-radius: var(--round-sm);
    padding: .5rem;
}

/* Post navigation */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.nav-links a{
    padding: .75rem 1rem .85rem;
    background: var(--color-text);
    border-radius: var(--round-sm);
    color: var(--color-surface);
    box-shadow: 0 4px 10px #BCBAB4;
}
.nav-links a:hover {
        background: var(--color-muted);
        box-shadow: 0 4px 10px #BCBAB4;
}

/* Archive */
.page-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

/*
SINGLE / PAGE ARTICLE
================================================ */
.single .post-title,
.page .post-title{
    font-size: 5rem;
}

/* カテゴリー全体のスタイル */
.post-category {
    margin-top: 1rem;    /* タイトルとの隙間 */
    margin-bottom: 1rem; /* 本文との隙間 */
    display: block;      /* 確実に表示させる */
}

/* カテゴリー内のリンクのスタイル */
.post-category a {
    display: inline-block;
    font-size: 1rem;
    color: var(--color-text) !important; /* 強制的に色を適用 */
    text-decoration: none;
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 5px;
}

/* ホバー時の演出（任意） */
.post-category a:hover {
    color: var(--color-muted) !important;
}

.single .post-header {
    padding: 4rem 1rem 1rem;
}
.page .post-header {
    padding: 1rem;
}
.single .wp-post-image + .post-header,
.page .wp-post-image + .post-header {
    padding-top: 1rem;
}
.post-content {
    padding-bottom: 1rem;
}

.post-content a {
    color: var(--color-text);
    text-decoration: underline;
}
.post-content a:hover {
    color: var(--color-muted);
}

.post-content h2 {
    font-size: var(--font-lg);
    margin-top: 2rem;
}
.post-content h3 {
    font-size: var(--font-lg);
    margin-top: 2rem;
}
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: bold;
}
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content p,
.post-content ul,
.post-content ol,
.post-content figure,
.post-content blockquote,
.post-content pre {
    margin-bottom: 1rem;
}
.post-content figcaption {
    font-size: var(--font-sm);
    text-align: center;
}
.post-content img {
    margin-bottom: .5rem;
    height: auto;
}
.post-content .wp-block-image:not(.is-style-rounded) img {
    border-radius: var(--round-md);
}
.post-content ul,
.post-content ol {
    padding-left: 2rem;
}
.post-content ul {
    list-style: square;
}
.post-content ol {
    list-style: decimal;
}
.post-content li {
    line-height: 1.5;
}
.post-content li::marker {
    color: var(--green);
}
.post-content blockquote {
    background: var(--color-surface);
    padding: 1rem 1rem .25rem 2rem;
    border-radius: var(--round-md);
    position: relative;
}
.post-content blockquote::before {
    content: '“';
    position: absolute;
    font-size: 3rem;
    color: var(--light-grey);
    top: 0;
    left: 8px;
}
.post-content blockquote cite {
    margin-bottom: 1.5rem;
    display: inline-block;
}
.post-footer {
    padding-bottom: 1rem;
}
.post-content code,
.post-content kbd {
        background: var(--color-surface);
        padding: 3px;
        border-radius: 3px;
        margin: 0 3px;
}
/*
BLOCK
================================================ */
.wp-caption {
max-width: 100%;
}
a.wp-block-button__link {
    color: var(--white);
    text-decoration: none;
}
.wp-block-code {
    font-family: Menlo,Consolas,monaco,monospace;
    padding: 0.8em 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: var(--font-sm);
    line-height: 1.5;
}
.wp-block-code code {
    background: none;
}
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}
.wp-block-table thead {
    border-bottom: 3px solid;
}
.wp-block-table td,
.wp-block-table th {
    padding: 0.5em;
    border: 1px solid;
    word-break: normal;
}
.wp-block-separator {
    margin: 2rem auto;
    border-color: var(--light-grey);
    width: 100px;
}
.wp-block-calendar {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/*
TAG LIST
================================================ */
.tags-links li {
    display: inline-block;
    font-size: var(--font-sm);
    border: 1px solid var(--color-rule);
    border-radius: var(--round-sm);
    padding: .4rem .5rem .5rem;
    margin-right: .25rem;
    margin-bottom: .25rem;
}
.tags-links a::before {
    content: '#';
    color: var(--light-grey);
    margin-right: .25rem;
}
.tags-links a:hover {
    color: var(--color-muted);
}

/* 「dropcap」というクラスがついた段落の一文字目を大きくする */
.post-content p.dropcap::first-letter {
    font-size: 3.5rem;
    float: left;           /* 文字を左に寄せて、文章を回り込ませる */
    margin-right: 0.5rem; /* 右側の文字との隙間 */
    line-height: 1;        /* 行間を詰めてバランスを整える */
    font-weight: bold;     
    color: var(--color-muted); 
    font-family: var(--font-serif-ja);
}

/*
FORM
================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    border: 1px solid var(--light-grey);
    border-radius: var(--round-sm);
    padding: .5rem;
}
input[type="submit"] {
    padding: .75rem 1rem .85rem;
    background: var(--green);
    border-radius: var(--round-sm);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(123, 186, 147, .6);
}

/*
COMMENTS
================================================ */
.commentlist {
    margin-bottom: 3rem;
}
h3#comments,
h3#reply-title {
    font-size: var(--font-lg);
    border-bottom: 4px double var(--light-grey);
    padding-bottom: 1rem;
    margin: 3rem 0 1rem;
}
.comment {
    position: relative;
    margin-bottom: 2rem;
}
.comment .avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--round-lg);
    position: absolute;
    top: 0;
    left: 0;
}
.comment-meta {
    font-size: var(--font-sm);
    color: var(--light-grey);
    display: block;
    margin-bottom: .5rem;
}
.comment-author {
    font-weight: bold;
    display: block;
    margin-bottom: .5rem;
}
.comment-body {
    padding-left: 3.5rem;
}
.comment-body p a {
    color: var(--green);
    text-decoration: underline;
}
/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
}
.comment-form-cookies-consent {
    margin-bottom: 1rem;
}

/*
FOOTER
================================================ */
.site-footer {
    background: url(images/footer.svg)center/cover;
    text-align: center;
    color: var(--white);
    padding: 5rem 0 3rem;
    margin-top: 2rem;
}
.copyright {
    font-size: var(--font-md);
    color: rgba(255,255,255,.6)
}

/*
MEDIUM SIZE
================================================ */
@media(min-width: 600px){
/* LAYOUT  */
    .wrapper {
        max-width: 1000px;
        padding: 0 3rem;
    }

/* HEADER */
    .site-header {
        height: 260px;
        text-align: center;
        padding-top: 2.5rem;
        -webkit-clip-path: ellipse(80% 100% at 50% 0);
        clip-path: ellipse(80% 100% at 50% 0);
    }
    /* PC版ではsite-header-rowのflexを解除して中央揃えに戻す */
    .site-header-row {
        display: block;
    }
    .site-title {
        margin-bottom: 2rem;
    }
    .site-logo {
        height: 100px;
    }
    .site-description {
        font-size: var(--font-md);
    }

    /* Navigation - PC（600px以上）: 横並びメニュー */
    .primary-navigation {
        display: block; /* モバイルのflexをリセット */
        margin-bottom: 2rem;
        padding: 0;
        position: static;
    }

    /* PC版ではハンバーガーボタンを非表示 */
    .btn-menu {
        display: none;
    }

    /* PC版ではメニューを横並びで常時表示 */
    .menu-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        position: static;
        width: 100%;
        background: none;
        padding: 0 0 1rem;
        border-bottom: 1px solid var(--color-rule);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .menu-wrapper li {
        padding: 0.5rem 1rem;
    }

    .menu-wrapper a:hover {
        color: var(--color-muted);
    }

    /* Archive */
    .page-title {
        font-size: var(--font-xl);
        margin-bottom: 2rem;
    }

/* MAIN */
    .home .post-list,
    .archive .post-list,
    .search .post-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .post-item:hover {
        box-shadow: 0 0 10px rgba(0,0,0,.16);
    }
    .post-categories li:hover {
        background: var(--dark-grey);
    }

    .post-item .wp-post-image {
        aspect-ratio: 4 / 3;
    }

/* SINGLE / PAGE ARTICLE */
    .single .post-item .wp-post-image,
    .page .post-item .wp-post-image {
        aspect-ratio: 16 / 9;
    }
    .single .post-item:hover,
    .page .post-item:hover {
        box-shadow: none;
    }
    .single .post-header {
        padding: 4rem 3rem 2rem;
    }
    .page .post-header {
        padding: 2rem 3rem;
    }
    .single .wp-post-image + .post-header,
    .page .wp-post-image + .post-header {
        padding-top: 2rem;
    }
    .single .post-title,
    .page .post-title {
        font-size: 2rem;
    }
    .post-content {
        padding-bottom: 2rem;
    }
    .post-content h2 {
        font-size: var(--font-xl);
        font-weight: bold;
        margin-bottom: 1rem;
    }
    .post-content h3 {
        font-size: var(--font-xl);
        margin-top: 3rem;
    }
    .post-content h4 {
        font-size: var(--font-lg);
        margin-top: 3rem;
    }
    .post-content h5,
    .post-content h6,
    .post-content p,
    .post-content ul,
    .post-content ol,
    .post-content figure,
    .post-content blockquote {
        margin-bottom: 1.5rem;
    }
    .post-content img {
        margin-bottom: 1rem;
    }
    .post-content blockquote {
        padding: 1.5rem 1.5rem .25rem 2.5rem;
    }
    .post-content blockquote::before {
        top: 2px;
        left: 10px;
    }
    .post-footer {
        padding-bottom: 3rem;
    }

/* FOOTER */
    .site-footer {
        padding: 9rem 0 5rem;
    }
}

/* スマホ（狭い画面：767px以下）の指定を追加 */
@media screen and (max-width: 767px) {
    .single .post-title,
    .page .post-title {
        font-size: 2rem; /* スマホでは2remにする */
    }
    .site-description {
    font-size: .65rem;
    }
}

/*
LARGE SIZE
================================================ */
@media(min-width: 1000px){
    .home .post-list,
    .archive .post-list,
    .search .post-list {
        grid-template-columns: repeat(3, 1fr);
    }
}