:root {
  --sssp-ink: #4f443e;
  --sssp-muted: #646b65;
  --sssp-sea: #55cf7f;
  --sssp-sea-dark: #2f7a4d;
  --sssp-sand: #fffaf1;
  --sssp-line: #bad8c3;
  --sssp-paper: #ffffff;
  --sssp-shadow: 0 7px 0 rgba(64, 145, 91, 0.14), 0 18px 34px rgba(60, 91, 70, 0.09);
}

.chiikawa-page-siren-shindan-survival #st-headwide,
.chiikawa-page-siren-shindan-survival .st-headerwide {
  display: none !important;
}

.chiikawa-page-siren-shindan-survival #content,
.chiikawa-page-siren-shindan-survival #content-w,
.chiikawa-page-siren-shindan-survival main {
  margin: 0;
  padding: 0;
  max-width: none;
}

.sssp-page,
.sssp-page * {
  box-sizing: border-box;
}

.sssp-page {
  min-width: 320px;
  margin: 0;
  padding: 18px 12px 64px;
  color: var(--sssp-ink);
  background:
    radial-gradient(circle at 8% 9%, rgba(85, 207, 127, 0.12) 0 8px, transparent 9px),
    radial-gradient(circle at 92% 22%, rgba(85, 207, 127, 0.1) 0 10px, transparent 11px),
    linear-gradient(180deg, #fffdf8 0%, #f7fcf8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

.sssp-app {
  width: min(100%, 660px);
  margin: 0 auto;
}

.sssp-app button,
.sssp-app a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sssp-app button:focus-visible,
.sssp-app a:focus-visible {
  outline: 3px solid #f4a43f;
  outline-offset: 3px;
}

.sssp-card {
  overflow: hidden;
  border: 1px solid #8fcea5;
  border-radius: 22px;
  background: var(--sssp-paper);
  box-shadow: var(--sssp-shadow);
}

.sssp-hero {
  padding: 24px 18px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.88) 0 3.7rem, transparent 3.8rem),
    linear-gradient(145deg, #fff6d9 0%, #edf9ef 100%);
}

.sssp-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border: 1px solid #93cda7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #2f7a4d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 0 #d8eddf;
}

