/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

/* Color palette */
:root {
  --primary-color: #465b54;
  --secondary-color: #3a4a44;
  --accent-color: #5a6b64;
  --dark-color: #2d3a35;
  --light-color: #6b7a73;
  --highlight-color: #7a8a83;
  --deep-color: #1f2a26;
  --background-color: #dfdbcf;
  --text-color: #465b54;
}

/* Main content fade in after preloader */
.main {
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.5s forwards;
}

/* Ensure preloader is hidden on subsequent visits */
.preloader[style*="display: none"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Image optimization styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth image loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Responsive images */
img[srcset] {
  width: 100%;
  height: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: "Anton", "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background-color);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 98%, rgba(70, 91, 84, 0.05) 100%),
    linear-gradient(0deg, transparent 98%, rgba(70, 91, 84, 0.05) 100%);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/* Glitch effect */


/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #465b54;
  backdrop-filter: blur(10px);
  z-index: 150;
  box-shadow: 0 0 20px rgba(223, 219, 207, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  max-width: 100%;
  margin: 0;
}

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

.logo-image {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo-link {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.logo-text {
  font-family: "Anton", "Arial", sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #dfdbcf;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  font-family: "Anton", "Arial", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #dfdbcf;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: #465b54;
}

.nav-link.active {
  color: #dfdbcf;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: #dfdbcf;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px #dfdbcf;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #465b54;
  z-index: 1000;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile nav header (logo + close) */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(223, 219, 207, 0.15);
  flex-shrink: 0;
}

.nav-mobile-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: #dfdbcf;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.mobile-close-btn:hover { opacity: 0.7; }

/* Nav items */
.nav-mobile-links {
  flex: 1;
  padding: 8px 0;
}

.nav-mobile-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  text-decoration: none;
  border-bottom: 1px solid rgba(223, 219, 207, 0.1);
  transition: background 0.2s;
}

.nav-mobile-item:hover {
  background: rgba(223, 219, 207, 0.08);
}

.nav-mobile-accent {
  width: 4px;
  height: 36px;
  background: #dfdbcf;
  border-radius: 2px;
  flex-shrink: 0;
}

.nav-mobile-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile-en {
  font-family: "Anton", "Arial", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #dfdbcf;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-mobile-ja {
  font-family: sans-serif;
  font-size: 0.75rem;
  color: rgba(223, 219, 207, 0.6);
  letter-spacing: 0.08em;
}

.nav-mobile-arrow {
  color: rgba(223, 219, 207, 0.5);
  flex-shrink: 0;
}

/* SNS icons */
.nav-mobile-sns {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 28px 24px;
  border-top: 1px solid rgba(223, 219, 207, 0.15);
  flex-shrink: 0;
}

.nav-mobile-sns-link {
  color: rgba(223, 219, 207, 0.7);
  transition: color 0.2s;
}

.nav-mobile-sns-link:hover { color: #dfdbcf; }

/* Main content */
.main {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
  padding-top: 96px; /* ヘッダーの高さ分のパディングを追加 */
}

/* MUSEUMページ専用の調整 */
.museum-page .main {
  padding-top: 0; /* MUSEUMページではパディングを削除 */
}

.museum-page .gallery-header {
  top: 0; /* ナビゲーションバーと完全に接続 */
  margin-top: 0;
  padding: 0; /* MUSEUMページでは上下のpaddingを削除 */
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -96px;
  margin-bottom: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.8);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #465b54;
  padding: 0 20px;
}

.hero h1 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(60px, 12vw, 120px);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  line-height: 1.1;
  text-transform: uppercase;
  position: relative;
}


.hero p {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  color: #465b54;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Mission Introduction Section */
.mission-intro {
  padding: 60px 0 40px;
  background: var(--background-color);
  text-align: center;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.mission-content p {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.8;
  color: var(--primary-color);
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.mission-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.mission-logo img {
  height: 120px;
  width: auto;
  opacity: 1;
  filter: brightness(0.7) contrast(1.2);
  transition: all 0.3s ease;
}

.mission-logo img:hover {
  opacity: 1;
}

/* Concept Section */
.concept-section {
  margin-top: 60px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 5px;
}

.concept-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
}

.concept-header h2 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--primary-color);
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.concept-header p {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--primary-color);
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
  letter-spacing: 0.3px;
}

/* ===== Value Slider ===== */
.value-section {
  padding-bottom: 60px;
}

.value-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 20px;
}

.value-header h2 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(28px, 4.5vw, 40px);
  color: var(--primary-color);
  margin: 0;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.concept-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.concept-item {
  background: var(--background-color);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(70, 91, 84, 0.1);
}

.concept-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(70, 91, 84, 0.2);
}

.concept-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), #5a6b64);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.concept-placeholder {
  font-family: "Anton", "Arial", sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--background-color);
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.concept-content {
  padding: 30px 25px;
  text-align: center;
}

.concept-content h3 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(20px, 3vw, 24px);
  color: var(--primary-color);
  margin: 0 0 15px 0;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.concept-content > p {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--primary-color);
  line-height: 1.5;
  margin: 0 0 20px 0;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

