:root {
  --orange: #f7901e;
  --bg: #fffaf2;
  --text: #333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: linear-gradient(135deg, var(--orange), #ffae42);
  color: white;
  text-align: center;
  padding: 2rem 2rem 3rem;
  position: relative;
  overflow: hidden;
  min-height: 25vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: -1px;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('image/pattern.png') repeat;
  opacity: 0.1;
  z-index: 1;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 50px;
  background-color: var(--bg);
  border-radius: 100% 100% 0 0;
  z-index: 2;
}

.header-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 0;
}

.visual-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  padding: 0;
  margin: 0;
}

.character {
  display: none;
}

.floating-character {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  max-width: 240px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
  z-index: 100;
  pointer-events: all;
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-character:hover {
  animation: characterWave 1s ease-in-out;
}

@keyframes characterWave {
  0% { transform: translateY(-50%) rotate(0deg); }
  25% { transform: translateY(-50%) rotate(-10deg); }
  75% { transform: translateY(-50%) rotate(10deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}

.floating-character::after {
  content: 'たくさん応募してや〜';
  position: absolute;
  right: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.floating-character::before {
  content: '';
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-character:hover::after,
.floating-character:hover::before {
  opacity: 1;
  visibility: visible;
  right: calc(100% + 10px);
  animation: popMessage 0.3s ease forwards;
}

.floating-character.clicked {
  animation: wave 0.5s ease;
}

@keyframes wave {
  0% { transform: translateY(-50%) rotate(0deg); }
  25% { transform: translateY(-50%) rotate(-15deg); }
  75% { transform: translateY(-50%) rotate(15deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}

.logo {
  max-width: 260px;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
  margin: 0;
  padding: 0;
  display: block;
}

.text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.flier {
  max-width: 100%;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

h1 {
  font-size: 3.5rem;
  margin: 0;
  padding: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 2px;
  line-height: 1.2;
}

p.subtitle {
  font-size: 2rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-weight: bold;
}

section {
  padding: 2rem 1.5rem;
  max-width: 800px;
  margin: auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--orange);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--orange);
  margin-top: 5px;
  border-radius: 2px;
}

.steps, .faq {
  margin-top: 1rem;
  padding-left: 1rem;
}

.steps li, .faq li {
  margin-bottom: 0.7rem;
}

.faq li {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.faq li strong {
  display: block;
  color: #333;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.faq li p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.question {
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.answer {
  color: #666;
  line-height: 1.6;
  padding-left: 20px;
}

ul {
  list-style: none;
  padding: 0;
}

.fixed-button {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b2b, var(--orange));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1.2rem 3rem;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 99;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border: 3px solid white;
}

.fixed-button:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 1.5rem 1rem;
  color: #777;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo {
  max-width: 100px;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.social-links a {
  color: #333;
  text-decoration: none;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links img {
  width: 28px;
  height: 28px;
  filter: brightness(0.2);
  transition: filter 0.2s ease;
}

.social-links a:hover img {
  filter: brightness(0.4);
}

/* メニューのスタイル */
.menu-container {
  background-color: var(--bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 98;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.menu-item {
  background-color: transparent;
  color: var(--orange);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid var(--orange);
}

.menu-item:hover {
  background-color: var(--orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.menu-item img {
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.menu-item:hover img {
  filter: brightness(0) invert(1);
}

/* 協賛ページ用スタイル */
.sponsors-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sponsor-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.sponsor-category {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sponsor-category h3 {
  color: var(--orange);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.5rem;
}

.sponsor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.sponsor-item {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.sponsor-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.sponsor-description {
  font-size: 0.9rem;
  color: #666;
}

.sponsor-info {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.sponsor-info h3 {
  color: var(--orange);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

@media (max-width: 1400px) {
  .floating-character {
    max-width: 200px;
    right: 1rem;
  }
  .floating-character::after {
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 1200px) {
  .floating-character {
    max-width: 180px;
    opacity: 0.8;
  }
  .floating-character::after {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 1rem 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  p.subtitle {
    font-size: 1.5rem;
  }

  .logo {
    max-width: 200px;
  }

  header::after {
    height: 30px;
  }

  .menu-container {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 120;
    background: var(--bg);
    color: var(--orange);
    border: 2px solid var(--orange);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .menu-toggle:active {
    background: var(--orange);
    color: #fff;
  }
  .menu-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,250,242,0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(.4,1.6,.6,1);
    padding-top: 60px;
  }
  .menu-overlay.menu-visible {
    transform: translateY(0);
  }
  .menu-overlay .menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.7rem;
    width: 90vw;
    max-width: 400px;
    margin: 0 auto;
  }
  .menu-overlay .menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-height: 60px;
    width: 100%;
    padding: 0 1rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 30px;
    margin: 0;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
  }
  .menu-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 22px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--orange);
    z-index: 210;
    cursor: pointer;
    transition: color 0.2s;
  }
  .menu-close:active {
    color: #fff;
    background: var(--orange);
    border-radius: 50%;
  }

  .visual-content {
    gap: 0rem;
  }

  .floating-character {
    display: none;
  }

  .fixed-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  .footer-logo {
    max-width: 80px;
  }

  .sponsor-list {
    grid-template-columns: 1fr;
  }
  
  .sponsor-category {
    padding: 1rem;
  }
  
  .sponsor-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 1rem 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  p.subtitle {
    font-size: 1.2rem;
  }

  .logo {
    max-width: 160px;
  }
}

@media (min-width: 769px) {
  .menu-container {
    display: block !important;
  }
  .menu-toggle,
  .menu-overlay {
    display: none !important;
  }
} 