/* News Article Styles */

/* Redirect Modal */
.redirect-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.redirect-modal {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.redirect-modal-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    margin-bottom: 16px;
    color: #222;
}

.redirect-modal-message {
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #666;
    margin-bottom: 32px;
}

.redirect-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redirect-modal-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Hanken Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    border: none;
    display: block;
}

.redirect-modal-button-primary {
    background-color: #222;
    color: #fff;
}

.redirect-modal-button-primary:hover {
    background-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.redirect-modal-button-secondary {
    background-color: #fff;
    color: #222;
    border: 1px solid #ddd;
}

.redirect-modal-button-secondary:hover {
    background-color: #f5f5f5;
    border-color: #222;
}

.redirect-modal-button-tertiary {
    background-color: transparent;
    color: #666;
}

.redirect-modal-button-tertiary:hover {
    background-color: #f5f5f5;
}

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

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E5E5;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: transparent;
    color: #222;
    font-size: 12px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    border: 1px solid #222;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    font-size: 14px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 400;
    color: #999;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.5;
    color: #222;
}

.article-ogp-image {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 8px;
}

/* Twitter Share Button */
.twitter-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 12px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #000;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
}

.twitter-share-button:hover {
    background-color: #333;
    border-color: #333;
}

.twitter-share-button svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: block;
}

.twitter-share-button .share-text-en,
.twitter-share-button .share-text-ja {
    display: inline-block;
    line-height: 1;
}

.article-body {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #222;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: #222;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #222;
}

.article-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #222;
}

.article-body img {
    width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 8px;
}

.article-body a {
    color: #2E71A0;
    text-decoration: none;
    border-bottom: 1px solid #2E71A0;
    transition: opacity 0.3s ease;
}

.article-body a:hover {
    opacity: 0.7;
}

.article-body strong {
    font-weight: 700;
}

.article-body hr {
    border: none;
    border-top: 1px solid #E5E5E5;
    margin: 40px 0;
}

.article-body ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.article-body ul li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.article-body ul li::before {
    content: "•";
    color: #2E71A0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.article-body ol {
    padding-left: 24px;
    margin: 20px 0;
}

.article-body ol li {
    margin-bottom: 12px;
}

.article-body blockquote {
    border-left: 4px solid #E5E5E5;
    padding-left: 20px;
    margin: 24px 0;
    color: #666;
    font-style: italic;
}

/* Social Media Embeds */
.article-body .tweet-container {
    margin: 32px 0;
    display: flex;
    justify-content: center;
}

.article-body .twitter-tweet {
    margin: 0 auto !important;
    border: none !important;
    padding: 0 !important;
    font-style: normal !important;
}

.article-body .tiktok-embed {
    margin: 32px auto !important;
    display: block;
}

.article-body .youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 32px 0;
}

.article-body .youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0 40px;
    padding: 30px 0;
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
}

.article-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-author-info {
    display: flex;
    flex-direction: column;
}

.article-author-label {
    font-size: 12px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.article-author-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author-name {
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: #222;
}

.article-author-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #000;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 4px;
}

.article-author-x:hover {
    background-color: #333;
}

.article-author-x svg {
    fill: #fff;
}

.back-button-container {
    text-align: center;
    margin: 40px 0 40px;
}

.back-button {
    display: inline-block;
    padding: 12px 60px;
    border: 1px solid #DDD;
    border-radius: 50px;
    background-color: #fff;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Hanken Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container {
        margin: 80px auto 60px;
        padding: 0 20px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-body {
        font-size: 14px;
    }

    .article-body h2 {
        font-size: 20px;
    }

    .article-body h3 {
        font-size: 18px;
    }

    .article-body h4 {
        font-size: 16px;
    }

    .back-button {
        padding: 10px 40px;
        font-size: 14px;
    }
}
