/* ==========================================================================
   Layout
   ========================================================================== */

.l-column2 {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 4rem;
	align-items: start;
	margin-top: 2em;
}

.l-inner main {
	flex: 1;
	margin-bottom: 2em;
}


/* ==========================================================================
   Archive / Single: メインコンテンツ
   ========================================================================== */

/* 記事リスト */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list__item {
    border-bottom: 1px solid #e0e0e0;
    padding: 2.4rem 0;
}

.post-list__item:first-child {
    padding-top: 0;
}

.post-list__item:last-child {
    border-bottom: none;
}

/* 記事カード共通 */
.post-thumbnail {
    margin-bottom: 1.2rem;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.2s;
}

.post-thumbnail a:hover img {
    opacity: 0.85;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #777;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.post-category a {
    background-color: #f0f0f0;
    color: #555;
    padding: 0.1rem 0.6rem;
    border-radius: 3px;
    text-decoration: none;
}

.post-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.post-title a {
    text-decoration: none;
    color: #111;
}

.post-title a:hover {
    color: #555;
    opacity: 1;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1.2rem;
}

.read-more {
    font-weight: 600;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #333;
}

.pagination {
    margin-top: 4rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.15s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* シングル記事 */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 2;
}

.entry-content h2 {
    font-weight: 700;
    margin: 3.2rem 0 1.2rem;
    padding-left: 1rem;
    border-left: 4px solid #333;
}

.entry-content h3 {
    font-weight: 700;
    margin: 2.4rem 0 1rem;
}

.entry-content h4 {
    font-weight: 700;
    margin: 2rem 0 0.8rem;
}

.entry-content p {
    margin-bottom: 1.6rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.6rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content figure {
    margin: 2.4rem 0;
}

.entry-content figcaption {
    color: #777;
    margin-top: 0.6rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.6rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid #ddd;
    padding: 0.8rem 1.2rem;
    text-align: left;
}

.entry-content th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.entry-content blockquote {
    border-left: 4px solid #ddd;
    padding: 1rem 1.6rem;
    color: #666;
    margin: 2rem 0;
    background-color: #fafafa;
}

.entry-content code {
    font-family: "SFMono-Regular", Consolas, monospace;
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.entry-content pre {
    background-color: #f5f5f5;
    padding: 1.6rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.6rem;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.post-navigation {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 45%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.post-navigation .nav-subtitle,
.post-navigation .nav-title {
    display: block;
}

.post-navigation .nav-subtitle {
    color: #999;
    margin-bottom: 0.4rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
	margin-bottom: 2em;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #333;
}

.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar caption {
    font-weight: 700;
    margin-bottom: 0.6rem;
    text-align: center;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 0.4rem;
    border: 1px solid #e0e0e0;
}

.widget_calendar th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.widget_calendar td a {
    font-weight: 700;
    text-decoration: none;
    color: #333;
}

.widget_calendar td a:hover {
    text-decoration: underline;
}

.widget_calendar #prev {
    text-align: left;
}

.widget_calendar #next {
    text-align: right;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
}

.sidebar .widget ul li {
    border-bottom: 1px solid #eee;
    padding: 0.6rem 0;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    text-decoration: none;
    color: #333;
}

.sidebar .widget ul li a:hover {
    color: #000;
}


.sidebar .widget_search .search-form {
    display: flex;
    gap: 0.6rem;
}

.sidebar .widget_search .search-field {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sidebar .widget_search .search-submit {
    padding: 0.6rem 1.2rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sidebar .widget_search .search-submit:hover {
    background-color: #555;
}

/* ==========================================================================
   Gutenberg ブロック調整
   ========================================================================== */
.wp-block-image {
    margin: 2.4rem 0;
}

.wp-block-quote {
    border-left: 4px solid #ddd;
    padding: 1rem 1.6rem;
    color: #666;
    margin: 2rem 0;
    background-color: #fafafa;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 3.2rem 0;
}

.wp-block-cover {
    margin: 2.4rem 0;
}

.wp-block-button .wp-block-button__link {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: #555;
    opacity: 1;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 900px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
	.l-column2 {
		display: block;
	}
}

@media screen and (max-width: 600px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .global-nav__list {
        gap: 1.2rem;
    }

    .entry-title {

    }

    .post-title {

    }

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

.wp-block-search .wp-block-search__label {
	display: none;
}

.wp-block-search .wp-block-search__button,
.wp-block-search .wp-block-search__input {
	padding: 0.5em;
}

.wp-block-heading {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}
.sidebar .widget ul {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}
.archive-title {
	margin-top: 0;
}