:root {
  --white: #fff;
  --cream: #ebe9e1;
  --shadow: 0 24px 70px rgba(30, 36, 31, 0.1)
}
* {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth
}
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased
}
button,
input {
  font: inherit
}
button,
a {
  -webkit-tap-highlight-color: transparent
}
a {
  color: inherit;
  text-decoration: none
}
.site-header {
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center
}
.header-link {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700
}
.hero {
  position: relative;
  overflow: hidden;
  background-size: 38px 38px
}
.hero::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 58px;
  background: var(--ink);
  content: "";
  opacity: 0.25
}
.hero-content {
  position: relative;
  z-index: 2
}
.mini-label {
  margin: 0 0 22px;
  font-weight: 800
}
.hero h1 span {
  position: relative;
  display: inline-block
}
.hero h1 span::after {
  position: absolute;
  right: 2%;
  bottom: 4px;
  left: 2%;
  height: 5px;
  background: rgba(198, 73, 63, 0.18);
  content: "";
  transform: rotate(-0.6deg)
}
.calculate-button {
  display: inline-flex;
  min-width: 290px;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px)
}
.hero-glow-left {
  top: 20%;
  left: -110px;
  width: 270px;
  height: 270px;
  background: rgba(198, 73, 63, 0.07)
}
.hero-glow-right {
  right: -80px;
  bottom: 10%;
  width: 330px;
  height: 330px;
  background: rgba(35, 116, 90, 0.07)
}
.section {
  padding: 120px clamp(20px, 6vw, 90px)
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center
}
.section-heading h2,
.lost-future-heading h2,
.closing h2 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.45
}
.section-heading > p:last-child,
.lost-future-heading > p:last-child,
.closing-inner > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9
}
.input-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #e5e5df;
  background: var(--white);
  box-shadow: var(--shadow)
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0
}
legend,
.amount-field label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800
}
legend span,
.amount-field label span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 12px
}
.habit-grid {
  display: grid
}
.habit-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 8px;
  border: 1px solid var(--line);
  color: #646964;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  transition: 0.2s ease
}
.habit-button:hover {
  color: var(--ink)
}
.habit-icon {
  display: grid;
  place-items: center
}
.amount-field {
  margin: 55px auto 0
}
.amount-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border-bottom: 2px solid var(--ink)
}
.yen-mark {
  color: var(--muted);
  font-family: "Shippori Mincho", serif;
  font-size: 31px
}
#monthlyAmount {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: right
}
.monthly-label {
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px
}
.amount-field > p {
  margin: 10px 0 0;
  color: #929691;
  font-size: 11px
}
.amount-field .form-error {
  min-height: 17px;
  color: var(--red);
  font-weight: 700
}
.calculate-button {
  width: min(100%, 430px);
  margin: 35px auto 0
}
.hidden {
  display: none
}
.future-bill {
  margin: 0 auto
}
.future-bill {
  position: relative
}
.future-bill::before,
.future-bill::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 9px;
  content: ""
}
.future-bill::before {
  top: -8px;
  transform: rotate(180deg)
}
.future-bill::after {
  bottom: -8px
}
.investment-copy h3 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  letter-spacing: -0.04em
}
.bill-meta strong {
  display: inline-block;
  min-width: 130px
}
.bill-total p,
.investment-numbers p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700
}
.bill-total strong {
  display: block;
  letter-spacing: -0.06em;
  line-height: 1.15
}
.bill-total span {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px
}
.loss-color {
  color: var(--red)
}
.investment-comparison {
  gap: 40px;
  align-items: center
}
.mini-label {
  margin-bottom: 13px
}
.investment-copy .mini-label {
  color: var(--green)
}
.investment-copy h3 {
  font-size: clamp(25px, 3.2vw, 38px)
}
.investment-copy > p:last-child {
  max-width: 390px;
  margin: 16px 0 0;
  color: #63726b;
  font-size: 12px;
  line-height: 1.8
}
.investment-numbers {
  border-left: 1px solid rgba(35, 116, 90, 0.2);
  padding-left: 40px
}
.investment-numbers strong {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.05em
}
.difference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(35, 116, 90, 0.2)
}
.difference-row p {
  margin: 0;
  color: var(--green-dark)
}
.difference-row strong {
  font-size: clamp(20px, 3vw, 30px)
}
.lost-future {
  max-width: 1100px;
  margin: 130px auto 0
}
.lost-future-heading {
  margin-bottom: 50px
}
.possibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr)
}
.possibility-card h3 {
  margin: 0 0 10px;
  font-family: "Shippori Mincho", serif;
  font-size: 22px
}
.possibility-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8
}
.disadvantages {
  margin: 130px calc(clamp(20px, 6vw, 90px) * -1) -120px;
  padding: 120px clamp(20px, 6vw, 90px)
}
.disadvantage-grid {
  display: grid;
  max-width: 1100px;
  margin: 0 auto
}
.disadvantage-card {
  padding: 30px
}
.disadvantage-number {
  color: var(--red);
  font-family: "Shippori Mincho", serif;
  font-size: 13px
}
.disadvantage-card h3 {
  margin: 0 0 7px;
  font-family: "Shippori Mincho", serif;
  font-size: 18px
}
.disadvantage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7
}
.closing {
  display: grid;
  place-items: center;
  background-size: auto, 32px 32px, 32px 32px;
  text-align: center
}
.closing-inner {
  max-width: 760px
}
.closing h2 {
  font-size: clamp(35px, 5vw, 59px)
}
.secondary-button {
  border-bottom: 1px solid var(--ink)
}
footer {
  padding: 55px 24px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center
}
.footer-brand {
  margin-bottom: 20px;
  color: white;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 700
}
footer p {
  margin: 0 auto;
  font-size: 9px;
  line-height: 1.9
}
.copyright {
  margin-top: 24px;
  letter-spacing: 0.16em
}
@media (max-width: 780px) {
  .header-link {
    display: none
  }
  .section {
    padding: 85px 18px
  }
  .section-heading {
    margin-bottom: 38px
  }
  .section-heading h2,
.lost-future-heading h2 {
    font-size: 34px
  }
  .input-card {
    padding: 28px 18px 32px
  }
  .habit-button {
    min-height: 105px
  }
  #monthlyAmount {
    padding-right: 8px;
  padding-left: 8px
  }
  .calculate-button {
    min-width: 0
  }
  .future-bill {
    padding: 30px 18px
  }
  .bill-meta {
    margin-top: 24px;
  text-align: left
  }
  .investment-comparison {
    display: block
  }
  .investment-numbers strong {
    font-size: 42px
  }
  .lost-future {
    margin-top: 90px
  }
  .possibility-grid {
    grid-template-columns: 1fr
  }
  .disadvantages {
    margin: 90px -18px -85px;
  padding: 85px 18px
  }
  .disadvantage-grid {
    grid-template-columns: 1fr
  }
  .closing {
    min-height: 500px
  }
  .closing h2 {
    font-size: 35px
  }
}
/* Unified muted-red theme and first-view calculator */
.habit-button {
  min-height: 84px;
  gap: 7px;
  border-color: #d9c5c0
}
.calculate-button {
  margin-top: 15px;
  padding: 16px 24px
}
@media (max-width: 780px) {
  .calculate-button {
    margin-top: 8px;
  padding: 14px 20px
  }
}
/* Final flat overrides */
.future-scale span,
.difference-row {
  box-shadow: none
}
/* Final layout and color priority */
/* Flat design */
.hero-glow {
  display: none
}
.brand-mark {
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px
}
.habit-button,
.habit-button.active,
.amount-input-wrap {
  border-radius: 6px;
  box-shadow: none
}
.future-scale span,
.difference-row {
  border-radius: 4px
}
.difference-row {
  box-shadow: none
}
.possibility-grid {
  gap: 16px
}
.flat-illustration {
  position: relative;
  overflow: hidden
}
.flat-illustration b {
  position: relative;
  z-index: 2;
  color: #343438;
  font-size: 26px
}
.disadvantage-card .flat-illustration {
  width: 96px;
  height: 96px
}
.impact-theme {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800
}
.benefit-heading {
  margin-top: 110px
}
.benefit-card .disadvantage-number {
  color: var(--green)
}
@media (max-width: 780px) {
  .site-header {
    position: absolute
  }
  .flat-illustration {
    width: 80px;
  height: 80px
  }
  .disadvantage-card .flat-illustration {
    width: 70px;
  height: 70px
  }
  .disadvantage-card h3 {
    font-size: 16px
  }
  .disadvantage-card p {
    font-size: 10px
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }
  *,
*::before,
*::after {
    scroll-behavior: auto !important;
  transition-duration: 0.01ms !important
  }
}
/* 2026 refresh: 入力をトップにまとめ、全体をやわらかいトーンに調整 */
:root {
  --lavender: #f1eef9;
  --yellow: #f6c960
}
.hero::after {
  display: none
}
.hero-content {
  margin: 0 auto
}
.mini-label {
  color: var(--red-dark);
  font-size: 12px;
  letter-spacing: 0.12em
}
.hero h1 span {
  color: var(--red-dark)
}
.hero-calculator {
  border-radius: 28px;
  text-align: left
}
.habit-button {
  border-radius: 16px;
  background: #fffdfb
}
.habit-button:hover {
  transform: translateY(-2px)
}
.habit-button.active {
  box-shadow: 0 5px 0 #f2bdc1
}
.habit-icon {
  border: 0
}
.amount-input-wrap {
  border-radius: 18px;
  padding: 0 20px
}
.calculate-button {
  border-radius: 999px;
  background: linear-gradient(135deg, #e66f79, #ce5966);
  box-shadow: 0 10px 24px rgba(198, 73, 82, 0.24)
}
.future-bill {
  border-radius: 8px;
  box-shadow: 0 26px 65px rgba(74, 63, 81, 0.13)
}
.future-bill {
  background-size: 26px 26px
}
.future-bill::before,
.future-bill::after {
  background: linear-gradient(135deg, transparent 6px, #fffefb 0) 0 0 / 12px 12px repeat-x
}
.bill-total {
  position: relative;
  border-radius: 3px
}
.bill-total p span {
  color: var(--ink)
}
.bill-total strong {
  text-underline-offset: 12px
}
.investment-comparison {
  border-radius: 22px
}
.future-scale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px
}
.future-scale span {
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
  font-size: 10px
}
.future-scale b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: 16px
}
.future-scale span:first-child b {
  color: var(--red-dark)
}
.future-scale span:last-child b {
  color: var(--green-dark)
}
.difference-row {
  gap: 20px;
  padding: 20px;
  border: 2px solid rgba(48, 122, 98, .18);
  border-radius: 16px;
  background: white
}
.difference-row small {
  display: block;
  max-width: 210px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5
}
.difference-row strong {
  white-space: nowrap
}
.lost-future-heading {
  color: var(--ink)
}
.lost-future-heading > p:last-child {
  color: var(--muted)
}
.possibility-card {
  border: 0;
  border-radius: 20px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(74, 63, 81, .08)
}
.possibility-card p {
  color: var(--muted)
}
.possibility-card .possibility-number {
  color: var(--red-dark);
  font-family: inherit;
  font-size: 10px
}
@media (max-width: 900px) {
  .habit-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}
