/* ============================================
   えいちの極み - H no Kiwami
   Dark & Ink Brush Theme
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #222222;
  --bg-card: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #c43e3e;
  --accent-hover: #d45555;
  --border: #333333;
  --ink: #111111;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Logo Text --- */
.logo-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  display: block;
  line-height: 1.3;
}

.logo-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-top: 4px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Age Gate --- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.age-gate-content {
  text-align: center;
  max-width: 480px;
}

.age-gate-logo {
  margin-bottom: 40px;
}

.age-gate-logo img {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.age-gate-warning {
  margin-bottom: 40px;
}

.age-gate-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}

.age-gate-text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-primary);
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 48px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 260px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo {
  text-decoration: none;
}

.header-logo .logo-text {
  font-size: 1.1rem;
  white-space: nowrap;
}

/* --- Navigation --- */
.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Ink brush decorative elements */
.ink-brush {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  filter: blur(2px);
}

.ink-brush-1 {
  width: 500px;
  height: 500px;
  top: 10%;
  right: -5%;
  animation: inkFloat1 20s ease-in-out infinite;
}

.ink-brush-2 {
  width: 350px;
  height: 350px;
  bottom: 5%;
  left: -3%;
  animation: inkFloat2 25s ease-in-out infinite;
}

.ink-brush-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 30%;
  animation: inkFloat3 18s ease-in-out infinite;
}

@keyframes inkFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes inkFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.08); }
}

@keyframes inkFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-15px, 10px) scale(1.1); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: heroFadeIn 1.2s ease;
}

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

.hero-logo-img {
  margin: 0 auto 24px;
  text-align: center;
}

.hero-logo-img img {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-ja {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.section-title-en {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Works Grid --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.work-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.work-info {
  padding: 20px;
}

.work-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.work-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.work-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}

.work-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.work-link::after {
  content: ' →';
}

/* --- Recruit Section --- */
.recruit-wrapper {
  max-width: 680px;
  margin: 0 auto 56px;
}

.recruit-body {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 36px;
}

.recruit-heading {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

.recruit-intro {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.9;
}

.recruit-details {
  margin-bottom: 28px;
}

.recruit-item {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  line-height: 1.8;
}

.recruit-item:last-child {
  border-bottom: none;
}

.recruit-item dt {
  flex-shrink: 0;
  width: 100px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.recruit-item dt::after {
  content: '：';
}

.recruit-item dd {
  color: var(--text-secondary);
}

.recruit-notes {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recruit-notes li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.recruit-notes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.recruit-cta {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 8px;
}

.recruit-age-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .recruit-body {
    padding: 28px 20px;
  }

  .recruit-item {
    flex-direction: column;
    gap: 2px;
  }

  .recruit-item dt {
    width: auto;
  }

  .recruit-item dt::after {
    content: '';
  }
}

/* --- Contact Form --- */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-wrapper--wide {
  max-width: 720px;
}

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

/* Form Sections (fieldset) */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title .required {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.form-section-title .note {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

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

.form-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form-label .required {
  font-size: 0.75rem;
  color: var(--accent);
  margin-left: 4px;
}

.form-input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

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

/* Checkbox & Radio groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition);
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

/* Hide native inputs */
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom checkbox */
.checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 2px;
}

.checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s ease;
  margin-top: -2px;
}

input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
  transform: rotate(-45deg) scale(1);
}

/* Custom radio */
.radio-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 2px;
}

.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.2s ease;
}

input[type="radio"]:checked + .radio-custom {
  border-color: var(--accent);
}

input[type="radio"]:checked + .radio-custom::after {
  background: var(--accent);
  transform: scale(1);
}

/* Checked label highlight */
input[type="checkbox"]:checked ~ span:last-child,
input[type="radio"]:checked ~ span:last-child {
  color: var(--text-primary);
}

.btn-submit {
  align-self: center;
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-primary);
}

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* --- Fade-in animation on scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .hero-logo-img img {
    max-width: 300px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title-ja {
    font-size: 1.4rem;
  }

  .age-gate-logo img {
    max-width: 240px;
  }

  .btn {
    min-width: 220px;
    padding: 12px 36px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
