/* Harie LP（方向性 A「貼り絵」）。クリームの紙にロゴの四角と丸を貼る見せ方。配色は docs/brand/README.md */
:root {
  --cream: #fbf6e9;
  --paper: #ffffff;
  --ink: #2b2620;
  --muted: #6e655a;
  --line: #e6dcc6;
  --ochre: #d4a72c;
  --deep: #b0861a;
  --light: #ebd08a;
  --text-yellow: #86650f;
  --red: #e5484d;
  --ok: #2f7a4b;
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --body:
    "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 1px 0 #e7dcc3, 0 18px 40px -18px rgb(80 60 20 / 0.45);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-yellow);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

.nb {
  display: inline-block;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.4;
  margin: 0 0 12px;
}

.sub {
  margin: 0 0 32px;
  color: var(--muted);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--ochre);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--deep);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--deep);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--deep);
}

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ヘッダー */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(251 246 233 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.logo-sm {
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.lang:hover {
  border-color: var(--deep);
}

/* ヒーロー */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 72px;
}

.paper {
  position: absolute;
  pointer-events: none;
}

.paper-sq {
  width: 220px;
  height: 220px;
  border-radius: 30px;
  background: var(--light);
  right: -60px;
  top: -80px;
  opacity: 0.7;
}

.paper-dot {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--ochre);
  left: -200px;
  bottom: -170px;
  opacity: 0.35;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.28;
  margin: 0;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--light) 62%);
}

.lead {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 30em;
}

.note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-demo {
  margin: 0;
}

.sheet {
  position: relative;
  background: var(--paper);
  padding: 10px;
  border-radius: 6px;
  transform: rotate(-1.2deg);
  box-shadow: var(--shadow);
}

/* マスキングテープ */
.sheet::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 44%;
  width: 116px;
  height: 28px;
  background: rgb(235 208 138 / 0.78);
  transform: rotate(3deg);
  z-index: 2;
}

.demo {
  position: relative;
  aspect-ratio: 16 / 9;
}

.demo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.demo-ann {
  transform-origin: 100% 0;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.demo[data-off] .demo-ann {
  opacity: 0;
  transform: translate(16px, -12px) rotate(2deg);
}

.demo-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #d8ccb0;
  transition: background 0.2s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
  transition: transform 0.2s;
}

.switch[aria-pressed="true"] .switch-track {
  background: var(--ochre);
}

.switch[aria-pressed="true"] .switch-track::after {
  transform: translateX(18px);
}

/* セクション */
.section {
  padding-block: 88px;
}

.section-tint {
  background: #f5ecd5;
}

/* 手間 */
.pains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pains li {
  background: var(--paper);
  border-radius: 4px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 10px 24px -18px rgb(80 60 20 / 0.6);
}

.pains li:nth-child(odd) {
  transform: rotate(-0.4deg);
}

.pains li:nth-child(even) {
  transform: rotate(0.3deg);
}

.pains b {
  display: block;
  color: var(--ink);
  font-size: 16.5px;
}

.split.split-top {
  align-items: start;
}

/* 流れ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  background: var(--paper);
  border-radius: 4px;
  padding: 28px 24px 26px;
  box-shadow: 0 12px 28px -18px rgb(80 60 20 / 0.55);
}

.step h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* 番号は Harie の番号バッジと同じく、枠の左上の外側に置く */
.badge {
  position: absolute;
  top: -16px;
  left: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
}

/* 仕組み・個人情報の 2 カラム */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split-copy p {
  margin: 0 0 14px;
}

.split-copy .small {
  color: var(--muted);
}

.anatomy {
  margin: 0;
  display: grid;
  gap: 14px;
}

.file-card {
  background: var(--paper);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  transform: rotate(0.8deg);
}

.file-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 700;
}

.layer .muted {
  font-weight: 400;
  font-size: 13px;
}

.layer-view {
  background: var(--cream);
  border: 1px solid var(--line);
}

.layer-base {
  background: var(--light);
}

.layer-doc {
  background: var(--ochre);
}

.layer-doc .muted {
  color: var(--ink);
}

.anatomy figcaption {
  font-size: 14px;
  color: var(--muted);
}

.table-wrap {
  margin-top: 56px;
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14.5px;
}

.compare caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 12px;
}

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

.compare thead th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.compare tbody th {
  font-weight: 700;
}

.compare td {
  color: var(--muted);
}

.compare .us {
  background: #fdf5dc;
  color: var(--ink);
  font-weight: 700;
}

.compare thead .us {
  color: var(--text-yellow);
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

/* AI */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--paper);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 12px 28px -18px rgb(80 60 20 / 0.55);
  min-width: 0;
}

.card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  margin: 0 0 10px;
}

.card p {
  margin: 0 0 12px;
}

.chat {
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.chat p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 90%;
}

.chat-user {
  justify-self: end;
  background: var(--ink);
  color: var(--cream);
}

.chat .chat-tool {
  justify-self: start;
  color: var(--muted);
  font-size: 12.5px;
  padding-block: 2px;
}

.chat-ai {
  justify-self: start;
  background: var(--cream);
  border: 1px solid var(--line);
}

/* 個人情報 */
.split-rev .split-copy {
  order: 2;
}

.pii {
  margin: 0;
  display: grid;
  gap: 18px;
}

.pii-row {
  position: relative;
  background: var(--paper);
  padding: 8px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.pii-row:first-child {
  transform: rotate(-0.8deg);
}

.pii-label {
  position: absolute;
  top: -12px;
  left: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  z-index: 1;
}

.pii-label-after {
  background: var(--ochre);
  color: var(--ink);
}

/* 使える場所 */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.platform {
  background: var(--paper);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  box-shadow: 0 12px 28px -18px rgb(80 60 20 / 0.55);
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.platform h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  margin: 0;
}

.platform p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag-ok {
  background: #e7f3ea;
  border-color: #c9e3d1;
  color: var(--ok);
}

.link {
  font-weight: 700;
  font-size: 15px;
}

.cmd {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12.5px;
}

.copy {
  flex: none;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 締め */
.closing {
  padding-block: 96px;
  text-align: center;
}

.closing-in {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.closing .cta {
  justify-content: center;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  font-size: 13px;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

@media (max-width: 900px) {
  .hero-in,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-rev .split-copy {
    order: 0;
  }

  .steps,
  .cards,
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    gap: 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-in .lang {
    margin-left: auto;
  }

  .section {
    padding-block: 64px;
  }
}

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

  .demo-ann,
  .switch-track,
  .switch-track::after,
  .btn {
    transition: none;
  }
}

/* MCP の始め方 */
.setup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  max-width: 860px;
}

.setup-step {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  padding: 26px 28px;
  display: grid;
  gap: 10px;
  min-width: 0;
  box-shadow: 0 12px 28px -18px rgb(80 60 20 / 0.55);
}

.setup-step h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  margin: 0;
}

.setup-step h4 {
  margin: 8px 0 0;
  font-size: 14px;
}

.setup-step p {
  margin: 0;
}

#mcp p code {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}

.cmd-block {
  align-items: flex-start;
}

.cmd-block pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.cmd-block .copy {
  padding-block: 8px;
}

.examples {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}
