/*
Theme Name: Sakai Monochrome
Theme URI: https://example.com/sakai-monochrome
Description: 白をベースとした、グラスモフィズム（すりガラス）風の洗練された近未来モノトーンのオリジナルWordPressテーマ。
Version: 1.0.0
Author: Antigravity
Author URI: https://github.com/google-deepmind
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sakai-monochrome
*/

/* ==========================================================================
   1. CSS Variables & Design Tokens
   ========================================================================== */
:root {
    --bg-primary: #f8f9fa; /* すりガラスを引き立たせるための微グレートーン */
    --bg-secondary: rgba(255, 255, 255, 0.65); /* すりガラス用透過白 */
    --bg-tertiary: #f1f3f5;
    --bg-card: rgba(255, 255, 255, 0.75); /* カード用透過白 */
    
    --text-primary: #111111;
    --text-secondary: #495057;
    --text-muted: #868e96;
    
    --accent: #000000;
    --accent-contrast: #ffffff;
    --accent-muted: #343a40;
    
    --border-color: rgba(0, 0, 0, 0.08); /* 非常に細い洗練された境界線 */
    --border-hover: rgba(0, 0, 0, 0.25);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    --font-serif: var(--font-sans); /* グラスモフィズムではスマートなサンセリフを最優先 */
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* 吸い付くような超滑らかなアニメーション */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.06); /* 超広域の極薄ソフトシャドウ */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.03); /* すりガラス用シャドウ */
    
    --max-width-content: 1100px;
    --max-width-narrow: 800px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f3f5 100%); /* すりガラスを最高に映えさせる微細な放射グラデーション */
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

h1 { font-size: 2.25rem; font-family: var(--font-serif); font-weight: 800; }
h2 { font-size: 1.75rem; border-left: 3px solid var(--accent); padding-left: 0.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1.5rem;
}

/* Lists Base Styles */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem; /* 箇条書きの左側の適切な余白を確保 */
}

ul {
    list-style-type: disc; /* 箇条書きの丸ポチ（・）を表示 */
}

ol {
    list-style-type: decimal; /* 番号付きリストの数字を表示 */
}

li {
    margin-bottom: 0.5rem;
}

ul ul, ul ol, ol ul, ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 1.5rem; /* 入れ子リストのインデント */
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--text-secondary);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

iframe {
    border: none;
    max-width: 100%;
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-radius: 0 4px 4px 0;
}

