/* ========================================
   Article Card (Home/Archive Listing)
   ======================================== */
.article-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.article-card {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow-soft);
    position: relative;
    height: 100%;
}

.article-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 122, 92, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.article-card:hover::after { opacity: 1; }

.article-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-card__thumb {
    width: 100%;
    height: 190px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card__thumb img {
    transform: scale(1.05);
}

.article-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #bbb;
    background: #f5f5f5;
}

.article-card__content {
    flex: 1;
    padding: 16px 18px 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
    font-family: var(--font-display);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.article-card:hover .article-card__title {
    color: var(--accent-strong);
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.article-card__category {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 93, 58, 0.14);
    color: #c93a22;
}

/* Badge variants */
.badge--accent {
    background: rgba(255, 93, 58, 0.16);
    color: #c92c15;
}

.badge--purple {
    background: rgba(24, 182, 164, 0.16);
    color: #0f7c6f;
}

/* ========================================
   Single Article - Header
   ======================================== */
.article-header {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 30px 30px 26px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7a5c, #ff3d1f, #18b6a4);
}

.article-header__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.article-header__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
    font-family: var(--font-display);
}

.article-header__meta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.article-header__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-header__meta-item i {
    color: #a0a7b5;
    font-size: 13px;
}

/* ========================================
   Article Hero Image (full-size thumbnail)
   ======================================== */
.article-hero {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-top: none;
    overflow: hidden;
    line-height: 0;
}

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

.article-hero--video {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    line-height: 0;
}

.article-hero--video iframe,
.article-hero--video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ========================================
   Article Gallery Slider
   ======================================== */
.article-gallery {
    position: relative;
    background: #000;
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-top: none;
    overflow: hidden;
    user-select: none;
}

.article-gallery__track {
    position: relative;
    width: 100%;
}

.article-gallery__slide {
    display: none;
    width: 100%;
    line-height: 0;
}

.article-gallery__slide--active {
    display: block;
}

.article-gallery__slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.article-gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.article-gallery__btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.article-gallery__btn--prev {
    left: 12px;
}

.article-gallery__btn--next {
    right: 12px;
}

.article-gallery__counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .article-gallery__slide img {
        max-height: 400px;
    }
    .article-gallery__btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .article-gallery__btn--prev { left: 8px; }
    .article-gallery__btn--next { right: 8px; }
}

.article-gallery__thumbs {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.85);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.article-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.article-gallery__thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.article-gallery__thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s;
    background: none;
}

.article-gallery__thumb:hover {
    opacity: 0.8;
}

.article-gallery__thumb--active {
    opacity: 1;
    border-color: #fff;
}

.article-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .article-gallery__thumb {
        width: 46px;
        height: 46px;
    }
    .article-gallery__thumbs {
        padding: 6px 8px;
        gap: 3px;
    }
}

/* ========================================
   Image Context / Translation Block
   ======================================== */
.image-context {
    background: #fffbf0;
    border: 1px solid #f0e0b0;
    border-top: none;
    font-size: 14px;
}

.image-context__header {
    background: #f5ecd4;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    color: #8b7000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-context__body {
    padding: 16px 20px;
    color: #4a4000;
    line-height: 1.75;
}

/* ========================================
   Editor's Introduction (AdSense品質要件: オリジナル編集コンテンツ)
   ======================================== */
