/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps.
 */

:root {
  color-scheme: light;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.03), transparent 40%),
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.03), transparent 42%),
    var(--fallback-b1, oklch(var(--b1)));
}

.chat-immersive-layout {
  display: block;
}

.chat-immersive-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: calc(100dvh - 4.4rem);
  border: none;
  border-radius: 0;
  background: color-mix(in srgb, white 96%, transparent);
  box-shadow: none;
  overflow: hidden;
}

.chat-immersive-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.chat-immersive-header-meta {
  min-width: 0;
}

.chat-immersive-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.7vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.chat-immersive-subtle {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.chat-immersive-date {
  margin: 0.16rem 0 0;
  font-size: 0.68rem;
  color: color-mix(in srgb, currentColor 35%, transparent);
}

.chat-immersive-header-actions {
  display: flex;
  margin-left: auto;
  align-self: flex-start;
  gap: 0.3rem;
}

.chat-immersive-empty-hint {
  margin: 0.6rem 0.75rem 0;
}

.chat-immersive-messages {
  overflow-y: auto;
  padding: 0.4rem 0.62rem 9.5rem;
  scroll-behavior: smooth;
}

.chat-message {
  margin: 0.3rem 0;
}

.chat-message .chat {
  gap: 0.4rem;
}

.chat-message .chat-bubble {
  max-width: min(85%, 680px);
  border-radius: 1rem;
  padding: 0.58rem 0.72rem;
  font-size: 0.92rem;
  line-height: 1.65;
  box-shadow: none;
}

.chat-message .chat-bubble::before,
.chat-message .chat-bubble::after {
  display: none;
}

.chat-message .chat-end {
  justify-content: flex-end;
}

.chat-message .chat-end .chat-bubble {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  border: 1px solid #1e40af;
  color: #ffffff;
}

.chat-message-user-bubble {
  color: #ffffff;
}

.chat-message .chat-start .chat-bubble {
  background: color-mix(in srgb, currentColor 4%, white 96%);
  border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
}

.chat-message .prose {
  --tw-prose-body: inherit;
  line-height: 1.65;
}

.markdown-content p {
  margin-top: 0.72rem;
  margin-bottom: 0.72rem;
}

.markdown-content p:first-child {
  margin-top: 0;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

.chat-immersive-composer-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0.55rem 0.75rem 0.8rem;
  background: linear-gradient(to top, color-mix(in srgb, white 97%, transparent), rgba(255, 255, 255, 0.4));
}

.chat-immersive-composer-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.chat-immersive-composer {
  display: grid;
  gap: 0.4rem;
  width: min(100%, 64rem);
  margin: 0 auto;
  padding: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  background: color-mix(in srgb, white 97%, transparent);
}

.chat-immersive-composer-field {
  width: 100%;
  min-width: 0;
}

.chat-immersive-composer .textarea {
  min-height: 48px;
  border: none;
  background: transparent;
  box-shadow: none;
  resize: none;
  padding: 0.5rem 0.62rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-immersive-composer .textarea:focus {
  outline: none;
}

.chat-immersive-composer .textarea.chat-immersive-composer-over-limit {
  border: 1px solid #dc2626;
  background: color-mix(in srgb, #fef2f2 92%, white);
}

.chat-immersive-composer-validation {
  margin: 0.35rem 0 0;
  padding-inline: 0.62rem;
  font-size: 0.75rem;
  color: #dc2626;
}

.chat-immersive-composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.2rem;
}

.chat-immersive-composer-hint {
  margin: 0;
  font-size: 0.66rem;
  color: color-mix(in srgb, currentColor 48%, transparent);
}

.chat-immersive-composer-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
}

.chat-immersive-scroll-top {
  min-height: 36px;
  border-radius: 0.68rem;
  padding-inline: 0.68rem;
}

.chat-immersive-summary-trigger {
  min-height: 36px;
  border-radius: 0.68rem;
  padding-inline: 0.68rem;
}

.chat-immersive-submit {
  min-height: 32px;
  min-width: 32px;
  padding-inline: 0.85rem;
  border-radius: 0.7rem;
}

.chat-immersive-submit {
  position: relative;
}

.chat-immersive-submit.loading {
  pointer-events: none;
}

.chat-immersive-loading-dots {
  display: none;
  align-items: center;
  gap: 0.22rem;
}

.chat-immersive-loading-dots span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.4;
  animation: chat-loading-dot-bounce 900ms ease-in-out infinite;
}

.chat-immersive-loading-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-immersive-loading-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.chat-immersive-submit.loading .chat-immersive-submit-label {
  display: none;
}

.chat-immersive-submit.loading .chat-immersive-loading-dots {
  display: inline-flex;
}

.chat-message-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 1rem;
}

.chat-message-loading-dots span {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.4;
  animation: chat-loading-dot-bounce 900ms ease-in-out infinite;
}

.chat-message-loading-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-message-loading-dots span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes chat-loading-dot-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-0.22rem);
    opacity: 1;
  }
}


#summary-status {
  font-size: 0.72rem;
  color: color-mix(in srgb, currentColor 50%, transparent);
}

.summary-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-message-enter {
  animation: message-enter 280ms ease-out;
}

