/*
Theme Name: Arkhe Research Child
Theme URI: https://arkhe-theme.com/ja/
Description: Arkhe child theme for the research category home pages. Six editable homes v1.2.0 — WordPress block editor.
Author: Site Owner
Template: arkhe
Version: 1.2.0
Text Domain: arkhe-research-child
*/

/* Legacy work-page styling retained for backward compatibility. */
.nuc-work-home { --nuc-ink:#172536; --nuc-accent:#21628c; --nuc-muted:#607184; color:var(--nuc-ink); margin:1.8rem 0 2.5rem; }
.nuc-work-home * { box-sizing:border-box; }
.nuc-work-home [id] { scroll-margin-top:6rem; }
.nuc-work-hero { padding:clamp(1.3rem,4vw,2.7rem); border-radius:16px; background:linear-gradient(120deg,#e8f3fa 0%,#f4f8fa 56%,#f1f5ed 100%); border:1px solid #d9e7ee; }
.nuc-work-hero__label,.nuc-work-topic__label,.nuc-work-section__head > span { display:block; font-size:.74rem; font-weight:700; letter-spacing:.14em; color:var(--nuc-accent); }
.nuc-work-hero h2 { margin:.5rem 0 .7rem; font-size:clamp(1.65rem,4vw,2.35rem); line-height:1.3; }
.nuc-work-hero p { max-width:41rem; margin:.3rem 0 1.25rem; line-height:1.85; }
.nuc-work-hero__actions { display:flex; flex-wrap:wrap; gap:.65rem; }
.nuc-work-hero__actions a { display:inline-flex; text-decoration:none; padding:.65rem 1rem; border-radius:8px; background:#fff; color:#195b82; border:1px solid #b5cfde; font-weight:700; }
.nuc-work-hero__actions a:first-child { background:#195b82; color:#fff; border-color:#195b82; }
.nuc-work-topics { margin:2.4rem 0; }
.nuc-work-topics h2,.nuc-work-latest h2 { font-size:1.35rem; margin:0 0 1rem; }
.nuc-work-topic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.nuc-work-topic { display:flex; flex-direction:column; min-height:11.5rem; gap:.5rem; padding:1.3rem; border:1px solid #dce5e9; border-radius:12px; background:#fff; color:inherit; text-decoration:none!important; box-shadow:0 2px 10px rgba(25,60,84,.04); transition:transform .15s ease,box-shadow .15s ease; }
.nuc-work-topic:hover,.nuc-work-topic:focus-visible { transform:translateY(-2px); box-shadow:0 8px 18px rgba(25,60,84,.11); }
.nuc-work-topic strong { font-size:1.12rem; color:var(--nuc-ink); }
.nuc-work-topic > span:not(.nuc-work-topic__label):not(.nuc-work-topic__action) { line-height:1.6; font-size:.9rem; color:var(--nuc-muted); }
.nuc-work-topic__action { margin-top:auto; color:var(--nuc-accent); font-size:.88rem; font-weight:700; }
.nuc-work-section { padding:1.55rem 0; border-top:1px solid #dce5e9; }
.nuc-work-section__head h2 { margin:.3rem 0; font-size:1.35rem; }
.nuc-work-section__head p { margin:.4rem 0 .9rem; color:var(--nuc-muted); font-size:.9rem; }
.nuc-work-links { display:grid; gap:.55rem; }
.nuc-work-link { display:flex; justify-content:space-between; gap:1rem; align-items:center; border:1px solid #e4ebef; border-radius:8px; padding:.82rem 1rem; text-decoration:none!important; background:#fbfcfd; color:var(--nuc-ink); line-height:1.5; }
.nuc-work-link:hover,.nuc-work-link:focus-visible { color:#195b82; border-color:#a8c8db; }
.nuc-work-link > span:last-child { flex:none; color:var(--nuc-accent); }
.nuc-work-latest { border-top:1px solid #dce5e9; padding-top:1.5rem; margin-top:.5rem; }
.nuc-work-latest p { margin:0 0 .4rem; color:var(--nuc-muted); font-size:.9rem; }
.nuc-overall-home { display:inline-block; white-space:nowrap; margin:0 .6rem; padding:.35rem .6rem; font-size:.8rem; border:1px solid #dce5e9; border-radius:7px; text-decoration:none; }
@media (max-width:640px) { .nuc-work-topic-grid { grid-template-columns:1fr; } .nuc-work-topic { min-height:0; } .nuc-work-home { margin:1.2rem 0 2rem; } .nuc-work-hero { border-radius:10px; } }
@media (prefers-reduced-motion:reduce) { .nuc-work-topic { transition:none; } }

/* v1.1.1: The landing text/images/cards come from standard WP blocks. */
.nuc-work-editable > .wp-block-group, .nuc-work-editable > .wp-block-heading, .nuc-work-editable > .wp-block-paragraph { margin-bottom:1.25rem; }
.nuc-work-editable > .nuc-work-hero { margin-bottom:2rem; }
.nuc-work-editable .wp-block-image img { max-width:100%; height:auto; }
.nuc-work-editable .nuc-work-section { padding:1.3rem 0; }
.nuc-work-editable .nuc-work-section h3 { margin:.2rem 0 .65rem; }
.nuc-work-editable .nuc-work-section li { margin-bottom:.55rem; }

/* v1.2: Reusable, editable site/category landing areas. Existing Arkhe lists remain. */
.nuc-home-root { margin:1.5rem 0 2rem; color:#182635; }
.nuc-home-root * { box-sizing:border-box; }
.nuc-home-root img { max-width:100%; height:auto; }
.nuc-home-root .wp-block-image img { display:block; }
.nuc-home-root .wp-block-group { max-width:100%; }
.nuc-home-root > .wp-block-heading:first-child { margin-top:0; }
.nuc-site-cards { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:stretch; margin:1.5rem 0 2rem; }
.nuc-site-card { border:1px solid #dce5eb; border-radius:12px; padding:clamp(1rem,2.4vw,1.65rem); min-width:0; background:#f8fbfd; box-shadow:0 2px 10px rgba(22,47,70,.04); }
.nuc-site-card .wp-block-heading { font-size:1.22rem; margin:.3rem 0 .7rem; }
.nuc-site-card .wp-block-heading a { text-decoration:none; }
.nuc-site-card .wp-block-heading a:hover { text-decoration:underline; }
.nuc-site-card p { margin:.3rem 0; line-height:1.7; font-size:.92rem; }
.nuc-site-card .wp-block-image img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:7px; margin-bottom:.75rem; }
.nuc-site-card--work { background:#edf5fb; }
.nuc-site-card--parenting { background:#fff5ed; }
.nuc-site-card--film { background:#f1effc; }
.nuc-site-card--manga { background:#f6f2f8; }
.nuc-site-card--money { background:#f0f8ed; }
.nuc-site-fallback-card { display:block; border:1px solid #dce5eb; border-radius:10px; padding:1.35rem; text-decoration:none; font-weight:700; }
.nuc-category-intro { border-radius:12px; padding:clamp(1.15rem,3vw,2rem); border:1px solid #dbe6ee; background:linear-gradient(120deg,#edf5fc,#f8faf5); }
.nuc-category-intro .wp-block-heading { margin:.3rem 0 .6rem; }
.nuc-rank-slot,.nuc-parent-list,.nuc-bio-slot { border-top:1px solid #dce5eb; padding:1.3rem 0; margin-top:1.3rem; }
.nuc-rank-slot .wp-block-heading,.nuc-parent-list .wp-block-heading,.nuc-bio-slot .wp-block-heading { font-size:1.4rem; margin:.2rem 0 1rem; }
.nuc-parent-list .wp-block-image img { border-radius:9px; }
.nuc-latest-heading { border-top:1px solid #dce5eb; margin:1.4rem 0 1rem; padding-top:1.1rem; }
.nuc-latest-heading h2 { margin:.2rem 0; font-size:1.4rem; }
@media (max-width:680px) { .nuc-site-cards { grid-template-columns:1fr; } .nuc-home-root { margin:1.1rem 0 1.5rem; } }
