@charset "utf-8";
/* =========================================================
   ウェブde領収書（rcpt.work）共通スタイル
   ---------------------------------------------------------
   ・色・余白・角丸・影は :root の CSS 変数で定義。
   ・配色は A案（#1A66D6）で確定。
   ・ブレイクポイント: 1000px 以下で 2〜3列→1列、767px 以下を SP。
   ========================================================= */

:root {
  /* カラー（A案・確定） */
  --accent: #1A66D6;
  --accent-hover: #1556B8;
  --accent-soft: #EAF2FD;

  --text: #24303E;
  --text-sub: #5B6675;
  --border: #E3E8EE;
  --border-input: #C9D1DB;   /* 入力欄の枠（--border だと白地で見えにくいため補足） */
  --placeholder: #8C96A3;
  --bg: #FFFFFF;
  --bg-tint: #F4F7FA;
  --seal: #D93A3A;           /* 印影プレビューと FAQ の「A.」だけに使う */
  --footer-bg: #24303E;
  --footer-text: #FFFFFF;
  --footer-text-sub: rgba(255, 255, 255, .74);
  --footer-line: rgba(255, 255, 255, .18);

  /* 余白スケール */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;

  /* 角丸 */
  --radius-card: 12px;
  --radius-ui: 8px;
  --radius-pill: 9999px;

  /* 影（2種類のみ） */
  --shadow-card: 0 0 12px rgba(36, 48, 62, .08);
  --shadow-raise: 0 4px 12px rgba(36, 48, 62, .14);

  /* レイアウト */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --gap-card: 24px;

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

/* ---------- ベース ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-break: strict; }

.rcpt {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.rcpt *, .rcpt *::before, .rcpt *::after { box-sizing: border-box; }
.rcpt img, .rcpt svg { display: block; }
.rcpt a { color: var(--accent); }
.rcpt a:hover { color: var(--accent-hover); }
.rcpt button, .rcpt input, .rcpt select, .rcpt textarea { font-family: inherit; }
.rcpt :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: content-box !important;
}
.narrow { max-width: 800px; margin-inline: auto; }

.section { padding-block: var(--section-y); background: var(--bg); }
.section--tint { background: var(--bg-tint); }

/* ---------- 見出し・本文 ---------- */
.h1 { margin: 0; font-size: 32px; line-height: 1.5; font-weight: 700; }

.h2 {
  position: relative;
  margin: 0 0 48px;
  padding-bottom: 20px;
  font-size: 30px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}
.h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 4px;
  margin-left: -32px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
.section-lead {
  margin: -16px 0 48px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.h3 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 20px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
}
.h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.text { margin: 0; font-size: 16px; line-height: 1.8; text-align: justify; }
.note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-sub); }

/* ---------- ボタン ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 360px;
  max-width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-ui);
  background: var(--accent);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary--block { width: 100%; }
.btn-primary--md { width: auto; height: 52px; padding: 0 32px; font-size: 16px; flex: 0 0 auto; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-ui);
  background: #fff;
  color: var(--accent) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
.btn-outline:hover { background: var(--accent-soft); }

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-ui);
  color: var(--accent) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  background: #fff;
}
.btn-outline-sm:hover { background: var(--accent-soft); }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text) !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.badge-free {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.gnav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gnav__list a:not(.btn-outline-sm) {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.gnav__list a:not(.btn-outline-sm):hover { color: var(--accent); }
.gnav__sep { width: 1px; height: 20px; background: var(--border); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }

.sp-menu {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-raise);
}
.sp-menu__list { margin: 0; padding: 0 16px; list-style: none; }
.sp-menu__list li + li { border-top: 1px solid var(--border); }
.sp-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}
.sp-menu__list a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}
.sp-menu__label {
  margin: 0;
  padding: 12px 0 4px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.5;
}
.sp-menu__group { border-top: 1px solid var(--border); }
.sp-menu__btn { padding: 8px 16px 20px; }
.sp-menu__btn .btn-outline { width: 100%; }

/* =========================================================
   ヒーロー＋発行フォーム
   ========================================================= */
.hero { padding: 40px 0 var(--section-y); background: var(--bg-tint); }
.hero__head { margin-bottom: 28px; text-align: center; }
.br-sp { display: none; } /* SP（767px 以下）だけ表示する改行 */
@media (max-width: 767px) { .br-sp { display: inline; } }
@media (min-width: 768px) { .hero .h1 { font-size: clamp(26px, 4.2vw, 32px); } } /* PC は1行。768〜1000px は幅に合わせて縮め、1文字だけ落ちないようにする */
.hero__lead { margin: 8px 0 0; font-size: 16px; line-height: 1.8; }

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.pill svg { width: 18px; height: 18px; flex: 0 0 auto; }

.form-card {
  padding: 32px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.form-card__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.doc-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
  margin-bottom: -1px; /* 下線（親の border-bottom）にタブの下線を重ねる。overflow の外側で重ねて縦スクロールバーを出さない */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tab {
  flex: 0 0 auto;
  padding: 8px 20px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.doc-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.req-note { flex: 0 0 auto; margin: 0; padding-bottom: 14px; font-size: 13px; line-height: 1.5; color: var(--text-sub); }
.req { color: var(--accent); font-weight: 700; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
}
.form-col { min-width: 0; padding: 0 32px; border-left: 1px solid var(--border); }
.form-col:first-child { padding-left: 0; border-left: 0; }
.form-col:last-child { padding-right: 0; }
.form-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.form-col__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.fields { display: grid; gap: 20px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.5;
}
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.label-row .label { margin-bottom: 6px; }
.label-aside { font-size: 12px; line-height: 1.5; color: var(--text-sub); }

.input,
.select {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-ui);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--placeholder); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[readonly] { background: var(--bg); color: var(--text); border-style: dashed; }
.input--sm { height: 40px; padding: 0 10px; font-size: 14px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 2px solid var(--text-sub);
  border-bottom: 2px solid var(--text-sub);
  transform: rotate(45deg);
  pointer-events: none;
}
.select { padding-right: 34px; cursor: pointer; }

.input-group { display: flex; }
.input-group > .input { flex: 1 1 auto; min-width: 0; border-radius: var(--radius-ui) 0 0 var(--radius-ui); }
.input-group > .select-wrap { flex: 0 0 96px; margin-left: -1px; }
.input-group > .select-wrap .select { border-radius: 0 var(--radius-ui) var(--radius-ui) 0; background: var(--bg-tint); }

.price-field { position: relative; }
.price-field__yen {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.input--price { height: 52px; padding-left: 40px; font-size: 20px; font-weight: 700; }

.unit-field { position: relative; }
.unit-field .input { padding-right: 26px; text-align: right; }
.unit-field__unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

/* 金額の内訳 */
.breakdown { padding: 16px; border-radius: var(--radius-ui); background: var(--bg-tint); }
.breakdown__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.breakdown__title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.switch input {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: #B5BEC9;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color .15s;
}
.switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(36, 48, 62, .2);
  transition: transform .15s;
}
.switch input:checked { background: var(--accent); }
.switch input:checked::before { transform: translateX(16px); }

.tax-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "rate num tax";
  gap: 8px;
  align-items: end;
  padding: 12px 0;
}
.tax-row + .tax-row { border-top: 1px solid var(--border); }
.tax-row--multi {
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 28px;
  grid-template-areas: "rate base num tax del";
}
.tr-rate { grid-area: rate; }
.tr-base { grid-area: base; }
.tr-num  { grid-area: num; }
.tr-tax  { grid-area: tax; }
.tr-del  { grid-area: del; }
.tax-row .label { margin-bottom: 4px; }

