:root {
    --primary-color: #4caf50;
    /* Fresh Green */
    --accent-color: #81c784;
    --text-color: #333;
    --bg-color: #f1f8e9;
    --header-bg: #4caf50;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header */
.main-header {
    background-color: var(--header-bg);
    color: white;
    text-align: center;
}

.header-top {
    font-size: 0.8rem;
    padding: 8px 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.header-content {
    padding: 30px 20px;
}

.logo-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-area.minimal {
    justify-content: flex-start;
}

.header-logo-img-character {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header-logo-img-character.small {
    width: 80px;
}

.header-logo-link.horiz {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    -webkit-text-stroke: 2px white;
    paint-order: stroke fill;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.article-page .logo-text h1 {
    font-size: 1.8rem;
    -webkit-text-stroke: 1px white;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    margin-top: 10px;
    color: #ffeb3b;
    /* Yellow subtitle like the reference */
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}


.sns-icons-header {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.sns-icons-header a {
    color: #444;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sns-icons-header svg {
    width: 20px;
    height: 20px;
}

.main-nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.main-nav li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.main-nav li a:hover {
    color: var(--primary-color);
}

.header-banner {
    background-color: #81c784;
    color: white;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 850px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .logo-area {
        flex-direction: column;
        gap: 15px;
    }

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

    .logo-text h1 {
        font-size: 2.2rem;
    }

    .sns-icons-header {
        justify-content: center;
    }
}

/* Category Menu Tiles */
.category-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-tile {
    position: relative;
    height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    padding: 0;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* 文字が含まれる既存画像のためのクロップ処理 */
.category-tile.mask-text img {
    object-position: center 80%;
    /* 上部の文字を隠すために下にずらす */
    transform: scale(1.3);
    /* ズームして文字を枠外に追い出す */
}

.category-tile.mask-text:hover img {
    transform: scale(1.4);
}

.category-tile .label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.category-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.category-tile:hover::after {
    background: rgba(0, 0, 0, 0);
}

@media (max-width: 850px) {
    .category-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .category-tile {
        height: 100px;
    }

    .category-tile .label {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Tab Content Visibility */
.post-list-container {
    display: none;
}

.post-list-container.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.featured-item {
    height: 120px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    background-size: cover;
    background-position: center;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--card-shadow);
}

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

.featured-inner {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.featured-item.blue {
    background-color: #a0c4ff;
}

.featured-item.purple {
    background-color: #bdb2ff;
}

.featured-item.orange {
    background-color: #ffd6a5;
}

.featured-item.green {
    background-color: #caffbf;
}

/* Post List */
.section-title-tab {
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.section-title-tab button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: 700;
    border-radius: 5px 5px 0 0;
    font-size: 1rem;
    cursor: pointer;
}

.post-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.post-thumb-placeholder {
    width: 250px;
    height: 150px;
    background-color: #eee;
    border-radius: var(--border-radius);
    position: relative;
    flex-shrink: 0;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffeb3b;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
}

.post-info h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.post-info h2 a:hover {
    color: var(--primary-color);
}

.post-info time {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Sidebar */
.search-box {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.search-box input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}

.search-box button {
    background: #555;
    color: white;
    border: none;
    width: 40px;
    border-radius: 4px;
    cursor: pointer;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.profile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    font-weight: 700;
    text-align: center;
}

.profile-content {
    padding: 20px;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #f1f1f1;
    object-fit: cover;
    object-position: center top;
}

.profile-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 20px;
}

.sns-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-sns {
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-sns:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-sns.note {
    background-color: #2cb696;
}

.btn-sns.x-twitter {
    background-color: #000;
}

.btn-sns.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-sns.threads {
    background-color: #000;
}

.btn-sns.tiktok {
    background-color: #010101;
}

.btn-sns.line {
    background-color: #06C755;
}

.btn-sns.youtube {
    background-color: #FF0000;
}

.btn-sns.spotify {
    background-color: #1DB954;
}

/* Footer */
.main-footer {
    background-color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.main-footer p {
    color: #888;
    font-size: 0.85rem;
}

/* Post Card Thumb */
.post-thumb {
    width: 250px;
    height: 150px;
    border-radius: var(--border-radius);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Styles */
.single-article .article-header {
    margin-bottom: 30px;
}

.single-article .article-header h1 {
    font-size: 2.2rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

.single-article .eyecatch {
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.single-article .eyecatch-img {
    width: 100%;
    height: auto;
    display: block;
}

.single-article hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px dashed #ddd;
}

.single-article .article-body h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.single-article .article-body h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.article-image {
    margin: 35px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.image-caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.single-article .article-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.single-article .article-body li {
    margin-bottom: 10px;
}

.single-article .article-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-back {
    display: inline-block;
    background-color: #555;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 40px;
}

.btn-back:hover {
    background-color: #333;
}

/* Tip Box / Callout */
blockquote.tip-box {
    background-color: #e8f5e9;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

blockquote.tip-box strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .post-card {
        flex-direction: column;
        gap: 15px;
    }

    .post-thumb {
        width: 100%;
        height: 200px;
    }

    .post-info h2 {
        font-size: 1.15rem;
    }
}

/* Share Section */
.share-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.share-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    border: none;
    outline: none;
    padding: 0;
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn.x {
    background-color: #000;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn.threads {
    background-color: #000;
}

.share-btn.tiktok {
    background-color: #010101;
}

.share-btn.line {
    background-color: #06C755;
}

.share-btn.copy {
    background-color: #888;
}

.share-btn.copy.copied {
    background-color: var(--primary-color);
}

/* Share Toast */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.share-toast.fade-out {
    opacity: 0;
    transition: opacity 0.5s;
}

@keyframes slideUp {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Paywall and Note CTA */
.note-paywall {
    position: relative;
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px dashed #ccc;
}

.note-paywall::before {
    content: "このラインより上のエリアが無料で表示されます";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    padding: 0 20px;
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
}

.paywall-overlay {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    text-align: center;
}

.paywall-badge {
    display: inline-block;
    background: #FF5722;
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.paywall-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.paywall-content p {
    color: #666;
    margin-bottom: 30px !important;
}

.paywall-points {
    text-align: left;
    background: #fdfae6;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.paywall-points h4 {
    margin-bottom: 15px;
    color: #856404;
    font-size: 1.1rem;
}

.paywall-points ul {
    margin: 0 !important;
    list-style: none !important;
    padding-left: 0 !important;
}

.paywall-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px !important;
    color: #555;
    font-size: 0.95rem;
}

.paywall-points li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.note-cta-box {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

/* note Link Button */
.note-cta {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.note-cta p {
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.btn-note-link {
    display: inline-block;
    background-color: #2cb696;
    color: white !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(44, 182, 150, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
    text-decoration: none;
}

.btn-note-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 182, 150, 0.4);
    background-color: #249a7f;
    color: white !important;
}

@media (max-width: 600px) {
    .paywall-overlay {
        padding: 25px 20px;
    }

    .paywall-content h3 {
        font-size: 1.4rem;
    }

    .btn-note-link {
        padding: 15px 25px;
        font-size: 1rem;
        width: 100%;
    }
}
/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: white;
    color: var(--text-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(.active) {
    background-color: #f5f5f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #888;
    font-weight: 600;
}
