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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #4b4b4b;
    font-size: 16px;
    line-height: 1.8;
    background-color: #f7f7f7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    font-size: 13px;
    font-weight: bold;
}

.header-search-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header form,
.header-search form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header input[type="submit"],
.header-search button,
.header-search input[type="submit"] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #f0f0f5;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header input[type="submit"]:hover,
.header-search input[type="submit"]:hover {
    background: #e2e2e8;
}

.header-search input[type="search"] {
    height: 42px;
}

.header-search label {
    margin: 0;
}

.header-search .search-submit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    color: #4b4b4b;
    line-height: 1;
    pointer-events: none;
}

.header-search .search-submit-icon svg,
.social-icon svg,
.sidebar-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.social-icon,
.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* Hero Card */
.hero-card {
    display: flex;
    width: 100vw;
    max-width: 100vw;
    height: 95vh;
    margin-top: 80px;
    overflow: hidden;
    position: relative;
    margin-left: calc(50% - 50vw);
}

.hero-content {
    flex: 0.5;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #1a1a1a;
}

.hero-image {
    flex: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image picture,
.hero-image picture img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image picture img {
    object-fit: cover;
    object-position: center;
    animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

@keyframes heroZoom {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.08) translateY(-2%);
    }
}

.hero-title {
    font-size: 36px;
    line-height: 1.3;
    margin: 25px 0;
    font-weight: bold;
}

.hero-content p {
    color: #ccc;
    margin-bottom: 30px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 0 30px;
}

/* Cards */
.card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #E2151A;
    border-radius: 4px;
}

