/* タスケタグ LP — ocean teal, not purple / cream-terracotta / broadsheet */

:root {
  --ink: #0b1c22;
  --foam: #f4fffc;
  --sea: #0f6e7a;
  --sea-deep: #053640;
  --sea-mid: #0a4a54;
  --mint: #2a9d8f;
  --mint-bright: #7fd4c8;
  --coral: #e4572e;
  --coral-deep: #c2411a;
  --muted: rgba(244, 255, 252, 0.68);
  --line: rgba(127, 212, 200, 0.22);
  --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;
  font-family: var(--font);
  color: var(--ink);
  background: #e7f3f1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.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;
}

/* Header/footer chrome: ./site-chrome.css (SPA-parity shared styles) */

/* ——— hero (one composition) ——— */
.hero {
  position: relative;
  /* Sticky SPA-style header sits above; keep one composition below it */
  min-height: calc(100svh - 4.75rem);
  min-height: calc(100dvh - 4.75rem);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: var(--foam);
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(42, 157, 143, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(228, 87, 46, 0.18), transparent 50%),
    linear-gradient(165deg, #032830 0%, var(--sea-deep) 38%, #0a5560 72%, #0f6e7a 100%);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(circle at 50% 40%, rgba(127, 212, 200, 0.2), transparent 62%);
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(244, 255, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 255, 252, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding:
    calc(40px + var(--safe-t))
    max(20px, var(--safe-r))
    calc(40px + var(--safe-b))
    max(20px, var(--safe-l));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero__brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand-ja {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--foam);
}

.hero__brand-en {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.78rem, 2.4vw, 1.05rem);
  letter-spacing: 0.18em;
  color: var(--mint-bright);
  text-indent: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero__headline {
  margin: 0.35rem 0 0;
  max-width: 28em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__lead {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  line-height: 1.65;
  color: var(--muted);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hero__visual {
  margin-top: clamp(1.5rem, 5vh, 3rem);
  width: min(640px, 100%);
  animation: riseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.hero__svg {
  width: 100%;
  height: auto;
}

.hero__tag-label {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  fill: var(--sea-deep);
}

.hero__tag-label--soft {
  fill: var(--mint-bright);
}

.hero__tag-label--on {
  fill: #fff;
}

.hero__path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawPath 1.6s ease-out 0.7s forwards;
}

.hero__node--a {
  animation: floatY 5.5s ease-in-out 0.8s infinite;
}

.hero__node--b {
  animation: floatY 6.2s ease-in-out 1.1s infinite;
}

.hero__node--c {
  animation: floatY 5.8s ease-in-out 1.4s infinite;
}

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 28px rgba(228, 87, 46, 0.28);
}

.btn--primary:hover {
  background: var(--coral-deep);
}

.btn--ghost {
  background: rgba(244, 255, 252, 0.06);
  border-color: rgba(127, 212, 200, 0.45);
  color: var(--foam);
}

.btn--ghost:hover {
  background: rgba(127, 212, 200, 0.14);
}

/* Ghost on light sections (CTA): foam text is nearly invisible — solid secondary */
.section--cta .btn--ghost {
  background: #fff;
  color: var(--sea-deep, #0a4f57);
  border: 2px solid var(--sea, #0f6e7a);
}

.section--cta .btn--ghost:hover {
  background: rgba(15, 110, 122, 0.1);
  border-color: var(--sea-deep, #0a4f57);
  color: var(--sea-deep, #0a4f57);
}

.btn--lg {
  min-height: 54px;
  padding-inline: 1.75rem;
  font-size: 1.05rem;
}

/* Tool CTA on light sections — solid primary, never foam-on-light ghost */
.btn--tool {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 22rem;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
  box-shadow: 0 10px 28px rgba(228, 87, 46, 0.28);
  color: #fff;
}

.tools-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
  position: relative;
  z-index: 2;
}

.section--tools {
  /* Separate from #safety (same mint family) — hairline + slightly cooler band */
  border-top: 1px solid rgba(5, 54, 64, 0.12);
  padding-top: clamp(4.5rem, 11vw, 7.25rem);
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(42, 157, 143, 0.12), transparent 60%),
    #f2faf8;
}

.section--tools .section__sub {
  margin-bottom: 0;
}

/* ——— sections ——— */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-inline: max(20px, var(--safe-l)) max(20px, var(--safe-r));
}

.section__inner--narrow {
  width: min(680px, 100%);
  text-align: center;
}

.section__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--sea-deep);
}

.section__sub {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(11, 28, 34, 0.68);
}

.section--how {
  background:
    linear-gradient(180deg, #dff0ed 0%, #e7f3f1 40%, #e7f3f1 100%);
}

.flow {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.flow__step {
  position: relative;
  padding: 0.25rem 0.15rem 0.5rem;
}

.flow__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sea-deep);
  background: rgba(15, 110, 122, 0.12);
}

.flow__step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sea-deep);
}

