/*
Theme Name: AnimeWire
Theme URI: https://animewire.fun
Author: Codex
Description: アニメ・漫画・ゲーム系IPの海外反応サイト向けWordPressテーマ。
Version: 0.1.0
License: GNU General Public License v2 or later
Text Domain: animewire
*/

:root {
    --bg: #f6f1e8;
    --paper: rgba(255, 250, 245, 0.88);
    --ink: #1f1726;
    --muted: #665f72;
    --line: rgba(86, 69, 93, 0.16);
    --brand: #ef5b4c;
    --brand-deep: #c43a31;
    --accent: #0d6f73;
    --gold: #efb84d;
    --shadow: 0 24px 80px rgba(38, 17, 43, 0.12);
}

* { box-sizing: border-box; }

html {
    background:
        radial-gradient(circle at top left, rgba(239, 184, 77, 0.22), transparent 32%),
        radial-gradient(circle at top right, rgba(13, 111, 115, 0.18), transparent 28%),
        linear-gradient(180deg, #f9f3ec 0%, #f6f1e8 46%, #f2ece4 100%);
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Avenir Next", "Hiragino Sans", "Noto Sans JP", sans-serif;
    line-height: 1.72;
    background: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
}

.backdrop-orb {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.backdrop-orb-a {
    width: 260px;
    height: 260px;
    top: -70px;
    left: -90px;
    background: radial-gradient(circle, rgba(239, 91, 76, 0.3), rgba(239, 91, 76, 0));
}

.backdrop-orb-b {
    width: 280px;
    height: 280px;
    right: -80px;
    top: 180px;
    background: radial-gradient(circle, rgba(13, 111, 115, 0.25), rgba(13, 111, 115, 0));
}

.container {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px 18px 48px;
}

.site-header,
.hero-panel,
.lead,
.article-card,
.article-page,
.footer,
.pagination,
.related-box {
    background: var(--paper);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-header {
    border-radius: 28px;
    padding: 24px 26px 18px;
    margin-bottom: 20px;
    background:
        linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(255, 244, 232, 0.92)),
        repeating-linear-gradient(-45deg, rgba(31, 23, 38, 0.02), rgba(31, 23, 38, 0.02) 14px, transparent 14px, transparent 28px);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-wordmark {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.site-wordmark-main {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.site-wordmark-main::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    vertical-align: 2px;
    box-shadow: 0 0 0 8px rgba(239, 91, 76, 0.08);
}

.site-wordmark-sub {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-tagline {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-panel {
    border-radius: 32px;
    padding: 32px 28px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(255, 247, 240, 0.96), rgba(255, 250, 245, 0.92)),
        radial-gradient(circle at top right, rgba(239, 184, 77, 0.25), transparent 30%);
}

.hero-kicker,
.section-kicker,
.feed-strip-label,
.antenna-widget-title {
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy {
    margin: 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-chips span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(239, 91, 76, 0.12);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
}

.lead {
    border-radius: 24px;
    padding: 8px 14px;
    margin-bottom: 12px;
}

.quick-nav {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 250, 245, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 18px 54px rgba(38, 17, 43, 0.08);
}

.home-seo-head {
    margin: 0 0 10px;
}

.home-seo-head h1 {
    margin: 2px 0 0;
    font-size: clamp(1.18rem, 3vw, 1.55rem);
    line-height: 1.35;
    letter-spacing: -0.04em;
}

.quick-nav-row,
.subject-chip-row,
.card-meta-row,
.article-top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-nav-pill,
.subject-chip,
.card-meta-row span,
.article-top-meta span,
.article-top-meta a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.quick-nav-pill {
    flex: 1 1 148px;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(239, 91, 76, 0.12), rgba(239, 184, 77, 0.13));
    border: 1px solid rgba(239, 91, 76, 0.14);
}

.quick-nav-pill small {
    color: var(--brand);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.subject-chip-row {
    margin-top: 10px;
}

.subject-chip {
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.subject-hub {
    margin-bottom: 12px;
}

.archive-intro {
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(239, 184, 77, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.archive-intro h1 {
    margin: 4px 0 8px;
    color: var(--brand-deep);
    font-family: var(--display-font);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.05;
}

.archive-description p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-heading-compact {
    margin-bottom: 10px;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.subject-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    padding: 14px 14px 12px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 250, 245, 0.95), rgba(250, 240, 233, 0.88)),
        radial-gradient(circle at top right, rgba(239, 184, 77, 0.18), transparent 40%);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(38, 17, 43, 0.08);
}

.subject-card strong {
    font-size: 0.98rem;
    line-height: 1.25;
}

.subject-card-label {
    color: var(--brand);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feed-strip-link {
    display: block;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}

.feed-strip-link:first-of-type {
    border-top: 0;
}

.feed-strip-date {
    display: block;
    color: var(--muted);
    font-size: 0.62rem;
    margin-bottom: 1px;
    line-height: 1.25;
}

.feed-strip-title {
    font-size: 0.78rem;
    line-height: 1.3;
    font-weight: 700;
}

.archive-page {
    padding-top: 6px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 12px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.article-card {
    overflow: hidden;
    border-radius: 28px;
    margin-bottom: 14px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 90px rgba(38, 17, 43, 0.15);
}

.card-link {
    display: block;
}

.article-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.2;
    overflow: hidden;
    background: #ddd1c4;
}

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

.category-badge,
.article-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 23, 38, 0.84);
    color: #fff7f0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

.article-content {
    padding: 16px 18px 18px;
}

.card-date {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-meta-row {
    margin-top: 7px;
}

.card-meta-row span,
.article-top-meta span,
.article-top-meta a {
    padding: 5px 9px;
    background: rgba(13, 111, 115, 0.08);
    color: var(--accent);
    font-size: 0.72rem;
}

.article-title,
.page-title {
    margin: 7px 0 10px;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.article-summary {
    color: var(--muted);
    font-size: 0.88rem;
}

.article-excerpt {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.read-more-container {
    margin-top: 14px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(239, 91, 76, 0.14), rgba(239, 184, 77, 0.14));
    color: var(--brand-deep);
    font-size: 0.86rem;
    font-weight: 900;
}

.article-page {
    border-radius: 28px;
    padding: 24px 22px 30px;
}

.breadcrumb {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.8rem;
}

.article-date {
    margin-bottom: 18px;
}

.article-top-meta {
    margin: -8px 0 16px;
}

.hero-img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #efe4d9;
    margin-bottom: 20px;
}

.entry-content p,
.entry-content li,
.entry-content blockquote {
    font-size: 1rem;
}

.reaction-highlight {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(239, 91, 76, 0.1), rgba(239, 184, 77, 0.12)),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(239, 91, 76, 0.14);
}

.reaction-highlight strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.reaction-highlight ul {
    margin: 0;
    padding-left: 18px;
}

.reaction-highlight li {
    margin: 4px 0;
    color: var(--ink);
    font-size: 0.92rem;
}

.entry-content blockquote {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--brand);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 0 16px 16px 0;
}

.reaction-box {
    margin: 24px 0;
}

.comment-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 6px;
    align-items: center;
    margin: 12px 0;
}

.comment-avatar {
    grid-column: 2;
    grid-row: 1;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    justify-self: end;
    opacity: 0.72;
}

.comment-avatar-img {
    display: block;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
}

.comment-bubble {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 13px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(38, 17, 43, 0.06);
    line-height: 1.75;
}

.site-page-content h2,
.entry-content h2 {
    margin: 26px 0 10px;
    font-size: 1.18rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.site-page-content p,
.entry-content p {
    margin: 0 0 1em;
}

.editorial-note {
    margin: 22px 0 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(13, 111, 115, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(241, 248, 246, 0.86));
    color: var(--muted);
    font-size: 0.9rem;
}

.editorial-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.editorial-note p {
    margin: 0;
}

.editorial-note a,
.site-page-content a {
    color: var(--brand-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-faq {
    margin: 28px 0 12px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(13, 111, 115, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 248, 0.9)),
        radial-gradient(circle at top right, rgba(24, 169, 176, 0.14), transparent 36%);
    box-shadow: 0 18px 38px rgba(20, 39, 62, 0.08);
}

.article-faq h2 {
    margin: 4px 0 14px;
    font-size: clamp(1.18rem, 2.4vw, 1.55rem);
    letter-spacing: -0.03em;
}

.faq-item {
    padding: 13px 0;
    border-top: 1px solid rgba(13, 111, 115, 0.14);
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(13, 111, 115, 0.14);
}

.faq-item summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 900;
    line-height: 1.5;
}

.faq-item p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.85;
}

.amazon-associate-box {
    margin: 24px 0 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(239, 184, 77, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 226, 0.86)),
        radial-gradient(circle at top right, rgba(239, 184, 77, 0.18), transparent 38%);
}

.amazon-associate-head {
    margin-bottom: 14px;
}

.amazon-associate-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.amazon-associate-box h2 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    line-height: 1.4;
}

.amazon-associate-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.amazon-associate-disclosure {
    margin-top: 8px !important;
    font-size: 0.76rem !important;
}

.amazon-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.amazon-product-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(22, 29, 35, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    box-shadow: 0 14px 28px rgba(22, 29, 35, 0.07);
    scroll-snap-align: start;
}

.amazon-product-cover {
    display: grid;
    place-items: center;
    aspect-ratio: 7 / 10;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(21, 29, 37, 0.94), rgba(57, 69, 81, 0.9)),
        radial-gradient(circle at 30% 20%, rgba(239, 184, 77, 0.38), transparent 38%);
    box-shadow: inset 8px 0 0 rgba(255, 255, 255, 0.12);
}

.amazon-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amazon-product-cover-fallback {
    padding: 8px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.amazon-product-copy {
    display: grid;
    gap: 4px;
}

.amazon-product-label {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.amazon-product-copy strong {
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.45;
}

.amazon-product-copy span:last-child {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.article-tags {
    margin: 22px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-link-box {
    margin: 22px 0 10px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(13, 111, 115, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(239, 248, 247, 0.82));
}

.topic-link-box h2 {
    margin: 4px 0 12px;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.topic-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.topic-link-card {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

.topic-link-card span {
    color: var(--brand);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.topic-link-card strong {
    font-size: 0.86rem;
    line-height: 1.45;
}

.related-box {
    border-radius: 22px;
    margin-top: 26px;
    padding: 20px;
}

.related-box h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.related-box ul {
    margin: 0;
    padding-left: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
}

.related-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #efe4d9;
    overflow: hidden;
}

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

.related-card-body {
    display: block;
    padding: 10px 11px 12px;
}

.related-card-meta {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 900;
}

.related-card strong {
    display: block;
    font-size: 0.86rem;
    line-height: 1.45;
}

.pagination {
    border-radius: 20px;
    padding: 20px 24px;
    text-align: center;
    margin-top: 14px;
}

.footer {
    border-radius: 28px;
    padding: 24px 22px 28px;
    margin-top: 22px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.antenna-widget {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 247, 240, 0.96), rgba(255, 255, 255, 0.9));
}

.antenna-widget-text,
.footer-credit,
.empty-state {
    color: var(--muted);
}

.antenna-widget-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--brand-deep);
    font-weight: 800;
}

.footer-credit {
    margin-top: 18px;
    font-size: 0.84rem;
}

@media (max-width: 700px) {
    .container {
        padding: 14px 12px 38px;
    }

    .site-header,
    .lead,
    .article-card,
    .article-page,
    .footer,
    .pagination,
    .related-box {
        border-radius: 22px;
    }

    .site-header,
    .article-page,
    .footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-nav {
        padding: 12px;
    }

    .quick-nav-pill {
        flex-basis: calc(50% - 6px);
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .topic-link-grid {
        grid-template-columns: 1fr;
    }

    .comment-item {
        grid-template-columns: minmax(0, 1fr) 16px;
        gap: 5px;
    }

    .comment-avatar,
    .comment-avatar-img {
        width: 16px;
        height: 16px;
        max-width: 16px;
        max-height: 16px;
    }

    .comment-bubble {
        padding: 11px 13px;
        border-radius: 16px;
        font-size: 0.94rem;
    }

    .amazon-associate-box {
        padding: 14px;
    }

    .amazon-product-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 78vw);
        grid-template-columns: none;
        margin-right: -14px;
        padding-right: 14px;
    }

    .amazon-product-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .amazon-product-copy span:last-child {
        display: none;
    }
}
