/**
 * 站点化全局样式：顶栏、首页 Hero/速報/排名、静态文章页、页脚链接。
 * 走势图专用样式仍在 styles.css，本文件避免影响 .trend-shell / canvas 布局。
 */

:root {
    --site-bg: #f4f5f7;
    --site-text: #1a1d24;
    --site-muted: #5c6370;
    --site-border: #c8ccd4;
    --site-primary: #2563eb;
    --site-primary-dark: #1d4ed8;
    --site-accent: #ea580c;
    --site-warm-bg: #fff7ed;
    --site-cool-bg: #f0f7ff;
    --site-header-h: 56px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", sans-serif;
    background: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
}

/* ---------- 粘性顶栏 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--site-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-nav__bar {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    min-height: var(--site-header-h);
    gap: 1rem;
}

.site-nav__brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--site-text);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav__brand:hover {
    color: var(--site-primary);
}

.site-nav__toggle {
    display: none;
    margin-left: auto;
    padding: 0.5rem;
    border: 1px solid var(--site-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.site-nav__toggle-bar {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: var(--site-text);
    margin: 4px 0;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem 0.28rem;
}

.site-nav__item {
    position: relative;
}

.site-nav__link,
.site-nav__label {
    display: inline-block;
    padding: 0.42rem 0.45rem;
    font-size: 0.78rem;
    color: var(--site-text);
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

.site-nav__link:hover {
    background: #f0f2f6;
    color: var(--site-primary);
}

.site-nav__link--active {
    color: var(--site-primary);
    font-weight: 600;
}

.site-nav__item--dropdown .site-nav__label {
    cursor: default;
    color: var(--site-muted);
}

.site-nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
    min-width: 10rem;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.site-nav__item--dropdown:hover .site-nav__dropdown,
.site-nav__item--dropdown:focus-within .site-nav__dropdown {
    display: block;
}

.site-nav__dropdown-link {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    color: var(--site-text);
    text-decoration: none;
}

.site-nav__dropdown-link:hover {
    background: #f0f7ff;
    color: var(--site-primary);
}

.site-nav__dropdown-link.site-nav__link--active {
    font-weight: 600;
    color: var(--site-primary);
}

@media (max-width: 900px) {
    .site-nav__toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: var(--site-header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--site-border);
        padding: 0.5rem 1rem 1rem;
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav__dropdown {
        position: static;
        display: block;
        border: none;
        box-shadow: none;
        padding-left: 0.75rem;
    }

    .site-nav__item--dropdown:hover .site-nav__dropdown {
        display: block;
    }
}

/* ---------- 主内容区 ---------- */
.site-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

/** 走势图全宽：不限制 max-width，避免 Canvas 布局被误压缩 */
.site-main--fluid {
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* ---------- Hero ---------- */
.site-hero {
    padding: 2rem 0 1.5rem;
}

.site-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .site-hero__grid {
        grid-template-columns: 1fr;
    }
}

.site-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-hero__lead {
    margin: 0 0 1.25rem;
    color: var(--site-muted);
    font-size: 0.95rem;
}

.site-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.site-btn--primary {
    background: var(--site-primary);
    color: #fff;
}

.site-btn--primary:hover {
    background: var(--site-primary-dark);
}

.site-btn--ghost {
    background: #fff;
    border-color: var(--site-border);
    color: var(--site-text);
}

.site-btn--ghost:hover {
    border-color: var(--site-primary);
    color: var(--site-primary);
}

/**
 * ---------- /results：loto6出目表を見る CTA アニメ ----------
 * 【切り替え】常にアクティブにするのは 1 案だけです。
 *
 * • 現在：「方案1」が有効
 * • 方案2〜4 を試すとき：
 *   1) 下の「方案1」セレクターブロック全体（@keyframes と @media 含む）をエディタでブロックコメント化
 *   2) 試したい方案ブロックについて、説明文のある先頭コメント開始行と、末尾の単独ストアスラッシュ行を削除して中身だけ残す（必ず一度にひとつの方案のみ有効）
 *
 * 【デバッグ】ブラウザの開発者ツール → Elements で当該 <a> を選択 → Styles 側で animation プロパティの
 * トグル無効／有効、アニメ名横のKeyframesリンクでイージングを確認。prefers-reduced-motion が on の端末では自動で停止します。
 */

