/* 川染有哉 ポートフォリオ — 検索結果の形で制作事例を並べるサイト */
:root{
  color-scheme:light dark;
  --bg:#ffffff;--surface:#f2f3f5;--border:#e1e3e6;
  --ink:#1c1c1e;--ink2:#555a60;--ink3:#6a6f75;
  --link:#1a3bc4;--visited:#681da8;--on-link:#ffffff;
  --shadow:0 1px 6px rgba(32,33,36,.08);--shadow2:0 2px 10px rgba(32,33,36,.16);
  --vh:260px;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#1f1f1f;--surface:#2e2f32;--border:#3d3f43;
    --ink:#e9e9eb;--ink2:#a7abb1;--ink3:#9a9ea5;
    --link:#9ebdff;--visited:#c9a3f5;--on-link:#13161c;
    --shadow:none;--shadow2:0 2px 10px rgba(0,0,0,.5);
  }
}
*{box-sizing:border-box;min-width:0}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 "Noto Sans JP",system-ui,-apple-system,"Hiragino Sans","Yu Gothic",sans-serif;overflow-x:clip}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
img{display:block;max-width:100%}
button{font:inherit;color:inherit}
h1,h2,h3,p{margin:0}
:focus-visible{outline:2px solid var(--link);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}
.logo{font-family:Outfit,system-ui,sans-serif;font-weight:500;letter-spacing:-.03em;color:var(--ink);text-decoration:none}
.logo:hover{text-decoration:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 18px;border-radius:20px;background:var(--link);color:var(--on-link);font-weight:500;font-size:14px;white-space:nowrap;text-decoration:none;border:0;cursor:pointer}
.btn:hover{text-decoration:none;filter:brightness(1.08)}
.btn.wide{display:flex;width:100%}

/* 検索窓 */
.search{display:flex;align-items:center;gap:6px;height:52px;width:min(640px,100%);padding:0 8px 0 20px;border:1px solid var(--border);border-radius:26px;background:var(--bg);box-shadow:var(--shadow)}
.search:focus-within{box-shadow:var(--shadow2)}
.search>svg{flex:none;color:var(--ink3);margin-right:8px}
.search input{flex:1;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font:16px "Noto Sans JP",system-ui,sans-serif}
.search input::placeholder{color:var(--ink3)}
input[type=search]::-webkit-search-cancel-button{display:none}
.ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:none;color:var(--ink2);cursor:pointer}
.ic:hover{background:var(--border)}
.ic.go{color:var(--link)}
.sep{flex:none;width:1px;height:26px;background:var(--border)}

/* トップ */
.home{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.home-top{display:flex;justify-content:flex-end;align-items:center;gap:22px;padding:12px 24px}
.home-top .plain{color:var(--ink);font-size:13px}
.home-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:24px 16px 14vh}
.home-main .logo{font-size:clamp(60px,11vw,96px);line-height:1.1}
.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.chip{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:20px;background:var(--surface);color:var(--ink);font-size:14px;border:0;cursor:pointer;text-decoration:none}
.chip:hover{text-decoration:none;background:var(--border)}
.home-sub{color:var(--ink3);font-size:13px;text-align:center}
.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;padding:16px 32px;background:var(--surface);color:var(--ink2);font-size:13px}
.foot span:last-child{color:var(--ink3)}

/* 検索結果のヘッダー */
.hdr{position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid var(--border)}
.bar{display:flex;align-items:center;gap:16px;padding:18px 32px 4px}
.bar .logo{flex:none;width:132px;font-size:27px;line-height:1}
.bar .search{flex:0 1 690px;width:auto;height:46px;background:var(--surface);border-color:transparent;box-shadow:none}
.bar .search:focus-within{background:var(--bg);border-color:var(--border);box-shadow:var(--shadow2)}
.bar .btn{margin-left:auto}
.tabs{display:flex;gap:28px;padding:2px 32px 0 180px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{position:relative;flex:none;padding:12px 0 11px;border:0;background:none;color:var(--ink2);font-size:14px;white-space:nowrap;cursor:pointer;text-decoration:none}
.tab:hover{color:var(--ink);text-decoration:none}
.tab[aria-selected=true]{color:var(--ink);font-weight:500}
.tab[aria-selected=true]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--link)}

/* 本文と右のプロフィール */
.serp-body{display:grid;grid-template-columns:minmax(0,652px) 372px;gap:0 clamp(40px,5vw,76px);align-items:start;padding:18px 32px 80px 180px}
.main{display:flex;flex-direction:column;gap:38px}
.stats{color:var(--ink3);font-size:13px;margin-bottom:-22px}
.sec h2{font-size:20px;line-height:28px;font-weight:400;margin-bottom:14px}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;margin-bottom:10px}
.sec-head h2{margin:0}
.sec-head a{font-size:14px}
.note{color:var(--ink2);font-size:14px;line-height:22px;margin:-6px 0 14px}

