@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;700&display=swap');

/* ── ベース ── */
.tensho-invoice {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: #1A1A1A;
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 0 0 48px;
  text-align: left;
}
.tensho-invoice * { box-sizing: border-box; }

/* ── シリーズバー ── */
.tensho-invoice .series-bar {
  background: #3A3028;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}
.tensho-invoice .series-bar .label {
  font-size: 18px;
  color: #888;
  letter-spacing: .08em;
}
.tensho-invoice .series-bar .vol {
  font-size: 18px;
  color: #B8975A;
  font-weight: 700;
  margin-left: auto;
  letter-spacing: .1em;
}

/* ── メインビジュアル ── */
.tensho-invoice .main-visual {
  background: #fff;
  border-left: 5px solid #B8975A;
  padding: 28px 20px 24px;
  position: relative;
  overflow: hidden;
}
.tensho-invoice .main-visual::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 35%; height: 100%;
  background: #F8F6F2;
  clip-path: polygon(20% 0%,100% 0%,100% 100%,0% 100%);
  z-index: 0;
}
.tensho-invoice .mv-left { position: relative; z-index: 1; }
.tensho-invoice .mv-right {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 1;
  max-width: 36%;
}
.tensho-invoice .mv-badge {
  display: inline-block;
  background: #3A3028;
  color: #B8975A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.tensho-invoice .mv-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(17px,3.5vw,22px);
  font-weight: 700;
  color: #111111;
  line-height: 1.55;
  margin-bottom: 8px;
}
.tensho-invoice .mv-sub {
  font-size: 19px;
  font-weight: 400;
  color: #888;
  line-height: 1.7;
}
.tensho-invoice .mv-sub em {
  font-style: normal;
  color: #444;
  font-weight: 500;
}
.tensho-invoice .mv-amount-label {
  font-size: 14px;
  color: #AAA;
  letter-spacing: .1em;
  margin-bottom: 3px;
}
.tensho-invoice .mv-amount {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(15px,3vw,18px);
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
}
.tensho-invoice .mv-amount-note {
  font-size: 14px;
  font-weight: 400;
  color: #BBB;
  margin-top: 4px;
  line-height: 1.5;
}
.tensho-invoice .mv-brand {
  position: absolute;
  right: 16px; bottom: 12px;
  font-size: 14px;
  color: #CCC;
  letter-spacing: .1em;
  z-index: 1;
}

/* ── 総額バナー ── */
.tensho-invoice .total-banner {
  background: #3A3028;
  padding: 32px 20px;
  text-align: center;
}
.tensho-invoice .total-banner .tl {
  font-size: 19px;
  font-weight: 400;
  color: #AAA;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.tensho-invoice .total-banner .ta {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(32px,7vw,44px);
  font-weight: 700;
  color: #fff;
}
.tensho-invoice .total-banner .tn {
  font-size: 18px;
  font-weight: 400;
  color: #888;
  margin-top: 8px;
}

/* ── セクション ── */
.tensho-invoice .section { padding: 24px 16px 0; }
.tensho-invoice .section-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #B8975A;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EDE8E0;
  text-transform: uppercase;
}

/* ── ストーリー ── */
.tensho-invoice .story-box {
  background: #FDFCFA;
  border-left: 3px solid #B8975A;
  padding: 18px 20px;
  border-radius: 0 6px 6px 0;
  margin: 0 16px;
}
.tensho-invoice .story-box p {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.9;
  color: #1A1A1A;
}
.tensho-invoice .story-box p + p { margin-top: 12px; }

/* ── 概要カード ── */
.tensho-invoice .profile-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EDE8E0;
}
.tensho-invoice .profile-row {
  display: flex;
  align-items: baseline;
  padding: 13px 18px;
  border-bottom: 1px solid #F5F2EC;
  gap: 16px;
}
.tensho-invoice .profile-row:last-child { border-bottom: none; }
.tensho-invoice .profile-key {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  min-width: 96px;
  flex-shrink: 0;
}
.tensho-invoice .profile-val {
  font-size: 19px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.55;
}