.article-intro {
    background: linear-gradient(135deg, #fff9f5 0%, #fff3eb 100%);
    border: 1px solid #ffd8c2;
    border-left: 4px solid var(--c-accent, #ff6a3d);
    border-radius: 8px;
    margin: 20px 0 16px;
    overflow: hidden;
}
.article-intro__header {
    background: rgba(255, 106, 61, 0.08);
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    color: #c4431f;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 106, 61, 0.15);
}
.article-intro__body {
    padding: 16px 20px;
    color: #333;
    line-height: 1.85;
    font-size: 15px;
}

/* ========================================
   Key Points (この記事のポイント)
   ======================================== */
.article-keypoints {
    background: #f7fbff;
    border: 1px solid #cfe4f6;
    border-radius: 8px;
    margin: 0 0 20px;
    padding: 14px 20px 16px;
}
.article-keypoints__header {
    font-weight: 700;
    font-size: 14px;
    color: #1a5d96;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.article-keypoints__list {
    margin: 0;
    padding-left: 22px;
    color: #333;
    line-height: 1.75;
}
.article-keypoints__list li {
    margin-bottom: 6px;
    font-size: 14.5px;
}
.article-keypoints__list li:last-child {
    margin-bottom: 0;
}

/* ========================================
   AI開示 (EEAT透明性)
   ======================================== */
.article-disclosure {
    margin: 18px 0 8px;
    padding: 14px 18px;
    background: #f8f9fb;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.7;
    color: #6b7280;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.article-disclosure i {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========================================
   Thread Container
   ======================================== */
.matome-thread {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-soft);
}

/* ========================================
   Individual Comment
   ======================================== */
.matome-comment {
    padding: 20px 30px;
    margin-bottom: 12px;
    transition: background 0.15s;
}

.matome-comment:last-child { margin-bottom: 0; }

.matome-comment:hover { background: rgba(255, 93, 58, 0.04); }

.matome-comment--op {
    background: rgba(255, 208, 171, 0.35);
    border-left: 4px solid #ff9f68;
    padding-left: 24px;
}

.matome-comment--op:hover { background: rgba(255, 208, 171, 0.45); }

.matome-comment--even { background: #fff; }
.matome-comment--odd { background: #faf9f7; }

.matome-comment--highlight {
    background: rgba(24, 182, 164, 0.16);
    border-left: 4px solid #18b6a4;
    padding-left: 24px;
}

.matome-comment__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.matome-comment__name {
    color: #2d7a51;
    font-weight: 700;
    font-family: var(--font-sans);
}

.matome-comment__body {
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--ink);
    font-size: 15px;
    padding-left: 2px;
}

.matome-comment__body .anchor { color: #2d7a51; cursor: pointer; }
.matome-comment__body .greentext { color: #6a8b2b; }

/* ---- Size emphasis (whole comment) ---- */
.matome-comment--large {
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    background: rgba(255, 93, 58, 0.04);
}

.matome-comment--large .matome-comment__body {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.matome-comment--small {
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.matome-comment--small .matome-comment__body {
    font-size: 13px;
    color: var(--muted);
}

/* ---- Color emphasis (whole comment text) ---- */
.matome-comment--red .matome-comment__body {
    color: #c62828;
    font-weight: 700;
}

.matome-comment--blue .matome-comment__body {
    color: #1565c0;
    font-weight: 700;
}

/* large + color combos */
.matome-comment--large.matome-comment--red {
    border-left-color: #c62828;
    background: rgba(198, 40, 40, 0.05);
}

.matome-comment--large.matome-comment--blue {
    border-left-color: #1565c0;
    background: rgba(21, 101, 192, 0.05);
}

/* Comment inline images */
.matome-comment-image {
    margin: 12px 0;
    text-align: center;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}
.matome-comment-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.matome-comment__image {
    margin: 10px 0;
}

.matome-comment__image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(15, 18, 26, 0.1);
}

.matome-comment__image a {
    color: #2d7a51;
    word-break: break-all;
}

/* ========================================
   Patch Notes Section (inline in article)
   ======================================== */
.matome-patch-notes {
    margin: 16px 0;
    background: linear-gradient(135deg, rgba(24, 182, 164, 0.06), rgba(24, 182, 164, 0.02));
    border: 1px solid rgba(24, 182, 164, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.matome-patch-notes__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(24, 182, 164, 0.1);
    border-bottom: 1px solid rgba(24, 182, 164, 0.15);
}

.matome-patch-notes__icon {
    font-size: 18px;
    line-height: 1;
}

.matome-patch-notes__title {
    font-size: 14px;
    font-weight: 700;
    color: #0d7377;
}

.matome-patch-notes__list {
    list-style: none;
    padding: 14px 20px;
    margin: 0;
}

.matome-patch-notes__list li {
    padding: 6px 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text, #3f4656);
    border-bottom: 1px solid rgba(24, 182, 164, 0.08);
}

.matome-patch-notes__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.matome-patch-notes__footer {
    padding: 10px 20px 14px;
    text-align: right;
}

.matome-patch-notes__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #0d7377;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(24, 182, 164, 0.1);
    transition: background 0.15s, color 0.15s;
}

.matome-patch-notes__link:hover {
    background: rgba(24, 182, 164, 0.2);
    color: #095c5f;
}

@media screen and (max-width: 600px) {
    .matome-patch-notes__header {
        padding: 12px 16px;
    }

    .matome-patch-notes__list {
        padding: 12px 16px;
    }

    .matome-patch-notes__list li {
        font-size: 13px;
    }

    .matome-patch-notes__footer {
        padding: 8px 16px 12px;
    }
}

/* ========================================
   Article Footer
   ======================================== */
.article-source {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px 30px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-source i { color: #a0a7b5; }

.article-source a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2d7a51;
    font-weight: 700;
}

.article-related {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-radius: var(--radius);
    margin-top: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.article-related__title {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid rgba(15, 18, 26, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    background: rgba(255, 93, 58, 0.08);
}

.article-related__title i { color: var(--accent-strong); font-size: 14px; }

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
}

.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 18, 26, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0ede8;
}

.related-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
    font-size: 24px;
}

.related-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-card__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card__date {
    font-size: 11px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .article-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 14px 16px;
    }
}

/* ========================================
   Comments Area
   ======================================== */
.comments-area {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-radius: var(--radius);
    margin-top: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.comments-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    padding: 16px 24px;
    margin: 0;
    border-bottom: 1px solid rgba(15, 18, 26, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 93, 58, 0.06);
}

.comments-title i { color: var(--accent-strong); font-size: 14px; }

/* Comment list */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 0;
    border-bottom: none;
    list-style: none;
}

/* Individual user comment */
.matome-user-comment__inner {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(15, 18, 26, 0.06);
    transition: background 0.15s;
}

.matome-user-comment__inner:hover {
    background: rgba(255, 93, 58, 0.03);
}

.matome-user-comment__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.matome-user-comment__name {
    color: #2d7a51;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.matome-user-comment__name i {
    font-size: 11px;
    color: #7db89a;
}

.matome-user-comment__admin-badge {
    background: linear-gradient(135deg, #ff7a5c, #ff3d1f);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    line-height: 1.4;
}

.matome-user-comment__id {
    color: var(--muted);
    font-size: 11px;
    font-family: var(--font-mono);
}

.matome-user-comment__body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.matome-user-comment__body p {
    margin: 0 0 8px;
}

.matome-user-comment__body p:last-child {
    margin-bottom: 0;
}

.matome-user-comment__pending {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.matome-user-comment__footer {
    margin-top: 8px;
}

.matome-user-comment__reply a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 18, 26, 0.1);
    transition: all 0.15s;
}

.matome-user-comment__reply a:hover {
    color: var(--accent-strong);
    border-color: rgba(255, 93, 58, 0.3);
    background: rgba(255, 93, 58, 0.06);
}

.matome-user-comment__reply a i {
    font-size: 11px;
}

/* Threaded / nested replies */
.comment-list .children {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 3px solid rgba(24, 182, 164, 0.25);
    margin-left: 20px;
}

.comment-list .children .matome-user-comment__inner {
    padding-left: 20px;
    background: rgba(24, 182, 164, 0.03);
}

.comment-list .children .children {
    margin-left: 16px;
    border-left-color: rgba(15, 18, 26, 0.08);
}

.comment-list .children .children .matome-user-comment__inner {
    background: rgba(15, 18, 26, 0.02);
}

/* Comment form */
.comment-respond {
    padding: 20px 24px;
    border-top: 1px solid rgba(15, 18, 26, 0.08);
}

.comment-respond .comment-reply-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-respond .comment-reply-title i {
    color: var(--accent-strong);
    font-size: 14px;
}

.comment-respond .comment-reply-title small {
    margin-left: auto;
}

.comment-respond .comment-reply-title small a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 18, 26, 0.1);
    transition: all 0.15s;
}

.comment-respond .comment-reply-title small a:hover {
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.3);
    background: rgba(198, 40, 40, 0.06);
}

/* Inline reply form (threaded) */
.comment-list .comment-respond {
    margin-left: 20px;
    border-top: none;
    border-left: 3px solid rgba(255, 93, 58, 0.3);
    background: rgba(255, 93, 58, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 4px;
    margin-bottom: 4px;
}

.comment-form-comment textarea {
    background: #fff;
    border: 1px solid rgba(15, 18, 26, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--ink);
    font-size: 14px;
    font-family: var(--font-sans);
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    min-height: 80px;
    line-height: 1.7;
}

.comment-form-comment textarea:focus {
    border-color: rgba(24, 182, 164, 0.6);
    box-shadow: 0 0 0 3px rgba(24, 182, 164, 0.12);
}

.comment-form-comment textarea::placeholder {
    color: #a0a7b5;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #ff7a5c, #ff3d1f);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    margin-top: 10px;
}

.comment-submit-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
    box-shadow: 0 6px 16px rgba(255, 93, 58, 0.25);
}

.comment-submit-btn i {
    font-size: 12px;
}

/* Hide logged-in-as, notes, and cookies consent checkbox */
.comment-form .logged-in-as,
.comment-notes,
.comment-form-cookies-consent {
    display: none !important;
}

/* No comments yet */
.comments-area .no-comments {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .matome-user-comment__inner {
        padding: 14px 16px;
    }

    .comment-list .children {
        margin-left: 12px;
    }

    .comment-list .children .matome-user-comment__inner {
        padding-left: 14px;
    }

    .comment-respond {
        padding: 16px;
    }

    .comment-list .comment-respond {
        margin-left: 12px;
    }
}

/* ========================================
   Page Title Bar
   ======================================== */
.page-title-bar {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.page-title-bar h1 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-display);
}