.concept-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.concept-content li {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--primary-color);
  line-height: 1.6;
  margin: 8px 0;
  opacity: 0.7;
  letter-spacing: 0.1px;
  position: relative;
  padding-left: 15px;
}

.concept-content li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Concept Layout - All items use this style */
.concept-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px; /* 文章と写真の間隔を広げる */
  align-items: center;
  padding: 20px 20px 20px 20px;
  background: var(--background-color);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(70, 91, 84, 0.1);
  transition: all 0.3s ease;
}

.concept-layout:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(70, 91, 84, 0.2);
}

.concept-text {
  padding: 0;
  text-align: left;
}

.concept-text h3 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--primary-color);
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.concept-text > p {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--primary-color);
  line-height: 1.6;
  margin: 0 0 25px 0;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

.concept-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.concept-text li {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--primary-color);
  line-height: 1.6;
  margin: 12px 0;
  opacity: 0.8;
  letter-spacing: 0.1px;
  position: relative;
  padding-left: 20px;
}

.concept-text li::before {
  content: "";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 18px;
}

.concept-image-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.concept-image-section .concept-image {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.concept-image-section .concept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.concept-image-section .concept-image:hover img {
  transform: scale(1.05);
}

.concept-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: 4px;
  font-family: "Anton", "Arial", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
  margin-left: auto;
}

.concept-button:hover {
  background: var(--background-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(70, 91, 84, 0.3);
}

.concept-button svg {
  transition: transform 0.3s ease;
}

.concept-button:hover svg {
  transform: translateX(3px);
}

.concept-button-line {
  background: #5FAD82;
  border-color: #5FAD82;
  color: #fff;
}

.concept-button-line:hover {
  background: #4d9470;
  border-color: #4d9470;
  color: #fff;
}

.concept-button-instagram {
  background: #D4705A;
  border-color: #D4705A;
  color: #fff;
}

.concept-button-instagram:hover {
  background: #bc5e4a;
  border-color: #bc5e4a;
  color: #fff;
}

.concept-button-museum {
  background: #B87333;
  border-color: #B87333;
  color: #fff;
}

.concept-button-museum:hover {
  background: #9e6228;
  border-color: #9e6228;
  color: #fff;
}

/* Value Slider */
.value-slider-wrap {
  position: relative;
}

.value-slider {
  display: flex;
  gap: 16px;
  padding: 0 24px 8px;
}

.value-card {
  flex: 1;
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(70, 91, 84, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.value-card-image {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.value-card-image--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.value-card-image--grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.value-card-body h3 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--primary-color);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.value-card-tag {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--primary-color);
  opacity: 0.6;
  margin: 0;
  letter-spacing: 0.05em;
}

.value-card-desc {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--primary-color);
  opacity: 0.85;
  line-height: 1.6;
  margin: 0 0 8px;
  flex: 1;
}

/* Dots */
.value-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.value-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(70, 91, 84, 0.2);
  transition: background 0.3s;
  cursor: pointer;
}

.value-dot.active {
  background: var(--primary-color);
}

@media (max-width: 768px) {
  .value-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 8px;
  }

  .value-slider::-webkit-scrollbar { display: none; }

  .value-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .value-card-image { height: 200px; }

  .value-card-body h3 { font-size: clamp(24px, 7vw, 28px); }
  .value-card-tag    { font-size: clamp(13px, 3.5vw, 15px); }
  .value-card-desc   { font-size: clamp(14px, 3.5vw, 16px); }

  .value-dots { display: flex; }

  .value-header { margin-bottom: 20px; }
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin: 20px 0;
}

.thumbnail-image {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.thumbnail-image:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(70, 91, 84, 0.2);
}

/* Concept Product Images - CalorieMate Style */
.concept-product-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.open-garage-image {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 3px solid var(--primary-color);
}

.ride-life-image {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 3px solid var(--primary-color);
}

.bridge-era-image {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  border: 3px solid var(--primary-color);
}

.product-label {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-align: center;
}

.product-description {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(12px, 2vw, 14px);
  color: var(--primary-color);
  opacity: 0.8;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.05em;
  max-width: 80%;
}

/* Gallery section */
.gallery {
  padding: 0;
  background: var(--background-color);
  overflow-x: hidden;
  max-width: 100%;
}

