/*
 * PACHISLO HIROBA / Dark Archive
 * AFFINGER7-compatible additive design. Remove plugin to revert colors.
 * Color tokens: ink #0b0d12, panel #151922, gold #e2b86e, text #edf0f5.
 */
:root { --ph-ink: #0b0d12; --ph-panel: #151922; --ph-panel-light: #1d222d; --ph-line: #303744; --ph-text: #edf0f5; --ph-muted: #a5adbb; --ph-gold: #e2b86e; --ph-gold-bright: #f4cf88; }
body.phiro-site { background:var(--ph-ink) !important; color:var(--ph-text); font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif; font-size:16px; line-height:1.85; -webkit-font-smoothing:antialiased; }
body.phiro-site #wrapper, body.phiro-site #content, body.phiro-site #contentInner, body.phiro-site #main, body.phiro-site .mainbox, body.phiro-site #side { background-color:transparent; }
body.phiro-site #header, body.phiro-site #header-in, body.phiro-site header#header { background-color:#11151d !important; color:var(--ph-text); }
body.phiro-site #header { border-bottom:1px solid var(--ph-line); }
body.phiro-site #header a, body.phiro-site #header a:visited { color:var(--ph-text); text-decoration:none; }
body.phiro-site #header a:hover { color:var(--ph-gold-bright); }
body.phiro-site .st-header-logo, body.phiro-site .sitename, body.phiro-site #header .sitename, body.phiro-site #header .sitename a { font-weight:900; letter-spacing:.055em; }
body.phiro-site #footer, body.phiro-site footer#footer { background:#10131a !important; color:var(--ph-muted); border-top:1px solid var(--ph-line); }
body.phiro-site #footer a { color:var(--ph-text); }
body.phiro-site #s-navi, body.phiro-site #s-navi dl, body.phiro-site .st-footer, body.phiro-site #gnav { background-color:#161b24; }
body.phiro-site a { transition:color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
body.phiro-site #main a:not(.phiro a), body.phiro-site #side a { color:var(--ph-gold-bright); }
body.phiro-site #main, body.phiro-site #main p, body.phiro-site #main li { color:var(--ph-text); }
body.phiro-site #main h1, body.phiro-site #main h2, body.phiro-site #main h3, body.phiro-site #side h4 { color:var(--ph-text); }
body.phiro-site #main :is(input,textarea,select):not(.phiro input):not(.phiro select), body.phiro-site #side input { background-color:#161b24; color:var(--ph-text); border:1px solid var(--ph-line); }
body.phiro-site article :is(table,td,th), body.phiro-site #main table :is(td,th) { border-color:var(--ph-line); }
body.phiro-site #side .st-widgets-box, body.phiro-site #side .widget { color:var(--ph-text); background:var(--ph-panel); }
body.phiro-site:not(.phiro-front) #main > article, body.phiro-site:not(.phiro-front) #main .st-post, body.phiro-site:not(.phiro-front) #main .post { background-color:var(--ph-panel) !important; }
body.phiro-site:not(.phiro-front) #main h2 { background-color:#242c38 !important; border-left:4px solid var(--ph-gold); }
body.phiro-site:not(.phiro-front) #main h3 { background-color:transparent !important; border-bottom-color:var(--ph-line); }
/* Scoped typography and components: no dependency on AFFINGER internal DOM. */
.phiro, .phiro * { box-sizing:border-box; }
.phiro { color:var(--ph-text); max-width:1180px; margin:0 auto; padding:0 16px 72px; font-family:inherit; letter-spacing:.012em; }
.phiro a { text-decoration:none !important; color:inherit !important; }
.phiro a:hover { color:var(--ph-gold-bright) !important; }
.phiro .phiro-eyebrow { font-size:11px !important; font-weight:800; letter-spacing:.24em; color:var(--ph-gold); margin:0 0 14px; line-height:1.5; }
.phiro-hero { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:28px; align-items:center; min-height:402px; position:relative; border:1px solid #343c47; border-top:3px solid var(--ph-gold); background:radial-gradient(ellipse at 87% 43%, rgba(188,113,50,.15), transparent 45%), linear-gradient(126deg,#1b202a 0%,#10141b 65%,#181c23 100%); padding:55px 50px; overflow:hidden; box-shadow:0 18px 60px rgba(0,0,0,.22); }
.phiro-hero::after { content:'07'; pointer-events:none; position:absolute; right:242px; bottom:-79px; font-size:250px; font-weight:950; letter-spacing:-.1em; line-height:1; color:rgba(255,255,255,.018); }
.phiro-signal { display:inline-block; vertical-align:middle; width:8px; height:8px; border-radius:50%; background:var(--ph-gold); box-shadow:0 0 12px rgba(226,184,110,.55); margin-right:10px; }
.phiro-eyebrow__right { color:#939ead; margin-left:13px; }
.phiro-hero__copy { position:relative; z-index:2; }
.phiro .phiro-hero__title { color:#f9f9f7 !important; margin:0 0 22px !important; font-size:clamp(42px,5.5vw,70px) !important; line-height:1.15 !important; letter-spacing:.09em; font-weight:950; background:none; padding:0; border:0; }
.phiro-hero__title > span { color:var(--ph-gold); }
.phiro .phiro-hero__title > small { display:block; font-size:clamp(15px,1.65vw,20px); line-height:1.6; letter-spacing:.14em; color:#cbd2dc; font-weight:650; margin-top:17px; }
.phiro .phiro-hero__lead { font-size:14px; color:#c5cbd5 !important; line-height:2.1; margin:0 0 24px; }
.phiro-hero__actions { display:flex; flex-wrap:wrap; gap:10px; }
.phiro .phiro-button { display:inline-flex; align-items:center; justify-content:space-between; gap:15px; padding:11px 19px; min-height:46px; font-size:13px; font-weight:800; border:1px solid #77808e; border-radius:3px; color:#fff !important; }
.phiro .phiro-button--primary { background:var(--ph-gold); border-color:var(--ph-gold); color:#10131a !important; }
.phiro .phiro-button--primary:hover { color:#10131a !important; background:var(--ph-gold-bright); }
.phiro .phiro-button--line:hover { border-color:var(--ph-gold); }
.phiro .phiro-hero__footnote { margin:32px 0 0; font-size:9px; letter-spacing:.18em; color:#7d8694 !important; }
.phiro-machine { justify-self:center; width:280px; height:280px; border:7px solid #2b313c; border-radius:21px; padding:18px 14px; background:linear-gradient(160deg,#3a3534,#111822 49%,#333742 100%); box-shadow:0 10px 0 #090b10,0 18px 40px rgba(0,0,0,.55),inset 0 0 0 1px #7b684e; transform:rotate(2deg); }
.phiro-machine__top { display:block; text-align:center; margin-bottom:14px; font-weight:900; font-size:12px; letter-spacing:.2em; color:var(--ph-gold); }
.phiro-machine__screen { display:flex; justify-content:space-around; align-items:center; gap:5px; padding:13px 8px; height:142px; border-radius:7px; border:7px solid #11131a; background:linear-gradient(#f8f7f2,#dbdfdc); box-shadow:inset 0 0 13px #969a98,0 0 0 2px #9e7c50; }
.phiro-machine__screen span { flex:1; display:flex; align-items:center; justify-content:center; background:linear-gradient(#fff,#e9ecea); border:1px solid #c9c5bd; height:105px; color:#b72d30; font-size:54px; font-weight:1000; font-family:Georgia,serif; line-height:1; text-shadow:2px 2px 0 #562022; }
.phiro-machine__screen span:nth-child(2) { color:#181c20; font-family:Arial,sans-serif; font-size:20px; font-weight:950; text-shadow:none; }
.phiro-machine__bottom { display:flex; justify-content:space-between; padding:19px 8px 0; font-size:9px; letter-spacing:.13em; color:#bec1ca; }
.phiro-machine__lamp { color:#eab55e; text-shadow:0 0 7px #d78b42; }
.phiro-marquee { display:flex; justify-content:center; flex-wrap:wrap; gap:15px; padding:12px 8px; font-size:10px; font-weight:800; letter-spacing:.19em; color:#a6aebc; border-bottom:1px solid var(--ph-line); }
.phiro-marquee span:nth-child(even) { color:var(--ph-gold); }
.phiro-section { padding-top:54px; }
.phiro-section__top { display:flex; align-items:end; justify-content:space-between; gap:15px; margin-bottom:21px; padding-bottom:16px; border-bottom:1px solid var(--ph-line); }
.phiro .phiro-section__top h2 { font-size:28px !important; letter-spacing:.06em; line-height:1.4; font-weight:900; color:#f6f7f8 !important; background:none; border:0; padding:0 !important; margin:0 !important; }
.phiro-section__sub { font-size:11px; color:#8793a4; letter-spacing:.12em; white-space:nowrap; }
.phiro-categories { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.phiro .phiro-category { display:flex; position:relative; flex-direction:column; align-items:flex-start; min-height:165px; padding:18px 15px; background:linear-gradient(160deg,#1c222e,#141923); border:1px solid #303845; overflow:hidden; }
.phiro-category:hover { border-color:var(--ph-gold); transform:translateY(-3px); background:linear-gradient(160deg,#26242a,#191d25); }
.phiro-category__num { font-size:10px; letter-spacing:.13em; color:#9ca6b4; }
.phiro .phiro-category strong { margin-top:auto; font-size:clamp(22px,2.4vw,31px); line-height:1.3; letter-spacing:.05em; color:#f9f8f5; font-weight:900; }
.phiro .phiro-category__eng { font-size:8px; font-weight:800; color:var(--ph-gold); letter-spacing:.09em; margin-top:5px; }
.phiro-category__arrow { position:absolute; right:15px; top:11px; color:var(--ph-gold); font-size:19px; }
.phiro-search { display:flex; width:100%; gap:8px; padding:14px; background:#171d27; border:1px solid #303846; }
.phiro-search input, .phiro-search select { height:49px; min-height:49px; border:1px solid #404a58 !important; border-radius:2px !important; outline:none; font-family:inherit; color:#eff3f8 !important; background:#0e121a !important; font-size:14px; }
.phiro-search input { flex:1 1 360px; min-width:0; padding:0 16px !important; }
.phiro-search input::placeholder { color:#8b96a6; opacity:1; }
.phiro-search select { flex:0 0 190px; padding:0 12px !important; }
.phiro-search :is(input,select):focus-visible { outline:2px solid var(--ph-gold); outline-offset:2px; }
.phiro-search button { flex:0 0 auto; min-width:125px; border:0 !important; border-radius:2px; background:var(--ph-gold) !important; color:#131820 !important; padding:10px 15px !important; cursor:pointer; font-size:13px; font-family:inherit; font-weight:900; }
.phiro-search button:hover { background:var(--ph-gold-bright) !important; }
.phiro-pills { display:flex; flex-wrap:wrap; gap:7px; padding:15px 0 23px; }
.phiro .phiro-pills a { display:inline-block; padding:5px 17px; background:#171c25; border:1px solid #333b49; border-radius:100px; font-size:12px; font-weight:700; color:#b6beca !important; }
.phiro .phiro-pills .is-active, .phiro .phiro-pills a:hover { color:#151820 !important; background:var(--ph-gold); border-color:var(--ph-gold); }
.phiro-list-info { display:flex; justify-content:space-between; align-items:center; color:#909bab; font-size:10px; letter-spacing:.18em; font-weight:750; border-bottom:1px solid #303846; padding:0 0 12px; margin-bottom:18px; }
.phiro-list-info strong { color:var(--ph-gold); }
.phiro-posts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.phiro-post { min-width:0; border:1px solid #303947; background:#171c25; transition:border-color .2s ease,transform .2s ease; overflow:hidden; }
.phiro-post:hover { border-color:#ab925f; transform:translateY(-3px); }
.phiro .phiro-post__image { display:block; aspect-ratio:16/10; background:linear-gradient(145deg,#29313d,#10141a); overflow:hidden; }
.phiro-post__image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease; }
.phiro-post:hover img { transform:scale(1.03); }
.phiro-post__placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:repeating-linear-gradient(135deg,rgba(255,255,255,.024) 0 1px,transparent 1px 14px),radial-gradient(circle at 50% 30%,#454037,#1b222d 69%); }
.phiro-post__placeholder span { font-size:65px; color:#daa657; font-weight:950; font-family:Georgia,serif; line-height:1; text-shadow:4px 4px 0 #7d4c28; }
.phiro-post__placeholder small { color:#e8dfcb; letter-spacing:.22em; font-size:10px; margin-top:11px; }
.phiro-post__body { padding:19px 19px 13px; }
.phiro-post__tags { display:flex; gap:5px; min-height:25px; }
.phiro-post__tags span { display:inline-block; color:#eecb89; background:#373225; padding:2px 8px; font-size:10px; border-radius:2px; line-height:1.7; }
.phiro .phiro-post h3 { font-size:19px !important; font-weight:900; line-height:1.6; color:#f6f7f8 !important; min-height:3.2em; border:0; background:none; margin:9px 0 9px !important; padding:0 !important; }
.phiro .phiro-post h3 a { color:inherit !important; }
.phiro .phiro-post h3 a:hover { color:var(--ph-gold-bright) !important; }
.phiro .phiro-post__excerpt { font-size:12px; color:#9faab9 !important; line-height:1.8; margin:0 0 18px; min-height:3.6em; }
.phiro-post__foot { display:flex; justify-content:space-between; border-top:1px solid #303846; align-items:center; padding-top:10px; gap:6px; font-size:10px; color:#929eae; letter-spacing:.04em; }
.phiro .phiro-post__foot a { color:var(--ph-gold) !important; font-weight:850; letter-spacing:.1em; }
.phiro-empty { padding:55px 25px; border:1px dashed #3b4554; text-align:center; background:#151a22; }
.phiro-empty span { font-size:11px; font-weight:800; letter-spacing:.18em; color:var(--ph-gold); }
.phiro .phiro-empty h3 { font-size:22px; margin:15px 0 10px !important; color:var(--ph-text) !important; }
.phiro .phiro-empty p { font-size:13px; color:var(--ph-muted) !important; }
.phiro-pagination { display:flex; justify-content:center; gap:7px; margin:25px 0 10px; }
.phiro .phiro-pagination a { display:flex; align-items:center; justify-content:center; min-width:41px; min-height:41px; border:1px solid var(--ph-line); color:#ddd !important; background:#171c25; font-weight:800; }
.phiro .phiro-pagination a.is-current { background:var(--ph-gold); color:#12151c !important; border-color:var(--ph-gold); }
.phiro-endcap { display:flex; align-items:center; gap:20px; justify-content:space-between; border-top:1px solid #384150; border-bottom:1px solid #384150; margin-top:58px; padding:28px 8px; }
.phiro-endcap span { font-size:10px; color:var(--ph-gold); letter-spacing:.15em; }
.phiro-endcap strong { font-size:19px; letter-spacing:.06em; }
.phiro .phiro-endcap a { font-size:12px; color:#d9b878 !important; }
/* Front page layout: remove AFFINGER sidebar only on the generated front page. */
body.phiro-front #content, body.phiro-front #contentInner, body.phiro-front #main, body.phiro-front main { box-sizing:border-box; }
body.phiro-front #content { max-width:1220px !important; width:100% !important; }
body.phiro-front #contentInner { width:100% !important; max-width:none !important; display:block !important; float:none !important; }
body.phiro-front #main, body.phiro-front #contentInner > main { width:100% !important; max-width:none !important; margin-left:auto !important; margin-right:auto !important; float:none !important; background:transparent !important; }
body.phiro-front #side { display:none !important; }
body.phiro-front h1.entry-title, body.phiro-front .entry-title, body.phiro-front .st-post-header .entry-title { display:none !important; }
body.phiro-front .phiro .phiro-hero__title { display:block !important; }
body.phiro-front #main > article, body.phiro-front .st-post { background:transparent !important; }
@media (max-width:1050px) {
 .phiro-hero { grid-template-columns:minmax(0,1fr) 230px; padding:40px 34px; }
 .phiro-machine { transform:scale(.82) rotate(2deg); transform-origin:center; }
 .phiro-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:700px) {
 body.phiro-site { font-size:15px; }
 .phiro { padding:0 12px 42px; }
 .phiro-hero { min-height:0; display:block; padding:36px 21px 30px; }
 .phiro-machine { display:none; }
 .phiro-hero::after { right:-10px; bottom:-5px; font-size:130px; }
 .phiro .phiro-hero__title { font-size:clamp(37px,10.5vw,57px) !important; }
 .phiro .phiro-hero__title > small { font-size:14px; }
 .phiro .phiro-hero__lead { font-size:12px; }
 .phiro-hero__footnote { display:none; }
 .phiro-eyebrow__right { display:none; }
 .phiro-marquee { gap:8px; font-size:8px; line-height:1.7; }
 .phiro-section { padding-top:38px; }
 .phiro .phiro-section__top h2 { font-size:23px !important; }
 .phiro-section__sub { font-size:9px; }
 .phiro-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .phiro .phiro-category { min-height:130px; padding:14px; }
 .phiro .phiro-category strong { font-size:24px; }
 .phiro-search { flex-wrap:wrap; padding:10px; gap:7px; }
 .phiro-search input { flex:1 1 100%; }
 .phiro-search select { flex:1 1 48%; min-width:0; }
 .phiro-search button { flex:1 1 40%; min-width:0; }
 .phiro-posts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .phiro-post__body { padding:12px; }
 .phiro .phiro-post h3 { font-size:15px !important; }
 .phiro .phiro-post__excerpt { display:none; }
 .phiro-post__foot { font-size:9px; }
 .phiro-post__placeholder span { font-size:42px; }
 .phiro-endcap { flex-wrap:wrap; justify-content:center; gap:10px; text-align:center; }
}
@media (max-width:370px) {
 .phiro-posts { grid-template-columns:1fr; }
 .phiro .phiro-button { width:100%; }
 .phiro-section__sub { display:none; }
}
@media (prefers-reduced-motion: reduce) { .phiro *, .phiro *::before, .phiro *::after { transition:none !important; transform:none !important; } }


/* 1.1 neon red upgrade: accents + motion that honor reduced-motion preferences. */
:root { --ph-red:#fb3047; --ph-red-bright:#ff6372; --ph-cyan:#46d7d8; --ph-lime:#c4ef61; }
body.phiro-site { background:#08090d !important; }
body.phiro-site #header,body.phiro-site #header-in,body.phiro-site header#header {background-color:#0d0e14 !important;}
body.phiro-site #header { border-bottom-color:rgba(251,48,71,.6); }
body.phiro-site #header a:hover { color:var(--ph-red-bright); }
body.phiro-site:not(.phiro-front) #main h2 { border-left-color:var(--ph-red); }
.phiro { --ph-line:#34303c; --ph-panel:#16131c; }
.phiro-hero { grid-template-columns:minmax(0,1fr) 350px; min-height:485px; padding:50px 46px; border-color:#4d2634; border-top:3px solid var(--ph-red); background:radial-gradient(ellipse at 85% 34%,rgba(247,45,78,.25),transparent 44%),radial-gradient(circle at 28% 110%,rgba(99,40,94,.24),transparent 47%),linear-gradient(120deg,#1f151f 0%,#0d1018 68%,#21151b 100%); box-shadow:0 22px 67px rgba(0,0,0,.32),inset 0 0 0 1px rgba(255,255,255,.025); isolation:isolate; }
.phiro-hero:before { content:""; position:absolute; inset:-50%; z-index:-1; opacity:.20; pointer-events:none; background:repeating-linear-gradient(109deg,transparent 0 76px,rgba(255,255,255,.036) 77px 78px); animation:ph-grid-pan 20s linear infinite; }
.phiro-hero::after { content:'777'; color:rgba(255,75,91,.047); right:250px; bottom:-60px; font-size:210px; }
.phiro-signal {background:var(--ph-red);box-shadow:0 0 8px var(--ph-red),0 0 20px rgba(251,48,71,.45);animation:ph-signal 2.2s ease-in-out infinite;}
.phiro .phiro-eyebrow { color:var(--ph-red-bright); }
.phiro .phiro-hero__title { font-size:clamp(43px,5.4vw,67px) !important; margin-bottom:15px !important; text-shadow:0 4px 25px rgba(0,0,0,.24); }
.phiro-hero__title > span { color:var(--ph-red-bright); text-shadow:0 0 24px rgba(244,48,72,.35); }
.phiro .phiro-hero__title > small {font-size:clamp(14px,1.6vw,19px);margin-top:20px;line-height:1.8;letter-spacing:.035em;color:#ffe3ad;}
.phiro .phiro-hero__lead { font-size:clamp(12px,1.18vw,15px); color:#e3e4ec !important; line-height:2.05; max-width:620px; margin-bottom:25px; }
.phiro .phiro-button { border-radius:8px; transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease; }
.phiro .phiro-button:hover {transform:translateY(-3px);}
.phiro .phiro-button--primary {color:#fff !important;border-color:#ff5265;background:linear-gradient(108deg,#cf172f,#ff3c58) !important;box-shadow:0 8px 24px rgba(231,31,63,.25);}
.phiro .phiro-button--primary:hover {color:#fff !important;background:linear-gradient(108deg,#f62948,#ff6378) !important;box-shadow:0 10px 25px rgba(231,31,63,.48);}
.phiro .phiro-button--line {border-color:#6c4650;}
.phiro .phiro-button--line:hover {border-color:var(--ph-red-bright);}
.phiro-machine {position:relative;align-self:center;justify-self:center;width:min(100%,350px);height:auto;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none; transform:translateZ(0);animation:ph-float 5s ease-in-out infinite;}
.phiro-machine__art {width:100%;max-height:420px;height:auto;object-fit:contain;filter:drop-shadow(0 0 20px rgba(247,42,71,.19));}
.phiro-machine__spark {position:absolute;z-index:2;display:block;width:7px;height:7px;background:#ffde87;border-radius:50%;box-shadow:0 0 15px 4px rgba(255,132,79,.65);animation:ph-signal 2s ease-in-out infinite;pointer-events:none;}
.phiro-machine__spark--one {top:26%;right:11%;}
.phiro-machine__spark--two {bottom:32%;left:9%;animation-delay:1s;}
.phiro-marquee {position:relative;justify-content:flex-start;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;background:#140f17;border-bottom:1px solid #4b2835;padding:13px 20px;gap:23px;font-weight:900;color:#d8c5cc;}
.phiro-marquee span:nth-child(2n) {color:var(--ph-red-bright);}
.phiro-marquee span {display:inline-block;flex:none;animation:ph-ticker 17s linear infinite;}
.phiro-marquee:hover span {animation-play-state:paused;}
.phiro-section__top {border-bottom-color:#51414c;}
.phiro .phiro-section__top h2:before {content:"";display:inline-block;width:6px;height:.9em;margin-right:12px;vertical-align:-.03em;border-radius:2px;background:var(--ph-red);box-shadow:0 0 13px rgba(255,59,81,.55);}
.phiro .phiro-category {border:1px solid #423440;border-top:3px solid var(--ph-red);border-radius:9px;background:linear-gradient(155deg,#221720,#15151d);box-shadow:0 4px 15px rgba(0,0,0,.12);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;}
.phiro .phiro-category:hover {transform:translateY(-6px);border-color:#fc5970;box-shadow:0 12px 24px rgba(159,22,48,.2);}
.phiro-category:nth-child(2) {border-top-color:var(--ph-gold);}
.phiro-category:nth-child(3) {border-top-color:#c179ff;}
.phiro-category:nth-child(4) {border-top-color:var(--ph-cyan);}
.phiro-category:nth-child(5) {border-top-color:var(--ph-lime);}
.phiro .phiro-category__eng {color:var(--ph-red-bright);}
.phiro-category:nth-child(2) .phiro-category__eng {color:var(--ph-gold);}
.phiro-category:nth-child(3) .phiro-category__eng {color:#c99bff;}
.phiro-category:nth-child(4) .phiro-category__eng {color:var(--ph-cyan);}
.phiro-category:nth-child(5) .phiro-category__eng {color:var(--ph-lime);}
.phiro-category__arrow {color:var(--ph-red-bright);transition:transform .25s ease;}
.phiro-category:hover .phiro-category__arrow {transform:translate(3px,-3px);}
.phiro-search {border-color:#46323e;background:linear-gradient(120deg,#20131d,#14151d);border-radius:10px;}
.phiro-search input,.phiro-search select {border-radius:6px !important;}
.phiro-search button {background:var(--ph-red) !important;color:white !important;border-radius:6px;}
.phiro-search button:hover {background:var(--ph-red-bright) !important;}
.phiro-search :is(input,select):focus-visible {outline-color:var(--ph-red);}
.phiro .phiro-pills .is-active,.phiro .phiro-pills a:hover {background:var(--ph-red);border-color:var(--ph-red);color:white !important;}
.phiro .phiro-pills a {transition:transform .2s ease,background .2s ease;}
.phiro .phiro-pills a:hover {transform:translateY(-2px);}
.phiro-post {border-color:#3d3541;border-radius:9px;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;}
.phiro-post:hover {border-color:#ef405c;transform:translateY(-6px);box-shadow:0 12px 30px rgba(220,28,65,.18);}
.phiro-post__image {position:relative;}
.phiro-post__image:after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 34%,rgba(255,255,255,.12) 50%,transparent 64%);transform:translateX(-180%);transition:transform .65s ease;}
.phiro-post:hover .phiro-post__image:after {transform:translateX(180%);}
.phiro-post__tags span {background:#4b1c2a;color:#ff9faf;}
.phiro .phiro-post__foot a {color:var(--ph-red-bright) !important;}
.phiro .phiro-post h3 a:hover {color:var(--ph-red-bright) !important;}
.phiro .phiro-pagination a.is-current {background:var(--ph-red);border-color:var(--ph-red);color:white !important;}
.phiro-endcap {border-color:#5a2d38;background:linear-gradient(90deg,rgba(152,20,51,.10),transparent,rgba(203,143,48,.10));padding-left:15px;padding-right:15px;}
.phiro .phiro-endcap a {color:var(--ph-red-bright) !important;}
.phiro [data-phiro-reveal] {opacity:1;}
.phiro.phiro-js-motion [data-phiro-reveal]:not(.phiro-is-visible) {opacity:0;transform:translateY(18px);}
.phiro [data-phiro-reveal] {transition:opacity .6s ease,transform .6s ease;}
@keyframes ph-float {0%,100%{transform:translateY(0) rotate(1deg)}50%{transform:translateY(-11px) rotate(-1deg)}}
@keyframes ph-signal {0%,100%{opacity:.7;box-shadow:0 0 5px rgba(251,48,71,.5)}50%{opacity:1;box-shadow:0 0 15px rgba(255,74,100,.9)}}
@keyframes ph-grid-pan {from{transform:translateX(-6%)}to{transform:translateX(6%)}}
@keyframes ph-ticker {0%{transform:translateX(0)}100%{transform:translateX(-65px)}}
/* Mobile nav: own content, not AFFINGER internal drawers. */
.phiro-mnav {display:none;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Noto Sans JP',Meiryo,sans-serif;}
.phiro-mnav * {box-sizing:border-box;}
.phiro-mnav [hidden] {display:none !important;}
@media (max-width:600px) {
 /* AFFINGER native mobile drawer may be empty or white; replace the mobile bar without editing theme settings. */
 body.phiro-site #s-navi {display:none !important;}
 body.phiro-site {padding-top:58px !important;}
 .phiro-mnav {display:block !important;position:fixed;left:0;right:0;top:0;z-index:2147482000;color:#fff;}
 .phiro-mnav__bar {height:58px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:rgba(14,12,18,.98);border-bottom:2px solid #ee2d48;box-shadow:0 6px 22px rgba(0,0,0,.35);}
 .phiro-mnav__brand {display:flex;align-items:center;gap:10px;font-weight:900;font-size:16px;letter-spacing:.045em;text-decoration:none !important;color:#fff !important;}
 .phiro-mnav__brand strong {color:#ff526d;}
 .phiro-mnav__777 {display:flex;align-items:center;justify-content:center;min-width:40px;height:32px;color:#ffd36b;background:#2b121e;border:1px solid #6e2337;border-radius:5px;letter-spacing:-.06em;font-size:17px;font-family:Georgia,serif;box-shadow:0 0 10px rgba(235,38,70,.28);}
 .phiro-mnav__777 span {color:#fd334a;}
 .phiro-mnav__toggle {height:43px;min-width:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #743447 !important;border-radius:7px;background:#21141e !important;color:white !important;cursor:pointer;padding:4px !important;}
 .phiro-mnav__toggle-label {font-size:9px;line-height:1.1;letter-spacing:.07em;color:#ffd3d9;}
 .phiro-mnav__hamburger {width:20px;height:15px;display:flex;flex-direction:column;justify-content:space-between;}
 .phiro-mnav__hamburger i {display:block;width:20px;height:2px;background:#fff;border-radius:1px;transition:transform .25s ease,opacity .25s ease;}
 .phiro-mnav[data-open="true"] .phiro-mnav__hamburger i:nth-child(1) {transform:translateY(6px) rotate(45deg)}
 .phiro-mnav[data-open="true"] .phiro-mnav__hamburger i:nth-child(2) {opacity:0}
 .phiro-mnav[data-open="true"] .phiro-mnav__hamburger i:nth-child(3) {transform:translateY(-7px) rotate(-45deg)}
 .phiro-mnav__backdrop {position:fixed;inset:58px 0 0;background:rgba(1,1,4,.67);backdrop-filter:blur(3px);}
 .phiro-mnav__panel {position:fixed;top:58px;right:0;width:min(88vw,360px);max-height:calc(100dvh - 58px);overflow:auto;overscroll-behavior:contain;padding:22px 22px 32px;background:linear-gradient(165deg,#251320,#0d0d14 77%);border-left:1px solid #773045;box-shadow:-15px 20px 45px rgba(0,0,0,.5);animation:ph-menu-slide .23s ease-out;}
 .phiro-mnav__eyebrow,.phiro-mnav__foot {color:#ff8ca0;font-size:10px;letter-spacing:.16em;font-weight:800;margin:0 0 19px;}
 .phiro-mnav__home,.phiro-mnav__item {display:flex;align-items:center;text-decoration:none !important;color:#fff !important;border-bottom:1px solid #493341;min-height:55px;padding:10px 4px;font-size:19px;font-weight:850;gap:13px;}
 .phiro-mnav__home {justify-content:space-between;color:#ffdbb7 !important;font-size:16px;}
 .phiro-mnav__item span {color:#ff536b;font-size:11px;font-weight:700;letter-spacing:.1em;}
 .phiro-mnav__item b {color:#e2a3ac;font-size:17px;font-weight:400;margin-left:auto;}
 .phiro-mnav__home:focus-visible,.phiro-mnav__item:focus-visible,.phiro-mnav__toggle:focus-visible {outline:2px solid #fff;outline-offset:3px;}
 .phiro-mnav__search {margin-top:28px;}
 .phiro-mnav__search label {display:block;margin-bottom:7px;font-size:12px;color:#ff9eaf;font-weight:800;}
 .phiro-mnav__search div {display:flex;}
 .phiro-mnav__search input {min-width:0;flex:1 1 auto;background:#13131b !important;border:1px solid #72505a !important;color:#fff !important;border-radius:4px 0 0 4px !important;padding:10px !important;font-size:13px;}
 .phiro-mnav__search button {flex:0 0 auto;background:#ed2945 !important;color:#fff !important;border:0 !important;padding:10px !important;border-radius:0 4px 4px 0 !important;font-size:12px;font-weight:800;}
 .phiro-mnav__foot {margin:20px 0 0;color:#98717d;font-size:9px;}
 html.phiro-nav-open {overflow:hidden;}
 @keyframes ph-menu-slide {from{transform:translateX(15px);opacity:.55}to{transform:translateX(0);opacity:1}}
}
@media (max-width:1050px) and (min-width:701px) { .phiro-hero {grid-template-columns:minmax(0,1fr) 260px;} .phiro-machine {width:260px;transform:none;} }
@media (max-width:700px) {
 .phiro {padding:0 11px 48px;}
 .phiro-hero {display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:20px 18px 30px;gap:4px;}
 .phiro-machine {display:block;width:min(100%,235px);height:auto;order:-1;margin:-9px auto -10px;transform:none;animation:ph-float 6s ease-in-out infinite;}
 .phiro-machine__art {max-height:250px;}
 .phiro-machine__spark--one {top:21%;right:18%;}
 .phiro .phiro-hero__title {font-size:clamp(36px,10.1vw,51px) !important;}
 .phiro .phiro-hero__title > small {font-size:clamp(13px,3.4vw,16px);line-height:1.7;margin-top:14px;}
 .phiro .phiro-hero__lead {font-size:12px;line-height:1.95;overflow-wrap:anywhere;}
 .phiro-hero__actions {gap:7px;}
 .phiro .phiro-button {padding:10px 12px;font-size:12px;}
 .phiro-marquee {gap:14px;font-size:9px;justify-content:flex-start;padding:10px;}
 .phiro .phiro-category {min-height:130px;border-radius:7px;}
 .phiro .phiro-category strong {font-size:clamp(22px,5.6vw,25px);}
 .phiro-post {border-radius:7px;}
 .phiro .phiro-post h3 {font-size:15px !important;}
}
@media (max-width:370px){.phiro-machine {width:min(100%,205px);}.phiro-machine__art {max-height:220px;}}
@media (prefers-reduced-motion:reduce) {
 .phiro-machine,.phiro-signal,.phiro-hero:before,.phiro-marquee span,.phiro-mnav__panel {animation:none !important;}
 .phiro [data-phiro-reveal], .phiro.phiro-js-motion [data-phiro-reveal] {opacity:1 !important;transform:none !important;transition:none !important;}
 .phiro .phiro-category:hover,.phiro-post:hover {transform:none;}
}

@media (max-width:600px) {
 body.admin-bar.phiro-site .phiro-mnav {top:46px;}
 .phiro-mnav__panel {max-height:calc(100vh - 58px);max-height:calc(100dvh - 58px);}
 body.admin-bar.phiro-site .phiro-mnav__panel {top:104px;max-height:calc(100dvh - 104px);}
 body.admin-bar.phiro-site .phiro-mnav__backdrop {top:104px;}
}

/* v1.2.0 / MACHINE PHOTO ARCHIVE — responsive photographic surfaces. */
.phiro {max-width:1200px;--ph-red:#fa314f;--ph-gold:#f5c877;--ph-text:#f4f3f5;}
.phiro .phiro-section__top {margin-bottom:22px;padding-bottom:19px;}
.phiro .phiro-section__top h2 {font-size:clamp(25px,3vw,36px) !important;letter-spacing:.01em;}
.phiro-heading-dot {color:#ff415f;}
.phiro .phiro-section__intro {font-size:12px !important;line-height:1.9;color:#aab0bd !important;margin:7px 0 0;}
.phiro .phiro-section__top h2:before {height:.76em;vertical-align:-.015em;}
.phiro-hero {border-radius:13px 13px 0 0;background:radial-gradient(ellipse at 75% 54%,rgba(234,32,62,.27),transparent 44%),linear-gradient(110deg,#19121a,#100f17 55%,#23121b);box-shadow:0 26px 65px rgba(0,0,0,.36);}
.phiro-hero__copy:before {content:'ARCHIVE / SINCE THE GOOD OLD DAYS';display:inline-block;font-size:9px;letter-spacing:.18em;color:#f8ba7b;margin-bottom:15px;opacity:.76;}
.phiro .phiro-hero__title {letter-spacing:.055em;}
.phiro .phiro-hero__title > small {display:inline-block;margin-top:18px;padding:8px 12px;background:linear-gradient(90deg,rgba(238,48,79,.22),rgba(238,48,79,0));border-left:3px solid #fa3c59;}
.phiro .phiro-hero__lead {line-height:2.1;}
.phiro-machine__art {filter:drop-shadow(0 25px 30px rgba(0,0,0,.57)) drop-shadow(0 0 22px rgba(252,40,78,.2));}
.phiro-marquee {border-radius:0 0 8px 8px;}
/* Card photos: machines are the visual focal point. */
.phiro-categories {grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;}
.phiro .phiro-category {--ph-cat-accent:#ff4963;min-height:314px;height:314px;padding:0;border:1px solid #48424a;border-top:2px solid var(--ph-cat-accent);border-radius:9px;background:radial-gradient(ellipse at 50% 26%,#42303b 0%,#101019 73%);isolation:isolate;box-shadow:0 8px 24px rgba(0,0,0,.28);transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;}
.phiro .phiro-category:nth-child(2){--ph-cat-accent:#ffc86e;}
.phiro .phiro-category:nth-child(3){--ph-cat-accent:#c699ff;}
.phiro .phiro-category:nth-child(4){--ph-cat-accent:#48d8e2;}
.phiro .phiro-category:nth-child(5){--ph-cat-accent:#9fe78b;}
.phiro .phiro-category::before {content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(9,10,16,.12) 0%,transparent 38%,rgba(5,7,11,.10) 55%,#101015 83%,#111017 100%);}
.phiro .phiro-category::after {content:'';position:absolute;inset:-70% -150% 0;z-index:1;pointer-events:none;background:linear-gradient(105deg,transparent 44%,rgba(255,255,255,.08) 50%,transparent 56%);transform:translateX(-80%);transition:transform .8s ease;}
.phiro .phiro-category:hover {transform:translateY(-8px);border-color:var(--ph-cat-accent);box-shadow:0 17px 40px rgba(0,0,0,.44),0 0 29px rgba(241,48,80,.16);}
.phiro .phiro-category:hover::after {transform:translateX(90%);}
.phiro-category__photo {position:absolute;inset:0 0 76px;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none;}
.phiro-category__photo::before {content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 63%,color-mix(in srgb,var(--ph-cat-accent) 23%,transparent),transparent 62%);filter:blur(6px);}
.phiro-category__photo img {position:relative;width:100%;height:99%;max-width:210px;object-fit:contain;object-position:center center;mix-blend-mode:normal;filter:drop-shadow(0 14px 12px #000b) saturate(1.1) contrast(1.05);transition:transform .4s ease,filter .4s ease;}
.phiro .phiro-category:hover .phiro-category__photo img {transform:translateY(-5px) scale(1.065);filter:drop-shadow(0 18px 18px #000e) saturate(1.15);}
.phiro-category__num {position:relative;z-index:3;display:flex;align-items:center;gap:7px;padding:12px 13px;color:#f2eaf0;font-size:9px;font-weight:800;letter-spacing:.14em;text-shadow:0 1px 4px #07070b;}
.phiro-category__num i {width:6px;height:6px;border-radius:50%;background:var(--ph-cat-accent);box-shadow:0 0 8px var(--ph-cat-accent);}
.phiro-category__bottom {position:relative;z-index:3;margin-top:auto;width:100%;padding:17px 14px 15px;background:linear-gradient(0deg,#101017,rgba(16,16,23,.86));border-top:1px solid rgba(255,255,255,.08);}
.phiro .phiro-category strong {display:block;margin:0;color:#fff !important;font-size:clamp(22px,2.3vw,29px);line-height:1.25;font-weight:950;text-shadow:0 2px 8px #000;}
.phiro .phiro-category__eng {display:block;margin-top:6px;color:var(--ph-cat-accent) !important;font-size:8px;letter-spacing:.12em;line-height:1.3;}
.phiro-category__arrow {z-index:3;right:12px;top:auto;bottom:25px;font-size:20px;color:var(--ph-cat-accent);}
.phiro .phiro-category:focus-visible {outline:3px solid #fff;outline-offset:4px;}
/* Editorial photo gallery, horizontal swipe on touch. */
.phiro-gallery-section {margin:60px 0 14px;padding:26px 0 20px;border-top:1px solid #3f343d;border-bottom:1px solid #3f343d;position:relative;background:radial-gradient(ellipse at 50% 100%,rgba(245,58,88,.07),transparent 62%);}
.phiro-gallery-head {display:flex;align-items:end;justify-content:space-between;gap:20px;padding:0 2px 16px;}
.phiro .phiro-gallery-head h2 {font-size:27px !important;letter-spacing:.04em;font-weight:950;margin:0!important;color:#fff!important;padding:0!important;background:none!important;border:0!important;}
.phiro .phiro-gallery-head .phiro-eyebrow {margin:0 0 7px;}
.phiro .phiro-gallery-head > p {font-size:11px;color:#9d9aa5!important;margin:0 0 4px;}
.phiro-gallery {display:flex;overflow-x:auto;overscroll-behavior-x:contain;gap:10px;padding:7px 2px 13px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#a64151 #1c171e;}
.phiro-gallery__item {flex:0 0 137px;max-width:137px;scroll-snap-align:start;min-width:0;background:linear-gradient(170deg,#1c1a24,#0e1116);border:1px solid #34313d;border-radius:7px;margin:0;overflow:hidden;transition:transform .25s ease,border-color .25s ease;}
.phiro-gallery__item:hover {transform:translateY(-4px);border-color:#bc4b5a;}
.phiro-gallery__photo {height:170px;padding:5px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#29232d,#101016 65%);}
.phiro-gallery__photo img {display:block;height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 9px 7px #0009);}
.phiro-gallery__item figcaption {padding:9px 8px 10px;color:#f0eaf0;font-size:10px;font-weight:750;line-height:1.5;text-align:center;min-height:47px;}
.phiro-gallery-note {display:flex;justify-content:end;gap:9px;margin:0 4px!important;color:#b68c98!important;font-size:9px;letter-spacing:.16em;font-weight:900;}
.phiro-gallery-note span {color:#ff5570;}
.phiro-list-section {padding-top:47px;}
.phiro-search {box-shadow:inset 0 1px rgba(255,255,255,.035),0 8px 20px rgba(0,0,0,.13);}
.phiro .phiro-pills a {border-radius:999px;padding:6px 14px;font-size:11px;}
.phiro-post {overflow:hidden;}
.phiro-post__image img {object-fit:contain;background:radial-gradient(ellipse at center,#322832,#121019);}
.phiro-post__image {background:#121019;}
@media(max-width:1050px){.phiro .phiro-category {height:275px;min-height:275px;}.phiro-category__photo {bottom:75px;}}
@media(max-width:700px){
 .phiro .phiro-hero {padding:22px 18px 30px;}
 .phiro .phiro-hero__title {font-size:clamp(33px,9vw,49px)!important;}
 .phiro .phiro-hero__title > small {font-size:clamp(12px,3.2vw,15px);line-height:1.75;margin-top:12px;padding:6px 8px;}
 .phiro-hero__copy:before {font-size:8px;}
 .phiro-categories {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
 .phiro .phiro-category {height:255px;min-height:255px;padding:0;border-radius:7px;}
 .phiro-category__photo {bottom:74px;}
 .phiro-category__num {font-size:8px;padding:11px;}
 .phiro-category__bottom {padding:13px 11px 14px;}
 .phiro .phiro-category strong {font-size:clamp(20px,6vw,27px);}
 .phiro .phiro-category__eng {font-size:8px;letter-spacing:.06em;}
 .phiro-category__arrow {right:9px;bottom:21px;font-size:17px;}
 .phiro-category:last-child {grid-column:span 2;}
 .phiro-category:last-child .phiro-category__photo img {max-width:190px;}
 .phiro-gallery-section {margin-top:45px;padding-top:23px;}
 .phiro-gallery-head {align-items:start;flex-direction:column;gap:3px;}
 .phiro .phiro-gallery-head h2 {font-size:24px!important;}
 .phiro-gallery__item {flex-basis:120px;max-width:120px;}
 .phiro-gallery__photo {height:147px;}
 .phiro .phiro-section__intro {font-size:11px!important;}
 .phiro .phiro-section__top h2 {font-size:25px!important;}
 .phiro-section__sub {display:none;}
}
@media(max-width:370px){.phiro .phiro-category {height:227px;min-height:227px;}.phiro-category__photo {bottom:68px;}.phiro .phiro-category strong {font-size:21px;}.phiro .phiro-category__eng {font-size:7px;}}
@media(prefers-reduced-motion:reduce){.phiro-category__photo img,.phiro .phiro-category:hover .phiro-category__photo img,.phiro .phiro-category:hover::after,.phiro-gallery__item:hover {transform:none!important;transition:none!important;}.phiro-gallery {scroll-behavior:auto;}}
/* Keep content readable before scrolling/when print, snapshots, or JS timing differs. */
.phiro.phiro-js-motion [data-phiro-reveal]:not(.phiro-is-visible) {opacity:1;transform:none;}
.phiro.phiro-js-motion [data-phiro-reveal].phiro-is-visible {animation:ph-photo-rise .55s ease both;}
@keyframes ph-photo-rise {from{opacity:.72;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.phiro.phiro-js-motion [data-phiro-reveal].phiro-is-visible {animation:none!important;}}


/* v1.3 / Luxury neon archive. All motion observes prefers-reduced-motion. */
body.phiro-site{--ph-article-bg:#141218;--ph-article-text:#ede7e9;background:#09080d!important;background-image:radial-gradient(ellipse 55vw 40vw at 10% 8%,rgba(128,13,40,.15),transparent 75%),radial-gradient(ellipse 65vw 50vw at 90% 55%,rgba(210,117,16,.085),transparent 72%)!important;}
/* Atmospheric animated rails are behind the content and never intercept clicks. */
body.phiro-site::before{content:"";pointer-events:none;position:fixed;z-index:0;inset:-40%;opacity:.26;background:repeating-linear-gradient(120deg,transparent 0 125px,rgba(249,65,88,.045) 126px 127px,transparent 128px 205px),radial-gradient(ellipse 30% 33% at 80% 25%,rgba(255,23,66,.14),transparent 75%),radial-gradient(ellipse 30% 20% at 24% 80%,rgba(255,177,62,.11),transparent 75%);animation:phiro-aura 26s ease-in-out infinite alternate;}
body.phiro-site #wrapper,body.phiro-site #content,body.phiro-site #header,body.phiro-site #footer{position:relative;z-index:1;}
@keyframes phiro-aura{0%{transform:translate3d(-3%,-1%,0) rotate(0deg)}100%{transform:translate3d(4%,3%,0) rotate(6deg)}}
/* Theme header title to brand image; original text remains present in the DOM for accessibility. */
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a){display:inline-block!important;width:min(300px,60vw);height:76px;min-height:60px;max-width:100%;font-size:0!important;color:transparent!important;overflow:hidden;background-image:url('hiroba-logo.png');background-size:contain;background-position:center left;background-repeat:no-repeat;text-indent:-9999px;}
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a):focus-visible{outline:2px solid #ffd38b;outline-offset:4px;}
.phiro-hero{border-top:4px solid #ff3855;box-shadow:0 23px 85px #000b,0 0 38px rgba(237,24,70,.13),inset 0 0 50px rgba(246,25,78,.07);}
.phiro-hero::before{opacity:.37;}
.phiro-hero__logo{display:block;width:min(100%,605px);height:auto;max-height:183px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 14px #0009) drop-shadow(0 0 17px rgba(242,36,58,.20));animation:phiro-logo-glow 6s ease-in-out infinite alternate;}
.phiro-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@keyframes phiro-logo-glow{from{filter:drop-shadow(0 4px 12px #0008) drop-shadow(0 0 6px rgba(255,40,72,.19))}to{filter:drop-shadow(0 4px 12px #0008) drop-shadow(0 0 22px rgba(255,44,69,.44))}}
.phiro .phiro-hero__title{font-size:clamp(26px,3vw,46px)!important;margin:0 0 18px!important;}
.phiro .phiro-hero__title>small{display:block;margin:6px 0 0 4px!important;padding:10px 13px!important;font-size:clamp(13px,1.5vw,20px)!important;color:#fff0dc!important;font-weight:850;letter-spacing:.01em;line-height:1.6!important;text-shadow:0 0 14px rgba(255,110,58,.28);}
.phiro .phiro-hero__lead{border-left:2px solid rgba(240,63,91,.24);padding-left:13px;color:#e7dfe5!important;}
.phiro .phiro-category{box-shadow:0 16px 32px rgba(0,0,0,.43),inset 0 1px rgba(255,255,255,.04),0 0 14px color-mix(in srgb,var(--ph-cat-accent) 12%,transparent);}
.phiro .phiro-category:hover{box-shadow:0 20px 45px #000a,0 0 33px color-mix(in srgb,var(--ph-cat-accent) 35%,transparent);}
.phiro-category__bottom{box-shadow:0 -10px 25px #0004;}
.phiro .phiro-section__top h2,.phiro .phiro-gallery-head h2{text-shadow:0 0 14px rgba(255,58,94,.14);}
/* Carousel: one clickable item includes both photograph and article title. */
.phiro-gallery{scroll-snap-type:none;overflow-x:auto;gap:14px;padding:14px 4px 15px;scrollbar-width:thin;scrollbar-color:#a84c58 #241a24;}
.phiro-gallery__item{flex:0 0 160px;max-width:160px;display:flex;flex-direction:column;align-items:stretch;min-height:250px;color:#fff!important;text-decoration:none!important;background:linear-gradient(168deg,#241721,#111119);border:1px solid #59303c;border-top:2px solid #e33852;border-radius:10px;box-shadow:0 7px 20px #0007;overflow:hidden;}
.phiro .phiro-gallery__item:hover,.phiro .phiro-gallery__item:focus-visible{transform:translateY(-4px);border-color:#ff697e;box-shadow:0 9px 30px rgba(235,32,69,.28);color:#fff!important;outline:0;}
.phiro .phiro-gallery__item:focus-visible{outline:2px solid #ffe5a1;outline-offset:3px;}
.phiro-gallery__photo{height:185px;flex:none;padding:8px;background:radial-gradient(ellipse at 50% 48%,#45303c,#161118 73%);}
.phiro-gallery__photo img{transition:transform .35s ease;}
.phiro-gallery__item:hover .phiro-gallery__photo img{transform:scale(1.065);}
.phiro-gallery__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:47px;line-height:1.52;padding:9px 9px 4px;text-align:center;color:#fff0ef;font-size:11px;font-weight:900;}
.phiro-gallery__go{display:flex;justify-content:space-between;padding:0 11px 11px;margin-top:auto;letter-spacing:.16em;font-size:8px;font-weight:850;color:#ff8290;}
.phiro-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:2px 4px;}
.phiro-gallery-controls .phiro-gallery-note{margin:0!important;}
.phiro-gallery-toggle{font:inherit!important;font-size:11px!important;font-weight:850!important;color:#ffdcad!important;background:#281721!important;border:1px solid #87505a!important;border-radius:999px!important;padding:7px 12px!important;cursor:pointer;}
.phiro-gallery-toggle:hover,.phiro-gallery-toggle:focus-visible{border-color:#ff8899!important;color:#fff!important;outline-offset:3px;}
.phiro-mnav__brand-logo{display:block;width:155px;height:42px;object-fit:contain;object-position:left center;filter:drop-shadow(0 0 8px #f2364438);}
.phiro-mnav__brand{min-width:0;gap:7px;}
.phiro-mnav__777{flex:none;}
/* Dark editorial area for single articles: no more white blocks or black-on-black footers. */
body.phiro-site.single-post #main>article,body.phiro-site.single-post #main article.post,body.phiro-site.single-post #main article.st-post,body.phiro-site.single-post #main>.post,body.phiro-site.single-post #main .st-post{background:linear-gradient(155deg,#1c151e 0%,#13131a 32%,#17151c 100%)!important;color:#f3edf2!important;box-shadow:0 15px 55px rgba(0,0,0,.25);border:1px solid #452a36;}
body.phiro-site.single-post #main :is(.entry-content,.st-post-content,.post-content,.st-post-body){background:transparent!important;color:#f0ebf0!important;}
body.phiro-site.single-post #main :is(.entry-content,.st-post-content,.post-content) :is(p,li,dt,dd){color:#e9e5eb!important;}
body.phiro-site.single-post #main :is(.entry-content,.st-post-content,.post-content) a{color:#ffbd79!important;text-decoration:underline;text-decoration-color:#8b4458;}
body.phiro-site.single-post #main :is(.entry-content,.st-post-content,.post-content) a:hover{color:#ff607c!important;}
body.phiro-site.single-post #main :is(.entry-content,.st-post-content,.post-content) :is(table,th,td){border-color:#50404b!important;color:#eeeaf1!important;}
body.phiro-site.single-post #main :is(.entry-content,.st-post-content,.post-content) :is(th){background:#29212c!important;}
body.phiro-site.single-post #main :is(.entry-content,.st-post-content,.post-content) :is(td){background:#1b1a23!important;}
body.phiro-site.single-post #main :is(blockquote,pre){background:#231c26!important;color:#e9e1e8!important;border-color:#704358!important;}
/* AFFINGER bottom category badges, including older naming variants. */
body.phiro-site.single-post #main :is(.st-catgroup,.st-catname,.st-category,.catname,.cat-link,.cat-list,.post-categories,.posted_in,.category,.entry-footer,.post-footer,.st-post-category,.st-cat){color:#fceaf0!important;background-color:transparent;}
body.phiro-site.single-post #main :is(.st-catgroup,.st-catname,.st-category,.catname,.cat-link,.cat-list,.post-categories,.posted_in,.category,.entry-footer,.post-footer,.st-post-category,.st-cat) a,
body.phiro-site.single-post #main a[rel~="category"],body.phiro-site.single-post #main a[rel="category tag"]{color:#ffeff1!important;background:#4d2032!important;border:1px solid #b63c58!important;border-radius:5px;padding:3px 9px;text-decoration:none!important;line-height:2.5;}
body.phiro-site.single-post #main :is(.st-catgroup,.st-catname,.st-category,.catname,.post-categories,.entry-footer,.post-footer) a:hover,
body.phiro-site.single-post #main a[rel~="category"]:hover{background:#e32c4d!important;color:#fff!important;border-color:#ff768a!important;}
body.phiro-site.single-post #main :is(.post-footer,.entry-footer,.st-post-bottom) :is(span,strong,b,small){color:#efdee6!important;}
/* All comment forms, lists and comment widgets suppressed; original comments remain in DB. */
body.phiro-site :is(#comments,#respond,.comments-area,.comment-respond,.comment-list,.wp-block-latest-comments,.widget_recent_comments){display:none!important;}
/* Share buttons provided by AFFINGER7 are preserved on home and posts. */
/* Sidebar, widgets and footer typography. */
body.phiro-site #side :is(.widget,.st-widgets-box){background:linear-gradient(145deg,#1e1822,#16141d)!important;border:1px solid #3e303e;border-radius:7px;color:#f0e8ef!important;}
body.phiro-site #side :is(a,li,span,p),body.phiro-site #footer :is(a,li,span,p){color:#e9dce6!important;}
body.phiro-site #side :is(h2,h3,h4,.widgettitle){color:#fff!important;border-left-color:#fc4160!important;}
@media (max-width:700px){.phiro-hero__logo{width:100%;max-height:116px;}.phiro .phiro-hero__title{margin:0 0 15px!important;}.phiro .phiro-hero__title>small{font-size:clamp(12px,3.35vw,16px)!important;}.phiro-gallery__item{flex-basis:141px;max-width:141px;min-height:232px;}.phiro-gallery__photo{height:160px;}.phiro-gallery__title{font-size:10px;min-height:46px;}.phiro-mnav__brand-logo{width:min(42vw,150px);}}
@media (prefers-reduced-motion:reduce){body.phiro-site::before,.phiro-hero__logo{animation:none!important;}.phiro .phiro-category,.phiro-gallery__item,.phiro-gallery__photo img{transition:none!important;transform:none!important;}}

/* v1.4 — category-driven articles, visible widgets, readable brand hierarchy */
.phiro-hero__logo{width:min(100%,650px);height:auto;max-height:190px;object-position:left center;}
.phiro-mnav__brand-logo{width:165px;height:44px;object-fit:contain;}
/* Article thumbnails can be portrait OR landscape without distortion. */
.phiro-gallery__photo img{max-width:100%;width:auto;height:100%;object-fit:contain;object-position:center center;}
.phiro-gallery__noimage{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#ffecb4;background:repeating-linear-gradient(135deg,#291923,#291923 12px,#221924 13px,#221924 26px);}
.phiro-gallery__noimage strong{font-family:Georgia,serif;font-size:39px;font-weight:950;letter-spacing:.02em;text-shadow:0 0 16px #c92658;color:#ffbb63;}
.phiro-gallery__noimage small{letter-spacing:.15em;font-size:9px;color:#ce9f9c;}
.phiro-gallery-empty{padding:34px 25px;border:1px dashed #714054;border-top:2px solid #e23a55;border-radius:9px;background:linear-gradient(110deg,#211821,#15151e);box-shadow:inset 0 0 22px #dc274b0c;}
.phiro-gallery-empty strong{display:block;font-size:15px;color:#ffe4ac;letter-spacing:.06em;}
.phiro-gallery-empty p{margin:9px 0 0!important;color:#e2c5d2!important;font-size:12px!important;line-height:1.9!important;}
.phiro-gallery-section>.phiro-gallery-note{justify-content:flex-end;margin:4px 6px 0!important;line-height:1.6;flex-wrap:wrap;}
/* Fix AFFINGER sidebar "white background + white text" and make heading design uniform. */
body.phiro-site #side :is(.widget,.st-widgets-box,.wp-block-group) :is(h2,h3,h4,h5,.widget-title,.widgettitle,.st-widgets-title,.wp-block-heading),
body.phiro-site #side :is(.widgettitle,.widget-title,.st-widgets-title),
body.phiro-site #side :is(h2.widgettitle,h3.widgettitle,h4.widgettitle){
 color:#fff5f6!important;
 background:linear-gradient(103deg,#5a1930 0%,#30202d 37%,#171823 100%)!important;
 background-color:#241821!important;
 border:1px solid #713345!important;
 border-left:4px solid #ff4865!important;
 border-radius:4px!important;
 box-shadow:inset 0 1px 0 #ffffff1a,0 5px 19px #0004!important;
 padding:10px 13px!important;
 text-shadow:0 1px 4px #000b!important;
 line-height:1.55!important;
}
body.phiro-site #side :is(.widget,.st-widgets-box,.wp-block-group) :is(h2,h3,h4,h5,.widget-title,.widgettitle,.st-widgets-title,.wp-block-heading) :is(a,span,em,strong,b){
 color:#fff5f6!important;
 background:transparent!important;
}
body.phiro-site #side :is(.widget_recent_comments,.wp-block-latest-comments, [id^="recent-comments-"]){display:none!important;}
@media(max-width:700px){.phiro-hero__logo{max-height:130px;width:100%;}.phiro-mnav__brand-logo{width:min(44vw,155px);height:39px;}}
@media(prefers-reduced-motion:reduce){.phiro-gallery{scroll-behavior:auto!important;}}


/* v1.4.1 – Typography-forward wordmark, no left/right logo pictograms.
   Crops the letterforms of the existing licensed-on-site logo PNG using CSS;
   this preserves their exact font, gold/red metallic effects and avoids
   rewriting any WordPress custom-logo setting. */
.phiro-wordmark{
  position:relative!important;display:block!important;isolation:isolate;
  width:min(100%,720px)!important;max-height:none!important;height:auto!important;
  aspect-ratio:1000 / 315;overflow:visible!important;
  filter:drop-shadow(0 6px 13px rgba(0,0,0,.68)) drop-shadow(0 0 20px rgba(248,24,63,.27));
  animation:phiro-wordmark-pulse 5.4s ease-in-out infinite alternate;
}
.phiro-wordmark__first,.phiro-wordmark__last{
  display:block!important;position:absolute!important;overflow:hidden!important;pointer-events:none;
  filter:drop-shadow(0 0 8px rgba(255,45,68,.12));
}
/* Existing art is 1280×340. Main word crop = (80,88)–(655,258). */
.phiro-wordmark__first{left:0!important;top:4.5%!important;width:77%!important;height:73%!important;}
.phiro-wordmark__first img{
  display:block!important;position:absolute!important;max-width:none!important;
  width:222.6087%!important;height:auto!important;
  left:-13.913%!important;top:-51.765%!important;
  object-fit:fill!important;opacity:1!important;filter:none!important;
}
/* Smaller suffix crop = (660,20)–(1095,265). Same lettering, reduced scale. */
.phiro-wordmark__last{left:76.6%!important;top:37.1%!important;width:23.4%!important;height:40.6%!important;}
.phiro-wordmark__last img{
  display:block!important;position:absolute!important;max-width:none!important;
  width:294.2529%!important;height:auto!important;
  left:-151.724%!important;top:-8.164%!important;
  object-fit:fill!important;opacity:1!important;filter:none!important;
}
.phiro-wordmark__rule{
  position:absolute;left:2%;right:0;top:81%;height:3px;overflow:visible;
  background:linear-gradient(90deg,#ff3a57 0%,#ffd477 34%,#fff2b0 52%,#ef3a52 86%,transparent 100%);
  box-shadow:0 0 13px rgba(255,49,74,.45),0 0 25px rgba(255,191,95,.23);
  transform:skewX(-12deg);
}
.phiro-wordmark__rule::after{
  content:"";position:absolute;top:-2px;left:28%;width:16%;height:7px;
  background:linear-gradient(90deg,transparent,#fffbd6,transparent);
  filter:blur(2px);opacity:.85;
}
.phiro-wordmark__eng{
  display:block!important;position:absolute;left:2%;right:0;top:85%;
  color:#f6c27f!important;text-align:center;font:900 clamp(7px,1.18vw,15px)/1.5 system-ui,sans-serif!important;
  letter-spacing:.14em!important;white-space:nowrap;text-shadow:0 1px 5px rgba(0,0,0,.8),0 0 8px #ff4a4a33;
}
.phiro-wordmark__eng b{color:#ff4e69;font-weight:900;padding:0 .7em;}
@keyframes phiro-wordmark-pulse{from{filter:drop-shadow(0 6px 13px #000a) drop-shadow(0 0 7px #ee244223)}to{filter:drop-shadow(0 6px 13px #000a) drop-shadow(0 0 20px #ee244255)}}
/* Header is theme-owned. Display the same two word crops with CSS layers.
   CSS percentages below are computed from the crop rectangles above. */
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a){
  display:inline-block!important;position:relative!important;
  width:min(330px,64vw)!important;height:auto!important;min-height:0!important;
  aspect-ratio:1000 / 315!important;max-width:100%!important;
  text-indent:-9999px!important;font-size:0!important;color:transparent!important;
  background:none!important;overflow:visible!important;filter:drop-shadow(0 0 8px #ff345431);
}
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a)::before,
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a)::after{
  content:""!important;display:block!important;position:absolute!important;z-index:2;
  background-image:url('hiroba-logo.png')!important;background-repeat:no-repeat!important;
  pointer-events:none!important;
}
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a)::before{
  left:0;top:4.5%;width:77%;height:73%;
  background-size:222.6087% auto!important;
  background-position:11.344% 51.765%!important;
}
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a)::after{
  left:76.6%;top:37.1%;width:23.4%;height:40.6%;
  background-size:294.2529% auto!important;
  background-position:78.108% 8.164%!important;
}
/* Hide a possible theme-supplied WordPress logo image *inside* the targeted title link. */
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a) > img{visibility:hidden!important;}
body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a):focus-visible{outline:2px solid #ffca82!important;outline-offset:4px;}
/* The mobile masthead should use the typography only, not a 777 side illustration. */
.phiro-mnav__777{display:none!important;}
.phiro-mnav__brand-logo.phiro-wordmark{
  width:min(44vw,185px)!important;height:auto!important;max-height:none!important;
  aspect-ratio:1000 / 315!important;animation:none!important;filter:drop-shadow(0 0 8px #ff38552e);
}
.phiro-mnav__brand-logo .phiro-wordmark__eng{font-size:clamp(3.7px,.71vw,8px)!important;letter-spacing:.05em!important;}
.phiro-mnav__brand-logo .phiro-wordmark__rule{height:1px;box-shadow:none;}
@media(max-width:700px){
  .phiro-hero__logo.phiro-wordmark{width:100%!important;max-height:none!important;}
  .phiro-hero__logo .phiro-wordmark__eng{font-size:clamp(6px,1.9vw,10px)!important;letter-spacing:.06em!important;}
  body.phiro-site #header :is(.sitename a,.st-header-logo a,#logo a){width:min(260px,62vw)!important;}
  .phiro-mnav__brand-logo.phiro-wordmark{width:min(48vw,180px)!important;}
}
@media(prefers-reduced-motion:reduce){.phiro-wordmark{animation:none!important;}}
