/* public/theme/portal.css
 * where : 入口（matome.biz）だけで読む（src/app/portal/page.tsx）。common.css は読まないので、ここだけで完結させる。
 * what  : 入口の絵とサービス名、20サイトのカード一覧。カードは各サイトの色（--p 主役 / --d 深い色 / --a 差し色）と
 *         ロゴの書体（--f / --fw）をカードの style で受け取る。
 * why   : 広告を置かないページなので、ここだけは1つの作りで PC とスマホの両方に合わせる（幅で列の数が変わる）。
 */
:root { --ink: #161a24; --ink-3: #8a90a0; --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; --ease: cubic-bezier(.2, .7, .2, 1); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #f1f3f8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }

/* 入口の絵とサービス名 */
.ph { position: relative; overflow: hidden; color: #fff; background: var(--d); isolation: isolate; text-align: center; }
.ph-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, #0000005c, #00000000 75%), linear-gradient(180deg, #00000026, var(--d) 100%); }
.ph-in { padding: 48px 16px 64px; }
.ph h1 { margin: 8px 0 6px; font-weight: 900; font-size: clamp(30px, 6vw, 56px); letter-spacing: .04em; text-shadow: 0 4px 0 var(--p), 0 10px 24px #000a; }
.ph p { display: inline-block; margin: 6px 0 0; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: #ffffff26; border: 1px solid #ffffff40; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* サイトのカード一覧 */
.pw { max-width: 1180px; margin: -36px auto 0; padding: 0 16px 48px; position: relative; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.pgrid li { animation: rise .5s var(--ease) both; }
.pc-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px #10162810, 0 12px 30px -16px #10162860; transition: transform .3s var(--ease), box-shadow .3s; }
.pc-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px #10162814, 0 22px 40px -18px #10162880; }
.pc-art { display: block; aspect-ratio: 720 / 300; overflow: hidden; background: var(--d); }
.pc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pc-card:hover .pc-art img { transform: scale(1.06); }
.pc-card:hover .pc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 16px 14px; border-top: 4px solid var(--p); }
.pc-genre { align-self: flex-start; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--p); background: var(--p100); }
.pc-name { font-family: var(--f), var(--font); font-weight: var(--fw); font-size: 20px; line-height: 1.3; color: var(--d); text-wrap: balance; }
.pc-name.slant { font-style: italic; }
.pc-tag { font-size: 12.5px; color: #4a5163; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pc-go { font-weight: 700; color: var(--p); }
.pf { padding: 24px 16px 32px; text-align: center; font-size: 12px; color: var(--ink-3); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: .001; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
