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

:root {
  --primary-color: #f8f6f0;
  --secondary-color: #4e4c44;
  --accent-warm: #d4b5a0;
  --accent-light: #e8dcc6;
  --accent-rose: #f4e8e1;
  --accent-soft: rgba(78, 76, 68, 0.1);
  --gradient-main: linear-gradient(
    135deg,
    #f8f6f0 0%,
    #e8dcc6 50%,
    #d4b5a0 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    #4e4c44 0%,
    #6b6860 50%,
    #8a8577 100%
  );
  --shadow-soft: 0 10px 30px rgba(78, 76, 68, 0.15);
  --shadow-hover: 0 20px 60px rgba(78, 76, 68, 0.25);
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
    "Meiryo", sans-serif;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/* Progress Indicator */
.progress-indicator {
  position: fixed;
  top: 0;
  right: 20px;
  width: 4px;
  height: 100vh;
  background: rgba(78, 76, 68, 0.1);
  z-index: 1000;
}

.progress-bar {
  width: 100%;
  height: 0%;
  background: var(--gradient-accent);
  transition: height 0.3s ease;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 20px 50px;
  background: rgba(248, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(78, 76, 68, 0.1);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-warm);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--accent-warm);
  transition: left 0.3s ease;
}

.logo:hover::after {
  left: 0;
}

.nav {
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 30px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-warm);
  transition: all 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/hero.png") center/cover no-repeat,
    var(--gradient-main);
  filter: brightness(0.85);
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--secondary-color);
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.5s ease 0.5s forwards;
  font-family: "Georgia", "Times New Roman", serif;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary-color);
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: "";
  width: 2px;
  height: 30px;
  background: var(--accent-warm);
  margin-top: 10px;
}

/* Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-warm);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

/* Section Styles */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

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

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  color: var(--secondary-color);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
    "Meiryo", sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent-warm);
  opacity: 0.6;
}

/* Mission Section */
.mission {
  background: linear-gradient(
    135deg,
    rgba(252, 228, 236, 0.3),
    rgba(248, 246, 240, 0.8)
  );
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-text {
  font-size: 1.2rem;
  line-height: 1.8;
}

.mission-visual {
  position: relative;
  height: 400px;
  background: var(--gradient-main);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-warm);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-warm);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.stat-card .progress-circle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-top: 3px solid var(--accent-gold);
  transform: rotate(-90deg);
  opacity: 0;
  animation: spin 2s linear infinite;
}

.stat-card.visible .progress-circle {
  opacity: 1;
}

/* Creators Section */
.creators {
  background: var(--primary-color);
}

.creators-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.creators-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
}

.creator-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.creator-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: var(--shadow-hover);
}

.creator-image {
  height: 250px;
  background: var(--gradient-main);
  position: relative;
  overflow: hidden;
}

.creator-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.3),
    rgba(104, 159, 56, 0.3)
  );
  transition: all 0.8s ease;
}

.creator-card:hover .creator-image::before {
  transform: scale(1.1) rotate(5deg);
}

.creator-info {
  padding: 20px;
}

.creator-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.creator-description {
  color: var(--secondary-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--accent-warm);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

/* Products Section */
.products {
  background: linear-gradient(
    135deg,
    rgba(26, 35, 126, 0.05),
    rgba(248, 246, 240, 0.9)
  );
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 30px;
  border: 2px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-warm);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-warm);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-tab.active::before,
.filter-tab:hover::before {
  left: 0;
}

.filter-tab.active,
.filter-tab:hover {
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  gap: 30px;

  /* ← ここがポイント */
  width: fit-content; /* 列ぶんの幅だけに縮む */
  margin: 0 auto; /* セクション中央に配置 */
  justify-content: start; /* グリッド内部は左上詰め */
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 250px;
  background: var(--gradient-main);
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.2),
    rgba(252, 228, 236, 0.3)
  );
}

.shine-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translate(-100%, -100%);
  transition: transform 0.8s ease;
}

.product-card:hover .shine-effect {
  transform: rotate(45deg) translate(100%, 100%);
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent-warm);
  margin-bottom: 10px;
}

.product-description {
  color: var(--secondary-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Impact Section */
.impact {
  background: var(--primary-color);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.impact-item {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
}

.impact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-warm);
  border-radius: 20px 20px 0 0;
}

.impact-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.impact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--accent-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.impact-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-warm);
  margin-bottom: 10px;
}

.impact-label {
  font-size: 1.1rem;
  color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
  background: var(--gradient-accent);
  color: white;
  text-align: center;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--accent-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cta-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.cta-description {
  opacity: 0.9;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 60px 0 30px;
}

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

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--accent-warm);
}

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

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

.footer-section a:hover {
  color: var(--accent-warm);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--accent-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  background: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(248, 246, 240, 0.2);
  opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
  }
  75% {
    transform: translateY(-30px) translateX(5px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(-90deg);
  }
  100% {
    transform: rotate(270deg);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-warm);
  }
}

@keyframes burst {
  0% {
    opacity: 1;
    transform: scale(0) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1) translate(var(--dx, 0), var(--dy, 0));
  }
}

@keyframes wave {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Advanced Scroll Trigger Animations */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotateY(45deg);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotate-in.visible {
  opacity: 1;
  transform: rotateY(0);
}

.count-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.count-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.line-draw {
  position: relative;
  overflow: hidden;
}

.line-draw::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent-warm);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-draw.visible::after {
  width: 100%;
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent-gold);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.morph {
  opacity: 0;
  transform: translateY(30px) rotateX(90deg);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.morph.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.clip-reveal {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.clip-reveal.visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.particle-container {
  position: relative;
  overflow: hidden;
}

.particle-burst {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-warm);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.particle-burst.animate {
  animation: burst 1.5s ease-out forwards;
}

.wave-text {
  display: inline-block;
}

.wave-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wave 0.6s ease forwards;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}
/* ------- 画面幅 1024px 未満：2 列 ------- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 300px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(78, 76, 68, 0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-menu.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-menu.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .hero-content {
    padding: 0 20px;
  }

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

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

  .mission-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .creator-card {
    flex: 0 0 250px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

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

  header {
    padding: 15px 20px;
  }
}