@media (max-width: 780px) {
  .habit-button:last-child {
    grid-column: auto;
  min-height: 105px;
  flex-direction: column
  }
  .amount-input-wrap {
    padding: 0 12px
  }
  .future-scale {
    grid-template-columns: 1fr
  }
  .difference-row {
    display: block
  }
  .difference-row strong {
    display: block;
  margin-top: 12px
  }
}
/* Flat style has final priority over the earlier visual theme. */
.hero-calculator,
.future-bill,
.possibility-card {
  border: 1px solid #ded7d2;
  border-radius: 6px;
  background: #fff;
  box-shadow: none
}
.habit-button,
.habit-button.active,
.amount-input-wrap,
.investment-comparison,
.future-scale span,
.difference-row {
  border-radius: 4px;
  box-shadow: none
}
.habit-icon {
  border-radius: 3px;
  box-shadow: none
}
.calculate-button,
.calculate-button:hover {
  transform: none
}
.future-bill::before,
.future-bill::after {
  display: none
}
.possibility-card {
  display: grid;
  min-height: 190px;
  grid-template-columns: 1fr 116px;
  gap: 18px;
  align-items: center;
  padding: 24px
}
.possibility-card .possibility-number {
  display: block;
  margin-bottom: 18px
}
.disadvantage-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  border: 0;
  background: transparent
}
.disadvantage-card {
  display: grid;
  min-height: 154px;
  grid-template-columns: 38px 1fr 112px;
  gap: 20px;
  align-items: center;
  border: 1px solid #ded7d2;
  background: #fff
}
@media (max-width: 780px) {
  .hero-calculator {
    border-radius: 6px
  }
  .possibility-card {
    min-height: 160px;
  grid-template-columns: 1fr 86px;
  padding: 20px
  }
  .disadvantage-card {
    min-height: 145px;
  grid-template-columns: 28px 1fr 76px;
  gap: 12px;
  padding: 18px 14px
  }
}
/* eof-layout-priority */
.site-header {
  height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-color: #d8bdb8
}
.hero-content {
  align-items: center;
  text-align: left
}
.hero-calculator {
  margin-top: 0
}
.habit-button,
.habit-button:last-child {
  border-color: #d9c5c0
}
.habit-icon {
  width: 30px;
  height: 30px;
  font-size: 13px
}
.amount-input-wrap {
  border-color: #cfaeaa
}
#monthlyAmount {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: clamp(34px, 4vw, 48px)
}
.results-section,
.disadvantages {
  background: #eadbd7
}
.future-bill,
.possibility-card,
.disadvantage-card {
  border-color: #d5bbb6;
  background: #fffaf8
}
.benefit-card {
  border-color: #b9bdb3
}
.lost-future {
  margin-top: 90px
}
@media (max-width: 980px) {
  .hero {
    min-height: auto;
  padding-top: 100px
  }
  .hero-content {
    text-align: center
  }
  .hero-calculator {
    width: 100%
  }
}
@media (max-width: 780px) {
  .hero-calculator {
    margin-top: 0
  }
  .amount-field label,
legend {
    font-size: 12px
  }
  legend span,
.amount-field label span {
    width: 23px;
  height: 23px;
  font-size: 10px
  }
  .amount-field > p {
    margin-top: 5px;
  font-size: 9px
  }
}
@media (max-width: 780px) {
  .habit-button,
.habit-button:last-child {
    line-height: 1.25
  }
  .habit-icon {
    width: 21px;
  height: 21px;
  font-size: 9px
  }
  #monthlyAmount {
    padding-top: 2px;
  padding-bottom: 2px;
  font-size: 30px
  }
  .yen-mark {
    font-size: 24px
  }
  .monthly-label {
    padding-top: 10px
  }
  #amountHint {
    display: none
  }
  .form-error {
    margin-top: 2px !important;
  min-height: 10px !important
  }
}
/* Yellow, black and red visual system */
:root {
  --paper: #f7c948;
  --ink: #181818;
  --muted: #625a43;
  --line: #181818;
  --red: #d93a2f;
  --red-dark: #a9211a;
  --red-soft: #ffe2dc;
  --green: #181818;
  --green-dark: #181818;
  --green-soft: #fff4c7
}
body {
  color: var(--ink);
  background: #f7c948
}
.site-header {
  border-bottom: 2px solid #181818;
  background: #f7c948
}
.brand-mark {
  background: #181818;
  color: #f7c948
}
.hero {
  background: #f7c948
}
.hero h1 {
  margin-bottom: 8px;
  color: #181818;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900
}
legend span,
.amount-field label span {
  background: #181818
}
.habit-icon {
  background: #f7c948
}
.habit-button.active .habit-icon {
  background: #fff;
  color: #181818
}
.amount-input-wrap {
  border: 3px solid #181818;
  background: #fff
}
/* Business-style invoice */
.future-bill {
  max-width: 960px;
  padding: clamp(24px, 5vw, 60px);
  border: 2px solid #181818;
  background: #fff
}
.invoice-head {
  position: relative;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-bottom: 24px
}
.invoice-head h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: .28em
}
.bill-meta {
  color: #555;
  font-size: 10px;
  text-align: right
}
.bill-meta p {
  margin: 0 0 4px
}
.bill-meta strong {
  color: #181818;
  font-size: 14px
}
.invoice-table {
  border: 1px solid #181818
}
.invoice-row {
  display: grid;
  grid-template-columns: 1.5fr .6fr 1fr;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid #181818
}
.invoice-row:last-child {
  border-bottom: 0
}
.invoice-row > * {
  height: 100%;
  padding: 18px;
  border-right: 1px solid #181818
}
.invoice-row > *:last-child {
  border-right: 0;
  text-align: right
}
.invoice-labels {
  min-height: auto;
  background: #181818;
  color: #fff;
  font-size: 11px;
  font-weight: 800
}
.invoice-labels > * {
  padding: 9px 18px
}
.invoice-subtotal span:nth-child(2) {
  font-weight: 800
}
.bill-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px 25px;
  border: 3px solid #181818;
  background: #f7c948;
  text-align: left
}
.bill-total p {
  margin: 0;
  color: #181818;
  font-size: 15px
}
.bill-total strong {
  color: #d93a2f;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 900;
  text-decoration: none
}
.bill-total > span {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: #5d532f;
  font-size: 10px;
  text-align: right
}
.investment-comparison {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  margin-top: 35px;
  padding: 35px;
  border: 2px solid #181818;
  background: #fff4c7
}
.investment-copy h3 {
  line-height: 1.5
}
.amount-chip {
  display: inline-block;
  margin: 4px 0;
  padding: 2px 9px;
  background: #d93a2f;
  color: #fff;
  white-space: nowrap
}
.investment-numbers {
  border-left-color: #181818
}
.gain-color {
  color: #181818
}
.future-scale span,
.difference-row {
  border: 1px solid #181818;
  background: #fff
}
.difference-row strong {
  color: #d93a2f
}
.nisa-chart-wrap {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 2px solid #181818
}
.nisa-chart-wrap > p {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800
}
.nisa-chart {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
  border-bottom: 3px solid #181818
}
.lost-future,
.disadvantages {
  background: transparent
}
.possibility-card,
.disadvantage-card {
  border: 2px solid #181818;
  background: #fff
}
.impact-theme {
  background: #f7c948;
  color: #181818
}
.benefit-card .impact-theme {
  background: #181818;
  color: #f7c948
}
footer {
  background: #181818
}
@media (max-width: 780px) {
  .hero h1 {
    margin: 0;
  line-height: 1.1
  }
  .invoice-head {
    grid-template-columns: 1fr auto
  }
  .invoice-head h3 {
    grid-column: 1 / -1;
  grid-row: 1;
  text-align: center
  }
  .bill-meta {
    grid-column: 2;
  grid-row: 2
  }
  .invoice-row {
    grid-template-columns: 1.25fr .55fr .9fr;
  font-size: 10px
  }
  .invoice-row > * {
    padding: 12px 7px
  }
  .bill-total {
    display: block;
  padding: 18px 12px;
  text-align: center
  }
  .bill-total strong {
    display: block;
  margin-top: 5px;
  font-size: 38px
  }
  .bill-total > span {
    display: block;
  text-align: center
  }
  .investment-comparison {
    grid-template-columns: 1fr;
  padding: 24px 15px
  }
  .investment-numbers {
    margin-top: 25px;
  padding: 24px 0 0;
  border-top: 2px solid #181818;
  border-left: 0
  }
  .investment-copy h3 {
    font-size: 25px
  }
  .nisa-chart {
    height: 180px
  }
}
/* Refined editorial layout */
.hero-content {
  gap: clamp(42px, 6vw, 88px)
}
.hero h1 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(45px, 5.2vw, 70px);
  line-height: 1.08;
  letter-spacing: -.075em
}
/* Cleaner invoice */
.invoice-head {
  display: block;
  min-height: 74px;
  padding: 0;
  border-bottom: 0
}
.invoice-head h3 {
  margin: 0;
  text-align: center
}
.bill-meta {
  position: absolute;
  top: 3px;
  right: 0
}
.bill-total {
  margin: 32px 0 26px
}
/* Readable line chart with axes and tick labels */
.nisa-chart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px
}
.nisa-chart-heading p {
  margin: 0;
  font-size: 13px;
  font-weight: 900
}
.nisa-chart-heading span {
  color: #625a43;
  font-size: 9px
}
.nisa-chart {
  display: block;
  width: 100%;
  height: auto;
  border: 0
}
.nisa-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Noto Sans JP", sans-serif
}
.chart-grid-line {
  stroke: #d7c986;
  stroke-width: 1
}
.chart-axis {
  stroke: #181818;
  stroke-width: 2
}
.chart-investment-line {
  fill: none;
  stroke: #181818;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round
}
.chart-point {
  fill: #d93a2f;
  stroke: #181818;
  stroke-width: 3
}
.chart-y-label,
.chart-x-label,
.chart-axis-title {
  fill: #514a36;
  font-size: 11px;
  font-weight: 700
}
.chart-value-label {
  fill: #181818;
  font-size: 12px;
  font-weight: 900
}
@media (max-width: 980px) {
  .hero-content {
    gap: 24px
  }
  .hero h1 {
    margin-right: auto;
  margin-left: auto
  }
}
@media (max-width: 780px) {
  .hero-content {
    gap: 15px
  }
  .hero h1 {
    font-size: 33px
  }
  .hero-calculator {
    padding: 13px
  }
  .invoice-head {
    display: block;
  min-height: 112px
  }
  .invoice-head h3 {
    margin-bottom: 0
  }
  .bill-meta {
    top: 54px
  }
  .bill-total {
    margin-top: 20px
  }
  .nisa-chart-heading {
    display: block
  }
  .nisa-chart-heading span {
    display: block;
  margin-top: 4px
  }
  .chart-y-label,
.chart-x-label,
.chart-axis-title {
    font-size: 10px
  }
  .chart-value-label {
    font-size: 10px
  }
}
/* Multi-select habit controls and invoice remarks row */
legend small {
  margin-left: 4px;
  color: #625a43;
  font-size: 9px;
  font-weight: 600
}
.habit-button,
.habit-button:last-child {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left
}
.habit-button > span:last-child {
  line-height: 1.35
}
.habit-icon,
.habit-button.active .habit-icon {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit
}
.invoice-remarks-row {
  display: grid;
  grid-template-columns: 98px 1fr;
  border-top: 1px solid #181818
}
.invoice-remarks-row > strong {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  border-right: 1px solid #181818;
  font-size: 11px
}
.invoice-remarks-row > div {
  padding: 12px 18px
}
.invoice-remarks-row p {
  margin: 2px 0;
  color: #514a36;
  font-size: 10px;
  line-height: 1.65
}
@media (max-width: 780px) {
  .habit-button,
.habit-button:last-child {
    flex-direction: row;
  justify-content: flex-start;
  text-align: left
  }
  .habit-icon,
.habit-button.active .habit-icon {
    width: auto;
  height: auto
  }
  legend small {
    font-size: 8px
  }
  .invoice-remarks-row {
    grid-template-columns: 58px 1fr
  }
  .invoice-remarks-row > strong {
    padding: 10px 7px;
  font-size: 9px
  }
  .invoice-remarks-row > div {
    padding: 9px 8px
  }
  .invoice-remarks-row p {
    font-size: 8px
  }
}
/* White first view and two-column habit layout */
.site-header,
.hero {
  background: #fff
}
.hero-content {
  grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.15fr)
}
.hero-calculator {
  border-color: #181818
}
.habit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}
@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr
  }
  .hero-calculator {
    max-width: 680px;
  margin-right: auto;
  margin-left: auto
  }
}
@media (max-width: 780px) {
  .habit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}
