/* PLAINTEXT Inc. — minimal Notion-like style */

:root {
  --text: #1a1a1a;
  --text-sub: #6b6b6b;
  --bg: #ffffff;
  --line: #e6e6e6;
  --accent: #1a1a1a;
  --maxw: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  font-feature-settings: "palt";
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #bbb;
}

a:hover {
  text-decoration-color: var(--text);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-title a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13px;
}

.site-nav a {
  color: var(--text-sub);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

/* Main */
main {
  padding: 56px 0 80px;
}

.hero {
  margin-bottom: 72px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-sub);
}

section {
  margin-bottom: 72px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-sub);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 20px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 8px;
}

h3:first-of-type {
  margin-top: 0;
}

h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 4px;
}

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}

li {
  margin-bottom: 4px;
}

.note {
  font-size: 14px;
  color: var(--text-sub);
}

/* Works list */
.work {
  margin-bottom: 28px;
}

.work .work-role {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.work .work-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.work p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* Company profile table */
.profile {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.profile th,
.profile td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.profile th {
  width: 8em;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-sub);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Steps (導入の流れ) */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  padding-top: 3px;
}

.steps li strong {
  display: block;
}

.steps li span {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
}

/* Callout */
.callout {
  border: 1px solid var(--line);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
}

.callout p {
  margin-bottom: 8px;
}

/* Book page */
.book-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.book-hero .cover {
  flex-shrink: 0;
  width: 200px;
}

.book-hero .cover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  .book-hero {
    flex-direction: column;
  }

  .book-hero .cover {
    width: 65%;
    max-width: 240px;
    margin: 0 auto;
  }
}


.book-meta {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

blockquote {
  border-left: 3px solid var(--line);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-sub);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  margin-top: 8px;
}

.toc h4 {
  margin-top: 20px;
}

.toc ul {
  font-size: 14px;
  color: var(--text-sub);
  list-style: none;
  padding-left: 1em;
}

/* Contact form */
.contact-form {
  max-width: 560px;
}

.contact-form .field {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form .req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #b0453a;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.contact-form .checkbox-field label {
  font-weight: 400;
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.contact-form .checkbox-field input {
  flex-shrink: 0;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  font-family: inherit;
  font-size: 15px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  padding: 12px 48px;
}

.btn-submit:hover {
  background: var(--bg);
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--text-sub);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--text-sub);
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  main {
    padding: 40px 0 64px;
  }

  section {
    margin-bottom: 56px;
  }
}
