* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f5faff 0, #eef5f8 520px, #fbfcfd 100%);
  color: #102036;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.rm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid #dce6ee;
  background: rgba(255, 255, 255, .98);
}

.rm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  text-decoration: none;
}

.rm-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #00735c;
  border-radius: 10px;
  color: #00735c;
  font-size: 20px;
  font-weight: 950;
}

.rm-brand b {
  display: block;
  color: #0d2038;
  font-size: 22px;
  line-height: 1.2;
}

.rm-brand small {
  display: block;
  margin-top: 3px;
  color: #667489;
  font-size: 13px;
  font-weight: 750;
}

.rm-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rm-nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #172943;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.rm-nav a:hover {
  background: #eef5f8;
}

.rm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  gap: clamp(24px, 5vw, 56px);
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0 34px;
}

.rm-breadcrumb {
  margin: 0 0 32px;
  color: #52708c;
  font-size: 14px;
  font-weight: 850;
}

.rm-breadcrumb a {
  text-decoration: none;
}

.rm-breadcrumb span {
  padding: 0 8px;
  color: #91a4b5;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.08;
}

.rm-lead {
  margin: 0;
  max-width: 780px;
  color: #0c223c;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.35;
}

.rm-lead strong {
  color: #006f59;
}

.rm-sublead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #3e5268;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.9;
}

.rm-hero-tool-link {
  display: inline-grid;
  place-items: center;
  min-height: 58px;
  margin-top: 24px;
  padding: 0 24px;
  border-radius: 8px;
  background: #00735c;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
}

.rm-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #d6e4ec;
}

.rm-points span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #cfe1dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #0b654f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.rm-mail-preview {
  align-self: start;
  padding: 24px;
  border: 1px solid #d8e3eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(35, 55, 80, .12);
}

.rm-preview-head,
.rm-template-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rm-preview-head b {
  color: #00735c;
  font-size: 18px;
}

button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.rm-preview-head button,
.rm-template-panel-head button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d1dde5;
  border-radius: 8px;
  background: #fff;
  color: #16273c;
  font-size: 14px;
  font-weight: 900;
}

.rm-mail-field {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e8ee;
  font-size: 16px;
}

.rm-mail-field span {
  color: #607086;
  font-weight: 900;
}

.rm-mail-preview pre,
.rm-template-panel pre {
  width: 100%;
  max-height: 470px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  background: #fbfdff;
  color: #1e2e42;
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.rm-copy-main {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border-radius: 8px;
  background: #00735c;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.rm-wrap,
.rm-grid-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 0;
}

.rm-wrap,
.rm-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
}

.rm-tool-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-color: #b8dccf;
  background: linear-gradient(135deg, #f5fff8, #fffdf7);
}

.rm-tool-cta p {
  margin: 0 0 6px;
  color: #00735c;
  font-size: 16px;
  font-weight: 950;
}

.rm-tool-cta h2 {
  margin: 0;
  color: #102036;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.35;
}

.rm-tool-cta span {
  display: block;
  margin-top: 8px;
  color: #43576d;
  font-size: 17px;
  font-weight: 760;
}

.rm-tool-cta a {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 8px;
  background: #00735c;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.rm-section-head {
  margin-bottom: 20px;
}

.rm-section-head p {
  margin: 0 0 6px;
  color: #00735c;
  font-size: 16px;
  font-weight: 950;
}

.rm-section-head h2 {
  margin: 0;
  color: #102036;
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.25;
}

.rm-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rm-scene-grid article,
.rm-tool-grid a,
.rm-source-grid a {
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
}

.rm-scene-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.rm-scene-grid h3 {
  margin: 0;
  color: #0e2943;
  font-size: 24px;
}

.rm-scene-grid p {
  margin: 0;
  color: #526277;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.65;
}

.rm-scene-grid button {
  align-self: end;
  min-height: 44px;
  border: 1px solid #00735c;
  border-radius: 7px;
  background: #fff;
  color: #00735c;
  font-size: 15px;
  font-weight: 950;
}

.rm-template-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #cfe2dc;
  border-radius: 8px;
  background: #f8fffc;
}

.rm-template-panel h3 {
  margin: 0;
  color: #0b654f;
  font-size: 24px;
}

.rm-table-scroll {
  overflow-x: auto;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
}

.rm-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.rm-table th,
.rm-table td {
  padding: 18px;
  border-bottom: 1px solid #e5edf2;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.7;
}

.rm-table th {
  background: #f5f9fc;
  color: #102036;
  font-weight: 950;
}

.rm-table td:first-child {
  color: #0e2943;
  font-size: 20px;
  font-weight: 950;
}

.rm-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.rm-step-list li {
  position: relative;
  padding: 54px 18px 18px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
}

.rm-step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #00735c;
  color: #fff;
  font-weight: 950;
}

.rm-step-list b,
.rm-step-list span {
  display: block;
}

