:root {
  --ink: #24272a;
  --muted: #62676c;
  --line: #d5d8da;
  --soft: #f3f4f5;
  --soft-2: #e8eaec;
  --white: #ffffff;
  --charcoal: #34383c;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a {
  color: inherit;
  text-decoration-color: #8b8f93;
  text-underline-offset: 0.25em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--charcoal);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner,
.main-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.text-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  justify-content: flex-end;
  gap: 8px 24px;
}

.site-nav a {
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.page-heading {
  padding: 70px 0 52px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

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

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section--soft {
  background: var(--soft);
}

.section-heading {
  margin: 0 0 34px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--charcoal);
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: #414549;
}

.notice-box {
  margin-top: 30px;
  padding: 22px 24px;
  border-left: 4px solid #777c80;
  background: var(--soft);
}

.notice-box p {
  margin: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #aeb2b5;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 24%;
  background: var(--soft-2);
  font-weight: 600;
}

.data-table td {
  border-right: 0;
  background: var(--white);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  counter-reset: work;
  list-style: none;
}

.work-list li {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  counter-increment: work;
}

.work-list h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.work-list h3::before {
  content: "0" counter(work) ". ";
  color: #74797d;
  font-family: Arial, sans-serif;
}

.work-list p {
  margin: 0;
  color: #4e5357;
  font-size: 15px;
}

.faq-list,
.legal-list {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  background: var(--white);
}

summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 20px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "−";
}

.details-body {
  padding: 0 22px 20px;
  border-top: 1px solid var(--line);
  color: #4e5357;
}

.details-body p:last-child,
.details-body ul:last-child {
  margin-bottom: 0;
}

.closing {
  padding: 64px 20px;
  background: var(--soft);
  text-align: center;
}

.closing p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-footer {
  padding: 46px 0 28px;
  color: #f2f3f4;
  background: var(--charcoal);
}

.footer-name {
  margin: 0 0 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-nav ul {
  gap: 10px 24px;
}

.footer-nav a {
  color: #f2f3f4;
  font-size: 13px;
}

.copyright {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid #5f6468;
  color: #d9dcde;
  font-size: 12px;
}

.text-list {
  margin: 22px 0 0;
  padding-left: 1.4em;
}

.content-spacer {
  height: 30px;
}

.text-list li + li {
  margin-top: 8px;
}

@media (max-width: 800px) {
  .header-inner {
    display: block;
    padding: 22px 0 18px;
  }

  .site-nav {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .site-nav ul {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .work-list li {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .main-inner,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .page-heading {
    padding: 48px 0 38px;
  }

  .section {
    padding: 54px 0;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    border-bottom: 1px solid var(--line);
  }

  .data-table th,
  .data-table td {
    border-bottom: 0;
    border-right: 0;
  }

  .data-table th {
    padding: 13px 16px;
  }

  .data-table td {
    padding: 15px 16px 20px;
  }

  .closing {
    padding: 48px 18px;
  }
}