/* ── プランボックス ── */
.tensho-invoice .plan-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #EDE8E0;
  text-align: left;
}
.tensho-invoice .plan-name {
  font-size: 19px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 2px;
  text-align: left;
}
.tensho-invoice .plan-price {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0EDE8;
  text-align: left;
}
.tensho-invoice .plan-includes-label {
  font-size: 14px;
  font-weight: 400;
  color: #AAA;
  margin-bottom: 10px;
  text-align: left;
}
.tensho-invoice .plan-item {
  font-size: 19px;
  font-weight: 400;
  color: #333;
  line-height: 1.9;
  padding: 5px 0 5px 20px;
  position: relative;
  text-align: left;
  display: block;
}
.tensho-invoice .plan-item::before {
  content: '';
  position: absolute;
  left: 6px; top: 14px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #B8975A;
}
.tensho-invoice .plan-free {
  display: inline-block;
  background: #EAFAF1;
  color: #1E8449;
  font-size: 14px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

/* ── 請求書 ── */
.tensho-invoice .inv-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 14px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.tensho-invoice .label-tax { background: #EDE8E0; color: #5A4A30; }
.tensho-invoice .label-nontax { background: #E8EDE0; color: #3A5A30; }

.tensho-invoice .invoice-item-wrap {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EDE8E0;
  margin-bottom: 10px;
}
.tensho-invoice .invoice-item {
  padding: 14px 18px;
  border-bottom: 1px solid #F5F2EC;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.tensho-invoice .invoice-item:last-child { border-bottom: none; }
.tensho-invoice .item-label-wrap { flex: 1; }
.tensho-invoice .item-label {
  font-size: 18px;
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.5;
}
.tensho-invoice .item-note {
  font-size: 19px;
  font-weight: 400;
  color: #AAA;
  margin-top: 2px;
}
.tensho-invoice .item-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  white-space: nowrap;
  padding-top: 1px;
  font-family: 'Noto Serif JP', serif;
}

/* ── 集計エリア ── */
.tensho-invoice .subtotal-area {
  background: #F5F0E8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.tensho-invoice .subtotal-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid #EDE8DE;
  font-size: 18px;
  font-weight: 400;
  color: #5A4A30;
}
.tensho-invoice .subtotal-row:last-child { border-bottom: none; }
.tensho-invoice .nontax-area {
  background: #EEF2E8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tensho-invoice .nontax-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  font-size: 18px;
  font-weight: 400;
  color: #3A5A30;
}

/* ── 合計フッター ── */
.tensho-invoice .total-footer {
  background: #3A3028;
  border-radius: 8px;
  padding: 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.tensho-invoice .total-footer .tf-label {
  font-size: 19px;
  font-weight: 500;
  color: #CCC;
}
.tensho-invoice .total-footer .tf-amount {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

/* ── 含まれないもの ── */
.tensho-invoice .not-included {
  background: #FEF6F6;
  border-left: 3px solid #C0392B;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
}
.tensho-invoice .not-included-title {
  font-size: 18px;
  font-weight: 700;
  color: #C0392B;
  margin-bottom: 8px;
}
.tensho-invoice .not-included-item {
  font-size: 18px;
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.8;
  padding-left: 14px;
  position: relative;
}
.tensho-invoice .not-included-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #C0392B;
}

/* ── 明朗会計 ── */
.tensho-invoice .transparency-box {
  background: #F8F6F2;
  border-radius: 8px;
  padding: 18px 20px;
  border: 1px solid #EDE8E0;
}
.tensho-invoice .transparency-title {
  font-size: 19px;
  font-weight: 700;
  color: #B8975A;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.tensho-invoice .transparency-text {
  font-size: 18px;
  font-weight: 400;
  color: #444;
  line-height: 1.85;
}

/* ── 担当者コメント ── */
.tensho-invoice .comment-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #EDE8E0;
}
.tensho-invoice .comment-text {
  font-size: 19px;
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.95;
}
.tensho-invoice .comment-text p + p { margin-top: 12px; }

/* ── 比較カード ── */
.tensho-invoice .compare-intro {
  font-size: 19px;
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.85;
  margin-bottom: 16px;
}
.tensho-invoice .compare-cards { display: flex; flex-direction: column; gap: 10px; }
.tensho-invoice .compare-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EDE8E0;
}
.tensho-invoice .compare-card-title {
  background: #F5F2EC;
  padding: 10px 14px;
  font-size: 19px;
  font-weight: 700;
  color: #333;
  letter-spacing: .04em;
}
.tensho-invoice .compare-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.tensho-invoice .compare-col {
  padding: 14px 10px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  border-right: 1px solid #F2F0EC;
}
.tensho-invoice .compare-col:last-child { border-right: none; }
.tensho-invoice .compare-col-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #F2F0EC;
}
.tensho-invoice .col-tensho-bg { background: #FFFDF8; }
.tensho-invoice .col-tensho-bg .compare-col-label { color: #B8975A; }
.tensho-invoice .col-other-label { color: #AAA; }
.tensho-invoice .good { color: #1E6B3A; font-weight: 700; }
.tensho-invoice .bad  { color: #B03020; font-weight: 400; }
.tensho-invoice .mid  { color: #7A6A40; font-weight: 400; }

.tensho-invoice .compare-footer-note {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  line-height: 1.85;
  margin-top: 14px;
  padding: 16px 18px;
  background: #F8F6F2;
  border-radius: 6px;
  border-left: 3px solid #B8975A;
}
.tensho-invoice .compare-footer-note strong {
  color: #111111;
  font-weight: 700;
  display: block;
  margin-top: 10px;
}

/* ── フッター ── */
.tensho-invoice .footer-bar {
  background: #3A3028;
  padding: 24px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 8px;
}
.tensho-invoice .footer-bar p {
  font-size: 19px;
  font-weight: 400;
  color: #AAA;
  line-height: 1.9;
}
.tensho-invoice .footer-bar strong {
  color: #fff;
  font-weight: 500;
}
.tensho-invoice .spacer { height: 24px; }
.tensho-invoice .spacer-sm { height: 10px; }



/* ── 中央揃え：明示指定 ── */
.tensho-invoice .total-banner,
.tensho-invoice .total-banner * { text-align: center !important; }
.tensho-invoice .footer-bar,
.tensho-invoice .footer-bar * { text-align: center !important; }
.tensho-invoice .compare-col { text-align: center !important; }
.tensho-invoice .compare-card-title { text-align: left !important; }

/* ── アコーディオン ── */
.tensho-invoice .accordion-toggle {
  width: 100%;
  background: #F5F0E8;
  border: 1px solid #EDE8E0;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #3A3028;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tensho-invoice .accordion-toggle:hover {
  background: #EDE8DE;
}
.tensho-invoice .accordion-toggle .arrow {
  font-size: 14px;
  transition: transform 0.2s;
  color: #B8975A;
}
.tensho-invoice .accordion-toggle.open .arrow {
  transform: rotate(180deg);
}
.tensho-invoice .accordion-body {
  display: none;
}
.tensho-invoice .accordion-body.open {
  display: block;
}