.rm-step-list b {
  margin-bottom: 8px;
  color: #102036;
  font-size: 19px;
  line-height: 1.4;
}

.rm-step-list span {
  color: #516073;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 750;
}

.rm-subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rm-subject-grid article {
  padding: 20px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
}

.rm-subject-grid h3 {
  margin: 0 0 10px;
  color: #0b654f;
  font-size: 20px;
  line-height: 1.35;
}

.rm-subject-grid p {
  margin: 0 0 10px;
  color: #102036;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 900;
}

.rm-subject-grid span {
  display: block;
  color: #526277;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 750;
}

.rm-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rm-next-grid article {
  padding: 20px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
}

.rm-next-grid h3 {
  margin: 0 0 10px;
  color: #0e2943;
  font-size: 21px;
  line-height: 1.35;
}

.rm-next-grid p {
  margin: 0;
  color: #4d5d70;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 750;
}

.rm-grid-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.rm-check-list {
  display: grid;
  gap: 10px;
}

.rm-check-list label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
  color: #25354a;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
}

.rm-check-list input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  accent-color: #00735c;
}

.rm-ng {
  border-color: #f0c4c4;
  background: #fff8f8;
}

.rm-ng-list {
  display: grid;
  gap: 12px;
}

.rm-ng-list article {
  padding: 18px;
  border: 1px solid #efcaca;
  border-radius: 8px;
  background: #fff;
}

.rm-ng-list h3 {
  margin: 0 0 8px;
  color: #b4232c;
  font-size: 20px;
}

.rm-ng-list p {
  margin: 0;
  color: #4e5460;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 750;
}

.rm-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rm-source-grid a {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 18px;
  color: #175b9f;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
  text-decoration: none;
}

.rm-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 5px solid #00735c;
  border-radius: 8px;
  background: #f1faf7;
  color: #415064;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 750;
}

.rm-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rm-tool-grid a {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
  text-decoration: none;
}

.rm-tool-grid strong {
  color: #0b654f;
  font-size: 21px;
  line-height: 1.3;
}

.rm-tool-grid span {
  color: #516073;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 750;
}

.rm-tool-grid em {
  align-self: end;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 7px;
  background: #00735c;
  color: #fff;
  font-style: normal;
  font-size: 16px;
  font-weight: 950;
}

.rm-related-list {
  display: grid;
  gap: 10px;
}

.rm-related-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #fff;
  color: #22344b;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
  text-decoration: none;
}

.rm-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 30px 16px;
  border-top: 1px solid #dce6ee;
  background: #f6f9fb;
  color: #5e6b7a;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .rm-hero {
    grid-template-columns: 1fr;
  }

  .rm-scene-grid,
  .rm-step-list,
  .rm-subject-grid,
  .rm-next-grid,
  .rm-source-grid,
  .rm-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rm-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .rm-brand {
    min-width: 0;
  }

  .rm-brand small {
    display: none;
  }

  .rm-nav {
    width: 100%;
  }

  .rm-hero,
  .rm-wrap,
  .rm-grid-wrap {
    width: calc(100% - 20px);
  }

  .rm-hero {
    padding-top: 24px;
  }

  h1 {
    font-size: 44px;
  }

  .rm-lead {
    font-size: 28px;
  }

  .rm-sublead {
    font-size: 17px;
  }

  .rm-points,
  .rm-scene-grid,
  .rm-step-list,
  .rm-subject-grid,
  .rm-next-grid,
  .rm-grid-wrap,
  .rm-source-grid,
  .rm-tool-grid {
    grid-template-columns: 1fr;
  }

  .rm-mail-preview,
  .rm-wrap,
  .rm-card {
    padding: 18px 14px;
  }

  .rm-preview-head,
  .rm-template-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rm-preview-head button,
  .rm-template-panel-head button {
    width: 100%;
  }

  .rm-mail-preview pre,
  .rm-template-panel pre {
    font-size: 15px;
  }

  .rm-tool-cta {
    grid-template-columns: 1fr;
  }

  .rm-tool-cta a {
    width: 100%;
  }

  .rm-table-scroll {
    overflow: visible;
  }

  .rm-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .rm-table thead {
    display: none;
  }

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

  .rm-table tr {
    padding: 14px;
    border: 1px solid #dce6ee;
    border-radius: 8px;
    background: #fff;
  }

  .rm-table td {
    padding: 10px 0;
    border: 0;
    font-size: 15px;
  }

  .rm-table td::before {
    display: block;
    margin-bottom: 3px;
    color: #00735c;
    font-size: 12px;
    font-weight: 950;
  }

  .rm-table td:nth-child(1)::before { content: "分類"; }
  .rm-table td:nth-child(2)::before { content: "目安"; }
  .rm-table td:nth-child(3)::before { content: "例・ポイント"; }
  .rm-table td:nth-child(4)::before { content: "おすすめの状況"; }
}