.gallery-header {
  position: sticky;
  top: 96px; /* メインヘッダーの高さ分下げる */
  left: 0;
  right: 0;
  z-index: 100; /* メインヘッダーより下に表示 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 20px 32px;
  border-bottom: 2px solid #465b54;
  background: rgba(223, 219, 207, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.3);
}

.gallery-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.shuffle-btn {
  padding: 12px 24px;
  border: 2px solid #5a6b64;
  background: linear-gradient(135deg, rgba(90, 107, 100, 0.1), rgba(90, 107, 100, 0.05));
  color: #5a6b64;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 
    0 0 15px rgba(90, 107, 100, 0.4),
    inset 0 0 20px rgba(90, 107, 100, 0.1);
  min-height: 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border-radius: 4px;
}

.shuffle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.shuffle-btn:hover {
  background: linear-gradient(135deg, rgba(90, 107, 100, 0.2), rgba(90, 107, 100, 0.1));
  color: #2d3a35;
  transform: translateY(-2px) scale(1.05);
}

.shuffle-btn:hover::before {
  left: 100%;
}

.shuffle-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 0 15px rgba(90, 107, 100, 0.6),
    inset 0 0 20px rgba(90, 107, 100, 0.3);
}

.gallery-header h2 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #465b54;
  text-transform: uppercase;
}

.reset-btn {
  padding: 12px 24px;
  border: 2px solid #465b54;
  background: linear-gradient(135deg, rgba(70, 91, 84, 0.1), rgba(70, 91, 84, 0.05));
  color: #465b54;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 
    0 0 15px rgba(70, 91, 84, 0.4),
    inset 0 0 20px rgba(70, 91, 84, 0.1);
  min-height: 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border-radius: 4px;
}

.reset-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.reset-btn:hover {
  background: linear-gradient(135deg, rgba(70, 91, 84, 0.2), rgba(70, 91, 84, 0.1));
  color: #2d3a35;
  transform: translateY(-2px) scale(1.05);
}

.reset-btn:hover::before {
  left: 100%;
}

.reset-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 0 15px rgba(70, 91, 84, 0.6),
    inset 0 0 20px rgba(70, 91, 84, 0.3);
}

/* Sortable.js styles */
.sortable-ghost {
  opacity: 0.4;
  background: rgba(70, 91, 84, 0.15);
  transform: scale(0.98);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px dashed #465b54;
  border-radius: 8px;
}

.sortable-chosen {
  background: rgba(70, 91, 84, 0.25);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(70, 91, 84, 0.4);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-color: #6b7a73;
  z-index: 100;
}

.sortable-drag {
  opacity: 0.95;
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(70, 91, 84, 0.6);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 1000;
  border-color: #6b7a73;
  border-width: 3px;
}

/* ドラッグ中のカードスタイル - 上下移動に最適化 */
.card.dragging {
  cursor: grabbing !important;
  transform: scale(1.05); /* 回転を削除して上下移動に集中 */
  box-shadow: 0 15px 35px rgba(70, 91, 84, 0.6);
  border-color: #6b7a73;
}


/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  grid-auto-flow: dense;
  align-items: start;
  overflow-x: hidden;
  padding: 1rem 2rem 4rem;
}

/* Card styles */
.card {
  position: relative;
  background: var(--background-color);
  border: 2px solid #465b54;
  overflow: hidden;
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  -webkit-user-drag: element;
  will-change: transform;
  box-shadow: 0 0 15px rgba(70, 91, 84, 0.3);
  aspect-ratio: 1; /* 正方形のアスペクト比を強制 */
}

.card:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 0 30px rgba(70, 91, 84, 0.8);
  border-color: #5a6b64;
}



.card:active {
  cursor: grabbing;
}

.card-link {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}


/* Random flicker effect */
@keyframes random-flicker {
  0%, 100% { opacity: 1; }
  5% { opacity: 0.8; }
  10% { opacity: 1; }
  15% { opacity: 0.9; }
  20% { opacity: 1; }
  25% { opacity: 0.7; }
  30% { opacity: 1; }
  35% { opacity: 0.95; }
  40% { opacity: 1; }
  45% { opacity: 0.85; }
  50% { opacity: 1; }
  55% { opacity: 0.9; }
  60% { opacity: 1; }
  65% { opacity: 0.8; }
  70% { opacity: 1; }
  75% { opacity: 0.95; }
  80% { opacity: 1; }
  85% { opacity: 0.9; }
  90% { opacity: 1; }
  95% { opacity: 0.85; }
}