/* Simplified hero, separated investment section and tailored illustrations */
.site-header {
  position: absolute;
  padding: 18px clamp(20px, 4vw, 58px)
}
.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 14px
}
.brand-copy strong {
  font-size: 15px
}
.brand-copy small {
  padding-left: 14px;
  border-left: 1px solid #181818;
  font-size: 11px;
  font-weight: 700
}
.hero {
  display: grid;
  place-items: center;
  padding: 100px 20px 48px
}
.hero-content {
  display: block
}
.hero-calculator {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none
}
.form-kicker {
  margin: 0 0 32px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-align: center
}
.habit-button > span:last-child {
  white-space: nowrap
}
.amount-field {
  max-width: none
}
.calculate-button,
.calculate-button:hover {
  max-width: none
}
.investment-section {
  margin: 80px calc(clamp(20px, 6vw, 90px) * -1) 0;
  padding: 90px clamp(20px, 6vw, 90px);
  background: #fff
}
.investment-inner {
  max-width: 960px;
  margin: 0 auto
}
.investment-section .investment-comparison {
  margin: 0
}
.flat-illustration {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 2px solid #181818;
  background: #fff8dc
}
.flat-illustration svg {
  width: 82%;
  height: 82%;
  fill: none;
  stroke: #181818;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round
}
.flat-illustration .accent {
  fill: #f7c948
}
.flat-illustration .accent-fill {
  fill: #d93a2f;
  stroke: #181818
}
.flat-illustration .accent-line {
  stroke: #d93a2f;
  stroke-width: 4
}
.flat-illustration > b {
  display: none
}
@media (max-width: 780px) {
  .site-header {
    padding: 13px 14px
  }
  .brand-copy {
    display: block;
  line-height: 1.15
  }
  .brand-copy strong {
    font-size: 12px
  }
  .brand-copy small {
    display: block;
  margin-top: 3px;
  padding-left: 0;
  border-left: 0;
  font-size: 8px
  }
  .hero {
    min-height: 100svh;
  padding: 86px 15px 30px
  }
  .habit-grid {
    gap: 7px
  }
  .amount-field {
    margin-top: 20px
  }
  .investment-section {
    margin-top: 55px;
  padding-top: 55px;
  padding-bottom: 55px
  }
  .flat-illustration,
.disadvantage-card .flat-illustration {
    width: 72px;
  height: 72px
  }
}
/* Cleaner flat controls and section hierarchy */
.hero {
  min-height: 0;
  padding-top: 125px;
  padding-bottom: 80px;
  border-bottom: 0
}
.hero-content {
  width: min(100%, 680px);
  max-width: 680px
}
.form-kicker {
  margin-bottom: 26px;
  font-size: 25px
}
.habit-grid {
  gap: 8px
}
.habit-button,
.habit-button:last-child {
  border: 1px solid #d9bd55;
  background: #fff3bd;
  color: #181818
}
.habit-button:hover {
  border-color: #5c8768;
  background: #f5edb9
}
.habit-button.active {
  border: 1px solid #326346
}
.amount-field {
  margin-top: 24px
}
.results-section {
  border-top: 0;
  border-bottom: 0;
  background: #fff4c7
}
.investment-section {
  border-top: 0
}
.section-title {
  margin: 0;
  color: #181818;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.3
}
.lost-future-heading h3 {
  margin: 14px 0 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 700
}
.lost-future-heading > p:last-child {
  margin-top: 14px
}
.benefit-card {
  background: #fff
}
@media (max-width: 780px) {
  .hero {
    padding-top: 100px;
  padding-bottom: 45px
  }
  .form-kicker {
    margin-bottom: 18px;
  font-size: 20px
  }
  .section-title {
    font-size: 27px
  }
  .lost-future-heading h3 {
    margin-top: 9px;
  font-size: 20px
  }
}
/* Final button and five-item section colors */
.habit-button.active {
  border-color: #b92720;
  background: #d93a2f;
  color: #fff
}
.disadvantages {
  background: #fff
}
.disadvantage-card,
.benefit-card {
  border-color: #d7bd5e;
  background: #fff4c7
}
/* Stronger primary action */
.calculate-button,
.calculate-button:hover {
  position: relative;
  display: flex;
  width: min(100%, 400px);
  margin-top: 30px;
  margin-right: auto;
  margin-left: auto;
  padding: 16px 54px 16px 28px;
  border: 2px solid #181818;
  border-radius: 8px;
  background: #55b86a;
  color: #102815;
  box-shadow: 5px 5px 0 #181818;
  font-size: 14px;
  font-weight: 900
}
.calculate-button span {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%)
}
.calculate-button:hover {
  background: #67c57a;
  box-shadow: 2px 2px 0 #181818;
  transform: translate(3px, 3px)
}
@media (max-width: 780px) {
  .calculate-button,
.calculate-button:hover {
    width: min(100%, 330px);
  margin-top: 22px;
  padding: 14px 48px 14px 20px;
  font-size: 12px
  }
}
/* Compact habit choices and aligned amount field */
.habit-button,
.habit-button:last-child {
  min-height: 44px;
  padding: 6px 11px;
  gap: 7px;
  border-radius: 12px;
  font-size: 11px
}
.habit-button.active {
  border-radius: 12px
}
.habit-icon,
.habit-button.active .habit-icon {
  font-size: 17px
}
.amount-input-wrap {
  width: min(100%, 400px);
  margin-right: auto;
  margin-left: auto;
  border-width: 2px
}
@media (max-width: 780px) {
  .habit-button,
.habit-button:last-child {
    min-height: 40px;
  padding: 5px 8px;
  gap: 5px;
  border-radius: 10px;
  font-size: 8px
  }
  .habit-button.active {
    border-radius: 10px
  }
  .habit-icon,
.habit-button.active .habit-icon {
    font-size: 15px
  }
  .amount-input-wrap {
    width: min(100%, 330px);
  margin-left: auto
  }
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
  padding: 14px 24px;
  border: 2px solid #181818;
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 #181818;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease
}
.secondary-button:hover {
  box-shadow: 2px 2px 0 #181818;
  transform: translate(2px, 2px)
}
legend,
.amount-field label {
  margin-bottom: 14px
}
@media (max-width: 780px) {
  legend,
.amount-field label {
    margin-bottom: 11px
  }
}
/* Invoice notes and the final message */
.invoice-duration-costs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 24px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #c9c3b2
}
.invoice-duration-costs > p {
  flex-basis: 100%;
  margin: 0;
  color: #181818;
  font-weight: 800
}
.invoice-duration-costs span {
  color: #514a36;
  font-size: 10px
}
.invoice-duration-costs span strong {
  margin-left: 6px;
  color: #181818;
  font-size: 13px
}
.closing {
  min-height: 0;
  background: #fff;
  border-top: 1px solid #181818
}
.closing-inner > p {
  color: #625a43
}
@media (max-width: 780px) {
  .invoice-duration-costs {
    gap: 4px 16px
  }
  .invoice-duration-costs span {
    font-size: 8px
  }
  .invoice-duration-costs span strong {
    font-size: 11px
  }
}

