﻿@charset "UTF-8";

/* アニメーション定義 */
@keyframes arrowMove {
  0% { transform: skew(45deg) translateX(0); }
  100% { transform: skew(45deg) translateX(10px); }
}

@keyframes cardHover {
  0% { transform: translateY(0); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
  100% { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }
}

/* フォント設定 */
@font-face {
  font-family: 'genshin';
  src: url("../fonts/GenShinGothic-Bold.ttf") format("truetype");
  font-weight: bold;
}

@font-face {
  font-family: 'emugo';
  src: url("../fonts/GenEiMGothic2-Heavy.ttf") format("truetype");
  font-weight: black;
}

/* フォントクラス */
.f-genkaku {
  font-family: source-han-sans-japanese, sans-serif;
  font-style: normal;
}

.w-genkaku-bo {
  font-weight: 700;
}

.w-genkaku-re {
  font-weight: 400;
}

.f-genshin {
  font-family: 'genshin';
}

.f-emugo {
  font-family: 'emugo';
}

.f-mei {
  font-family: 'メイリオ', Meiryo, sans-serif;
}

/* グラデーション */
.grad {
  background: linear-gradient(to right, #22DCFD 0%, #1C91E2 60%, #5865B9 100%);
}

/* センターレイアウト */
.center {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .center {
    padding: 0 20px;
  }
}

/* ソートボタンセクション */
section#sortBtn .center {
  padding: 0 5px;
}

section#sortBtn .center .btn-wrap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

@media screen and (max-width: 1024px) {
  section#sortBtn .center .btn-wrap {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (max-width: 560px) {
  section#sortBtn .center .btn-wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
}

section#sortBtn .center .btn-wrap a.btn {
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: #F8F9FA;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

section#sortBtn .center .btn-wrap a.btn:hover {
  background: #1C91E2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(28, 145, 226, 0.3);
}

section#sortBtn .center .btn-wrap a.btn .text {
  font-weight: 500;
  font-size: 14px;
  margin-top: 8px;
}

section#sortBtn .center .btn-wrap a.btn .icon {
  max-width: 30px;
  max-height: 30px;
}

section#sortBtn .center .btn-wrap a.btn .icon img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 検索結果セクション */
section#serchResult {
  padding: 80px 0;
}

section#serchResult .center .panel-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media screen and (max-width: 1024px) {
  section#serchResult .center .panel-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media screen and (max-width: 560px) {
  section#serchResult .center .panel-wrap {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  section#serchResult .center .panel-wrap .panel .under .btn-wrap a.link-btn {
    font-size: 11px;
    padding: 5px 12px;
    gap: 3px;
    min-width: 90px;
  }
}

/* パネルスタイル */
section#serchResult .center .panel-wrap .panel {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

section#serchResult .center .panel-wrap .panel:hover {
  animation: cardHover 0.3s ease forwards;
  transform: translateY(-8px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.1),
    0 5px 15px rgba(28, 145, 226, 0.2),
    0 0 20px rgba(34, 220, 253, 0.1);
}

/* 画像セクション */
section#serchResult .center .panel-wrap .panel .image {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #22DCFD 0%, #1C91E2 50%, #5865B9 100%);
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  perspective: 1000px;
  transform-style: preserve-3d;
}

section#serchResult .center .panel-wrap .panel .image a {
  display: block;
  width: 100%;
  height: 100%;
}

section#serchResult .center .panel-wrap .panel .image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section#serchResult .center .panel-wrap .panel .image::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, transparent);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

section#serchResult .center .panel-wrap .panel .image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.9), 
    transparent);
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.6s ease;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

section#serchResult .center .panel-wrap .panel:hover .image img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

section#serchResult .center .panel-wrap .panel:hover .image::before {
  opacity: 0;
}

section#serchResult .center .panel-wrap .panel:hover .image::after {
  left: 100%;
  animation: sparkleBeam 0.8s ease-out;
}


@keyframes sparkleBeam {
  0% { 
    left: -100%; 
    opacity: 0;
    width: 100%;
  }
  50% { 
    opacity: 1;
    width: 150%;
  }
  100% { 
    left: 100%; 
    opacity: 0;
    width: 100%;
  }
}

/* コンテンツエリア */
section#serchResult .center .panel-wrap .panel .under {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

section#serchResult .center .panel-wrap .panel .under .content {
  margin-bottom: 20px;
  flex-grow: 1;
}

section#serchResult .center .panel-wrap .panel .under .content .title {
  margin-bottom: 12px;
}

section#serchResult .center .panel-wrap .panel .under .content .title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

section#serchResult .center .panel-wrap .panel .under .content .subtitle {
  margin-bottom: 12px;
}

section#serchResult .center .panel-wrap .panel .under .content .subtitle h4 {
  font-weight: 600;
  font-size: 16px;
  color: #1C91E2;
  line-height: 1.5;
}

section#serchResult .center .panel-wrap .panel .under .content .subtitle h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

section#serchResult .center .panel-wrap .panel .under .content .subtitle h4 a:hover {
  color: #22DCFD;
}

section#serchResult .center .panel-wrap .panel .under .content .description p {
  font-weight: 400;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ツールセクション */
section#serchResult .center .panel-wrap .panel .under .tool-wrap {
  margin-bottom: 20px;
}

section#serchResult .center .panel-wrap .panel .under .tool-wrap p.label {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

section#serchResult .center .panel-wrap .panel .under .tool-wrap .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

section#serchResult .center .panel-wrap .panel .under .tool-wrap .tools .tool {
  width: fit-content;
  padding: 6px 12px;
  background: #1C91E2;
  color: white;
  font-weight: 500;
  font-size: 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

section#serchResult .center .panel-wrap .panel .under .tool-wrap .tools .tool:hover {
  background: #22DCFD;
  transform: translateY(-1px);
}

/* ボタンセクション */
section#serchResult .center .panel-wrap .panel .under .btn-wrap {
  margin-top: auto;
  text-align: center;
}

section#serchResult .center .panel-wrap .panel .under .btn-wrap a.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #6c757d;
  background: #f8f9fa;
  color: #495057;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 14px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: auto;
  min-width: 100px;
}

section#serchResult .center .panel-wrap .panel .under .btn-wrap a.link-btn:hover {
  background: #495057;
  color: white;
  border-color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(73, 80, 87, 0.2);
}

section#serchResult .center .panel-wrap .panel .under .btn-wrap a.link-btn .arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

section#serchResult .center .panel-wrap .panel .under .btn-wrap a.link-btn:hover .arrow {
  transform: translateX(2px);
}

/* ページネーション */
.pagenation {
  padding: 60px 0;
  text-align: center;
}

.pagenation ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagenation ul.page-numbers li {
  margin: 0;
}

.pagenation ul.page-numbers li a,
.pagenation ul.page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  color: #374151;
  transition: all 0.3s ease;
}

.pagenation ul.page-numbers li a:hover {
  border-color: #1C91E2;
  color: #1C91E2;
  background: #F0F9FF;
}

.pagenation ul.page-numbers li span.current {
  background: #1C91E2;
  border-color: #1C91E2;
  color: white;
}