/*
Theme Name: おうち絵画コンテスト
Theme URI: https://ouchi.areadrive.jp
Author: Your Name
Author URI: https://ouchi.areadrive.jp
Description: おうち絵画コンテストの応募と作品紹介のための先進的でモダンなテーマ（小学生向け）
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ouchi-art-contest
*/

/* ========== リセット ========== */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

:root {
  --primary-color: #4aafbf; /* Kosha33・公社カラー（水色） */
  --secondary-color: #ffd84d; /* 黄色 */
  --accent-color-1: #a4d435; /* デジタル部門（緑） */
  --accent-color-2: #ff6b6b; /* 赤（NEWバッジ等） */
  --background-color: #ffffff;
  --text-color: #333333;
  --light-gray: #f5f7fa;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --container-padding: clamp(15px, 3vw, 30px);
  --section-spacing: clamp(40px, 6vw, 80px);
  --header-height-pc: 80px;
  --header-height-sp: 110px;
  --font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --container-max-width: min(1200px, 95vw);
  --grid-gap: clamp(20px, 4vw, 40px);
  --touch-target-size: 44px;
  --focus-outline-color: rgba(74, 175, 191, 0.5);
  --focus-outline-width: 3px;
  --focus-outline-offset: 2px;
  --traditional-color: #f08300;
  --traditional-background-color:#fff9f1;
  --digital-color: #00a73c;
  --digital-background-color: #f6fff2;
}

/* 基本スタイル */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  font-size: clamp(14px, 1vw + 12px, 16px);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.school {
  display: block;
}

.container {
  max-width: var(--container-max-width);
  padding: 0 var(--container-padding);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ===== 見出しスタイルの改善 ===== */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.section-title h2 {
  margin: 0 auto;
  display: inline-block;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* ===== ヘッダー改善 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.site-branding {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.site-branding a {
  text-decoration: none;
  color: inherit;
}

.contest-brand {
  display: block;
  font-weight: 900;
  font-size: 24px;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.organizer-label {
  background: #f8f9fa;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .contest-brand {
    font-size: 20px;
  }

  .organizer-label {
    font-size: 11px;
    padding: 3px 0;
  }
}

.site-header.scrolled {
  padding: 5px 0;
}
body > main {
  padding-top: var(--header-height-pc);
}
.main-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: nowrap;
}
.site-branding {
  flex-shrink: 0;
}
.site-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}
.site-title a {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9d6c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding: 0 5px;
}
.site-title a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9d6c 100%);
  transition: width 0.3s ease;
  border-radius: 3px;
}
.site-title a:hover::after {
  width: 100%;
}
.primary-navigation {
  flex-grow: 1;
  padding: 0 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  z-index: 1100;
}
.primary-navigation::-webkit-scrollbar {
  display: none;
}
.menu-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.menu-items li {
  margin: 0 3px;
  position: relative;
}
.menu-items a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.menu-items a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.15) 0%,
    rgba(255, 216, 77, 0.1) 100%
  );
  transition: width 0.3s ease;
  z-index: -1;
  transform: skewX(-15deg);
}
.menu-items a:hover::before,
.menu-items .current-menu-item a::before {
  width: calc(100% + 20px);
}
.menu-items a:hover {
  color: #ff6b6b;
}
.menu-items .current-menu-item a {
  color: #4aafbf;
  font-weight: 700;
  background: none !important;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}