/* ------- 方案1（默认）：柔和呼吸光晕 + 阴影脉动（推荐，克制不刺眼）------- 
.site-btn--trend-cta.site-btn--primary {
    position: relative;
    z-index: 0;
    animation: trend-cta-soft-ring 2.4s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-btn--trend-cta.site-btn--primary:hover {
    animation: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.site-btn--trend-cta.site-btn--primary:active {
    transform: translateY(0);
}

@keyframes trend-cta-soft-ring {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(147, 197, 253, 0.55),
            0 2px 8px rgba(37, 99, 235, 0.22);
    }

    50% {
        box-shadow:
            0 0 0 10px rgba(147, 197, 253, 0),
            0 4px 16px rgba(37, 99, 235, 0.38);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-btn--trend-cta.site-btn--primary {
        animation: none;
    }

    .site-btn--trend-cta.site-btn--primary:hover {
        transform: none;
    }
}
*/
/* [方案2：未启用] 先注释掉上方「方案1」整块；再删除本注释的第一行单独的 slash-star，与最后一行单独的 star-slash。

.site-btn--trend-cta.site-btn--primary {
    animation: trend-cta-float 2s ease-in-out infinite;
}

.site-btn--trend-cta.site-btn--primary:hover {
    animation: none;
    transform: translateY(-2px);
}

@keyframes trend-cta-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-btn--trend-cta.site-btn--primary {
        animation: none;
    }
}

*/

/* [方案3：未启用] 同上（方案1必须先关闭）

.site-btn--trend-cta.site-btn--primary {
    animation: trend-cta-pop 2.1s ease-in-out infinite;
}

.site-btn--trend-cta.site-btn--primary:hover {
    animation: none;
    transform: scale(1.03);
}

@keyframes trend-cta-pop {
    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.045);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-btn--trend-cta.site-btn--primary {
        animation: none;
    }

    .site-btn--trend-cta.site-btn--primary:hover {
        transform: none;
    }
}

*/

/* [方案4：未启用] 同上（方案1必须先关闭）*/

.site-btn--trend-cta.site-btn--primary {
    animation: trend-cta-bright 2.2s ease-in-out infinite;
}

.site-btn--trend-cta.site-btn--primary:hover {
    animation: none;
    filter: brightness(1.05);
}

@keyframes trend-cta-bright {
    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-btn--trend-cta.site-btn--primary {
        animation: none;
    }

    .site-btn--trend-cta.site-btn--primary:hover {
        filter: none;
    }
}



.site-hero__visual {
    text-align: center;
}

.site-hero__balls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.site-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.site-ball--main {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    border: 1px solid #f87171;
    color: #991b1b;
}

.site-ball--bonus {
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    border: 1px solid #60a5fa;
    color: #1e3a8a;
    font-size: 0.65rem;
}

.site-hero__visual-caption {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: var(--site-muted);
}

/* ---------- 区块通用 ---------- */
.site-section {
    margin: 2rem 0;
}

.site-section--accent {
    padding: 1.5rem 0;
}

.site-section--accent .site-section__title {
    color: var(--site-accent);
}

.site-section__head {
    margin-bottom: 1rem;
}

.site-section__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.site-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .site-section__head--split {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-section__actions {
        justify-content: flex-start;
    }
}

.site-section__title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-section__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--site-muted);
}

.site-section__subtitle--warn {
    color: #b45309;
}

.site-section--muted {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
}

.site-feature-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.2rem;
    color: var(--site-muted);
    font-size: 0.9rem;
}

.site-disclaimer-short {
    margin: 0;
    font-size: 0.85rem;
    color: var(--site-muted);
}

/* ---------- 速報卡片 ---------- */
.site-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
}

.site-card--report {
    max-width: 40rem;
}

.site-report__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.site-report__label {
    min-width: 4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--site-muted);
}

.site-report__balls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.site-report__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    font-size: 0.85rem;
}

.site-report__meta dt {
    color: var(--site-muted);
    font-weight: 500;
}

.site-report__meta dd {
    margin: 0;
    font-weight: 600;
}

/* ---------- 抽選結果一覧 ---------- */
.results-list-card {
    padding: 0;
    overflow: hidden;
}

.results-list {
    display: grid;
}

.results-list__row {
    display: grid;
    grid-template-columns: 5.5rem 8rem minmax(18rem, 1fr) 5.5rem 10rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.results-list__row:last-child {
    border-bottom: none;
}

.results-list__label {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--site-muted);
    letter-spacing: 0.04em;
}

