/* Gentle Landing Page Styles */

/* Soft animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(8px) rotate(-1deg); }
  66% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Apply animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 10s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slide-in-left 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease-out forwards;
}

.animate-gentle-pulse {
  animation: gentle-pulse 3s ease-in-out infinite;
}

/* Animation delays */
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-1500 { animation-delay: 1.5s; }
.animation-delay-2000 { animation-delay: 2s; }

/* Soft hover effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gentle gradients */
.bg-gentle-gradient {
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.1) 0%,
    rgba(173, 216, 230, 0.1) 25%,
    rgba(221, 160, 221, 0.1) 50%,
    rgba(255, 218, 185, 0.1) 75%,
    rgba(152, 251, 152, 0.1) 100%);
}

/* Soft shadows */
.shadow-gentle {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.shadow-gentle-lg {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Rounded corners */
.rounded-gentle {
  border-radius: 2rem;
}

.rounded-gentle-lg {
  border-radius: 3rem;
}

/* Soft borders */
.border-gentle {
  border: 2px solid rgba(255, 182, 193, 0.3);
}

/* Gentle text colors */
.text-gentle-pink {
  color: #f472b6;
}

.text-gentle-blue {
  color: #60a5fa;
}

.text-gentle-purple {
  color: #a78bfa;
}

/* Soft backgrounds */
.bg-gentle-pink {
  background-color: rgba(255, 182, 193, 0.1);
}

.bg-gentle-blue {
  background-color: rgba(173, 216, 230, 0.1);
}

.bg-gentle-purple {
  background-color: rgba(221, 160, 221, 0.1);
}

/* Typing effect */
#typing-display {
  border-right: 3px solid #FCA000;
  animation: typing 3s steps(20) 1s 1 normal both, blink 1s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Scroll indicator */
@keyframes scroll-indicator {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.animate-scroll-indicator {
  animation: scroll-indicator 2s infinite;
}

/* Gentle button hover effects */
.btn-gentle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-gentle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-gentle:hover::before {
  left: 100%;
}

.btn-gentle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Soft focus states */
.focus-gentle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 160, 0, 0.3);
  border-color: #FCA000;
}

/* Gentle loading animation */
@keyframes gentle-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-gentle-spin {
  animation: gentle-spin 2s linear infinite;
}

/* Responsive gentle spacing */
@media (max-width: 640px) {
  .gentle-mobile-spacing {
    padding: 1rem;
  }
  
  .gentle-mobile-text {
    font-size: 1.25rem;
    line-height: 1.6;
  }
}

/* Gentle transitions for all interactive elements */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Soft selection colors */
::selection {
  background-color: rgba(252, 160, 0, 0.3);
  color: #1f2937;
}

::-moz-selection {
  background-color: rgba(252, 160, 0, 0.3);
  color: #1f2937;
}
/* テーブルソート機能のスタイル */
th[data-action*="table-sort#sort"] {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all 0.2s ease;
}

th[data-action*="table-sort#sort"]:hover {
  background-color: rgba(59, 130, 246, 0.08) !important;
}

/* 昇順ソート時のスタイル */
th[data-action*="table-sort#sort"].sort-asc {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border-bottom: 2px solid #3b82f6;
  color: #1e40af;
  font-weight: 600;
}

/* 降順ソート時のスタイル */
th[data-action*="table-sort#sort"].sort-desc {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border-bottom: 2px solid #3b82f6;
  color: #1e40af;
  font-weight: 600;
}

/* ソートアイコンの固定幅で列幅の変動を防ぐ */
th[data-action*="table-sort#sort"] .sort-icon {
  display: inline-block;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

/* ソートアイコンコンテナのスタイル */
th[data-action*="table-sort#sort"] .sort-icon-container {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* カスタムフィルターアイコン */
th[data-action*="table-sort#sort"] .filter-icon-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

th[data-action*="table-sort#sort"] .filter-icon-custom svg {
  width: 10px;
  height: 10px;
  display: block;
}

/* 矢印アイコンを少し大きく */
th[data-action*="table-sort#sort"] .sort-arrow-icon {
  font-size: 12px;
}

/* 回答者別スコアテーブルのヘッダーホバースタイル - 各列の背景色に合わせて調整 */
/* 回答者列のホバー */
#respondent-score-table-wrapper th.respondent-score-sticky[data-action*="table-sort#sort"]:hover {
  background-color: #f1f5f9 !important; /* slate-100 */
}

/* 小項目ヘッダーのホバー */
#respondent-score-table-wrapper th.minor-category-header[data-action*="table-sort#sort"]:hover {
  background-color: #e2e8f0 !important; /* slate-200 */
}

/* 回答者別スコアテーブルのスタイル */
#respondent-score-table-wrapper {
  --respondent-score-sticky-left: 0px;
}

#respondent-score-table-wrapper .respondent-score-sticky {
  position: sticky;
  left: var(--respondent-score-sticky-left, 0px);
  z-index: 60;
  background-color: #fff !important;
}

/* 大項目ヘッダー（回答者別スコアテーブル）の通常時の背景色を明るく */
#respondent-score-table-wrapper th.major-category-header {
  background: linear-gradient(to right, #e2e8f0, #f1f5f9, #e2e8f0) !important; /* slate-200/100/200相当の明るい色 */
  color: #1e293b !important; /* slate-800 */
  position: relative;
  overflow: hidden; /* 角丸を保持するため */
}