/* 1件の結果 */
.res{display:flex;flex-direction:column;gap:6px}
.site{display:inline-flex;align-items:center;gap:12px;align-self:flex-start;max-width:100%;color:var(--ink)}
.site:hover{text-decoration:none}
.site:hover .site-n{text-decoration:underline}
.fav{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface);border:1px solid var(--border);color:var(--ink2);font-size:13px;font-weight:500;line-height:1}
.fav svg{width:15px;height:15px}
.site-t{display:flex;flex-direction:column;min-width:0}
.site-n{font-size:14px;line-height:20px}
.site cite{font-style:normal;font-size:12px;line-height:16px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res-b{display:flex;gap:20px;align-items:flex-start}
.res-x{flex:1;display:flex;flex-direction:column;gap:4px}
.res h3{font-size:20px;line-height:26px;font-weight:400}
.res h3 a:visited{color:var(--visited)}
.snip{color:var(--ink2);font-size:14px;line-height:22px}
.meta{color:var(--ink3);font-size:13px;line-height:20px}
.thumb{flex:none;width:128px;height:80px;padding:0;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface);cursor:zoom-in}
.thumb img,.sl-img img,.pk img,.pn-photos img,.strip img{width:100%;height:100%;object-fit:cover;object-position:top}
.sitelinks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:10px}
.sl{display:flex;flex-direction:column;gap:4px}
.sl-img{aspect-ratio:16/10;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface);cursor:zoom-in;margin-bottom:4px}
.sl-t{font-size:16px;line-height:22px}
.sl-d{color:var(--ink3);font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 画像 */
.pack{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px 10px}
.pk{display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;text-align:left;cursor:zoom-in}
.pk-img{display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;border:1px solid var(--border);background:var(--surface)}
.pk-t{font-size:13px;line-height:18px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-s{display:flex;align-items:center;gap:6px;color:var(--ink3);font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden}
.pk-s .fav{width:16px;height:16px;font-size:8px}
.pk-s span:last-child{overflow:hidden;text-overflow:ellipsis}
.more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:40px;margin-top:14px;border:0;border-radius:20px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:500;cursor:pointer;text-decoration:none}
.more:hover{background:var(--border);text-decoration:none}

/* 動画 */
.vrow{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.vcard{flex:none;width:calc(var(--vh)*16/9);display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;text-align:left;cursor:pointer;scroll-snap-align:start}
.vcard.v{width:calc(var(--vh)*9/16)}
.vthumb{position:relative;display:block;width:100%;height:var(--vh);border-radius:12px;overflow:hidden;background:#141416}
.vthumb img{width:100%;height:100%;object-fit:cover}
.vthumb.noimg{background:linear-gradient(160deg,#2a2d35,#121315)}
.vthumb.noimg img{display:none}
.play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(255,255,255,.92);color:#141416;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.play svg{margin-left:3px}
.vcard:hover .play{background:#fff}
.vt{font-size:14px;line-height:20px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vs{font-size:12px;line-height:16px;color:var(--ink3)}
.vgenre+.vgenre{margin-top:6px}

/* ポスター */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px 12px}
.pt{display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;text-align:left;cursor:zoom-in}
.pt-img{display:block;aspect-ratio:1/1.414;border-radius:6px;overflow:hidden;border:1px solid var(--border);background:var(--surface)}
.pt-img img{width:100%;height:100%;object-fit:cover}
.pt-t{font-size:13px;line-height:18px;color:var(--ink)}
.pt-d{font-size:12px;line-height:16px;color:var(--ink3)}

/* よくある質問 */
.faq{border-top:1px solid var(--border)}
.faq details{border-bottom:1px solid var(--border)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:12px 0;font-size:16px;line-height:24px;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary svg{flex:none;color:var(--ink2);transition:transform .2s}
.faq details[open] summary svg{transform:rotate(180deg)}
.faq details p{padding:0 0 16px;color:var(--ink2);font-size:14px;line-height:22px}
.devs{display:flex;flex-direction:column;gap:28px}
.devs h3{font-size:18px;line-height:24px}

/* 何も見つからないとき */
.empty{display:flex;flex-direction:column;gap:12px;padding:8px 0}
.empty p{font-size:15px}
.empty .chips{justify-content:flex-start;margin-top:6px}

/* プロフィール（右の欄・狭い画面のカード・タブ） */
.panel{border:1px solid var(--border);border-radius:12px;overflow:hidden}
.pn-photos,.strip{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:3px;height:210px}
.pn-photos button,.strip button{padding:0;border:0;background:var(--surface);overflow:hidden;cursor:zoom-in}
.pn-photos button:first-child,.strip button:first-child{grid-row:span 2}
.pn-b{display:flex;flex-direction:column;gap:14px;padding:18px 20px 20px;border-bottom:1px solid var(--border)}
.pn-name{font-size:28px;line-height:36px;font-weight:400}
.pn-sub{color:var(--ink2);font-size:14px;line-height:20px;margin-top:-10px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.pn-bio{font-size:14px;line-height:22px}
.facts{display:flex;flex-direction:column;gap:8px;margin:0;font-size:14px;line-height:22px}
.facts div{display:flex;gap:2px}
.facts dt{flex:none;font-weight:500}
.facts dt::after{content:"："}
.facts dd{margin:0}
.pn-h{padding:16px 20px 20px}
.pn-h h3{font-size:16px;line-height:24px;font-weight:500;margin-bottom:10px}
.hist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:13px;line-height:20px}
.hist li{display:flex;gap:12px}
.hist li span:first-child{flex:none;width:36px;color:var(--ink3);font-variant-numeric:tabular-nums}
.pcard{display:none;flex-direction:column;gap:10px}
.strip{height:120px;border-radius:12px;overflow:hidden;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}
.strip button:first-child{grid-row:auto}
.prof{display:flex;flex-direction:column;gap:14px}
.prof .strip{height:200px}
.prof p{font-size:15px;line-height:26px}
.steps{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:12px}
.steps li{padding-left:4px}
.steps b{display:block;font-weight:500;font-size:16px;line-height:24px}
.steps span{color:var(--ink2);font-size:14px;line-height:22px}
.skills{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px 24px}
.skills dt{font-weight:500;font-size:14px;margin-bottom:2px}
.skills dd{margin:0;color:var(--ink2);font-size:14px;line-height:22px}

/* ダイアログ */
dialog{max-width:none;max-height:none;padding:0;border:0;background:transparent;color:#fff}
dialog::backdrop{background:rgba(8,8,10,.78)}
.dlg{display:flex;flex-direction:column;gap:10px;width:min(1100px,94vw)}
.dlg-bar{display:flex;align-items:center;gap:12px}
.dlg-t{flex:1;font-size:15px;line-height:22px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dlg-bar a{color:#cfe0ff;font-size:14px;white-space:nowrap}
.x{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.x:hover{background:rgba(255,255,255,.24)}
#lb-img{width:100%;max-height:80vh;object-fit:contain;border-radius:10px;background:#111}
.frame{width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.frame iframe{display:block;width:100%;height:100%;border:0}
#player.v .dlg{width:auto;align-items:center}
#player.v .dlg-bar{width:min(78vh*9/16,94vw);width:calc(min(78vh,150vw)*9/16)}
#player.v .frame{width:auto;height:min(78vh,150vw);aspect-ratio:9/16}

/* 1119px以下：右の欄をやめて1列に */
@media (max-width:1119px){
  .serp-body{grid-template-columns:minmax(0,652px);padding-left:clamp(16px,12vw,180px)}
  .panel{display:none}
  .pcard{display:flex}
}
@media (max-width:899px){
  .tabs{padding-left:clamp(16px,12vw,180px)}
  .bar .logo{width:auto}
}
/* スマートフォン */
@media (max-width:719px){
  :root{--vh:220px}
  .bar{flex-wrap:wrap;gap:10px;padding:12px 16px 0}
  .bar .logo{font-size:24px}
  .bar .btn{min-height:34px;padding:0 14px;font-size:13px}
  .bar .search{order:3;flex:1 1 100%;height:44px}
  .tabs{gap:22px;padding:2px 16px 0}
  .serp-body{display:block;padding:0 0 40px}
  .main{gap:0}
  .main>*{padding:16px}
  .main>*+*{border-top:1px solid var(--border)}
  .main>.sec,.main>.pcard+.stats,.main>.sec+.res{border-top:8px solid var(--surface)}
  .stats{margin:0;padding:12px 16px 0}
  .main>.stats+*{border-top:0}
  .res h3{font-size:18px;line-height:24px}
  .devs h3{font-size:17px}
  .thumb{width:96px;height:60px}
  .sitelinks{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin-right:-16px;padding-right:16px}
  .sl{flex:none;width:168px;scroll-snap-align:start}
  .sec h2{font-size:18px;line-height:24px;margin-bottom:12px}
  .vrow{margin-right:-16px;padding-right:16px}
  .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-top{gap:16px;padding:10px 16px}
  .foot{padding:16px}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
}
