:root {
  --pp: #ffffff;
  --ink: #0a0a0a;
  --sub: #6b6b6b;
  --rule: #0a0a0a;
  --hair: #dcdcdc;
  --fill: #f2f2f2;
  --or: #f1891d;
  --go: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  --mo: 'Roboto Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--pp);
  color: var(--ink);
  font-family: var(--go);
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 390px;
  margin: 0 auto;
  position: relative;
}

.hd {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  background: var(--pp);
  border-bottom: 2px solid var(--rule);
}

.hd .mark {
  width: 24px;
  height: 24px;
}

.hd .nm {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.hd .sp {
  flex: 1;
}

/* ロゴと塾名をひとつのリンクにする。押せる範囲を広く取る。 */
.hd-home{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit}
.ft-brand{text-decoration:none;color:inherit}


.hd .line {
  padding: 7px 11px;
  border: 2px solid var(--ink);
  background: var(--or);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.hd .bg {
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hd .bg i {
  display: block;
  height: 2px;
  background: var(--ink);
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px 16px 14px;
  border-bottom: 2px solid var(--rule);
  background: var(--pp);
}

.nav.is-open {
  display: block;
}

.nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-weight: 700;
  text-decoration: none;
}

.nav a:last-child {
  border-bottom: 0;
}

.legal-main {
  padding: 48px 16px 80px;
}

.legal-main h1 {
  margin-bottom: 20px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.legal-lead {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.95;
}

.legal-sec {
  padding: 30px 0 8px;
  border-top: 1px solid var(--hair);
}

/* 飛び先が、上に貼り付いたヘッダーの下へ潜らないようにする */
.legal-sec,
#top {
  scroll-margin-top: 74px;
}

.legal-sec:first-of-type {
  border-top: 0;
}

.legal-sec h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.legal-sec p {
  font-size: 14px;
}

.legal-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-sec li {
  position: relative;
  padding-left: 1.15em;
  font-size: 14px;
  line-height: 1.95;
}

.legal-sec li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--hair);
  table-layout: fixed;
}

.legal-table th,
.legal-table td {
  display: block;
  text-align: left;
}

.legal-table th {
  padding: 14px 0 4px;
  color: var(--sub);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.45;
}

.legal-table td {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.sub {
  color: var(--sub);
  font-size: 12px;
  line-height: 1.8;
}

.legal-date {
  margin-top: 30px;
  color: var(--sub);
  font-family: var(--mo);
  font-size: 11px;
  line-height: 1.8;
}

.ft {
  padding: 30px 16px 34px;
  border-top: 1px solid var(--sub);
  background: var(--ink);
  color: #ffffff;
}

.ft-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ft-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ft-brand img {
  width: 28px;
  height: 28px;
}

.ft-sns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.ft-sns a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  color: inherit;
}

.ft-sns svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.ft-links a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--sub);
  font-size: 13px;
  text-decoration: none;
}

.ft-copy {
  margin-top: 20px;
  font-family: var(--mo);
  font-size: 11px;
}

@media (min-width: 768px) {
  .wrap {
    max-width: 560px;
  }

  body {
    font-size: 15.5px;
  }

  .legal-main {
    padding: 64px 24px 96px;
  }
}

@media (min-width: 1100px) {
  .wrap {
    max-width: 640px;
  }
}
