:root {
  color: #182b2c;
  background: #eef2f0;
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: #182b2c;
  background:
    radial-gradient(circle at 90% 0%, rgb(181 213 205 / 32%), transparent 28rem),
    #eef2f0;
  line-height: 1.85;
}

a {
  color: #0c6b68;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #084d4b;
}

.legal-header {
  border-bottom: 1px solid #cbd7d3;
  background: rgb(247 249 248 / 92%);
}

.legal-header__inner {
  display: flex;
  width: min(1080px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.legal-brand img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
}

.legal-nav a {
  color: #405756;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: #0c6b68;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.legal-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-hero {
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid #d3ddda;
  border-radius: 24px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 18px 50px rgb(38 69 68 / 8%);
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: #0c7773;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.35;
}

.legal-lead {
  max-width: 42rem;
  margin: 20px 0 0;
  color: #526563;
  font-size: 14px;
}

.legal-date {
  margin: 24px 0 0;
  color: #71817f;
  font-size: 11px;
}

.legal-document {
  margin-top: 28px;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid #d3ddda;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(38 69 68 / 7%);
}

.legal-document section + section {
  padding-top: 34px;
  border-top: 1px solid #e0e7e4;
  margin-top: 34px;
}

.legal-document h2 {
  margin: 0 0 16px;
  font-size: clamp(19px, 3vw, 23px);
  line-height: 1.5;
}

.legal-document h3 {
  margin: 24px 0 10px;
  font-size: 16px;
}

.legal-document p {
  margin: 0;
  color: #344847;
  font-size: 14px;
}

.legal-document p + p {
  margin-top: 14px;
}

.legal-document ul,
.legal-document ol {
  margin: 14px 0 0;
  padding-left: 1.4rem;
  color: #344847;
  font-size: 14px;
}

.legal-document li + li {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  margin-top: 28px;
  gap: 14px;
}

.faq-item {
  border: 1px solid #d3ddda;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(38 69 68 / 6%);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  min-height: 74px;
  padding: 20px 64px 20px 24px;
  position: relative;
  align-items: center;
  gap: 14px;
  color: #203a39;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 50%;
  place-items: center;
  background: #0c7773;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1;
}

.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  right: 27px;
  border-right: 2px solid #5c7472;
  border-bottom: 2px solid #5c7472;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 180ms ease;
}

.faq-item summary:hover {
  background: #f7faf8;
}

.faq-item summary:focus-visible {
  outline: 3px solid rgb(12 119 115 / 28%);
  outline-offset: -3px;
}

.faq-item[open] summary {
  background: #f2f7f5;
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-answer {
  padding: 20px 28px 24px 68px;
  border-top: 1px solid #e0e7e4;
}

.faq-answer p {
  margin: 0;
  color: #344847;
  font-size: 14px;
}

.faq-answer p + p {
  margin-top: 12px;
}

.faq-contact {
  margin-top: 30px;
  padding: 24px 28px;
  border: 1px solid #d3ddda;
  border-radius: 16px;
  color: #344847;
  background: rgb(255 255 255 / 76%);
  text-align: center;
  font-size: 13px;
}

.faq-contact p {
  margin: 0 0 10px;
}

.legal-note {
  padding: 18px 20px;
  border-left: 3px solid #c6984c;
  border-radius: 0 10px 10px 0;
  background: #fbf7ed;
}

.legal-contact {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-table {
  width: 100%;
  margin-top: 16px;
  border-spacing: 0;
  border: 1px solid #d8e1de;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e3e9e7;
  text-align: left;
}

.legal-table th {
  width: 28%;
  color: #27403f;
  background: #f2f6f4;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  padding: 42px 20px;
  color: #adbbb8;
  background: #101819;
}

.legal-footer__inner {
  display: flex;
  width: min(900px, 100%);
  margin: 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 11px;
}

.legal-footer a {
  color: #dce4e2;
}

.legal-footer p {
  margin: 0;
  color: #83918f;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .legal-header__inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legal-brand img {
    width: 132px;
    height: 44px;
  }

  .legal-nav {
    width: 100%;
    padding-bottom: 4px;
    justify-content: flex-start;
    gap: 10px 18px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .legal-main {
    padding: 36px 0 64px;
  }

  .legal-hero,
  .legal-document {
    border-radius: 16px;
  }

  .faq-item summary {
    min-height: 68px;
    padding: 17px 48px 17px 17px;
    align-items: flex-start;
    gap: 11px;
    font-size: 14px;
  }

  .faq-item summary::before {
    width: 27px;
    height: 27px;
    margin-top: 1px;
  }

  .faq-item summary::after {
    right: 20px;
    top: 28px;
  }

  .faq-answer {
    padding: 18px 20px 21px;
  }

  .faq-contact {
    padding: 22px 20px;
  }

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

  .legal-table th {
    padding-bottom: 6px;
    border-bottom: 0;
  }

  .legal-table td {
    padding-top: 6px;
  }

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