.btn-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-ui);
  background: none;
  color: var(--text-sub);
  cursor: pointer;
}
.btn-del:hover { color: var(--text); background: #fff; }
.btn-del svg { width: 16px; height: 16px; }

.link-add {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.link-add:hover { color: var(--accent-hover); text-decoration: underline; }

.tax-note { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.tax-note[hidden] { display: none; }
.mismatch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--text);
  border-radius: var(--radius-ui);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.mismatch svg { width: 18px; height: 18px; flex: 0 0 auto; }

.tadashi { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.5; }
.tadashi > span { flex: 0 0 auto; }
.tadashi > .input { flex: 1 1 auto; min-width: 0; }

/* 会員情報から入力済みの帯 */
.notice-soft {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px 0 20px;
  padding: 10px 12px;
  border-radius: var(--radius-ui);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}
.notice-soft svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--accent); }

.zip-row { display: flex; align-items: center; gap: 12px; }
.zip-row .input { flex: 0 0 150px; width: 150px; }
.btn-text {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.btn-text:hover { color: var(--accent-hover); text-decoration: underline; }

/* 印影：セグメント */
.segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-input);
  border-radius: var(--radius-ui);
  overflow: hidden;
}
.segment__item { position: relative; display: block; margin: 0; }
.segment__item + .segment__item { border-left: 1px solid var(--border-input); }
.segment__item input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segment__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 4px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  transition: background-color .15s;
}
.segment__sub { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: inherit; }
.segment__item input:checked + .segment__btn { background: var(--accent); color: #fff; font-weight: 700; }
.segment__item input:focus-visible + .segment__btn { outline: 2px solid var(--accent); outline-offset: -4px; }
.segment__item input:disabled { cursor: not-allowed; }
.segment__item input:disabled + .segment__btn { background: var(--bg-tint); color: #7C8692; }

/* 印影：プレビュー */
.seal-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 14px;
  border-radius: var(--radius-ui);
  background: var(--bg-tint);
}
.seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  padding: 8px;
  border: 2px solid var(--seal);
  border-radius: 6px;
  background: #fff;
  color: var(--seal);
  transition: opacity .15s;
}
.seal.is-off { opacity: .22; }
.seal.is-png { padding: 0; border: 0; border-radius: 0; background: transparent; }
.seal__png { display: block; width: 120px; height: 120px; background: #fff; border-radius: 6px; }
.seal-preview__cap { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-sub); }

/* 会員登録情報：印鑑文字のプレビュー（PDF と同じ画像） */
.seal-pv-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; padding: 16px; border-radius: var(--radius-ui); background: var(--bg-tint); }
.seal-pv-wrap[hidden] { display: none; }
.seal-pv-img { display: block; width: 120px; height: 120px; background: #fff; border-radius: 6px; }

/* 発行エリア */
.form-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.turnstile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  min-height: 65px;
}
.submit-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-sub); }

/* =========================================================
   2. 作れる領収書（見本）
   ========================================================= */