.results-list__issue strong {
    font-size: 0.95rem;
}

.results-list__date,
.results-list__meta {
    font-size: 0.84rem;
    color: var(--site-muted);
}

.results-list__balls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.results-list__meta {
    display: grid;
    gap: 0.15rem;
}

.results-list__meta b {
    color: var(--site-text);
    font-weight: 700;
}

.results-list__empty {
    margin: 0;
    padding: 1.5rem;
    color: var(--site-muted);
    font-size: 0.9rem;
}

.results-page {
    max-width: 72rem;
    margin: 0 auto;
}

.results-hero {
    padding: 1.75rem 0 0.5rem;
}

.results-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--site-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.results-hero__title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.results-hero__lead {
    max-width: 48rem;
    margin: 0;
    font-size: 0.94rem;
    color: var(--site-muted);
    line-height: 1.75;
}

.results-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.results-pagination__link,
.results-pagination__disabled {
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--site-border);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.results-pagination__link {
    color: var(--site-primary);
    background: #fff;
}

.results-pagination__link:hover {
    border-color: var(--site-primary);
}

.results-pagination__disabled {
    color: #9ca3af;
    background: #f8fafc;
}

.results-pagination__info {
    min-width: 4rem;
    text-align: center;
    font-size: 0.84rem;
    color: var(--site-muted);
}

@media (max-width: 900px) {
    .results-list__row {
        grid-template-columns: 5.25rem 1fr;
        gap: 0.65rem 0.85rem;
        padding: 1rem;
    }

    .results-list__numbers,
    .results-list__meta {
        grid-column: 1 / -1;
    }

    .results-list__bonus {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .results-list__row {
        grid-template-columns: 1fr auto;
        border-bottom: 0.5rem solid var(--site-bg);
    }

    .results-list__row:last-child {
        border-bottom: none;
    }

    .results-list__date {
        text-align: right;
    }

    .results-list__numbers {
        grid-column: 1 / -1;
    }

    .results-list__bonus,
    .results-list__meta {
        grid-column: 1 / -1;
    }

    .results-list__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .results-pagination {
        gap: 0.5rem;
    }

    .results-pagination__link,
    .results-pagination__disabled {
        padding: 0.4rem 0.65rem;
    }
}

/* ---------- 排名 ---------- */
.site-rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .site-rank-grid {
        grid-template-columns: 1fr;
    }
}

.site-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.site-card__note {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    color: var(--site-muted);
}

.site-card--warm {
    border-left: 4px solid #fb923c;
    background: var(--site-warm-bg);
}

.site-card--cool {
    border-left: 4px solid #60a5fa;
    background: var(--site-cool-bg);
}

.site-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-rank-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
}

.site-rank-list__rank {
    width: 1.5rem;
    color: var(--site-muted);
    font-size: 0.8rem;
}

.site-rank-list__num {
    font-weight: 700;
    min-width: 2rem;
}

.site-rank-list__count {
    margin-left: auto;
    color: var(--site-muted);
    font-size: 0.82rem;
}

.site-rank-list__empty {
    border: none;
    color: var(--site-muted);
}

/* ---------- 静态文章 ---------- */
.site-article {
    max-width: 48rem;
}

.site-article__title {
    margin: 0 0 1.25rem;
    font-size: 1.45rem;
    font-weight: 700;
}

.site-article__section {
    margin-bottom: 1.75rem;
}

.site-article__section h2 {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.site-article__section h3 {
    margin: 1rem 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-article__section p,
.site-article__section li {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    color: var(--site-muted);
}

.site-article__section ul {
    padding-left: 1.2rem;
}

/* ---------- 页脚链接 ---------- */
.site-footer-nav {
    border-top: 1px solid var(--site-border);
    background: #eef0f4;
    padding: 1rem;
}

.site-footer-nav__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}

.site-footer-nav__inner a {
    font-size: 0.8rem;
    color: var(--site-primary);
    text-decoration: none;
}

.site-footer-nav__inner a:hover {
    text-decoration: underline;
}

/* ---------- ロト6の基礎知識（/knowledge）：目次 + セクションカード ---------- */
.knowledge-page {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.knowledge-page__grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 960px) {
    .knowledge-page__grid {
        grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
        gap: 2rem;
    }
}

.knowledge-toc {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #fafbfd;
}

@media (min-width: 960px) {
    .knowledge-toc {
        position: sticky;
        top: calc(3.75rem + 0.5rem);
        align-self: start;
    }
}

.knowledge-toc__title {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--site-heading);
}

