/* News Pages CSS - Based on TSX Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.6;
    color: #000 !important;
    background-color: #fff !important;
    overflow-x: hidden;
}

body.news-single {
    color: #000 !important;
}

body.news-single * {
    color: inherit;
}

/* 強制的にスタイルを適用 */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    padding-top: 80px;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 40px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Page Header */
.page-header {
    margin-top: 30px;
    text-align: center !important;
    padding-bottom: 30px;
    border-bottom: 1px solid #D7D7D7;
    width: 100%;
}

.page-title {
    font-size: 40px;
    font-weight: bold;
    color: #000 !important;
    line-height: 1.25;
    font-family: 'Questa', serif;
    letter-spacing: 0.05em;
    text-align: center !important;
    margin: 0 auto;
}

.page-header p,
.page-header h1 {
    color: #000 !important;
    text-align: center !important;
}

/* News List Header */
.news-list-header {
    margin-top: 32px;
    margin-bottom: 32px;
}

.news-list-title {
    font-size: 30px;
    font-weight: 500;
    color: #000;
    font-family: 'M PLUS 2', sans-serif;
    text-align: left;
    margin: 0;
}

.news-list-title-en {
    font-family: 'Questa', serif;
}

@media (max-width: 768px) {
    .news-list-header {
        margin-bottom: 10px;
    }

    .news-list-title {
        font-size: 18px;
    }
}

/* News List */
.news-list {
    margin-bottom: 4rem;
}

.news-item-container {
    position: relative;
}

.divider {
    border-top: 1px solid #d7d7d7;
    margin-bottom: 0;
}

.news-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.news-item-link:hover {
    opacity: 0.8;
}

.news-item {
    padding: 2.5rem 0.5rem;
    cursor: pointer;
}

.news-date {
    font-size: 1.25rem;
    color: black;
    line-height: 2;
    font-family: 'Questa', serif;
    font-weight: normal;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.5625rem;
    color: black;
    line-height: 2;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    margin-bottom: 1rem;
    max-width: 100%;
    word-break: break-word;
}

.news-summary {
    font-size: 1rem;
    color: black;
    line-height: 2;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    max-width: 100%;
    word-break: break-word;
}

/* News Detail Styles */
.news-detail {
    margin-bottom: 80px;
}

.article-header {
    margin-bottom: 60px;
    text-align: left !important;
    width: 100%;
}

.article-title {
    font-size: 25px;
    font-weight: 500;
    color: #000;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'M PLUS 2', sans-serif;
    text-align: left !important;
}

.article-date {
    font-size: 17px;
    color: #000;
    line-height: 1.6;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    display: block;
    text-align: left !important;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 20px;
    }

    .article-date {
        font-size: 15px;
    }
}

.article-content {
    margin-bottom: 80px;
}

.article-content p {
    font-size: 17px;
    color: #000;
    line-height: 2;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    margin-bottom: 30px;
}

.article-content strong {
    color: #000;
    font-weight: bold;
}

/* fade-inアニメーションを無効化 */
.article-content.fade-in {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .article-content p {
        font-size: 15px;
    }
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #333;
    font-family: 'M PLUS 2', sans-serif;
    margin-bottom: 1rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    color: #333;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    color: #333;
    line-height: 2;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
}

.article-section {
    margin-bottom: 2rem;
}

.article-section p {
    font-size: 1rem;
    color: #333;
    line-height: 2;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    margin-bottom: 1rem;
}

.article-section h3 {
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'M PLUS 2', sans-serif;
}

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

.period-title {
    font-weight: 500 !important;
}

/* Back Button */
.back-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 60px 0 80px 0;
}