/* Flickering fluorescent light effect */
@keyframes continuous-flicker {
  0% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
  2% { 
    opacity: 0.3; 
    filter: brightness(0.5) contrast(1.5) saturate(0.8);
  }
  4% { 
    opacity: 1; 
    filter: brightness(1.2) contrast(0.8) saturate(1.2);
  }
  6% { 
    opacity: 0.1; 
    filter: brightness(0.3) contrast(2) saturate(0.6);
  }
  8% { 
    opacity: 0.9; 
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
  }
  10% { 
    opacity: 0.2; 
    filter: brightness(0.4) contrast(1.8) saturate(0.7);
  }
  12% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
  15% { 
    opacity: 0.4; 
    filter: brightness(0.7) contrast(1.3) saturate(0.9);
  }
  18% { 
    opacity: 0.8; 
    filter: brightness(1.3) contrast(0.7) saturate(1.3);
  }
  20% { 
    opacity: 0.1; 
    filter: brightness(0.2) contrast(2.5) saturate(0.5);
  }
  22% { 
    opacity: 0.7; 
    filter: brightness(0.9) contrast(1.2) saturate(1);
  }
  25% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
  28% { 
    opacity: 0.2; 
    filter: brightness(0.3) contrast(2.2) saturate(0.6);
  }
  30% { 
    opacity: 0.9; 
    filter: brightness(1.4) contrast(0.6) saturate(1.4);
  }
  32% { 
    opacity: 0.05; 
    filter: brightness(0.1) contrast(3) saturate(0.3);
  }
  35% { 
    opacity: 0.6; 
    filter: brightness(0.8) contrast(1.4) saturate(0.8);
  }
  38% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
  40% { 
    opacity: 0.3; 
    filter: brightness(0.6) contrast(1.7) saturate(0.7);
  }
  42% { 
    opacity: 0.8; 
    filter: brightness(1.2) contrast(0.8) saturate(1.2);
  }
  45% { 
    opacity: 0.1; 
    filter: brightness(0.2) contrast(2.8) saturate(0.4);
  }
  48% { 
    opacity: 0.5; 
    filter: brightness(0.7) contrast(1.5) saturate(0.9);
  }
  50% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
  52% { 
    opacity: 0.15; 
    filter: brightness(0.25) contrast(2.5) saturate(0.5);
  }
  55% { 
    opacity: 0.9; 
    filter: brightness(1.3) contrast(0.7) saturate(1.3);
  }
  58% { 
    opacity: 0.2; 
    filter: brightness(0.4) contrast(2) saturate(0.6);
  }
  60% { 
    opacity: 0.7; 
    filter: brightness(0.9) contrast(1.3) saturate(0.9);
  }
  62% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
  65% { 
    opacity: 0.1; 
    filter: brightness(0.15) contrast(3.2) saturate(0.3);
  }
  68% { 
    opacity: 0.6; 
    filter: brightness(0.8) contrast(1.6) saturate(0.8);
  }
  70% { 
    opacity: 0.9; 
    filter: brightness(1.4) contrast(0.6) saturate(1.4);
  }
  72% { 
    opacity: 0.05; 
    filter: brightness(0.1) contrast(3.5) saturate(0.2);
  }
  75% { 
    opacity: 0.4; 
    filter: brightness(0.6) contrast(1.8) saturate(0.7);
  }
  78% { 
    opacity: 0.8; 
    filter: brightness(1.1) contrast(0.9) saturate(1.1);
  }
  80% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
  82% { 
    opacity: 0.2; 
    filter: brightness(0.3) contrast(2.3) saturate(0.5);
  }
  85% { 
    opacity: 0.7; 
    filter: brightness(0.9) contrast(1.4) saturate(0.9);
  }
  88% { 
    opacity: 0.1; 
    filter: brightness(0.2) contrast(2.7) saturate(0.4);
  }
  90% { 
    opacity: 0.5; 
    filter: brightness(0.7) contrast(1.7) saturate(0.8);
  }
  92% { 
    opacity: 0.9; 
    filter: brightness(1.2) contrast(0.8) saturate(1.2);
  }
  95% { 
    opacity: 0.15; 
    filter: brightness(0.25) contrast(2.6) saturate(0.5);
  }
  98% { 
    opacity: 0.6; 
    filter: brightness(0.8) contrast(1.5) saturate(0.8);
  }
  100% { 
    opacity: 1; 
    filter: brightness(1) contrast(1) saturate(1);
  }
}

/* Individual image flicker with different timing - more subtle */
/* .card img {
  animation: continuous-flicker 4s infinite;
}

.card:nth-child(2n) img {
  animation-delay: 1s;
  animation-duration: 3.5s;
}

.card:nth-child(3n) img {
  animation-delay: 2s;
  animation-duration: 4.2s;
}

.card:nth-child(4n) img {
  animation-delay: 0.5s;
  animation-duration: 3.8s;
}

.card:nth-child(5n) img {
  animation-delay: 1.5s;
  animation-duration: 4.5s;
}

.card:nth-child(6n) img {
  animation-delay: 2.5s;
  animation-duration: 3.2s;
}

.card:nth-child(7n) img {
  animation-delay: 0.8s;
  animation-duration: 4.8s;
}

.card:nth-child(8n) img {
  animation-delay: 1.8s;
  animation-duration: 3.9s;
} */

/* Additional flicker variations - more subtle */
/* .card:nth-child(9n) img {
  animation-delay: 2.2s;
  animation-duration: 4.1s;
}

.card:nth-child(10n) img {
  animation-delay: 1.2s;
  animation-duration: 3.7s;
}

.card:nth-child(11n) img {
  animation-delay: 0.3s;
  animation-duration: 4.3s;
}

.card:nth-child(12n) img {
  animation-delay: 2.8s;
  animation-duration: 3.6s;
} */

/* Random intensity variations - DISABLED */

/* Scan line effect */
@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* CRT monitor effect */
@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}


/* Random glitch trigger */
@keyframes random-glitch {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-1px, 1px); }
  20% { transform: translate(1px, -1px); }
  30% { transform: translate(-1px, -1px); }
  40% { transform: translate(1px, 1px); }
  50% { transform: translate(0); }
  60% { transform: translate(-0.5px, 0.5px); }
  70% { transform: translate(0.5px, -0.5px); }
  80% { transform: translate(-0.5px, -0.5px); }
  90% { transform: translate(0.5px, 0.5px); }
}

/* Color channel separation */
.color-layer {
  mix-blend-mode: screen;
  transition: all 0.2s ease;
}

.red-layer {
  filter: hue-rotate(0deg) saturate(2);
}

.green-layer {
  filter: hue-rotate(120deg) saturate(2);
}

.blue-layer {
  filter: hue-rotate(240deg) saturate(2);
}

