/* ============================================================
   words.css — 「言葉と真理」（words.html）。土台は css/gothic.css・css/sub.css。
   同じ大聖堂の、別の間（書庫）。トップから移した札（小説・思考の断片・診断）の見た目。
   ============================================================ */

/* ---------- 小説『空の器』 ---------- */
.featured-flex { display: flex; flex-direction: column; align-items: center; gap: 34px; max-width: 940px; margin: 0 auto; }
.featured-cover { width: min(100%, 300px); }
.featured-cover a {
    display: block;
    padding: 6px;
    background: linear-gradient(135deg, #8f6a26, #ffe6a3 40%, #d9ad55 60%, #8f6a26);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(217, 173, 85, 0.15);
}
.featured-cover img { display: block; width: 100%; height: auto; }
.featured-text { text-align: center; }
.featured-name { margin: 0 0 14px; font-weight: 700; font-size: 1.2rem; color: var(--gold-pale); }
.featured-text blockquote {
    margin: 0 0 24px;
    padding: 20px 0 0;
    border-top: 1px solid var(--gold);
    font-size: 1rem;
    line-height: 2.05;
    color: var(--ivory);
}
.featured-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.featured-badges > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--gold-hi);
    border: 1px solid rgba(217, 173, 85, 0.45);
    background: rgba(12, 10, 20, 0.45);
}
.featured-badges .i { width: 1.1em; height: 1.1em; }

/* ---------- 札（カクヨム・診断） ---------- */
.word-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.word-card {
    --accent: var(--glass-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 16px 22px;
    text-align: center;
    color: var(--ivory);
    background:
        linear-gradient(90deg, transparent, var(--accent), transparent) top / 100% 2px no-repeat,
        linear-gradient(180deg, rgba(29, 23, 51, 0.8), rgba(12, 10, 20, 0.8));
}
.word-card .ic {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    color: var(--gold-hi);
    border: 1px solid rgba(217, 173, 85, 0.45);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, rgba(255, 217, 138, 0.16), rgba(12, 10, 20, 0.2) 70%);
}
.word-card .ic .i { width: 23px; height: 23px; }
.word-card .ic.ic-blue { color: var(--glass-blue-text); border-color: rgba(143, 176, 255, 0.5); }
.word-card h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.5; color: var(--gold-pale); }
.word-card p { margin: 0; font-size: 0.86rem; line-height: 1.8; color: var(--muted); word-break: auto-phrase; }
.word-cards-more { margin-top: 24px; }

/* ---------- 思考の断片（note） ---------- */
.note-grid-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.note-card-g {
    --accent: var(--glass-red);
    display: flex;
    flex-direction: column;
    padding: 30px 20px 22px;
    color: var(--ivory);
    background:
        linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent) top / 100% 3px no-repeat,
        linear-gradient(180deg, rgba(29, 23, 51, 0.8), rgba(12, 10, 20, 0.8));
}
.note-card-g:nth-child(2) { --accent: var(--glass-blue); }
.note-card-g:nth-child(3) { --accent: var(--glass-green); }
.note-card-g .cat {
    margin-bottom: 10px;
    font-family: var(--f-latin);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}
.note-card-g h3 { margin: 0 0 12px; font-size: 1.04rem; line-height: 1.75; color: var(--gold-pale); }
.note-card-g p { flex-grow: 1; margin: 0 0 16px; font-size: 0.86rem; line-height: 1.95; color: var(--muted); }
.note-card-g .more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-latin);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--gold-hi);
}
.note-card-g .more .i { width: 1em; height: 1em; }
.words-cta { text-align: center; margin-top: 32px; }

/* 音楽のトップへ戻る */
.words-back { text-align: center; padding: 8px 0 72px; }

@media (min-width: 769px) {
    .featured-flex { flex-direction: row; gap: 54px; }
    .featured-cover { flex: 0 0 420px; width: 420px; }
    .featured-text { text-align: left; }
    .featured-text blockquote { border-top: 0; border-left: 2px solid var(--gold); padding: 0 0 0 22px; }
    .featured-badges { justify-content: flex-start; }
    .word-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 18px; }   /* 1枚でも中央に */
    .note-grid-g { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
    .word-card, .note-card-g, .featured-cover a { transition: transform 0.35s ease, box-shadow 0.35s ease; }
    .word-card:hover, .note-card-g:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(217, 173, 85, 0.16); }
    .featured-cover a:hover { transform: translateY(-4px); }
}