.back-button {
    display: inline-block;
    border: 2px solid #000;
    color: #000;
    background: transparent;
    border-radius: 50px;
    padding: 15px 60px;
    font-size: 17px;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 240px;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-button {
        font-size: 15px;
        padding: 12px 40px;
        min-width: 200px;
    }
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 5rem 0 2rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.pagination-current,
.pagination-link,
.pagination-dots {
    font-family: 'Questa', serif;
    font-size: 1rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pagination-current {
    font-weight: bold;
    color: black;
}

.pagination-link {
    color: #666666;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pagination-link:hover {
    color: black;
}

.pagination-dots {
    font-weight: bold;
    color: black;
}

/* Bottom Section */
.bottom-section {
    background-image: url('http://i-connect.site/wp-content/uploads/2025/10/news_section.png');
    background-size: cover;
    background-position: center;
    min-height: 851.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
}

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

.bottom-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.bottom-title {
    font-size: 2.5rem;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 500;
    color: white;
    line-height: 1.35;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
}

.bottom-description {
    font-size: 1.3125rem;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    color: #b8b8b8;
    line-height: 1.5;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.desc-line {
    display: block;
}

.contact-actions {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.contact-icon {
    margin-bottom: 1.5rem;
}

.contact-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.contact-text {
    font-size: 1.0625rem;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    color: white;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.text-line {
    display: block;
}

.contact-button {
    display: inline-block;
    border: 2px solid white;
    color: white;
    background: transparent;
    border-radius: 45px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 300;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 160px;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.site-footer p {
    font-size: 0.9rem;
    font-family: 'M PLUS 2', sans-serif;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 1rem 0;
    }

    .page-header {
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .news-item {
        padding: 1.25rem 0.25rem;
    }

    .news-date {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .news-title {
        font-size: 0.9375rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .news-summary {
        font-size: 0.8125rem;
        line-height: 1.5;
        color: #666666;
    }

    .article-title {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .article-date {
        font-size: 1rem;
    }

    .article-section p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .back-button {
        width: 100%;
        margin: 0;
        padding: 0.75rem 1rem;
        font-size: 1.125rem;
    }

    .back-button-wrapper {
        margin: 2rem 0;
    }

    .pagination-wrapper {
        margin: 2.5rem 0 2rem;
    }

    .pagination {
        gap: 1.25rem;
    }

    .pagination-current,
    .pagination-link,
    .pagination-dots {
        font-size: 0.9375rem;
        min-height: 2rem;
    }

    .bottom-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .bottom-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .bottom-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .contact-actions {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-item {
        padding: 0;
    }

    .contact-text {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .contact-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-width: 140px;
    }

    /* Mobile Navigation */
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .news-date {
        font-size: 0.75rem;
    }

    .news-title {
        font-size: 0.875rem;
    }

    .news-summary {
        font-size: 0.75rem;
    }

    .pagination {
        gap: 1rem;
    }

    .article-title {
        font-size: 1.125rem;
    }

    .article-date {
        font-size: 0.875rem;
    }

    .article-section p {
        font-size: 0.8125rem;
    }

    .bottom-title {
        font-size: 1.25rem;
    }

    .bottom-description {
        font-size: 0.9rem;
    }

    .contact-text {
        font-size: 0.8125rem;
    }

    .contact-button {
        font-size: 0.8125rem;
        padding: 0.6rem 0.8rem;
    }

    .back-button {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.125rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-button-wrapper,
    .pagination-wrapper,
    .bottom-section {
        display: none;
    }

    .page-container {
        min-height: auto;
        text-align: center;
    }

    .main-content {
        padding: 0;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .article-title {
        font-size: 18pt;
        color: #000;
    }

    .article-date {
        font-size: 14pt;
        color: #000;
    }

    .article-section p {
        font-size: 12pt;
        color: #000;
        line-height: 1.4;
    }
}

/* WordPress Editor Compatibility */
.wp-block-group {
    margin: 1rem 0;
}

.wp-block-paragraph {
    margin-bottom: 1rem;
}

.wp-block-heading {
    margin: 1.5rem 0 1rem;
}

.wp-block-image {
    margin: 1.5rem 0;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-button {
    display: flex;
    justify-content: center;
    margin-top: 24px;
	margin-bottom: 80px;
}

.news-more-btn {
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #000;
    background: white;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.news-more-btn:hover {
    background-color: #e3f2fd;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .news-item:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .back-button:hover,
    .contact-button:hover {
        background: rgba(0, 0, 0, 0.8);
        color: white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .news-item,
    .back-button,
    .contact-button,
    .pagination a {
        transition: none;
    }
}
