@charset "UTF-8";
/* CSS Document */

/*--------------------------------------------*/
/* DOCS PAGE ///////////////////////////////*/
/* 没入感と洗練された余白を持つAwwwardsレベルのデザイン */

/* ========= Custom Properties ========= */
:root {
  /* Extended Color Palette */
  --docs__bg-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  --docs__bg-card: rgba(255, 255, 255, 0.03);
  --docs__bg-card-hover: rgba(255, 255, 255, 0.06);
  --docs__text-primary: #f5f5f5;
  --docs__text-secondary: #a0a0a0;
  --docs__accent-glow: rgba(184, 28, 34, 0.3);
  --docs__border-subtle: rgba(255, 255, 255, 0.08);
  --docs__shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --docs__shadow-hover: 0 16px 64px rgba(184, 28, 34, 0.15);
  
  /* Typography Scale */
  --docs__font-size-hero: clamp(3.5rem, 8vw, 6rem);
  --docs__font-size-title: clamp(2rem, 4vw, 2.5rem);
  --docs__font-size-body: clamp(1rem, 2vw, 1.125rem);
  --docs__font-size-small: clamp(0.875rem, 1.5vw, 0.9375rem);
  
  /* Spacing System */
  --docs__space-xs: 0.5rem;
  --docs__space-sm: 1rem;
  --docs__space-md: 2rem;
  --docs__space-lg: 4rem;
  --docs__space-xl: 8rem;
  --docs__space-xxl: 12rem;
  
  /* Animation */
  --docs__transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --docs__transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/*--------------------------------------------*/
/* GLOBAL RESET & BASE /////////////////////////*/

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

html {
  scroll-behavior: smooth;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--docs__bg-primary);
  color: var(--docs__text-primary);
  font-family: var(--ja);
  overflow-x: hidden;
}

/*--------------------------------------------*/
/* MAIN LAYOUT ////////////////////////////////*/

#DOCS {
  min-height: 100vh;
  position: relative;
}

#DOCS::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(184, 28, 34, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(28, 184, 178, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(184, 160, 28, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

#mainWrapper {
  position: relative;
  z-index: 2;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--docs__space-xl) var(--docs__space-md);
}

/*--------------------------------------------*/
/* HERO SECTION ///////////////////////////////*/

.DOC_msg {
  text-align: center;
  margin-bottom: var(--docs__space-xxl);
  position: relative;
}

.DOC_msg::after {
  content: '';
  position: absolute;
  bottom: -var(--docs__space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: var(--docs__space-md);
  background: linear-gradient(to bottom, var(--color__primary-red), transparent);
}

.DOC_msg h2 {
  font-family: var(--en);
  color: var(--color__primary-red);
  font-size: var(--docs__font-size-hero);
  font-weight: var(--fw-black);
  letter-spacing: 0.05em;
  margin-bottom: var(--docs__space-md);
  animation: shimmer 3s ease-in-out infinite;
  position: relative;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.DOC_msg p {
  font-size: var(--docs__font-size-body);
  color: var(--docs__text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  padding-block: 2em;
}

/*--------------------------------------------*/
/* ARTICLE CARDS //////////////////////////////*/

article {
  background: var(--docs__bg-card);
  border: 1px solid var(--docs__border-subtle);
  border-radius: 16px;
  padding: var(--docs__space-lg);
  margin-bottom: var(--docs__space-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--docs__transition-smooth);
  backdrop-filter: blur(10px);
}

article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(184, 28, 34, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

article:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--docs__bg-card-hover);
  border-color: var(--color__primary-red);
  box-shadow: var(--docs__shadow-hover);
}

article:hover::before {
  opacity: 1;
}

article h3 {
  font-family: var(--en);
  font-size: var(--docs__font-size-title);
  font-weight: var(--fw-bold);
  margin-bottom: var(--docs__space-sm);
  color: var(--docs__text-primary);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-bottom: .5em;
  gap: var(--docs__space-sm);
}

article h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--color__primary-red);
  border-radius: 2px;
  flex-shrink: 0;
}