/* Scan line effect */
.scan-line {
  background: linear-gradient(90deg, transparent, #465b54, transparent);
  animation: scan-line 0.5s linear;
}

/* Noise overlay */
.noise-canvas {
  opacity: 0.02;
  mix-blend-mode: overlay;
}

/* CRT overlay */
.crt-overlay {
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, 0.03) 2px,
      rgba(0, 255, 65, 0.03) 4px
    );
  animation: crt-flicker 0.1s infinite;
}

/* Posts Page Styles */
.posts-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, rgba(223, 219, 207, 0.8), rgba(70, 91, 84, 0.1));
  border-bottom: 2px solid #465b54;
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.3);
}

.posts-hero-content {
  text-align: center;
  color: #465b54;
  text-shadow: 0 0 20px #465b54, 0 0 40px #465b54;
  padding: 0 20px;
}

.posts-hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: bold;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  animation: neon-flicker 3s infinite;
  position: relative;
}

.posts-hero-content h1::before,
.posts-hero-content h1::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch 0.3s infinite;
}

.posts-hero-content h1::before {
  color: #7a8a83;
  z-index: -1;
  animation-delay: 0.1s;
}

.posts-hero-content h1::after {
  color: #6b7a73;
  z-index: -2;
  animation-delay: 0.2s;
}

.posts-hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
  text-shadow: 0 0 10px #465b54;
  animation: neon-flicker 4s infinite;
}

/* Mission Page Styles */
.mission-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, rgba(223, 219, 207, 0.8), rgba(70, 91, 84, 0.1));
  border-bottom: 2px solid #465b54;
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.3);
}

.mission-hero-content {
  text-align: center;
  color: #465b54;
  padding: 0 20px;
}

.mission-hero-content h1 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  position: relative;
}

.mission-hero-content p {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.mission-content {
  padding: 4rem 0;
  background: var(--background-color);
}

.mission-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mission-text {
  background: rgba(223, 219, 207, 0.9);
  border: 2px solid #465b54;
  padding: 3rem;
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.2);
}

.mission-text h2 {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #465b54;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.mission-text p {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #465b54;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Contact Page Styles */
.contact-main {
  min-height: 100vh;
  background: var(--background-color);
  padding: 2rem 0;
  overflow-x: hidden;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.back-nav {
  margin-bottom: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(70, 91, 84, 0.1);
  border: 2px solid #465b54;
  color: #465b54;
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(70, 91, 84, 0.2);
}

.back-btn:hover {
  background: rgba(70, 91, 84, 0.2);
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.5);
  transform: translateX(-5px);
  animation: glitch 0.3s ease;
}

.back-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.back-btn:hover .back-icon {
  transform: translateX(-3px);
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 2px solid #465b54;
  background: rgba(223, 219, 207, 0.9);
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.3);
}

.contact-title {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #465b54;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #465b54;
  font-weight: bold;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info {
  background: rgba(223, 219, 207, 0.9);
  border: 2px solid #465b54;
  padding: 2rem;
}

.info-section {
  margin-bottom: 2rem;
}

.info-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #465b54;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  border-bottom: 1px solid #465b54;
  padding-bottom: 0.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.info-label {
  font-weight: bold;
  color: #465b54;
  min-width: 80px;
  margin-right: 1rem;
}

.info-link {
  color: #465b54;
  text-decoration: none;
  transition: all 0.3s ease;
}

.info-link:hover {
  color: #2d3a35;
  animation: glitch 0.3s ease;
}

.info-text {
  color: #465b54;
}

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

.social-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(70, 91, 84, 0.1);
  border: 1px solid #465b54;
  text-decoration: none;
  color: #465b54;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(70, 91, 84, 0.2);
  box-shadow: 0 0 15px rgba(70, 91, 84, 0.5);
  transform: translateY(-2px);
  animation: glitch 0.3s ease;
}

.social-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.social-text {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form-container {
  background: rgba(223, 219, 207, 0.9);
  border: 2px solid #465b54;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: bold;
  color: #465b54;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 1rem;
  background: rgba(223, 219, 207, 0.8);
  border: 2px solid #465b54;
  color: #465b54;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(70, 91, 84, 0.1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #5a6b64;
  box-shadow: 0 0 15px rgba(90, 107, 100, 0.5), inset 0 0 10px rgba(90, 107, 100, 0.1);
  animation: glitch 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(70, 91, 84, 0.5);
}

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

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(70, 91, 84, 0.1);
  border: 2px solid #465b54;
  color: #465b54;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(70, 91, 84, 0.2);
}

.submit-btn:hover {
  background: rgba(70, 91, 84, 0.2);
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.5);
  transform: translateY(-2px);
  animation: glitch 0.3s ease;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

.contact-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  background: rgba(223, 219, 207, 0.9);
  border: 2px solid #465b54;
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.2);
}

.response-time,
.business-hours {
  text-align: center;
}

.response-time h3,
.business-hours h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #465b54;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.response-time p,
.business-hours p {
  color: #465b54;
  font-weight: bold;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: rgba(223, 219, 207, 0.95);
  border: 2px solid #465b54;
  color: #465b54;
  font-family: "Courier New", monospace;
  font-weight: bold;
  z-index: 10000;
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.5);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-success {
  border-color: #465b54;
  color: #465b54;
}

