/*
Theme Name: Splight Custom Theme
Theme URI: https://splight.co.jp/
Author: Splight Inc.
Author URI: https://splight.co.jp/
Description: 株式会社splight専用のカスタムWordPressテーマ。既存サイトのデザインに完全対応し、SEO最適化を実装。
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: splight-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   リセット & ベーススタイル
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ========================================
   ヘッダー
======================================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding .custom-logo {
    height: 45px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.main-navigation .menu-item a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
    border: 2px solid transparent;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.main-navigation .menu-item a span {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    margin-top: 2px;
}

/* メニュー項目の色分け */
.main-navigation .menu-item:nth-child(1) a { border-color: #007bff; }
.main-navigation .menu-item:nth-child(2) a { border-color: #ff9800; }
.main-navigation .menu-item:nth-child(3) a { border-color: #e91e63; }
.main-navigation .menu-item:nth-child(4) a { border-color: #4caf50; }
.main-navigation .menu-item:nth-child(5) a { border-color: #e91e63; }
.main-navigation .menu-item:nth-child(6) a { border-color: #9c27b0; }

.main-navigation .menu-item.current-menu-item a,
.main-navigation .menu-item a:hover {
    background-color: #f5f5f5;
}

/* モバイルメニュートグル */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #333;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* ========================================
   コンテンツエリア
======================================== */

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2em;
}

/* セクション */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

/* 2カラムレイアウト */
.two-column {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.two-column .column {
    flex: 1;
}

.two-column img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff9800;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e68900;
    opacity: 1;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* ========================================
   ブログ投稿
======================================== */

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
}

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

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
}

/* 単一投稿ページ */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.single-post-content .post-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.single-post-content .entry-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.single-post-content .entry-content h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post-content .entry-content h3 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-post-content .entry-content p {
    margin-bottom: 20px;
}

.single-post-content .entry-content img {
    margin: 30px 0;
    border-radius: 10px;
}

/* ========================================
   フッター
======================================== */

.site-footer {
    background-color: #fff;
    color: #333;
    padding: 40px 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-left {
    flex: 1;
}

.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 180px;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #333;
}

.footer-right {
    display: flex;
    flex: 2;
    justify-content: space-around;
    gap: 40px;
}

.footer-menu-column h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-column li {
    margin-bottom: 8px;
}

.footer-menu-column li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-menu-column li a:hover {
    color: #333;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85em;
    color: #666;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   レスポンシブデザイン
======================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation .nav-menu.active {
        display: flex;
    }
    
    .main-navigation .menu-item {
        width: 100%;
    }
    
    .main-navigation .menu-item a {
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .two-column {
        flex-direction: column;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-right {
        flex-direction: column;
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ユーティリティクラス
======================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}

/* ========================================
   アーカイブページ（2カラムレイアウト）
======================================== */

.archive-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-container {
    display: flex;
    gap: 40px;
}

.archive-left {
    flex: 3;
}

.archive-sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* 投稿一覧 */
.archive-post-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.archive-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-thumbnail-wrapper {
    flex-shrink: 0;
    width: 200px;
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.post-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85em;
}

.entry-date {
    color: #666;
}

.post-category {
    background: #7cb342;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.entry-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #7cb342;
}

.read-more {
    margin-top: auto;
    color: #7cb342;
    font-weight: 600;
    text-decoration: none;
}

/* サイドバー */
.sidebar-widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7cb342;
}

.all-posts-link {
    display: block;
    padding: 10px;
    background: #f5f5f5;
    color: #333;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.all-posts-link:hover {
    background: #e0e0e0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-list li a:hover {
    background: #7cb342;
    color: #fff;
}

.category-count {
    background: #666;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.category-list li a:hover .category-count {
    background: #fff;
    color: #7cb342;
}

/* レスポンシブ（アーカイブページ） */
@media (max-width: 768px) {
    .archive-container {
        flex-direction: column;
    }

    .archive-sidebar {
        position: static;
    }

    .archive-post-item {
        flex-direction: column;
    }

    .post-thumbnail-wrapper {
        width: 100%;
    }
}

/* ========================================
   お知らせページ V2スタイル
   カテゴリ左配置・ボタン右配置版
======================================== */

/* ========================================
   ページ全体
======================================== */

.oshirase-complete-page {
    background: #fff;
}

.oshirase-complete-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ========================================
   ページタイトル
======================================== */

.page-header-oshirase {
    margin-bottom: 50px;
    text-align: center;
}

.page-title-oshirase {
    font-size: 3em;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 4px solid #f0f0f0;
}

/* ========================================
   カテゴリーナビゲーション V2（カテゴリ左・ボタン右）
======================================== */

.category-nav-section-v2 {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-nav-wrapper-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* カテゴリタイトル（左側） */
.category-section-title-v2 {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex-shrink: 0;
}

/* カテゴリーボタン（右側・横並び） */
.category-buttons-row-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
    flex: 1;
}

.category-btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    background: #fff;
    color: #333 !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.15em;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-btn-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
    color: #0066cc !important;
    opacity: 1;
}

.category-btn-v2.active {
    background: #0066cc;
    color: #fff !important;
    border-color: #0066cc;
}

/* ========================================
   お知らせ一覧セクション
======================================== */

.oshirase-list-section {
    margin-bottom: 80px;
}

.oshirase-list-title {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin: 0 0 40px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

/* ========================================
   お知らせ記事カード
======================================== */

.oshirase-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.oshirase-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid #e8e8e8;
    padding: 35px 0;
    transition: all 0.3s ease;
}

.oshirase-card:first-child {
    padding-top: 0;
}

.oshirase-card:hover {
    background: #fafafa;
}

/* サムネイル */
.oshirase-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 10px;
    height: 220px;
}

.oshirase-thumbnail a {
    display: block;
    height: 100%;
}

.oshirase-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.oshirase-card:hover .oshirase-thumbnail img {
    transform: scale(1.08);
}

/* コンテンツ */
.oshirase-content {
    padding-left: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* メタ情報 */
.oshirase-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.oshirase-date {
    font-size: 1.15em;
    color: #0066cc;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.oshirase-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.oshirase-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
    background: #0066cc;
}

/* タイトル */
.oshirase-title {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #333;
    padding-right: 70px;
}

.oshirase-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oshirase-title a:hover {
    color: #0066cc;
    opacity: 1;
}

/* 抜粋 */
.oshirase-excerpt {
    font-size: 1em;
    line-height: 1.7;
    color: #666;
    margin: 0;
    padding-right: 70px;
}

/* 矢印リンク */
.oshirase-link-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #999;
    transition: all 0.3s ease;
}

.oshirase-card:hover .oshirase-link-icon {
    color: #0066cc;
    transform: translateY(-50%) translateX(6px);
}

/* 記事が見つからない場合 */
.no-oshirase {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-oshirase p {
    font-size: 1.3em;
    color: #666;
}

/* ========================================
   ページネーション
======================================== */

.oshirase-pagination {
    margin-top: 60px;
    text-align: center;
}

.oshirase-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.oshirase-pagination a,
.oshirase-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.oshirase-pagination a:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
    transform: translateY(-3px);
    opacity: 1;
}

.oshirase-pagination .current {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

/* ========================================
   問い合わせセクション
======================================== */

.contact-section {
    background: linear-gradient(135deg, #2c5364 0%, #203a43 50%, #0f2027 100%);
    padding: 100px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"></path></svg>') no-repeat;
    background-size: cover;
    opacity: 0.1;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 4em;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-subtitle {
    font-size: 1.8em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 40px 0;
    opacity: 0.95;
}

.contact-text {
    margin-bottom: 50px;
}

.contact-text p {
    font-size: 1.15em;
    line-height: 1.9;
    color: #fff;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.contact-button {
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px rgba(255, 165, 0, 0.4);
    border: 3px solid transparent;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 165, 0, 0.6);
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
    opacity: 1;
}

/* ========================================
   レスポンシブデザイン
======================================== */

@media screen and (max-width: 1024px) {
    .oshirase-card {
        grid-template-columns: 260px 1fr;
    }

    .oshirase-content {
        padding-left: 28px;
    }

    .oshirase-title {
        font-size: 1.4em;
    }
}

@media screen and (max-width: 768px) {
    .oshirase-complete-page .container {
        padding: 40px 15px;
    }

    .page-title-oshirase {
        font-size: 2.2em;
    }

    .category-nav-section-v2 {
        padding: 25px;
    }

    .category-nav-wrapper-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .category-section-title-v2 {
        font-size: 1.5em;
    }

    .category-buttons-row-v2 {
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
    }

    .category-btn-v2 {
        width: 100%;
        min-width: auto;
    }

    .oshirase-list-title {
        font-size: 1.7em;
    }

    .oshirase-card {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .oshirase-thumbnail {
        height: 220px;
    }

    .oshirase-content {
        padding-left: 0;
        padding-right: 0;
    }

    .oshirase-title {
        font-size: 1.3em;
        padding-right: 55px;
    }

    .oshirase-excerpt {
        padding-right: 0;
    }

    .oshirase-link-icon {
        width: 44px;
        height: 44px;
    }

    .contact-section {
        padding: 70px 20px;
    }

    .contact-title {
        font-size: 2.8em;
    }

    .contact-subtitle {
        font-size: 1.4em;
    }

    .contact-text p {
        font-size: 1.05em;
    }

    .contact-button {
        padding: 18px 45px;
        font-size: 1.15em;
    }
}

@media screen and (max-width: 480px) {
    .page-title-oshirase {
        font-size: 1.9em;
    }

    .category-section-title-v2 {
        font-size: 1.3em;
    }

    .category-btn-v2 {
        padding: 14px 28px;
        font-size: 1.05em;
    }

    .oshirase-list-title {
        font-size: 1.5em;
    }

    .oshirase-title {
        font-size: 1.2em;
    }

    .oshirase-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-title {
        font-size: 2.2em;
        letter-spacing: 2px;
    }

    .contact-subtitle {
        font-size: 1.2em;
    }

    .contact-button {
        padding: 16px 40px;
        font-size: 1.05em;
    }
}

/* ========================================
   前の記事・次の記事ナビゲーション 完全版
   Complete Previous/Next Post Navigation CSS
   ======================================== */

/* ナビゲーション全体のラッパー */
.custom-post-navigation-wrapper {
    max-width: 800px;
    margin: 60px auto;
    padding: 0;
}

/* ========================================
   前の記事（PREV）スタイル
   ======================================== */

.custom-prev-post-navigation {
    margin-bottom: 40px;
}

/* 前の記事ラベル */
.prev-post-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.prev-post-label span:first-child {
    color: #ff6b6b;
    font-size: 1.2em;
}

.prev-post-label-text {
    font-size: 0.9em;
    color: #666;
}

/* 前の記事カード */
.prev-post-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.prev-post-card:hover {
    border-color: #ff6b6b;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
    transform: translateY(-4px);
}

/* 前の記事リンク */
.prev-post-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
}

/* 前の記事画像 */
.prev-post-image {
    flex-shrink: 0;
    width: 350px !important;
    height: 250px !important;
    overflow: hidden;
    background: #f5f5f5;
    order: 1;
}

.prev-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.prev-post-link:hover .prev-post-image img {
    transform: scale(1.05);
}

/* 前の記事コンテンツ */
.prev-post-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 2;
}

/* 前の記事カテゴリー（非表示） */
.prev-post-category {
    display: none !important;
}

/* 前の記事タイトル */
.prev-post-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.prev-post-link:hover .prev-post-title {
    color: #ff6b6b;
}

/* 前の記事抜粋 */
.prev-post-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* 前の記事ボタン */
.prev-post-button-wrapper {
    display: flex;
    justify-content: flex-end;
}

.prev-post-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.prev-post-link:hover .prev-post-button {
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: translateX(4px);
}

.prev-post-button svg {
    transition: transform 0.3s ease;
}

.prev-post-link:hover .prev-post-button svg {
    transform: translateX(4px);
}

/* ========================================
   次の記事（NEXT）スタイル
   ======================================== */

.custom-next-post-navigation {
    margin-bottom: 40px;
}

/* 次の記事ラベル */
.next-post-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.next-post-label span:first-child {
    color: #0066cc;
    font-size: 1.2em;
}

.next-post-label-text {
    font-size: 0.9em;
    color: #666;
}

/* 次の記事カード */
.next-post-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.next-post-card:hover {
    border-color: #0066cc;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    transform: translateY(-4px);
}

/* 次の記事リンク */
.next-post-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
}

/* 次の記事画像 */
.next-post-image {
    flex-shrink: 0;
    width: 350px !important;
    height: 250px !important;
    overflow: hidden;
    background: #f5f5f5;
    order: 1;
}

.next-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.next-post-link:hover .next-post-image img {
    transform: scale(1.05);
}

/* 次の記事コンテンツ */
.next-post-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 2;
}

/* 次の記事カテゴリー（非表示） */
.next-post-category {
    display: none !important;
}

/* 次の記事タイトル */
.next-post-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.next-post-link:hover .next-post-title {
    color: #0066cc;
}

/* 次の記事抜粋 */
.next-post-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* 次の記事ボタン */
.next-post-button-wrapper {
    display: flex;
    justify-content: flex-end;
}

.next-post-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.next-post-link:hover .next-post-button {
    background: linear-gradient(135deg, #004c99 0%, #0066cc 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    transform: translateX(4px);
}

.next-post-button svg {
    transition: transform 0.3s ease;
}

.next-post-link:hover .next-post-button svg {
    transform: translateX(4px);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
    .custom-post-navigation-wrapper {
        padding: 0 15px;
        margin: 40px 0;
    }

    .custom-prev-post-navigation,
    .custom-next-post-navigation {
        margin-bottom: 30px;
    }

    .prev-post-link,
    .next-post-link {
        flex-direction: column;
    }

    .prev-post-image,
    .next-post-image {
        width: 100% !important;
        height: 220px !important;
        order: 1;
    }

    .prev-post-content,
    .next-post-content {
        padding: 20px;
        order: 2;
    }

    .prev-post-title,
    .next-post-title {
        font-size: 1.2em;
    }

    .prev-post-excerpt,
    .next-post-excerpt {
        font-size: 0.9em;
    }
}

/* モバイル（480px以下） */
@media (max-width: 480px) {
    .custom-post-navigation-wrapper {
        margin: 30px 0;
    }

    .prev-post-label,
    .next-post-label {
        font-size: 1.3em;
    }

    .prev-post-image,
    .next-post-image {
        height: 180px !important;
    }

    .prev-post-content,
    .next-post-content {
        padding: 16px;
        gap: 10px;
    }

    .prev-post-title,
    .next-post-title {
        font-size: 1.1em;
    }

    .prev-post-excerpt,
    .next-post-excerpt {
        font-size: 0.85em;
    }

    .prev-post-button,
    .next-post-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* ========================================
   投稿者を非表示
   ======================================== */

/* 投稿者名を非表示 */
.entry-meta .author,
.entry-meta .byline,
.post-author,
.author-name,
.by-author {
    display: none !important;
}

/* 「by」テキストも非表示 */
.entry-meta .by {
    display: none !important;
}