:root {
  --bg: #d7e3db;
  --bg-2: #e7efe9;
  --panel: #fbfcf8;
  --panel-2: #e7f0eb;
  --panel-3: #dce8e1;
  --line: #c0d0c5;
  --line-strong: #8fa696;
  --text: #172033;
  --heading: #0d1524;
  --muted: #647286;
  --soft: #34445a;
  --ink-panel: #162331;
  --ink-panel-2: #1b4e49;
  --teal: #18b8ad;
  --coral: #f36f5d;
  --yellow: #f2c94c;
  --green: #31b66b;
  --blue: #3b82f6;
  --shadow: 0 16px 38px rgba(29, 45, 38, 0.17);
  --radius: 8px;
  --content: min(1120px, calc(100vw - 32px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #eef4ee 0, var(--bg) 25rem),
    repeating-linear-gradient(0deg, rgba(23, 35, 52, 0.035) 0, rgba(23, 35, 52, 0.035) 1px, transparent 1px, transparent 48px),
    var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(24, 184, 173, 0.55);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #087d76;
  text-decoration-color: var(--coral);
}

button,
input,
select {
  font: inherit;
}

.tools-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(18, 31, 40, 0.94);
  backdrop-filter: blur(16px);
}

.tools-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: var(--content);
  min-height: 68px;
  margin-inline: auto;
}

.brand {
  display: inline-grid;
  gap: 2px;
  color: #f8faf7;
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  color: #9de8ca;
  font-size: 12px;
  font-weight: 850;
}

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9de8ca;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.brand__mark::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: conic-gradient(from 140deg, var(--teal), var(--coral), var(--yellow), var(--teal));
  box-shadow: 0 0 22px rgba(87, 216, 207, 0.48);
}

.brand__tagline {
  color: #9de8ca;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tools-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tools-nav a {
  padding: 7px 9px;
  border-radius: var(--radius);
  color: #d7e3df;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.tools-nav a:hover,
.tools-nav a[aria-current="page"],
.tools-nav a[data-section-current="true"] {
  color: #071312;
  background: #9de8ca;
}

.tools-subnav-shell {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 26, 34, 0.68);
}

.tools-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  width: var(--content);
  margin-inline: auto;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tools-subnav::-webkit-scrollbar {
  display: none;
}

.tools-subnav__label {
  flex: 0 0 auto;
  margin-right: 3px;
  color: #9de8ca;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.tools-subnav a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(157, 232, 202, 0.17);
  border-radius: 999px;
  color: #dcebe5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.tools-subnav a:hover,
.tools-subnav a[aria-current="page"] {
  border-color: transparent;
  color: #071312;
  background: #9de8ca;
}

.tools-main {
  min-width: 0;
  width: var(--content);
  margin-inline: auto;
  padding: 26px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(143, 166, 150, 0.36);
  border-radius: var(--radius);
  background: #18252d;
  box-shadow: 0 12px 28px rgba(18, 31, 40, 0.12);
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  background: url("hero-akihabara-soft.png") center / cover no-repeat;
  filter: blur(6px) saturate(1.05);
  transform: scale(1.04);
}

.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 16, 22, 0.82) 0%, rgba(9, 16, 22, 0.58) 45%, rgba(9, 16, 22, 0.22) 100%),
    linear-gradient(180deg, rgba(157, 232, 202, 0.18), rgba(251, 252, 248, 0.68));
}

.hero--photo .hero__body,
.hero--photo .hero__panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero--photo .hero__body {
  min-height: 210px;
}

.hero--tool.hero--photo .hero__body {
  min-height: 132px;
}

