/*
Theme Name: AFFINGER7 Child
Template: affinger
Description: AFFINGER7 対応 — 専門メディア型トップページ
Version: 20261116.1
Text Domain: affinger-child
*/

/*
 * AFFINGER normally reserves a column for #side. The custom top page is a
 * full-width editorial layout, so release that column on the home page only.
 * Other pages and the parent theme's header/footer remain untouched.
 */
body.home #content,
body.home #content-inner,
body.home #contentInner,
body.home #main,
body.home #main-inner,
body.home #mainInner,
body.home .st-main,
body.home .st-main-content,
body.home .mainbox,
body.home main.st-main { width:100% !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; padding-left:0 !important; padding-right:0 !important; float:none !important; }
body.home #contentInner,
body.home #content-inner { display:block !important; }
body.home #side,
body.home #sidebar,
body.home .sidebar,
body.home .st-aside,
body.home .st-sidebar { display:none !important; }
/*
 * Some AFFINGER versions keep the top-page main column at its two-column
 * width even after the side element is hidden. Let this self-contained module
 * span the viewport so no blank right-hand column can remain.
 */
body.home { overflow-x:clip; }
body.home #content .murasapo-home { width:100vw !important; max-width:100vw !important; min-width:0; margin:0 calc(50% - 50vw) !important; padding:0 !important; border:0 !important; }

/*
 * AFFINGER markup differs by version and a static front page may not receive
 * the `home` body class. :has() targets only pages that contain this module,
 * then removes the complete two-column wrapper chain.
 */
body:has(.murasapo-home) #wrapper,
body:has(.murasapo-home) #wrapper-in,
body:has(.murasapo-home) #content,
body:has(.murasapo-home) #contentInner,
body:has(.murasapo-home) #content-inner,
body:has(.murasapo-home) #main,
body:has(.murasapo-home) #main-inner,
body:has(.murasapo-home) #mainInner,
body:has(.murasapo-home) .st-main,
body:has(.murasapo-home) .st-main-content,
body:has(.murasapo-home) .mainbox { width:100% !important; max-width:none !important; min-width:0 !important; margin:0 !important; padding:0 !important; float:none !important; }
body:has(.murasapo-home) #contentInner,
body:has(.murasapo-home) #content-inner { display:block !important; }
body:has(.murasapo-home) #side,
body:has(.murasapo-home) #sidebar,
body:has(.murasapo-home) .sidebar,
body:has(.murasapo-home) .st-aside,
body:has(.murasapo-home) .st-sidebar { display:none !important; }
body:has(.murasapo-home) #content .murasapo-home,
body:has(.murasapo-home) .murasapo-home { width:100% !important; max-width:none !important; min-width:0 !important; margin:0 !important; padding:0 !important; border:0 !important; }
body:has(.murasapo-home) .murasapo-home,
body:has(.murasapo-home) .murasapo-section { background:var(--mh-bg) !important; }
body:has(.murasapo-home) .murasapo-hero { margin:0 !important; }