.sample-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px minmax(0, 1fr);
}
.sample-notes { position: relative; margin: 0; padding: 0; list-style: none; }
.sample-note {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
}
.sample-note__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.sample-note__text { flex: 0 1 200px; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.sample-note__line { position: relative; flex: 1 1 24px; min-width: 24px; height: 1px; background: var(--accent); }
.sample-note__line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.sample-notes--left .sample-note__line { margin-right: -4px; }
.sample-notes--left .sample-note__line::after { right: 0; }
.sample-notes--right .sample-note__line { order: -1; margin-left: -4px; }
.sample-notes--right .sample-note__line::after { left: 0; }

/* 領収書の見本（後で実際の PDF 画像に差し替え） */
.receipt { container-type: inline-size; width: 520px; max-width: 100%; margin-inline: auto; }
.receipt__paper {
  --u: calc(100cqi / 520);
  position: relative;
  aspect-ratio: 210 / 297;
  padding: calc(44 * var(--u)) calc(40 * var(--u));
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: #222;
  font-size: calc(11 * var(--u));
  line-height: 1.6;
}
.receipt__meta { position: absolute; top: calc(40 * var(--u)); right: calc(40 * var(--u)); text-align: right; font-size: calc(10 * var(--u)); }
.receipt__meta p { margin: 0; }
.receipt__title {
  margin: calc(8 * var(--u)) 0 calc(28 * var(--u));
  text-align: center;
  font-size: calc(24 * var(--u));
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
}
.receipt__to {
  display: inline-block;
  margin: 0 0 calc(24 * var(--u));
  padding: 0 calc(16 * var(--u)) calc(4 * var(--u)) 0;
  border-bottom: 1px solid #222;
  font-size: calc(15 * var(--u));
  font-weight: 700;
}
.receipt__amount {
  margin: 0 calc(30 * var(--u));
  padding: calc(10 * var(--u)) 0;
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
  background: #F7F8FA;
  text-align: center;
  font-size: calc(30 * var(--u));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
}
.receipt__for { margin: calc(14 * var(--u)) 0 0; text-align: center; font-size: calc(12 * var(--u)); }
.receipt__ack { margin: calc(4 * var(--u)) 0 0; text-align: center; font-size: calc(12 * var(--u)); }
.receipt__table {
  width: 100%;
  margin-top: calc(36 * var(--u));
  border-collapse: collapse;
  font-size: calc(10.5 * var(--u));
}
.receipt__table th, .receipt__table td { padding: calc(5 * var(--u)) calc(10 * var(--u)); border: 1px solid #9AA3AD; }
.receipt__table thead th { background: #F2F4F6; font-weight: 700; text-align: center; }
.receipt__table tbody th { font-weight: 400; text-align: left; }
.receipt__table td { text-align: right; }
.receipt__bottom {
  position: absolute;
  left: calc(40 * var(--u));
  right: calc(40 * var(--u));
  bottom: calc(44 * var(--u));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(16 * var(--u));
}
.receipt__stamp {
  width: calc(108 * var(--u));
  padding: calc(14 * var(--u)) calc(10 * var(--u));
  border: 1px solid #222;
  text-align: center;
  font-size: calc(10 * var(--u));
  line-height: 1.5;
}
.receipt__issuer { position: relative; padding-right: calc(30 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1.7; }
.receipt__issuer p { margin: 0; }
.receipt__issuer-name { font-size: calc(13 * var(--u)); font-weight: 700; }
.receipt__seal {
  position: absolute;
  right: calc(-6 * var(--u));
  bottom: calc(-4 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(56 * var(--u));
  height: calc(56 * var(--u));
  border: calc(2 * var(--u)) solid var(--seal);
  border-radius: calc(4 * var(--u));
  color: var(--seal);
  opacity: .9;
}
.receipt__seal span {
  writing-mode: vertical-rl;
  inline-size: calc(46 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

/* =========================================================
   3. 特長
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-card); }
.feature-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-circle svg { width: 32px; height: 32px; }
.feature-card__title { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.5; text-align: center; }
.feature-card__text { margin: 0; font-size: 15px; line-height: 1.8; text-align: justify; }

/* =========================================================
   4. 使い方
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  gap: 16px;
}
.step-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ui);
  background: #fff;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}
.step-card__title { margin: 16px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.step-card__text { margin: 0; font-size: 15px; line-height: 1.8; text-align: justify; }
.step-card__illust { margin-top: auto; padding-top: 24px; color: var(--accent); }
.step-card__illust svg { width: 100%; max-width: 300px; height: auto; margin-inline: auto; }
.step-arrow {
  align-self: center;
  justify-self: center;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 12px solid var(--accent);
}

/* 線画イラスト共通 */
.illust .paper { fill: #fff; }
.illust .soft { fill: var(--accent-soft); }

/* =========================================================
   5. 領収書の基礎知識
   ========================================================= */
.guide-block + .guide-block { margin-top: 64px; }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-card); }
.tip-card { padding: 32px; border-radius: var(--radius-card); background: #fff; }
.tip-card__title { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.5; text-align: center; }
.tip-card__text { margin: 0; font-size: 15px; line-height: 1.8; text-align: justify; }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-card); align-items: stretch; }
.check-card { padding: 40px; border-radius: var(--radius-card); background: #fff; }
.check-card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.8; }
.where-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; }
.where-list__row { display: grid; gap: 2px; }
.where-list dt { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.where-list dd { margin: 0; font-size: 15px; line-height: 1.6; }
.check-card__lead { margin: 0; font-size: 16px; line-height: 1.8; text-align: justify; }
.checklist { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; }
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.check-icon svg { width: 14px; height: 14px; }
.check-card__foot {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
  text-align: justify;
}

.caution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-card); }
.caution-card { padding: 32px; border-radius: var(--radius-card); background: #fff; }
.caution-card__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.caution-card__head svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--accent); }
.caution-card__text { margin: 0; font-size: 15px; line-height: 1.8; text-align: justify; }

/* =========================================================
   6. よくある質問
   ========================================================= */
.faq-list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.faq-item { border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-raise); overflow: hidden; }
.faq-q {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 24px 64px 24px 72px;
  border: 0;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}
.faq-item.is-open .faq-q { background: var(--accent-soft); }
.faq-mark {
  position: absolute;
  left: 32px;
  top: 23px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.faq-q .faq-mark { color: var(--accent); }
.faq-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-a { position: relative; padding: 24px 64px 24px 72px; border-top: 1px solid var(--border); }
.faq-a .faq-mark { color: var(--seal); }
.faq-a__text { margin: 0; font-size: 15px; line-height: 1.8; text-align: justify; }

/* =========================================================
   6b. お知らせ
   ========================================================= */
.news-list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.news-item { display: flex; align-items: flex-start; gap: 24px; padding: 24px 32px; border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-raise); }
.news-date { flex: 0 0 auto; min-width: 9em; font-size: 14px; line-height: 1.8; color: var(--text-sub); }
.news-body { min-width: 0; flex: 1 1 auto; }
.news-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; }
.news-text { margin: 4px 0 0; font-size: 15px; line-height: 1.8; text-align: justify; text-justify: inter-character; }
.news-link { margin: 8px 0 0; font-size: 15px; line-height: 1.8; }

/* =========================================================
   7. 会員登録の案内（現在は非表示）
   ========================================================= */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-card);
  background: #fff;
}
.cta-card__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.5; }
.cta-card__text { margin: 6px 0 0; font-size: 15px; line-height: 1.8; text-align: justify; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { padding: 48px 0 24px; background: var(--footer-bg); color: var(--footer-text); }
.footer-logo { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.footer-tagline { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--footer-text-sub); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-text-sub);
  font-size: 12px;
  line-height: 1.5;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--footer-text-sub) !important; }
.footer-bottom a:hover { color: var(--footer-text) !important; }

/* =========================================================
   発行完了画面
   ========================================================= */
.result { padding: 64px 0 var(--section-y); background: var(--bg-tint); }
.result-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.result-head { text-align: center; }
.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.result-icon svg { width: 36px; height: 36px; }
.result-icon--error { background: var(--bg-tint); color: var(--text); }
.result-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.5; }
.result-lead { margin: 12px 0 0; font-size: 16px; line-height: 1.8; }
.result-block { margin-top: 32px; }
.subhead { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.copy-group { display: flex; }
.copy-group .input { flex: 1 1 auto; min-width: 0; border-radius: var(--radius-ui) 0 0 var(--radius-ui); background: var(--bg-tint); border-style: solid; color: var(--text); font-size: 14px; }
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 128px;
  height: 44px;
  margin-left: -1px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 0 var(--radius-ui) var(--radius-ui) 0;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s;
}
.btn-copy:hover { background: var(--accent-soft); }
.btn-copy.is-copied { background: var(--accent); color: #fff; }
.btn-copy svg { width: 16px; height: 16px; }
.expire-band {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-ui);
  background: var(--accent-soft);
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
}
.expire-band svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.expire-band p { margin: 0; }
.member-line { margin: 24px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-sub); text-align: center; }
.result-foot { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); text-align: center; }

/* =========================================================
   下層ページ（利用規約・プライバシーポリシー・お問い合わせ）
   ========================================================= */
.page-band { padding: 48px 0; background: var(--bg-tint); }
.page-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.5; }
.page-body { padding: 64px 0 var(--section-y); }
.article + .article { margin-top: 48px; }
.article .text + .text { margin-top: 16px; }
.article-list { margin: 16px 0; padding-left: 1.5em; font-size: 16px; line-height: 1.8; }
.article-list li + li { margin-top: 4px; }
.page-date { margin: 48px 0 0; text-align: right; font-size: 13px; line-height: 1.5; color: var(--text-sub); }

/* =========================================================
   レスポンシブ：1000px 以下（2〜3列 → 1列）
   ========================================================= */