.knowledge-toc__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    line-height: 1.55;
}

.knowledge-toc__list a {
    color: var(--site-primary);
    text-decoration: none;
}

.knowledge-toc__list a:hover {
    text-decoration: underline;
}

.knowledge-hero {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--site-border);
}

.knowledge-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: var(--site-heading);
    letter-spacing: 0.02em;
}

.knowledge-hero__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--site-muted);
}

.knowledge-section {
    scroll-margin-top: calc(3.75rem + 0.75rem);
    margin-bottom: 1.75rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.knowledge-section__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--site-heading);
}

.knowledge-section__body p,
.knowledge-section__body li {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--site-muted);
}

.knowledge-section__body ul {
    margin: 0 0 0.5rem;
    padding-left: 1.2rem;
}

.knowledge-section__cta {
    margin: 1rem 0 0;
}

.knowledge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--site-primary);
    border-radius: 8px;
    border: 1px solid transparent;
}

.knowledge-btn:hover {
    filter: brightness(1.05);
}

.knowledge-related {
    margin-top: 2rem;
    padding: 1rem 1.15rem;
    border: 1px dashed var(--site-border);
    border-radius: 10px;
    background: #f8f9fc;
}

.knowledge-related__title {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--site-heading);
}

.knowledge-related__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    line-height: 1.65;
}

.knowledge-related__list a {
    color: var(--site-primary);
    text-decoration: none;
}

.knowledge-related__list a:hover {
    text-decoration: underline;
}

/* ---------- 運営者自己紹介（/profile）：スコープ限定 ---------- */
.profile-page {
    max-width: 65rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 3.5rem;
}

.profile-hero {
    padding: 2.5rem 1.75rem;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.profile-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--site-primary);
    text-transform: uppercase;
}

.profile-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--site-text);
}

.profile-hero__lead {
    max-width: 45rem;
    margin: 0 0 1.25rem;
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--site-muted);
}

.profile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.profile-section {
    margin-top: 2.5rem;
}

.profile-section__head {
    margin-bottom: 0.9rem;
}

.profile-section__title {
    margin: 0;
    font-size: clamp(1.15rem, 2.3vw, 1.4rem);
    font-weight: 800;
    color: var(--site-text);
}

.profile-card {
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.profile-prose p,
.profile-support__body p {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--site-muted);
}

.profile-prose p:last-child,
.profile-support__body p:last-child {
    margin-bottom: 0;
}

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

.profile-grid--cards {
    margin-top: 1rem;
}

.profile-grid--cards:has(> :only-child) {
    grid-template-columns: 1fr;
}

.profile-blog-cta {
    margin-top: 1.25rem !important;
    margin-bottom: 0 !important;
}

.profile-card__title {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--site-text);
}

.profile-tag-list,
.profile-check-list,
.profile-policy-list,
.profile-support__uses ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--site-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.profile-tag-list li,
.profile-check-list li,
.profile-policy-list li,
.profile-support__uses li {
    margin-bottom: 0.35rem;
}

.profile-mini-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--site-text);
}

.profile-support {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    text-align: center;
    box-shadow: 0 1px 2px rgba(146, 64, 14, 0.08);
}

.profile-support__body {
    max-width: 45rem;
    margin: 0 auto;
}

.profile-support__uses {
    margin: 1.1rem auto;
    padding: 1rem 1.15rem;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.profile-support__uses-title {
    font-weight: 700;
    color: var(--site-text) !important;
}

.profile-support__button {
    margin-top: 1.25rem;
}

.profile-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-link-card {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: #fff;
    color: var(--site-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-link-card:hover {
    border-color: var(--site-primary);
    background: #f0f7ff;
}

@media (max-width: 768px) {
    .profile-page {
        padding: 1rem 0.75rem 3rem;
    }

    .profile-hero {
        padding: 1.75rem 1.25rem;
    }

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

/* ---------- お問い合わせ（/contact）：カード + 注意事項 ---------- */
.contact-page {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

.contact-page__head {
    margin-bottom: 1.5rem;
}

.contact-page__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.55rem);
    font-weight: 800;
    color: var(--site-heading);
}

.contact-page__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--site-muted);
}

.contact-card {
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.contact-card__label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--site-muted);
    letter-spacing: 0.04em;
}