.notification-error {
  border-color: #7a8a83;
  color: #7a8a83;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* 横スクロール防止 */
  body, html {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

@media (max-width: 768px) {
  .mission-intro {
    padding: 40px 0;
  }
  
  .mission-content {
    padding: 0 16px;
  }
  
  .mission-content p {
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  .mission-logo {
    margin-top: 80px;
  }
  
  .mission-logo img {
    height: 100px;
  }
  
  .concept-section {
    margin-top: 20px;
    padding: 0 2px;
  }

  .concept-header {
    padding: 20px 0;
    margin-bottom: 20px;
  }
  
  .concept-header h2 {
    font-size: clamp(36px, 10vw, 44px);
  }
  
  .concept-header p {
    font-size: clamp(14px, 3vw, 16px);
  }
  
  .value-header {
    margin-bottom: 40px;
  }
  
  .value-header h2 {
    font-size: clamp(36px, 10vw, 44px);
  }
  
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .concept-image {
    height: 150px;
  }
  
  .concept-placeholder {
    font-size: 36px;
  }
  
  .concept-content {
    padding: 25px 20px;
  }
  
  .concept-content h3 {
    font-size: clamp(18px, 4vw, 20px);
  }
  
  .concept-content > p {
    font-size: clamp(13px, 2.5vw, 14px);
  }
  
  .concept-content li {
    font-size: clamp(11px, 2vw, 12px);
  }
  
  .concept-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .concept-text h3 {
    font-size: clamp(26px, 7vw, 30px);
    margin-bottom: 8px;
  }

  .concept-text > p {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 8px;
  }

  .concept-text li {
    padding-left: 0;
    font-size: clamp(13px, 3.5vw, 15px);
  }

  .concept-image-section {
    align-items: center;
  }

  .concept-image-section .concept-image {
    height: 220px;
    width: 100%;
  }
  
  .concept-button {
    padding: 10px 24px;
    font-size: 13px;
    margin: 0 auto;
  }

  .product-label {
    font-size: clamp(16px, 4vw, 20px);
  }

  .product-description {
    font-size: clamp(11px, 2.5vw, 12px);
  }

  .thumbnail-gallery {
    gap: 4px;
    margin: 8px 0;
    justify-content: center;
    width: 100%;
  }

  .thumbnail-image {
    flex: 1;
    min-width: 0;
    height: 180px;
  }
  
  .contact-container {
    padding: 0 0.5rem;
  }
  
  .contact-header {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }
  
  .contact-info,
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .social-links {
    grid-template-columns: 1fr;
  }
  
  .contact-footer {
    padding: 1.5rem;
  }
  
  /* Mobile navigation */
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-mobile {
    display: flex;
  }
  
  /* 横スクロール防止 */
  body, html {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .hero {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-subtitle {
    font-size: 1rem;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .info-label {
    min-width: auto;
    margin-right: 0;
  }
  
  .posts-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .posts-hero-content p {
    font-size: 1rem;
  }
  
  /* 横スクロール防止 */
  body, html {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .hero {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .gallery-grid {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* SNS Link Styles */
.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 4px;
  background: transparent;
  transition: all 0.3s ease;
  min-width: 40px;
  min-height: 40px;
}

.sns-link:hover {
  background: rgba(223, 219, 207, 0.1);
  transform: translateY(-1px);
}

.sns-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s ease;
}

/* Pin Feature Styles */
.pin-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(223, 219, 207, 0.9);
  border: 2px solid #465b54;
  padding: 8px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 20;
  pointer-events: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(70, 91, 84, 0.5);
  backdrop-filter: blur(5px);
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.card:hover .pin-button {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(70, 91, 84, 0.8);
}

.pin-button:hover {
  background: rgba(70, 91, 84, 0.2);
  border-color: #6b7a73;
  transform: scale(1.1);
}

.pin-button.pinned {
  opacity: 1;
  background: rgba(70, 91, 84, 0.3);
  border-color: #6b7a73;
  box-shadow: 0 0 15px rgba(107, 122, 115, 0.8);
}

.pin-button svg {
  color: #465b54;
  display: block;
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.pin-button.pinned svg {
  color: #6b7a73;
}

/* Mobile pin button styles */
@media (max-width: 768px) {
  .pin-button {
    opacity: 0.8;
    min-width: 40px;
    min-height: 40px;
    padding: 10px;
  }
  
  .pin-button svg {
    width: 18px;
    height: 18px;
  }
}

/* Like Button Styles */
.like-button {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(223, 219, 207, 0.9);
  border: 2px solid #465b54;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(5px);
}

.like-button:hover {
  background: rgba(70, 91, 84, 0.15);
  transform: scale(1.05);
}

.like-button.liked {
  background: rgba(200, 60, 60, 0.15);
  border-color: #c03c3c;
}

.like-button.liked .like-icon {
  fill: #c03c3c;
  stroke: #c03c3c;
}

.like-icon {
  display: block;
  transition: all 0.2s ease;
  color: #465b54;
}

.like-count {
  font-family: "Anton", sans-serif;
  font-size: 0.7rem;
  color: #465b54;
  letter-spacing: 0.05em;
  min-width: 12px;
  text-align: center;
  transition: color 0.2s;
}

.like-button.liked .like-count {
  color: #c03c3c;
}

@media (max-width: 768px) {
  .like-button {
    padding: 6px 10px;
    bottom: 6px;
    right: 6px;
  }
}

/* Custom Cursor Styles */
* {
  cursor: none; /* Hide default cursor */
}

/* モバイルではカスタムカーソルを無効化 */
@media (max-width: 768px) {
  * {
    cursor: auto; /* モバイルでは標準カーソルを使用 */
  }
  
  .custom-cursor {
    display: none; /* モバイルではカスタムカーソルを非表示 */
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #465b54;
  border: 2px solid #465b54;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
  box-shadow: 0 0 10px #465b54;
}

.custom-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #dfdbcf;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.custom-cursor.hover {
  transform: scale(2);
  background: #5a6b64;
  border-color: #5a6b64;
  box-shadow: 0 0 20px #5a6b64;
}

.custom-cursor.click {
  transform: scale(0.5);
  background: #6b7a73;
  border-color: #6b7a73;
  box-shadow: 0 0 15px #6b7a73;
}

.custom-cursor.text {
  width: 8px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  border: 2px solid #465b54;
}

.custom-cursor.text::before {
  display: none;
}

/* Glitch cursor effect */
@keyframes cursor-glitch {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1px, 1px); }
  20% { transform: translate(1px, -1px); }
  30% { transform: translate(-1px, -1px); }
  40% { transform: translate(1px, 1px); }
  50% { transform: translate(0, 0); }
}

.custom-cursor.glitch {
  animation: cursor-glitch 0.1s ease;
}

/* Cursor trail effect */
.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #465b54;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
  mix-blend-mode: screen;
  transition: all 0.1s ease;
}

/* Additional cursor states */
.custom-cursor.drag {
  transform: scale(1.5);
  background: #7a8a83;
  border-color: #7a8a83;
  box-shadow: 0 0 15px #7a8a83;
}

.custom-cursor.drag::before {
  background: #dfdbcf;
  width: 6px;
  height: 6px;
}

/* Cursor for different contexts */
.custom-cursor.link {
  background: #6b7a73;
  border-color: #6b7a73;
  box-shadow: 0 0 10px #6b7a73;
}

.custom-cursor.button {
  background: #7a8a83;
  border-color: #7a8a83;
  box-shadow: 0 0 10px #7a8a83;
}

.custom-cursor.image {
  background: #5a6b64;
  border-color: #5a6b64;
  box-shadow: 0 0 10px #5a6b64;
}

/* Cursor pulse effect */
@keyframes cursor-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.custom-cursor.pulse {
  animation: cursor-pulse 1s infinite;
}

/* Cursor rotation effect */
@keyframes cursor-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.custom-cursor.rotate {
  animation: cursor-rotate 2s linear infinite;
}

/* Cursor color cycle */
@keyframes cursor-color-cycle {
  0% { background: #465b54; border-color: #465b54; box-shadow: 0 0 10px #465b54; }
  25% { background: #5a6b64; border-color: #5a6b64; box-shadow: 0 0 10px #5a6b64; }
  50% { background: #6b7a73; border-color: #6b7a73; box-shadow: 0 0 10px #6b7a73; }
  75% { background: #7a8a83; border-color: #7a8a83; box-shadow: 0 0 10px #7a8a83; }
  100% { background: #465b54; border-color: #465b54; box-shadow: 0 0 10px #465b54; }
}

.custom-cursor.rainbow {
  animation: cursor-color-cycle 3s linear infinite;
}





  
  /* モバイルでのスクロール改善 */
  .gallery-grid {
    -webkit-overflow-scrolling: touch; /* iOSでのスムーズスクロール */
    scroll-behavior: smooth;
  }
  
  /* ドラッグ中のスクロール改善 */
  .sortable-drag {
    touch-action: none; /* タッチ操作を無効化してスクロールを優先 */
  }
  
  /* ドラッグ中のカードのスクロール改善 */
  .sortable-chosen {
    touch-action: none;
  }
}


  
  .sortable-ghost {
    opacity: 0.4;
    transform: scale(0.9);
    border: 3px dashed #00a2ff;
  }
  
  .sortable-drag {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 162, 255, 0.6);
    border-width: 4px;
    border-color: #00ffff;
  }
  
  /* ドラッグ中のカード全体のスタイル */
  .sortable-chosen {
    background: rgba(0, 162, 255, 0.1);
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  }
}


/* Responsive */
@media (max-width: 768px) {
  .gallery-header {
    padding: 0; /* スマホでは上下のpaddingを削除 */
    top: 96px;
  }
  
  .header {
    top: 0; /* stickyヘッダーの場合は0に戻す */
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .hero {
    height: 100vh;
    min-height: 100vh;
  }

  .hero-image img {
    object-position: center 80%;
  }

  .hero h1 {
    font-size: 60px;
  }

  .header-inner {
    padding: 20px 16px;
  }

  .logo-image {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .gallery-header {
    padding: 0; /* 小さなスマホでも上下のpaddingを削除 */
    top: 96px;
  }
  
  .header {
    top: 0; /* stickyヘッダーの場合は0に戻す */
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  
  .card {
    aspect-ratio: 1; /* スマホでも正方形を維持 */
  }
  
  .hero {
    height: 100vh;
    min-height: 100vh;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .nav {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .sns-link {
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .sns-icon {
    width: 18px;
    height: 18px;
  }
  
  .logo-image {
    height: 60px;
  }
}

/* 非常に小さな画面でも2列を維持 */
@media (max-width: 320px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* 非常に小さな画面でも行間スペースを完全に削除 */
  }
  
  .card {
    border-width: 1px; /* ボーダーを細く */
    aspect-ratio: 1; /* 非常に小さな画面でも正方形を維持 */
  }
  
}

/* Article page styles */
.rb-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  overflow-x: hidden;
}

.rb-article {
  background: var(--background-color);
  border: 2px solid #465b54;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(70, 91, 84, 0.3);
}

.rb-article__head {
  padding: 40px 40px 20px;
  border-bottom: 2px solid #465b54;
  background: rgba(223, 219, 207, 0.9);
}

.rb-article__title {
  font-family: "Anton", "Arial", sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: #465b54;
  margin: 0;
  text-transform: uppercase;
}

.rb-article__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.rb-article__hero {
  margin: 0 0 30px 0;
  position: sticky;
  top: 40px;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rb-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
  max-height: 70vh;
}

.rb-article__body {
  font-size: 16px;
  line-height: 1.8;
  color: #465b54;
  background: rgba(223, 219, 207, 0.9);
  padding: 20px;
}

.rb-article__body h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 40px 0 20px;
  color: #465b54;
  text-shadow: 0 0 10px #465b54;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rb-article__body h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 15px;
  color: #465b54;
  text-shadow: 0 0 8px #465b54;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rb-article__body p {
  margin: 0 0 20px;
}

.rb-article__body ul,
.rb-article__body ol {
  margin: 20px 0;
  padding-left: 20px;
}

.rb-article__body li {
  margin: 8px 0;
}

.rb-article__body blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  background: rgba(70, 91, 84, 0.1);
  border-left: 4px solid var(--primary-color);
  font-style: italic;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 0 15px rgba(70, 91, 84, 0.3);
}

.rb-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(70, 91, 84, 0.5);
  object-fit: contain;
}

.rb-article__body a {
  color: #465b54;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.rb-article__body a:hover {
  color: #2d3a35;
  text-shadow: 0 0 10px #465b54;
  animation: glitch 0.3s ease;
}

/* Article page responsive styles */
@media (max-width: 1024px) {
  .rb-main {
    padding: 30px 24px;
  }
  
  .rb-article__content {
    gap: 30px;
    padding: 30px;
  }
  
  .rb-article__head {
    padding: 30px 30px 20px;
  }
}

@media (max-width: 768px) {
  .rb-main {
    padding: 20px 16px;
  }
  
  .rb-article__content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .rb-article__head {
    padding: 20px 20px 15px;
  }
  
  .rb-article__hero {
    position: static;
  }
  
  .rb-img {
    /* アスペクト比を保持 */
  }
  
  .rb-article__body {
    font-size: 15px;
  }
  
  .gallery-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .gallery-controls {
    gap: 8px;
  }
  
  .shuffle-btn,
  .reset-btn {
    font-size: 12px;
    padding: 10px 18px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .rb-main {
    padding: 15px 12px;
  }
  
  .rb-article__content {
    padding: 15px;
  }
  
  .rb-article__head {
    padding: 15px 15px 10px;
  }
  
  .rb-article__title {
    font-size: 24px;
  }
  
  .rb-article__body {
    font-size: 14px;
  }
  
  .gallery-header {
    padding: 15px 15px 10px;
  }
  
  .gallery-controls {
    gap: 6px;
  }
  
  .shuffle-btn,
  .reset-btn {
    font-size: 11px;
    padding: 8px 14px;
    min-height: 40px;
  }
}


/* ============================================================
   LINE誘導モーダル
   ============================================================ */
#lineNudgeModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lineNudgeModal.active {
  opacity: 1;
  pointer-events: auto;
}

.line-nudge-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.line-nudge-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background-color, #dfdbcf);
  padding: 2rem 1.5rem 2.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-width: 480px;
  margin: 0 auto;
}

#lineNudgeModal.active .line-nudge-box {
  transform: translateY(0);
}

.line-nudge-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--light-color, #6b7a73);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.line-nudge-label {
  font-family: "Anton", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--primary-color, #465b54);
  margin-bottom: 0.5rem;
}

.line-nudge-title {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  color: var(--deep-color, #1f2a26);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.line-nudge-desc {
  font-family: sans-serif;
  font-size: 0.82rem;
  color: var(--light-color, #6b7a73);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.line-nudge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #06c755;
  color: #fff;
  font-family: "Anton", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 0.75rem;
}

.line-nudge-btn:hover {
  opacity: 0.85;
}

.line-nudge-skip {
  text-align: center;
  font-family: sans-serif;
  font-size: 0.78rem;
  color: var(--light-color, #6b7a73);
  cursor: pointer;
  text-decoration: underline;
  margin: 0;
}

/* ============================================================
   言語切替ボタン
   ============================================================ */
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(223, 219, 207, 0.5);
  color: #dfdbcf;
  font-family: "Anton", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: rgba(223, 219, 207, 0.15);
  border-color: #dfdbcf;
}
