/* Seikyu Plus Inline Styles - Externalized */

body {
  font-family: "Inter", sans-serif;
}

.hero-carousel-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Swiper pagination styles */
.swiper-pagination {
  bottom: 20px !important;
  z-index: 25 !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: white;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #3b82f6;
}

/* WEB検索で見つけたSwiper標準CSS */
.swiper-container {
  width: 100%;
  height: 75vh;
  position: relative;
  z-index: 2;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  z-index: 4;
  pointer-events: none;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 50, 0.4) 0%,
    rgba(0, 0, 50, 0.2) 30%,
    rgba(255, 255, 255, 0.3) 70%,
    rgba(255, 255, 255, 0.5) 100%
  );
  z-index: 5;
  pointer-events: none;
}

#hero .slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex !important; /* 強制的にflexを適用 */
  align-items: center !important; /* 強制的に中央揃えを適用 */
  justify-content: flex-start !important; /* 左寄せに変更 */
  z-index: 6;
}

#hero .swiper-slide:nth-child(1) .slide-content {
  align-items: center;
}

#hero .swiper-slide:nth-child(1) .slide-content .flex-col {
  flex-direction: row !important;
}

#hero .swiper-slide:nth-child(1) .slide-content .tooltip-container {
  flex-grow: 1;
}

#hero .swiper-slide:nth-child(1) .slide-content .hero-button {
  width: 100%;
}

/* ヒーローセクションのテキスト視認性向上のためのスタイル */
#hero .slide-content h1 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  position: relative;
  z-index: 7;
}

.text-shadow-lg {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* 袋文字スタイル（白いボーダーで縁取りされたテキスト） */
.text-stroke-white {
  -webkit-text-stroke: 4px white;
  text-stroke: 4px white;
  paint-order: stroke fill;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -0.25rem;
}

#hero .slide-content p {
  color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
  position: relative;
  z-index: 7;
}

#hero .slide-content .text-primary {
  display: inline-block;

  padding: 0.2em 0.5em;
  border-radius: 0.2em; /* 明るいブルー */
  position: relative;
  text-shadow: none !important;
  z-index: 7;
}

#hero .slide-content .text-gray-900 {
  color: #ffffff !important;

  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  position: relative;
  z-index: 7;
}

#hero .slide-content .text-gray-700 {
  color: #f3f4f6 !important; /* 明るいグレー */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
  position: relative;
  z-index: 7;
}

/* コンテンツ背景グラデーション */
.slide-content .max-w-2xl {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 50, 0.25) 0%,
    rgba(0, 0, 50, 0.1) 50%,
    rgba(255, 255, 255, 0.2) 100%
  ) !important;
  padding: 2.5rem !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ボタンの視認性向上 */