.hero--photo h1,
.hero--photo h2,
.hero--photo .lead,
.hero--photo .hero__body p,
.hero--photo .hero__panel p,
.hero--photo .stat span,
.hero--photo .stat strong {
  color: #f8faf7;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.hero--photo .kicker,
.hero--photo .label-pill {
  color: #073533;
  background: rgba(157, 232, 202, 0.92);
}

.hero--photo .button--ghost {
  border-color: rgba(248, 250, 247, 0.52);
  color: #f8faf7;
  background: rgba(18, 31, 40, 0.32);
}

.hero--photo .stat {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(248, 250, 247, 0.9);
}

.hero--photo .stat strong {
  color: var(--heading);
  text-shadow: none;
}

.hero--photo .stat span {
  color: var(--muted);
  text-shadow: none;
}

.hero--photo .hero__body .kicker,
.hero--photo .hero__panel .label-pill {
  color: #073533;
  background: rgba(220, 248, 238, 0.96);
  border-color: rgba(157, 232, 202, 0.88);
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(7, 53, 51, 0.12);
}

.hero--tool {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
}

.hero--single {
  grid-template-columns: 1fr;
}

.hero__body,
.hero__panel,
.section,
.tool-card,
.result-card,
.guide-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero__body {
  display: grid;
  align-content: center;
  min-height: 260px;
  border-color: rgba(15, 39, 47, 0.92);
  background:
    linear-gradient(135deg, rgba(24, 184, 173, 0.2), transparent 52%),
    linear-gradient(135deg, var(--ink-panel), var(--ink-panel-2));
  color: #f8faf7;
  padding: clamp(22px, 4vw, 42px);
}

.hero--tool .hero__body,
.hero--tool .hero__panel {
  min-height: 154px;
  box-shadow: 0 10px 28px rgba(43, 59, 83, 0.08);
}

.hero--tool .hero__body {
  padding: 24px 26px;
}

.hero--single .hero__body {
  min-height: 140px;
}

.hero__body h1,
.hero__body h2,
.hero__body h3 {
  color: #ffffff;
}

.hero__body .lead,
.hero__body p {
  color: #dceee9;
}

.hero--tool .hero__panel {
  align-content: center;
}

.hero--tool h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.hero--tool .lead,
.hero--tool p {
  margin-bottom: 0;
}

.hero__panel {
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 5px solid var(--coral);
  background:
    linear-gradient(180deg, #f9fbf7, #edf4ee);
  padding: 20px;
}

.kicker,
.label-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #087d76;
  background: #dffff8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.hero__body .kicker {
  color: #062825;
  background: #9de8ca;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--heading);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
}

h2 {
  color: var(--heading);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
}

h3 {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions,
.inline-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.button,
.button:visited,
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: #061014;
  background: linear-gradient(135deg, var(--teal), #9de8ca);
  box-shadow: 0 14px 34px rgba(24, 184, 173, 0.18);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button--ghost,
.button--ghost:visited,
button.secondary {
  color: var(--heading);
  background: var(--panel-2);
  border-color: var(--line);
  box-shadow: none;
}

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

.stat {
  display: grid;
  gap: 1px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3f8f4;
}

.stat strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tool-card,
.guide-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border-left: 5px solid var(--teal);
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.tool-card:nth-child(2n),
.guide-card:nth-child(2n) {
  border-left-color: var(--coral);
}

.tool-card:nth-child(3n),
.guide-card:nth-child(3n) {
  border-left-color: var(--blue);
}

.tool-card:hover,
.guide-card:hover {
  border-color: rgba(24, 184, 173, 0.44);
  background: #fffffb;
  transform: translateY(-1px);
}

.section {
  margin-top: 18px;
  border-top: 5px solid rgba(24, 184, 173, 0.62);
  background:
    linear-gradient(180deg, rgba(226, 237, 231, 0.94), rgba(251, 252, 248, 0.97) 92px),
    var(--panel);
  padding: clamp(18px, 3vw, 26px);
}

.section:nth-of-type(3n + 1) {
  border-top-color: rgba(243, 111, 93, 0.62);
}

.section:nth-of-type(3n + 2) {
  border-top-color: rgba(59, 130, 246, 0.5);
}

.compact-section {
  padding-block: 18px;
}

.tool-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: 16px;
  align-items: start;
}

.tool-layout--beginner {
  grid-template-columns: 1fr;
}

.tool-layout--beginner .form-panel {
  position: static;
}

.form-panel {
  min-width: 0;
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid #31465f;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #f9fbf5, #edf4ee);
  box-shadow: 0 14px 32px rgba(29, 45, 38, 0.1);
}

.form-panel--simple {
  gap: 14px;
}

.simple-question-stack {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.simple-question-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #f9fbf5;
  grid-column: span 2;
}

.simple-question-card:nth-child(2) {
  border-left-color: var(--coral);
}

.simple-question-card:nth-child(3) {
  border-left-color: var(--blue);
}

.simple-question-card:nth-child(4) {
  border-left-color: var(--yellow);
}

.simple-question-card--wide {
  grid-column: 1 / -1;
}

.simple-question-card__step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #062825;
  background: #9de8ca;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.simple-question-card label,
.simple-question-card .field-title {
  font-size: 15px;
}

.simple-question-card select {
  min-height: 48px;
  font-weight: 850;
}

.size-native-select,
.goods-native-select {
  display: none;
}

.size-picker,
.goods-picker {
  position: relative;
  min-width: 0;
}

.size-picker__button,
.size-picker__option,
.goods-picker__button,
.goods-picker__option {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--heading);
  font: inherit;
  text-align: left;
}

.size-picker__button,
.goods-picker__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 9px 12px;
  cursor: pointer;
}

.size-picker__button:focus,
.goods-picker__button:focus {
  outline: 3px solid rgba(24, 184, 173, 0.18);
  border-color: var(--teal);
}

.size-picker__button-text,
.size-picker__option,
.goods-picker__button-text,
.goods-picker__option {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.size-picker__title,
.goods-picker__title {
  color: var(--heading);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.size-picker__meta,
.goods-picker__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.size-picker__arrow,
.goods-picker__arrow {
  flex: 0 0 auto;
  color: var(--heading);
  font-size: 18px;
  line-height: 1;
}

.size-picker__menu,
.goods-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  display: none;
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffefa;
  box-shadow: 0 18px 36px rgba(29, 45, 38, 0.16);
}

.size-picker.is-open .size-picker__menu,
.goods-picker.is-open .goods-picker__menu {
  display: grid;
  gap: 3px;
}

.size-picker__option,
.goods-picker__option {
  min-height: 48px;
  padding: 8px 10px;
  cursor: pointer;
}

.size-picker__option:hover,
.size-picker__option.is-selected,
.goods-picker__option:hover,
.goods-picker__option.is-selected {
  border-color: rgba(24, 184, 173, 0.36);
  background: #eefaf4;
}

.field-help {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.check-grid--chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid--chips label {
  min-height: 40px;
  background: #fffefa;
}

.form-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
}

.form-detail summary {
  padding: 12px 14px;
  color: var(--heading);
  font-weight: 900;
  cursor: pointer;
}

.form-detail .field-grid {
  padding: 0 14px 14px;
}

.form-detail > .link-list {
  padding: 0 14px 14px;
}

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

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

label,
.field-title {
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--heading);
  background: #fffefa;
}

input:focus,
select:focus {
  outline: 3px solid rgba(24, 184, 173, 0.18);
  border-color: var(--teal);
}

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

.check-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.check-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal);
}

.results {
  display: grid;
  gap: 12px;
}

.result-card {
  display: grid;
  gap: 9px;
  border-left: 5px solid #31465f;
  padding: 16px;
}

.result-card--primary {
  border-color: rgba(24, 184, 173, 0.42);
  border-left-color: var(--teal);
  background:
    linear-gradient(135deg, rgba(24, 184, 173, 0.16), transparent 46%),
    #f7fffb;
}

.result-card--warning {
  border-color: rgba(243, 111, 93, 0.32);
  border-left-color: var(--coral);
  background:
    linear-gradient(135deg, rgba(243, 111, 93, 0.13), transparent 46%),
    #fffaf7;
}

.result-card h3 {
  margin-bottom: 0;
}

.results--beginner {
  gap: 12px;
}

.results--beginner .result-card--primary h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.quick-result {
  display: grid;
  gap: 10px;
}

.quick-result p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--heading);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 800;
  line-height: 1.65;
}

.quick-result p + p {
  color: var(--soft);
  font-size: 15px;
  font-weight: 800;
}

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

.quick-answer-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(24, 184, 173, 0.24);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.78);
}

.quick-answer-item--wide {
  grid-column: 1 / -1;
}

.quick-answer-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quick-answer-item strong {
  color: var(--heading);
  font-size: 15px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.quick-answer-mini-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-answer-mini-list li {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.quick-answer-mini-list li span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.48;
}

.quick-answer-mini-list li strong {
  font-size: 15px;
}

.result-list,
.quick-table ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.key-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
}

.key-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.key-item strong {
  color: var(--heading);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mini-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.result-list li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
}

.steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

.steps li {
  padding-left: 3px;
}