.card-content {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-date {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.card-title {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    margin: 0;
}

.card:hover .card-title {
    color: #666;
}

.card-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 28px;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 24px;
    font-weight: 850;
    line-height: 1.4;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View More */
.main-layout .view-more {
    grid-column: 1 / -1;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.view-more {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    text-align: center;
}

.view-more-btn {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 20px;
    background: #f3f3f3;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: #e9e9e9;
}

.view-more-icon {
    font-size: 18px;
    font-weight: 400;
}

.view-more-text {
    font-size: 13px;
}

/* Sidebar */
.sidebar {
    width: 300px;
}

.sidebar-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sidebar-box h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-box {
    background: #fff;
}

.intro-box h3 {
    border: none;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro-box p {
    font-size: 13px;
}

/* Popular Articles */
.popular-articles ul {
    list-style: none;
    padding: 0;
}

.popular-articles li:last-child {
    border-bottom: none;
}

.popular-articles a {
    display: block;
    padding: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4b4b4b;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-articles a:hover {
    color: #999;
    padding-left: 5px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link,
.single-article .post-tags .tag-link {
    display: inline-block;
    background-color: #1f1f1f;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: opacity 0.3s, transform 0.2s;
    text-decoration: none;
}

.tag-link:hover {
    opacity: 0.8;
    color: #fff;
    transform: translateY(-2px);
}

/* Profile */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-item {
    display: block;
    width: 100%;
}

.profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.profile-content {
    display: block;
}

.profile-name {
    font-size: 14px;
    font-weight: bold;
    color: #4b4b4b;
    line-height: 3.5;
}

.profile-description {
    clear: both;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    width: 100%;
}

/* Single Article */
.single-article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 1;
    color: #4b4b4b;
}

.post-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.post-meta .post-category a {
    color: #0077cc;
    font-weight: 600;
    text-decoration: none;
}

.post-meta .post-date {
    margin-left: 8px;
    color: #999;
}

.single-article .tag-link:hover,
.single-article .post-tags .tag-link:hover {
    background: #4b4b4b;
    color: #fff;
}

.post-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.post-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #9b9b9b;
    padding: 0 10px 0;
    letter-spacing: 0.02em;
}

.post-subtitle::before {
    content: "- ";
    margin-right: 8px;
    color: #9b9b9b;
}

.post-thumbnail {
    margin-bottom: 40px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.post-content {
    font-size: 16px;
}

.post-content p {
    margin: 0 0 1.4em;
}

.post-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 30px 0 20px;
    border: none;
    scroll-margin-top: 120px;
}

.post-content h3 {
    font-size: 18px;
    margin: 28px 0 15px;
    color: #e2151a;
}

.post-content img {
    max-width: 100%;
    margin: 32px auto;
    display: block;
}

.journal-toc {
    margin: 0 0 28px;
    padding: 20px 28px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.journal-toc__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #666;
    margin-bottom: 12px;
}

.journal-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
}

.journal-toc__link {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    color: #4b4b4b;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.journal-toc__link:hover {
    color: #e2151a;
    transform: translateX(3px);
}

.single-article .post-tags {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 25px;
    padding: 0;
}

.single-article .post-tags .tag-link {
    display: inline-block;
    background-color: #1f1f1f;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: opacity 0.3s, transform 0.2s;
    text-decoration: none;
}

.single-article .post-tags .tag-link:hover {
    opacity: 0.8 !important;
    transform: translateY(-2px);
}

/* Related / Series */
.related-posts {
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding: 30px 20px;
}

.related-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.related-post-title {
    font-size: 13px;
    font-weight: bold;
    margin: 10px 0 5px;
    line-height: 1.4;
}

.related-post-meta {
    font-size: 10px;
    color: #999;
}

.series-posts {
    margin-top: 50px;
}

.series-posts .related-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #777;
    margin-bottom: 25px;
}

.series-posts .related-grid {
    gap: 24px;
}

.series-posts .related-item {
    transition: opacity 0.3s ease;
}

.series-posts .related-item:hover {
    opacity: 0.75;
}

.series-posts .related-post-title {
    font-size: 14px;
    line-height: 1.5;
}

.series-posts .related-post-meta {
    font-size: 11px;
    color: #aaa;
}

/* Breadcrumb */
.breadcrumb {
    margin: 40px 0 60px;
    font-size: 11px;
    color: #999;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    color: #ccc;
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.wp-block-list {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.wp-block-list li {
    line-height: 1.8;
}

/* YouTube Embed */
.wp-block-embed-youtube {
    max-width: 800px;
    margin: 2rem auto;
}

.wp-block-embed-youtube iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: none;
}

/* Footer */
.footer {
    border-top: 1px solid #e5e5e5;
    padding: 30px 0;
    background-color: #fff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.footer-brand {
    flex: 2;
}

.footer-brand .logo {
    margin-bottom: 24px;
    font-size: 24px;
}

.footer-brand p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.contact-info {
    font-size: 13px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: normal;
}

.contact-info p:hover {
    opacity: 0.7;
}

.footer-nav-grid {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 60px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-link-list li {
    position: relative;
    display: block;
}

.footer-link-list a {
    font-size: 13px;
    color: #4b4b4b;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    width: auto;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.footer-link-list a:hover {
    color: #888;
}

.footer-link-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #888;
    transition: width 0.3s ease;
}

.footer-link-list a:hover::after {
    width: 100%;
}

.copyright {
    margin-top: 15px;
    font-size: 8px;
    color: #999;
}

.contact-info p,
.footer-brand .copyright {
    transition: color 0.3s ease;
    position: relative;
    display: block;
    width: auto;
}

.contact-info p:hover {
    color: #888;
}

/* Contact Page */
.contact-page {
    background: #f7f7f7;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* Form Fields */
.contact-form-wrapper p {
    margin-bottom: 22px;
}

.contact-form-wrapper label,
.mw_wp_form label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
}

.field {
    letter-spacing: 2px;
    font-size: 14px;
    color: #999;
}

.required,
.mw_wp_form .mwform-required {
    color: #E2151A;
    margin-left: 4px;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea,
.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form textarea {
    width: 100%;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f7f7f7;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"] {
    padding: 12px 14px;
    font-size: 12px;
}

.contact-form-wrapper textarea,
.mw_wp_form textarea {
    min-height: 160px;
    resize: vertical;
    padding: 12px 14px;
    font-size: 12px;
}

.privacy-check {
    font-size: 12px;
    color: #666;
}

.contact-form-wrapper input[type="submit"],
.mw_wp_form input[type="submit"] {
    background: #E2151A;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.contact-form-wrapper input[type="submit"]:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.mw_wp_form {
    max-width: 640px;
}

.mw_wp_form p {
    margin-bottom: 22px;
}

.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form textarea {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    background: #f3f3f3;
    transition: border 0.3s, background 0.3s;
}

.mw_wp_form input:focus,
.mw_wp_form textarea:focus {
    outline: none;
    border: 1px solid #E2151A;
    background: #fff;
}

.mw_wp_form textarea {
    min-height: 180px;
}

.mw_wp_form input[type="submit"]:hover {
    opacity: 0.7;
}

/* Related Articles (legacy block) */
.ladybird-related {
    margin: 50px 0;
}

.ladybird-related-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 5px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #777;
}

.ladybird-related-card {
    display: flex;
    gap: 25px;
    padding: 0 10px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
}

.ladybird-related-thumb {
    width: 160px;
    flex-shrink: 0;
}

.ladybird-related-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.ladybird-related-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ladybird-related-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.ladybird-related-body h4 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #4b4b4b;
    transition: color 0.25s ease;
}

.ladybird-related-card:hover .ladybird-related-body h4 {
    color: #E2151A;
}

.ladybird-related-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.ladybird-series {
    margin: 40px 0;
}

.ladybird-series-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #777;
}

.ladybird-series-card {
    display: flex;
    gap: 25px;
    padding: 8px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    align-items: center;
}

.ladybird-series-thumb {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.ladybird-series-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.ladybird-series-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-self: center;
}

.ladybird-series-item {
    padding: 0;
}

.ladybird-series-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    line-height: 1.35;
    color: #1a1a1a;
}

