/* あんしんLMSバックアップ LP (lp.shinonome.cloud/lms-backup) */

:root {
  --accent: #a84835;
  --accent-dark: #8e3b2b;
  --link: #8a3a2a;
  --link-hover: #6b2c20;
  --text: #1f2933;
  --text-sub: #374151;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --border-warm: #ede4de;
  --border-input: #6b7280;
  --bg-warm: #fbf6f2;
  --bg-soft: #f9fafb;
  --navy: #1e3a5f;
  --required: #b91c1c;
  --heading-font: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ⚠ display を指定した要素でも hidden 属性で必ず隠す (送信後のフォームと「受け付けました」の切り替えに使う) */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* 暗い背景の上では navy の枠が見えないので、白にする (WCAG 2.4.7、1.4.11) */
.campaign :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: #ffffff;
  color: var(--text);
}

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

/* 枠と節 */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding: 80px 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  text-align: center;
}

.section-lead {
  font-size: 17px;
  color: var(--text-sub);
}

.section-note {
  font-size: 16px;
  color: var(--text-muted);
}

/* ボタン */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button--outline {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
}

.button--outline:hover {
  background: #ffffff;
  color: var(--text);
}

.button--white {
  background: #ffffff;
  color: var(--navy);
}

.button--white:hover {
  background: #e5edf6;
  color: var(--navy);
}