pre, code {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

code {
    padding: 0.2rem 0.4rem;
}

pre {
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

pre code {
    padding: 0;
    background-color: transparent;
}

/* ==========================================================================
   3. Layout Structure
   ========================================================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden !important; /* コンテンツのはみ出しによる左右揺れを完全防止 */
    width: 100% !important;
}

.site-content {
    flex-grow: 1;
    padding: 4rem 0;
}

.container {
    width: 100%;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    width: 100%;
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* サイドバーがアクティブな場合のみ、PC表示で2カラム化 */
@media (min-width: 992px) {
    .has-sidebar .grid-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* サイドバーが非アクティブの場合、コンテンツを中央揃えにする */
.no-sidebar .content-area {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-top-bar {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.725rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.site-top-bar .top-bar-text {
    margin-bottom: 0;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.site-header {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.6rem 0; /* 1.25remから0.6remへ縮小し、高さを短くスマートに */
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 0.4rem 0; /* 0.8remから0.4remへ縮小 */
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 店名とメニューを垂直中央に完全に揃える */
}

.site-branding {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-branding .site-title {
    font-size: 1.4rem; /* 1.5remからわずかに縮小 */
    font-weight: 800;
    font-family: var(--font-serif);
    margin: 0; /* 余分な下部マージンを排除 */
    line-height: 1; /* 行高によるズレを防止 */
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.site-branding .site-title a {
    color: var(--accent);
}

/* カスタムロゴの高さ制限とマージン解除 (店名がロゴ画像の場合のズレ対策) */
.site-branding img.custom-logo {
    display: block;
    margin: 0;
    max-height: 38px; /* ヘッダーの高さに合わせてスマートに制限 */
    width: auto;
}

.site-branding .site-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: clamp(0.75rem, 1.8vw, 2rem); /* 画面幅に応じてギャップ幅を最適化 */
    align-items: center;
    flex-wrap: nowrap; /* 改行を防止 */
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0; /* 0.75remから0.4remへ縮小し、ヘッダーにスッキリ収める */
    display: block;
    white-space: nowrap; /* テキストの改行を絶対に防止 */
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--accent);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Sub-menus / Dropdowns */
.main-navigation ul.sub-menu,
.main-navigation ul.children {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.75rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    border-radius: 4px;
    z-index: 120;
}

/* マウス移動時の隙間埋め用疑似要素 (ホバーが外れるのを防ぐ) */
.main-navigation ul.sub-menu::before,
.main-navigation ul.children::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
    z-index: -1;
}

.main-navigation li:hover > ul.sub-menu,
.main-navigation li:hover > ul.children,
.main-navigation li:focus-within > ul.sub-menu,
.main-navigation li:focus-within > ul.children {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.main-navigation ul.sub-menu li,
.main-navigation ul.children li {
    width: 100%;
}

.main-navigation ul.sub-menu a,
.main-navigation ul.children a {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important; /* 他のCSSによる白色上書きを徹底防止 */
    padding: 0.6rem 1.25rem !important;
    text-transform: none !important;
    letter-spacing: 0.03em !important;
    display: block !important;
    width: 100% !important;
    background-color: transparent !important;
}

.main-navigation ul.sub-menu a::after,
.main-navigation ul.children a::after {
    display: none !important;
}

.main-navigation ul.sub-menu a:hover,
.main-navigation ul.children a:hover {
    color: var(--accent) !important;
    background-color: var(--bg-tertiary) !important;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--accent);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-primary);
        z-index: 105;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
        padding: 4rem 1.5rem;
        
        /* ★★★ 左右スワイプや横スクロールで勝手に出てこないようにする決定的な指定 ★★★ */
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .main-navigation.is-active {
        right: 0;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        align-items: center;
    }
    
    .main-navigation li {
        width: 100%;
        text-align: center;
        position: relative;
    }
    
    /* スマホメニュー内のホーム（先頭）の位置を下に下げるための余白設定 */
    .main-navigation li.menu-item-home {
        margin-top: 3.5rem !important;
    }
    
    .main-navigation a {
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }

    /* Mobile Sub-menus styling */
    .main-navigation ul.sub-menu,
    .main-navigation ul.children {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: none;
        min-width: 100%;
        padding: 0.5rem 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        transition: none;
        align-items: center;
    }
    
    .main-navigation ul.sub-menu li,
    .main-navigation ul.children li {
        text-align: center;
    }

    .main-navigation ul.sub-menu a,
    .main-navigation ul.children a {
        font-size: 0.95rem;
        color: var(--text-secondary);
        padding: 0.25rem 0;
        background: none;
    }

    .main-navigation ul.sub-menu a:hover,
    .main-navigation ul.children a:hover {
        color: var(--accent);
        background: none;
    }
    
    /* Toggle active state */
    .mobile-nav-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ==========================================================================
   5. Posts & Grid Layout (Index/Archive)
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 600px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.entry-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* 角丸を洗練された8pxに */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glass);
}

.entry-card:hover {
    transform: translateY(-6px); /* 吸い付くような高めの浮遊感 */
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.06), inset 0 0 20px rgba(255, 255, 255, 0.6); /* インナー反射光の付与 */
}

.entry-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.entry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.entry-card:hover .entry-card-image img {
    transform: scale(1.05);
}

.entry-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.entry-meta a {
    color: var(--text-secondary);
}

.entry-meta a:hover {
    color: var(--accent);
}

.entry-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.entry-card-title a {
    color: var(--accent);
}

.entry-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-card-more {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
}

.entry-card-more::after {
    content: '→';
    transition: var(--transition-fast);
}

.entry-card:hover .entry-card-more::after {
    transform: translateX(4px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}

/* ==========================================================================
   6. Single & Page Templates
   ========================================================================== */
.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-header .entry-title {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .post-header .entry-title {
        font-size: 2rem;
    }
}

.post-header .entry-meta {
    justify-content: center;
    font-size: 0.875rem;
}

.post-thumbnail {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.post-content p {
    margin-bottom: 1.75rem;
}

/* Sub-headings in Content */
.post-content h2 {
    font-size: 1.6rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

/* Footer elements of Single Post */
.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.post-tags a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
}

.post-tags a:hover {
    color: var(--accent);
    border-color: var(--border-hover);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 600px) {
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-links .nav-previous,
.nav-links .nav-next {
    display: flex;
    flex-direction: column;
}

.nav-links .nav-previous {
    text-align: left;
}

.nav-links .nav-next {
    text-align: right;
}

.nav-links .nav-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.nav-links .nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links .nav-title a:hover {
    color: var(--text-secondary);
}

/* Comments Section */
.comments-area {
    margin-top: 4rem;
}

.comments-title {
    font-size: 1.35rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 3rem;
}

.comment-list li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-body {
    display: flex;
    gap: 1.25rem;
}

.comment-meta {
    flex-shrink: 0;
}

.comment-meta img.avatar {
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.comment-meta .comment-author {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.comment-meta .comment-metadata {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.95rem;
}

.comment-reply {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Comment Form */
.comment-respond {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-glass);
}

.comment-reply-title {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-form label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    border-radius: 4px;
    outline: none;
    transition: var(--transition-fast);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    align-self: flex-start;
    background-color: var(--accent);
    color: var(--accent-contrast);
    border: 1px solid var(--accent);
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.comment-form .submit:hover {
    background-color: var(--bg-primary);
    color: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   7. Sidebar & Widgets
   ========================================================================== */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.widget {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 2.25rem;
    border-radius: 8px;
    box-shadow: var(--shadow-glass);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
}

.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget a {
    color: var(--text-secondary);
}

.widget a:hover {
    color: var(--accent);
}

/* Search widget */
.search-form {
    display: flex;
}

.search-form label {
    flex-grow: 1;
}

.search-form .search-field {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.search-form .search-field:focus {
    border-color: var(--accent);
}

.search-form .search-submit {
    background-color: var(--accent);
    color: var(--accent-contrast);
    border: 1px solid var(--accent);
    padding: 0 1.25rem;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.search-form .search-submit:hover {
    background-color: var(--bg-primary);
    color: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-widgets .widget {
    background: none;
    border: none;
    padding: 0;
}

.footer-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-navigation a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.footer-navigation a:hover {
    color: var(--accent);
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

.site-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   9. Block Styles & VK Blocks Compatibility
   ========================================================================== */
.wp-block-button__link {
    background-color: var(--accent) !important;
    color: var(--accent-contrast) !important;
    border-radius: 6px !important; /* ボタン角丸の最適化 */
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: var(--transition-fast) !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.wp-block-button__link:hover {
    background-color: transparent !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0) !important;
    transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    box-shadow: none !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--accent) !important;
    color: var(--accent-contrast) !important;
}

/* Alignments */
.alignwide {
    margin-left: -5vw;
    margin-right: -5vw;
    max-width: 110vw;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

/* Overrides for WordPress default alignments */
@media (max-width: 1100px) {
    .alignwide, .alignfull {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* VK Blocks adaptations for Monotone */
.vk_posts {
    display: grid;
    gap: 1.5rem;
}

.vk_post-title {
    color: var(--accent) !important;
}

.vk_post-body {
    color: var(--text-secondary) !important;
}

.vk_border-outline, .vk_posts-card {
    border-color: var(--border-color) !important;
    background-color: var(--bg-secondary) !important;
}

/* ==========================================================================
   10. YouTube & Video Embed Responsiveness (16:9 Aspect Ratio)
   ========================================================================== */
.wp-block-embed-youtube,
.wp-block-embed.is-type-video,
.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* アスペクト比 16:9 を強制するモダンプロパティ */
.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* 比率を16:9に完全固定して切れを防止 */
    overflow: hidden;
}

.wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* 16:9アスペクト比維持のクラシックフォールバック (パディングハック) */
.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9比率 (9 / 16 = 0.5625) */
    height: 0 !important;
}

.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   11. Custom Grid Price Table Styles (Glassmorphism 3-Col)
   ========================================================================== */
.price-table-wrapper {
    width: 100% !important;
    margin: 2rem 0 !important;
    overflow-x: auto !important;
    border-radius: 12px !important;
    border: 1px solid #999999 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
}
.price-table-wrapper table.price-table,
.price-table-wrapper table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif !important;
    min-width: 700px !important;
}
.price-table-wrapper table.price-table th,
.price-table-wrapper table.price-table td,
.price-table-wrapper table th,
.price-table-wrapper table td,
table.price-table tbody tr td,
table.price-table thead tr th {
    padding: 1.25rem 2rem !important; /* 左右余白を2remに広げて贅沢なゆとりを確保 */
    text-align: left !important;
    vertical-align: middle !important;
    background-color: transparent !important;
    border-style: solid !important;
    border-color: #b0b0b0 !important; /* 行を区切る横線 */
    border-width: 0 0 1px 0 !important;
}
.price-table-wrapper table.price-table th:not(:last-child),
.price-table-wrapper table.price-table td:not(:last-child),
.price-table-wrapper table th:not(:last-child),
.price-table-wrapper table td:not(:last-child),
table.price-table tbody tr td:not(:last-child),
table.price-table thead tr th:not(:last-child) {
    border-style: solid !important;
    border-color: #b0b0b0 !important;
    border-width: 0 1px 1px 0 !important; /* 列を区切る縦の境界線 */
}
.price-table-wrapper table.price-table th,
.price-table-wrapper table th,
table.price-table thead tr th {
    background-color: #f1f3f5 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-style: solid !important;
    border-color: #999999 !important;
    border-width: 0 1px 3px 0 !important;
}
.price-table-wrapper table.price-table th:last-child,
.price-table-wrapper table th:last-child {
    border-width: 0 0 3px 0 !important;
}
.price-table tbody tr { transition: all 0.2s ease !important; }
.price-table tbody tr:hover { background-color: #f8f9fa !important; }
.price-table-wrapper table.price-table tbody tr:last-child td,
.price-table-wrapper table tbody tr:last-child td { border-width: 0 1px 0 0 !important; }
.price-table-wrapper table.price-table tbody tr:last-child td:last-child,
.price-table-wrapper table tbody tr:last-child td:last-child { border-width: 0 !important; }
.price-table tbody tr.featured-row { background-color: #fafbfd !important; }
.price-table tbody tr.featured-row td:first-child::before {
    content: "RECOMMENDED" !important;
    display: inline-block !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 3px !important;
    margin-right: 0.5rem !important;
    letter-spacing: 0.05em !important;
    vertical-align: middle !important;
}
.col-name { width: 32% !important; }
.col-price { width: 20% !important; font-weight: 800 !important; font-size: 1.25rem !important; color: #000000 !important; white-space: nowrap !important; }
.col-info { width: 48% !important; font-size: 0.875rem !important; color: #111111 !important; line-height: 1.6 !important; }

/* ==========================================================================
   12. Mobile Responsive Price Table (Card Layout for Under 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .price-table-wrapper {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 1.5rem 0 !important;
    }
    
    .price-table-wrapper table.price-table,
    .price-table-wrapper table {
        min-width: 100% !important;
        display: block !important;
    }
    
    .price-table-wrapper thead {
        display: none !important; /* Hide header row on mobile */
    }
    
    .price-table-wrapper tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .price-table-wrapper tr {
        display: block !important;
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #999999 !important; /* Solid border for mobile cards */
        border-radius: 12px !important;
        margin-bottom: 1.5rem !important;
        padding: 1.25rem !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
    }
    
    .price-table-wrapper tr:last-child {
        margin-bottom: 0 !important;
    }
    
    .price-table-wrapper td {
        display: block !important;
        width: 100% !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    /* Course Name Styling on Mobile */
    .price-table-wrapper td.col-name {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        border-bottom: 1px solid #e9ecef !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Price Styling on Mobile */
    .price-table-wrapper td.col-price {
        font-size: 1.35rem !important;
        color: #000000 !important;
        font-weight: 800 !important;
        padding-bottom: 0.5rem !important;
    }
    
    .price-table-wrapper td.col-price::before {
        content: "金額 (税込)：" !important;
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        color: #868e96 !important;
        display: block !important;
        margin-bottom: 0.25rem !important;
        letter-spacing: 0.05em !important;
    }
    
    /* Info/Description Styling on Mobile */
    .price-table-wrapper td.col-info {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        background: #f8f9fa !important; /* Soft gray card inside border card */
        padding: 0.75rem 1rem !important;
        border-radius: 6px !important;
        margin-top: 0.5rem !important;
    }
    
    .price-table-wrapper td.col-info::before {
        content: "特徴・内容：" !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: #495057 !important;
        display: block !important;
        margin-bottom: 0.35rem !important;
        letter-spacing: 0.05em !important;
    }
    
    /* Adjust the RECOMMENDED badge margin for mobile alignment */
    .price-table tbody tr.featured-row td:first-child::before {
        display: inline-block !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ==========================================================================
   13. Home Page Layout Optimization (Remove excessive top gaps)
   ========================================================================== */
.home .site-content {
    padding-top: 1.5rem !important; /* 通常4remから大幅に縮小し、ヘッダー直下の余白を引き締める */
}

/* フロントページの最初の見出し（目的から探す！）の上部マージンをゼロにしてヘッダーに近づける */
.home .content-area h2:first-of-type,
.home .content-area .wp-block-heading:first-child,
.home .content-area > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .home .site-content {
        padding-top: 1rem !important; /* スマホ表示ではさらにコンパクトに */
    }
}

