:root {
  --bg: #faf8f5;
  --text: #333333;
  --muted: #6f6a62;
  --accent: #2e6e4e;
  --line: #ded8cf;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--accent);
  color: #ffffff;
}

.layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.side {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: rgba(250, 248, 245, 0.92);
}

.side-logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.side-logo span {
  color: var(--accent);
}

.side-nav {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-nav a {
  width: max-content;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

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

main {
  min-width: 0;
}

.hero,
.type-grid,
.contact-band {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  padding: clamp(76px, 12vw, 140px) 0 clamp(44px, 7vw, 80px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  max-width: 860px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.8;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: clamp(42px, 7vw, 72px);
}

.type-card {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(51, 51, 51, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.type-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.label {
  width: max-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(46, 110, 78, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.type-card h2 {
  margin: 28px 0 14px;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  word-break: keep-all;
}

.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contact-band {
  padding: 0 0 clamp(64px, 10vw, 110px);
}

.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(46, 110, 78, 0.18);
}

.line-button:hover {
  filter: brightness(0.94);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

@media (max-width: 840px) {
  .layout {
    display: block;
  }

  .side {
    position: sticky;
    z-index: 10;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .side-nav {
    margin-top: 0;
    flex-direction: row;
    gap: 12px;
  }

  .side-nav a {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .hero,
  .type-grid,
  .contact-band {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.16;
  }

  .type-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .type-card {
    min-height: 0;
    padding: 20px;
  }

  .type-card h2 {
    margin-top: 22px;
    font-size: 23px;
  }

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

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .side {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  .side-nav {
    width: 100%;
    justify-content: space-between;
  }

  .side-nav a {
    font-size: 11px;
  }
}