@media (max-width: 1000px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-col,
  .form-col:first-child,
  .form-col:last-child { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--border); margin-top: 28px; }
  .form-col:first-child { padding-top: 0; border-top: 0; margin-top: 0; }

  .sample-stage { grid-template-columns: minmax(0, 1fr); }
  .sample-notes { display: grid; gap: 12px; max-width: 520px; width: 100%; margin: 24px auto 0; }
  .sample-notes--left { order: 2; }
  .sample-notes--right { order: 3; margin-top: 12px; }
  .sample-note { position: static; transform: none; }
  .sample-note__text { flex: 1 1 auto; }
  .sample-note__line { display: none; }

  .feature-grid,
  .tips-grid,
  .caution-grid,
  .check-grid { grid-template-columns: minmax(0, 1fr); }

  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .step-arrow {
    border-top: 12px solid var(--accent);
    border-bottom: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
  }
}

/* =========================================================
   レスポンシブ：767px 以下（SP）
   ========================================================= */
@media (max-width: 767px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 56px; }
  .h1 { font-size: 24px; }
  .h2 { font-size: 24px; }
  .h3 { font-size: 19px; }
  .text { font-size: 15px; }
  .section-lead { font-size: 15px; text-align: justify; }

  .gnav { display: none; }
  .menu-btn { display: inline-flex; }
  .logo { font-size: 18px; }

  .hero { padding: 24px 0 56px; }
  .hero__lead { font-size: 15px; text-align: justify; }
  .pills { gap: 8px; }
  .pill { height: 32px; padding: 0 12px 0 10px; font-size: 13px; }
  .pill svg { width: 16px; height: 16px; }

  .form-card { padding: 20px; }
  .form-card__top { margin-bottom: 20px; }
  .doc-tab { padding: 6px 12px 10px; }
  .req-note { padding-bottom: 12px; }
  .breakdown { padding: 12px; }
  .tax-row--multi {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
    grid-template-areas: "rate base del" "num tax .";
  }
  .tr-del { align-self: start; margin-top: 22px; }
  .zip-row .input { flex: 1 1 auto; width: auto; min-width: 0; }
  .btn-primary { width: 100%; }
  .btn-primary--md { width: 100%; }

  .feature-card { padding: 32px 20px; }
  .tip-card,
  .caution-card { padding: 24px 20px; }
  .check-card { padding: 28px 20px; }
  .step-card { padding: 28px 20px; }
  .guide-block + .guide-block { margin-top: 48px; }
  .feature-grid,
  .tips-grid,
  .caution-grid,
  .steps { gap: 16px; }

  .faq-q { padding: 20px 52px 20px 52px; font-size: 15px; }
  .faq-mark { left: 18px; top: 19px; font-size: 17px; }
  .faq-icon { right: 14px; }
  .faq-a { padding: 20px 20px 20px 52px; }

  .news-item { flex-direction: column; gap: 4px; padding: 20px; }
  .news-date { min-width: 0; }
  .cta-card { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 20px; }

  .site-footer { padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; margin-top: 32px; }


  .result { padding: 32px 0 56px; }
  .result-card { padding: 32px 20px; }
  .result-icon { width: 64px; height: 64px; }
  .result-icon svg { width: 32px; height: 32px; }
  .result-title { font-size: 22px; }
  .result-lead { font-size: 15px; text-align: justify; }
  .btn-copy { min-width: 0; }
  .expire-band { font-size: 13px; }

  .page-band { padding: 32px 0; }
  .page-title { font-size: 22px; }
  .page-body { padding: 40px 0 56px; }
  .article-list { font-size: 15px; }
}

/* =========================================================
   組み込み時の追加（PHP 化に伴う分）
   ========================================================= */
/* SP メニュー：hidden で閉じる。PC 幅では常に非表示 */
.sp-menu[hidden] { display: none; }
@media (min-width: 768px) { .sp-menu { display: none; } }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="false"] .menu-btn__close { display: none; }

/* FAQ：details / summary（JS なしで開閉） */
.faq-item > summary { list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] > .faq-q { background: var(--accent-soft); }
.faq-item > .faq-q .faq-icon__minus { display: none; }
.faq-item[open] > .faq-q .faq-icon__plus { display: none; }
.faq-item[open] > .faq-q .faq-icon__minus { display: block; }

/* hidden 属性は display 指定より優先する */
.rcpt [hidden] { display: none !important; }

/* 印影プレビュー：登録画像 */
.seal.is-img { padding: 0; border-color: var(--border); overflow: hidden; }
.seal__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* 下層ページの本文（条・段落） */
.article .text + .text { margin-top: 8px; }
.article .text a { text-decoration: underline; }
.page-intro { margin: 0 0 8px; }

