/* ==========================================================
   合同会社叶 (Kyo LLC) - コーポレートサイト
   デザイントークン + 全スタイル
   ========================================================== */

:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-primary: #1B3A5C;
  --color-primary-dark: #12293F;
  --color-accent: #2E6FD8;
  --color-text: #1A202C;
  --color-text-muted: #4A5568;
  --color-border: #E2E8F0;
  --color-white: #FFFFFF;

  /* Typography */
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;

  /* Layout */
  --container-max: 1080px;
  --header-height: 64px;

  /* Radius / Shadow */
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 12px rgba(27, 58, 92, 0.08);
  --shadow-card-hover: 0 6px 20px rgba(27, 58, 92, 0.14);

  /* Motion */
  --duration: 250ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 80px;
}

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

.pc-only {
  display: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-name-ja {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.site-name-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  transition: color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.site-nav a:hover {
  color: var(--color-accent);
  background: var(--color-bg-alt);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(46, 111, 216, 0.10), transparent),
    linear-gradient(180deg, #F8FAFD 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  padding-block: 96px 104px;
  text-align: center;
}

.hero-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 6.5vw, 52px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding-inline: 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: background-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* ---------- Section headings ---------- */
.section-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 4.5vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(46, 111, 216, 0.10);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ---------- Company ---------- */
.company-table-wrap {
  max-width: 720px;
  margin-inline: auto;
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  font-size: 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 120px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  padding-block: 28px;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover,
  .service-card:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }

  .section {
    padding-block: 100px;
  }

  .hero-inner {
    padding-block: 128px 136px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .service-card {
    padding: 44px 36px;
  }

  .company-table th {
    width: 160px;
  }
}
