:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #1a1a1a;
  --color-border: #e3e3e0;
  --color-success-bg: #eaf7ee;
  --color-success-text: #1e6b34;
  --color-error-bg: #fdecec;
  --color-error-text: #b3261e;
  --max-width: 1080px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 640px;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--color-text);
}

/* Hero */

.hero {
  padding: 120px 0 96px;
  background: var(--color-bg-alt);
  text-align: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

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

/* Sections */

.section {
  padding: 88px 0;
}

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

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 48px;
  font-size: 15px;
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}

.card-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.card-link {
  font-size: 13px;
  margin: 14px 0 0;
}

.card-link a {
  text-decoration: none;
  font-weight: 600;
}

.card-link a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.badge-active {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge-past {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
  border-left: 2px solid var(--color-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline-year {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.timeline-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Contact form */

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 28px;
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

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

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

.form-row label {
  font-size: 14px;
  font-weight: 600;
}

.required {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #b3261e;
  vertical-align: middle;
}

input[type="text"],
input[type="email"],
textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--color-text);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  align-self: flex-start;
}

/* Footer */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-links {
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-text);
}

/* Simple content pages (company / privacy) */

.page-header {
  padding: 72px 0 40px;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-header .section-title {
  margin-bottom: 0;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0;
  font-size: 15px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.legal-content ul {
  color: var(--color-text-muted);
  padding-left: 20px;
  margin: 0 0 12px;
}

.legal-content .updated-at {
  text-align: right;
  font-size: 13px;
  color: var(--color-text-muted);
}

.info-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 64px;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table th {
  width: 160px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.info-table td {
  font-size: 15px;
}

.placeholder-value {
  color: #b3261e;
  font-style: italic;
}

/* Profile page */

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.profile-role {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}