.result-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbf5;
  box-shadow: 0 10px 28px rgba(43, 59, 83, 0.09);
}

.result-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--heading);
  font-weight: 900;
  cursor: pointer;
}

.result-detail summary::after {
  content: "+";
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
}

.result-detail[open] summary::after {
  content: "-";
}

.result-detail__body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.result-detail__body h3 {
  margin: 8px 0 0;
  font-size: 15px;
}

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

.decision-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
}

.decision-grid h4 {
  margin: 0;
  color: var(--heading);
  font-size: 14px;
  line-height: 1.35;
}

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

.method-compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbf5;
}

.method-compare table {
  min-width: 560px;
}

.method-compare th,
.method-compare td {
  padding: 8px 10px;
  font-size: 13px;
}

.method-compare a {
  color: #087d76;
  font-weight: 900;
}

.method-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
}

.method-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
}

.method-card__head strong {
  color: var(--heading);
}

.method-card__head span,
.method-card p,
.method-card li {
  color: var(--soft);
  font-size: 14px;
}

.method-card p,
.method-card ul {
  margin: 0;
}

.method-card ul {
  display: grid;
  gap: 5px;
  padding-left: 1.2em;
}

.method-detail {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.method-detail summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.method-badge {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.method-badge--box {
  background: #eef2ff;
  color: #3730a3;
}

.method-card a {
  width: fit-content;
  color: #087d76;
  font-size: 13px;
  font-weight: 900;
}

.shelf-slot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shelf-slot {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
}

.shelf-slot__head {
  display: grid;
  gap: 3px;
}

.shelf-slot__head span {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.shelf-slot__head strong {
  color: var(--heading);
  line-height: 1.45;
}

.shelf-slot p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.shelf-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.shelf-keywords span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.shelf-note {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.shelf-note summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.shelf-slot a {
  width: fit-content;
  color: #087d76;
  font-size: 13px;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-pill {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: #eef5ef;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.is-active {
  color: #063f3c;
  background: #dff7ef;
  border-color: rgba(24, 184, 173, 0.35);
}

.fit-summary {
  margin-top: 12px;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fit-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 5px solid rgba(24, 184, 173, 0.58);
  border-radius: var(--radius);
  background: #f9fbf5;
  box-shadow: 0 10px 24px rgba(45, 63, 54, 0.1);
}

.fit-card__head {
  display: grid;
  gap: 4px;
}

.fit-card__head span,
.fit-mini-row span {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: #075b55;
  background: #e5faf5;
  font-size: 12px;
  font-weight: 900;
}

.fit-card__head strong {
  color: var(--heading);
  line-height: 1.45;
}

.fit-card p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 900;
}

.status-pill--review {
  background: #fff7ed;
  color: #9a3412;
}

.status-pill--likely {
  background: #ecfdf5;
  color: #047857;
}

.status-pill--tight,
.status-pill--unknown {
  background: #fff7ed;
  color: #9a3412;
}

.fit-mini-list,
.case-list {
  display: grid;
  gap: 8px;
}

.fit-mini-row,
.case-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
}

.fit-mini-row strong,
.case-row strong {
  color: var(--heading);
  line-height: 1.4;
}

.fit-mini-row em,
.case-row span,
.case-row a {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.case-row {
  grid-template-columns: minmax(0, 1.1fr) auto auto auto;
}

.case-row a {
  color: #087d76;
}

.copy-status {
  min-height: 1.6em;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.copy-box {
  display: grid;
  gap: 9px;
}

.copy-sample {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(24, 184, 173, 0.25);
  border-radius: var(--radius);
  background: #eef8f4;
}

.copy-sample span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.copy-sample p {
  margin: 0;
  color: var(--heading);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef5ef;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbf5;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #f9fbf5;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--heading);
  background: var(--panel-3);
  font-size: 13px;
}

td {
  color: var(--soft);
  font-size: 14px;
}

.notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(243, 111, 93, 0.28);
  border-radius: var(--radius);
  background: #fff7f4;
  color: #653023;
  font-size: 13px;
}

.link-list {
  display: grid;
  gap: 8px;
}

.guide-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.guide-tools input {
  max-width: 420px;
}

.link-list a {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5ef;
  text-decoration: none;
}

.link-list strong {
  color: var(--heading);
}

.link-list span {
  color: var(--muted);
  font-size: 13px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.guide-body {
  display: grid;
  gap: 14px;
}

.guide-body section {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #f9fbf5;
}

.guide-visual {
  margin: 0;
  border: 1px solid rgba(143, 166, 150, 0.68);
  border-radius: var(--radius);
  background: #f9fbf5;
  box-shadow: 0 16px 36px rgba(43, 59, 83, 0.08);
  overflow: hidden;
}

.guide-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef3f7;
}

.guide-visual figcaption {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tools-footer {
  width: var(--content);
  margin: 0 auto;
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-break {
  display: inline;
}

.mobile-break::before {
  content: "";
}

@media (max-width: 900px) {
  :root {
    --content: calc(100vw - 24px);
  }

  .tools-header__inner,
  .hero,
  .hero--tool,
  .tool-layout,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .tools-header__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px 0;
  }

  .brand--oshidoki {
    width: 100%;
  }

  .tools-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tools-nav::-webkit-scrollbar {
    display: none;
  }

  .form-panel {
    position: static;
  }

  .simple-question-stack {
    grid-template-columns: 1fr;
  }

  .simple-question-card,
  .simple-question-card--wide {
    grid-column: 1 / -1;
  }

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

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

  .case-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tools-main {
    padding-top: 14px;
  }

  .hero__body,
  .hero__panel,
  .section,
  .result-card {
    padding: 16px;
  }

  .field-grid,
  .check-grid,
  .stats,
  .decision-grid,
  .quick-answer-list,
  .shelf-slot-list,
  .key-grid,
  .fit-grid,
  .fit-mini-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .inline-actions .button,
  .action-row button,
  button.primary,
  button.secondary {
    width: 100%;
  }

  .quick-result {
    gap: 8px;
  }

  .quick-answer-item {
    padding: 10px;
  }

  .quick-result p {
    font-size: 15px;
    line-height: 1.62;
  }
}

/* Visual tune: align tools with the calmer Oshidoki gateway tone. */
:root {
  --shadow: 0 10px 24px rgba(29, 45, 38, 0.1);
}

body {
  background:
    linear-gradient(180deg, #eef5ef 0, #dce9e1 25rem),
    var(--bg);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

.tools-header {
  background: rgba(22, 37, 43, 0.94);
}

.tools-header__inner {
  min-height: 62px;
}

.brand,
.brand strong {
  font-weight: 800;
}

.brand span,
.brand__tagline {
  color: #a7d5c2;
  font-weight: 600;
}

.brand__mark {
  color: #9de8ca;
  font-weight: 900;
}

.tools-nav a {
  font-weight: 700;
}

.hero--tool .hero__body {
  min-height: 120px;
  border-color: rgba(143, 166, 150, 0.42);
  background:
    linear-gradient(145deg, rgba(247, 252, 247, 0.98), rgba(222, 238, 229, 0.88));
  color: var(--heading);
  box-shadow: 0 8px 18px rgba(29, 45, 38, 0.07);
}

.hero--tool .hero__body h1 {
  color: var(--heading);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero--tool .hero__body .lead,
.hero--tool .hero__body p {
  color: var(--soft);
  font-size: clamp(14px, 1.7vw, 16px);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero__body .kicker {
  color: #0b6f69;
  background: #dff8ee;
}

.form-panel,
.result-card,
.section,
.tool-card,
.guide-card {
  border-color: rgba(143, 166, 150, 0.36);
  box-shadow: 0 8px 18px rgba(29, 45, 38, 0.065);
}

.simple-question-card {
  padding: 13px;
  border-left-width: 3px;
}

.simple-question-card__step {
  width: 26px;
  height: 26px;
  font-weight: 700;
}

.simple-question-card select,
.simple-question-card input {
  min-width: 0;
  font-weight: 700;
}

.form-detail summary,
.result-detail summary {
  font-weight: 750;
}

@media (max-width: 560px) {
  .tools-header__inner {
    min-height: 58px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand span,
  .brand__tagline {
    font-size: 11px;
  }

  .brand__mark {
    font-size: 20px;
  }

  .tools-nav a {
    font-size: 12px;
    padding: 6px 8px;
  }

  .hero--tool .hero__body {
    padding: 20px;
  }

  .hero--tool .hero__body h1 {
    font-size: 24px;
    line-height: 1.32;
  }
}

.hero--photo.hero--tool .hero__body,
.hero--photo .hero__body,
.hero--photo .hero__panel {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hero--photo .hero__body h1,
.hero--photo .hero__body .lead,
.hero--photo .hero__body p,
.hero--photo .hero__panel h2,
.hero--photo .hero__panel p,
.hero--photo .stat strong,
.hero--photo .stat span {
  color: #f8faf7;
}

.hero--photo .stat strong {
  color: var(--heading);
  text-shadow: none;
}

.hero--photo .stat span {
  color: var(--muted);
  text-shadow: none;
}

.hero--photo .hero__body .kicker,
.hero--photo .hero__panel .label-pill {
  color: #073533;
  background: rgba(220, 248, 238, 0.96);
  border-color: rgba(157, 232, 202, 0.88);
  text-shadow: none;
}

/* Navigation and guide index polish: keep the first choice light on mobile. */
.section-lead {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.guide-shortcuts {
  border-top-color: rgba(157, 232, 202, 0.78);
}

.feature-picks {
  border-top-color: rgba(24, 184, 173, 0.72);
}

.feature-pick-grid,
.rain-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.feature-pick,
.rain-check-grid a {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 148px;
  padding: 16px;
  border: 1px solid rgba(143, 166, 150, 0.48);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.95);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(29, 45, 38, 0.06);
}

.feature-pick:nth-child(2),
.rain-check-grid a:nth-child(2) {
  border-left-color: var(--blue);
}

.feature-pick:nth-child(3),
.rain-check-grid a:nth-child(3) {
  border-left-color: var(--coral);
}

.feature-pick:hover,
.rain-check-grid a:hover {
  border-color: rgba(24, 184, 173, 0.45);
  background: #fffffb;
  transform: translateY(-1px);
}

.feature-pick--season {
  background:
    linear-gradient(145deg, rgba(223, 248, 238, 0.96), rgba(251, 252, 248, 0.95));
}

.feature-pick span,
.rain-check-grid span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #073533;
  background: #dff8ee;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.feature-pick strong,
.rain-check-grid strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.34;
}

.feature-pick small,
.rain-check-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.rain-buy-set {
  border-top-color: rgba(24, 184, 173, 0.72);
}

.rain-buy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.rain-buy-card {
  display: grid;
  min-width: 0;
  min-height: 220px;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(143, 166, 150, 0.44);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.96);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(29, 45, 38, 0.06);
}

.rain-buy-card:hover {
  border-color: rgba(24, 184, 173, 0.48);
  background: #fffffb;
  transform: translateY(-1px);
}

.rain-buy-card span,
.rain-buy-card b {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.rain-buy-card span {
  color: #073533;
  background: #dff8ee;
}

.rain-buy-card strong {
  color: var(--heading);
  font-size: 17px;
  line-height: 1.32;
}

.rain-buy-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.rain-buy-card b {
  margin-top: 2px;
  color: #0b4f49;
  background: #ecf8f4;
}

.rain-buy-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.guide-visual--feature {
  margin-top: 16px;
}

body[data-page="home"] .tools-main > .section:nth-of-type(n+5) {
  display: none;
}

.guide-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.guide-shortcut {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  gap: 10px;
  padding: 15px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.92);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(29, 45, 38, 0.055);
}

.guide-shortcut:hover {
  border-color: rgba(24, 184, 173, 0.45);
  background: #fffffb;
  transform: translateY(-1px);
}

.guide-shortcut span {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dff8ee;
  color: #0b6f69;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
}

.guide-shortcut strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.35;
}

.guide-shortcut small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.guide-shortcut--primary {
  border-color: rgba(24, 184, 173, 0.48);
  background:
    linear-gradient(145deg, rgba(223, 248, 238, 0.95), rgba(251, 252, 248, 0.94));
}

.guide-shortcuts--quick .guide-shortcut-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.guide-shortcuts--quick .guide-shortcut {
  min-height: 84px;
  align-content: start;
  padding: 12px;
}

.guide-shortcuts--quick .guide-shortcut strong {
  font-size: 15px;
  line-height: 1.28;
}

.guide-shortcuts--quick .guide-shortcut small {
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guide-index-section .guide-tools {
  grid-template-columns: auto minmax(220px, 420px);
  align-items: center;
  margin-top: 14px;
}

.guide-index-section .guide-tools label {
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.guide-directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.guide-index-section .guide-card {
  min-height: 104px;
  gap: 5px;
  padding: 12px 13px;
  border-top: 3px solid var(--teal);
  border-left-width: 0;
}

.guide-index-section .guide-card:nth-child(2n) {
  border-top-color: var(--coral);
}

.guide-index-section .guide-card:nth-child(3n) {
  border-top-color: var(--blue);
}

.guide-index-section .guide-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.guide-index-section .guide-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .feature-pick-grid,
  .rain-check-grid,
  .rain-buy-grid,
  .guide-shortcut-grid,
  .guide-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-shortcuts--quick .guide-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tools-subnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: min(calc(100vw - 24px), 366px);
    margin-left: 12px;
    margin-right: 0;
    padding: 7px 0 9px;
    overflow: visible;
  }

  .tools-subnav__label {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
  }

  .tools-subnav a {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 5px;
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }

  .tools-subnav a[href="/ranking/"] {
    display: none;
  }

  .feature-pick-grid,
  .rain-check-grid,
  .guide-shortcut-grid,
  .guide-directory-grid,
  .guide-index-section .guide-tools {
    grid-template-columns: 1fr;
  }

  .feature-pick,
  .rain-check-grid a,
  .guide-shortcut {
    min-height: 0;
    align-content: start;
    gap: 5px;
    padding: 13px;
  }

  .guide-index-section .guide-card {
    min-height: 0;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px 13px;
    border-top-width: 0;
    border-left-width: 4px;
  }

  .guide-index-section .guide-card::after {
    content: "→";
    color: #087d76;
    font-weight: 900;
  }

  .guide-index-section .guide-card p {
    grid-column: 1 / -1;
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 360px) {
  .tools-subnav a {
    font-size: 11px;
  }
}

/* Public wording sweep follow-up: keep photo hero copy inside the phone viewport. */
.hero,
.hero__body,
.hero__panel {
  max-width: 100%;
}

.hero--photo .hero__body h1,
.hero--photo .hero__body .lead,
.hero--photo .hero__body p,
.hero--photo .hero__panel h2,
.hero--photo .hero__panel p {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-break: loose;
}

@media (max-width: 560px) {
  .tools-main {
    width: min(100%, calc(100vw - 24px));
  }

  .hero--photo {
    display: block;
    width: 100%;
  }

  .hero--photo .hero__body,
  .hero--photo .hero__panel {
    min-width: 0;
    width: 100%;
  }

  .hero--photo .hero__body {
    margin-bottom: 10px;
  }

  .hero--photo .hero__body .lead,
  .hero--photo .hero__body p,
  .hero--photo .hero__panel p {
    width: 100%;
    max-width: 295px;
    word-break: break-all;
    white-space: normal;
  }
}

/* UI sweep: keep the main tools usable in the first phone viewport. */
.hero__body h1,
.hero__body h2,
.hero__body h3,
.hero__body p,
.hero__panel p,
.section-lead,
.tool-card p,
.guide-card p,
.guide-shortcut strong,
.guide-shortcut small,
.result-list li,
.notice {
  overflow-wrap: anywhere;
  line-break: loose;
}

@media (max-width: 560px) {
  .mobile-break {
    display: initial;
  }

  .mobile-break::before {
    content: "\A";
    white-space: pre;
  }

  .hero--photo .hero__body {
    min-height: 0;
    padding: 18px;
  }

  .hero--photo .hero__body h1 {
    width: min(100%, 9em);
    max-width: 100%;
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.22;
    word-break: break-all;
  }

  .hero--photo.hero--tool .hero__body h1 {
    width: min(100%, 9em);
  }

  .hero--photo .hero__body .lead,
  .hero--photo .hero__body p,
  .hero--photo .hero__panel p {
    width: min(100%, 21em);
    max-width: 100%;
    word-break: break-all;
  }

  .hero--photo:not(.hero--tool) .hero__panel {
    display: none;
  }

  .hero--tool:not(.hero--single) .hero__panel {
    padding: 14px 16px;
  }

  .hero--tool:not(.hero--single) .hero__panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
  }

  .guide-shortcuts {
    margin-top: 12px;
  }
}

/* Event checklist: a returnable tool for live/event days. */
.event-check {
  display: grid;
  gap: 18px;
}

.event-check__hero {
  margin-bottom: 0;
}

.event-check__hero .lead {
  max-width: min(100%, 42em);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.event-check__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 14px;
  align-items: center;
}

.event-check__summary h2 {
  margin-bottom: 4px;
}

.event-check__summary p {
  margin-bottom: 0;
}

.event-check__meter {
  display: grid;
  gap: 8px;
}

.event-check__meter strong {
  color: var(--heading);
  font-size: 28px;
  line-height: 1;
}

.event-check__meter span {
  display: block;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(24, 184, 173, 0.24);
  border-radius: 999px;
  background: #e8f1eb;
}

.event-check__meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
  transition: width 0.18s ease;
}

.event-check__summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.event-check__summary-actions .button {
  box-shadow: none;
}

.event-check__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.event-check__group {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #f9fbf5;
  box-shadow: 0 8px 18px rgba(29, 45, 38, 0.06);
}

.event-check__group:nth-child(2n) {
  border-top-color: var(--coral);
}

.event-check__group:nth-child(3n) {
  border-top-color: var(--blue);
}

.event-check__group h3 {
  margin: 0;
}

.event-check__group label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid rgba(143, 166, 150, 0.34);
  border-radius: var(--radius);
  background: #eef5ef;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.event-check__group input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.event-check__group a {
  width: fit-content;
  color: #087d76;
  font-size: 13px;
  font-weight: 900;
}

.event-check__routes {
  border-top-color: rgba(242, 201, 76, 0.72);
}

@media (max-width: 900px) {
  .event-check__summary,
  .event-check__grid {
    grid-template-columns: 1fr;
  }

  .event-check__summary-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .event-check__hero .lead {
    max-width: 18em;
    font-size: 14px;
    line-height: 1.7;
  }

  .event-check__summary-actions,
  .event-check__summary-actions button {
    width: 100%;
  }

  .event-check__group {
    padding: 13px;
  }

  .event-check__group label {
    min-height: 0;
  }
}

/* After-event recovery: a small return path for tired users. */
.recovery {
  display: grid;
  gap: 18px;
}

.recovery__hero {
  margin-bottom: 0;
}

.recovery__hero .lead {
  max-width: min(100%, 40em);
}

.recovery__builder {
  border-top-color: rgba(243, 111, 93, 0.68);
}

.recovery-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.recovery-choice,
.recovery-time button {
  min-height: 46px;
  border: 1px solid rgba(143, 166, 150, 0.48);
  border-radius: var(--radius);
  color: var(--heading);
  background: #eef6ef;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
}

.recovery-choice[aria-pressed="true"],
.recovery-time button[aria-pressed="true"] {
  border-color: rgba(24, 184, 173, 0.22);
  color: #061014;
  background: linear-gradient(135deg, var(--teal), #9de8ca);
  box-shadow: 0 12px 26px rgba(24, 184, 173, 0.16);
}

.recovery-time {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 8px;
  width: min(100%, 280px);
  margin-top: 14px;
}

.recovery-time button {
  min-height: 40px;
  padding: 8px 10px;
}

.recovery__plan {
  border-top-color: rgba(242, 201, 76, 0.78);
}

.recovery__plan-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.recovery__plan-head h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.recovery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.recovery-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #f9fbf5;
  box-shadow: 0 8px 18px rgba(29, 45, 38, 0.06);
}

.recovery-step:nth-child(2) {
  border-left-color: var(--coral);
}

.recovery-step:nth-child(3) {
  border-left-color: var(--blue);
}

.recovery-step input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.recovery-step span {
  display: grid;
  gap: 8px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.recovery-step strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #062825;
  background: #9de8ca;
  font-size: 14px;
}

.recovery-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-radius: var(--radius);
  background: #eef5ef;
}

.recovery-note strong {
  color: var(--heading);
  line-height: 1.3;
}

.recovery-note span {
  color: var(--soft);
}

.recovery__routes {
  border-top-color: rgba(24, 184, 173, 0.7);
}

/* Exchange card: a non-transactional writing helper for public exchange posts. */
.exchange-tool {
  display: grid;
  gap: 18px;
}

.exchange-tool__hero {
  margin-bottom: 0;
}

.exchange-tool__guard,
.exchange-tool__builder {
  border-top-color: rgba(24, 184, 173, 0.66);
}

.exchange-guard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.exchange-guard-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-radius: var(--radius);
  background: #f9fbf5;
}

.exchange-guard-grid strong {
  color: var(--heading);
  font-size: 17px;
}

.exchange-guard-grid p {
  margin: 0;
  color: var(--soft);
  line-height: 1.68;
}

.exchange-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.exchange-form label,
.exchange-copy-box {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.exchange-form label span,
.exchange-copy-box span {
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.exchange-form input,
.exchange-form textarea,
.exchange-form select,
.exchange-copy-box textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(143, 166, 150, 0.58);
  border-radius: var(--radius);
  color: var(--heading);
  background: #fffefa;
  font: inherit;
  line-height: 1.55;
}

.exchange-form input,
.exchange-form select {
  min-height: 46px;
  padding: 10px 12px;
}

.exchange-form textarea,
.exchange-copy-box textarea {
  padding: 11px 12px;
  resize: vertical;
}

.exchange-form textarea,
.exchange-copy-box textarea {
  min-height: 108px;
}

.exchange-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.exchange-presets button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(143, 166, 150, 0.48);
  border-radius: var(--radius);
  color: var(--heading);
  background: #eef6ef;
  font-weight: 900;
  cursor: pointer;
}

.exchange-presets button[aria-pressed="true"] {
  border-color: rgba(24, 184, 173, 0.22);
  background: linear-gradient(135deg, var(--teal), #9de8ca);
}

.exchange-tool__output {
  border-top-color: rgba(242, 201, 76, 0.78);
}

.exchange-output-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.exchange-card-preview {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(24, 184, 173, 0.28);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 184, 173, 0.08), transparent 54%),
    #fbfcf8;
}

.exchange-card-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exchange-card-preview__top span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #063f3a;
  background: #c9f6e9;
  font-size: 12px;
  font-weight: 900;
}

.exchange-card-preview__top strong {
  color: var(--heading);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-align: right;
}

.exchange-card-preview dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.exchange-card-preview dl > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.exchange-card-preview dt {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border-radius: 999px;
  color: #062825;
  background: #9de8ca;
  font-weight: 900;
}

.exchange-card-preview dd {
  margin: 0;
  min-width: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.exchange-copy-box {
  margin-top: 14px;
}

.exchange-copy-box textarea {
  min-height: 190px;
  color: var(--heading);
  background: #f9fbf5;
}

.exchange-warning {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(243, 111, 93, 0.38);
  border-radius: var(--radius);
  color: #6e241c;
  background: #fff1eb;
}

.exchange-warning strong {
  color: #5a1a14;
}

.exchange-copy-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--soft);
  font-weight: 800;
}

.exchange-tool__routes {
  border-top-color: rgba(243, 111, 93, 0.68);
}

/* Exchange packing note: a private, non-transactional checklist after a match is agreed. */
.exchange-pack {
  display: grid;
  gap: 18px;
}

.exchange-pack__hero {
  margin-bottom: 0;
}

.exchange-pack__guard,
.exchange-pack__builder {
  border-top-color: rgba(49, 182, 107, 0.68);
}

.exchange-pack-form__wide {
  grid-column: 1 / -1;
}

.exchange-pack-options,
.exchange-pack-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.exchange-pack-options label,
.exchange-pack-confirm label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(143, 166, 150, 0.48);
  border-radius: var(--radius);
  color: var(--heading);
  background: #f9fbf5;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.exchange-pack-options input,
.exchange-pack-confirm input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.exchange-pack__output {
  border-top-color: rgba(242, 201, 76, 0.78);
}

.exchange-pack-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.exchange-pack-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-radius: var(--radius);
  background: #eef6ef;
}

