@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-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.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-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 4px 0 0; list-style: none; }
.footer-links a { color: var(--footer-text) !important; font-size: 14px; line-height: 1.5; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.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-top { flex-direction: column; gap: 24px; }
  .footer-links { flex-direction: column; gap: 12px; }
  .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; }
