/* サイドバー非表示 */
.sidebar,
.widget-area,
#secondary {
    display: none;
}

/* コンテンツ全幅 */
.site-main,
.content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* ボーダー削除 */
.site-main {
    border: none !important;
}

/* 上部余白を削除 */
#main {
    padding: 10px 0 0 0 !important;
}

.entry-header {
    margin: 0 !important;
    padding: 0 !important;
}

h1 {
    margin-bottom: 0 !important;
}

/* Homeページのentry-headerを非表示 */
.home .entry-header {
    display: none;
}

/* フッター全幅 */
.site-footer,
.site-footer .wrap,
.footer-widget {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* コピーライト */
.site-info a[href*="wordpress.org"],
.site-info .sep {
    display: none;
}

.site-info {
    font-size: 0;
}

.site-info::after {
    content: "© 2026 yaeyamaislands.club All Rights Reserved.";
    font-size: 14px;
}

/* 編集リンクを非表示 */
.post-edit-link,
.edit-link {
    display: none;
}

/* アイキャッチのサイズ制限 */
.post-thumbnail img,
.entry-thumbnail img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* 投稿ページのコンテンツエリア全幅 */
.single #primary,
.single #content,
.single .hentry {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* 投稿コンテンツの幅を制限・中央寄せ */
.single .entry-content {
    float: none !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* 投稿ページの左メタカラムを非表示 */
.single .entry-meta,
.single .entry-footer {
    display: none;
}

/* 投稿ページのタイトルを非表示 */
.single .entry-title {
    display: none !important;
}

/* 関連投稿を非表示 */
.related-posts,
.jp-relatedposts {
    display: none !important;
}

/* コメント欄を非表示 */
#comments,
.comments-area {
    display: none !important;
}

/* 固定ページのentry-header全体を非表示 */
.page .entry-header {
    display: none !important;
}

/* 投稿ページのアイキャッチ高さ調整 */
.single .entry-hero {
    height: auto !important;
    min-height: 0 !important;
    background: none !important;
}

.post-thumbnail img,
.entry-thumbnail img {
    width: 100%;
    height: auto;
}

/* カテゴリーページのコンテンツを中央寄せ */
.archive #primary,
.archive #content,
.archive .site-main,
.archive .content-area {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* スマホでの右側ボーダー削除 */
@media (max-width: 768px) {
    .wp-block-column {
        border-right: none !important;
        border: none !important;
    }
}

/* スマホでのコンテンツ右余白削除 */
@media (max-width: 768px) {
    .wp-block-column.hide-on-mobile {
        padding-right: 0 !important;
        padding: 0 !important;
    }
}

/* 検索結果ページのコンテンツを中央寄せ */
.search #primary,
.search #content,
.search .site-main,
.search .content-area {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}