/* PrintKeeper LP
   モチーフ: 複写伝票（白い原紙とピンクの控え、青い罫線、朱肉の印） */

:root {
  --desk: #EEF1F5;      /* 事務机のような青みのグレー */
  --paper: #FFFFFF;
  --ink: #1B2A4A;       /* ボールペンの紺 */
  --ink-soft: #4A5878;
  --rule: #2D4DA8;      /* 伝票の罫線ブルー */
  --rule-faint: #C9D3EA;
  --copy: #F7D6DE;      /* 複写紙のピンク */
  --stamp: #D3263A;     /* 朱肉 */
  --focus: #F2B400;

  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --measure: 38em;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
}

a { color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header { border-bottom: 1px solid var(--rule-faint); background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .02em; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  background: var(--rule);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  padding: 18px 28px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 0 #1E3577;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { background: #2645A0; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1E3577; }
.btn--small { font-size: 14px; padding: 10px 16px; box-shadow: none; }
.btn--small:active { transform: none; }
.btn--large { font-size: 18px; padding: 20px 36px; }

/* ---------- 価格 ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; }
.price__num { font-size: 40px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price__note { color: var(--ink-soft); font-size: 14px; }
.price--large .price__num { font-size: 52px; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--desk); border-bottom: 1px solid var(--rule-faint); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-block: 72px 80px;
}
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.22;
  letter-spacing: .01em;
  font-weight: 700;
}
.hero__lead { margin: 0 0 32px; max-width: 30em; font-size: 17px; color: var(--ink); }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero__buy .price { margin: 0; }
.hero__fine { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }

/* 伝票のイラスト */
.hero__visual { position: relative; height: 500px; }
.sheet {
  position: absolute;
  width: 300px;
  height: 400px;
  padding: 26px 26px 22px;
  border-radius: 2px;
}
.sheet--paper {
  left: 6%;
  top: 0;
  background: var(--paper);
  border: 1px solid var(--rule-faint);
  box-shadow: 0 18px 30px -18px rgba(27, 42, 74, .45);
  transform: rotate(-2deg);
  z-index: 2;
}
.sheet--copy {
  left: 6%;
  top: 0;
  background: var(--copy);
  transform: translate(150px, 34px) rotate(4deg);
  z-index: 1;
  box-shadow: 0 18px 30px -20px rgba(27, 42, 74, .35);
}
.sheet__head {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px double var(--rule);
  color: var(--rule);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .5em;
  text-align: center;
}
.sheet__rows { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.sheet__rows span {
  height: 34px;
  border-bottom: 1px solid var(--rule-faint);
  background: linear-gradient(90deg, transparent 0 62%, var(--rule-faint) 62% calc(62% + 1px), transparent 0);
  position: relative;
}
.sheet__rows span::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  height: 6px;
  width: 44%;
  border-radius: 3px;
  background: #D8DEEC;
}
.sheet__rows span:nth-child(2n)::before { width: 30%; }
.sheet__total { margin: 18px 0 0; text-align: right; font-size: 14px; color: var(--ink-soft); }
.sheet__total b { color: var(--ink); font-size: 20px; margin-left: 6px; }

.sheet--copy .sheet__tag {
  position: absolute;
  right: 22px;
  top: 22px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.sheet__file {
  position: absolute;
  right: 22px;
  width: 128px;
  top: 58px;
  text-align: right;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-all;
}
.sheet__lines { position: absolute; left: 150px; right: 26px; top: 130px; display: grid; gap: 22px; }
.sheet__lines i { display: block; height: 6px; border-radius: 3px; background: rgba(27, 42, 74, .18); }
.sheet__lines i:nth-child(odd) { width: 70%; }

.stamp {
  position: absolute;
  right: 28px;
  bottom: 74px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-size: 30px;
  font-weight: 700;
  transform: rotate(-12deg);
  opacity: .9;
}

.hero__caption {
  position: absolute;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  z-index: 3;
}
.hero__caption--paper { left: 6%; bottom: 0; }
.hero__caption--copy { right: 0; bottom: 0; color: var(--stamp); }

/* 読み込み時に一度だけ: 控えが原紙の下から出てきて、印が押される */
@media (prefers-reduced-motion: no-preference) {
  .sheet--copy { animation: copy-out .9s cubic-bezier(.2, .8, .2, 1) .3s both; }
  .stamp { animation: stamp-in .35s cubic-bezier(.3, 1.6, .5, 1) 1.15s both; }
  .hero__caption--copy { animation: fade-in .4s ease 1.3s both; }
}
@keyframes copy-out {
  from { transform: translate(0, 0) rotate(-2deg); }
  to   { transform: translate(150px, 34px) rotate(4deg); }
}
@keyframes stamp-in {
  from { transform: rotate(-12deg) scale(1.8); opacity: 0; }
  to   { transform: rotate(-12deg) scale(1); opacity: .9; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- セクション ---------- */
.section { padding-block: 88px; }
.section--tint { background: var(--desk); }
.section__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.4;
  font-weight: 700;
}
.section__lead { margin: 0 0 40px; color: var(--ink-soft); max-width: var(--measure); }
.section__title + :not(.section__lead) { margin-top: 32px; }

/* 使い方: 本当に順番がある手順なので番号を付ける。画面写真つき */
.howto { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--rule); }
.howto__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule-faint);
}
.howto__item--noimg { grid-template-columns: minmax(0, 1fr); }
.howto__item--noimg .howto__text { max-width: 36em; }
.howto__text::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--rule);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}
.howto__text h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.5; }
.howto__text p { margin: 0 0 10px; }
.howto__note { color: var(--ink-soft); font-size: 14px; }
.howto__shot { margin: 0; }
.howto__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-faint);
  border-radius: 6px;
  box-shadow: 0 14px 28px -18px rgba(27, 42, 74, .45);
  background: #fff;
}

