/* ===================================================
   AJTC Inc. — Corporate Site
   Designed with intention, not templates.
   =================================================== */

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0e1a2e;
  --navy-mid: #152238;
  --navy-light: #1c2d48;
  --gold: #c8a45c;
  --gold-light: #dbb96e;
  --gold-muted: rgba(200, 164, 92, 0.15);
  --white: #ffffff;
  --off-white: #f4f1ec;
  --text-dark: #1a1a1a;
  --text-mid: #555;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }
}

body {
  font-family: var(--font-jp);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 164, 92, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s;
}

body:hover .cursor-dot,
body:hover .cursor-circle {
  opacity: 1;
}

a:hover ~ .cursor-circle,
button:hover ~ .cursor-circle {
  width: 56px;
  height: 56px;
  border-color: var(--gold);
  background: rgba(200, 164, 92, 0.06);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 28px 0;
  transition: all 0.5s var(--ease);
}

.navbar.scrolled {
  background: rgba(14, 26, 46, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
}

.logo-text {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-link-cta {
  color: var(--navy);
  background: var(--gold);
  padding: 10px 28px;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: all 0.3s;
}

.nav-link-cta::after { display: none; }

.nav-link-cta:hover {
  color: var(--navy);
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.4s var(--ease);
}

.hamburger-line:first-child { top: 0; }
.hamburger-line:last-child { bottom: 0; }

.hamburger.active .hamburger-line:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active .hamburger-line:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(32px, 8vw, 120px);
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}

.hero-title {
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  display: block;
  transform: translateY(110%);
  animation: textReveal 1s var(--ease-out) forwards;
}

.hero-line:nth-child(1) .hero-line-inner {
  animation-delay: 0.5s;
}

.hero-line:nth-child(2) .hero-line-inner {
  animation-delay: 0.7s;
  color: var(--gold);
}

@keyframes textReveal {
  to { transform: translateY(0); }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 1.4s var(--ease) forwards;
}

/* Scroll indicator - right bottom */
.hero-scroll {
  position: absolute;
  bottom: 48px;
  right: clamp(32px, 5vw, 80px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s 2s var(--ease) forwards;
}

.hero-scroll-text {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200, 164, 92, 0.6), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Side text */
.hero-side-text {
  position: absolute;
  bottom: 48px;
  left: clamp(32px, 5vw, 80px);
  z-index: 3;
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeUp 0.8s 2.2s var(--ease) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   SECTIONS COMMON
   ============================ */
.section {
  position: relative;
  padding: clamp(100px, 12vw, 180px) 0;
}

.section--dark {
  background: var(--navy);
}

.section--light {
  background: var(--off-white);
  color: var(--text-dark);
}

/* Diagonal cut between sections */
.section--light::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--off-white);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.section--light::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--off-white);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-number {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.5;
}

.section-heading {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.section-header--dark .section-heading {
  color: var(--text-dark);
}

.section-header--dark .section-number {
  color: var(--gold);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================
   BUSINESS SECTION
   ============================ */

/* Featured Card */
.biz-featured {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: center;
  padding: clamp(40px, 5vw, 72px);
  background: linear-gradient(135deg, rgba(200, 164, 92, 0.06) 0%, rgba(200, 164, 92, 0.01) 100%);
  border: 1px solid rgba(200, 164, 92, 0.12);
  border-radius: 2px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s;
}

.biz-featured:hover {
  border-color: var(--gold);
}

.biz-featured-number {
  position: absolute;
  top: -20px;
  right: 40px;
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(200, 164, 92, 0.04);
  line-height: 1;
  pointer-events: none;
}

.biz-featured-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.biz-featured-copy {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.6;
}

.biz-featured-desc {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.5);
}

.biz-featured-visual {
  width: 100%;
  max-width: 200px;
  justify-self: center;
  animation: rotateVisual 30s linear infinite;
}

@keyframes rotateVisual {
  to { transform: rotate(360deg); }
}

.biz-featured-visual svg {
  width: 100%;
  height: auto;
}

/* Business Grid - asymmetric */
.biz-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.biz-card {
  padding: clamp(28px, 3vw, 44px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.biz-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s var(--ease-out);
}

.biz-card:hover {
  border-color: rgba(200, 164, 92, 0.3);
  background: rgba(200, 164, 92, 0.03);
}

.biz-card:hover::before {
  width: 100%;
}

.biz-card--tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.biz-card--wide {
  grid-column: span 2;
}

.biz-card-num {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.4;
  display: block;
  margin-bottom: 20px;
}

.biz-card-title {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.biz-card-copy {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--gold);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 8px;
}

.biz-card-desc {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

/* ============================
   AI CONSULTING (Light section)
   ============================ */
.ai-lead {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: clamp(56px, 8vw, 96px);
  letter-spacing: 1px;
}

.ai-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.ai-timeline-track {
  position: absolute;
  top: 52px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 92, 0.3), transparent);
}

.ai-step {
  padding: 0 clamp(16px, 3vw, 40px);
  position: relative;
}

.ai-step-num {
  font-family: var(--font-en);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: rgba(200, 164, 92, 0.12);
  line-height: 1;
  margin-bottom: 24px;
}

.ai-step-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.ai-step-title span {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  display: block;
  margin-top: 6px;
}

.ai-step-desc {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.ai-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-step-tags span {
  padding: 5px 14px;
  border: 1px solid rgba(200, 164, 92, 0.3);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* ============================
   PHILOSOPHY
   ============================ */
.section--philosophy {
  text-align: center;
  padding: clamp(120px, 15vw, 240px) 0;
}

.philosophy-block {
  max-width: 800px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  position: relative;
}

.philosophy-quote-mark {
  font-family: var(--font-en);
  font-size: clamp(6rem, 12vw, 12rem);
  font-weight: 300;
  color: rgba(200, 164, 92, 0.1);
  line-height: 0.5;
  position: absolute;
  top: -20px;
  left: -10px;
  user-select: none;
}

.philosophy-quote-mark--end {
  top: auto;
  left: auto;
  bottom: -60px;
  right: -10px;
  transform: rotate(180deg);
}

.philosophy-quote {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 2;
  letter-spacing: 3px;
  padding: 40px 0;
}

.philosophy-quote em {
  font-style: normal;
  color: var(--gold);
}

.philosophy-body {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: clamp(56px, 8vw, 96px);
}

.philosophy-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 80px);
}

.philosophy-stat {
  text-align: center;
}

.philosophy-stat-number {
  font-family: var(--font-en);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.philosophy-stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  margin-top: 12px;
  display: block;
}

.philosophy-stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(200, 164, 92, 0.15);
}

.philosophy-stat-icon {
  margin-bottom: 12px;
}

/* ============================
   COMPANY
   ============================ */
.company-table {
  max-width: 720px;
}

.company-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.company-th {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}

.company-td {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}

.company-td-en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

.company-list li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
  font-size: 1.05rem;
}

