/*
Theme Name: LIBE PC SCHOOL
Theme URI: https://libe-pc.com/
Author: LIBE PC SCHOOL
Author URI: https://libe-pc.com/
Description: LIBE PC SCHOOL 公式テーマ - 福岡博多のPCスクール
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: libe-pc
*/

/* ========================================
   Base Reset & Custom Styles
   (Tailwind CDN handles most utility classes)
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Custom Animations
   ======================================== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out both;
}

.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}

/* ========================================
   Navigation
   ======================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #fff, rgba(239,246,255,0.5), #f8fafc);
  z-index: -2;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(to bottom left, rgba(219,234,254,0.4), transparent, transparent);
  z-index: -1;
  border-bottom-left-radius: 10rem;
}

/* ========================================
   Course Cards
   ======================================== */
.course-card {
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(15,23,42,0.1);
}

.course-card.ai-card {
  border-color: #e0e7ff;
}
.course-card.ai-card:hover {
  border-color: #6366f1;
}
.course-card:not(.ai-card) {
  border-color: #f1f5f9;
}
.course-card:not(.ai-card):hover {
  border-color: #3b82f6;
}

.course-card:hover .card-arrow {
  background-color: #3b82f6;
  color: #fff;
}
.course-card.ai-card:hover .card-arrow {
  background-color: #6366f1;
  color: #fff;
}

.course-card:hover .card-title {
  color: #3b82f6;
}

/* ========================================
   Category Filter Tabs
   ======================================== */
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  background: #f8fafc;
  color: #64748b;
}
.cat-tab:hover {
  background: #f1f5f9;
  color: #334155;
}
.cat-tab.active {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(15,23,42,0.2);
  transform: scale(1.05);
}
.cat-tab.active svg {
  color: #facc15;
}

/* ========================================
   Custom Section (Dark)
   ======================================== */
.custom-section {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
}
.custom-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #0f172a, #0f172a, rgba(30,58,138,0.5));
}

/* Style Cards */
.style-card {
  display: flex;
  gap: 1.25rem;
}
.style-card:hover .style-icon {
  color: #fff;
}
.style-card:hover .style-title-blue  { color: #60a5fa; }
.style-card:hover .style-title-indigo { color: #818cf8; }
.style-card:hover .style-title-orange { color: #fb923c; }

/* Chat Bubbles */
.chat-left {
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
}
.chat-right-blue {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.chat-right-orange {
  background: linear-gradient(to right, #ea580c, #dc2626);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}

/* ========================================
   Map Hover Overlay
   ======================================== */
.map-wrapper {
  position: relative;
  overflow: hidden;
}
.map-overlay {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(5rem);
  transition: transform 0.3s;
}
.map-wrapper:hover .map-overlay {
  transform: translateY(0);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #0f172a;
  color: #fff;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, #3b82f6, transparent);
  opacity: 0.5;
}

/* ========================================
   Form Styles
   ======================================== */
.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-input-indigo:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.form-checkbox-label:hover {
  border-color: #60a5fa;
}

/* ========================================
   Responsive Mobile Menu
   ======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  padding: 2rem;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

/* ========================================
   Utility
   ======================================== */
.gradient-text {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WordPress admin bar fix */
body.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }
}
