:root {
  --primary-color: #15803d;
  --primary-light: #f0fdf4;
  --secondary-color: #fef08a;
  --accent-color: #eab308;
  --neutral-dark: #1f2937;
  --neutral-light: #fbfbfb;
  --inactive-color: #9ca3af;
}

/* 共通フォント設定 */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* Material Symbols アイコン調整 */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* Alpine.js ちらつき防止 */
[x-cloak] {
  display: none !important;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
  /* sticky ヘッダー（高さ約80px）に隠れないようアンカー遷移位置を調整 */
  scroll-padding-top: 80px;
}

/* 投票ステップのインタラクション */
.step-card {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card:hover {
  transform: translateY(-4px);
}

/* 非活性状態のボタンのカーソル制御 */
.btn-disabled {
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Extracted from Templates */
/* From ./parts/index-hero.html */

.index-hero {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(21, 128, 61, 0.5) 0%, rgba(15, 80, 30, 0.85) 100%), url('../img/index-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.index-hero .hero-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* From ./parts/index-about.html */

.about-section .about-image-wrapper {
  position: relative;
}

.about-section .about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid #bbf7d0; /* bg-green-200 */
  border-radius: 1rem;
  z-index: 0;
}

/* From ./parts/index-flow.html */

.flow-section {
  background-color: #f4f9f5; /* 爽やかなごく薄いグリーン背景 */
  padding: 6rem 1.5rem;
}

.flow-section .section-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: #16a34a; /* primary-color */
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.flow-section .section-title {
  font-size: 2rem;
  color: #1f2937; /* neutral_dark */
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .flow-section .section-title {
    font-size: 2.25rem;
  }
}

.flow-section .section-desc {
  font-size: 1rem;
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto 4rem;
  line-height: 1.75;
}

.flow-section .step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .flow-section .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flow-section .step-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 3rem 2rem 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.flow-section .step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(21, 128, 61, 0.08);
}

.flow-section .step-card.active-card {
  border: 2px solid #15803d;
  box-shadow: 0 10px 30px -5px rgba(21, 128, 61, 0.12);
}

.flow-section .step-card.active-card::before {
  content: '投票受付中';
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background-color: #15803d;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.flow-section .step-card.inactive-card {
  opacity: 0.85;
  background-color: #fbfbfb;
}

.flow-section .step-card.inactive-card::before {
  content: '期間外';
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background-color: #9ca3af;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.flow-section .step-header {
  margin-bottom: 1.5rem;
}

.flow-section .step-number {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.flow-section .step-number.active-text {
  color: #15803d;
}

.flow-section .step-number.inactive-text {
  color: #9ca3af;
}

.flow-section .step-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
}

.flow-section .meta-list {
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.flow-section .meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.flow-section .meta-item:not(:last-child) {
  margin-bottom: 0.5rem;
}

.flow-section .meta-label {
  font-weight: 500;
  color: #6b7280;
  min-width: 5rem;
  flex-shrink: 0;
}

.flow-section .meta-value {
  color: #1f2937;
}

.flow-section .step-description {
  font-size: 0.9375rem;
  line-height: 1.625;
  color: #4b5563;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.flow-section .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  background-color: #eab308; /* accent-color */
  color: #1c1917;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.flow-section .btn-primary:hover {
  background-color: #ca8a04;
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.3);
  transform: translateY(-1px);
}

.flow-section .btn-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #e2e8f0;
  color: #94a3b8;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}

.flow-section .btn-disabled .btn-subtext {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 0.125rem;
}

/* 追加項目用スタイル */

.flow-section .flow-final-note {
  max-width: 56rem;
  margin: 4rem auto 0;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border-left: 4px solid #15803d;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 767px) {
  .flow-section .flow-final-note {
    padding: 1.5rem;
  }
}

.flow-section .flow-final-note .note-text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.25rem;
}

.flow-section .flow-final-note .note-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #15803d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.flow-section .flow-final-note .note-link:hover {
  color: #166534;
}

/* From ./parts/index-sponsors.html */

.sponsors-section {
  background-color: #f9fafb;
}

.sponsors-section .sponsor-title {
  color: #111827;
}

.sponsors-section .sponsor-grid {
  /* モバイル・PC共通で2カラム */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sponsors-section .sponsor-grid .sponsor-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sponsors-section .sponsor-grid .sponsor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 128, 61, 0.4);
  box-shadow: 0 12px 20px -5px rgba(21, 128, 61, 0.12);
}

.sponsors-section .sponsor-grid .sponsor-card:hover .sponsor-img {
  transform: scale(1.05);
}

.sponsors-section .sponsor-grid .sponsor-card .sponsor-link {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.sponsors-section .sponsor-grid .sponsor-card .sponsor-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.4);
}

/* 10:6 Aspect Ratio Container (画像を大きく見せるため少し高さを抑える) */

.sponsors-section .sponsor-grid .sponsor-card .aspect-10-6 {
  aspect-ratio: 10 / 6;
  width: 100%;
  overflow: hidden;
}

.sponsors-section .sponsor-grid .sponsor-card .sponsor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* From ./parts/index-privacy.html */

.privacy-section {
  background-color: #f9fafb;
}

.privacy-section .privacy-container {
  max-width: 52rem;
}

.privacy-section .privacy-card {
  background-color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  border-top: 4px solid #15803d;
}

.privacy-section .info-badge {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}
