/**
 * VIFAMI Custom Styles
 * Additional styling for theme components
 */

/* ==========================================
   ボタンスタイル - 続き
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn i {
  font-size: 1.1em;
}

.btn-primary {
  background: white;
  color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  color: var(--primary-blue-dark);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.btn-blue {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(43, 125, 193, 0.3);
}

.btn-blue:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(43, 125, 193, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-light);
  border-color: var(--primary-blue);
}

.btn-outline-blue {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline-blue:hover {
  background: var(--primary-blue);
  color: white;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   サービスカード
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.service-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 2.5rem;
  box-shadow: 0 4px 20px rgba(43, 125, 193, 0.3);
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card-excerpt {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-card-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.service-card-features li:last-child {
  border-bottom: none;
}

.service-card-features li i {
  color: var(--primary-blue);
  font-size: 1rem;
}

.service-card-footer {
  margin-top: auto;
}

/* ==========================================
   特徴ボックス
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.feature-box-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue-light), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.feature-box:hover .feature-box-icon {
  transform: scale(1.15);
}

.feature-box-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-box-text {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ==========================================
   チームカード
   ========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-card-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-light);
}

.team-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-image img {
  transform: scale(1.1);
}

.team-card-content {
  padding: 1.5rem;
  text-align: center;
}

.team-card-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.team-card-position {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-card-excerpt {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================
   統計ボックス
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.stat-box {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.stat-box-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.stat-box-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-box-label {
  color: var(--text-gray);
  font-size: 1rem;
  font-weight: 500;
}

/* ==========================================
   CTAセクション
   ========================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: white;
}

.cta-title::after {
  display: none;
}

.cta-text {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

/* ==========================================
   セクションヘッダー
   ========================================== */
.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

/* ==========================================
   モバイルナビゲーション
   ========================================== */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: white;
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-inner {
  padding: 6rem 2rem 2rem;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
  display: block;
  padding: 1.2rem 0;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary-blue);
  padding-left: 1rem;
}

.mobile-nav .sub-menu {
  padding-left: 1.5rem;
}

.mobile-nav .sub-menu a {
  padding: 0.8rem 0;
  font-size: 0.95rem;
}

.mobile-nav-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.mobile-nav-contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.mobile-nav-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.mobile-nav-contact-item i {
  color: var(--primary-blue);
  font-size: 1.1rem;
  width: 20px;
}

/* ==========================================
   フッタースタイル
   ========================================== */
.site-footer {
  background: linear-gradient(135deg, #1e3a52 0%, #2B5F9E 100%);
  color: white;
}

.footer-top {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  margin-bottom: 2rem;
}

.footer-widget {
  height: 100%;
}

.footer-widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-blue);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact-item i {
  color: var(--accent-blue);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-item a:hover {
  color: white;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-menu a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-menu i {
  font-size: 0.7rem;
  color: var(--accent-blue);
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.95rem;
}

.footer-hours-day {
  font-weight: 600;
}

.footer-hours-time {
  color: var(--accent-blue);
}

.footer-cta-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 1.5rem;
}

.footer-cta-text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  padding: 2rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-bottom-menu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom-menu a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--accent-blue);
  transform: translateY(-3px);
  color: white;
}

/* ==========================================
   トップに戻るボタン
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 125, 193, 0.4);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(43, 125, 193, 0.5);
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */
@media (max-width: 1024px) {
  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .main-nav > ul {
    gap: 1.5rem;
  }
  
  .header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  /* ヘッダー */
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
  }
  
  /* ヒーロー */
  .hero {
    min-height: 600px;
    height: auto;
    padding: 8rem 0 6rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    width: 100%;
  }
  
  /* グリッド */
  .col-2,
  .col-3,
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .services-grid,
  .features-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* セクション */
  .section {
    padding: 60px 0;
  }
  
  /* フッター */
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-menu ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* ==========================================
   ユーティリティクラス
   ========================================== */
.u-text-center {
  text-align: center;
}

.u-text-right {
  text-align: right;
}

.u-m-t-0 {
  margin-top: 0 !important;
}

.u-m-b-0 {
  margin-bottom: 0 !important;
}

.u-p-0 {
  padding: 0 !important;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
