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

:root {
  --black: #0d0d14;
  --dark: #1a1a2e;
  --gray: #888888;
  --light-gray: #f7f7fa;
  --border: #e8e8f0;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #fde68a, #f59e0b, #d97706);
  --grad-text: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #d97706 100%);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== GRADIENT UTILITIES ===== */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px 0 20px;
}

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

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

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--grad);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray);
  line-height: 1.2;
  margin-top: 1px;
}

nav {
  display: flex;
  gap: 36px;
}

nav a {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--gray);
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--black);
}

/* ===== MAIN ===== */
main {
  padding-top: 64px;
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 80px 40px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg-text {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-tagline em {
  font-style: normal;
  color: var(--white);
  font-weight: 600;
}

.hero-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 400px;
  line-height: 2;
}

/* ===== SECTION ===== */
section {
  padding: 100px 40px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 56px;
  letter-spacing: 0.04em;
}

/* ===== ITTAN STORY ===== */
.story {
  background: var(--black);
}

.story .section-title {
  color: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.story-item {
  background: var(--black);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.story-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
}

.story-reading {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.story-kanji {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
}

/* ===== SERVICES ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-item {
  background: var(--white);
  padding: 32px 28px;
  transition: background 0.2s;
}

.service-item:hover {
  background: var(--light-gray);
}

.service-num {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  display: inline-block;
}

.service-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--black);
}

/* ===== ABOUT SUMMARY ===== */
.about-summary {
  background: var(--white);
}

.about-summary .about-table {
  max-width: 720px;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  background: var(--grad);
  color: var(--white);
  border-radius: 2px;
  transition: opacity 0.2s;
}

.about-cta:hover {
  opacity: 0.8;
}

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  padding: 40px;
}

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

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  padding: 80px 40px 60px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.about-table-section {
  padding: 80px 40px;
}

.about-table-section .section-inner {
  max-width: 720px;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  text-align: left;
  vertical-align: top;
}

.about-table th {
  width: 160px;
  color: var(--gray);
  font-weight: 400;
  white-space: nowrap;
}

.about-table td {
  line-height: 1.8;
}

.about-table tr:first-child th,
.about-table tr:first-child td {
  border-top: 1px solid var(--border);
}

.business-list {
  list-style: none;
  counter-reset: biz;
}

.business-list li {
  counter-increment: biz;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.8;
}

.business-list li::before {
  content: counter(biz);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: white;
  border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }

  nav {
    gap: 20px;
  }

  .hero,
  section {
    padding: 60px 20px;
  }

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

  .services-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-table th {
    width: 110px;
    font-size: 0.875rem;
  }

  .about-table td {
    font-size: 0.875rem;
  }

  footer {
    padding: 30px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .page-hero,
  .about-table-section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}
