/* MicPen 販売ページ — 白と黒だけ。影・グラデーション・アクセントカラーは使わない */

:root {
  --bg: #fff;
  --ink: #000;
  --text: #111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --max: 1120px;
  --gutter: 48px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 決まっていない値。公開前にすべて消す（販売ページは見た目を崩さないように点線の下線だけにする） */
.tbd-quiet {
  border-bottom: 1px dotted currentColor;
}

.tbd {
  border: 1px dashed var(--ink);
  padding: 0 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ヘッダー */

.site-header {
  padding: 36px 0;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.header-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.logo {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

/* ファーストビュー */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 104px 0 160px;
}

.hero h1 {
  font-size: clamp(52px, 7.4vw, 112px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-feature-settings: "palt";
  white-space: nowrap;
  color: var(--ink);
}

.subhead {
  margin-top: 40px;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.lead {
  margin-top: 20px;
  max-width: none;
  font-size: 16px;
}

/* 右の動画（本物の VS Code に文字が入っていく様子）。黒いモニターの画面に入れて見せる */

.hero-visual {
  margin: 0;
}

/* モニターの写真と、その画面の位置に重ねる動画（位置は写真の中の画面の四隅。写真を差し替えたら直す） */
.hero-photo {
  position: relative;
}

.hero-photo > img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-screen {
  position: absolute;
  left: 4.91%;
  top: 5.49%;
  width: 90.12%;
  height: 62.64%;
  overflow: hidden;
  /* 動画と画面の縦横の比率が少し違うので、左右のわずかなすき間は明るいデスクトップの色にする */
  background: #e9eaed;
}

/* ボタンの色の見方（本物のアプリと同じ丸とマイクの絵） */
.states dt {
  display: flex;
  align-items: center;
  gap: 12px;
}

.state-icon {
  flex: none;
  width: 28px;
  height: 28px;
}

.states strong {
  font-weight: 700;
  color: var(--ink);
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 各セクション */

.section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: baseline;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* 特長（黒い線で区切った 4 つの枠） */

/* 見出しを上に置いて、中身を横いっぱいに使うセクション */
.section-wide {
  display: block;
}

.section-wide .features {
  margin-top: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.features li {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.feature-num {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.features h3 {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  font-feature-settings: "palt";
  color: var(--ink);
}

.features p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

/* 料金（プランを横に 3 つ並べる。おすすめだけ枠を濃くする） */

.plan-block {
  min-width: 0;
}

.plan-lead {
  margin-bottom: 28px;
  line-height: 1.9;
  font-size: 14px;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 720px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 40px;
  border: 1px solid var(--line);
}

.plan.featured {
  border-color: var(--ink);
}

.plan-badge {
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 2px;
}

.plan-badge.save {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.plan-notes {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.plan-name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price .per {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.plan-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.plan-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.plan-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plan .button {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding: 0 16px;
  height: 52px;
  letter-spacing: 0.1em;
}

/* おすすめ以外のプランは、白地に黒い枠 */
.button.secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* 枠が狭いので、値段は折り返さずに少し小さく */
.plan .price {
  margin-top: 16px;
  font-size: 44px;
  white-space: nowrap;
}

.plan .price .per {
  white-space: nowrap;
}

.plan .plan-list {
  margin-bottom: 32px;
}

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

  .plan {
    padding: 28px 24px 32px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 60px;
  margin-top: 36px;
  padding: 0 40px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  transition: background-color 0.2s, color 0.2s;
}

.button:hover {
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

/* 動作環境などの表 */

.rows > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.rows > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.rows dt {
  font-size: 13px;
  color: var(--muted);
}

.rows dd small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* 申し込みのあとに出す、アプリのログイン用のコード */

.code-card {
  display: grid;
  gap: 12px;
  margin: 14px 0 10px;
  padding: 18px 20px;
  background: #f7f7f5;
  border: 1px solid var(--line);
}

.code-label {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--muted);
}

.code-value {
  font-size: 17px;
  word-break: break-all;
}

.code-number {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

/* 注意事項 */

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.notes li:first-child {
  padding-top: 0;
  border-top: 0;
}

/* 特商法・プライバシーポリシー */

.doc {
  padding-top: 96px;
  padding-bottom: 144px;
}

.doc h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-feature-settings: "palt";
  color: var(--ink);
}

.doc-body {
  max-width: 760px;
  margin-top: 72px;
}

.doc .rows > div {
  grid-template-columns: 200px 1fr;
}

.doc .rows > div:first-child {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.doc .rows > div:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-body > p + .policy,
.policy + .policy {
  margin-top: 56px;
}

.policy h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.policy p,
.policy ul,
.policy ol {
  margin-top: 12px;
}

.policy ul,
.policy ol {
  padding-left: 1.2em;
}

.policy li + li {
  margin-top: 4px;
}

.doc-date {
  margin-top: 72px;
  font-size: 13px;
  color: var(--muted);
}

/* フッター */

.site-footer {
  padding-bottom: 56px;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.copyright {
  font-family: "Inter", sans-serif;
}

/* 幅が狭いときは、モニターを文字の下に置く */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero h1 {
    font-size: clamp(52px, 13vw, 112px);
  }

  .hero-visual {
    max-width: 560px;
  }
}

/* スマホ */

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 14px;
  }

  .site-header {
    padding: 24px 0;
  }

  .logo {
    font-size: 20px;
  }

  .hero {
    padding: 56px 0 96px;
  }

  .subhead {
    margin-top: 28px;
    font-size: 18px;
  }

  .lead {
    margin-top: 14px;
    font-size: 14px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 0;
  }

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

  .features li {
    padding: 28px 24px 32px;
  }

  .features h3 {
    margin-top: 16px;
  }

  .plan {
    padding: 32px 24px 36px;
  }

  .price {
    font-size: 44px;
  }

  .button {
    width: 100%;
  }

  .rows > div,
  .doc .rows > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .rows > div:first-child {
    padding-top: 0;
  }

  .doc .rows > div:first-child {
    padding-top: 16px;
  }

  .doc {
    padding-top: 56px;
    padding-bottom: 96px;
  }

  .doc-body {
    margin-top: 48px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* よくある質問（使い方と同じ細い線の並びで、番号のかわりに Q。分類の見出しは小さな灰色の文字） */

.faq-group {
  margin: 72px 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.faq-group:first-child {
  margin-top: 0;
}

.faq-list {
  margin-top: 12px;
  padding-left: 1.2em;
}

.faq-list li + li {
  margin-top: 6px;
}

.faq-contact {
  margin-top: 96px;
}

.faq-contact .button {
  margin-top: 24px;
}

/* 使い方（手順を細い線で区切って並べる。番号は特長の番号と同じ細い数字） */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

/* 手順のあとの「こんなとき」は、線を 2 本重ねないように、最初の上の線をなくして間をあける */
.steps-extra {
  margin-top: 96px;
}

.steps-extra .step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
}

.step-num {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.step h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  font-feature-settings: "palt";
  color: var(--ink);
}

.step p {
  margin-top: 12px;
}

.step .step-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.step kbd {
  font-family: "Inter", sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.1em 0.5em;
  border: 1px solid var(--ink);
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .steps-extra {
    margin-top: 64px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 28px 0 32px;
  }

  .step h2 {
    font-size: 16px;
  }

  .steps-extra .step-num {
    display: none;
  }
}