.ladybird-series-title {
    font-size: 14px;
    line-height: 1.35;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ladybird-series-link:hover .ladybird-series-title {
    color: #E2151A;
}

/* Responsive */
@media (max-width: 1024px) {
    .ladybird-series-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ladybird-series-thumb {
        max-width: 320px;
    }
    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }

    .hero-card {
        flex-direction: column;
        height: 70vh;
    }

    .hero-content {
        padding: 40px 24px;
        order: 2;
    }

    .hero-image {
        order: 1;
        height: auto;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        width: 100%;
    }

    .profile-list {
        flex-direction: column;
    }

    .profile-item {
        align-items: flex-start;
    }

    .profile-avatar {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .ladybird-series-card {
        flex-direction: column;
        align-items: stretch;
    }

    .ladybird-series-thumb {
        width: 100%;
    }
    
    .view-more-btn {
        padding: 22px 16px;
        font-size: 13px;
    }

    .ladybird-related-card {
        flex-direction: column;
    }

    .ladybird-related-thumb {
        width: 100%;
    }

    .ladybird-related-body h4 {
        font-size: 18px;
    }

    .header {
        padding: 12px 0;
    }

    .header-inner {
        align-items: center;
    }

    .logo {
        font-size: 22px;
    }

    .hero-content {
        padding: 24px 18px;
    }

    .hero-card {
        margin-top: 68px;
        height: 35vh;
    }

    .hero-image picture img {
        object-fit: cover;
        background: #000;
    }

    .card-content {
        padding: 0 16px 18px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-date {
        font-size: 11px;
    }

    .card-category {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 9px;
    }

    .view-more {
        order: 3;
    }

    .view-more-btn {
        width: 100%;
        padding: 20px 16px;
        font-size: 13px;
    }

    .single-article {
        max-width: 100%;
    }

    .post-title {
        font-size: 24px;
    }

    .post-subtitle {
        font-size: 18px;
    }

    .post-content {
        font-size: 15px;
    }

    .post-content h2 {
        font-size: 18px;
        margin: 28px 0 18px;
    }

    .post-content h3 {
        font-size: 16px;
        margin: 24px 0 16px;
    }

    .journal-toc {
        padding: 18px 20px;
    }

    .journal-toc__title {
        font-size: 13px;
    }

    .journal-toc__link {
        font-size: 13px;
    }

    .single-article .post-tags {
        gap: 8px;
        margin: 10px 0 20px;
    }

    .single-article .post-tags .tag-link {
        padding: 5px 12px;
        font-size: 11px;
    }

    .related-posts {
        margin-top: 40px;
        padding: 24px 18px;
    }

    .related-grid {
        gap: 18px;
    }

    .related-thumb img {
        height: 110px;
    }

    .related-post-title {
        font-size: 12px;
    }

    .nav {
        display: none;
    }

    .header-search-area {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-link-list {
        flex-direction: column;
        gap: 16px;
    }

    .footer-link-list a {
        font-size: 14px;
    }

    .footer-nav-grid {
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 16px;
    }

    .sidebar-box {
        padding: 18px;
    }

    .sidebar-box h3 {
        font-size: 15px;
    }

    .profile-avatar {
        width: 40px;
        height: 40px;
    }

    .main-layout {
        gap: 24px;
        display: flex;
        flex-direction: column;
    }

    .main-layout > * {
        width: 100%;
    }

    .article-grid {
        order: 1;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        order: 2;
    }

    .container {
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #e5e5e5;
        border-radius: 50%;
        cursor: pointer;
        background: #fff;
    }

    .mobile-menu-icon,
    .mobile-menu-icon::before,
    .mobile-menu-icon::after {
        content: "";
        display: block;
        width: 18px;
        height: 2px;
        background: #4b4b4b;
        position: relative;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-menu-icon::before {
        top: -6px;
    }

    .mobile-menu-icon::after {
        top: 6px;
    }

    .mobile-menu-toggle:checked + .mobile-menu-button .mobile-menu-icon {
        background: transparent;
    }

    .mobile-menu-toggle:checked + .mobile-menu-button .mobile-menu-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-menu-toggle:checked + .mobile-menu-button .mobile-menu-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .nav {
        display: none;
        position: fixed;
        top: 74px;
        right: 20px;
        width: min(300px, calc(100vw - 40px));
        padding: 20px;
        background: #fff;
        border: 1px solid #e5e5e5;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        gap: 16px;
        z-index: 120;
        transform: translateX(120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-toggle:checked ~ .nav {
        display: flex;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .header-search-area {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #e5e5e5;
        width: 100%;
    }

    .header-search-area .header-search,
    .header-search-area .header-search form {
        width: 100%;
    }

    .header-search-area .footer-socials {
        padding-top: 0;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    body {
        font-size: 15px;
        line-height: 1.8;
    }

    section,
    .container {
        padding: 0 16px;
    }

    .container {
        margin-bottom: 20px;
    }

    .header {
        padding: 8px 0;
    }

    .logo {
        font-size: 20px;
    }

    .hero-card {
        margin-top: 60px;
        height: 72vh;
        min-height: 320px;
    }

    .hero-content {
        padding: 22px 16px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.25;
        margin: 14px 0 10px;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .article-grid {
        gap: 20px;
        margin-bottom: 24px;
    }

    .card-content {
        padding: 0 14px 16px;
        gap: 6px;
    }

    .card-title {
        font-size: 17px;
        line-height: 1.45;
    }

    .card-date {
        font-size: 11px;
    }

    .view-more {
        margin: 36px auto 20px;
    }

    .view-more-btn {
        padding: 18px 14px;
    }

    .post-title {
        font-size: 24px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .post-subtitle {
        font-size: 15px;
        padding: 0 6px;
    }

    .post-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .post-content p {
        margin: 0 0 1.2em;
    }

    .post-content h2 {
        font-size: 20px;
        margin: 24px 0 14px;
    }

    .post-content h3 {
        font-size: 17px;
        margin: 22px 0 12px;
    }

    .journal-toc {
        padding: 16px 18px;
        margin: 0 0 20px;
    }

    .related-posts {
        margin-top: 36px;
        padding: 20px 14px;
    }

    .related-grid {
        gap: 16px;
    }

    .related-thumb img {
        height: 92px;
    }

    .sidebar-box {
        padding: 16px;
        margin-bottom: 18px;
    }

    .sidebar-box h3 {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .sidebar-box p,
    .intro-box p,
    .popular-articles a,
    .profile-description {
        font-size: 14px;
    }

    .footer {
        padding: 24px 0;
    }

    .footer-top {
        gap: 20px;
    }

    .footer-brand .logo {
        margin-bottom: 16px;
    }

    .footer-nav-grid {
        padding-top: 0;
    }

    .footer-link-list {
        gap: 12px;
    }

    .footer-link-list a {
        font-size: 13px;
    }
}
