/* =========================
   タイトル
========================= */
.c-section-title {
  text-align: left;
  margin: 0 0 32px;
}

.c-section-title__text {
  display: inline-block;
  position: relative;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(24px);
  background-image: linear-gradient(to right, #2fbf71, #2fbf71);
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: left 95%;
  transition: opacity 0.6s ease, transform 0.6s ease,
    background-size 0.8s ease 0.2s;
}

.c-section-title.is-active .c-section-title__text {
  opacity: 1;
  transform: translateY(0);
  background-size: 100% 3px;
}

@media (max-width: 640px) {
  .c-section-title {
    margin-bottom: 24px;
  }

  .c-section-title__text {
    background-position: left 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-section-title__text {
    opacity: 1;
    transform: none;
    background-size: 100% 3px;
    transition: none;
  }
}

/* =========================
  料金
========================= */
:root {
  --blue: #58b0df;
  --blue-main: #4aa0d8;
  --blue-dark: #2f86c6;
  --blue-light: #eaf5ff;
  --beige: #f2dfc8;
  --text: #222;
  --muted: #4b5563;
  --red: #e23b2e;
  --max-panel: 1100px;
  --max-inner: 1000px;
  --fees-wrap: 1000px;
  --fees-col1: 180px;
  --fees-gap: 34px;
  --fees-col2: 560px;
}

/* =========================
  共通レイアウト
========================= */
.blue-stage {
  background: var(--blue);
  padding: 40px;

  width: 100%;
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  border-bottom-left-radius: 120px;
  border-bottom-right-radius: 120px;

  margin: 30px 0;
}

.beige-panel {
  max-width: var(--max-panel);
  margin: 0 auto;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #fffaf3 8%,
    var(--beige) 22%,
    var(--beige) 78%,
    #fffaf3 92%,
    #ffffff 100%
  );
  border: 2px solid #ffffff;
  padding: 24px 0;
}

.panel-inner {
  max-width: var(--max-inner);
  margin: 0 auto;
  padding: 0 16px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
    "MS PMincho", serif;
  color: var(--text);
}

.flyer-head {
  width: 100%;
  max-width: var(--max-inner);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

.flyer-head__title img {
  width: 100%;
  max-width: 280px;
  display: block;
}

.flyer-head__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.flyer-lead {
  margin: 12px 30px 16px;
  font-size: 16px;
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.feature {
  background: #fff;
  border: 2px solid var(--blue-main);
  border-radius: 12px;
  padding: 16px;
}

.feature__head {
  margin-bottom: 10px;
  padding: 7px 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 2px solid var(--blue-main);
  border-radius: 999px;
}

.feature__strong {
  font-size: 18px;
  font-weight: 700;
}

.feature__text {
  font-size: 15px;
  line-height: 1.65;
}

.is-red {
  color: var(--red);
}

.flyer-bottom {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.flyer-bottom__img {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flyer-bottom__img img {
  width: 100%;
  display: block;
}

.flyer-bottom__text {
  margin-top: 10px;
  font-size: 12px;
}

.qr-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 14px;
}

.qr-media__item {
  text-align: center;
}

.qr-media__item img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.qr-media__caption {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.qr-flow__title {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--blue-main);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
}

.qr-flow__list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qr-flow__step {
  position: relative;
  background: #fff;
  border: 2px solid var(--blue-main);
  border-radius: 10px;
  padding: 16px 12px 14px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-flow__no {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-main);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.qr-flow__img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-flow__img img {
  max-height: 100%;
  width: auto;
}

.qr-flow__cap {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.fees {
  width: min(var(--fees-wrap), 100%);
  margin: 0 auto;
}

.fees-center,
.fees__message,
.fees__bottom {
  width: 100%;
}

.fees-center {
  display: flex;
  justify-content: center;
}

.fees-table {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  transform: none !important;
  text-align: left;
}

.fees-row {
  display: grid;
  grid-template-columns: var(--fees-col1) minmax(0, var(--fees-col2));
  column-gap: var(--fees-gap);
  align-items: center;
  margin: 12px 0;
}

.fees-label {
  background: var(--blue-main);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

.fees-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
}

.fees-note {
  margin: 6px 0 18px;
  padding-left: calc(var(--fees-col1) + var(--fees-gap));
  font-size: 12px;
  color: var(--muted);
}

.fees-option {
  display: grid;
  grid-template-columns: var(--fees-col1) minmax(0, var(--fees-col2));
  column-gap: var(--fees-gap);
  align-items: flex-start;
  margin: 18px 0 0;
}

.fees-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.fees-option-list li {
  margin: 10px 0;
  padding-left: 1em;
  text-indent: -1em;
}

.fees__message {
  margin: 14px auto 0;
  color: var(--red);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.8;
  width: max-content;
  max-width: 100%;
  text-align: left;
}

.fees__bottom {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.fees__image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.qr-cta {
  background: #cfe9f8;
  border: 2px solid var(--blue-main);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .flyer-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .features,
  .flyer-bottom,
  .qr-media {
    grid-template-columns: 1fr;
  }

  .qr-flow__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .fees-table {
    width: 100%;
  }

  .fees-row {
    grid-template-columns: 100px 1fr;
    column-gap: 18px;
    margin: 12px 0;
  }

  .fees-note {
    padding-left: inherit;
  }

  .fees-option {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .fees-option-list {
    width: fit-content;
    margin: 0 auto;
    text-align: left;
    font-size: 15px;
  }

  .fees__message {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 420px) {
  .qr-flow__list {
    grid-template-columns: 1fr;
  }
}

/* =========================
  流れ
========================= */
:root {
  --brand-blue: #1f6fd1;
  --circle-fill: #eaf5ff;
  --text-main: #222;
  --text-muted: #6b7280;
  --arrow: #cfd8e3;
  --maxw: 1000px;
  --gap: clamp(12px, 2vw, 24px);
  --arrow-size: 28px;
  --arrow-offset: 7px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
    "MS PMincho", serif;
  line-height: 1.6;
  background: #f0f0f1;
}

.flow {
  max-width: var(--maxw);
  margin: 40px auto 100px;
  padding: 0 24px;
  text-align: center;
}

.flow > h2 {
  margin: 0 0 36px;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.08em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.step {
  position: relative;
  padding: 0 8px;
}

.icon-wrap {
  position: relative;
  width: clamp(100px, 14vw, 160px);
  height: clamp(100px, 14vw, 160px);
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--circle-fill);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(234, 245, 255, 0.6) inset;
}

.icon-wrap img {
  display: block;
  max-width: 52%;
  max-height: 52%;
  height: auto;
}

.step-note {
  margin: 0;
  font-size: clamp(11px, 1.2vw, 14px); /* タイトルより小さめ */
  line-height: 1.6;
  color: var(--text-muted); /* 若干薄い色 */
}

@media (min-width: 860px) {
  .step .icon-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + var(--gap) / 2 + var(--arrow-offset) + 6px);
    transform: translate(-50%, -50%);
    width: var(--arrow-size);
    height: var(--arrow-size);
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 4l8 8-8 8" fill="none" stroke="%23cfd8e3" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>')
      center/contain no-repeat;
    pointer-events: none;
  }

  .step:last-child .icon-wrap::after {
    display: none;
  }
}

.step-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 18px);
}

.step:focus-within .icon-wrap {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

@media (max-width: 859.98px) {
  .flow {
    margin: 28px auto 72px;
    padding: 0 12px;
  }

  .steps {
    --gap: 10px;
    --arrow-size: 20px;
    --arrow-offset: 5px;
  }

  .icon-wrap {
    width: clamp(70px, 20vw, 100px);
    height: clamp(70px, 20vw, 100px);
    margin-bottom: 10px;
    box-shadow: 0 0 0 6px rgba(234, 245, 255, 0.6) inset;
  }

  .icon-wrap img {
    max-width: 50%;
    max-height: 50%;
  }

  .step-title {
    font-size: 12px;
  }

  .step .icon-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + var(--gap) / 2 + var(--arrow-offset) + 6px);
    transform: translate(-50%, -50%);
    width: var(--arrow-size);
    height: var(--arrow-size);
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 4l8 8-8 8" fill="none" stroke="%23cfd8e3" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>')
      center/contain no-repeat;
    pointer-events: none;
  }

  .step:last-child .icon-wrap::after {
    display: none;
  }
}

@media (max-width: 630px) {
  .steps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .step {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
  }

  .icon-wrap {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin: 0;
    box-shadow: 0 0 0 4px rgba(234, 245, 255, 0.6) inset;
  }

  .icon-wrap img {
    max-width: 50%;
    max-height: 50%;
  }

  .step-title {
    font-size: 14px;
    margin: 0 0 4px;
  }

  .step .icon-wrap::after {
    content: "";
    position: absolute;
    left: 32px;
    top: calc(100% + 8px);
    transform: translateX(-50%) rotate(90deg);
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 4l8 8-8 8" fill="none" stroke="%23cfd8e3" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>')
      center/contain no-repeat;
    pointer-events: none;
  }

  .step:last-child .icon-wrap::after {
    display: none;
  }
}

/* =========================
  支払い方法
========================= */
:root {
  --bg: #ffffff;
  --ink: #111;
  --bar: #3c3c3c;
  --border: #cfcfcf;
  --gap: 14px;
}

* {
  box-sizing: border-box;
}

.sheet {
  margin: 24px auto;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  max-width: 1000px;
  width: min(1000px, 100%);
  border-radius: 8px;
}

.sheet {
  max-width: 1000px;
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 16px;
  background: var(--bg);
}

.panel {
  border: 1px solid #e6e6e6;
  background: #fff;
}

.panel__title {
  background: var(--bar);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  font-size: 14px;
}

.credit-row {
  padding: 12px;
}

.credit-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.logo-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo--xs {
  height: 22px;
}

.logo--lg {
  height: 46px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 12px;
  align-items: center;
}

.qr-grid {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.qr-grid > img.logo {
  height: 36px;
}

.qr-bottom {
  margin-top: 8px;
  border: 1px solid #9cc7ff;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 900px) {
  .logo-row {
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .sheet {
    padding: 14px;
  }
}