.button--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.button--block {
  width: 100%;
  min-height: 48px;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ヘッダ */

.site-header {
  border-bottom: 1px solid var(--border-warm);
  background: #ffffff;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand__logo {
  width: auto;
  height: 36px;
}

.brand__divider {
  align-self: stretch;
  width: 1px;
  background: var(--border);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand:hover {
  color: var(--text);
}

.brand__platform {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.brand__name {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
}

.site-nav a:not(.button) {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  text-decoration: underline;
}

/* 最初の画面 */

.hero {
  background: var(--bg-warm);
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero__body {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fde8df;
  color: #7a2f21;
  font-size: 15px;
  font-weight: 700;
}

.hero__title {
  font-size: 44px;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-sub);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.flow {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.flow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  background: #ffffff;
}

/* 段のあいだの下向きの矢印 */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: translateX(-50%) rotate(45deg);
}

.flow__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.flow__icon--warm {
  background: #fde8df;
  color: #7a2f21;
}

.flow__icon--blue {
  background: #e0ecf8;
  color: var(--navy);
}

.flow__icon--green {
  background: #dff3ea;
  color: #14532d;
}

.flow__text {
  display: flex;
  flex-direction: column;
}

.flow__title {
  font-size: 17px;
  font-weight: 700;
}

.flow__desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* カード */

.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 12px;
}

.cards--wide > .card {
  flex-basis: 460px;
}

.card--muted {
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.card--white {
  background: #ffffff;
}

.card--outline {
  border: 1px solid var(--border);
}

.card__img {
  align-self: center;
  width: 100%;
  max-width: 240px;
  height: auto;
}

.card__number {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.card__title {
  font-size: 20px;
}

.card__text {
  font-size: 16px;
  color: var(--text-sub);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

/* 料金 */

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.plan {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.plan--featured {
  border: 2px solid var(--accent);
}

.plan__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan__name {
  font-size: 24px;
}

.plan__target {
  font-size: 15px;
  color: var(--text-muted);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
}

.plan__price--reseller {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.plan__amount {
  font-family: var(--heading-font);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.plan__note {
  font-size: 15px;
  color: var(--text-sub);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
  font-size: 15px;
  color: var(--text-sub);
}

.plan .button {
  margin-top: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare caption {
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.compare th,
.compare td {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  background: var(--bg-soft);
}

.compare thead th:first-child {
  width: 28%;
}

.compare tbody th {
  font-weight: 500;
}

.pricing-note {
  font-size: 15px;
  color: var(--text-muted);
}

/* キャンペーン */

.campaign {
  background: var(--navy);
  color: #ffffff;
}

.campaign__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.campaign__body {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign__title {
  font-size: 30px;
  color: #ffffff;
}

.campaign__text {
  font-size: 17px;
  color: #e5edf6;
}

/* よくある質問 */

.faq {
  display: flex;
  flex-direction: column;
}

.faq__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  font-size: 18px;
}

.faq__a {
  font-size: 16px;
  color: var(--text-sub);
}

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

/* フォーム */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}

legend.field__label {
  margin-bottom: 10px;
}

.required {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--required);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 16px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}

.choice input,
.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.field-row > .field {
  flex: 1 1 260px;
}

/* 入力欄の枠は背景とのコントラストを 3:1 以上にする (WCAG 1.4.11) */
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.field__input--textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

.field__input[aria-invalid="true"] {
  border: 2px solid var(--required);
}

.field-error {
  color: var(--required);
  font-size: 15px;
  font-weight: 500;
}

.consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
}

.consent input {
  margin-top: 6px;
}

.cf-turnstile {
  min-height: 65px;
}

.form-status {
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 16px;
}

.button--submit {
  align-self: center;
  min-width: 240px;
  min-height: 56px;
  padding: 0 40px;
  font-size: 18px;
}

.contact-done {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.contact-done__title {
  font-size: 24px;
}

/* フッター */

.site-footer {
  background: #1f2933;
  color: #e5e7eb;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__about {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.site-footer__name {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.site-footer__nav a {
  color: #ffffff;
}

.site-footer__nav a:hover {
  color: #e5e7eb;
}

.site-footer__small {
  font-size: 14px;
  color: #d1d5db;
}

/* 404 のページ */

.notfound {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 16px;
}

.notfound__title {
  font-size: 28px;
}

/* しくみの図 (学校の LMS → 保存先 → 一時的なサイト → 建て直したサーバ) */

.scheme {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scheme__title {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
}

.scheme__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  grid-template-rows: auto 112px auto;
  grid-template-areas:
    "lms send storage"
    "rebuild . launch"
    "rebuilt return temp";
  column-gap: 12px;
}

.scheme__node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #d9ccc3;
  border-radius: 12px;
  background: #ffffff;
}

.scheme__node--lms {
  grid-area: lms;
}

.scheme__node--storage {
  grid-area: storage;
}

.scheme__node--temp {
  grid-area: temp;
}

.scheme__node--rebuilt {
  grid-area: rebuilt;
}

.scheme__img {
  flex: none;
  width: 132px;
  height: auto;
}

.scheme__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.scheme__tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.scheme__tag--school {
  background: #e8eef5;
  color: var(--navy);
}

.scheme__tag--ours {
  background: #fde8df;
  color: var(--accent-dark);
}

.scheme__name {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 700;
}

.scheme__text {
  font-size: 15px;
  color: var(--text-sub);
  word-break: auto-phrase;
}

.scheme__link {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-left: 78px;
}

.scheme__link--send,
.scheme__link--return {
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-left: 0;
}

.scheme__link--send {
  grid-area: send;
}

.scheme__link--launch {
  grid-area: launch;
}

.scheme__link--rebuild {
  grid-area: rebuild;
}

.scheme__link--return {
  grid-area: return;
}

.scheme__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
}

.scheme__phrase {
  display: inline-block;
}

.scheme__warn {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: -4px;
}

.scheme__note {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  word-break: auto-phrase;
  text-wrap: balance;
}

.scheme__link--rebuild .scheme__label {
  color: var(--text-muted);
}

.scheme__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
}

.scheme__arrow {
  position: relative;
  flex: none;
  width: 4px;
  height: 56px;
  border-radius: 2px;
  background: var(--accent);
}

.scheme__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-style: solid;
  border-color: var(--accent) transparent transparent;
  border-width: 12px 9px 0;
}

.scheme__link--send .scheme__arrow,
.scheme__link--return .scheme__arrow {
  width: calc(100% - 28px);
  height: 4px;
}

.scheme__link--send .scheme__arrow::after {
  left: auto;
  right: -10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-color: transparent transparent transparent var(--accent);
  border-width: 9px 0 9px 12px;
}

.scheme__link--return .scheme__arrow::after {
  left: -10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-color: transparent var(--accent) transparent transparent;
  border-width: 9px 12px 9px 0;
}

.scheme__arrow--dashed {
  width: 0;
  border-left: 3px dashed var(--text-muted);
  border-radius: 0;
  background: none;
}

.scheme__arrow--dashed::after {
  left: -1px;
  border-top-color: var(--text-muted);
}

@media (max-width: 860px) {
  .scheme__grid {
    display: flex;
    flex-direction: column;
  }

  .scheme__link,
  .scheme__link--send,
  .scheme__link--return {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 16px;
    padding: 14px 0 22px 58px;
  }

  .scheme__link--send .scheme__arrow,
  .scheme__link--return .scheme__arrow {
    width: 4px;
    height: 44px;
  }

  .scheme__link--send .scheme__arrow::after,
  .scheme__link--return .scheme__arrow::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -10px;
    transform: translateX(-50%);
    border-color: var(--accent) transparent transparent;
    border-width: 12px 9px 0;
  }

  .scheme__note {
    text-align: left;
  }

  .scheme__node {
    gap: 14px;
    padding: 16px;
  }

  .scheme__img {
    width: 88px;
  }
}

/* スマートフォンの幅 */

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    height: 24px;
  }

  .brand__name {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section__inner {
    gap: 28px;
  }

  .section-title {
    font-size: 26px;
  }

  .hero__inner {
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .card,
  .plan {
    padding: 24px 20px;
  }

  .plan__amount {
    font-size: 34px;
  }

  .campaign__inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .campaign__title {
    font-size: 24px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .button--submit {
    width: 100%;
    min-width: 0;
  }
}

/* 主な特長 (画面のイメージと説明を交互に並べる) */

.highlights {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.highlight--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.highlight--reverse .highlight__media {
  order: 2;
}

.highlight__media {
  display: block;
}

.highlight__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.12);
}

.highlight__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight__label {
  align-self: flex-start;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
}

.highlight__title {
  font-size: 26px;
  line-height: 1.45;
}

/* 見出しは言葉のまとまりの間でだけ折り返す */
.highlight__phrase {
  display: inline-block;
}

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

@media (max-width: 860px) {
  .highlights {
    gap: 48px;
  }

  .highlight,
  .highlight--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .highlight--reverse .highlight__media {
    order: 0;
  }

  .highlight__title {
    font-size: 22px;
  }
}
