:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3efe7;
  --text: #1e211d;
  --muted: #62685f;
  --line: #e1dccf;
  --accent: #2f6f5f;
  --accent-dark: #214d43;
  --shadow: 0 24px 70px rgba(36, 42, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

/* ── Layout ── */
.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.nav,
.link-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  background: url('/images/bg01.jpg') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(20, 35, 28, 0.08) 0%,
    rgba(12, 24, 18, 0.72) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

.hero-inner .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero-inner h1,
.hero-inner .hero-copy {
  color: #ffffff;
}

.hero-inner .hero-copy {
  color: rgba(255, 255, 255, 0.8);
}

.hero-button {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-button:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ── Typography ── */
.eyebrow,
.app-category {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 8vw, 5.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.button:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

/* ── Sections ── */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.card,
.app-card,
.company-list,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.card {
  padding: clamp(24px, 5vw, 44px);
}

.card p:last-child,
.app-card p:last-child,
.contact-text p:last-child {
  margin-bottom: 0;
}

/* ── Apps ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 36px);
}

.app-card p {
  color: var(--muted);
}

.link-row {
  margin-top: 24px;
}

.link-row a {
  font-weight: 800;
}

/* ── Company ── */
.company-list {
  margin: 0;
  overflow: hidden;
}

.company-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.company-list div:last-child {
  border-bottom: 0;
}

.company-list dt {
  color: var(--muted);
  font-weight: 700;
}

.company-list dd {
  margin: 0;
}

/* ── Contact ── */
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 56px);
}

.contact-text h2 {
  margin-bottom: 8px;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0 56px;
  color: var(--muted);
}

/* ── Mobile ── */
@media (max-width: 760px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 12px;
  }

  .hero {
    min-height: 85vh;
    background-image: url('/images/bg02.jpg');
  }

  .hero-inner {
    width: min(100% - 28px, 1120px);
    padding: 40px 0 72px;
  }

  .section {
    padding: 52px 0;
  }

  .app-grid,
  .company-list div {
    grid-template-columns: 1fr;
  }

  .company-list div {
    gap: 4px;
    padding: 18px 20px;
  }

  .contact-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 36px 28px;
  }

  .contact-section .button {
    justify-content: center;
  }
}
