/* =========================================================
   inaro.dev — minimal & clean single page
   ========================================================= */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #234e9e;

  --font-en: "Inter", system-ui, sans-serif;
  --font-ja: "Noto Sans JP", system-ui, sans-serif;

  --maxw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --text: #e8e8ea;
    --muted: #9aa1ad;
    --border: #2a2e36;
    --accent: #8aa9dd;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

/* ---------- layout ---------- */
.site-header,
main > section,
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

main > section {
  padding-block: 72px;
}

@media (min-width: 768px) {
  main > section {
    padding-block: 104px;
  }
}

/* ---------- header ---------- */
.site-header {
  padding-block: 28px;
}

.wordmark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-dot {
  color: var(--accent);
}

/* ---------- hero / about ---------- */
.hero {
  padding-top: 32px !important;
}

.hero-title {
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin-top: 28px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- section title ---------- */
.section-title {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.section-title-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- services ---------- */
.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 28px;
}

.service-item {
  position: relative;
  padding: 28px 28px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -16px rgba(35, 78, 158, 0.5);
}

.service-num {
  font-family: var(--font-en);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.service-name {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.service-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- profile ---------- */
.profile-name {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.profile-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

.history {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.history-row {
  display: grid;
  gap: 2px 20px;
}

@media (min-width: 600px) {
  .history-row {
    grid-template-columns: 160px 1fr;
    align-items: baseline;
  }
}

.history dt {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.history dd {
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- contact ---------- */
.contact-lead {
  color: var(--muted);
}

.contact-mail {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-mail:hover {
  color: var(--accent);
  opacity: 0.85;
}

/* ---------- footer ---------- */
.site-footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ---------- entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .services,
  .profile,
  .contact {
    animation: fade-up 0.7s ease both;
  }
  .services {
    animation-delay: 0.08s;
  }
  .profile {
    animation-delay: 0.16s;
  }
  .contact {
    animation-delay: 0.24s;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
