@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

#pokemiku{
	position: relative;
	width:100%;
	margin: 0 auto;
	color: #333;
	font-family: "Noto Sans JP", sans-serif;
	background: #f6f6f6;
	font-size:15px;
}

/* ======================
  hero
====================== */
.hero {
    position: fixed;
    inset: 0;
    width:100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

/* swiper共通 */
.hero .hero_swiper,
.hero .swiper-wrapper,
.hero .swiper-slide {
    width: 100%;
    height: 100%;
}

/* スライド */
.hero .swiper-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ぼかし背景 ===== */
.hero .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.8);
    transform: scale(1.1);
    z-index: 0;
}

/* ===== メイン画像 ===== */
.hero .swiper-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    will-change: filter, transform;
    transition: filter 0.15s linear, transform 0.15s linear;
}

/* ======================
  main
====================== */
.page_body {
    position: relative;
    z-index: 1;
    margin: 100vh auto 0;
    background: #fff;
    width:100%;
}

.content {
    min-height: 200vh;
    padding: 40px 20px;
    background: #f6f6f6;
}

.introText {
	text-align:center;
	margin:20px 0 60px 0;
	line-height:2;
	font-weight:600;
	font-family: "Zen Maru Gothic", sans-serif;
}

.introText >span {
	display:inline-block;
	margin-top:15px;
	font-size:150%;
}

/* ======================
  grid
====================== */
.grid_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    list-style: none;
}

/* ======================
  card
====================== */
.card {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
}

.card .img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card .img a {
    display: block;
    width: 100%;
    height: 100%;
}

.type {
    margin-bottom: 2px;
    font-size: 2.5rem;
    font-family: "Dela Gothic One", sans-serif;
}

.author {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.author span {
    font-size: 0.9rem;
}

.link {
    display: flex;
    justify-content:center;
    align-items:center;
    font-size: 1rem;
    padding: 2%;
    border-radius:3px;
    color: #fff;
    background:#000;
}

.link:hover {
    opacity: 0.8;
}

.xIcon {
	width:15px;
	margin-right:8px;
}

/* ======================
  fadein
====================== */
.card.fadein {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.card.fadein.show {
    opacity: 1;
    transform: translateY(0);
}

/* ======================
  modal
====================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal_inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.7) translateY(20px);
  opacity: 0;
  filter: blur(10px);
  transition: 
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    filter 0.4s ease;
}

.modal.show .modal_inner {
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: blur(0);
}

.modal_img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
}

/* 閉じるボタン */
.modal_close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
}

.modal_close::before,
.modal_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #333;
}

.modal_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ======================
  hover
====================== */
@media (hover: hover) {
    .card.show:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

    .card:hover img {
        transform: scale(1.08);
    }
}

.pc_none {
	display: none;
}