.page-title-bar h1 em {
    color: var(--accent-strong);
    font-style: normal;
}

/* ========================================
   Contact / Deletion Request Form
   ======================================== */
.contact-page {
    max-width: 720px;
    margin: 0 auto;
}

.contact-page .article-header {
    border-radius: var(--radius) var(--radius) 0 0;
}

.contact-page .article-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-page .article-header__title i {
    color: var(--accent-strong);
}

.contact-body {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.contact-intro {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: rgba(24, 182, 164, 0.06);
    border: 1px solid rgba(24, 182, 164, 0.15);
    border-radius: 12px;
}

.contact-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-alert--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #b91c1c;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-form__label i {
    color: var(--accent-strong);
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.contact-form__required {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.contact-form__optional {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(15, 18, 26, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 18, 26, 0.14);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235c6574'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    border-color: rgba(24, 182, 164, 0.6);
    box-shadow: 0 0 0 3px rgba(24, 182, 164, 0.12);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #a0a7b5;
}

.contact-form__footer {
    padding-top: 8px;
    display: flex;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff7a5c, #ff3d1f);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 93, 58, 0.3);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 93, 58, 0.35);
    color: #fff;
    opacity: 0.95;
}

.contact-btn--submit {
    min-width: 200px;
    justify-content: center;
}

/* Success state */
.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success__icon {
    font-size: 56px;
    color: #18b6a4;
    margin-bottom: 16px;
}

.contact-success h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.contact-success p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Responsive */
@media screen and (max-width: 520px) {
    .contact-body {
        padding: 20px 16px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-btn--submit {
        width: 100%;
    }
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.breadcrumb {
    margin-bottom: 16px;
    padding: 4px 0;
    font-size: 13px;
    clear: both;
    overflow: hidden;
    min-height: 24px;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    color: var(--muted);
    line-height: 1;
}

.breadcrumb__item:not(:last-child)::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    color: #c0c5ce;
    margin: 0 10px;
}

.breadcrumb__item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb__item a:hover {
    color: var(--accent-strong);
}

.breadcrumb__item a i {
    font-size: 12px;
}

.breadcrumb__item--current {
    color: var(--ink);
    font-weight: 600;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .breadcrumb {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .breadcrumb__item--current {
        max-width: 220px;
    }

    /* Wrap breadcrumb items properly on narrow screens */
    .breadcrumb__list {
        row-gap: 6px;
    }

    .breadcrumb__item {
        line-height: 1.4;
    }
}

@media screen and (max-width: 520px) {
    .breadcrumb {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .breadcrumb__item:not(:last-child)::after {
        margin: 0 6px;
        font-size: 8px;
    }

    .breadcrumb__item--current {
        max-width: 180px;
    }
}

/* ========================================
   SNS Share Buttons (Header - icon only)
   ======================================== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 18, 26, 0.06);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.share-btn svg {
    flex-shrink: 0;
}

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

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

.share-btn--hatena {
    background: #00a4de;
}

.share-btn--facebook {
    background: #1877f2;
}

.share-btn--copy {
    background: #6b7280;
}

.share-btn--copied {
    background: #18b6a4 !important;
}

/* ========================================
   SNS Share Bar (Below Article - wide)
   ======================================== */
.share-bar {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-radius: var(--radius);
    margin-top: 20px;
    padding: 20px 30px 24px;
}

.share-bar__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-bar__label i {
    color: var(--accent-strong);
}

.share-bar__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    line-height: 1;
    white-space: nowrap;
}

.share-btn-wide:hover {
    transform: translateY(-2px);
    opacity: 0.92;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.share-btn-wide svg {
    flex-shrink: 0;
}

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

.share-btn-wide--line {
    background: #06c755;
}

.share-btn-wide--hatena {
    background: #00a4de;
}

.share-btn-wide--facebook {
    background: #1877f2;
}

.share-btn-wide--copy {
    background: #6b7280;
}

.share-btn-wide--copy.share-btn--copied {
    background: #18b6a4 !important;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .share-buttons {
        gap: 6px;
    }

    .share-btn {
        width: 34px;
        height: 34px;
    }

    .share-bar {
        padding: 16px 16px 20px;
    }

    .share-bar__buttons {
        gap: 8px;
    }

    .share-btn-wide {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 12px;
        gap: 5px;
    }
}

/* ========================================
   Privacy Policy Page
   ======================================== */
.privacy-page {
    max-width: 720px;
    margin: 0 auto;
}

.privacy-page .article-header {
    border-radius: var(--radius) var(--radius) 0 0;
}

.privacy-page .article-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-page .article-header__title i {
    color: var(--accent-strong);
}

.privacy-body {
    background: var(--surface);
    border: 1px solid rgba(15, 18, 26, 0.08);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    line-height: 1.9;
    font-size: 14.5px;
    color: var(--text);
}

.privacy-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(15, 18, 26, 0.06);
}

.privacy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.privacy-section h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--heading);
}

.privacy-section h2 i {
    color: var(--accent);
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.privacy-section p {
    margin: 0 0 10px;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.privacy-section ul li {
    margin-bottom: 6px;
    position: relative;
}

.privacy-section ul li::marker {
    color: var(--accent);
}

.privacy-section a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-section a:hover {
    color: var(--accent);
}

.privacy-highlight {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
}

.privacy-highlight p {
    margin: 0;
}

.privacy-highlight i {
    color: #dc2626;
}

.privacy-updated {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 600px) {
    .privacy-body {
        padding: 20px 16px;
    }

    .privacy-section h2 {
        font-size: 15px;
    }
}