/* Scoped to the custom top page so the rest of AFFINGER is not restyled. */
.murasapo-home { --mh-bg:#111214; --mh-surface:#191b1f; --mh-line:rgba(255,255,255,.25); --mh-text:#f8f7f6; --mh-muted:#b9b9be; --mh-pink:#f38aae; background:var(--mh-bg); color:var(--mh-text); font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif; line-height:1.7; overflow:hidden; }
.murasapo-home *,.murasapo-home *::before,.murasapo-home *::after { box-sizing:border-box; }
.murasapo-home a { color:inherit; text-decoration:none; }.murasapo-home img { display:block; max-width:100%; }.murasapo-shell { width:min(1180px,calc(100% - 48px)); margin-inline:auto; }
.murasapo-hero { min-height:0; position:relative; aspect-ratio:1672 / 941; isolation:isolate; display:grid; align-items:center; background:#111; }.murasapo-hero::before { content:""; position:absolute; inset:0; z-index:-2; background:#111 center / contain no-repeat var(--murasapo-hero); }.murasapo-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(8,9,11,.12),rgba(8,9,11,0) 65%); }
.murasapo-hero__copy { max-width:660px; padding:clamp(28px,5vw,72px) 0; }.murasapo-hero__eyebrow { margin:0 0 12px; color:var(--mh-pink); font-weight:700; font-size:.83rem; letter-spacing:.16em; }.murasapo-hero h1 { margin:0; color:#fff; font-family:"Hiragino Mincho ProN","Yu Mincho",serif; font-size:clamp(2.2rem,5.1vw,5.1rem); font-weight:400; letter-spacing:.055em; line-height:1.27; text-shadow:0 2px 20px rgba(0,0,0,.4); }.murasapo-hero h1 strong { color:var(--mh-pink); font-weight:inherit; }.murasapo-hero__description { margin:24px 0 0; color:#f1eff0; font-family:"Hiragino Mincho ProN","Yu Mincho",serif; font-size:clamp(.92rem,1.6vw,1.22rem); letter-spacing:.04em; }
.murasapo-actions { display:flex; flex-wrap:wrap; gap:16px; margin-top:28px; }.murasapo-button { min-width:184px; min-height:50px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.72); border-radius:7px; padding:10px 22px; font-weight:700; transition:transform .2s ease,background-color .2s ease; }.murasapo-button:hover,.murasapo-button:focus-visible { transform:translateY(-2px); }.murasapo-button--primary { border-color:var(--mh-pink); background:var(--mh-pink); color:#20151a; }.murasapo-button--secondary:hover,.murasapo-button--secondary:focus-visible { background:rgba(255,255,255,.12); }
.murasapo-section { padding:46px 0 10px; }.murasapo-section--latest { padding-bottom:58px; }.murasapo-heading { display:flex; align-items:baseline; gap:22px; margin:0 0 20px; color:#fff; font-family:"Hiragino Mincho ProN","Yu Mincho",serif; font-size:clamp(1.55rem,2.65vw,2.2rem); font-weight:400; letter-spacing:.07em; line-height:1.3; }.murasapo-heading::after { content:""; flex:1; height:1px; background:var(--mh-line); }.murasapo-section__head { display:flex; align-items:baseline; gap:18px; }.murasapo-section__head .murasapo-heading { flex:1; }.murasapo-all-link { flex:none; color:var(--mh-muted); font-size:.82rem; white-space:nowrap; }.murasapo-all-link::after { content:"›"; padding-left:.45em; color:var(--mh-pink); font-size:1.25em; }.murasapo-all-link:hover,.murasapo-all-link:focus-visible { color:var(--mh-pink); }
.murasapo-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }.murasapo-card { min-width:0; }.murasapo-card__image { position:relative; display:block; overflow:hidden; border-radius:5px; aspect-ratio:1.58; background:#2a2c30; }.murasapo-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }.murasapo-card:hover .murasapo-card__image img { transform:scale(1.04); }.murasapo-card__category { position:absolute; left:10px; bottom:10px; max-width:calc(100% - 20px); overflow:hidden; color:#fff; background:rgba(188,56,105,.93); border-radius:999px; padding:3px 10px; font-size:.73rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.murasapo-card__title { display:-webkit-box; margin:9px 2px 0; overflow:hidden; color:#fff; font-family:"Hiragino Mincho ProN","Yu Mincho",serif; font-size:clamp(.98rem,1.4vw,1.1rem); font-weight:400; letter-spacing:.025em; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.murasapo-card__meta { display:flex; align-items:center; gap:8px; margin:8px 2px 0; color:var(--mh-muted); font-size:.72rem; }.murasapo-card__tag { display:inline-block; overflow:hidden; max-width:62%; border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:2px 8px; text-overflow:ellipsis; white-space:nowrap; }.murasapo-card time { margin-left:auto; white-space:nowrap; }
.murasapo-card--fixed .murasapo-card__title,
.murasapo-card--fixed .murasapo-card__title a,
.murasapo-card--fixed .murasapo-card__title a:visited { color:#fff !important; }.murasapo-card--fixed .murasapo-card__title a:hover,
.murasapo-card--fixed .murasapo-card__title a:focus-visible { color:#ffb2ca !important; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.2em; }
.murasapo-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.murasapo-category { min-height:98px; display:grid; grid-template-columns:56px 1fr 18px; align-items:center; gap:14px; border:1px solid rgba(255,255,255,.15); border-radius:6px; padding:14px 16px; background:linear-gradient(115deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); transition:border-color .2s ease,background-color .2s ease; }.murasapo-category:hover,.murasapo-category:focus-visible { border-color:var(--mh-pink); background-color:rgba(243,138,174,.08); }.murasapo-category__icon { width:54px; height:54px; display:grid; place-items:center; }.murasapo-category__icon img { width:100%; height:100%; }.murasapo-category__title { display:block; color:#fff; font-family:"Hiragino Mincho ProN","Yu Mincho",serif; font-size:1.06rem; }.murasapo-category__description { display:block; color:var(--mh-muted); font-size:.76rem; line-height:1.45; }.murasapo-category__arrow { color:var(--mh-pink); font-size:1.75rem; font-weight:300; }
.murasapo-tags { display:flex; flex-wrap:wrap; gap:10px; }.murasapo-tag { border:1px solid rgba(243,138,174,.8); border-radius:999px; padding:6px 14px; color:#ffd5e2; font-size:.84rem; line-height:1.2; transition:color .2s ease,background-color .2s ease; }.murasapo-tag:hover,.murasapo-tag:focus-visible { background:var(--mh-pink); color:#29161e; }.murasapo-empty { margin:0; padding:28px; border:1px dashed rgba(255,255,255,.25); border-radius:5px; color:var(--mh-muted); text-align:center; }
@media (max-width:959px) { .murasapo-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:599px) { .murasapo-shell { width:min(100% - 32px,560px); }.murasapo-hero { display:block; aspect-ratio:auto; padding-top:56.28%; }.murasapo-hero::before { inset:0 auto auto 0; width:100%; aspect-ratio:1672 / 941; height:auto; background-size:100% 100%; background-position:top center; }.murasapo-hero::after { display:none; }.murasapo-hero__copy { max-width:none; padding:24px 0 36px; text-align:left; }.murasapo-hero h1 { font-size:clamp(2.1rem,10vw,3.1rem); color:#fff; }.murasapo-hero__description { margin-top:16px; font-size:.94rem; line-height:1.7; }.murasapo-actions { gap:10px; margin-top:22px; }.murasapo-button { flex:1 1 145px; min-width:0; min-height:48px; padding-inline:10px; font-size:.88rem; }.murasapo-section { margin:0 !important; padding:32px 0 !important; background:var(--mh-bg) !important; }.murasapo-section--latest { padding-bottom:42px !important; }.murasapo-heading { gap:12px; margin:0 0 16px !important; font-size:1.42rem; }.murasapo-section__head { gap:10px; margin:0 !important; }.murasapo-all-link { font-size:.72rem; }.murasapo-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 12px; margin:0 !important; padding:0 !important; }.murasapo-card-grid--fixed { grid-template-columns:1fr; gap:22px; }.murasapo-card { margin:0 !important; padding:0 !important; }.murasapo-card__title { margin-top:7px; font-size:.94rem; }.murasapo-card__meta { align-items:flex-start; flex-wrap:wrap; gap:4px; margin-top:6px; font-size:.65rem; }.murasapo-card__tag { max-width:100%; }.murasapo-card time { width:100%; margin-left:0; }.murasapo-category-grid { grid-template-columns:1fr; gap:8px; margin:0 !important; padding:0 !important; }.murasapo-category { min-height:77px !important; height:auto !important; grid-template-columns:44px 1fr 18px; margin:0 !important; padding:10px 13px !important; }.murasapo-category__icon { width:42px; height:42px; }.murasapo-tags { gap:8px; }.murasapo-tag { padding:6px 11px; font-size:.78rem; } }
@media (prefers-reduced-motion:reduce) { .murasapo-home *,.murasapo-home *::before,.murasapo-home *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; } }
