/* NOKOSU のサポート・プライバシーポリシー共通の見た目。
   色はアプリの標準テーマ（やすらぎ）と同じ値を使う。 */
:root {
  --background: #f2f2ec;
  --surface: #ffffff;
  --surface-muted: #e6eae0;
  --text: #2b2f28;
  --text-secondary: #656d63;
  --divider: #e2e6da;
  --green: #3e7d5e;
  --green-soft: #bcdfc0;
  --green-line: #8fcb9b;
  --danger: #a63a31;
  --radius-card: 24px;
  --radius-small: 14px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--green-line);
  outline-offset: 2px;
  border-radius: 6px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

/* 見出し */
.brand {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--green);
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

.header {
  padding: 0 4px 28px;
}

/* ページ間の移動 */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  border-color: var(--green-line);
  background: var(--green-soft);
}

/* カード */
.card {
  margin: 0 0 16px;
  padding: 24px 22px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 800;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 800;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

li {
  margin: 4px 0;
}

.muted {
  color: var(--text-secondary);
  font-size: 14px;
}

/* よくある質問 */
.faq {
  padding: 18px 0;
  border-top: 1px solid var(--divider);
}

.faq:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.faq:last-child {
  padding-bottom: 0;
}

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

/* 強調したい一文 */
.note {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  font-size: 15px;
}

/* 箇条の要点 */
.points {
  list-style: none;
  padding: 0;
}

.points li {
  position: relative;
  padding-left: 1.6em;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.62em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* 表 */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  vertical-align: top;
}

th {
  width: 34%;
  font-weight: 700;
  color: var(--text-secondary);
}

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

/* お問い合わせフォーム */
.form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  font-size: 15px;
  font-weight: 700;
}

.required,
.optional {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}

.required {
  background: var(--green-soft);
  color: var(--text);
}

.optional {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

/* iPhone で入力時に拡大されないよう、文字は 16px 以上にする。 */
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.field textarea {
  resize: vertical;
}

/* 選択欄も、ほかの入力欄と同じ高さと形にそろえる。 */
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.field-error,
.form-status {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

/* ロボット対策の欄。人には見せない。 */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.submit:hover {
  border-color: var(--green);
}

.submit:focus-visible {
  outline: 3px solid var(--green-line);
  outline-offset: 2px;
}

.submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-done {
  margin-top: 8px;
  padding: 18px 18px;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.form-done:focus {
  outline: none;
}

.form-done p {
  margin: 0;
}

.form-done-title {
  margin-bottom: 4px !important;
  font-weight: 800;
  color: var(--green);
}

.footer {
  padding: 24px 4px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer p {
  margin: 0 0 4px;
}

@media (max-width: 480px) {
  .page {
    padding-top: 28px;
  }

  h1 {
    font-size: 26px;
  }

  .card {
    padding: 20px 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
