/* =========================
   タイトル
========================= */
.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;
  }
}

/* =========================
  日常生活サポート
========================= */
.story-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.story {
  display: flex;
  gap: 16px;
  align-items: center;
}

.story-blocks .story:nth-child(2) {
  flex-direction: row-reverse;
}

.story__img {
  flex: 0 0 38%;
}

.story__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 2px solid #ff9b33;
}

.story__text {
  flex: 1;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
}

/* =========================
   区切り線
========================= */

.flyer-separator {
  margin: 26px 0;
  border: none;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #ff9b33 0,
    #ff9b33 12px,
    transparent 12px,
    transparent 20px
  );
}

.flyer-separator--bold {
  height: 3px;
}

/* =========================
   キャッチコピー
========================= */

.flyer-catch {
  text-align: center;
  margin: 10px 0 20px;
}

.flyer-catch__lead {
  font-size: 20px;
  margin-bottom: 6px;
}

.flyer-catch__main {
  font-size: 25px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
}

/* =========================
   できること一覧＋イラスト
   PC：右下に“外へ”かぶせる
   SP：ボックス内（リスト下）に表示
========================= */

.support-box {
  position: relative;
  background: #e6f3fb;
  border: 4px solid #6b3f1d;
  border-radius: 6px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  box-sizing: border-box;
  overflow: visible;
}

/* リスト */
.support-list {
  margin: 0;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.9;
  color: #222;
  max-width: 420px;
}

@media (min-width: 769px) {
  .support-box {
    min-height: 220px;
  }

  .support-illust {
    position: absolute;
    right: -20px;
    bottom: -18px;
    width: 200px;
    z-index: 3;
    pointer-events: none;
  }

  .support-illust img {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .story {
    flex-direction: column;
  }

  .story-blocks .story:nth-child(2) {
    flex-direction: column;
  }

  .flyer-catch__main {
    font-size: 18px;
  }

  .support-box {
    max-width: 100%;
    padding: 16px;
    overflow: hidden;
  }

  .support-illust {
    position: static;
    width: 160px;
    margin: 12px auto 0;
    pointer-events: auto;
  }

  .support-illust img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* =========================
  見守りサービス
========================= */
: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;
}

.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: 580px 1fr;
  gap: 24px;
  align-items: center;
}

.flyer-head__title {
  width: 100%;
}

.flyer-head__title img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  margin-top: -55px;
}

.flyer-head__text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.flyer-lead {
  margin: 12px 30px 16px;
  font-size: 20px;
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.feature {
  background: #ffffff;
  border: 2px solid var(--blue-main);
  border-radius: 12px;
  padding: 16px;
}

.feature__head {
  margin: 0 0 10px;
  padding: 7px 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 2px solid var(--blue-main);
  border-radius: 999px;
}

.feature__head--solid {
  background: var(--blue-dark);
  color: #ffffff;
  border-color: var(--blue-dark);
}

.feature__strong {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.feature__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.is-red {
  color: var(--red);
}

.flyer-note {
  margin: 12px 0;
  font-size: 13px;
  color: var(--muted);
}

.flyer-note2 {
  margin: 12px 0;
  font-size: 20px;
  text-align: center;
  color: var(--muted);
}

.flyer-bottom {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.flyer-bottom__img {
  background: #ffffff;
  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;
  line-height: 1.6;
}

.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-media__caption--image img {
  max-width: 120px;
  margin: 0 auto;
  display: block;
}

.qr-flow {
  margin: 6px 0 14px;
  max-width: 100%;
}

.qr-flow__title {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: var(--blue-main);
  color: #ffffff;
  font-size: 18px;
  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;
  overflow: visible;
}

.qr-flow__step {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--blue-main);
  border-radius: 10px;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.qr-flow__no {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-main);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.qr-flow__img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.qr-flow__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.qr-flow__cap {
  margin-top: auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.qr-cta {
  background: #cfe9f8;
  border: 2px solid var(--blue-main);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 940px) {
  .flyer-head {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .flyer-head__title img {
    margin: 0 auto;
    max-width: 440px;
    margin-top: -60px;
  }

  .features,
  .flyer-bottom,
  .qr-media {
    grid-template-columns: 1fr;
  }

  .qr-flow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 12px;
    padding-left: 12px;
  }

  .qr-cta {
    font-size: 16px;
  }
}

@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 3px #58b0df inset;
}

.icon-wrap img {
  display: block;
  max-width: 52%;
  max-height: 52%;
  height: auto;
}

.step-note {
  margin: 0;
  font-size: clamp(11px, 2.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;
  }
}