/* ============================================================
   モノクローム + レッド リデザイン(最終レイヤー / 後勝ち)
   ・黒×白×グレーが基調。アクセントは赤1色(投資の利益だけ緑)
   ・厚い黒枠・黄色面・ハードな影を廃し、ヘアライン+余白+絵文字で上質に
   ・レイアウトは保持し、塗り(色/枠/背景/影/角丸)中心で上書き
   ============================================================ */
:root {
  --ink: #111114;        /* 文字・主要面の黒 */
  --ink-soft: #3c3c44;   /* やや弱い黒(本文) */
  --muted: #93939b;      /* 補助テキストのグレー */
  --hair: #e8e8ec;       /* ヘアライン(細い境界線) */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;    /* 薄いグレー背景 */
  --red: #e5392e;        /* アクセント(請求・損失・選択) */
  --red-deep: #c12b22;
  --green: #15a06a;      /* 投資の利益のみ */
}

/* 基調 */
body { color: var(--ink); background: var(--bg); }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--hair); background: rgba(255,255,255,.92); }
.brand-mark { border-radius: 9px; background: var(--ink); color: #fff; }
.brand-copy small { border-left-color: var(--hair); color: var(--muted); }
.header-link { color: var(--ink); }

/* ヒーロー */
.hero { background: var(--bg); border-bottom: 0; }
.form-kicker { font-family: "Shippori Mincho", serif; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
legend, .amount-field label { color: var(--ink); }
legend span, .amount-field label span { background: var(--ink); color: #fff; }
legend small { color: var(--muted); }

/* 習慣ボタン:白×ヘアライン、選択時のみ赤 */
.habit-button,
.habit-button:last-child {
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-soft);
}
.habit-button:hover { border-color: #cfcfd6; background: #fafafa; }
.habit-button.active {
  border: 1px solid var(--red);
  border-radius: 14px;
  background: var(--red);
  color: #fff;
}
.habit-icon,
.habit-button.active .habit-icon { background: transparent; color: inherit; }

/* 金額入力 */
.amount-input-wrap { border: 1px solid var(--hair); border-radius: 14px; background: #fff; }
.amount-input-wrap:focus-within { border-color: var(--ink); }
.yen-mark, .monthly-label, #amountHint { color: var(--muted); }
#monthlyAmount { color: var(--ink); }

/* 発行ボタン:黒の面でフラットに */
.calculate-button,
.calculate-button:hover {
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  transform: none;
}
.calculate-button:hover { background: #26262c; }
.calculate-button span { border-color: rgba(255,255,255,.45); }

/* 結果セクション */
.results-section { background: var(--bg-soft); }

/* 請求書 */
.future-bill { border: 1px solid var(--hair); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(17,17,20,.05); }
.bill-meta, .bill-meta p { color: var(--muted); }
.bill-meta strong { color: var(--ink); }
.invoice-table { border: 1px solid var(--hair); border-radius: 12px; }
.invoice-row { border-bottom-color: var(--hair); }
.invoice-row > * { border-right-color: var(--hair); }
.invoice-labels { background: var(--ink); color: #fff; }
.invoice-remarks-row { border-top-color: var(--hair); }
.invoice-remarks-row > strong { border-right-color: var(--hair); color: var(--ink); }
.invoice-remarks-row p { color: var(--ink-soft); }
.invoice-duration-costs { border-top-color: var(--hair); }
.invoice-duration-costs > p { color: var(--ink); }
.invoice-duration-costs span { color: var(--muted); }
.invoice-duration-costs span strong { color: var(--ink); }

/* 合計請求額(レイアウトは保持し、配色のみ) */
.bill-total {
  border: 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: #fff;
}
.bill-total p { color: var(--muted); }
.bill-total strong { color: var(--red); text-decoration: none; }
.bill-total > span { color: var(--muted); }

/* 投資比較 */
.investment-comparison { border: 1px solid #e1efe8; border-radius: 16px; background: #f4faf7; }
.amount-chip { border-radius: 6px; background: var(--ink); color: #fff; }
.investment-numbers { border-left-color: #d8e6df; }
.investment-numbers p { color: var(--muted); }
.gain-color { color: var(--green); }
.future-scale span { border: 1px solid var(--hair); border-radius: 12px; background: #fff; color: var(--muted); }
.future-scale span:first-child b { color: var(--red); }
.future-scale span:last-child b { color: var(--green); }
.difference-row { border: 1px solid var(--hair); border-radius: 12px; background: #fff; }
.difference-row p, .difference-row small { color: var(--ink-soft); }
.difference-row strong { color: var(--ink); }
.nisa-chart-wrap { border-top-color: #d8e6df; }
.nisa-chart-heading p { color: var(--ink); }
.nisa-chart-heading span { color: var(--muted); }

/* グラフ(SVG) */
.chart-grid-line { stroke: var(--hair); }
.chart-axis { stroke: var(--ink); stroke-width: 1.5; }
.chart-investment-line { stroke: var(--ink); stroke-width: 3; }
.chart-point { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.chart-y-label, .chart-x-label, .chart-axis-title { fill: var(--muted); }
.chart-value-label { fill: var(--ink); }

/* セクション見出し */
.section-title { font-family: "Shippori Mincho", serif; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.section-heading > p:last-child,
.lost-future-heading > p:last-child { color: var(--muted); }
.lost-future-heading h3 { color: var(--ink); }

/* 未来の選択肢カード */
.disadvantages { background: var(--bg); }
.possibility-card { border: 1px solid var(--hair); border-radius: 18px; background: #fff; box-shadow: none; color: var(--ink); }
.possibility-card h3 { color: var(--ink); }
.possibility-card p { color: var(--muted); }
.possibility-card .possibility-number { color: var(--red); }

/* デメリット/メリットカード */
.disadvantage-card { border: 1px solid var(--hair); border-radius: 16px; background: #fff; }
.disadvantage-card h3 { color: var(--ink); }
.disadvantage-card p { color: var(--muted); }
.disadvantage-number { color: var(--red); }
.impact-theme { border-radius: 6px; background: #fdeceb; color: var(--red-deep); }
.benefit-card { border: 1px solid var(--hair); background: #fff; }
.benefit-card .impact-theme { background: #e7f6ef; color: #0f7a50; }
.benefit-card .disadvantage-number { color: var(--green); }

/* 絵文字タイル(レイアウトは既存のgrid中央寄せを流用) */
.flat-illustration { border: 0; border-radius: 18px; background: var(--bg-soft); }
.flat-emoji { font-size: 42px; line-height: 1; }

/* 締め:ダークセクションで引き締める */
.closing { background: var(--ink); border-top: 0; }
.closing h2 { color: #fff; }
.closing-inner > p { color: rgba(255,255,255,.62); }
.secondary-button,
.secondary-button:hover {
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transform: none;
}
.secondary-button:hover { background: rgba(255,255,255,.08); }

/* フッター */
footer { background: var(--ink); }

/* スマホ:絵文字サイズだけ微調整 */
@media (max-width: 780px) {
  .flat-emoji { font-size: 32px; }
}

/* ============================================================
   調整: 請求書A4縦化 / 投資見出しの強調 / 改行バランス
   ============================================================ */

/* 請求書をA4縦(210:297)のシート風に。中央寄せで紙のような佇まいに */
.future-bill {
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
  aspect-ratio: 210 / 297;
}

/* 「もうひとつの未来」を大きく・緑の下線で目立たせる */
.investment-copy .mini-label {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--green);
  color: var(--green);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 800;
  letter-spacing: .04em;
}

/* 見出しの改行が崩れないようサイズ・行間を調整 */
.investment-copy h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.55;
}

/* 「積み立てた未来の資産」を目立つパネル+大きな数字に */
.investment-numbers > div:first-child {
  padding: 22px 24px;
  border: 1px solid #cfe9dc;
  border-radius: 16px;
  background: linear-gradient(180deg, #eefaf3, #ffffff);
}
.investment-numbers > div:first-child p {
  margin-bottom: 12px;
  color: #0f7a50;
  font-size: clamp(15px, 1.9vw, 21px);
  font-weight: 800;
  letter-spacing: .02em;
}
.investment-numbers > div:first-child strong {
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.1;
}

/* 改行のバランスを最適化(対応ブラウザ) */
.closing h2,
.investment-copy h3 { text-wrap: balance; }

@media (max-width: 780px) {
  /* スマホでは請求書は内容に合わせる(縦長固定は解除) */
  .future-bill { aspect-ratio: auto; }
  .investment-numbers > div:first-child { padding: 18px; }
}

/* ============================================================
   調整: 5選カードを2列に / 締めとの間に余白
   ============================================================ */

/* 「続けるデメリット」「減らすメリット」を2列でスッキリ見せる */
.disadvantage-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* メリット最後のカードと「まずは」の間に余白を確保
   (下方向の食い込みマージンを解除し、白い余白を見せる) */
.disadvantages {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  /* スマホは縦1列に戻す(2列だと窮屈なため) */
  .disadvantage-grid {
    grid-template-columns: 1fr;
  }
}

/* スマホで締め見出しが見切れないようサイズ調整 */
@media (max-width: 780px) {
  .closing h2 { font-size: 28px; }
}

/* ============================================================
   改善反映: フォント脱Google / A4発行欄 / 可読性 / 書籍CTA
   ============================================================ */

/* Google Fontsを使わず、OS標準の日本語フォントに割り当てる(外部依存・IP流出の回避)
   既存CSSの font-family 指定はそのままに、名前だけローカルへ橋渡しする */
@font-face {
  font-family: "Shippori Mincho";
  src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"),
       local("YuMincho"), local("Yu Mincho"), local("Noto Serif CJK JP"), local("Noto Serif JP");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: local("Hiragino Kaku Gothic ProN"), local("Hiragino Sans"),
       local("Yu Gothic"), local("YuGothic"), local("Meiryo"), local("Noto Sans CJK JP");
  font-weight: 100 900;
  font-display: swap;
}

/* 請求書をA4縦に保ちつつ、下部の空白を発行欄で締める */
.future-bill {
  display: flex;
  flex-direction: column;
}
.bill-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.bill-foot-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.bill-issuer { margin: 0; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* 投資の注記(名目・インフレ未考慮) */
.investment-copy .caveat {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* カード本文のコントラストを上げて読みやすく(薄グレー→濃いグレー) */
.possibility-card p,
.disadvantage-card p { color: #56565e; }

/* 書籍CTA(PR) */
.book-cta {
  padding: 84px clamp(20px, 6vw, 90px) 24px;
  text-align: center;
}
.book-cta-inner { max-width: 860px; margin: 0 auto; }
.pr-label {
  display: inline-block;
  margin: 0 0 16px;
  padding: 3px 11px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.book-cta-lead {
  max-width: 540px;
  margin: 14px auto 0;
  color: #56565e;
  font-size: 14px;
  line-height: 1.9;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 600px;
  margin: 38px auto 0;
}
.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17, 17, 20, .12);
}
.book-cover {
  width: 150px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(17, 17, 20, .2);
}
.book-name { font-family: "Shippori Mincho", serif; font-size: 17px; font-weight: 700; }
.book-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.ku-link {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 700;
}
.pr-note { margin: 26px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 780px) {
  .book-cta { padding: 56px 18px 14px; }
  .book-grid { gap: 12px; max-width: none; }
  .book-card { padding: 16px 12px; gap: 10px; }
  .book-cover { width: 108px; }
  .book-name { font-size: 15px; }
  .bill-foot { gap: 10px; }
}

/* ============================================================
   調整: 緑のメインボタン / スマホ・ファーストビューの整理
   ============================================================ */

/* メインの発行ボタンを緑(#29965f)に */
.calculate-button,
.calculate-button:hover {
  background: #29965f;
  color: #fff;
}
.calculate-button:hover { background: #237c4d; }
.calculate-button span { border-color: rgba(255, 255, 255, .55); }

/* スマホ:ファーストビューの横はみ出し(右カラム・金額の見切れ)を解消 */
@media (max-width: 780px) {
  .hero { overflow-x: hidden; }
  .hero-content,
  .hero-calculator {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .habit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .habit-button,
  .habit-button:last-child { min-width: 0; }
  .habit-button > span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  /* 金額入力は中央寄せでフル幅に(右に寄って見切れるのを防ぐ) */
  .amount-input-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   ファーストビュー:余白を広げ、詰まった印象をやわらげる
   (色・構成は変えず、間隔とボタンのゆとりだけ調整)
   ============================================================ */
.form-kicker { margin-bottom: 42px; }
legend,
.amount-field label { margin-bottom: 20px; }
.habit-grid { gap: 12px; }
.habit-button,
.habit-button:last-child {
  min-height: 56px;
  padding: 10px 16px;
}
.amount-field { margin-top: 50px; }
#amountHint { margin-top: 14px; }
.calculate-button,
.calculate-button:hover { margin-top: 44px; }

@media (max-width: 780px) {
  .form-kicker { margin-bottom: 28px; }
  .habit-grid { gap: 9px; }
  .habit-button,
  .habit-button:last-child { min-height: 50px; padding: 8px 12px; }
  .amount-field { margin-top: 34px; }
  .calculate-button,
  .calculate-button:hover { margin-top: 30px; }
}

/* ============================================================
   調整: 書籍CTAを1冊ずつ中央表示 / フッターのブログ導線
   ============================================================ */
.book-grid {
  display: flex;
  justify-content: center;
  grid-template-columns: none;
}
.book-grid .book-card { width: min(100%, 320px); }

/* 運営ブログ(sekoiine.com)へのリンク */
.footer-site { margin: 14px 0 0; }
.footer-site a {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 2px;
}
.footer-site a:hover { color: #fff; }

@media (max-width: 780px) {
  .book-grid .book-card { width: min(100%, 280px); }
}

/* ============================================================
   調整: ボタンを緑に統一(#29965f)
   ============================================================ */
/* 選択中の習慣ボタンは赤のまま(他のボタンは緑) */
.habit-button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
/* 「Amazonで見る」 */
.book-buy { background: #29965f; color: #fff; }
.book-card:hover .book-buy { background: #237c4d; }
/* 「項目と金額を変えて、もう一度見る」(締めのダーク背景上) */
.secondary-button,
.secondary-button:hover {
  border: 1px solid #29965f;
  background: #29965f;
  color: #fff;
  box-shadow: none;
  transform: none;
}
.secondary-button:hover { background: #237c4d; }

/* ============================================================
   書籍のランキング獲得バッジ
   ============================================================ */
.book-rank {
  display: inline-block;
  margin-bottom: 2px;
  padding: 5px 13px;
  border: 1px solid #efd9a0;
  border-radius: 999px;
  background: #fdf4dc;
  color: #9a6a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 780px) {
  .book-rank { font-size: 10px; padding: 4px 10px; }
}

/* ============================================================
   調整: KUリンクを青く / 投資セクションを語りかけ構成に / 入力プレースホルダ
   ============================================================ */

/* Kindle Unlimitedリンクを青字にして「リンク」と分かるように */
.ku-link { color: #1666c8; }
.ku-link:hover { color: #0f4fa0; }

/* 空欄の金額入力のプレースホルダ */
#monthlyAmount::placeholder { color: #c8c8cf; }

/* 「もうひとつの未来」を独立させ、語りかけ→未来の資産の縦の流れに */
.investment-comparison {
  display: block;
  text-align: center;
}
.investment-copy {
  max-width: 640px;
  margin: 0 auto;
}
.investment-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.55;
}
.investment-narrative {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}
.investment-copy .caveat {
  max-width: 560px;
  margin: 14px auto 0;
}

/* 未来の資産(数字)を中央寄せで下に続ける */
.investment-numbers {
  max-width: 720px;
  margin: 40px auto 0;
  padding-left: 0;
  border-left: 0;
}
.investment-numbers > div:first-child { text-align: center; }
.future-scale {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.difference-row {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* グラフ見出しも中央に揃える */
.nisa-chart-wrap { margin-top: 40px; }

/* ============================================================
   調整: 投資見出しを「考えてもらう」ゆったり行間 / 注記をチャート下へ
   ============================================================ */
/* 4行をゆっくり読ませる(間を持たせる) */
.investment-copy h3 {
  line-height: 1.9;
}

/* チャートの下に移したナレーション＋注記 */
.investment-footnote {
  max-width: 600px;
  margin: 30px auto 0;
  text-align: center;
}
.investment-footnote .investment-narrative {
  margin: 0 auto;
}
.investment-footnote .caveat {
  display: block;
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* ============================================================
   調整: ランキングをカード枠の外(上)へ / 表紙を大きく / サブタイトル
   ============================================================ */
.book-grid { display: flex; justify-content: center; }
.book-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 340px);
}
.book-unit .book-card { width: 100%; }

/* ランキングはカードの外・上に独立配置 */
.book-unit .book-rank {
  margin: 0 0 16px;
}

/* 表紙を大きく */
.book-cover { width: 200px; }

/* タイトル + サブタイトル */
.book-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.book-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 780px) {
  .book-unit { width: min(100%, 300px); }
  .book-cover { width: 160px; }
  .book-sub { font-size: 11px; }
}

/* ============================================================
   調整: 「月●円」を黒枠・背景なしのただの太字に
   ============================================================ */
.amount-chip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

/* ============================================================
   請求書のSNSシェア
   ============================================================ */
.share-block {
  max-width: 720px;
  margin: 30px auto 0;
  text-align: center;
}
.share-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.share-button:hover { background: #26262c; }
.share-x {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease;
}
.share-x:hover { background: #f0f0f2; }
.share-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* シェアの貼り付け案内 */
.share-status {
  margin: 10px 0 0;
  min-height: 16px;
  color: #0f7a50;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

/* ============================================================
   ファーストビュー: 何ができるサイトかを伝えるリード
   ============================================================ */
.hero-lead {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.hero-eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.hero-title {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero-title .hl { color: var(--red); }
.hero-sub {
  max-width: 580px;
  margin: 24px auto 0;
  color: #56565e;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 2;
}
/* H1ができたので、フォーム見出しは小さめの誘導文に */
.form-kicker {
  margin-bottom: 28px;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 700;
}

@media (max-width: 780px) {
  .hero-lead { margin-bottom: 32px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-sub { margin-top: 18px; line-height: 1.95; }
  .form-kicker { margin-bottom: 22px; }
}

/* 見出しの語が行末で割れないように */
.hero-title { text-wrap: balance; }
.hero-title .nw { white-space: nowrap; }

/* 追記した見出しは控えめサイズに */
.hero-title { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.6; }

/* 見出しを説明文(.hero-sub)と同じ大きさに */
.hero-title {
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 2;
}

/* .hero h1 より詳細度を上げて、見出しを説明文と同サイズに確実に揃える */
.hero-lead .hero-title {
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 2;
}

/* ============================================================
   ヒーロー背景にイラストを敷く(成長・時間・未来のイメージ)
   ============================================================ */
.hero {
  background-color: #eef3f8;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.78) 46%, #ffffff 72%),
    url("images/hero-bg.png");
  background-position: center top, center top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

/* ============================================================
   ヒーロー: イラスト背景 + 白カードでフォームをまとめる
   ============================================================ */
.hero {
  background-color: #d9e6f2;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.52)),
    url("images/hero-bg.png");
  background-position: center top, center top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  padding-top: 148px;
  padding-bottom: 92px;
}
.hero-card {
  width: 100%;
  padding: 34px clamp(20px, 4vw, 44px) 40px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(38, 56, 84, .18);
}
.hero-lead { margin-bottom: 30px; }

@media (max-width: 780px) {
  .hero { padding-top: 116px; padding-bottom: 56px; }
  .hero-card { padding: 24px 16px 30px; border-radius: 18px; }
}

/* 「もうひとつの未来」冒頭のイラスト */
.invest-figure {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 30px;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(38, 56, 84, .18);
}
@media (max-width: 780px) {
  .invest-figure { width: min(100%, 248px); margin-bottom: 22px; }
}

/* ============================================================
   ヒーロー見出しをフラット&スタイリッシュに(装飾・色ズレを除去)
   ============================================================ */
.hero-lead .hero-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: var(--ink);
}
/* 元テーマの「span を赤くする / ピンクの下線装飾」を無効化 */
.hero-lead .hero-title span { color: inherit; }
.hero-lead .hero-title span::after { display: none; content: none; }
/* 強調は「いくら」だけ赤に */
.hero-lead .hero-title .hl { color: var(--red); }
.hero-lead .hero-sub { margin-top: 14px; }

/* 「もうひとつの未来」: 2枚の対比イラスト(使い続けた未来 → 積み立てた未来) */
.invest-figures {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 18px);
  margin: 0 auto 30px;
}
.invest-fig {
  flex: 1 1 0;
  max-width: 270px;
  margin: 0;
  text-align: center;
}
.invest-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(38, 56, 84, .16);
}
.invest-fig figcaption {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.invest-fig.future figcaption { color: #0f7a50; }
.invest-arrow {
  flex: 0 0 auto;
  color: #9aa3ad;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
}
@media (max-width: 560px) {
  .invest-fig figcaption { margin-top: 8px; font-size: 10px; }
}

/* ============================================================
   金額入力: ヒントをラベル横に / ±1000ステッパー / プリセット
   ============================================================ */
.amount-field label { flex-wrap: wrap; }
.amount-hint {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.amount-control {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.amount-control .amount-input-wrap {
  width: auto;
  flex: 1 1 auto;
  margin: 0;
}
.step-btn {
  flex: 0 0 auto;
  width: 54px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.step-btn:hover { border-color: #cfcfd6; background: #f5f5f7; }

.amount-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 440px;
  margin: 14px auto 0;
}
.preset-btn {
  padding: 8px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.preset-btn:hover { border-color: var(--ink); color: var(--ink); }

/* 見出しは全部黒に(強調の赤を解除) */
.hero-lead .hero-title .hl { color: inherit; }

@media (max-width: 780px) {
  .step-btn { width: 46px; font-size: 22px; }
  .preset-btn { padding: 7px 13px; font-size: 12px; }
}

/* 旧ルールでヒントが非表示になっていたため、ラベル横で常に表示する */
.amount-field #amountHint { display: inline; }

/* 見出しは中央寄せ・バランス折り返しを明示 */
.hero-lead { text-align: center; }
.hero-lead .hero-title { text-align: center; text-wrap: balance; }

/* 旧 .hero h1 の max-width:460px / margin:0 を解除し、カード幅で真ん中に */
.hero-lead .hero-title {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   ヘッダーロゴ(請求書アイコン) / 習慣ボタンの文字を少し大きく
   ============================================================ */
.brand-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}
/* 習慣ボタンの文字を1段大きく(小さすぎ対策) */
.habit-button,
.habit-button:last-child { font-size: 13px; }
@media (max-width: 780px) {
  .habit-button,
  .habit-button:last-child { font-size: 11px; }
}

/* ============================================================
   締め: 「最初の一歩」イラスト(新芽) + 一言
   ============================================================ */
.closing-art {
  width: 88px;
  margin: 0 auto 20px;
}
.closing-art svg { display: block; width: 100%; height: auto; }
.closing-inner .closing-lead {
  margin: 0 0 16px;
  color: #6fc792;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
@media (max-width: 780px) {
  .closing-art { width: 70px; margin-bottom: 16px; }
  .closing-inner .closing-lead { font-size: 12px; margin-bottom: 12px; }
}

/* ============================================================
   スマホ: 横はみ出しを止め、発行ボタンまでファーストビューに収める
   ============================================================ */
/* 金額入力欄が縮めるように(これが横はみ出しの原因) */
.amount-input-wrap { grid-template-columns: auto minmax(0, 1fr) auto; }
#monthlyAmount { min-width: 0; }

@media (max-width: 780px) {
  .hero { padding-top: 84px; padding-bottom: 40px; overflow-x: hidden; }
  .hero-card { padding: 20px 14px 24px; }
  .hero-lead { margin-bottom: 14px; }
  .hero-lead .hero-sub { margin-top: 8px; }
  legend,
  .amount-field label { margin-bottom: 10px; }
  .habit-grid { gap: 7px; }
  .habit-button,
  .habit-button:last-child { min-height: 44px; padding: 6px 10px; }
  .amount-field { margin-top: 16px; }
  .amount-presets { margin-top: 10px; gap: 6px; }
  .step-btn { width: 44px; }
  .calculate-button,
  .calculate-button:hover { margin-top: 16px; }
}

/* スマホ: 発行ボタンをファーストビューに収めるため、もう一段コンパクトに */
@media (max-width: 780px) {
  .hero { padding-top: 74px; padding-bottom: 36px; }
  .hero-card { padding: 16px 13px 20px; }
  .hero-lead { margin-bottom: 9px; }
  .hero-lead .hero-sub { margin-top: 5px; font-size: 12px; }
  .habit-grid { gap: 6px; }
  .habit-button,
  .habit-button:last-child { min-height: 40px; padding: 5px 9px; }
  legend,
  .amount-field label { margin-bottom: 7px; }
  .amount-field { margin-top: 11px; }
  #monthlyAmount { font-size: 28px; }
  .yen-mark { font-size: 22px; }
  .step-btn { width: 42px; font-size: 20px; }
  .amount-presets { margin-top: 8px; }
  .preset-btn { padding: 6px 11px; font-size: 11px; }
  .calculate-button,
  .calculate-button:hover { margin-top: 12px; }
}

/* ============================================================
   ヘッダーロゴ: 黒枠を外し、請求書アイコンのみに
   ============================================================ */
.brand-mark {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }

/* ============================================================
   健康リスクの注意喚起カード(公的機関リンク)
   ============================================================ */
.health-notice {
  max-width: 1100px;
  margin: 70px auto 0;
}
.health-heading { margin-bottom: 22px; text-align: center; }
.health-heading > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.health-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: 14px auto 0;
  padding: 18px 22px;
  border: 1px solid #ecd9c8;
  border-radius: 14px;
  background: #fff8f1;
}
.health-ico { font-size: 22px; line-height: 1.4; flex: 0 0 auto; }
.health-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}
.health-card a {
  display: inline-block;
  margin-top: 6px;
  color: #1666c8;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
@media (max-width: 780px) {
  .health-notice { margin-top: 50px; }
  .health-card { padding: 15px 16px; }
}

/* ============================================================
   健康注意を「続けるデメリットの下」に置く調整 / 書籍CTAの背景分離
   ============================================================ */
/* デメリットとメリットの間に入るので、上下に程よい間隔・軽い見出しに */
.health-notice {
  margin: 36px auto 8px;
}
.health-heading { margin-bottom: 14px; }
.health-lead {
  margin: 0;
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}

/* 書籍CTAを独立したブロックに見せる(背景を分ける) */
.book-cta {
  margin: 0 calc(clamp(20px, 6vw, 90px) * -1);
  padding-right: clamp(20px, 6vw, 90px);
  padding-left: clamp(20px, 6vw, 90px);
  border-top: 1px solid #e7ddd0;
  background: #faf6ef;
}

@media (max-width: 780px) {
  .book-cta { margin: 0 -18px; padding-right: 18px; padding-left: 18px; }
}

/* ============================================================
   フッターをもっと細く
   ============================================================ */
footer { padding: 30px 24px; }
.footer-brand { margin-bottom: 10px; font-size: 15px; }
.footer-site { margin-top: 8px; }
.footer-site a { font-size: 11px; }
.copyright { margin-top: 14px; }

/* ============================================================
   「その他」の自由入力欄
   ============================================================ */
.other-input-wrap {
  margin-top: 10px;
}
#otherText {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
#otherText:focus {
  outline: 0;
  border-color: var(--ink);
}
#otherText::placeholder { color: #c8c8cf; }

/* ============================================================
   請求書テーブルの崩れ修正 / スマホの横スクロール解消
   ============================================================ */
/* テーブルを「ちゃんとした四角」に(角丸を除去) */
.invoice-table {
  border: 1px solid var(--hair);
  border-radius: 0;
  overflow: hidden;
}
/* 「備考」をテーブルの外の独立ボックスに(上はテーブルと共有して連結) */
.invoice-remarks-row {
  border: 1px solid var(--hair);
  border-top: 0;
}

/* スマホ: investment-section の余白ミスマッチで横にはみ出していたのを修正 */
@media (max-width: 780px) {
  .investment-section {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
}
/* 念のため、横方向のスクロール(指で動く)を全体で止める */
html, body { overflow-x: hidden; }

/* 請求書テーブルがコンテナ(カード)幅を超えないよう、列を縮められるように */
.invoice-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, .6fr) minmax(0, 1fr); }
.invoice-remarks-row { grid-template-columns: 98px minmax(0, 1fr); }
@media (max-width: 780px) {
  .invoice-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr); }
  .invoice-remarks-row { grid-template-columns: 58px minmax(0, 1fr); }
}

/* ヘッダーロゴ画像(ハート+ビール+タバコ) */
.brand-mark { width: 34px; height: 34px; }
.brand-mark img { width: 34px; height: 34px; display: block; object-fit: contain; }