.flow__step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(11, 28, 34, 0.68);
}

.section--roles {
  background: var(--sea-deep);
  color: var(--foam);
}

.section--roles .section__title {
  color: var(--foam);
}

.section--roles .section__sub {
  color: var(--muted);
}

.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

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

.roles__pane {
  padding: 1.75rem 0 0.5rem;
}

@media (min-width: 768px) {
  .roles__pane--seeker {
    padding-right: 2rem;
    border-right: 1px solid var(--line);
  }

  .roles__pane--solver {
    padding-left: 2rem;
  }
}

.roles__pane h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mint-bright);
}

.roles__pane p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.section--safety {
  background: #edf7f5;
  padding-bottom: clamp(4.25rem, 10vw, 6.75rem);
}

.section--categories {
  background: #f2faf8;
}

.cat-table-wrap {
  margin-top: 2.25rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(11, 28, 34, 0.78);
}

.cat-table th,
.cat-table td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid rgba(15, 110, 122, 0.14);
}

.cat-table thead th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--sea);
  border-bottom-color: rgba(15, 110, 122, 0.28);
  white-space: nowrap;
}

.cat-table tbody th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--sea-deep);
  min-width: 8.5rem;
  padding-right: 1.25rem;
}

.cat-table tbody td {
  color: rgba(11, 28, 34, 0.68);
}

@media (max-width: 767px) {
  .cat-table-wrap {
    overflow: visible;
  }

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

  .cat-table thead {
    display: none;
  }

  .cat-table tbody tr {
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(15, 110, 122, 0.16);
  }

  .cat-table tbody tr:last-child {
    border-bottom: 0;
  }

  .cat-table tbody th,
  .cat-table tbody td {
    border: 0;
    padding: 0.2rem 0;
    min-width: 0;
  }

  .cat-table tbody th {
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
  }

  .cat-table tbody td {
    padding-left: 0;
  }

  .cat-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--sea);
  }

  .cat-table tbody td + td {
    margin-top: 0.55rem;
  }
}

.section--cta {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(42, 157, 143, 0.18), transparent 60%),
    #e7f3f1;
  padding-bottom: clamp(4.5rem, 12vw, 7rem);
}

.section--cta .section__sub {
  margin-bottom: 1.5rem;
}

/* Footer chrome: ./site-chrome.css */

/* ——— motion ——— */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__brand,
  .hero__headline,
  .hero__lead,
  .hero__cta,
  .hero__visual,
  .hero__path,
  .hero__node--a,
  .hero__node--b,
  .hero__node--c,
  .hero__glow {
    animation: none !important;
  }

  .hero__path {
    stroke-dashoffset: 0;
  }
}