.company-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

/* ============================
   CONTACT
   ============================ */
.section--contact {
  background: var(--navy-mid);
  text-align: center;
  padding: clamp(120px, 15vw, 200px) 0;
}

.contact-eyebrow {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.6;
}

.contact-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.contact-desc {
  font-size: 1rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 48px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 56px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  border: none;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.contact-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;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(200, 164, 92, 0.2);
}

.contact-btn svg {
  transition: transform 0.3s var(--ease);
}

.contact-btn:hover svg {
  transform: translateX(6px);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--navy);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-policy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-policy:hover {
  color: var(--gold);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
}

/* ============================
   手書きHTMLページ共通スタイル
   ============================ */

/* ヘッダー（固定・常にsolid） */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(14, 26, 46, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(200, 164, 92, 0.08);
}

.header--solid {
  background: rgba(14, 26, 46, 0.98);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
}

.header__logo-text {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--white);
}

.header__logo-sub {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 2px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header__nav-link {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
  position: relative;
  text-decoration: none;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.header__nav-link:hover { color: var(--white); }
.header__nav-link:hover::after { width: 100%; }

.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 1001;
  padding: 0;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.35s;
}

.header__hamburger span:first-child { top: 0; }
.header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__hamburger span:last-child { bottom: 0; }

.header__hamburger.active span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ページヘッダー */
.page-header {
  padding: 160px 0 72px;
  background: var(--navy);
  border-bottom: 1px solid rgba(200, 164, 92, 0.08);
}

.page-header__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 3px;
}

