/* [Encoding: UTF-8] */

:root {
  --color-bg: #ffffff;
  --color-soft: #f6f7f9;
  --color-text: #111111;
  --color-sub: #667085;
  --color-border: #e5e7eb;
  --color-blue: #2f6fed;

  --font-sans: "IBM Plex Sans", "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  --container: 960px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-blue);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

p {
  margin-bottom: 0;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-sub);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero {
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 720px;
  padding-top: 104px;
  padding-bottom: 96px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--color-sub);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-rendering: geometricPrecision;
}

.hero-lead {
  margin-bottom: 28px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.65;
}

.hero-copy,
.hero-note {
  color: var(--color-sub);
  font-size: 1rem;
  line-height: 1.9;
}

.hero-note {
  margin-top: 24px;
}

.section {
  padding: 76px 0 84px;
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 560px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.section-head p {
  color: var(--color-sub);
  line-height: 1.8;
}

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

.tool-card {
  display: block;
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.tool-card-ready {
  border-color: #d8e2f5;
  background: #fbfdff;
}

.tool-card-soon {
  background: #ffffff;
}

.tool-card-link {
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.tool-card-link:hover {
  border-color: var(--color-blue);
  background: #f8fbff;
  color: var(--color-text);
  transform: translateY(-1px);
}

.tool-card-link:hover h3 {
  color: var(--color-blue);
}

.tool-card-head {
  display: flex;
  margin-bottom: 10px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.tool-kind {
  color: var(--color-sub);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.tool-card h3 {
  margin-bottom: 12px;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
}

.tool-card p {
  color: var(--color-sub);
  font-size: 0.9rem;
  line-height: 1.68;
}

.status {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 9px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-sub);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.status-ready {
  border-color: #cfe0ff;
  color: #2f6fed;
}

.tool-hero {
  border-bottom: 1px solid var(--color-border);
}

.tool-hero-inner {
  max-width: 720px;
  padding-top: 88px;
  padding-bottom: 56px;
}

.tool-workspace-section {
  padding: 36px 0 88px;
  border-bottom: 1px solid var(--color-border);
}

.lookhere-workspace {
  max-width: 960px;
}

.lookhere-command {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
}

.lookhere-controls {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

.button:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.button-quiet {
  border-color: var(--color-border);
}

.button:disabled {
  border-color: var(--color-border);
  color: var(--color-sub);
  cursor: default;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.text-field {
  width: min(100%, 560px);
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
}

.text-field:focus {
  border-color: var(--color-blue);
  outline: 2px solid rgba(47, 111, 237, 0.12);
}

.privacy-note {
  margin-top: 12px;
  color: var(--color-sub);
  font-size: 0.82rem;
  line-height: 1.7;
}

.lookhere-stage {
  margin-top: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-soft);
}

.empty-state {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  color: var(--color-sub);
  font-size: 0.95rem;
}

.canvas-wrap {
  width: 100%;
  padding: 24px;
  overflow: auto;
}

.pdf-preview-area,
.image-preview-area {
  max-height: 70vh;
  overscroll-behavior: contain;
}

.canvas-layer {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

#pdf-canvas,
.lookhere-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

.lookhere-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid #d92d20;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.marker-note {
  position: absolute;
  max-width: min(320px, 46vw);
  padding-left: 14px;
  color: #d92d20;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  pointer-events: none;
  transform: translate(18px, -50%);
}

.marker-note.is-left {
  padding-right: 14px;
  padding-left: 0;
  text-align: right;
  transform: translate(calc(-100% - 18px), -50%);
}

.status-message {
  min-height: 1.7em;
  margin-top: 14px;
  color: var(--color-sub);
  font-size: 0.84rem;
  line-height: 1.7;
}

.status-message.is-error {
  color: #d92d20;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  padding: 64px 0 52px;
  background: var(--color-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-copy {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.footer-small,
.footer-credit {
  color: var(--color-sub);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-credit {
  max-width: 360px;
  text-align: right;
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .logo {
    min-height: auto;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    font-size: 0.7rem;
  }

  .hero-inner {
    padding-top: 76px;
    padding-bottom: 72px;
  }

  .section {
    padding: 58px 0 64px;
  }

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

  .tool-card {
    min-height: auto;
    padding: 20px;
  }

  .tool-hero-inner {
    padding-top: 68px;
    padding-bottom: 48px;
  }

  .tool-workspace-section {
    padding: 28px 0 68px;
  }

  .lookhere-controls {
    align-items: stretch;
  }

  .lookhere-command {
    padding: 14px;
  }

  .button {
    min-height: 44px;
  }

  .canvas-wrap {
    padding: 14px;
  }

  .pdf-preview-area,
  .image-preview-area {
    max-height: 58vh;
  }

  .empty-state {
    min-height: 280px;
  }

  .lookhere-marker {
    width: 30px;
    height: 30px;
  }

  .marker-note {
    max-width: 160px;
    font-size: 0.84rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-credit {
    max-width: none;
    text-align: left;
  }
}