.slide-content .hero-button-primary {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.slide-content .hero-button-primary:hover {
  background-color: #2563eb !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

.slide-content .hero-button-secondary {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.slide-content .hero-button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #60a5fa !important;
  color: #60a5fa !important;
}

/* Remove old carousel CSS - using Swiper only */
.carousel-caption-custom {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.carousel-caption-custom h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.carousel-caption-custom p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.hero-content-overlay {
  background: rgba(0, 0, 0, 0.6);
  max-width: 700px;
  z-index: 20;
  transform: translate(-50%, -50%);
  padding: 3rem;
  border-radius: 0.75rem; /* rounded-lg */
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.hero-content-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.carousel-control-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  z-index: 25;
}

.carousel-control-prev-custom {
  left: 20px;
}

.carousel-control-next-custom {
  right: 20px;
}

/* FAQ Accordion Styles */
.faq-question {
  position: relative;
  outline: none;
}

.faq-question:focus {
  outline: 2px solid #0f4c81;
  outline-offset: 2px;
}

/* Scroll Animation Styles */
[class*="animate-"] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[class*="animate-"].animate-in {
  opacity: 1;
}

/* Fade animations */
.animate-fade-up {
  transform: translateY(30px);
}

.animate-fade-up.animate-in {
  transform: translateY(0);
}

.animate-fade-down {
  transform: translateY(-30px);
}

.animate-fade-down.animate-in {
  transform: translateY(0);
}

/* Slide animations */
.animate-slide-left {
  transform: translateX(50px);
}

.animate-slide-left.animate-in {
  transform: translateX(0);
}

.animate-slide-right {
  transform: translateX(-50px);
}

.animate-slide-right.animate-in {
  transform: translateX(0);
}

.animate-slide-up {
  transform: translateY(40px);
}

.animate-slide-up.animate-in {
  transform: translateY(0);
}

/* Scale animation */
.animate-scale-in {
  transform: scale(0.8);
}

.animate-scale-in.animate-in {
  transform: scale(1);
}

/* Staggered animation support */
[class*="animate-"][style*="animation-delay"] {
  transition-delay: var(--delay, 0s);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  [class*="animate-"] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Hero Button Styles */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.hero-button-primary {
  border: 2px solid #0f4c81;
  color: #0f4c81;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-button-primary:hover {
  background: #0f4c81;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 76, 129, 0.3);
}

.hero-button-secondary {
  background: rgba(15, 76, 129, 0.9);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-button-secondary:hover {
  background: #0a3a6b;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 76, 129, 0.4);
}

/* Mobile Menu Icon Animation */
#mobile-menu-icon {
  transition: transform 0.3s ease-in-out;
}

#mobile-menu-icon.rotate-180 {
  transform: rotate(180deg);
}

/* Card Height Uniformity */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

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

.uniform-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 350px;
}

.uniform-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.uniform-card .card-text {
  flex-grow: 1;
}

.uniform-card .card-action {
  margin-top: auto;
  padding-top: 1rem;
}

/* Process Step Cards - Fixed Height */
.process-step .bg-white {
  min-height: 200px;
  height: auto;
  padding: 1.5rem 1rem;
}

/* Feature Cards - Fixed Height */
.feature-card-fixed {
  min-height: 500px;
}

/* Merit Cards - Fixed Height */
.merit-card-fixed {
  min-height: 350px;
}

/* Testimonial Cards - Fixed Height */
.testimonial-card-fixed {
  min-height: 420px;
}

/* Resource Cards - Fixed Height */
.resource-card-fixed {
  min-height: 580px;
}

/* Additional padding for better text spacing */
.feature-card-fixed p,
.testimonial-card-fixed p,
.resource-card-fixed p {
  line-height: 1.6;
}

/* Process Step Cards - Text Overflow Prevention */
.process-step .bg-white {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.process-step .bg-white h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.process-step .bg-white p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Ensure all cards have consistent spacing */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Carousel Indicators */
.carousel-indicator {
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  opacity: 1 !important;
  background-color: #0f4c81;
}

.carousel-indicator:hover {
  opacity: 0.8 !important;
}

/* Carousel overlay animation */
.carousel-item-custom .bg-gradient-to-r {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.8s ease-in-out;
}

.carousel-item-custom.active .bg-gradient-to-r {
  opacity: 1;
  transform: translateX(0);
}

/* Tooltip Styles */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1000;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Disabled link styling */
.link-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.link-disabled:hover {
  text-decoration: none !important;
  background-color: inherit !important;
  color: inherit !important;
}

/* Smooth scroll offset for fixed header */
html {
  scroll-behavior: smooth;
}

/* Add padding-top to sections to account for fixed header */
section[id] {
  scroll-margin-top: 100px;
}

/* Loading Screen Styles */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999999 !important;
  transition: all 0.3s;
}

#loading.loaded {
  opacity: 0;
  visibility: hidden;
}

#loading .center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

#loading .spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border: 6px solid rgba(15, 76, 129, 0.1);
  border-radius: 50%;
  border-top: 6px solid #0f4c81;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 強制的なローディング画面スタイル */
#loading {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
}

/* reCAPTCHAバッジのz-index調整 - クッキーコンセントの下、コンテンツの上 */
.grecaptcha-badge {
  z-index: 40 !important;
  position: fixed !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* reCAPTCHAバッジのiframeも確実に前面に表示 */
iframe[src*="recaptcha"] {
  z-index: 40 !important;
  position: fixed !important;
}

/* Adjust for different screen sizes */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 80px;
  }
}

/* スマホサイズ向けのスクロールマージン調整 */
@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 80px;
  }
}

/* 小さいスマホ画面向けのスクロールマージン調整 */
@media (max-width: 480px) {
  section[id] {
    scroll-margin-top: 80px;
  }
}

/* Table column overlay styles */
.table-container {
  position: relative;
}

.column-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 19%; /* w-3/16 = 3/16 = 18.75% */
  left: 25%; /* w-1/4 = 1/4 = 25% (after the first column) */
  background-color: rgba(59, 130, 246, 0.1);
  border: 3px solid rgba(59, 130, 246, 0.7);
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.column-overlay::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid rgba(59, 130, 246, 0.8);
  border-radius: 8px;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .column-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 19%; /* Slightly wider on mobile for better visibility */
    left: 25%;
  }
}
@media (max-width: 640px) {
  .column-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 19%; /* Even wider on small screens */
    left: 25%;
  }
}