.sssp-title {
  margin: 0;
  color: var(--sssp-ink);
  font-size: clamp(26px, 8vw, 38px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.sssp-title:focus {
  outline: none;
}

.sssp-lead {
  margin: 10px 0 0;
  color: #465a60;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.sssp-unofficial {
  margin: 8px 0 0;
  color: #2f7a4d;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.5;
}

.sssp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 16px auto 0;
  max-width: 430px;
}

.sssp-fact {
  padding: 8px 3px;
  border: 1px solid #a8d2b5;
  border-radius: 12px;
  background: #f4fbf5;
  box-shadow: 0 3px 0 #dceee1;
}

.sssp-fact strong,
.sssp-fact span {
  display: block;
}

.sssp-fact strong {
  font-size: 15px;
  font-weight: 900;
}

.sssp-fact span {
  color: var(--sssp-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.sssp-body {
  padding: 18px 14px 22px;
  background: var(--sssp-sand);
}

.sssp-island-visual {
  overflow: hidden;
  margin: 18px 2px 20px;
  border-radius: 16px;
  background: #cff3f7;
  box-shadow: 0 0 0 3px #78bd90, 0 8px 0 rgba(54, 130, 80, 0.18);
}

.sssp-island-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.sssp-notice,
.sssp-privacy,
.sssp-disclaimer {
  margin: 0;
  color: var(--sssp-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.sssp-notice + .sssp-notice,
.sssp-disclaimer + .sssp-disclaimer {
  margin-top: 4px;
}

.sssp-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e6c77f;
  border-radius: 12px;
  background: #fff7df;
  color: #6e4d0e;
  font-size: 13px;
  font-weight: 800;
}

.sssp-invite-heading {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #9ccca9;
  border-radius: 14px;
  background: #f3faf5;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
}

.sssp-invite-heading b {
  color: #2f7a4d;
}

.sssp-privacy {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fcf7;
}

.sssp-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin: 18px 0;
}

.sssp-slot {
  min-width: 0;
  min-height: 128px;
  padding: 10px 6px;
  border: 2px solid #cfd9da;
  border-radius: 15px;
  background: #fff;
  color: var(--sssp-ink);
  text-align: center;
}

button.sssp-slot {
  cursor: pointer;
}

button.sssp-slot[aria-current="true"] {
  border-color: var(--sssp-sea);
  background: #e9f8ee;
  box-shadow: 0 0 0 3px rgba(85, 207, 127, 0.16);
}

.sssp-slot__label {
  display: block;
  margin-bottom: 7px;
  color: var(--sssp-muted);
  font-size: 11px;
  font-weight: 900;
}

.sssp-slot__name {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sssp-slot__change {
  display: block;
  margin-top: 2px;
  color: var(--sssp-sea-dark);
  font-size: 10.5px;
  font-weight: 800;
}

.sssp-times {
  color: #657579;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.sssp-avatar {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  flex: 0 0 58px;
  border: 2px solid rgba(44, 58, 62, 0.2);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.sssp-avatar--small {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  font-size: 17px;
}

.sssp-avatar--large {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 23px;
}

.sssp-picker-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px 10px;
}

.sssp-picker-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.sssp-picker-head span {
  flex: 0 0 auto;
  color: var(--sssp-muted);
  font-size: 11px;
  font-weight: 800;
}

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

.sssp-type {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 74px;
  align-items: center;
  gap: 8px;
  padding: 9px 7px;
  border: 2px solid #e2ddcf;
  border-radius: 14px;
  background: #fff;
  color: var(--sssp-ink);
  cursor: pointer;
  text-align: left;
}

.sssp-type[aria-pressed="true"] {
  border-color: var(--sssp-sea);
  background: #e9f8ee;
}

.sssp-type__name {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sssp-type__badge {
  position: absolute;
  top: -5px;
  right: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sssp-sea-dark);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.sssp-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sssp-actions--sticky {
  position: sticky;
  z-index: 4;
  bottom: 8px;
  padding: 8px;
  border: 1px solid rgba(222, 216, 202, 0.88);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.95);
  box-shadow: 0 8px 22px rgba(44, 58, 62, 0.13);
  backdrop-filter: blur(7px);
}

.sssp-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid #287345;
  background: linear-gradient(135deg, #64cf87, #43b66b);
  box-shadow: 0 5px 0 #287345;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.sssp-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 0 #287345;
}

.sssp-button[disabled] {
  background: #dfe3e3;
  box-shadow: none;
  color: #879193;
  cursor: not-allowed;
}

.sssp-button--x {
  border-color: #000;
  background: #17191b;
  box-shadow: 0 5px 0 #000;
}

.sssp-button--sub {
  min-height: 50px;
  border: 2px solid #a8cdb3;
  background: #f8fcf8;
  box-shadow: none;
  color: var(--sssp-sea-dark);
  font-size: 14px;
}

.sssp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
  margin-top: 12px;
}

.sssp-link-button,
.sssp-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--sssp-sea-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sssp-result-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin: 0 auto;
  max-width: 410px;
}

.sssp-who {
  display: grid;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.sssp-who__name {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sssp-result-title {
  margin: 20px 0 0;
  color: #42555b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
  text-align: center;
}

.sssp-rate {
  margin-top: 2px;
  color: var(--sssp-band-color, var(--sssp-sea-dark));
  text-align: center;
  font-size: clamp(76px, 24vw, 132px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.sssp-rate span {
  margin-left: 3px;
  font-size: 0.38em;
  letter-spacing: 0;
}

.sssp-band {
  width: fit-content;
  max-width: 100%;
  margin: 4px auto 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: clamp(18px, 5.4vw, 22px);
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.sssp-result-copy,
.sssp-tip {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #e0d8c6;
  border-radius: 15px;
  background: #fff;
}

.sssp-result-copy p,
.sssp-tip p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.sssp-tip {
  border-color: #a9ccb4;
  background: #f3faf5;
}

.sssp-tip h2 {
  margin: 0 0 7px;
  color: #2f6848;
  font-size: 15px;
  font-weight: 900;
}

.sssp-share-block {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #ded8ca;
  border-radius: 16px;
  background: #fffdf7;
}

.sssp-share-title {
  margin: 0 0 10px;
  color: var(--sssp-muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.sssp-share-subactions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.sssp-share-subactions--single {
  grid-template-columns: minmax(0, 1fr);
}

.sssp-after,
.sssp-recent {
  margin-top: 18px;
  padding: 15px;
  border-radius: 15px;
  text-align: left;
}

.sssp-after {
  border: 1px solid #f0d9b8;
  background: #fff6ea;
}

.sssp-after h2 {
  margin: 0 0 7px;
  color: #8a5a1f;
  font-size: 15px;
  font-weight: 900;
}

.sssp-after p {
  margin: 0;
  color: #5c4426;
  font-size: 15px;
  line-height: 1.8;
}

.sssp-recent {
  border: 1px solid #cfe3df;
  background: #f7fbfa;
}

.sssp-recent__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  color: #1f6f5c;
  font-size: 15px;
  font-weight: 900;
}

.sssp-recent__note {
  margin: 0 0 11px;
  color: var(--sssp-muted);
  font-size: 12px;
  line-height: 1.65;
}

.sssp-recent__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sssp-recent__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #e2ece9;
  border-radius: 11px;
  background: #fff;
  color: var(--sssp-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.sssp-recent__list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sssp-recent__list li b {
  flex: 0 0 auto;
  color: #1f6f5c;
  font-size: 15px;
  font-weight: 900;
}

.sssp-toast {
  position: fixed;
  z-index: 99999;
  right: 16px;
  bottom: 18px;
  left: 16px;
  max-width: 420px;
  margin: 0 auto;
  padding: 11px 14px;
  border-radius: 12px;
  background: #26383e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.sssp-result-notes {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #d5cdbd;
}

/* AFFINGERの見出し装飾を解除し、通常診断と同じ控えめの見出しにする。 */
.sssp-app .sssp-tip h2,
.sssp-app .sssp-share-title,
.sssp-app .sssp-after h2,
.sssp-app .sssp-recent__title,
.sssp-app .sssp-related-section__title {
  display: block;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #2f6848 !important;
  -webkit-text-fill-color: #2f6848;
  font-size: 16px !important;
  font-weight: 900;
  line-height: 1.5;
  text-align: left;
}

.sssp-app .sssp-tip h2::before,
.sssp-app .sssp-tip h2::after,
.sssp-app .sssp-share-title::before,
.sssp-app .sssp-share-title::after,
.sssp-app .sssp-after h2::before,
.sssp-app .sssp-after h2::after,
.sssp-app .sssp-recent__title::before,
.sssp-app .sssp-recent__title::after,
.sssp-app .sssp-related-section__title::before,
.sssp-app .sssp-related-section__title::after {
  display: none !important;
  content: none !important;
}

.sssp-app .sssp-after h2 {
  color: #8a5a1f !important;
  -webkit-text-fill-color: #8a5a1f;
}

.sssp-app .sssp-recent__title {
  display: flex;
  margin-bottom: 5px !important;
  color: #1f6f5c !important;
  -webkit-text-fill-color: #1f6f5c;
}

.sssp-related-section {
  margin-top: 24px;
  padding: 16px 14px 18px;
  border: 1px solid #d4e6d8;
  border-radius: 18px;
  background: #eff8f1;
}

.sssp-app .sssp-related-section__title {
  margin-bottom: 0 !important;
  font-size: 18px !important;
}

.sssp-related {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sssp-related-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  min-height: 94px;
  padding: 8px;
  border: 1px solid #c7ddcd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(75, 119, 88, 0.08);
  color: #245b3f;
  text-decoration: none;
}

.sssp-related-card:hover {
  border-color: #87b295;
  background: #fbfffc;
}

.sssp-related-card:focus-visible {
  outline: 3px solid rgba(42, 126, 82, 0.34);
  outline-offset: 2px;
}

.sssp-related-card__thumb {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: #edf8ef;
  object-fit: cover;
  object-position: center 38%;
}

.sssp-related-card__thumb--topic {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #edf8ef, #b9dfc4);
  color: #315e40;
  font-size: 14px;
  font-weight: 900;
}

.sssp-related-card__body {
  min-width: 0;
}

.sssp-related-card__category,
.sssp-related-card__body strong {
  display: block;
}

.sssp-related-card__category {
  color: #3c7a57;
  font-size: 11px;
  font-weight: 900;
}

.sssp-related-card__body strong {
  margin-top: 3px;
  color: #245b3f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.sssp-related-card__arrow {
  color: #3f865c;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.sssp-noscript {
  padding: 16px;
  border: 1px solid #d49b39;
  border-radius: 12px;
  background: #fff5d9;
}

.sssp-fatal {
  padding: 18px;
  border: 1px solid #cc7777;
  border-radius: 14px;
  background: #fff0f0;
  color: #7b2929;
  font-weight: 800;
}

@media (min-width: 520px) {
  .sssp-page {
    padding: 28px 18px 80px;
  }

  .sssp-body {
    padding: 24px 22px 28px;
  }

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

  .sssp-type {
    min-height: 80px;
  }

  .sssp-share-subactions {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sssp-app *,
  .sssp-app *::before,
  .sssp-app *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
