:root {
  --ink: #242622;
  --muted: #62665f;
  --paper: #f7f5ef;
  --paper-deep: #efede6;
  --green: #58705d;
  --green-dark: #3f5845;
  --green-pale: #f1f4ef;
  --apricot-pale: #f7f2eb;
  --line: rgba(51, 62, 52, 0.15);
  --content: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
}

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

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 40px;
}

.brand-mark::before {
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 2px;
  height: 29px;
  content: "";
  background: var(--green);
  border-radius: 2px;
}

.brand-mark::after,
.brand-mark span::before {
  position: absolute;
  top: 3px;
  width: 17px;
  height: 10px;
  content: "";
  border: 2px solid var(--green);
}

.brand-mark::after {
  left: 0;
  border-radius: 100% 0 100% 0;
  transform: rotate(16deg);
}

.brand-mark span::before {
  right: 0;
  border-radius: 0 100% 0 100%;
  transform: rotate(-16deg);
}

.home-main {
  padding-bottom: 0;
}

.home-hero {
  padding-top: clamp(72px, 12vw, 118px);
  padding-bottom: clamp(88px, 15vw, 144px);
}

.home-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 6.2vw, 50px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.42;
}

.home-hero p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2.3vw, 17px);
  line-height: 2;
}

.section-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 32px;
}

.section-label h2 {
  margin: 0;
  color: var(--green);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-label span {
  height: 1px;
  background: var(--line);
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-card {
  display: block;
  min-height: 196px;
  padding: 27px 30px 29px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  touch-action: manipulation;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.service-card-evidence {
  background: var(--green-pale);
}

.service-card-mogumogu {
  background: var(--apricot-pale);
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(63, 88, 69, 0.3);
  box-shadow: 0 13px 32px rgba(46, 53, 45, 0.1);
  outline: none;
  transform: translateY(-3px);
}

.service-card:focus-visible {
  box-shadow:
    0 13px 32px rgba(46, 53, 45, 0.1),
    0 0 0 3px rgba(88, 112, 93, 0.2);
}

.service-card:active {
  box-shadow: 0 5px 14px rgba(46, 53, 45, 0.08);
  transform: translateY(1px) scale(0.995);
  transition-duration: 80ms;
}

.service-card-top {
  display: flex;
  align-items: center;
  min-height: 38px;
}

.service-number {
  margin-left: 18px;
  color: var(--green);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.service-arrow {
  margin-left: auto;
  color: var(--green);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.service-card:hover .service-arrow,
.service-card:focus-visible .service-arrow {
  transform: translate(2px, -2px);
}

.service-symbol {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--green);
}

.evidence-symbol::before,
.evidence-symbol::after {
  position: absolute;
  top: 7px;
  width: 16px;
  height: 22px;
  content: "";
  border: 2px solid currentColor;
}

.evidence-symbol::before {
  left: 3px;
  border-radius: 5px 0 0 1px;
  border-right-width: 1px;
  transform: skewY(6deg);
}

.evidence-symbol::after {
  right: 3px;
  border-left-width: 1px;
  border-radius: 0 5px 1px 0;
  transform: skewY(-6deg);
}

.mogumogu-symbol::before {
  position: absolute;
  right: 5px;
  bottom: 6px;
  left: 5px;
  height: 16px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 2px 2px 14px 14px;
}

.mogumogu-symbol::after {
  position: absolute;
  top: 3px;
  left: 19px;
  width: 2px;
  height: 18px;
  content: "";
  background: currentColor;
  border-radius: 2px;
  transform: rotate(22deg);
  transform-origin: bottom;
}

.service-card h3 {
  margin: 22px 0 0;
  font-size: clamp(23px, 4.2vw, 29px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.service-card p {
  margin: 9px 0 0;
  color: #4e524d;
  font-size: 14px;
  line-height: 1.85;
}

.about {
  padding-top: clamp(112px, 18vw, 168px);
  padding-bottom: clamp(104px, 16vw, 150px);
}

.about h2 {
  margin: 0;
  font-size: clamp(25px, 4.5vw, 31px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.about p {
  max-width: 650px;
  margin: 34px 0 0;
  color: #4f534d;
  font-size: 15px;
  line-height: 2.15;
}

.about-link {
  color: var(--green-dark);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}

.about-link:hover,
.about-link:focus-visible {
  text-decoration: underline;
}

.site-footer {
  color: var(--ink);
  background: var(--paper);
}

.home-footer .shell {
  padding-top: 30px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

.footer-nav a,
.back-link,
.legal-footer a {
  color: #484c47;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.legal-footer a:hover,
.legal-footer a:focus-visible {
  text-decoration: underline;
}

.home-footer small {
  display: block;
  margin-top: 19px;
  color: #767a74;
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* Privacy policy */
.legal-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(12px);
}

.legal-main {
  padding: 92px 0 120px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 88px;
}

.legal-title {
  position: sticky;
  top: 142px;
  align-self: start;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.legal-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.legal-title > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.legal-content {
  color: #52564f;
  font-size: 14px;
  line-height: 2;
}

.legal-content > p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: 15px;
}

.legal-content section {
  margin-top: 46px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.legal-content h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.legal-content h3:first-of-type {
  margin-top: 22px;
}

.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul + p {
  margin-top: 12px;
}

.legal-content ul {
  padding-left: 1.5em;
}

.legal-content a {
  color: var(--green-dark);
  text-underline-offset: 4px;
}

.legal-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.legal-footer small {
  color: #767a74;
  font-size: 11px;
}

@media (min-width: 780px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 232px;
  }
}

@media (max-width: 720px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-title {
    position: static;
  }
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 48px);
  }

  .header-inner {
    min-height: 94px;
  }

  .brand {
    font-size: 25px;
  }

  .home-hero {
    padding-top: 62px;
    padding-bottom: 96px;
  }

  .home-hero h1 {
    font-size: 35px;
  }

  .home-hero p {
    margin-top: 25px;
    font-size: 15px;
  }

  .section-label {
    margin-bottom: 28px;
  }

  .service-card {
    min-height: 188px;
    padding: 25px 28px 27px;
  }

  .service-card h3 {
    margin-top: 19px;
    font-size: 24px;
  }

  .about {
    padding-top: 124px;
    padding-bottom: 112px;
  }

  .about p {
    margin-top: 30px;
    font-size: 14px;
  }

  .footer-nav {
    gap: 12px 20px;
  }

  .legal-main {
    padding: 66px 0 82px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .service-card:hover,
  .service-card:focus-visible,
  .service-card:active {
    transform: none;
  }
}
