* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfdfb 0, #f0f8f4 420px, #fbfaf6 100%);
  color: #17212b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

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

.rs-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #00796b;
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.rs-brand b {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.rs-brand small {
  display: block;
  margin-top: 2px;
  color: #66737b;
  font-size: 13px;
  font-weight: 700;
}

.rs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.rs-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #293845;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.rs-nav a:hover {
  background: #eef7f3;
}

.rs-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  border: 1px solid #d3e0da;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.rs-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  padding: 0 13px;
  font-size: 15px;
  outline: none;
}

.rs-search button {
  min-height: 42px;
  border: 0;
  padding: 0 14px;
  background: #006f63;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.rs-hero {
  padding: 24px 16px 10px;
}

.rs-hero-inner,
.rs-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rs-hero-inner {
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid #dfe9e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(36, 55, 44, .08);
}

.rs-breadcrumb {
  margin: 0 0 22px;
  color: #66737b;
  font-size: 14px;
  font-weight: 800;
}

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

.rs-breadcrumb span {
  padding: 0 8px;
  color: #9aa6aa;
}

.rs-conclusion {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: #e9f8f2;
  color: #006f63;
  font-size: 18px;
  font-weight: 950;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.rs-lead {
  max-width: 1040px;
  margin: 0;
  color: #0a6f64;
  font-size: clamp(28px, 4vw, 47px);
  line-height: 1.35;
  font-weight: 950;
}

.rs-sublead {
  max-width: 820px;
  margin: 20px 0 0;
  color: #3d4a53;
  font-size: 19px;
  line-height: 1.9;
  font-weight: 700;
}

.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.rs-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 74px;
  min-width: min(100%, 360px);
  padding: 18px 28px;
  border: 2px solid #00796b;
  border-radius: 8px;
  color: #006f63;
  background: #fff;
  font-size: 24px;
  font-weight: 950;
  text-decoration: none;
}

.rs-action.primary {
  background: #00796b;
  color: #fff;
  box-shadow: 0 14px 24px rgba(0, 121, 107, .18);
}

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

.rs-tool-cta p {
  margin: 0 0 6px;
  color: #006f63;
  font-size: 16px;
  font-weight: 950;
}

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

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

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

.rs-method-tool-link {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 14px 0;
  border: 1px solid #00796b;
  border-radius: 8px;
  color: #006f63;
  background: #f5fff8;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.rs-wrap {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #dfe8e3;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
}

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

.rs-section-head p {
  margin: 0 0 6px;
  color: #006f63;
  font-size: 16px;
  font-weight: 950;
}

.rs-section-head h2 {
  margin: 0;
  color: #13242c;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

.rs-method-grid,
.rs-ng-grid,
.rs-tool-grid,
.rs-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rs-method,
.rs-ng-grid article,
.rs-tool-grid a,
.rs-source-grid a {
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #fff;
}

.rs-method {
  padding: 22px;
  min-height: 100%;
}

.rs-method.safe {
  border-color: #9cd8c5;
  background: #f6fffb;
}

.rs-method.caution {
  border-color: #efbe75;
  background: #fff9ee;
}

.rs-method.cool {
  border-color: #9dbfe8;
  background: #f5f9ff;
}

.rs-method-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e5f5ef;
  color: #00796b;
  font-size: 20px;
  font-weight: 950;
}

.rs-method h3 {
  margin: 15px 0 10px;
  color: #006f63;
  font-size: 32px;
  line-height: 1.2;
}

.rs-method.caution h3 {
  color: #bd7100;
}

.rs-method.cool h3 {
  color: #155fa6;
}

.rs-method-copy {
  margin: 0 0 16px;
  min-height: 84px;
  color: #3f4b54;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
}

.rs-method dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.rs-method dl div {
  padding: 12px;
  border: 1px solid rgba(0, 121, 107, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .8);
}

.rs-method dt {
  margin-bottom: 4px;
  color: #006f63;
  font-size: 14px;
  font-weight: 950;
}

.rs-method dd {
  margin: 0;
  color: #1d2c33;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 800;
}

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

.rs-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

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

.rs-table th {
  background: #fff8e9;
  color: #23313a;
  font-weight: 950;
}

.rs-table td:first-child,
.rs-table td:nth-child(2) {
  font-weight: 900;
}

.rs-ad {
  display: grid;
  place-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 24px auto 0;
  border: 1px dashed #d3ded8;
  border-radius: 8px;
  color: #8b969a;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.rs-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rs-check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 62px;
  padding: 17px;
  border: 1px solid #dde9e2;
  border-radius: 8px;
  background: #fff;
  color: #24323c;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.5;
}

.rs-check-grid input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #00796b;
}