.menu-items .current-menu-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background-color: #4aafbf;
  border-radius: 2px;
  animation: none;
}
.header-cta {
  flex-shrink: 0;
}
.header-cta .button {
  padding: 10px 15px;
  min-width: auto;
  white-space: nowrap;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(74, 175, 191, 0.3);
  transform: translateY(0);
  transition: all 0.3s ease;
}
.header-cta .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(74, 175, 191, 0.4);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}
@media screen and (max-width: 1100px) {
  .site-title {
    font-size: 1.4rem;
  }
  .menu-items a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .header-cta .button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
@media screen and (max-width: 992px) {
  .site-title {
    font-size: 1.3rem;
  }
  .primary-navigation {
    padding: 0 10px;
  }
  .menu-items a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .header-cta .button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
@media screen and (max-width: 768px) {
  .site-header {
    padding: 5px 0;
  }
  .main-navigation {
    position: relative;
  }
  .menu-toggle {
    display: block;
  }

  .primary-navigation.active {
    right: 0;
  }
  .menu-items {
    flex-direction: column;
    white-space: normal;
  }
  .menu-items li {
    margin: 5px 0;
  }
  .menu-items a {
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .header-cta {
    margin-left: auto;
  }
  body > main {
    padding-top: var(--header-height-sp);
  }
  .hero-section {
    margin-top: var(--header-height-sp);
  }
  .primary-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .primary-navigation.active {
    right: 0;
  }

  .menu-items {
    flex-direction: column;
    white-space: normal;
  }

  .menu-items li {
    margin: 5px 0;
  }

  .menu-items a {
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .menu-active .menu-overlay {
    display: block;
  }
}
@media screen and (max-width: 480px) {
  .site-title {
    font-size: 1.2rem;
  }
  .header-cta .button {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2500 !important;
}
.menu-active .menu-overlay {
  display: block;
}

/* ===== 革命的なヒーローセクション ===== */
.hero-section {
  position: relative;
  height: 70vh;
  width: 100%;
  overflow: hidden;
  margin-top: 70px; /* ヘッダー分の高さを確保 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.hero-logo {
  max-width: 70%;
  width: auto;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.hero-subtitle {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e63946;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  /* border-radius: 5px; */
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.artwork-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floating-artwork {
  position: absolute;
  transform: rotate(var(--rotation, 0deg));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  animation-name: floatAnimation1;
  animation-duration: 15s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: var(--animation-delay, 0s);
  z-index: var(--z-index, 1);
  transition: transform 0.3s ease;
  max-height: 40vh; /* 画面高さの40%まで許容 */
  max-width: 40vw; /* 画面幅の40%まで許容 */
}

/* アニメーションタイプの切り替え */
.floating-artwork:nth-child(3n + 1) {
  animation-name: floatAnimation1;
}

.floating-artwork:nth-child(3n + 2) {
  animation-name: floatAnimation2;
}

.floating-artwork:nth-child(3n + 3) {
  animation-name: floatAnimation3;
}

/* ホバー効果 */
.floating-artwork:hover {
  transform: scale(1.05) rotate(calc(var(--rotation, 0deg) + 2deg)) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 20 !important;
}

/* 浮遊アニメーション1 - 上下の動き */
@keyframes floatAnimation1 {
  0% {
    transform: translateY(0) rotate(var(--rotation, 0deg));
  }
  50% {
    transform: translateY(-20px) rotate(var(--rotation, 0deg));
  }
  100% {
    transform: translateY(10px) rotate(var(--rotation, 0deg));
  }
}

/* 浮遊アニメーション2 - 回転を含む動き */
@keyframes floatAnimation2 {
  0% {
    transform: translateY(0) translateX(0) rotate(var(--rotation, 0deg));
  }
  33% {
    transform: translateY(-15px) translateX(10px)
      rotate(calc(var(--rotation, 0deg) + 3deg));
  }
  66% {
    transform: translateY(5px) translateX(-10px)
      rotate(calc(var(--rotation, 0deg) - 2deg));
  }
  100% {
    transform: translateY(-5px) translateX(5px) rotate(var(--rotation, 0deg));
  }
}

/* 浮遊アニメーション3 - Z軸を含む3D動き */
@keyframes floatAnimation3 {
  0% {
    transform: translateY(0) translateZ(0) rotate(var(--rotation, 0deg));
  }
  25% {
    transform: translateY(-10px) translateZ(20px)
      rotate(calc(var(--rotation, 0deg) + 1deg));
  }
  50% {
    transform: translateY(5px) translateZ(-10px)
      rotate(calc(var(--rotation, 0deg) - 1deg));
  }
  75% {
    transform: translateY(-5px) translateZ(0)
      rotate(calc(var(--rotation, 0deg) + 2deg));
  }
  100% {
    transform: translateY(10px) translateZ(10px) rotate(var(--rotation, 0deg));
  }
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artwork-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  font-size: 2rem;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease-in-out;
}

.artwork-placeholder i {
  font-size: 2.5rem;
  opacity: 0.7;
}

.floating-artwork:hover .artwork-placeholder {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 8px 25px rgba(74, 175, 191, 0.3);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
}

/* サイズ別のスタイル調整 */
.floating-artwork[style*="size: 2"] {
  z-index: 5;
}

.floating-artwork[style*="size: 1"] {
  z-index: 3;
}

.floating-artwork[style*="size: 7"],
.floating-artwork[style*="size: 8"],
.floating-artwork[style*="size: 9"],
.floating-artwork[style*="size: 6"] {
  z-index: 1;
}

/* レスポンシブ調整 */
@media screen and (max-width: 992px) {
  .hero-content {
    width: 85%;
    padding: 1.5rem;
  }

  .hero-logo {
    max-width: 65%;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .floating-artwork {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .hero-content {
    width: 90%;
    padding: 1.2rem;
  }

  .hero-logo {
    max-width: 75%;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 1.2rem;
    padding: 8px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .floating-artwork {
    display: none;
  }

  .site-header {
    width: 100vw;
    left: 0;
    right: 0;
    /* overflow-x: hidden; */
    box-sizing: border-box;
    max-width: 100vw;
  }

  .menu-items {
    flex-direction: column !important;
    display: flex !important;
    background: #fff !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 4100 !important;
  }

  .menu-items li {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }
  .menu-items a {
    display: block !important;
    width: 100% !important;
    padding: 18px 0 !important;
    font-size: 1.1rem !important;
    color: #333 !important;
    background: none !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 0 !important;
  }
  .container {
    padding: 0 !important;
    overflow: visible !important;
  }
  .container.cat01,.container.cat01 {padding: var(--container-padding) !important;}
  .header-cta.mobile-only {
    margin-top: 24px;
    text-align: center;
  }
  .header-cta.mobile-only .button {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .menu-toggle {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 6000 !important;
    display: block !important;
    background: #fff !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 48px;
    height: 48px;
    padding: 0;
  }
  .menu-toggle span {
    background: #4aafbf !important;
    width: 28px !important;
    height: 3.5px !important;
    margin: 7px auto !important;
    border-radius: 2px !important;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg) !important;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg) !important;
  }
  .menu-overlay {
    z-index: 5500 !important;
  }
}

@media screen and (max-height: 650px) {
  .hero-section {
    height: 100vh;
    min-height: auto;
  }

  .hero-content {
    padding: 1rem;
    max-width: 90%;
  }

  .hero-logo {
    max-width: 60%;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .floating-artwork {
    transform: scale(0.8);
  }
}

/* ===== ボタンスタイルの統一 ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.button-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(74, 175, 191, 0.08);
}

.button-primary:hover {
  background-color: #3296a8;
}

.button-secondary {
  background-color: var(--accent-color-1);
  color: #fff;
  border: none;
}

.button-secondary:hover {
  background-color: #7bbd1c;
}

/* ===== 革新的なフッター ===== */
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  margin-top: 80px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff6b6b !important;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-bottom: 40px;
}

.footer-section {
  min-width: auto;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color) !important;
  border-radius: 1.5px;
}

.footer-section p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(5px);
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.footer-section ul li a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #4aafbf;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-section ul li a:hover::before {
  transform: translate(3px, -50%);
}

.footer-section .button {
  display: inline-block;
  background: linear-gradient(90deg, #4aafbf, #a2d044);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 15px;
  font-size: 0.95rem;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
}

.footer-section .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #a2d044, #4aafbf);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-section .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 175, 191, 0.3);
}

.footer-section .button:hover::before {
  opacity: 1;
}

.footer-section .button span {
  position: relative;
  z-index: 1;
}

.footer-bottom {
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid #ff6b6b;
  text-align: center;
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: #ff6b6b !important;
}

.footer-bottom p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .site-footer {
    padding: 40px 0 25px;
    margin-top: 60px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section ul li {
    margin-bottom: 12px;
  }

  .footer-section ul li a {
    padding: 8px 0;
    display: block;
  }

  .footer-section ul li a::before {
    display: none;
  }

  .footer-section .button {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 15px auto 0;
  }
}

@media screen and (max-width: 480px) {
  .site-footer {
    padding: 25px 0 15px;
    margin-top: 40px;
  }
  .site-footer .container {
    padding: 0 8px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 20px;
  }
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 7px;
  }
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
  }
  .footer-section p,
  .footer-section ul li a {
    font-size: 0.88rem;
  }
  .footer-bottom {
    padding-top: 10px;
    margin-top: 10px;
  }
  .footer-bottom p {
    font-size: 0.8rem;
  }
  .section-spacing {
    padding: 18px 0 !important;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: attr(width) / attr(height);
}

.section-spacing {
  padding: var(--section-spacing) 0;
}

/* ポップなタイトルスタイル */
.pop-title {
  position: relative;
  display: inline-block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary-color);
  padding-bottom: var(--spacing-sm);
  margin-bottom: 30px;
}

.pop-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transform: translateX(-50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.85;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  /* background-color: rgba(0, 0, 0, 0.3); */
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease forwards;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 6rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 3px 3px 0 var(--primary-color), 6px 6px 0 var(--secondary-color);
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0rem;
  color: #8dc21f;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  margin: 10px auto 0;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* バナーセクション */
.contest-overview-banner {
  background-color: var(--primary-color);
  padding: 1.5rem 0;
  margin-bottom: -20px;
  position: relative;
  overflow: hidden;
}

.overview-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

.overview-icon {
  width: 70px;
  height: 70px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2rem;
  flex-shrink: 0;
}

.overview-icon img {
  width: 40px;
  height: 40px;
}

.overview-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.overview-text p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

a.top-prize-link{
  color:#fff;
  transition:.3s;
  opacity:1;
}

a.top-prize-link:hover{
  opacity:.5;
}

.overview-badge {
  background-color: var(--accent-color-2);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-left: 2rem;
  transform: rotate(5deg);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* テーマカードスタイル */
.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.theme-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.theme-card-header {
  padding: 20px;
  position: relative;
  text-align: center;
  color: white;
}

.theme-card.traditional .theme-card-header {
  background-color: var(--traditional-color);
  color: #fff;
  border-left: 8px solid var(--traditional-color);
}

.theme-card.digital .theme-card-header {
  background-color: var(--digital-color);
  color: #fff;
  border-left: 8px solid var(--digital-color);
}

.theme-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.theme-category.new {
  background-color: #ff5252;
  color: white;
}

.theme-card.traditional .theme-category,
.category-label.trad {
  /* background: var(--traditional-color); */
  color: #fff;
  background-color: rgba(255, 255, 255, 0.25);
}

.theme-card.digital .theme-category,
.category-label.digital {
  /* background: var(--digital-color); */
  color: #fff;
  background-color: rgba(255, 255, 255, 0.25) !important;
}

.theme-card-header .theme-title {
  margin: 5px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.theme-card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.theme-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: #666;
}

.theme-illustration img {
  height: 80px;
  object-fit: contain;
}

.theme-card.traditional .theme-illustration {
  color: #4aafbf;
}

.theme-card.digital .theme-illustration {
  color: #a2d044;
}

.theme-description {
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

.theme-features {
  padding-left: 25px;
  margin-bottom: 20px;
}

.theme-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 5px;
}

.theme-features li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4aafbf;
}

.theme-card.digital .theme-features li::before {
  background-color: #a2d044;
}

.new-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--accent-color-2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 0 5px 0 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  z-index: 5;
  transform: rotate(3deg);
}

/* 詳細カード */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.details-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details-card:hover {
  transform: translateY(-10px);
}

.details-card.period {
  border-color: var(--primary-color);
}
.details-card.target {
  border-color: var(--secondary-color);
}
.details-card.submission {
  border-color: var(--accent-color-1);
}
.details-card.size {
  border-color: var(--accent-color-2);
}
.details-card.address {
  border-color: var(--primary-color);
}
.details-card.judging {
  border-color: var(--secondary-color);
}

.details-icon {
  background-color: var(--light-gray);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.details-icon img {
  width: 40px;
  height: 40px;
}

.details-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.details-card p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

.details-note {
  font-size: 0.9rem;
  color: #888;
  display: block;
}

.category-label {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.category-label.digital {
  background-color: var(--digital-color);
}

/* タブスタイル */
.awards-tabs {
  max-width: 1000px;
  margin: 0 auto 1rem;
}

.tab-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 1rem 2rem;
  background-color: var(--light-gray);
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: #e5e5e5;
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: #fff;
}

.tab-content {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 賞の比較表示 */
.awards-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.awards-column {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.awards-header {
  background-color: var(--traditional-color);
  padding: 1.2rem 1.1rem;
  color: #fff;
  text-align: center;
  position: relative;
}

.awards-column:nth-child(2) .awards-header {
  background-color: var(--digital-color);
}

.awards-category-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.new-category-badge {
  position: absolute;
  top: 22px;
  right: 10px;
  background-color: var(--accent-color-2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  transform: rotate(5deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.awards-content {
  padding: 2rem;
}

/* 賞リスト */
.awards-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.award-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 15px;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.award-item:hover {
  transform: translateY(-5px);
}

.award-item.grand {
  border-left: 5px solid var(--primary-color);
}
.award-item.special {
  border-left: 5px solid var(--secondary-color);
}
.award-item.grade {
  border-left: 5px solid var(--accent-color-1);
}
.award-item.selection {
  border-left: 5px solid var(--accent-color-2);
}

.award-medal {
  margin: 0 auto 1rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-title {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.award-count {
  color: #666;
  font-weight: 500;
  margin: 0;
}

.awards-total {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
}

.awards-note {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  margin-top: 0.5rem;
}

.prize-info {
  background-color: var(--light-gray);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
}

.prize-info p::before {
  content: "\f06b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--secondary-color);
  font-size: 2rem;
  margin-right: 0.8rem;
  display: inline-block;
  vertical-align: middle;
}

.prize-icon {
  margin-right: 0;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.prize-content {
  flex: 1;
  text-align: center;
}

.prize-info p {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-image {
  margin-top: 1rem;
  text-align: center;
}

.prize-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.prize-caption {
  font-size: 0.9rem;
  color: #888;
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

.prize-caption::before {
  display: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .prize-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .prize-content {
    text-align: center;
  }

  .prize-icon {
    margin-bottom: 1rem;
    margin-top: 0;
  }

  .prize-info p {
    margin-bottom: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .prize-info p::before {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
  .pop-title {
    font-size: 3.5rem;
  }

  .hero-title {
    font-size: 5rem;
  }

  .theme-cards {
    gap: 2rem;
  }
}

@media screen and (max-width: 992px) {
  .section-spacing {
    padding: 80px 0;
  }

  .theme-cards {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exhibition-features {
    grid-template-columns: 1fr;
  }

  .awards-comparison {
    grid-template-columns: 1fr;
  }

  .menu-items {
    gap: var(--spacing-md);
  }

  .menu-items a {
    font-size: 0.95rem;
  }

  .header-cta .button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .award-image img,
  .award-chart-image img {
    max-height: 250px;
  }
}

@media screen and (max-width: 768px) {
  .pop-title {
    font-size: 2.8rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.5rem;
  }

  .overview-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .overview-icon {
    margin: 0 0 1rem 0;
  }

  .overview-badge {
    margin: 1rem 0 0 0;
  }

  .details-grid {
    display: block !important;
    width: 100%;
    gap: 0 !important;
  }

  .details-card {
    width: 100%;
    margin-bottom: 18px;
    box-sizing: border-box;
  }

  .awards-list {
    grid-template-columns: 1fr;
  }

  .tab-header {
    flex-direction: column;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 0 1.5rem 0;
  }

  .main-navigation {
    padding: 0 var(--spacing-sm);
  }

  .site-branding {
    margin-right: var(--spacing-md);
    margin-left: 15px;
  }

  .menu-items {
    gap: var(--spacing-sm);
  }

  .award-image {
    padding-bottom: 66.67%; /* 3:2 比率に変更して横幅を広く */
  }
  .site-header {
    z-index: 5000 !important;
  }
}

@media screen and (max-width: 576px) {
  .pop-title {
    font-size: 2.2rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .new-category-badge {
    position: absolute;
    top: 61px;
    right: 155px;
    transform: rotate(0deg);
  }

  .hero-title {
    font-size: 2.5rem;
    text-shadow: 2px 2px 0 var(--primary-color),
      4px 4px 0 var(--secondary-color);
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .theme-card-header .theme-title {
    font-size: 2rem;
  }

  .tab-content {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline-item {
    padding-left: 70px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-point {
    left: 22px;
  }
}

/* タイムラインスタイル */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 100px;
}

.timeline-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  left: 42px;
  top: 25px;
  z-index: 2;
}

.timeline-content {
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 25px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 20px solid #fff;
}

.timeline-date {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.timeline-content p {
  color: #666;
  margin: 0;
}

/* 展示情報 */
.exhibition-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.exhibition-header {
  background-color: var(--primary-color);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}

.exhibition-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 0rem;
}

.exhibition-header h3 {
  font-size: 2rem;
  margin: 0;
}

.exhibition-content {
  padding: 2rem;
}

.exhibition-venue {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.exhibition-features {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.feature-icon img {
  width: 30px;
  height: 30px;
}

.feature-item p {
  margin: 0;
  color: #666;
  font-size: 1.1rem;
}

/* 主催・後援 */
.organizer-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.organizer-group {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 1.2rem;
}

.organizer-group:last-child {
  margin-bottom: 0;
}

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

.organizer-group p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* お問い合わせ */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  display: flex;
  align-items: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2rem;
  flex-shrink: 0;
}

.contact-details {
  flex-grow: 1;
}

.contact-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-tel {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* セクションフェードイン効果 */
.fade-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-element.fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-element {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}

/* scroll-downとその子要素の削除 */
.scroll-down,
.scroll-down span,
.scroll-arrow,
.scroll-arrow::before {
  display: none !important;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  100% {
    transform: translateY(25px);
    opacity: 0;
  }
}

/* ===== 受賞作品スタイル - 改善版 ===== */
.prize-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

.cat-btn-wrap {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

a.cat-btn {
    color: #fff;
    font-size:1.2rem;
    padding:0.5em 1.5em;
    border-radius:9em;
    transition:.3s;
}

a.cat-btn:hover {
    opacity:.5;
}

a.cat-btn.cat-btn01 {
    background: #f08300;
    box-shadow: 0 4px 12px #f083002e;
}

a.cat-btn.cat-btn02 {
    background: var(--digital-color);
    box-shadow: 0 4px 12px #00a73c38;
}

@media (max-width: 768px) {
.cat-btn-wrap {
    flex-direction: column;
    align-items: center;
}

a.cat-btn {
    min-width: 380px;
    text-align: center;
}
}

.container.cat01{
  background:var(--traditional-background-color);
  padding: var(--container-padding);
  border-radius:10px;
}

.container.cat02{
  background:var(--digital-background-color);
  padding: var(--container-padding);
  border-radius:10px;
  margin-top: 50px;
}

.prize-section .title {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.prize-section .title h2 {
    display: inline-block;
    padding: 0.5em 1.5em;
    border-radius: 9em;
}

.prize-section .title01 h2{
  background:var(--traditional-color);
}

.prize-section .title02 h2{
  background:var(--digital-color);
}

.prize-category {
  margin-bottom: 50px;
}

.prize-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4aafbf;
  color: #333;
}

/* グリッドレイアウトの改善 */
.awards-grid {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  width: 100%;
}

.awards-grid.award-items-3 {
  grid-template-columns: repeat(3, 1fr);
}

.awards-grid.award-items-4 {
  grid-template-columns: repeat(4, 1fr);
}

.awards-grid.award-items-6 {
  grid-template-columns: repeat(3, 1fr);
}

.awards-grid.award-items-many {
  grid-template-columns: repeat(4, 1fr);
}

/* カードスタイルの改善 */
.award-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.award-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.award-image {
  position: relative;
  padding-bottom: 75%;
  background-color: #ffffff;
  overflow: hidden;
}

.award-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}

.award-info {
  padding: 12px 15px;
}

.award-meta {
  margin-bottom: 8px;
  text-align: center;
  font-size: 0.8rem;
}

.award-meta .school {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
  color: #333;
  font-size: 0.85rem;
}

.award-meta .grade,
.award-meta .name {
  display: inline-block;
  color: #666;
  margin: 0 2px;
  font-size: 20px;
  font-weight: bold;
  color: #4fb1c1;
}
.modal-meta .grade,
.modal-meta .name {
  display: inline-block;
  color: #666;
  margin: 0 2px;
  font-size: 20px;
  font-weight: bold;
  color: #4fb1c1;
}

.award-chart-info .grade,
.award-chart-info .name {
  font-size: 20px;
  font-weight: bold;
  color: #4fb1c1;
}

.award-title {
  font-size: 1rem;
  margin: 8px 0;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.award-description {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}

/* 大きな賞のスタイル改善 */
.award-chart {
  max-width: 800px;
  margin: 0 auto;
}

.award-chart-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

#other-year {
    margin-top: 50px;
    text-align: center;
}

#other-year h2 {
    margin-bottom: 30px;
}

a.other-btn {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 175, 191, 0.3);
    display: inline-block;
    font-size: 1.2rem;
    padding: 0.25em 1em;
    border-radius: 5px;
}

.other-btn-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
}

a.other-btn:hover {
    opacity: .5;
}

@media (min-width: 768px) {
  .award-chart-item {
    display: flex;
    flex-direction: row;
  }

  .award-chart-image {
    width: 60%;
    padding-bottom: 0;
    /* height: 350px; */
  }

  .award-chart-info {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.award-chart-image {
  position: relative;
  /* padding-bottom: 66%; */
  background-color: #ffffff;
  overflow: hidden;
}

.award-chart-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}

.award-chart-info {
  padding: 20px;
  text-align: center;
}

.award-chart-title {
  font-size: 1.3rem;
  margin: 10px 0;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
}

.award-chart-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 画像比率に応じたコンテナスタイル */
.award-image.portrait-container img,
.award-chart-image.portrait-container img {
  object-fit: contain;
  max-height: 100%;
  max-width: 90%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* 縦長画像のコンテナを調整 */
.award-image.portrait-container {
  padding-bottom: 90%;
}

.award-image.portrait-container img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  padding: 0;
}

.award-chart-image.portrait-container {
  padding-bottom: 90%;
}

.award-chart-image.portrait-container img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  padding: 0;
}

/* 横長画像の特別処理 */
.award-image.landscape-container img,
.award-chart-image.landscape-container img {
  /* max-width: 95%; */
  /* max-height: 95%; */
  padding: 15px;
}

/* 正方形画像の特別処理 */
.award-image.square-container img,
.award-chart-image.square-container img {
  max-width: 90%;
  max-height: 90%;
  padding: 0;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
  .awards-grid.award-items-many {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .awards-grid.award-items-3,
  .awards-grid.award-items-4,
  .awards-grid.award-items-6,
  .awards-grid.award-items-many {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .award-chart-item {
    flex-direction: column;
  }

  .award-chart-image,
  .award-chart-info {
    width: 100%;
  }

  .award-chart-image {
    padding-bottom: 75%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .awards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 !important;
  }
  .award-card,
  .award-chart-item {
    max-width: 100vw;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .award-image,
  .award-chart-image {
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 120px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .award-image img,
  .award-chart-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
  }
}

/* ===== モーダル表示のスタイル ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  max-width: 90%;
  width: 1000px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  user-select: none;
}

@media (min-width: 768px) {
  .modal-content {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr;
  }
}

.modal-overlay.active .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  padding: 20px;
  box-sizing: border-box;
  /* background-color: #f5f5f5; */
}

@media (min-width: 768px) {
  .modal-image {
    height: 100%;
    max-height: 70vh;
    grid-row: 1;
    grid-column: 1;
  }
}

.modal-info {
  padding: 30px 30px 30px 0px;
  overflow-y: auto;
  max-height: 50vh;
}

@media (min-width: 768px) {
  .modal-info {
    grid-row: 1;
    grid-column: 2;
    max-height: 70vh;
  }
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #333;
  line-height: 1.3;
}

.modal-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555;
}

.modal-meta {
  margin-top: 25px;
  font-size: 0.95rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: column;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
}

.modal-meta .school,
.modal-meta .grade,
.modal-meta .name {
  display: inline-block;
  margin-right: 15px;
}

.modal-meta .school {
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #333;
  transition: background-color 0.3s ease;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

body.modal-open {
  overflow: hidden;
}

/* ナビゲーションボタン */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev::before,
.modal-next::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid #333;
  border-left: 2px solid #333;
  display: block;
}

.modal-prev::before {
  transform: rotate(-45deg);
}

.modal-next::before {
  transform: rotate(135deg);
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 20px 10px;
    z-index: 100000;
  }

  .modal-content {
    max-width: 95%;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-height: calc(100vh - 40px);
  }

  .modal-image {
    max-height: 40vh;
  }

  .modal-info {
    padding: 20px;
    max-height: 40vh;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .modal-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .modal-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 5px;
  }

  .modal-meta .school,
  .modal-meta .grade,
  .modal-meta .name {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }
}

/* メインコンテンツにヘッダー分の余白を追加 */
main,
.page-header,
.prize-section {
  padding-top: 80px;
}

/* ページヘッダーのスタイル調整 */
.page-header {
  padding-top: 120px;
  padding-bottom: 30px;
  background-color: #f8f9fa;
}

.page-header .section-title {
  margin-bottom: 20px;
}

.prize-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #555;
  line-height: 1.6;
}

/* 読み込み状態のスタイル */
.award-image.loading,
.award-chart-image.loading {
  position: relative;
}

.award-image.loading::before,
.award-chart-image.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4aafbf;
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* エラー状態のスタイル */
.award-image.load-error::after,
.award-chart-image.load-error::after {
  content: "画像を読み込めませんでした";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  color: #666;
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
}

/* 各部門の応募について - スタイル */
.department-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 18px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.department-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.department-header {
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.department-card.traditional .department-header {
  background-color: var(--traditional-color);
  color: white;
}

.department-card.digital .department-header {
  background-color: var(--digital-color);
  color: white;
}

.department-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.department-icon img,
.department-icon i {
  width: 40px;
  height: 40px;
  object-fit: contain;
  color: #4aafbf;
  font-size: 2rem;
}

.department-card.digital .department-icon i {
  color: #a2d044;
}

.department-title {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.department-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 5px;
}

.department-badge.new {
  background-color: #ff6b6b;
  color: white;
}

.department-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.department-summary {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.department-detail-box {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.department-detail-box h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.department-rules {
  padding-left: 20px;
}

.department-rules li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.submission-guide {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.submission-guide h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.address-box {
  background-color: #fff;
  border: 1px dashed #ccc;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.note {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background-color: #4fb1c1;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #3a9eae;
}

.notes-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff8e1;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #ffcc80;
}

.notes-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.notes-list {
  padding-left: 25px;
}

.notes-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.notes-summary {
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* FAQ スタイル */
.department-faq {
  background-color: #f9f9f9;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s;
}

.faq-question:after {
  content: "+";
  font-size: 22px;
  color: #4fb1c1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  background-color: rgba(79, 177, 193, 0.1);
}

.faq-question h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
  .department-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .department-title {
    font-size: 20px;
  }

  .department-badge {
    font-size: 13px;
  }

  .department-summary {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .department-header {
    padding: 20px 15px;
  }

  .department-content {
    padding: 20px 15px;
  }

  .department-description {
    font-size: 16px;
  }

  .faq-question h4 {
    font-size: 16px;
  }

  .notes-card {
    padding: 20px;
  }

  .notes-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .department-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .department-summary {
    font-size: 1rem;
  }
}

.artwork-placeholder.loading {
  animation: rotate 2s linear infinite;
  background-color: rgba(255, 255, 255, 0.9);
}

.artwork-placeholder.loading i {
  color: var(--primary-color);
  font-size: 3rem;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 768px) {
  .theme-cards {
    display: block !important;
    width: 100%;
    gap: 0 !important;
  }
  .theme-card {
    width: 100%;
    margin-bottom: 18px;
    box-sizing: border-box;
  }
}

/* フッターのお問い合わせセクションのスタイル改善 */
.contact-info {
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.contact-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.7rem;
}

.contact-address {
  margin: 0;
  font-style: normal;
}

.company-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-tel,
.contact-email {
  margin-bottom: 0.5rem;
}

.contact-tel i,
.contact-email i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

.contact-hours {
  font-size: 0.85rem;
  color: #ccc;
}

.contact-email a {
  color: #fff;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .contact-info {
    padding: 0.8rem;
  }

  .contact-hours {
    display: block;
    margin-left: 1.5rem;
  }
}

.organizer-label {
  color: #888; /* グレーで控えめに */
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0px;
  letter-spacing: 0.04em;
  text-align: center;
  background: none;
  padding: 0;
}

.contest-brand {
  display: block;
  margin-top: 8px;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-branding a {
  text-decoration: none;
}

.site-branding a:hover .contest-brand {
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .contest-brand {
    font-size: 1.5rem;
    margin-top: 4px;
  }
}

.contest-brand {
  display: block;
  margin-top: 8px;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-branding a {
  text-decoration: none;
}

.site-branding a:hover .contest-brand {
  color: var(--secondary-color);
}

@media screen and (max-width: 600px) {
  .comparison-table-wrapper {
    overflow-x: auto;
    width: 100%;
  }
  .comparison-table {
    min-width: 500px;
    font-size: 0.95rem;
  }
  .faq-question,
  .faq-answer {
    font-size: 0.95rem;
    word-break: break-all;
  }
}

@media screen and (max-width: 480px) {
  .new-badge,
  .department-badge,
  .category-label {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .button,
  .footer-section .button {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
}

.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
    margin-top: 24px;
    text-align: center;
  }
  .mobile-only .button {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .contest-brand {
    font-size: 1.5rem;
    margin-top: 4px;
  }
}

body.menu-active,
body.menu-active > main,
body.menu-active > .site-main {
  transform: none !important;
  margin-left: 0 !important;
  left: 0 !important;
  position: static !important;
  width: 100vw !important;
  overflow-x: hidden !important;
}

/* モバイルメニュー関連のスタイル */
.nav-wrapper {
  position: relative;
  z-index: 1100;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1300;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .site-header {
    padding: 5px 0;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-top: 15px;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 3.5px;
    margin: 7px auto;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  .primary-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    padding: 80px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2800;
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .primary-navigation.active {
    right: 0;
  }

  .menu-items {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    list-style: none;
  }

  .menu-items li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .menu-items a {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
  }

  .menu-items a:hover,
  .menu-items .current-menu-item a {
    background-color: var(--light-gray);
  }

  .header-cta.mobile-only {
    display: block;
    margin-top: 20px;
    padding: 0 15px;
  }

  .header-cta.mobile-only .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s ease;
  }

  .header-cta.mobile-only .button:hover {
    background-color: var(--accent-color-1);
  }

  body.menu-active {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .artwork-gallery {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
  }
  .floating-artwork {
    display: block !important;
    max-width: 125vw !important;
    max-height: 125vh !important;
    min-width: 60px;
    min-height: 50px;
    z-index: 3;
    transform: translate(-50%, -50%);
  }
}

.prize-details {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  /* border-left: 4px solid var(--primary-color); */
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(74, 175, 191, 0.2);
  position: relative;
  overflow: hidden;
}

.prize-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
}

.prize-details h4 {
  margin: 0 0 1.2rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  gap: 0.5rem;
}

.prize-details h4::before {
  /* content: "💳"; */
  font-size: 1.3rem;
}

.prize-details ul {
  margin: 0;
  padding: 0;
  /* list-style-type: disc; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 0.8rem; */
}

.prize-details li {
  margin-bottom: 0;
  position: relative;
  color: #444;
  font-size: 0.95rem;
  text-align: left !important;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  /* border-left: 3px solid var(--secondary-color); */
  transition: all 0.3s ease;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.prize-details li:hover {
  /* transform: translateX(5px); */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  /* background: rgba(255, 255, 255, 0.9); */
}

.prize-details li::after {
  content: attr(data-amount);
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  .prize-details ul {
    /* grid-template-columns: 1fr; */
    display: flex;
    flex-direction: column;
    align-content: stretch;
    align-items: stretch;
  }
  .prize-details {
    padding: 15px;
  }
  .prize-details li {
    gap: 1rem;
    margin: 0;
    padding: 4px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}
