/**
Theme Name: JIN:R child
Template: jinr
Author: CROOVER Inc.
Author URI: https://croover.co.jp
Version: 1.00
*/

/* ========================================
   bergamot fruits - Custom Styles
   ======================================== */

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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Header/Navigation */
header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 40px;
    z-index: 998;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    letter-spacing: 0.15em;
    cursor: pointer;
    color: #333;
    font-weight: 400;
    padding: 10px 20px;
}

.menu-toggle:hover {
    color: #2D8B3C;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    padding: 80px 60px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 20px rgba(0,0,0,0.05);
    z-index: 999;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin: 30px 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    font-weight: 300;
}

.nav-menu a:hover {
    color: #2D8B3C;
}

.close-menu {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f0 100%);
}

.logo-container {
    text-align: center;
    animation: fadeIn 1.5s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-container img {
    max-width: 500px;
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #999;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* News Section */
.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.news-item {
    background: #fff;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 30px;
}

.news-date {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #2D8B3C;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* View All News Button */
.view-all-container {
    text-align: center;
    margin-top: 60px;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 50px;
    background: transparent;
    color: #2D8B3C;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.15em;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 2px solid #2D8B3C;
}

.view-all-btn:hover {
    background: #2D8B3C;
    color: #fff;
}

/* News Archive Page */
.page-header {
    padding: 150px 40px 80px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f0 100%);
    text-align: left;
    width: 100%;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: #333;
}

.page-subtitle {
    font-size: 13px;
    color: #666;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.news-archive-section {
    padding: 60px 40px 100px;
    background: #fafafa;
}

.news-archive-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.news-archive-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.news-archive-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-archive-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-archive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-archive-item:hover .news-archive-image {
    transform: scale(1.05);
}

.news-archive-content {
    padding: 25px;
}

.news-archive-date {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #2D8B3C;
    margin-bottom: 12px;
    font-weight: 500;
}

.news-archive-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.5;
}

.news-archive-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.no-news {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 80px 0;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 60px 0 40px;
}

.pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination .current {
    display: block;
    padding: 10px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #2D8B3C;
    color: #fff;
    border-color: #2D8B3C;
}

.back-to-top-container {
    text-align: center;
    margin-top: 50px;
}

.back-to-top-btn {
    display: inline-block;
    padding: 15px 50px;
    background: transparent;
    color: #2D8B3C;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.15em;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 2px solid #2D8B3C;
}

.back-to-top-btn:hover {
    background: #2D8B3C;
    color: #fff;
}

/* Single News Page */
.single-news-article {
    background: #fff !important;
    margin-top: 0 !important;
}

.single-news-header {
    padding: 150px 40px 60px !important;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f0 100%) !important;
}

.single-news-header-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    text-align: left !important;
}

.single-news-meta {
    margin-bottom: 20px !important;
}

.single-news-date {
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    color: #2D8B3C !important;
    font-weight: 500 !important;
}

.single-news-title {
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.single-news-featured-image {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto 60px !important;
    padding: 0 40px !important;
}

.single-news-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.single-news-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 60px 40px !important;
}

.single-news-body {
    font-size: 15px !important;
    line-height: 2 !important;
    color: #333 !important;
    letter-spacing: 0.03em !important;
}

.single-news-body p {
    margin-bottom: 30px !important;
}

.single-news-body h2 {
    font-size: 24px !important;
    font-weight: 400 !important;
    margin: 50px 0 25px !important;
    letter-spacing: 0.05em !important;
}

.single-news-body h3 {
    font-size: 20px !important;
    font-weight: 400 !important;
    margin: 40px 0 20px !important;
    letter-spacing: 0.05em !important;
}

.single-news-body ul,
.single-news-body ol {
    margin: 25px 0 !important;
    padding-left: 25px !important;
}

.single-news-body li {
    margin-bottom: 10px !important;
}

.single-news-body img {
    max-width: 100% !important;
    height: auto !important;
    margin: 30px 0 !important;
}

.single-news-body a {
    color: #2D8B3C !important;
    text-decoration: underline !important;
}

.single-news-body a:hover {
    text-decoration: none !important;
}

.single-news-navigation {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 40px !important;
    border-top: 1px solid #eee !important;
}

.nav-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
}

.nav-previous,
.nav-next {
    min-height: 80px !important;
}

.nav-next {
    text-align: right !important;
}