#respondent-score-table-wrapper th.major-category-header[data-action*="table-sort#sort"] {
  transition: background 0.3s ease !important;
}

/* 大項目ヘッダーのホバー用オーバーレイ */
#respondent-score-table-wrapper th.major-category-header[data-action*="table-sort#sort"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #cbd5e1, #e2e8f0, #cbd5e1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  border-top-left-radius: 0.75rem; /* rounded-t-xl */
  border-top-right-radius: 0.75rem; /* rounded-t-xl */
}

#respondent-score-table-wrapper th.major-category-header[data-action*="table-sort#sort"]:hover::before {
  opacity: 1;
}

#respondent-score-table-wrapper th.major-category-header[data-action*="table-sort#sort"] > * {
  position: relative;
  z-index: 2;
}

#respondent-score-table-wrapper th.major-category-header span {
  color: #1e293b !important; /* slate-800 */
}

#respondent-score-table-wrapper th.major-category-header .text-slate-600 {
  color: #475569 !important; /* slate-600 */
}

#respondent-score-table-wrapper th.major-category-header .sort-icon-container {
  flex-shrink: 0;
}

/* 全体スコアヘッダーの通常時の背景色を明るく */
#respondent-score-table-wrapper th.overall-score-header {
  background: linear-gradient(to right, #c7d2fe, #e0e7ff, #c7d2fe) !important; /* indigo-200/100/200相当の明るい色 */
  color: #312e81 !important; /* indigo-900 */
  position: relative;
  overflow: hidden; /* 角丸を保持するため */
}

#respondent-score-table-wrapper th.overall-score-header[data-action*="table-sort#sort"] {
  transition: background 0.3s ease !important;
}

/* 全体スコアヘッダーのホバー用オーバーレイ */
#respondent-score-table-wrapper th.overall-score-header[data-action*="table-sort#sort"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #a5b4fc, #c7d2fe, #a5b4fc);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  border-top-left-radius: 0.75rem; /* rounded-t-xl */
  border-top-right-radius: 0.75rem; /* rounded-t-xl */
}

#respondent-score-table-wrapper th.overall-score-header[data-action*="table-sort#sort"]:hover::before {
  opacity: 1;
}

#respondent-score-table-wrapper th.overall-score-header[data-action*="table-sort#sort"] > * {
  position: relative;
  z-index: 2;
}

#respondent-score-table-wrapper th.overall-score-header span {
  color: #312e81 !important; /* indigo-900 */
}

#respondent-score-table-wrapper th.overall-score-header .text-indigo-700 {
  color: #4338ca !important; /* indigo-700 */
}

#respondent-score-table-wrapper th.overall-score-header .sort-icon-container {
  flex-shrink: 0;
}

/* 小項目ヘッダー（回答者別スコアテーブル）のテキストを中央に、ソートアイコンをインライン配置 */
#respondent-score-table-wrapper th.minor-category-header {
  vertical-align: middle;
  background-color: #f8fafc !important; /* slate-50相当の明るい色 */
  transition: background-color 0.3s ease;
}

#respondent-score-table-wrapper th.minor-category-header .minor-category-text {
  display: inline;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

#respondent-score-table-wrapper th.minor-category-header .sort-icon {
  display: inline-block;
  line-height: 1;
  width: 10px;
  height: 10px;
  vertical-align: middle;
}

/* 小項目ヘッダーのソート中のスタイル（明るい色で見やすく） */
#respondent-score-table-wrapper th.minor-category-header.sort-asc,
#respondent-score-table-wrapper th.minor-category-header.sort-desc {
  background-color: #f0f4ff !important; /* indigo-50相当の明るい色 */
  border-bottom: 2px solid #818cf8; /* indigo-400 */
  color: #312e81; /* indigo-900 */
}

#respondent-score-table-wrapper th.minor-category-header.sort-asc:hover,
#respondent-score-table-wrapper th.minor-category-header.sort-desc:hover {
  background-color: #e0e7ff !important; /* indigo-100相当 */
}

/* 大項目ヘッダーのソート中のスタイル - より濃い色で見やすく */
#respondent-score-table-wrapper th.major-category-header.sort-asc,
#respondent-score-table-wrapper th.major-category-header.sort-desc {
  background: linear-gradient(to right, #cbd5e1, #e2e8f0, #cbd5e1) !important; /* slate-300相当の明るい色 */
  border-bottom: 2px solid #64748b; /* slate-500 */
  color: #0f172a !important; /* slate-900 */
}

/* 全体スコアヘッダーのソート中のスタイル - より濃い色で見やすく */
#respondent-score-table-wrapper th.overall-score-header.sort-asc,
#respondent-score-table-wrapper th.overall-score-header.sort-desc {
  background: linear-gradient(to right, #a5b4fc, #c7d2fe, #a5b4fc) !important; /* indigo-400相当の明るい色 */
  border-bottom: 2px solid #6366f1; /* indigo-500 */
  color: #1e1b4b !important; /* indigo-950 */
}

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.align-heart-row {
  display: inline-flex;
  gap: 6px;
}
.align-heart {
  width: 20px;
  height: 18px;
}
.align-heart svg {
  width: 100%;
  height: 100%;
}
