@import "variables.css";


/* ===== Base reset ===== */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  color: var(--ink-900);
  background: var(--green-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 15px;
}

img {
  max-width: 100%;
  display: block
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none
}

/* ===== Page shell ===== */
.page {
  width: 100%;
  background: var(--green-bg);
  min-height: 100vh
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(24px, calc(50% - 600px));
  gap: 12px;
}

.brandlock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--green-700);
  text-decoration: none;
}

.brandlock .x {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  flex: 0 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-700);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--green-700);
  transition: background .15s ease;
}

.back-link:hover {
  background: var(--green-50)
}

.back-link svg {
  width: 16px;
  height: 16px
}

/* ===== Hero (document pages) ===== */
.hero-doc {
  padding: 48px max(36px, calc(50% - 600px)) 36px;
  background: linear-gradient(180deg, #ffffff 0%, var(--green-bg) 100%);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.hero-doc .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green-700);
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-doc h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 34px;
  color: var(--ink-900);
  letter-spacing: .01em;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero-doc .sub {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0
}

/* ===== Document body ===== */
.content-wrap {
  padding: 32px max(24px, calc(50% - 424px)) 64px
}

.doc-card {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--green-100);
  box-shadow: var(--shadow-md);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

section.doc-section {
  margin-bottom: 36px
}

section.doc-section:last-of-type {
  margin-bottom: 0
}

section.doc-section h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--green-text);
  margin: 0 0 12px;
  padding: 10px 16px;
  background: var(--green-50);
  border-left: 4px solid var(--green-700);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

section.doc-section p {
  margin: 0 0 10px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.85
}

section.doc-section p:last-child {
  margin-bottom: 0
}

section.doc-section ol,
section.doc-section ul {
  margin: 0 0 10px;
  padding-left: 1.6em;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.85
}

section.doc-section li {
  margin-bottom: 4px
}

section.doc-section a {
  color: var(--green-text);
  text-decoration: underline
}

section.doc-section a:hover {
  color: var(--green-900)
}

.enact-date {
  text-align: right;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 28px
}

/* ===== Table (privacy page) ===== */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 8px 0 10px
}

.doc-table th {
  background: var(--green-50);
  color: var(--ink-900);
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid var(--green-100);
  text-align: left;
  white-space: nowrap;
}

.doc-table td {
  padding: 10px 14px;
  border: 1px solid var(--green-100);
  color: var(--ink-700);
  vertical-align: top;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  font-size: 11px;
  color: var(--ink-500);
  padding: 18px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .04);
}

.footer a {
  color: var(--ink-500);
  text-decoration: none;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-doc {
    padding: 36px 20px 28px
  }

  .hero-doc h1 {
    font-size: 26px
  }

  .content-wrap {
    padding: 24px 16px 48px
  }

  .doc-card {
    padding: 28px 20px
  }

  .doc-table {
    font-size: 12px
  }

  .doc-table th,
  .doc-table td {
    padding: 8px 10px
  }
}