@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

:root {
  --primary-bg: #111;
  --light-bg: #f9f9f9;
  --accent: #03a9f4;
  --text-dark: #333;
  --text-light: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
}

/* ローディング画面のスタイル */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: all 0.3s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader span {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 3px solid #03a9f4;
  animation: animate 5s linear infinite;
}

.loader span:nth-child(1) {
  border-radius: 86% 14% 55% 45% / 25% 68% 32% 75%;
}

.loader span:nth-child(2) {
  animation-direction: reverse;
  border-radius: 32% 68% 11% 89% / 63% 32% 68% 37%;
}

.loader span:nth-child(3) {
  animation-duration: 3s;
  border-radius: 43% 57% 55% 45% / 82% 60% 40% 18%;
}

.loader h2 {
  color: #fff;
  font-size: 2.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  z-index: 1;
}

.main-content {
  visibility: hidden;
  transition: all 0.4s;
  transition-delay: 0.3s;
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* スマートフォン対応 */
@media (max-width: 767px) {
  .loader span {
    width: 250px;
    height: 250px;
    border-width: 2px;
  }
  
  .loader h2 {
    font-size: 1.5rem;
  }
}


header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1px 40px;
  background: var(--primary-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

header h1 {
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 1.8rem;
}

.toggle {
  width: 40px;
  height: 40px;
  background: url("./menu.png") center/contain no-repeat;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.toggle.active {
  background: url("./close.png") center/contain no-repeat;
}

.menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--light-bg);
  transition: right 0.3s;
  z-index: 1000;
}

.menu[aria-hidden="false"] {
  right: 0;
}

.menu ul {
  list-style: none;
  padding: 100px 20px;
}

.menu li + li {
  margin-top: 20px;
}

.menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--accent);
}

.showcase {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.showcase img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: #000000;
  mix-blend-mode: overlay;
  opacity: 0.3;
}

.text {
  position: relative;
  z-index: 10;
  padding: 200px 40px;
  color: var(--text-light);
}

.text h2 {
  font-size: clamp(2rem, 5vw, 3em);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.text p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  max-width: 600px;
}
/* 審査方法セクション */
.judging-method {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 10vw, 100px);
    background: linear-gradient(135deg, #0288d1 0%, #ffffff 100%);
    text-align: center;
}

.judging-method .section-title h2 {
    color: var(--text-light);
    font-size: clamp(1.8rem, 5vw, 2.5em);
    margin-bottom: 40px;
    position: relative;
}

.judging-method .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.judging-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    padding: clamp(20px, 5vw, 40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.judging-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .judging-method {
        padding: 30px 15px;
    }
    
    .judging-method .section-title h2 {
        margin-bottom: 30px;
    }
    
    .judging-image-wrapper {
        padding: 20px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .judging-method .section-title h2 {
        font-size: 1.6rem;
    }
    
    .judging-image-wrapper {
        padding: 15px;
    }
}

/* お知らせセクション */
.notice {
  padding: clamp(40px, 8vw, 80px) clamp(20px, 10vw, 100px);
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  text-align: center;
}

.notice h2 {
  font-size: clamp(1.8rem, 5vw, 2.5em);
  margin-bottom: 40px;
  color: var(--text-dark);
  position: relative;
}

.notice h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.notice-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 15px;
  padding: clamp(20px, 5vw, 40px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: left;
}

.notice-text {
  margin-top: 30px;
}

.notice-text h3 {
  font-size: clamp(1.4rem, 4vw, 1.8em);
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
}

.notice-text p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

.notice-text p strong {
  color: var(--text-dark);
  font-weight: 600;
}

.notice-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.notice-text a:hover {
  color: #0288d1;
  border-bottom-color: #0288d1;
}

.criteria {
  padding: clamp(40px, 8vw, 80px) clamp(20px, 10vw, 100px);
  background: var(--light-bg);
  text-align: center;
}

.criteria h2 {
  font-size: clamp(1.8rem, 5vw, 2.5em);
  margin-bottom: 40px;
  color: var(--text-dark);
}

.criteria ul {
  list-style: none;
  display: inline-block;
  text-align: left;
  width: 100%;
  max-width: 600px;
}

.criteria li {
  display: flex;
  align-items: flex-start;
  font-size: clamp(1rem, 2.5vw, 1.2em);
  margin-bottom: 20px;
  color: #555;
  padding: 0 10px;
}

.criteria .icon {
  font-size: 1.5em;
  margin-right: 15px;
  flex-shrink: 0;
}

.vote {
  padding: clamp(40px, 8vw, 80px) clamp(20px, 10vw, 100px);
  text-align: center;
}

.vote h2 {
  font-size: clamp(1.6rem, 4vw, 2em);
  margin-bottom: 40px;
}

.curry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.curry-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.curry-card input {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
}

.curry-card img {
  width: 100%;
  height: clamp(150px, 20vw, 200px);
  object-fit: cover;
}

.curry-card h3 {
  padding: 20px;
  font-size: clamp(1rem, 2.5vw, 1.2em);
  color: var(--text-dark);
}

.curry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: clamp(12px, 3vw, 15px) clamp(30px, 6vw, 40px);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  transition: background .3s;
  margin-top: 30px;
  border-radius: 5px;
}