/* ---------- 下層ページ（お問い合わせ・会員画面） ---------- */
.narrow--sm { max-width: 480px; }
.narrow--md { max-width: 640px; }
.narrow--wide { max-width: 1000px; }
.page-body .notice-soft,
.page-body .mismatch { margin: 0 0 24px; }
.contact-card { margin-top: 24px; }
.page-body .notice-soft + .form-card { margin-top: 0; }
.textarea { height: auto; min-height: 160px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.input--file { height: auto; padding: 10px 12px; font-size: 14px; }
.err { margin: 0 0 6px; color: var(--seal); font-size: 13px; font-weight: 700; line-height: 1.5; }
.member-id { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--text-sub); }
.member-sec + .member-sec { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.member-sec .form-col__title { margin-bottom: 20px; }
.member-card { margin-top: 24px; }
.optin-box { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.optin-box .text { margin-bottom: 12px; font-size: 14px; color: var(--text-sub); }
.optin-box .btn-outline-sm { height: auto; min-height: 36px; padding: 8px 16px; background: #fff; text-align: left; cursor: pointer; }
.member-card .form-col__title { margin-bottom: 20px; }
.form-card .text + .text { margin-top: 12px; }
.form-card .page-intro { margin-bottom: 20px; }
.field-note { margin-top: 6px; text-align: left; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.7; cursor: pointer; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.check-row a { text-decoration: underline; }
.field .check-row { margin-top: 10px; }
.page-body .pills { margin: 0 0 24px; }
.page-body .member-line a { text-decoration: underline; }

.data-table-wrap { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.data-table th { padding: 14px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--border); text-align: left; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:nth-child(2) { min-width: 260px; }
.data-table__empty { padding: 32px 16px; text-align: center; color: var(--text-sub); }
@media (max-width: 767px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table td { padding: 4px 0; border: 0; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--text-sub); }
  .data-table td:nth-child(2) { min-width: 0; }
  .data-table__empty::before { content: none !important; }
}

/* 領収書の見本（実際の PDF の画像） */
.sample-paper { width: 520px; max-width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.sample-paper img { display: block; width: 100%; height: auto; }

/* iOS：入力欄にフォーカスしたとき画面が拡大されないよう、SP では入力欄を16px以上にする（viewport で拡大を禁止しない） */
@media (max-width: 767px) {
  .rcpt input[type="text"], .rcpt input[type="email"], .rcpt input[type="password"], .rcpt input[type="tel"],
  .rcpt input[type="url"], .rcpt input[type="number"], .rcpt input[type="search"], .rcpt input[type="date"],
  .rcpt input[type="file"], .rcpt input:not([type]), .rcpt select, .rcpt textarea,
  .input, .input--sm, .select, .textarea { font-size: 16px; }
  .rcpt .input--price, .input--price { font-size: 20px; }
}

/* 発行日（ネイティブの date 入力）：iOS Safari で値が上端に寄らないよう、他の入力欄と高さ・余白を揃える */
.input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 24px;
  text-align: left;
}
.input[type="date"]::-webkit-date-and-time-value { min-height: 24px; margin: 0; padding: 0; text-align: left; }
.input[type="date"]::-webkit-datetime-edit { padding: 0; }
.input[type="date"]::-webkit-calendar-picker-indicator { margin: 0 0 0 4px; padding: 0; }

/* 404 ページ */
.notfound-links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.notfound-links li { margin: 0; }
@media (max-width: 767px) { .notfound-links { flex-direction: column; } .notfound-links a { width: 100%; } }

/* 発行完了画面の会員登録案内（未ログインのときだけ） */
.member-cta { margin-top: 32px; padding: 20px 24px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 8px; text-align: center; }
.member-cta__text { margin: 0; font-size: 15px; line-height: 1.8; }
.member-cta__btns { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.member-cta__login { font-size: 14px; }
@media (max-width: 767px) { .member-cta { padding: 16px; } .member-cta__text { text-align: justify; } .member-cta__btns .btn-outline { width: 100%; } }

/* 解説ページ：長い URL の折り返し */
.page-body .article a { overflow-wrap: anywhere; }

/* ---------- PR枠・共有ボタン・需要測定・受け渡しページ ---------- */
.promo { margin-top: 32px; padding: 20px 24px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 8px; }
.promo--amazon { border: 1px solid #FF9900; background: #FFFDF8; }
.article + .promo, .promo + .article { margin-top: 48px; }
.promo__label { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--text-sub); text-align: left; }
.promo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.promo__tag { display: inline-block; padding: 1px 6px; font-size: 11px; font-weight: 700; line-height: 1.4; color: var(--text-sub); background: #EDF2F7; border-radius: 4px; }
.promo__badge { display: inline-block; padding: 1px 7px; font-size: 11px; font-weight: 700; line-height: 1.4; color: #9A3412; background: #FFEDD5; border-radius: 4px; }
.promo__lead { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--text-sub); text-align: center; }
.promo__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text); }
.promo__text { margin: 4px 0 0; font-size: 15px; line-height: 1.8; text-align: justify; }
.promo__cta { margin-top: 12px; }
.rcpt a.promo__cta--amazon { border-color: #232F3E; color: #232F3E !important; background: #fff; }
.rcpt a.promo__cta--amazon:hover { background: #232F3E; color: #fff !important; text-decoration: none; }
.promo--compact { margin-top: 20px; padding: 12px 16px; }
.promo--compact + .result-block,
.promo--compact + .expire-band { margin-top: 20px; }
.promo--form { width: 100%; max-width: 620px; margin-top: 18px; text-align: left; }
.promo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; }
.promo__body { min-width: 0; flex: 1 1 auto; }
.promo--compact .promo__meta { margin-bottom: 4px; }
.promo--compact .promo__title { font-size: 14px; line-height: 1.45; }
.promo__btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: var(--radius-ui); background: #232F3E; color: #fff !important; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.promo__btn:hover { opacity: .88; text-decoration: none; }
.promo__btn::after { content: " ›"; margin-left: 4px; color: #FF9900; font-size: 15px; line-height: 1; }
.promo--compact .promo__label { margin-bottom: 4px; }
.promo--compact .promo__html a { font-size: 14px; line-height: 1.5; }
.promo__html { position: relative; text-align: center; overflow-wrap: anywhere; }
.promo__html img { max-width: 100%; height: auto; margin-inline: auto; }
.promo__html a { display: inline-block; max-width: 100%; font-size: 16px; font-weight: 700; line-height: 1.6; }
.promo__html img[width="1"] { position: absolute; left: 0; top: 0; margin: 0; }
.share-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.share-row [hidden] { display: none; }
.wish { margin-top: 32px; }
.wish__list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.wish__btn { height: 40px; padding: 0 16px; border: 1px solid var(--border-input); border-radius: var(--radius-pill); background: #fff; color: var(--text); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.wish__btn:hover { background: var(--accent-soft); }
.wish__btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); cursor: default; }
.wish__btn[aria-pressed="true"]::before { content: "✓ "; }
.wish__thanks { margin-top: 12px; }
.receive-meta { margin: 24px auto 0; max-width: 100%; display: table; }
.receive-meta > div { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; padding: 4px 0; }
.receive-meta dt { margin: 0; font-size: 14px; color: var(--text-sub); }
.receive-meta dd { margin: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.receive-open-wrap { margin: 16px 0 0; text-align: center; font-size: 14px; }
@media (max-width: 767px) {
  .promo { padding: 16px; }
  .promo--compact { padding: 12px 14px; }
  .promo__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .promo__btn { width: 100%; height: 38px; }
  .share-row { flex-direction: column; }
  .share-row .btn-outline-sm { width: 100%; }
  .promo__cta { width: 100%; }
  .receive-meta { display: block; }
}

/* =========================================================
   書類（請求書・見積書・納品書）の入力画面
   ========================================================= */
.rcpt a.doc-tab { color: var(--text-sub); text-decoration: none; }
.rcpt a.doc-tab:hover { color: var(--text); }
.rcpt a.doc-tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.result-others { margin: 20px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); text-align: center; }

.doc-upper { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.form-col.doc-sec { padding: 0; border-left: 0; }
.doc-sec + .doc-sec { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.doc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }

.doc-items__head,
.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 72px 120px 128px 120px 28px;
  gap: 8px;
  align-items: end;
}
.doc-items__head { padding-bottom: 6px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--text-sub); }
.doc-row { padding: 6px 0; }
.doc-cell { display: block; min-width: 0; margin: 0; }
.doc-lab { display: none; }
.doc-cell--qty .input,
.doc-cell--price .input { text-align: right; }
.doc-amount { display: flex; align-items: center; justify-content: flex-end; background: var(--bg); border-style: dashed; font-variant-numeric: tabular-nums; }
.doc-cell--del { display: flex; justify-content: center; }
.link-add:disabled { color: var(--text-sub); opacity: .5; cursor: not-allowed; text-decoration: none; }

.doc-totals { max-width: 360px; margin: 20px 0 0 auto; padding: 16px; border-radius: var(--radius-ui); background: var(--bg-tint); }
.doc-totals__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; line-height: 1.6; }
.doc-totals__row span:last-child { font-variant-numeric: tabular-nums; }
.doc-totals [data-total]::after { content: "円"; margin-left: 2px; }
.doc-totals__row--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 18px; font-weight: 700; }
.doc-totals__over { margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--seal); }

.doc-textarea { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.7; resize: vertical; }
.doc-bank-save { margin-top: 12px; }
.doc-bank-note { margin-top: 8px; }
.doc-more { margin-top: 12px; }

@media (min-width: 1001px) {
  .form-grid.doc-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); }
  .feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .doc-items__head,
  .doc-row { grid-template-columns: minmax(0, 1fr) 72px 56px 96px 108px 96px 24px; gap: 6px; }
}
@media (max-width: 767px) {
  .doc-upper { margin-bottom: 28px; padding-bottom: 28px; }
  .doc-fields { grid-template-columns: minmax(0, 1fr); }
  .doc-items__head { display: none; }
  .doc-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-areas: "name name name" "qty unit price" "rate amount del";
    gap: 10px 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-ui);
    background: var(--bg-tint);
  }
  .doc-cell--name { grid-area: name; }
  .doc-cell--qty { grid-area: qty; }
  .doc-cell--unit { grid-area: unit; }
  .doc-cell--price { grid-area: price; }
  .doc-cell--rate { grid-area: rate; }
  .doc-cell--amount { grid-area: amount; }
  .doc-cell--del { grid-area: del; justify-content: flex-end; }
  .doc-lab { display: block; margin-bottom: 4px; font-size: 12px; }
  .doc-totals { max-width: none; }
}
/* SP：書類のタブ 4 つを 1 行に収めるため、必須項目の注記をタブの上に回す */
@media (max-width: 767px) {
  .form-card__top { flex-wrap: wrap; }
  .form-card__top .req-note { order: -1; width: 100%; padding-bottom: 4px; text-align: right; }
  .form-card__top .doc-tabs { width: 100%; }
  .form-card__top .doc-tab { padding: 6px 10px 10px; }
}

