/* Furniture disposal tool — ocean teal tokens aligned with TASUKETAG LP */

:root {
  --ink: #0b1c22;
  --foam: #f4fffc;
  --sea: #0f6e7a;
  --sea-deep: #053640;
  --sea-mid: #0a4a54;
  --mint: #2a9d8f;
  --mint-bright: #7fd4c8;
  --coral: #e4572e;
  --sand: #e7f3f1;
  --muted: rgba(11, 28, 34, 0.62);
  --line: rgba(15, 110, 122, 0.18);
  --card: rgba(255, 255, 255, 0.72);
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(127, 212, 200, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(15, 110, 122, 0.18), transparent 50%),
    linear-gradient(180deg, #d9ece9 0%, var(--sand) 38%, #eef6f4 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--foam);
  color: var(--sea-deep);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

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

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem max(16px, var(--safe-r)) 3rem max(16px, var(--safe-l));
  min-width: 0;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.crumb a {
  color: var(--sea-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  margin-bottom: 1.25rem;
  animation: rise 0.55s ease-out both;
  min-width: 0;
}

.hero__jump {
  margin: 1.15rem 0 0;
}

.hero__jump .btn {
  width: 100%;
  max-width: 20rem;
}

.hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sea);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.2vw, 1.85rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--sea-deep);
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.panel {
  margin-top: 1rem;
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  animation: rise 0.65s ease-out both;
}

.panel__title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--sea-deep);
}

.panel__note,
.hint,
.seo__note,
.foot__muted,
.disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.disclaimer {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--mint);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 12px 12px 0;
}

.reasons {
  margin: 0.35rem 0 0.25rem !important;
  color: var(--ink);
}

.reasons li {
  margin-top: 0.2rem;
}

details.confirm {
  margin-top: 0.85rem;
  cursor: pointer;
}

details.confirm summary {
  font-weight: 600;
  color: var(--sea-mid);
}

.hint {
  margin-top: 0.35rem;
}

.form {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
}

.field-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.92rem;
}

.req {
  margin-left: 0.25rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
}

select,
input[type="file"],
input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select:focus,
input:focus {
  outline: 2px solid rgba(42, 157, 143, 0.45);
  outline-offset: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
}

.btn--touch,
#submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.02rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--foam);
  box-shadow: 0 10px 24px rgba(5, 54, 64, 0.18);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #128292 0%, var(--sea) 100%);
}

.btn--ghost {
  background: transparent;
  color: var(--sea-deep);
  border: 1px solid var(--line);
}

.btn--secondary {
  background: #fff;
  color: var(--sea-deep);
  border: 1px solid rgba(15, 110, 122, 0.35);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-row {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .action-row {
    grid-template-columns: 1fr;
  }
}

.action-panel {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.action-panel h4 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--sea-deep);
}

.template-text {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
  color: var(--ink);
}

.consent-panel h3 {
  margin: 1rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--sea-deep);
}

.consent-share,
.consent-ack {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.consent-share label,
.consent-ack label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent-share input,
.consent-ack input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.consent-ack a {
  color: var(--sea);
}

.result[hidden] {
  display: none !important;
}

.result__banner {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(228, 87, 46, 0.1);
  border: 1px solid rgba(228, 87, 46, 0.28);
  color: #8a2f14;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.routes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.route {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  animation: rise 0.45s ease-out both;
}

.route:nth-child(1) {
  animation-delay: 0.05s;
}
.route:nth-child(2) {
  animation-delay: 0.12s;
}
.route:nth-child(3) {
  animation-delay: 0.18s;
}
.route:nth-child(4) {
  animation-delay: 0.24s;
}

.route__rank {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sea);
}

.route__title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--sea-deep);
}

.route__why {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.route__links {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.route__links li + li {
  margin-top: 0.25rem;
}

.confirm {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.confirm h3,
.cta-block h3,
.sponsor h3,
.waitlist h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--sea-deep);
}

.confirm ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cta-block,
.waitlist,
.sponsor {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(244, 255, 252, 0.75);
}

.cta-block p,
.waitlist p,
.sponsor p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 110, 122, 0.1);
  color: var(--sea-deep);
  font-size: 0.78rem;
  font-weight: 500;
}

.sponsor {
  opacity: 0.92;
  border-style: dashed;
}

.sponsor__badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.waitlist__msg {
  min-height: 1.2em;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--sea);
}

.seo {
  margin-top: 1.35rem;
}

.seo h2,
.seo h3 {
  font-family: var(--display);
  color: var(--sea-deep);
}

.seo h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.seo h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
}

.seo__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.seo__toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 2px;
}

.seo__muni {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.seo__muni:first-of-type {
  margin-top: 0.85rem;
}

.seo__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.seo__list--ul {
  list-style: disc;
}

.seo__list li + li {
  margin-top: 0.55rem;
}

.seo__links {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.7;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.seo__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.panel,
.seo {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 559px) {
  .page {
    padding-top: 1rem;
  }

  .panel {
    padding: 1rem 0.9rem 1.1rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .hero__jump .btn {
    max-width: none;
  }

  select,
  input[type="file"],
  input[type="email"] {
    min-height: 48px;
    font-size: 16px; /* avoid iOS zoom */
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bottom-right scroll-to-top — shown after scrolling past the fold */
.to-top {
  position: fixed;
  right: max(1rem, var(--safe-r));
  bottom: max(1.25rem, calc(1rem + var(--safe-b)));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(15, 110, 122, 0.28);
  border-radius: 999px;
  background: rgba(244, 255, 252, 0.94);
  color: var(--sea-deep);
  box-shadow: 0 4px 14px rgba(5, 54, 64, 0.12);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: #fff;
  border-color: rgba(228, 87, 46, 0.45);
  color: var(--coral);
}

.to-top:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.to-top:active {
  transform: translateY(1px);
}

.to-top__icon {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .to-top,
  .to-top.is-visible,
  .to-top:active {
    transform: none;
  }
}