.exchange-pack-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.exchange-pack-summary strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.exchange-pack-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pack-step;
}

.exchange-pack-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  color: var(--heading);
  background: #fbfcf8;
  font-weight: 850;
  line-height: 1.58;
}

.exchange-pack-steps li:nth-child(2n) {
  border-left-color: var(--teal);
}

.exchange-pack-steps li:nth-child(3n) {
  border-left-color: var(--coral);
}

.exchange-pack-steps li::before {
  counter-increment: pack-step;
  content: counter(pack-step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #062825;
  background: #bdf0d0;
  font-size: 13px;
  font-weight: 900;
}

.exchange-pack__routes {
  border-top-color: rgba(59, 130, 246, 0.66);
}

/* Bonus card note: a quick paper-goods holding plan for event days. */
.bonus-note {
  display: grid;
  gap: 18px;
}

.bonus-note__hero {
  margin-bottom: 0;
}

.bonus-note__guard,
.bonus-note__builder {
  border-top-color: rgba(59, 130, 246, 0.66);
}

.bonus-note-guard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.bonus-note-guard > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-radius: var(--radius);
  background: #f9fbf5;
}

.bonus-note-guard strong {
  color: var(--heading);
  font-size: 17px;
}

.bonus-note-guard p {
  margin: 0;
  color: var(--soft);
}