.btn:hover {
  background: #000000;
}

footer {
  padding: clamp(20px, 5vw, 40px);
  text-align: center;
  background: var(--primary-bg);
  color: var(--text-light);
}

/* タブレット対応（768px～1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
  header {
    padding: 15px 30px;
  }
  
  header h1 {
    font-size: 1.6rem;
  }
  
  .showcase {
    margin-top: 70px;
  }
  
  .text {
    padding: 80px 30px;
  }
  
  .curry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* スマートフォン対応（最大767px） */
@media (max-width: 767px) {
  header {
    padding: 10px 20px;
  }
  
  header h1 {
    font-size: 1.2rem;
  }
  
  .toggle {
    width: 30px;
    height: 30px;
  }
  
  .menu {
    width: 100%;
    right: -100%;
  }
  
  .menu[aria-hidden="false"] {
    width: 100%;
    right: 0;
  }
  
  .menu ul {
    padding: 80px 20px;
  }
  
  .menu a {
    font-size: 1.1rem;
  }
  
  .showcase {
    margin-top: 50px;
    min-height: 70vh;
  }
  
  .text {
    padding: 40px 20px;
  }
  
  .notice {
    padding: 30px 15px;
  }
  
  .notice-content {
    padding: 20px;
    border-radius: 10px;
  }
  
  .notice-text {
    margin-top: 20px;
  }
  
  .notice-text h3 {
    margin-bottom: 15px;
  }
  
  .notice-text p {
    margin-bottom: 12px;
  }
  
  .criteria {
    padding: 40px 20px;
  }
  
  .criteria ul {
    text-align: left;
    padding: 0 10px;
  }
  
  .criteria li {
    font-size: 1rem;
    margin-bottom: 15px;
    padding: 0;
  }
  
  .criteria .icon {
    margin-right: 10px;
  }
  
  .vote {
    padding: 40px 20px;
  }
  
  .curry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .curry-card img {
    height: 180px;
  }
  
  .curry-card h3 {
    padding: 15px;
    font-size: 1.1rem;
  }
}

/* 極小画面対応（最大480px） */
@media (max-width: 480px) {
  header h1 {
    font-size: 1rem;
  }
  
  .text h2 {
    font-size: 1.8rem;
  }
  
  .text p {
    font-size: 0.9rem;
  }
  
  .notice h2 {
    font-size: 1.6rem;
  }
  
  .notice-text h3 {
    font-size: 1.3rem;
  }
  
  .notice-text p {
    font-size: 0.85rem;
  }
  
  .criteria h2,
  .vote h2 {
    font-size: 1.5rem;
  }
  
  .criteria li {
    font-size: 0.9rem;
  }
  
  .curry-card img {
    height: 150px;
  }
  
  .curry-card h3 {
    font-size: 1rem;
    padding: 12px;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}