/* ——— Responsive: phone (≤389) / mid (390–767) / desktop (≥768) ——— */
@media (max-width: 767px) {
  .hero__stage {
    padding:
      calc(28px + var(--safe-t))
      max(16px, var(--safe-r))
      calc(28px + var(--safe-b))
      max(16px, var(--safe-l));
    gap: 0.85rem;
  }

  .tools-cta {
    margin-top: 2rem;
  }

  .btn--tool {
    max-width: none;
    width: 100%;
  }

  .hero__brand-ja {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .hero__headline {
    max-width: 100%;
  }

  .hero__lead {
    max-width: 100%;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__visual {
    margin-top: 1.25rem;
    margin-inline: -4px;
    width: calc(100% + 8px);
    max-width: none;
  }

  .hero__tag-label {
    font-size: 14px;
  }

  .section {
    padding: clamp(3rem, 9vw, 4.5rem) 0;
  }

  /* Keep safety → tools break readable when .section padding resets on phone */
  .section--safety {
    padding-bottom: clamp(3.5rem, 10vw, 5rem);
  }

  .section--tools {
    padding-top: clamp(3.75rem, 11vw, 5.25rem);
  }

  .section__inner,
  .section__inner--narrow {
    padding-inline: max(16px, var(--safe-l)) max(16px, var(--safe-r));
  }

  .section__sub {
    font-size: 0.98rem;
  }

  .flow {
    margin-top: 1.75rem;
    gap: 1.1rem;
  }

  .roles__pane {
    padding: 1.35rem 0 0.35rem;
  }

  .roles__pane + .roles__pane {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }

  .section--cta .btn--lg {
    width: 100%;
    max-width: 22rem;
  }

  /* Re-assert: do not let phone rules wash CTA ログイン to foam-on-light */
  .section--cta .btn--ghost {
    background: #fff;
    color: var(--sea-deep, #0a4f57);
    border: 2px solid var(--sea, #0f6e7a);
  }
}

@media (max-width: 389px) {
  .hero__stage {
    padding-inline: max(14px, var(--safe-l)) max(14px, var(--safe-r));
  }

  .hero__brand-ja {
    font-size: clamp(2rem, 12vw, 2.6rem);
  }

  .hero__brand-en {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }

  .hero__headline {
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
  }

  .hero__lead {
    font-size: 0.92rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.7rem 1.15rem;
  }

  .section__title {
    font-size: clamp(1.35rem, 6vw, 1.55rem);
  }

  .flow__step h3 {
    font-size: 1.05rem;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  .hero__brand-en {
    letter-spacing: 0.22em;
  }

  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__cta .btn {
    width: auto;
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }
}

@media (min-width: 768px) {
  .hero__brand-en {
    letter-spacing: 0.28em;
    text-indent: 0.08em;
  }

  /* Longer product tagline may wrap; keep readable on desktop */
  .hero__headline {
    max-width: 22em;
  }

  .hero__stage {
    padding-inline: max(24px, var(--safe-r)) max(24px, var(--safe-l));
  }

  .section__inner {
    padding-inline: max(24px, var(--safe-l)) max(24px, var(--safe-r));
  }
}

/* ——— cookie banner (bottom-right) ——— */
.cookie-banner {
  position: fixed;
  z-index: 60;
  right: max(16px, var(--safe-r));
  bottom: max(16px, var(--safe-b));
  left: auto;
  width: min(22.5rem, calc(100vw - 32px - var(--safe-l) - var(--safe-r)));
  max-height: min(80vh, 32rem);
  overflow: auto;
  pointer-events: auto;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  background: var(--sea-deep);
  color: var(--foam);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(5, 54, 64, 0.35);
}

.cookie-banner__title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.cookie-banner__body {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__btn {
  min-height: 44px;
  flex: 1 1 auto;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
}

.cookie-banner__settings {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.cookie-banner__settings[hidden] {
  display: none !important;
}

.cookie-banner__row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  cursor: pointer;
}

.cookie-banner__row input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.cookie-banner__row strong {
  display: block;
  font-weight: 600;
  color: var(--foam);
}

.cookie-banner__hint {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero__cta--final {
  justify-content: center;
}

@media (max-width: 389px) {
  .cookie-banner {
    right: max(12px, var(--safe-r));
    left: max(12px, var(--safe-l));
    width: auto;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}