/* 請求書ページ（2026-11-13）：ご利用上の注意 3 枚、書類の流れ */
@media (min-width: 1001px) {
  .caution-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .caution-grid--3 .caution-card { padding: 28px 24px; }
}
.doc-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.flow-card { display: flex; flex-direction: column; padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius-ui); background: #fff; }
.flow-card--current { border-color: var(--accent); background: var(--accent-soft); }
.flow-card__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.flow-card__text { margin: 0 0 16px; font-size: 15px; line-height: 1.8; text-align: justify; }
.flow-card__link,
.flow-card__here { margin-top: auto; font-size: 14px; font-weight: 700; line-height: 1.5; }
.flow-card__here { color: var(--accent); }
@media (max-width: 1000px) {
  .doc-flow { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* =========================================================
   書類ナビ（ヘッダーの帯・フッターのカード）／ヒーローの補足
   ========================================================= */
.hero__sub { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.doc-nav { height: 44px; border-top: 1px solid var(--border); background: var(--bg-tint); }
.doc-nav__list { display: flex; align-items: stretch; gap: 4px; height: 100%; margin: 0 auto; padding-block: 0; list-style: none; }
.doc-nav__list li { display: flex; }
.site-header a.doc-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.doc-nav__link svg { width: 20px; height: 20px; flex: 0 0 auto; }
.site-header a.doc-nav__link:hover { color: var(--text); background: #fff; }
.site-header a.doc-nav__link[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.sp-menu { top: 108px; } /* ロゴ行 64px ＋ 書類ナビの帯 44px の下に開く */
@media (max-width: 767px) {
  .doc-nav__list { gap: 0; }
  .doc-nav__list li { flex: 1 1 0; min-width: 0; }
  .site-header a.doc-nav__link { flex: 1 1 auto; gap: 4px; padding: 0 2px; font-size: 12px; }
  .doc-nav__link svg { width: 18px; height: 18px; }
}

/* 書類ページの会員登録の案内（白い節に置くとき。トップの tint の節の白いカードには付けない） */
.cta-card--box { background: var(--accent-soft); border: 1px solid #C9DBF5; }
.section:has(> .container > .cta-card--box) { padding-block: calc(var(--section-y) * .6); }

/* 電子印鑑作成ツール（/hanko/・/hanko/maruin/・/hanko/date/・/hanko/stamp/） */
.page-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-sub); }
.hanko-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.hanko-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 11px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); text-decoration: none; text-align: center;
  transition: border-color .15s, background-color .15s, color .15s;
}
.hanko-tab:hover { border-color: var(--accent); color: var(--accent); }
.hanko-tab__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.hanko-tab__sub { font-size: 11px; color: var(--text-sub); line-height: 1.3; }
.hanko-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .18); }
.hanko-tab.is-active .hanko-tab__sub { color: rgba(255, 255, 255, .88); }
.hanko-card { padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); margin-bottom: 40px; }
.hanko-subtabs { display: inline-flex; gap: 6px; padding: 4px; margin-bottom: 18px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 10px; }
.hanko-subtab {
  padding: 7px 14px; font-size: 13px; font-weight: 700; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-sub); cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.hanko-subtab:hover { color: var(--accent); }