.contact-card__email {
    margin: 0;
    font-size: 1.05rem;
}

.contact-card__mailto {
    color: var(--site-primary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.contact-card__mailto:hover {
    text-decoration: underline;
}

.contact-notes {
    margin-bottom: 1.25rem;
}

.contact-notes__title {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--site-heading);
}

.contact-notes__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--site-muted);
}

.contact-notes__list li {
    margin-bottom: 0.4rem;
}

.contact-mini-disclaimer {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #6b7280;
}

/* --- Blog module (.blog-* only) --- */
.blog-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.blog-index .blog-hero,
.blog-show .blog-hero {
    padding: 40px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
    border: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.blog-hero__title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--site-heading);
}

.blog-hero__lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--site-muted);
}

.blog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
}

.blog-chip:hover {
    border-color: var(--site-primary);
    color: var(--site-primary);
}

.blog-chip--active {
    border-color: var(--site-primary);
    background: #eef6ff;
    color: var(--site-primary);
}

.blog-filter-note {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: var(--site-muted);
}

.blog-filter-note a {
    color: var(--site-primary);
    font-weight: 600;
}

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

.blog-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.blog-grid__break {
    grid-column: 1 / -1;
}

.blog-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    text-align: center;
    color: var(--site-muted);
    border: 1px dashed #d1d5db;
    border-radius: 16px;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease;
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.blog-post-card__image {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}

.blog-post-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, #eef2ff, #f9fafb);
}

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

.blog-post-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

.blog-post-card__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--site-heading);
    line-height: 1.35;
}

.blog-post-card__desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--site-muted);
    flex: 1;
}

.blog-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.78rem;
    color: #6b7280;
}

.blog-post-card__tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-post-card__tags li {
    padding: 2px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 0.72rem;
}

.blog-post-card__more {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--site-primary);
}

.blog-pagination {
    margin-top: 32px;
}

.blog-pagination__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.blog-pagination__link {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    color: var(--site-primary);
    text-decoration: none;
}

.blog-pagination__disabled {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    color: #9ca3af;
}

.blog-pagination__info {
    font-size: 0.88rem;
    color: var(--site-muted);
}

.blog-breadcrumb {
    font-size: 0.82rem;
    color: var(--site-muted);
    margin-bottom: 20px;
}

.blog-breadcrumb a {
    color: var(--site-primary);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-breadcrumb span[aria-hidden="true"] {
    margin: 0 6px;
    color: #d1d5db;
}

.blog-article-head__dates {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.blog-article-head__title {
    margin: 12px 0 8px;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--site-heading);
}

.blog-article-head__desc {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--site-muted);
}

.blog-article-head__tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-article-head__tags a {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: var(--site-primary);
    text-decoration: none;
}

.blog-eyecatch {
    margin: 0 0 24px;
}

.blog-eyecatch img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.blog-content {
    line-height: 1.9;
    font-size: 16px;
    color: #1f2937;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    color: var(--site-heading);
}

.blog-content h1 { font-size: 1.55rem; }
.blog-content h2 { font-size: 1.35rem; }
.blog-content h3 { font-size: 1.15rem; }

.blog-content p {
    margin: 0 0 1rem;
}

.blog-content ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-content pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: 12px;
    background: #111827;
    color: #f9fafb;
    font-size: 0.88rem;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.blog-content table th,
.blog-content table td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
}

.blog-disclaimer {
    margin-top: 40px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    font-size: 0.88rem;
    line-height: 1.75;
    color: #78350f;
}

.blog-disclaimer p {
    margin: 0;
}

.blog-support {
    margin-top: 48px;
    padding: 28px 24px;
    border-radius: 18px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    text-align: center;
}

.blog-support__text {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #78350f;
}

.blog-support__btn a[data-ofuse-widget-button] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff !important;
    text-decoration: none;
}

.blog-related {
    margin-top: 48px;
}

.blog-related__title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 800;
}

.blog-back {
    margin-top: 40px;
}

.blog-back a {
    font-weight: 700;
    color: var(--site-primary);
    text-decoration: none;
}

.blog-back a:hover {
    text-decoration: underline;
}

.blog-ad {
    margin: 32px 0;
    padding: 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    text-align: center;
}

.blog-ad__label {
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-index .blog-hero,
    .blog-show .blog-hero {
        padding: 28px 20px;
    }

    .blog-article-head__title {
        font-size: 1.45rem;
    }
}
