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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.8;
  font-size: 16px;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e0e0e0;
  height: 64px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo-mark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #111111;
}

.logo-name {
  font-size: 0.75rem;
  color: #555555;
  letter-spacing: 0.05em;
}

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

nav a {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: #555555;
  transition: color 0.2s;
}

nav a:hover {
  color: #111111;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background-color: #f7f7f7;
  background-image: radial-gradient(circle, #cccccc 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* グラデーションマスク — コンテンツの可読性を確保 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(247, 247, 247, 0.96) 0%,
    rgba(247, 247, 247, 0.88) 45%,
    rgba(247, 247, 247, 0.60) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #888888;
  font-family: 'Courier New', 'Courier', monospace;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #111111;
  margin-bottom: 28px;
  min-height: 1.5em; /* タイプ前にレイアウト崩れ防止 */
}

/* タイプライターで打たれる第2行のアンダーライン */
.hero-title .hl {
  display: inline;
  border-bottom: 3px solid #bbbbbb;
  padding-bottom: 4px;
}

/* タイプライターカーソル */
.cursor {
  display: inline-block;
  font-weight: 400;
  font-size: 0.85em;
  color: #555555;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: baseline;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-desc {
  font-size: 1rem;
  color: #555555;
  max-width: 520px;
  line-height: 1.9;
}

/* ===== Section Common ===== */
section {
  padding: 96px 0;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #aaaaaa;
  text-transform: uppercase;
  font-family: 'Courier New', 'Courier', monospace;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111111;
  margin-bottom: 48px;
}

.section-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* ===== Services ===== */
.services {
  background: #fafafa;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ターミナルウィンドウ風カード */
.service-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.terminal-bar {
  background: #1e1e1e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 0;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: 14px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #444444;
}

.terminal-cmd {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.78rem;
  color: #888888;
  letter-spacing: 0.05em;
}

.terminal-cmd .prompt {
  color: #aaaaaa;
  margin-right: 6px;
}

.service-body {
  padding: 32px 36px 36px;
}

.service-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  color: #111111;
}

.service-body p {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.85;
}

/* ===== Company ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid #e8e8e8;
}

.company-table tr:first-child {
  border-top: 1px solid #e8e8e8;
}

.company-table th,
.company-table td {
  padding: 22px 16px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 180px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888888;
  white-space: nowrap;
  font-family: 'Courier New', 'Courier', monospace;
}

.company-table td {
  font-size: 0.95rem;
  color: #333333;
}

.company-table td a {
  color: #333333;
  border-bottom: 1px solid #cccccc;
  transition: border-color 0.2s;
}

.company-table td a:hover {
  border-color: #333333;
}

/* ===== Footer ===== */
footer {
  background: #1a1a1a;
  color: #aaaaaa;
  padding: 40px 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.15em;
  font-family: 'Courier New', 'Courier', monospace;
}

footer small {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  nav {
    gap: 20px;
  }

  .logo-name {
    display: none;
  }

  section {
    padding: 72px 0;
  }

  .hero-inner {
    padding: 60px 0;
  }

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

  .company-table th {
    width: 110px;
    font-size: 0.75rem;
    padding: 18px 12px;
  }

  .company-table td {
    padding: 18px 12px;
    font-size: 0.88rem;
  }

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

@media (max-width: 480px) {
  nav {
    gap: 16px;
  }

  nav a {
    font-size: 0.8rem;
  }

  .company-table th {
    display: none;
  }

  .company-table td {
    padding: 16px 0;
  }

  .company-table td::before {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #aaaaaa;
    margin-bottom: 4px;
    font-family: 'Courier New', 'Courier', monospace;
  }

  .company-table tr:nth-child(1) td::before { content: "COMPANY"; }
  .company-table tr:nth-child(2) td::before { content: "CEO"; }
  .company-table tr:nth-child(3) td::before { content: "ADDRESS"; }
  .company-table tr:nth-child(4) td::before { content: "SERVICES"; }
}