.hanko-subtab.is-active { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.hanko-grid { display: grid; grid-template-columns: 216px 1fr; gap: 28px; align-items: start; }
.hanko-preview-col { text-align: center; position: sticky; top: 84px; }
.hanko-stage {
  width: 204px; height: 204px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.hanko-stage img { max-width: 184px; max-height: 184px; width: auto; height: auto; object-fit: contain; display: block; }
.hanko-row + .hanko-row { margin-top: 12px; }
.hanko-fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hanko-fields-2 > .hanko-row { margin-top: 0; }
.hanko-date-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.hanko-date-picker { width: auto; min-width: 156px; padding: 6px 10px; font-size: 13px; }
.hanko-note { margin: 8px 0 0; font-size: 12px; color: var(--text-sub); }
.hanko-help { margin: 6px 0 0; font-size: 13px; color: var(--text-sub); }
.hanko-err { margin: 6px 0 0; font-size: 13px; color: #b91c1c; font-weight: 700; }
.hanko-samples { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hanko-samples__label { font-size: 12px; color: var(--text-sub); }
.hanko-samples__sep { color: var(--border); margin: 0 2px; }
.hanko-chip { padding: 4px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-tint); color: var(--text); cursor: pointer; }
.hanko-chip:hover { border-color: var(--accent); color: var(--accent); }
.hanko-chip--accent { background: var(--accent-soft); border-color: #C9DBF5; color: var(--accent); font-weight: 700; }
.hanko-opt { margin-top: 16px; }
.hanko-opt .label { display: block; margin-bottom: 6px; font-size: 13px; }
.hanko-opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hanko-opt--full { grid-column: 1 / -1; }
.hanko-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hanko-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 700; line-height: 1.3;
  border: 1px solid var(--border-input); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.hanko-pill:hover { border-color: var(--accent); color: var(--accent); }
.hanko-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.hanko-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: 0 0 auto; }
.hanko-pill.is-active .hanko-swatch { border-color: #fff; }
.hanko-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.hanko-actions .is-disabled { opacity: .45; pointer-events: none; }
.hanko-save-form { margin: 0; }
.btn-outline--block { width: 100%; justify-content: center; }
.hanko-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.seal-preview__hint { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-sub); }
.seal-preview__hint a { text-decoration: underline; }
@media (max-width: 767px) {
  .hanko-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hanko-card { padding: 20px 16px; }
  .hanko-grid { grid-template-columns: 1fr; gap: 20px; }
  .hanko-preview-col { position: static; }
  .hanko-fields-2 { grid-template-columns: 1fr; }
  .hanko-subtabs { display: flex; width: 100%; }
  .hanko-subtab { flex: 1 1 0; text-align: center; }
  .hanko-opt-grid { grid-template-columns: 1fr; }
  .hanko-links { flex-direction: column; }
  .hanko-links .btn-outline-sm { width: 100%; text-align: center; }
}

/* 解説ページ用 CTA・見本・比較表・デザイン刷新（2026-11-23） */
.breadcrumb { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--text-sub); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-input); }
.breadcrumb a { color: var(--text-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; font-size: 13px; color: var(--text-sub); }
.guide-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.4; }
.guide-summary {
  margin: 0 0 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
}
.guide-summary__label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.guide-summary .text { margin: 0; font-size: 15px; line-height: 1.8; }
.guide-toc {
  margin: 0 0 40px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.guide-toc__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.guide-toc ol { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 1.8; }
.guide-toc li + li { margin-top: 4px; }
.guide-toc a { color: var(--text); text-decoration: none; }
.guide-toc a:hover { color: var(--accent); text-decoration: underline; }

.guide-body .article + .article { margin-top: 44px; }
.guide-body .h3 { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.guide-body ul.text,
.guide-body ol.text { margin: 14px 0; padding-left: 1.5em; text-align: left; }
.guide-body ul.text li + li,
.guide-body ol.text li + li { margin-top: 8px; }
.guide-body ul.text ul,
.guide-body ol.text ul { margin: 8px 0 4px; padding-left: 1.3em; }
.guide-body code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.guide-note-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}
.guide-note-box p { margin: 0; }
.guide-note-box p + p { margin-top: 8px; }
.guide-rel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-rel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.guide-rel-card:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.guide-rel-card::after { content: "→"; flex: 0 0 auto; color: var(--accent); font-weight: 700; }
.guide-ref {
  margin-top: 44px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}
.guide-ref .h3 { margin: 0 0 12px; padding-bottom: 0; border-bottom: 0; font-size: 16px; }
.guide-ref ul { margin: 0 0 12px; padding-left: 1.4em; font-size: 14px; line-height: 1.75; text-align: left; }
.guide-ref li + li { margin-top: 4px; }
.guide-ref__note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-sub); text-align: left; }

/* ガイド一覧ページ（/guide/） */
.guide-cat + .guide-cat { margin-top: 48px; }
.guide-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.guide-index-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.guide-index-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); text-decoration: none; }
.guide-index-card__tag { align-self: flex-start; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.guide-index-card__title { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--text); }
.guide-index-card:hover .guide-index-card__title { color: var(--accent); }
.guide-index-card__desc { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-sub); }