/* コンテナ変形 */
.container--narrow {
  max-width: 800px;
}

/* セクション変形 */
.section--page {
  padding: 80px 0 120px;
}

/* フェードイン */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* お問い合わせフォーム */
.contact-page__intro {
  font-size: 1rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form__group {
  margin-bottom: 28px;
}

.contact-form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.contact-form__required {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  margin-left: 6px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-jp);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.3s;
  border-radius: 2px;
  box-sizing: border-box;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(200, 164, 92, 0.04);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.contact-form__select option {
  background: var(--navy);
  color: var(--white);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__submit {
  margin-top: 12px;
}

.contact-form__btn {
  display: inline-block;
  padding: 16px 56px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form__btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.contact-form__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* CrAIdleヒアリング — チェックボックスグループ */
.contact-form__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.contact-form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color 0.2s;
}

.contact-form__checkbox-label:hover {
  color: var(--white);
}

.contact-form__checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.contact-form__checkbox-label input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.contact-form__checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--navy);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* レスポンシブ（手書きページ） */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(14, 26, 46, 0.98);
    align-items: center;
    justify-content: center;
  }
  .header__nav.open .header__nav-list {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .header__nav-link { font-size: 1.1rem; }
  .header__hamburger { display: block; }
  .page-header { padding: 120px 0 56px; }
  .section--page { padding: 56px 0 80px; }
  .footer__inner { flex-direction: column; gap: 16px; }
  .footer__links { gap: 10px 16px; }
}

/* 手書きHTMLページ用フッター（新スタイル） */
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__company {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
}

.footer__address {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.footer__links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__sns {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s;
}

.footer__sns-link:hover {
  color: var(--gold);
}

.footer__copyright {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
  margin-top: 8px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .biz-featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .biz-featured-visual {
    display: none;
  }

  .biz-grid {
    grid-template-columns: 1fr 1fr;
  }

  .biz-card--tall {
    grid-row: span 1;
  }

  .biz-card--wide {
    grid-column: span 2;
  }

  .ai-timeline {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .ai-timeline-track {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Disable custom cursor on touch */
  .cursor-dot, .cursor-circle { display: none; }
  body { cursor: auto; }
  a { cursor: pointer; }

  .hamburger { display: block; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(14, 26, 46, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.5s var(--ease-out);
  }

  .nav-menu.open { right: 0; }

  .nav-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
  }

  .section { padding: 80px 0; }

  .section--light::before,
  .section--light::after {
    height: 60px;
    top: -30px;
  }
  .section--light::after {
    bottom: -30px;
    top: auto;
  }

  .hero-side-text { display: none; }

  .hero-line-inner {
    letter-spacing: -1px;
  }

  .biz-grid {
    grid-template-columns: 1fr;
  }

  .biz-card--wide {
    grid-column: span 1;
  }

  .biz-featured-number {
    font-size: 5rem;
  }

  .philosophy-quote {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }

  .philosophy-stat-number {
    font-size: 4rem;
  }

  .philosophy-stats {
    gap: 32px;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section--philosophy {
    padding: 100px 0;
  }

  .ai-step-num {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .philosophy-stats {
    flex-direction: column;
    gap: 24px;
  }

  .philosophy-stat-divider {
    width: 40px;
    height: 1px;
  }

  .contact-btn {
    padding: 16px 40px;
    font-size: 0.9rem;
  }
}