article p {
  font-size: var(--docs__font-size-body);
  color: var(--docs__text-secondary);
  margin-bottom: var(--docs__space-md);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

article dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--docs__space-xs) var(--docs__space-sm);
  margin-bottom: var(--docs__space-md);
  font-size: var(--docs__font-size-small);
  position: relative;
  z-index: 1;
}

article dt {
  font-weight: var(--fw-semibold);
  color: var(--color__primary-red);
  font-family: var(--en);
}

article dd {
  color: var(--docs__text-secondary);
  margin: 0;
}

article .btn a {
  display: inline-flex;
  align-items: center;
  gap: var(--docs__space-xs);
  padding: var(--docs__space-sm) var(--docs__space-md);
  background: linear-gradient(135deg, var(--color__primary-red), #8a1519);
  color: var(--color__white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: var(--fw-medium);
  font-size: var(--docs__font-size-small);
  transition: all 0.3s var(--docs__transition-bounce);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

article .btn a::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;
}

article a::after {
  content: '→';
  transition: transform 0.3s ease;
}

article:hover a::before {
  left: 100%;
}

article:hover a::after {
  transform: translateX(4px);
}

article a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 28, 34, 0.4);
}

/*--------------------------------------------*/
/* ANIMATIONS & EFFECTS //////////////////////*/

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

article {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

article:nth-child(1) { animation-delay: 0.1s; }
article:nth-child(2) { animation-delay: 0.2s; }
article:nth-child(3) { animation-delay: 0.3s; }
article:nth-child(4) { animation-delay: 0.4s; }
article:nth-child(5) { animation-delay: 0.5s; }
article:nth-child(6) { animation-delay: 0.6s; }
article:nth-child(7) { animation-delay: 0.7s; }

/*--------------------------------------------*/
/* RESPONSIVE DESIGN //////////////////////////*/

@media (max-width: 1024px) {
  .inner {
    padding: var(--docs__space-lg) var(--docs__space-sm);
  }
  
  .DOC_msg {
    margin-bottom: var(--docs__space-xl);
  }
  
  article {
    padding: var(--docs__space-md);
  }
}

@media (max-width: 768px) {
  .inner {
    padding: var(--docs__space-md) var(--docs__space-sm);
  }
  
  .DOC_msg h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
  
  .DOC_msg p {
    font-size: var(--docs__font-size-small);
  }
  
  article {
    padding: var(--docs__space-sm);
    margin-bottom: var(--docs__space-md);
  }
  
  article h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  article dl {
    grid-template-columns: 1fr;
    gap: var(--docs__space-xs);
  }
  
  article dt {
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .inner {
    padding: var(--docs__space-sm);
  }
  
  .DOC_msg {
    margin-bottom: var(--docs__space-lg);
  }
  
  article {
    padding: var(--docs__space-sm);
  }
  
  article a {
    width: 100%;
    justify-content: center;
  }
}

/*--------------------------------------------*/
/* SCROLLBAR CUSTOMIZATION ////////////////////*/

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: var(--color__primary-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8a1519;
}

/*--------------------------------------------*/
/* SELECTION STYLE ////////////////////////////*/

::selection {
  background: var(--color__primary-red);
  color: var(--color__white);
}

::-moz-selection {
  background: var(--color__primary-red);
  color: var(--color__white);
}

/*--------------------------------------------*/
/* FOCUS STATES //////////////////////////////*/

article a:focus,
header h1 a:focus {
  outline: 2px solid var(--color__primary-red);
  outline-offset: 2px;
}

/*--------------------------------------------*/
/* PRINT STYLES ////////////////////////////////*/

@media print {
  body {
    background: white;
    color: black;
  }
  
  article {
    break-inside: avoid;
    border: 1px solid #ccc;
    background: white;
  }
  
  article a {
    display: none;
  }
}