.bonus-note-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.bonus-note-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.bonus-note-form__wide {
  grid-column: 1 / -1;
}

.bonus-note-form span {
  color: var(--heading);
  font-size: 13px;
  font-weight: 900;
}

.bonus-note-form input,
.bonus-note-form textarea,
.bonus-note-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(143, 166, 150, 0.58);
  border-radius: var(--radius);
  color: var(--heading);
  background: #fffefa;
  font: inherit;
  line-height: 1.55;
}

.bonus-note-form input,
.bonus-note-form select {
  min-height: 46px;
  padding: 10px 12px;
}

.bonus-note-form textarea {
  min-height: 108px;
  padding: 11px 12px;
  resize: vertical;
}

.bonus-note-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bonus-note-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(143, 166, 150, 0.48);
  border-radius: var(--radius);
  color: var(--heading);
  background: #eef6ef;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.bonus-note-options input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.bonus-note__output {
  border-top-color: rgba(242, 201, 76, 0.78);
}

.bonus-note-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.bonus-note-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.bonus-note-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-radius: var(--radius);
  background: #eef4fb;
}

.bonus-note-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bonus-note-summary strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bonus-note-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: bonus-step;
}

.bonus-note-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(143, 166, 150, 0.42);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  color: var(--heading);
  background: #fbfcf8;
  font-weight: 850;
  line-height: 1.58;
}

