/* [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: 8px;
}

* {
  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);
}

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

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

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

.hero-inner {
  max-width: 720px;
  padding-top: 132px;
  padding-bottom: 124px;
}

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

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
  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: 84px 0 92px;
  border-bottom: 1px solid var(--color-border);
}

.input-section {
  background: var(--color-soft);
}

.check-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  max-width: 820px;
  padding: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

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

.check-copy p,
.section-head p,
.form-note {
  color: var(--color-sub);
  line-height: 1.8;
}

.mini-form {
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-sub);
  font-size: 0.84rem;
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

textarea,
button {
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

textarea:focus {
  border-color: var(--color-blue);
  outline: 2px solid rgba(47, 111, 237, 0.12);
  outline-offset: 0;
}

button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
}

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

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

.field-row-link {
  align-items: center;
}

.tool-link-copy {
  min-height: 46px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 0;
  font-weight: 600;
  line-height: 1.6;
}

.button-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

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

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
}

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

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

.mini-card {
  display: block;
  min-height: 162px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.mini-card-link:hover {
  border-color: rgba(47, 111, 237, 0.42);
  color: inherit;
}

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

.mini-card h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
}

.mini-card p {
  color: var(--color-sub);
  font-size: 0.95rem;
  line-height: 1.8;
}

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

.status-ready {
  border-color: rgba(47, 111, 237, 0.28);
  color: var(--color-blue);
}

.tool-main {
  min-height: calc(100vh - 72px);
}

.word-check-section {
  padding: 76px 0 84px;
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, var(--color-soft) 58%, var(--color-soft) 100%);
}

.word-check-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.42fr);
  gap: 48px;
  align-items: start;
}

.word-check-intro {
  padding-top: 12px;
}

.word-check-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0;
}

.tool-lead {
  color: var(--color-sub);
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  line-height: 1.9;
}

.tool-subnote {
  margin-top: 18px;
  color: var(--color-sub);
  font-size: 0.82rem;
  line-height: 1.8;
}

.word-check-tool {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.word-check-form textarea {
  min-height: 208px;
}

.example-note {
  margin-top: 10px;
  color: var(--color-sub);
  font-size: 0.78rem;
  line-height: 1.7;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.primary-button {
  flex: 0 0 auto;
}

.privacy-note {
  color: var(--color-sub);
  font-size: 0.78rem;
  line-height: 1.7;
}

.word-check-result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.word-check-result h2 {
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text);
  line-height: 1.8;
}

.result-list li::marker {
  color: var(--color-blue);
}

.result-message {
  color: var(--color-sub);
  line-height: 1.8;
}

.compact-footer {
  padding-top: 44px;
  padding-bottom: 40px;
}

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

.notice-section p {
  max-width: 760px;
  color: var(--color-sub);
  font-size: 0.82rem;
  line-height: 1.9;
}

.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;
    flex-wrap: wrap;
    font-size: 0.7rem;
  }

  .hero-inner {
    padding-top: 92px;
    padding-bottom: 88px;
  }

  .section {
    padding: 68px 0 72px;
  }

  .check-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }

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

  button {
    width: fit-content;
  }

  .button-link {
    width: fit-content;
  }

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

  .mini-card {
    min-height: auto;
    padding: 24px;
  }

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

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

@media (max-width: 860px) {
  .word-check-section {
    padding: 64px 0 72px;
    background: var(--color-bg);
  }

  .word-check-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .word-check-tool {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .word-check-section {
    padding-top: 52px;
  }

  .word-check-intro h1 {
    font-size: 1.9rem;
    line-height: 1.22;
  }

  .tool-lead {
    font-size: 1rem;
  }

  .word-check-tool {
    padding: 22px;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
