:root {
  --color-primary: #ff6b6b;
  --color-primary-dark: #e74c3c;
  --color-primary-light: #ffacac;
  --color-accent: #4ecdc4;
  --color-accent-dark: #2eaaa0;
  --color-accent-light: #a0efe9;
  --color-dark: #2d3436;
  --color-light: #f8f8f8;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

.display-text {
  font-weight: 800;
  font-size: 4rem;
  line-height: 1.1;
  margin-top: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 107, 107, 0.4);
  color: white !important;
}

.btn-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
}

.btn-outline-primary {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff !important;
  background-color: var(--color-primary) !important;
}

.hero-area {
  position: relative;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #5f27cd 100%);
  color: white;
  padding: 1rem 0;
  overflow: hidden;
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.hero-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.6) 0%, rgba(255, 107, 107, 0) 35%),
    radial-gradient(circle at 80% 30%, rgba(78, 205, 196, 0.6) 0%, rgba(78, 205, 196, 0) 35%),
    radial-gradient(circle at 50% 80%, rgba(255, 234, 167, 0.5) 0%, rgba(255, 234, 167, 0) 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-area::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--color-light));
  z-index: 2;
}

.hero-area .decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero-area .decoration-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary-light);
  top: -100px;
  left: -50px;
  animation-delay: 0s;
}

.hero-area .decoration-2 {
  width: 200px;
  height: 200px;
  background: var(--color-accent-light);
  bottom: -50px;
  right: -50px;
  animation-delay: 2s;
}

.hero-area .decoration-3 {
  width: 150px;
  height: 150px;
  background: rgba(255, 234, 167, 0.6);
  top: 40%;
  right: 15%;
  animation-delay: 1s;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.photo-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.photo-image {
  width: 100%;
  height: auto;
  aspect-ratio: 636 / 620;
  object-fit: contain;
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: white;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
  .photo-card:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none) {
  .photo-overlay {
    display: none;
  }
}

.hero-right-box {
  width: 100%;
  max-width: 550px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 3;
}

.hero-right-box::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
  border-radius: 15px;
  opacity: 0.8;
  z-index: -1;
  filter: blur(10px);
  animation: rotate 6s linear infinite;
  transition: all 0.4s ease;
}

.hero-right-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(78, 205, 196, 0.3);
  transition: all 0.4s ease;
  border: 5px solid rgba(255, 255, 255, 0.3);
  transform: translateZ(0);
}

header {
  background-color: #343a40;
}

.navbar-dark .navbar-brand {
  font-weight: bold;
  color: white;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: slideDown 0.3s;
}

footer {
  background-color: #343a40;
  color: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.voting-complete {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  margin: 0 auto;
}

.voting-complete-icon {
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.voting-complete-title {
  color: var(--color-dark);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.voting-period-ended {
  background-color: rgba(255, 107, 107, 0.1);
  border-left: 5px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  text-align: center;
  border-radius: 8px;
  max-width: 800px;
}

.voting-period-ended h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.voting-period-ended p {
  color: var(--color-dark);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.bg-light {
  background-color: #f8f9fa !important;
}

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

.section-title {
  color: var(--color-accent);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.summary-title {
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.summary-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
  max-width: 90%;
}

.summary-point {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: left;
}

.point-icon {
  font-size: 1.2rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.bg-voting-rules {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  position: relative;
  overflow: hidden;
}

.voting-rules-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.voting-rules-title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px dashed rgba(255, 107, 107, 0.3);
  text-align: center;
}

.social-icons {
  display: flex;
}

.social-icon {
  color: white;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-decoration: none;
}

.youtube-icon {
  background-color: #FF0000;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.9rem;
}

.twitter-icon {
  background-color: #000;
  color: white;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 0.9rem;
}

@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes rotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 991px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .photo-overlay {
    padding: 0.5rem;
  }

  .photo-overlay h5 {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .display-text {
    font-size: 2rem;
    line-height: 1.25;
  }
}

@media (max-width: 768px) {
  .hero-area {
    padding: 0.5rem 0 1rem;
    min-height: auto;
  }

  .display-text {
    font-size: 2.2rem;
    margin-top: 0;
    line-height: 1.3;
  }

  .hero-right-box {
    max-width: 85%;
    margin: 0 auto 0.25rem;
  }

  .hero-right-box img {
    border-width: 4px;
  }

  .lead {
    font-size: 1.1rem !important;
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: all 0.5s ease-out;
}

.slide-up-enter-from {
  opacity: 0;
  transform: translateY(30px);
}

.zoom-enter-active,
.zoom-leave-active {
  transition: all 0.4s ease;
}

.zoom-enter-from {
  opacity: 0;
  transform: scale(0.9);
}

.vote-ended-notice {
  background-color: rgba(255, 107, 107, 0.1);
  border-left: 5px solid var(--color-primary);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 8px;
  text-align: center;
}

.vote-ended-notice h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.vote-ended-notice p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.vote-ended-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: inline-block;
}

.results-soon {
  font-weight: bold;
  color: var(--color-accent-dark);
}

.title-line {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .title-line {
    display: block;
    text-align: center;
    line-height: 1.1;
  }
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/9;
  margin-bottom: 2rem;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
  transition: transform 0.3s ease;
}

.youtube-container:hover iframe {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .youtube-container {
    margin-bottom: 1.5rem;
    padding-bottom: 56.25%;
  }
}

.modal-open {
  overflow: hidden;
}

.photo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.photo-modal-container {
  position: relative;
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
}

.photo-modal-content {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background-color: white;
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1200;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.close-modal-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.close-modal-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.photo-modal-image {
  background-color: #f8f8f8;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-modal-info {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gear-info {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.gear-item {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
}

.gear-item:last-child {
  margin-bottom: 0;
}

.gear-label {
  font-weight: 600;
  width: 80px;
  color: var(--color-dark);
}

.gear-value {
  flex: 1;
  color: #555;
}

.appeal-point {
  background-color: #fff8f8;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
}

.appeal-point h5 {
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

.appeal-point p {
  margin-bottom: 0;
  line-height: 1.6;
}

.photo-card {
  cursor: pointer;
}

@media (max-width: 767px) {
  .photo-modal-content {
    flex-direction: column;
    width: 95%;
  }

  .photo-modal-image {
    border-radius: 12px 12px 0 0;
    max-height: 50vh;
  }

  .photo-modal-info {
    border-radius: 0 0 12px 12px;
    padding: 1.25rem;
  }

  .gear-label {
    width: 70px;
  }

  .photo-overlay h5 {
    font-size: 0.85rem;
  }
}