.rs-note,
.rs-source-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 5px solid #00796b;
  border-radius: 8px;
  background: #f1faf6;
  color: #2d3a42;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 750;
}

.rs-ng {
  border-color: #f0c98d;
  background: #fffaf0;
}

.rs-ng-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rs-ng-grid article {
  padding: 20px;
  border-color: #efc98e;
  background: #fff;
}

.rs-ng-grid h3 {
  margin: 0 0 10px;
  color: #ad5c00;
  font-size: 20px;
  line-height: 1.35;
}

.rs-ng-grid p {
  margin: 0;
  color: #3d454b;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
}

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

.rs-flow-list li {
  position: relative;
  padding: 54px 18px 18px;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  background: #fff;
}

.rs-flow-list li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #00796b;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.rs-flow-list b,
.rs-flow-list span {
  display: block;
}

.rs-flow-list b {
  margin-bottom: 8px;
  color: #15242d;
  font-size: 19px;
  line-height: 1.4;
}

.rs-flow-list span {
  color: #44515a;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
}

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

.rs-record-grid article {
  padding: 20px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #fff;
}

.rs-record-grid h3 {
  margin: 0 0 10px;
  color: #006f63;
  font-size: 21px;
  line-height: 1.35;
}

.rs-record-grid p {
  margin: 0;
  color: #41505a;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
}

.rs-remove-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: remove;
}

.rs-remove-list li {
  position: relative;
  padding: 18px 18px 18px 64px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #fff;
}

.rs-remove-list li::before {
  counter-increment: remove;
  content: counter(remove);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #00796b;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.rs-remove-list b,
.rs-remove-list span {
  display: block;
}

.rs-remove-list b {
  margin-bottom: 6px;
  color: #17212b;
  font-size: 20px;
  line-height: 1.35;
}

.rs-remove-list span {
  color: #45535c;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
}

.rs-source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rs-source-grid a {
  display: flex;
  min-height: 112px;
  align-items: center;
  padding: 18px;
  color: #155fa6;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 900;
  text-decoration: none;
}

.rs-tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rs-tool-grid a {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  color: #17212b;
  text-decoration: none;
}

.rs-tool-grid strong {
  color: #006f63;
  font-size: 22px;
  line-height: 1.3;
}

.rs-tool-grid span {
  color: #4b575f;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
}

.rs-tool-grid em {
  align-self: end;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 13px;
  border-radius: 7px;
  background: #00796b;
  color: #fff;
  font-style: normal;
  font-size: 17px;
  font-weight: 950;
}

.rs-faq details {
  border: 1px solid #dde7e1;
  border-radius: 8px;
  background: #fff;
}

.rs-faq details + details {
  margin-top: 12px;
}

.rs-faq summary {
  padding: 18px;
  color: #13242c;
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
}

.rs-faq details p {
  margin: 0;
  padding: 0 18px 20px;
  color: #40505b;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 700;
}

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

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

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

@media (max-width: 980px) {
  .rs-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rs-nav {
    justify-content: flex-start;
  }

  .rs-search {
    width: 100%;
    min-width: 0;
  }

  .rs-method-grid,
  .rs-ng-grid,
  .rs-source-grid,
  .rs-record-grid,
  .rs-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rs-header {
    padding: 14px;
  }

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

  .rs-brand small {
    display: none;
  }

  .rs-brand b {
    font-size: 18px;
  }

  .rs-hero {
    padding: 14px 10px 0;
  }

  .rs-hero-inner,
  .rs-wrap {
    padding: 20px 14px;
  }

  .rs-wrap {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .rs-breadcrumb {
    font-size: 12px;
    line-height: 1.7;
  }

  h1 {
    font-size: 42px;
  }

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

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

  .rs-action {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    font-size: 20px;
  }

  .rs-method-grid,
  .rs-ng-grid,
  .rs-source-grid,
  .rs-tool-grid,
  .rs-record-grid,
  .rs-flow-list,
  .rs-check-grid {
    grid-template-columns: 1fr;
  }

  .rs-method-copy {
    min-height: auto;
  }

  .rs-method h3 {
    font-size: 28px;
  }

  .rs-section-head h2 {
    font-size: 30px;
  }

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

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

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

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

  .rs-table thead {
    display: none;
  }

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

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

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

  .rs-table td::before {
    display: block;
    margin-bottom: 3px;
    color: #006f63;
    font-size: 12px;
    font-weight: 950;
  }

  .rs-table td:nth-child(1)::before { content: "場所・物"; }
  .rs-table td:nth-child(2)::before { content: "第一候補"; }
  .rs-table td:nth-child(3)::before { content: "避けたい選び方"; }
  .rs-table td:nth-child(4)::before { content: "買う前に見る点"; }
}