@keyframes message-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.chat-error-alert {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.4rem;
}

.chat-error-alert > span {
  min-width: 0;
}

.chat-error-alert-close {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .chat-immersive-main {
    min-height: calc(100dvh - 6.8rem);
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  }

  .chat-immersive-header {
    padding-inline: 1.2rem;
  }

  .chat-immersive-messages {
    padding-inline: 0.9rem;
  }

  .chat-immersive-composer-wrap {
    padding-inline: 1rem;
  }

  .chat-immersive-header-actions {
    gap: 0.4rem;
  }
}

@media (min-width: 1024px) {
  .chat-immersive-main {
    min-height: calc(100dvh - 7.2rem);
  }
}

.reflections-search-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
}

.reflections-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, white 94%, transparent);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.reflections-search-toggle::-webkit-details-marker {
  display: none;
}

.reflections-search-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(92vw, 34rem);
}

@media (max-width: 640px) {
  .reflections-search-content {
    right: -0.5rem;
  }
}

.supporter-lp {
  background:
    radial-gradient(circle at 88% 12%, rgba(147, 197, 253, 0.18), transparent 36%),
    radial-gradient(circle at 10% 92%, rgba(134, 239, 172, 0.16), transparent 38%),
    var(--fallback-b1, oklch(var(--b1)));
}

.supporter-lp-plan {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.introspection-guide {
  max-width: 980px;
  margin: 0 auto;
  color: #1f2937;
}

.introspection-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #f8fbff 0%, #f5f8f7 65%, #eff5ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.introspection-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #475569;
}

.introspection-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.015em;
}

.introspection-lead {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.8;
}

.introspection-intro {
  margin-top: 0.85rem;
  line-height: 1.9;
  color: #334155;
}

.introspection-hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.introspection-hero-visual {
  min-height: 240px;
}

.introspection-visual-fallback {
  height: 100%;
  min-height: 240px;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.2), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(16, 185, 129, 0.18), transparent 40%),
    linear-gradient(160deg, #dbeafe, #e2f0ec 55%, #eef2ff);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #1e3a8a;
  font-size: 0.92rem;
}

.introspection-anchor-nav {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(30, 41, 59, 0.08);
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

.introspection-anchor-nav a {
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
}

.introspection-anchor-nav a:hover {
  color: #1d4ed8;
}

.introspection-section {
  margin-top: clamp(2.8rem, 7vw, 4.2rem);
}

.introspection-section h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.9vw, 1.9rem);
  letter-spacing: -0.01em;
}

.introspection-section p,
.introspection-section li {
  line-height: 1.9;
}

.introspection-highlight {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid #94a3b8;
  color: #0f172a;
  font-weight: 600;
}

.introspection-stage-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.introspection-card {
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(30, 41, 59, 0.09);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
}

.introspection-card h3 {
  margin-top: 0;
}

.introspection-steps {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.introspection-steps li {
  padding: 1rem 1rem 1rem 1.25rem;
  border-left: 3px solid #cbd5e1;
  background: #ffffff;
  border-radius: 0.75rem;
}

.introspection-steps h3 {
  margin: 0;
  font-size: 1.06rem;
}

.introspection-steps p {
  margin-bottom: 0;
}

.introspection-question-list,
.introspection-tips {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(30, 41, 59, 0.12);
}

.introspection-question-list li,
.introspection-tips li {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.introspection-question-list li {
  font-weight: 500;
}

.introspection-final-cta {
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border-radius: 1.15rem;
  border: 1px solid rgba(30, 41, 59, 0.08);
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}

@media (max-width: 860px) {
  .introspection-hero {
    grid-template-columns: 1fr;
  }

  .introspection-hero-visual {
    min-height: 170px;
  }

  .introspection-visual-fallback {
    min-height: 170px;
  }

  .introspection-stage-grid {
    grid-template-columns: 1fr;
  }
}

.reflection-summary-checkbox {
  display: none;
}

.reflection-summary-content {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reflection-summary-more,
.reflection-summary-close {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, currentColor 68%, transparent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.reflection-summary-close {
  display: none;
}

.reflection-summary-checkbox:checked + .reflection-summary-flow .reflection-summary-content {
  display: block;
  overflow: visible;
}

.reflection-summary-checkbox:checked + .reflection-summary-flow .reflection-summary-more {
  display: none;
}

.reflection-summary-checkbox:checked + .reflection-summary-flow .reflection-summary-close {
  display: inline-flex;
  margin-top: 0.7rem;
}

.hero-text-panel {
  width: fit-content;
  max-width: min(100%, 42rem);
  padding: clamp(0.65rem, 1.2vw, 1rem) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.hero-description,
.hero-caption {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero-caption {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero-actions {
  row-gap: 0.6rem;
}

.hero-btn {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.78rem;
  padding: 0.8rem 1.35rem;
  font-size: 0.94rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

.hero-btn-primary {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.hero-btn-primary:hover {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.hero-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.hero-btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.98);
  color: #111827;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
  .hero-text-panel {
    width: 100%;
    padding: 0.55rem 0;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .hero-btn {
    padding: 0.8rem 1.2rem;
  }
}
