/* Global Styles */
:root {
  --primary-color: #3a7bd5;
  --secondary-color: #00d2ff;
  --accent-color: #ff6b6b;
  --dark-color: #2c3e50;
  --light-color: #f9f9f9;
  --text-color: #333333;
  --light-text: #ffffff;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--light-text);
  font-weight: 500;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav ul li a:hover, 
nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  padding: 5rem 0;
  text-align: center;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--accent-color);
  color: var(--light-text);
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: var(--light-text);
}

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

.btn-primary:hover {
  background-color: #2a6ac1;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #00b8e6;
}

/* Card Styles */
.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.card-text {
  color: #666;
  margin-bottom: 1rem;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--dark-color);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Features */
.features {
  background-color: #f5f7fa;
}

.feature-box {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Bonus Section */
.bonus-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e1e1;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  background-color: #fff;
  box-shadow: var(--box-shadow);
}

.bonus-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 1rem;
  text-align: center;
}

.bonus-content {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
}

.bonus-image {
  flex: 0 0 30%;
  max-width: 30%;
  padding-right: 1.5rem;
}

.bonus-image img {
  width: 100%;
  border-radius: var(--border-radius);
}

.bonus-details {
  flex: 0 0 70%;
  max-width: 70%;
}

.bonus-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.bonus-description {
  margin-bottom: 1rem;
}

.bonus-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.bonus-meta-item {
  background-color: #f5f7fa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.bonus-cta {
  margin-top: 1rem;
}

/* Contest Section */
.contest-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

.contest-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contest-content {
  padding: 1.5rem;
  background-color: #fff;
}

.contest-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.contest-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.contest-description {
  margin-bottom: 1rem;
}

.contest-prize {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 3rem 0 1.5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
}

.footer-about p {
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #bbb;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--light-text);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  color: var(--light-text);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 実験中 */
.container2 {
  display: flex;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  background-color: #1e1e1e;
  color: #ffffff;
}

.content {
  flex: 3;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contest-list li {
  padding: 15px 0;
  border-bottom: 1px solid #444;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prize {
  font-weight: bold;
  color: #ffd700;
}

.logo img {
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

.title {
  color: #ffffff;
}

.date {
  background-color: #666;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-block;
  width: fit-content;
}

.sidebar {
  flex: 1;
  padding-left: 40px;
}

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

.sidebar li {
  margin-bottom: 15px;
}

.sidebar a {
  color: #00bfff;
  text-decoration: none;
}

.note {
  font-size: 12px;
  margin-top: 30px;
  line-height: 1.6;
  color: #ccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .bonus-image,
  .bonus-details {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .bonus-image {
    margin-bottom: 1rem;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--dark-color);
    transition: 0.3s;
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav ul li {
    margin: 0 0 1rem 0;
  }
  
  nav ul li a {
    display: block;
    padding: 0.75rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}