.bonus-note-steps li:nth-child(2n) {
  border-left-color: var(--teal);
}

.bonus-note-steps li:nth-child(3n) {
  border-left-color: var(--yellow);
}

.bonus-note-steps li::before {
  counter-increment: bonus-step;
  content: counter(bonus-step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #062825;
  background: #bed7ff;
  font-size: 13px;
  font-weight: 900;
}

.bonus-note__routes {
  border-top-color: rgba(49, 182, 107, 0.66);
}

@media (max-width: 900px) {
  .recovery-choice-grid,
  .recovery-steps,
  .exchange-guard-grid,
  .exchange-form,
  .exchange-pack-summary,
  .bonus-note-guard,
  .bonus-note-form,
  .bonus-note-summary {
    grid-template-columns: 1fr;
  }

  .recovery__plan-head,
  .exchange-output-head,
  .bonus-note-head {
    display: grid;
  }

  .recovery__plan-head .button,
  .exchange-output-head .button,
  .bonus-note-head .button {
    width: fit-content;
  }

  .recovery-step {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .recovery__hero .lead {
    max-width: 19em;
    font-size: 14px;
    line-height: 1.7;
  }

  .recovery-choice {
    min-height: 44px;
    padding: 8px;
  }

  .recovery__plan-head .button,
  .recovery-time,
  .exchange-output-head .button,
  .bonus-note-head .button {
    width: 100%;
  }

  .recovery-step,
  .exchange-card-preview,
  .exchange-guard-grid > div,
  .exchange-pack-steps li,
  .bonus-note-guard > div,
  .bonus-note-steps li {
    padding: 13px;
  }

  .recovery-step span {
    font-size: 16px;
  }

  .exchange-card-preview__top {
    display: grid;
  }

  .exchange-card-preview__top strong {
    text-align: left;
  }

  .exchange-card-preview dd {
    font-size: 16px;
  }
}

/* Mobile compact pass: show the useful entrances first, then let deeper pages carry detail. */
@media (max-width: 560px) {
  .tools-header__inner {
    min-height: 48px;
    gap: 6px;
    padding: 8px 0;
  }

  .brand__tagline,
  .tools-subnav__label {
    display: none;
  }

  .tools-nav,
  .tools-subnav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: min(calc(100vw - 24px), 366px);
    margin-left: 12px;
    margin-right: 0;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tools-nav {
    width: 100%;
    margin-left: 0;
  }

  .tools-nav::-webkit-scrollbar,
  .tools-subnav::-webkit-scrollbar {
    display: none;
  }

  .tools-nav a,
  .tools-subnav a {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 31px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .tools-subnav-shell {
    min-height: 0;
  }

  .tools-subnav {
    padding: 6px 0;
  }

  .tools-main {
    padding-top: 10px;
    padding-bottom: 36px;
  }

  .hero--photo .hero__body {
    padding: 15px;
  }

  .hero--photo .hero__body h1 {
    width: min(100%, 10em);
    font-size: clamp(23px, 6.7vw, 28px);
    line-height: 1.18;
  }

  .hero--photo .hero__body .lead,
  .hero--photo .hero__body p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 7px;
  }

  .hero-actions .button:nth-child(n+4) {
    display: none;
  }

  .section {
    margin-top: 10px;
    padding: 13px;
  }

  .section h2 {
    margin-bottom: 7px;
    font-size: clamp(20px, 6vw, 24px);
  }

  .section-lead {
    font-size: 13px;
    line-height: 1.55;
  }

  .tool-grid,
  .feature-pick-grid,
  .rain-check-grid,
  .rain-buy-grid,
  .guide-shortcut-grid {
    gap: 8px;
    margin-top: 10px;
  }

  .tool-card,
  .guide-card,
  .feature-pick,
  .rain-check-grid a,
  .rain-buy-card,
  .guide-shortcut {
    gap: 5px;
    min-height: 0;
    padding: 11px 12px;
  }

  .tool-card h3,
  .guide-card h3,
  .feature-pick strong,
  .rain-check-grid strong,
  .rain-buy-card strong,
  .guide-shortcut strong {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .tool-card p,
  .guide-card p,
  .feature-pick small,
  .rain-check-grid small,
  .rain-buy-card small,
  .guide-shortcut small {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .tools-main > .section .tool-grid .tool-card:nth-of-type(n+9),
  .tools-main > .section .tool-grid .guide-card:nth-of-type(n+9) {
    display: none;
  }

  body[data-page="home"] .tools-main > .section:nth-of-type(4) .tool-grid .tool-card:nth-of-type(n+7) {
    display: none;
  }
}

/* Readability pass: give guide pages more air and friendlier pacing. */
body[data-page="guide"] .tools-main {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

body[data-page="guide"] .hero--tool {
  gap: clamp(14px, 2.4vw, 22px);
}

body[data-page="guide"] .hero--tool .hero__body,
body[data-page="guide"] .hero--tool .hero__panel,
body[data-page="guide"] .section,
body[data-page="guide"] .guide-body section {
  padding: clamp(18px, 2.6vw, 28px);
}

body[data-page="guide"] .hero--tool h1 {
  max-width: 13em;
  margin-bottom: 12px;
  line-height: 1.18;
}

body[data-page="guide"] .lead,
body[data-page="guide"] .hero__body p,
body[data-page="guide"] .hero__panel p,
body[data-page="guide"] .guide-body p,
body[data-page="guide"] .section p,
body[data-page="guide"] .result-list li,
body[data-page="guide"] td {
  line-height: 1.85;
}

body[data-page="guide"] .guide-body {
  gap: clamp(16px, 2.6vw, 24px);
}

body[data-page="guide"] .guide-body section {
  display: grid;
  gap: 12px;
  border-left-width: 6px;
}

body[data-page="guide"] .guide-body section h2,
body[data-page="guide"] .section h2 {
  margin-bottom: 4px;
}

body[data-page="guide"] .result-list {
  gap: 10px;
}

body[data-page="guide"] .result-list li {
  padding-block: 6px;
}

.guide-answer-strip {
  border-left: 6px solid var(--teal);
}

.guide-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.guide-answer-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(143, 166, 150, 0.46);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.95);
}

.guide-answer-grid span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #0b6f69;
  background: #dff8ee;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.guide-answer-grid strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.35;
}

.guide-answer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.affiliate-pick-shelf {
  border-left: 6px solid var(--coral);
}

.affiliate-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.affiliate-pick-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(143, 166, 150, 0.48);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.96);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(29, 45, 38, 0.055);
}