.nav-link {
    text-decoration: none !important;
    color: #333 !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

.nav-link:hover {
    color: #2D8B3C !important;
}

.nav-label {
    display: block !important;
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    color: #999 !important;
    margin-bottom: 10px !important;
    font-weight: 500 !important;
}

.nav-title {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.03em !important;
}

.back-to-news-container {
    text-align: center !important;
    padding: 40px !important;
    background: #fafafa !important;
}

.back-to-news-btn {
    display: inline-block !important;
    padding: 15px 50px !important;
    background: transparent !important;
    color: #2D8B3C !important;
    text-decoration: none !important;
    font-size: 13px !important;
    letter-spacing: 0.15em !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    border: 2px solid #2D8B3C !important;
}

.back-to-news-btn:hover {
    background: #2D8B3C !important;
    color: #fff !important;
}

/* About Section */
.about-section {
    background: #2D8B3C;
    color: #fff;
    padding: 120px 40px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.about-text {
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 0.05em;
    font-weight: 300;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 60px 40px;
}

.footer-logo {
    font-size: 24px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-info {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #999;
    line-height: 2;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }

    .menu-toggle {
        font-size: 13px;
        padding: 4px 8px;
        letter-spacing: 0.12em;
    }

    .logo-container img {
        max-width: 300px;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .news-content {
        padding: 20px;
    }

    .news-date {
        font-size: 9px;
    }

    .news-title {
        font-size: 14px;
    }

    .news-excerpt {
        font-size: 11px;
    }

    .view-all-btn {
        font-size: 12px;
        padding: 12px 35px;
    }

    .page-header {
        padding: 120px 20px 60px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 11px;
    }

    .news-archive-section {
        padding: 40px 20px 80px;
    }

    .news-archive-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .news-archive-image-wrapper {
        height: 200px;
    }

    .news-archive-content {
        padding: 20px;
    }

    .news-archive-date {
        font-size: 9px;
    }

    .news-archive-title {
        font-size: 14px;
    }

    .news-archive-excerpt {
        font-size: 11px;
    }

    .pagination a,
    .pagination .current {
        padding: 8px 12px;
        font-size: 11px;
    }

    .back-to-top-btn {
        font-size: 12px;
        padding: 12px 35px;
    }

    .single-news-header {
        padding: 120px 20px 40px !important;
    }

    .single-news-header-content {
        text-align: left !important;
    }

    .single-news-title {
        font-size: 24px !important;
    }

    .single-news-date {
        font-size: 10px !important;
    }

    .single-news-featured-image {
        padding: 0 20px !important;
        margin-bottom: 40px !important;
    }

    .single-news-content {
        padding: 40px 20px !important;
    }

    .single-news-body {
        font-size: 14px !important;
    }

    .single-news-body h2 {
        font-size: 20px !important;
        margin: 40px 0 20px !important;
    }

    .single-news-body h3 {
        font-size: 18px !important;
        margin: 30px 0 15px !important;
    }

    .single-news-navigation {
        padding: 40px 20px !important;
    }

    .nav-links {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .nav-next {
        text-align: left !important;
    }

    .nav-title {
        font-size: 13px !important;
    }

    .back-to-news-container {
        padding: 30px 20px !important;
    }

    .back-to-news-btn {
        font-size: 12px !important;
        padding: 12px 35px !important;
    }

    .section-title, .about-title {
        font-size: 24px;
    }

    .about-text {
        font-size: 12px;
    }
}
/* ========================================
   Additional CSS for single.php
   既存のstyle.cssに追記してください
   ======================================== */

/* Single Post 特有のスタイル調整 */

/* 既存のsingle-news-articleスタイルを継承しつつ追加調整 */
.single-news-article {
    background: #fff !important;
    margin-top: 0 !important;
}

/* ナビゲーションリンクの追加スタイル */
.single-news-navigation .nav-link:hover .nav-label {
    color: #2D8B3C !important;
}

/* ページ遷移のスムーズなアニメーション */
.single-news-article {
    animation: fadeInContent 0.6s ease-in-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 本文内のブロック要素の調整 */
.single-news-body blockquote {
    background-color: #f9f9f9 !important;
    border-left: 3px solid #2D8B3C !important;
    padding: 20px 25px !important;
    margin: 30px 0 !important;
    font-style: italic !important;
    color: #666 !important;
}

.single-news-body pre {
    background-color: #f5f5f5 !important;
    padding: 20px !important;
    border-radius: 4px !important;
    overflow-x: auto !important;
    margin: 30px 0 !important;
}

.single-news-body code {
    background-color: #f5f5f5 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.9em !important;
}

.single-news-body table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 30px 0 !important;
}

.single-news-body table th,
.single-news-body table td {
    border: 1px solid #ddd !important;
    padding: 12px !important;
    text-align: left !important;
}

.single-news-body table th {
    background-color: #f5f5f5 !important;
    font-weight: 500 !important;
}

/* 画像のキャプション */
.single-news-body .wp-caption {
    max-width: 100% !important;
    margin: 30px 0 !important;
}

.single-news-body .wp-caption-text {
    font-size: 12px !important;
    color: #999 !important;
    text-align: center !important;
    margin-top: 10px !important;
    letter-spacing: 0.05em !important;
}

/* ギャラリー表示 */
.single-news-body .gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin: 30px 0 !important;
}

.single-news-body .gallery-item {
    margin: 0 !important;
}

.single-news-body .gallery-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
}

/* レスポンシブ追加調整 */
@media (max-width: 768px) {
    .single-news-body table {
        font-size: 13px !important;
    }
    
    .single-news-body table th,
    .single-news-body table td {
        padding: 8px !important;
    }
    
    .single-news-body .gallery {
        grid-template-columns: 1fr !important;
    }
}

/* ナビゲーションのアクティブ状態 */
.single-news-navigation .nav-link:active {
    transform: translateY(2px) !important;
}

/* 印刷時のスタイル */
@media print {
    .single-news-navigation,
    .back-to-news-container {
        display: none !important;
    }
    
    .single-news-header {
        padding: 40px 20px !important;
        background: #fff !important;
    }
    
    .single-news-body a {
        color: #333 !important;
        text-decoration: underline !important;
    }
}

/* 記事ページ本体の上部余白をリセット */
.single-post .site-main,
.single .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 固定ヘッダーの影響を打ち消す */
.single-post .entry-header,
.single .entry-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* タイトルエリアの固定を解除 */
.single-post h1.entry-title,
.single h1.entry-title {
    position: static !important;
    top: auto !important;
}

/* 日付・カテゴリエリアの固定を解除 */
.single-post .post-meta,
.single .post-meta {
    position: static !important;
    top: auto !important;
}