/* フッター刷新（3カラムカテゴリ構成） */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.footer-col__title { margin: 0 0 12px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--footer-text-sub); letter-spacing: .03em; }
.footer-col__list { margin: 0; padding: 0; list-style: none; }
.footer-col__list li + li { margin-top: 6px; }
.footer-col__list a { display: inline-block; padding: 2px 0; color: var(--footer-text) !important; font-size: 14px; line-height: 1.5; text-decoration: none; }
.footer-col__list a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: var(--footer-text-sub) !important; font-size: 12px; text-decoration: none; }
.footer-legal a:hover { color: var(--footer-text) !important; text-decoration: underline; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.guide-cta { margin: 28px 0 36px; padding: 22px 24px; background: var(--accent-soft); border: 1px solid #C9DBF5; border-radius: 10px; text-align: center; }
.guide-cta__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.guide-cta__text { margin: 8px 0 16px; font-size: 14px; line-height: 1.7; color: var(--text-sub); }
.guide-figure { margin: 16px 0 0; padding: 14px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 8px; text-align: center; }
.guide-figure img { max-width: 100%; height: auto; margin-inline: auto; border: 1px solid var(--border); background: #fff; }
.guide-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--text-sub); }
.table-wrap { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.table-hint { display: none; margin: 6px 0 0; font-size: 12px; color: var(--text-sub); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; background: #fff; }
.guide-table th, .guide-table td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.guide-table thead th { background: var(--bg-tint); font-weight: 700; white-space: nowrap; }
.guide-table tbody th { background: #fafbfd; font-weight: 700; min-width: 7em; }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col__list a { padding: 4px 0; }
  .guide-summary { padding: 16px 18px; }
  .guide-toc { padding: 16px 18px; }
  .guide-rel-grid,
  .guide-index-grid { grid-template-columns: 1fr; }
  .guide-ref { padding: 16px 18px; }
  .table-hint { display: block; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PDFに電子印鑑を押すツール（/pdf-hanko/）
   ========================================================= */
.pdfh-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.pdfh-badges li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid #C9DBF5;
  color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.4;
}
.pdfh-badges li::before { content: "✓"; font-weight: 700; }
.pdfh-alert {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 8px;
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
  font-size: 14px; font-weight: 700; line-height: 1.6;
}
.pdfh-status { margin-bottom: 16px; }
.pdfh-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}
.pdfh-stage-col { min-width: 0; }
.pdfh-panel-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }

.pdfh-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; padding: 36px 24px; text-align: center;
  background: #fff; border: 2px dashed #93B4E8; border-radius: 14px;
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.pdfh-dropzone:hover,
.pdfh-dropzone:focus-visible,
.pdfh-dropzone.is-dragover {
  border-color: var(--accent); background: var(--accent-soft); outline: none;
}
.pdfh-dropzone__icon { color: var(--accent); margin-bottom: 12px; }
.pdfh-dropzone__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.pdfh-dropzone__sub { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.pdfh-dropzone__btns { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }

.pdfh-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 10px 12px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
}
.pdfh-toolbar[hidden] { display: none; }
.pdfh-toolbar__group { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pdfh-filename {
  max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.pdfh-tbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 4px 10px;
  border: 1px solid var(--border-input); border-radius: 7px;
  background: #fff; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2;
  cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.pdfh-tbtn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pdfh-tbtn:disabled { opacity: .45; cursor: not-allowed; }
.pdfh-tbtn--danger { color: #B91C1C; border-color: #FCA5A5; }
.pdfh-tbtn--danger:hover:not(:disabled) { background: #FEF2F2; border-color: #DC2626; color: #991B1B; }
.pdfh-page-ind, .pdfh-zoom-ind { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }

.pdfh-viewport {
  overflow: auto; max-height: 78vh; padding: 16px;
  background: #E2E8F0; border: 1px solid var(--border); border-radius: 12px;
  text-align: center;
}
.pdfh-viewport[hidden] { display: none; }
.pdfh-canvas-wrap {
  position: relative; display: inline-block; margin: 0 auto;
  background: #fff; box-shadow: 0 4px 20px rgba(15, 23, 42, .18);
  user-select: none; -webkit-user-select: none;
}
.pdfh-canvas-wrap canvas { display: block; }
.pdfh-overlay { position: absolute; inset: 0; overflow: hidden; }

.pdfh-stamp {
  position: absolute; cursor: move; touch-action: none;
  border: 1.5px dashed transparent; border-radius: 2px;
  transform-origin: center center;
}
.pdfh-stamp:hover { border-color: rgba(26, 102, 214, .55); }
.pdfh-stamp.is-selected { border: 2px dashed var(--accent); background: rgba(26, 102, 214, .05); }
.pdfh-stamp img { width: 100%; height: 100%; display: block; pointer-events: none; }
.pdfh-stamp__del,
.pdfh-stamp__resize { display: none; position: absolute; }
.pdfh-stamp.is-selected .pdfh-stamp__del,
.pdfh-stamp.is-selected .pdfh-stamp__resize { display: flex; }
.pdfh-stamp__del {
  top: -12px; right: -12px; width: 24px; height: 24px;
  align-items: center; justify-content: center;
  border: 2px solid #fff; border-radius: 50%;
  background: #DC2626; color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); padding: 0;
}
.pdfh-stamp__resize {
  bottom: -11px; right: -11px; width: 22px; height: 22px;
  border: 2px solid #fff; border-radius: 50%;
  background: var(--accent); cursor: nwse-resize;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28); touch-action: none;
}
.pdfh-stamp__resize::after {
  content: ""; width: 7px; height: 7px; margin: auto;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
}

.pdfh-inspector {
  margin-top: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid #BFDBFE; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26, 102, 214, .06);
}
.pdfh-inspector[hidden] { display: none; }
.pdfh-inspector__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pdfh-inspector__title { font-size: 14px; font-weight: 700; color: var(--accent); }
.pdfh-inspector__btns { display: flex; gap: 6px; }
.pdfh-inspector__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pdfh-slider-row { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-sub); }
.pdfh-slider-row span { display: flex; justify-content: space-between; align-items: center; }
.pdfh-slider-row strong { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.pdfh-slider-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.pdfh-inspector__hint { margin: 8px 0 0; font-size: 12px; color: var(--text-sub); }

.pdfh-placed {
  margin-top: 14px; padding: 14px 16px;
  background: var(--bg-tint); border: 1px solid var(--border); border-radius: 10px;
}
.pdfh-placed[hidden] { display: none; }
.pdfh-placed__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.pdfh-placed__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdfh-placed__item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 6px 3px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: 12px;
}
.pdfh-placed__item.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.pdfh-placed__pick {
  border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px;
}
.pdfh-placed__del {
  border: 0; background: transparent; color: #B91C1C; font: inherit; font-size: 11px; cursor: pointer; padding: 2px 5px; border-radius: 999px;
}
.pdfh-placed__del:hover { background: #FEE2E2; }

.pdfh-panel-card,
.pdfh-export-card {
  padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.pdfh-src-tabs { display: flex; width: 100%; margin-bottom: 14px; }
.pdfh-src-tabs .hanko-subtab { flex: 1 1 0; text-align: center; }
.pdfh-type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pdfh-type-chips .hanko-pill { padding: 5px 10px; font-size: 12px; }

.pdfh-maker-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; margin-bottom: 12px;
  background: var(--bg-tint); border: 1px solid var(--border); border-radius: 10px;
}
.pdfh-mini-stage {
  width: 84px; height: 84px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; padding: 6px;
  border: 1px solid var(--border); border-radius: 8px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.pdfh-mini-stage img { max-width: 72px; max-height: 72px; width: auto; height: auto; object-fit: contain; display: block; }
.pdfh-maker-cta { flex: 1 1 auto; min-width: 0; }
.pdfh-maker-cta .btn-primary { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.pdfh-mfields .hanko-row { margin-top: 10px; }
.pdfh-mfields .hanko-row:first-child,
.pdfh-mfields .hanko-fields-2 > .hanko-row { margin-top: 0; }
.pdfh-opts { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.pdfh-opt-row + .pdfh-opt-row { margin-top: 10px; }
.pdfh-opt-row .label { display: block; margin-bottom: 5px; font-size: 12px; }
.pdfh-opt-row .hanko-pill { padding: 5px 9px; font-size: 12px; }
.pdfh-more-opts { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.pdfh-more-opts summary { font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; list-style: none; }
.pdfh-more-opts summary::before { content: "▸ "; }
.pdfh-more-opts[open] summary::before { content: "▾ "; }
.pdfh-more-opts > .pdfh-opt-row:first-of-type { margin-top: 10px; }

.pdfh-member-box { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pdfh-member-box__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
.pdfh-uploaded-box { margin-top: 12px; }
.pdfh-export-card { border-color: #BFDBFE; background: var(--accent-soft); }
.pdfh-export-btn:disabled { opacity: .45; cursor: not-allowed; }
.pdfh-export-note { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--text); }
.pdfh-docs { margin-top: 12px; }

@media (max-width: 980px) {
  .pdfh-app { grid-template-columns: 1fr; }
  .pdfh-panel-col { position: static; }
}
@media (max-width: 767px) {
  .pdfh-dropzone { min-height: 280px; padding: 26px 16px; }
  .pdfh-dropzone__title { font-size: 16px; }
  .pdfh-viewport { padding: 10px; max-height: 68vh; }
  .pdfh-inspector__grid { grid-template-columns: 1fr; }
  .pdfh-panel-card, .pdfh-export-card { padding: 16px; }
  .pdfh-filename { max-width: 140px; }
}

/* Phase 4（2026-11-25）：サイト内導線強化＋SP フォーム最適化 */
.result-others--sub { margin-top: 8px; }
.receive-tools { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); text-align: center; }
.guide-index-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-more-link { margin: 20px 0 0; text-align: right; font-size: 14px; font-weight: 700; }
.sp-quick-jump { display: none; }
.issuer-more-btn { display: none; }
.issuer-extra,
.seal-detail { display: grid; gap: 20px; }
@media (max-width: 1000px) {
  .guide-index-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hero { padding: 16px 0 44px; }
  .hero__head { margin-bottom: 16px; }
  .pills { margin-top: 12px; }
  .guide-index-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .guide-more-link { text-align: left; }
  .sp-quick-jump { display: block; margin: 4px 0 0; text-align: center; font-size: 13px; font-weight: 700; }
  .sp-quick-jump a { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
  .issuer-more-btn {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 11px 14px; border: 1px dashed var(--border-input); border-radius: 8px;
    background: var(--bg-tint); color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer;
  }
  .issuer-more-btn::after { content: "＋"; font-size: 15px; line-height: 1; margin-left: 8px; }
  .issuer-more-btn[aria-expanded="true"]::after { content: "－"; }
  .issuer-extra:not(.is-open) { display: none; }
  .form-col.is-seal-off .seal-detail { display: none; }
}