.affiliate-pick-card:hover {
  border-color: rgba(24, 184, 173, 0.5);
  background: #fffffb;
  transform: translateY(-1px);
}

.affiliate-pick-card img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  background: #eef3f7;
}

.affiliate-pick-card__body {
  display: grid;
  gap: 8px;
}

.affiliate-pick-card span,
.affiliate-pick-card b {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.affiliate-pick-card span {
  color: #073533;
  background: #dff8ee;
}

.affiliate-pick-card b {
  color: #5b3a0a;
  background: #fff0c9;
}

.affiliate-pick-card strong {
  color: var(--heading);
  font-size: 16px;
  line-height: 1.35;
}

.affiliate-pick-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.affiliate-pick-card em {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  align-items: center;
  border-radius: calc(var(--radius) - 2px);
  color: #06201f;
  background: var(--mint);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.affiliate-pick-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .guide-answer-grid,
  .affiliate-pick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body[data-page="guide"] .tools-main {
    gap: 14px;
  }

  body[data-page="guide"] .hero--tool .hero__body,
  body[data-page="guide"] .hero--tool .hero__panel,
  body[data-page="guide"] .section,
  body[data-page="guide"] .guide-body section {
    padding: 16px;
  }

  body[data-page="guide"] .hero--tool h1 {
    max-width: none;
    font-size: clamp(24px, 6.6vw, 29px);
  }

  body[data-page="guide"] .lead,
  body[data-page="guide"] .hero__body p,
  body[data-page="guide"] .hero__panel p,
  body[data-page="guide"] .guide-body p,
  body[data-page="guide"] .section p,
  body[data-page="guide"] .result-list li {
    line-height: 1.78;
  }

  .guide-answer-grid article {
    padding: 13px;
  }

  .affiliate-pick-card {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 10px;
  }

  .affiliate-pick-card img {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 116px;
    aspect-ratio: auto;
  }

  .affiliate-pick-card span {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
  }

  .affiliate-pick-card__body {
    grid-column: 2;
    grid-row: 2;
  }

  .affiliate-pick-card strong {
    font-size: 14px;
  }

  .affiliate-pick-card small {
    font-size: 11px;
    line-height: 1.52;
  }

  body[data-page="guide"] .guide-visual img {
    max-height: 220px;
    object-fit: cover;
  }
}

/* ジャンル別アコーディオン（ガイド一覧ツリー） 20260616-tree */
.genre-tree-section .guide-tools {
  grid-template-columns: auto minmax(200px, 360px);
  align-items: center;
  margin-top: 14px;
}

.genre-tree-section .guide-tools label {
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.genre-tree {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.genre-tree__group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 6px 16px rgba(29, 45, 38, 0.06);
}

.genre-tree__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--teal);
  font-weight: 850;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.genre-tree__group:nth-child(3n) .genre-tree__summary {
  border-left-color: var(--coral);
}

.genre-tree__group:nth-child(3n+1) .genre-tree__summary {
  border-left-color: var(--blue);
}

.genre-tree__summary::-webkit-details-marker {
  display: none;
}

.genre-tree__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.genre-tree__group[open] .genre-tree__summary::after {
  transform: rotate(-135deg);
}

.genre-tree__summary:hover {
  background: var(--panel-2);
}

.genre-tree__name {
  font-size: 17px;
}

.genre-tree__count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.genre-tree__body {
  display: grid;
  gap: 8px;
  padding: 6px 16px 15px;
  border-top: 1px solid var(--line);
}

.genre-tree__cluster-label {
  margin: 8px 0 6px;
  color: var(--ink-panel-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.genre-tree__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.genre-tree__links a {
  display: block;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.genre-tree__links a small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.genre-tree__links a:hover {
  border-color: var(--teal);
  background: #fff;
}

.genre-tree__cluster[hidden],
.genre-tree__group[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .genre-tree-section .guide-tools {
    grid-template-columns: 1fr;
  }

  .genre-tree__links {
    grid-template-columns: 1fr;
  }

  .genre-tree__name {
    font-size: 16px;
  }
}
