/*
Theme Name: celsis - AI Services
Theme URI: https://celsis.jp
Description: Modern AI services corporate website theme with turquoise/cyan gradient design
Version: 1.0.0
Author: celsis
Author URI: https://celsis.jp
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: celsis-theme
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1F2937;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: #00BFA5;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #00D4D4;
}

button, [role="button"] {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 0rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 0rem;
  }
}

.flex {
  display: flex;
  min-height: 0;
  min-width: 0;
}

.grid {
  display: grid;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 0rem;
}

@media (min-width: 768px) {
  .navbar-content {
    height: 5rem;
    padding: 0 2rem;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
	max-width: 10rem;
}
.navbar-brand img { max-width: 10rem }
@media all and (max-width: 767px) {
	.navbar-brand { max-width: 7rem; }
	.navbar-brand img { max-width: 100% }
}
.navbar-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #00BFA5 0%, #00D4D4 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.navbar-menu {
  display: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
	.navbar-menu li { list-style: none; }
}

.navbar-menu a {
  color: #1F2937;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem
}

.navbar-menu a:hover {
  color: #00BFA5;
}

.navbar-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #00BFA5 0%, #00D4D4 100%);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 191, 165, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #00BFA5;
  border: 1px solid #00BFA5;
}

.btn-secondary:hover {
  background-color: rgba(0, 191, 165, 0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 0%, #E0F7F6 50%, #D4F1F4 100%);
  margin-top: 4rem;
  padding: 3rem 1rem 1rem;
}

@media (min-width: 768px) {
  .hero {
    margin-top: 2rem;
    padding: 0rem 1rem;
  }
}

.hero-content {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  animation: slideInLeft 0.6s ease-out;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.125rem;
  color: #6B7280;
  margin-bottom: 2rem;
  max-width: 32rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  animation: slideInRight 0.6s ease-out;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* スライダーの基本構造 */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
	padding-bottom: 4rem;
}

.hero-slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    transition: opacity 0.5s;
}

/* 2枚目などの左右反転用レイアウト */
.hero-grid.reversed {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 左右比率 */
    direction: rtl; /* 要素の順序を反転 */
}

.hero-grid.reversed .hero-text, 
.hero-grid.reversed .hero-visual {
    direction: ltr; /* テキスト方向を戻す */
}

/* --- テーマカラー設定 --- */

/* スライド1: ブルー系（既存） */
/* .slide-1 { background-color: #f8fafc; } */
.slide-1 .gradient-text { background: linear-gradient(135deg, #4721fb, #ab1dfe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* スライド2: グリーン系 */
/* .slide-2 { background-color: #f0fdf4; } */
.slide-2 .gradient-text { background: linear-gradient(135deg, #059669, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.slide-2 .btn-primary { background-color: #059669; border-color: #059669; }

/* スライド3: オレンジ/ゴールド系 */
/* .slide-3 { background-color: #fffbeb; } */
.slide-3 .gradient-text { background: linear-gradient(135deg, #d97706, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* スライド4: ダーク/バイオレット系 */
/* .slide-4 { background-color: #f5f3ff; } */
.slide-4 .gradient-text { background: linear-gradient(135deg, #7c3aed, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ドットナビゲーション */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active { background: #333; }

/* ============================================
   BADGE
   ============================================ */

.badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #00BFA5;
  background-color: #E0F7F6;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
  background: linear-gradient(to right, #00BFA5, #00D4D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
  padding: 1.5rem 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.service-card:hover,
.service-card.active {
  border-color: #00BFA5;
  background-color: #E0F7F6;
  box-shadow: 0 10px 15px -3px rgba(0, 191, 165, 0.1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.1), rgba(0, 212, 212, 0.1));
}

.service-card.active .service-icon {
  background: linear-gradient(135deg, #00BFA5, #00D4D4);
  color: white;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #00BFA5;
  transition: color 0.3s;
}

.service-card.active .service-icon svg {
  color: white;
}

.service-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.3;
}

.service-card.active .service-title {
  color: #00BFA5;
}

.service-detail {
  background: linear-gradient(to right, #E0F7F6, rgba(224, 247, 246, 0.5));
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.service-detail-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00BFA5, #00D4D4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-detail-content h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.25rem;
}

.service-detail-content p {
  font-size: 1rem;
  color: #6B7280;
  margin: 0;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 1rem;
  }
}

.section-header {
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 6rem;
  }
}

.section-title {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   REASONS SECTION
   ============================================ */

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.reason-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .reason-card {
    grid-template-columns: 1fr 1fr;
  }

  .reason-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
  }

  .reason-card:nth-child(even) .reason-image {
    order: -1;
  }
}

.reason-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 191, 165, 0.1);
}

.reason-image {
  width: 100%;
  height: 20rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .reason-image {
    height: auto;
  }
}

.reason-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reason-content {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .reason-content {
    padding: 3rem;
  }
}

.reason-content h3 {
  margin-bottom: 1rem;
}

.reason-content p {
  font-size: 1.125rem;
  color: #6B7280;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ============================================
   USECASES SECTION
   ============================================ */

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .usecases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usecase-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.usecase-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 191, 165, 0.1);
  border-color: #00BFA5;
}

.usecase-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.1), rgba(0, 212, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: #00BFA5;
}

.usecase-card:hover .usecase-icon {
  background: linear-gradient(135deg, #00BFA5, #00D4D4);
  color: white;
}

.usecase-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.usecase-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1F2937;
  transition: color 0.3s;
}

.usecase-card:hover .usecase-title {
  color: #00BFA5;
}

/* ============================================
   COMPANY INFO SECTION
   ============================================ */

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .company-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.company-item {
  padding: 1rem;
}

.company-label {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

.company-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #00BFA5;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, #00BFA5 0%, #00D4D4 100%);
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 8rem 1rem;
  }
}

.cta-section h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: #00BFA5;
}

.cta-section .btn-primary:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: #1F2937;
  color: white;
  padding: 3rem 1rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #D1D5DB;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #00BFA5, #00D4D4);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-description {
  font-size: 0.875rem;
  color: #9CA3AF;
}

.footer-divider {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-copyright {
  text-align: center;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .navbar-buttons {
    gap: 0.25rem;
  }

  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 2rem 1rem 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #666;
}