/* こんな業務に: 伝票の明細行のように */
.uses { margin: 0; border-top: 2px solid var(--rule); background: var(--paper); }
.uses__row {
  display: grid;
  grid-template-columns: 15em minmax(0, 1fr);
  border-bottom: 1px solid var(--rule-faint);
}
.uses dt {
  padding: 22px 24px;
  font-weight: 700;
  font-size: 17px;
  border-right: 1px solid var(--rule-faint);
}
.uses dd { margin: 0; padding: 22px 24px; max-width: 46em; }

/* 仕様: 伝票の枠 */
.spec { width: 100%; border-collapse: collapse; border: 2px solid var(--rule); }
.spec th, .spec td { padding: 16px 20px; border-bottom: 1px solid var(--rule-faint); vertical-align: top; text-align: left; }
.spec th {
  width: 13em;
  background: #F3F6FC;
  color: var(--rule);
  font-weight: 700;
  border-right: 1px solid var(--rule);
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* 確認事項 */
.checks { margin: 0; padding: 0; list-style: none; max-width: 46em; }
.checks li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px dashed var(--rule-faint);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 23px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--rule);
  border-radius: 2px;
}

/* FAQ */
.faq { max-width: 48em; border-top: 2px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule-faint); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); top: 33px; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); }

/* 購入 */
.buy { background: var(--copy); }
.buy__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.buy__fine { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }
.flow { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: flow; background: var(--paper); border: 2px solid var(--rule); }
.flow li { counter-increment: flow; padding: 20px 24px 20px 64px; position: relative; border-bottom: 1px solid var(--rule-faint); }
.flow li:last-child { border-bottom: 0; }
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 22px;
  top: 19px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rule);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}
.flow b { display: block; font-size: 17px; }

/* お知らせ */
.notice { margin: 20px 0 0; padding: 14px 18px; border-left: 4px solid var(--rule); background: var(--paper); }
.notice--error { border-color: var(--stamp); }

/* ---------- 下層ページ ---------- */
.page { padding-block: 64px 96px; max-width: 760px; }
.page__title { margin: 0 0 16px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.4; }
.page__lead { margin: 0 0 32px; }
.law { width: 100%; border-collapse: collapse; border: 2px solid var(--rule); margin-bottom: 32px; }
.law th, .law td { padding: 14px 18px; border-bottom: 1px solid var(--rule-faint); text-align: left; vertical-align: top; }
.law th { width: 12em; background: #F3F6FC; color: var(--rule); border-right: 1px solid var(--rule); }

.form-row { display: grid; gap: 8px; margin-bottom: 20px; max-width: 28em; }
.form-row label { font-weight: 700; }
.form-row input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #9AA6C3;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.form-row input:focus-visible { outline-offset: 0; }

.download-box { padding: 28px; border: 2px solid var(--rule); background: #F3F6FC; margin-bottom: 32px; }
.download-box p { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--rule-faint); padding-block: 32px 48px; font-size: 14px; color: var(--ink-soft); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer__seller { margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- スマートフォン ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 48px 56px; gap: 40px; }
  .hero__visual { height: 420px; max-width: 420px; }
  .sheet { width: 240px; height: 330px; padding: 20px; }
  .sheet--copy { transform: translate(110px, 30px) rotate(4deg); }
  @keyframes copy-out {
    from { transform: translate(0, 0) rotate(-2deg); }
    to   { transform: translate(110px, 30px) rotate(4deg); }
  }
  .sheet__lines { left: 112px; }
  .sheet__file { width: 96px; right: 16px; font-size: 11px; }
  .sheet__total b { font-size: 16px; }
  .sheet__rows span { height: 28px; }
  .stamp { width: 54px; height: 54px; font-size: 25px; right: 18px; bottom: 100px; }
  .section { padding-block: 64px; }
  .howto__item { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .uses__row { grid-template-columns: 1fr; }
  .uses dt { border-right: 0; padding-bottom: 0; }
  .uses dd { padding-top: 6px; }
  .spec th, .law th { width: 7.5em; }
  .buy__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 420px) {
  .hero__visual { height: 380px; }
  .sheet { width: 210px; height: 300px; }
  .sheet--copy { transform: translate(90px, 26px) rotate(4deg); }
  @keyframes copy-out {
    from { transform: translate(0, 0) rotate(-2deg); }
    to   { transform: translate(90px, 26px) rotate(4deg); }
  }
  .sheet__lines { left: 96px; }
  .sheet__file { width: 80px; right: 12px; font-size: 10px; }
  .price__num { font-size: 34px; }
  .price--large .price__num { font-size: 42px; }
  .spec th, .spec td, .law th, .law td { display: block; width: auto; border-right: 0; }
  .spec th, .law th { padding-bottom: 4px; }
  .spec td, .law td { padding-top: 4px; }
}
