/* lp05 リニューアル(2026-09-29)の上書き。style.css の後に読み込む */

/* FV: 文字入りの一枚絵 + キャンペーンは写真に重ねず下に置く */
.p-mv--v2 {
  height: auto;
  min-height: 0;
  background: #eef6fb;
}
.p-mv2__hero {
  margin: 0;
}
.p-mv2__hero img {
  display: block;
  width: 100%;
  height: auto;
}
.p-mv2__cta {
  position: relative;
  padding-bottom: 2.5rem;
}
.p-mv--v2 .p-mv-cta {
  margin: -3.5rem auto 0;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 98, 168, 0.12);
  border-radius: 12px;
}
@media screen and (max-width: 767px) {
  .p-mv--v2 {
    height: auto;
    min-height: 0;
  }
  .p-mv2__cta {
    padding-bottom: 1.5rem;
  }
  .p-mv--v2 .p-mv-cta {
    margin: 0 auto;
    padding: 1.25rem 1rem 1rem;
    border-radius: 0 0 12px 12px;
  }
}

/* 泡の大きさ比較: スマホは横スクロール表をやめて縦のカードにする */
.p-about__cards {
  display: none;
}
@media screen and (max-width: 767px) {
  .p-about__block {
    display: none;
  }
  .p-about__cards {
    display: grid;
    gap: 12px;
    margin-top: 2rem;
  }
  .p-about__cards li {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 16px 18px;
  }
  .p-about__cards li.is-main {
    background: #0f62a8;
    color: #fff;
  }
  .p-about__cards .name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f62a8;
    margin-bottom: 8px;
  }
  .p-about__cards li.is-main .name {
    color: #fff;
  }
  .p-about__cards dl {
    display: grid;
    grid-template-columns: 4.5em 1fr;
    row-gap: 4px;
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .p-about__cards dt {
    font-weight: 700;
    opacity: 0.8;
  }
}

/* YouTube: 押すまで読み込まない */
.p-media__facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}
.p-media__facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-media__facade .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(15, 98, 168, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.p-media__facade .play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.p-media__movie iframe {
  border-radius: 8px;
}

/* キャンペーン枠を外したCTA（ボタンだけ） */
.p-cta--btn {
  padding: 3rem 0;
}
@media screen and (max-width: 767px) {
  .p-cta--btn {
    padding: 2rem 0;
  }
}

/* 家中の図: スマホも横スクロールさせず画面幅に収め、タップで拡大 */
.p-available__block .inner {
  display: block;
}
.p-available__zoom {
  display: none;
}
@media screen and (max-width: 767px) {
  .p-available__block {
    width: auto;
  }
  .p-available__block .inner {
    width: 100%;
  }
  .p-available__block .inner img {
    width: 100%;
    height: auto;
  }
  .p-available__zoom {
    display: block;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: #555;
    text-align: center;
  }
}

/* 小見出しの上下の線をやめ、文字の大きさと色で区切る */
.p-feature__block .text-border {
  border: none;
  padding: 1rem 0 0;
}
@media screen and (max-width: 767px) {
  .p-feature__block .text-border {
    padding: 0.5rem 0 0;
  }
}

/* お客様の声: 写真を丸く */
.p-voice__block .block__img img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.p-voice__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: #666;
  text-align: center;
}

/* 導入事例（仙台のマンション全戸） */
.p-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 4rem;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(15, 98, 168, 0.08);
}
.p-case__img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.p-case__label {
  display: inline-block;
  background: #0f62a8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.p-case__ttl {
  font-size: 1.625rem;
  font-weight: 900;
  color: #0f62a8;
  line-height: 1.45;
  margin-bottom: 12px;
}
.p-case__desc {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 16px;
}
.p-case__link {
  display: inline-block;
  color: #0f62a8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media screen and (max-width: 767px) {
  .p-case {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1rem;
  }
  .p-case__ttl {
    font-size: 1.25rem;
  }
  .p-case__desc {
    font-size: 0.9375rem;
    line-height: 1.8;
  }
}

/* 見出し・項目名の下線をやめる（余白と太さで区切る） */
.p-mv-cta .p-mv-cta__ttl {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
}
.formTable dl dt {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

/* ---------- 利用シーン（作り直し） ---------- */
.p-scene {
  background: linear-gradient(180deg, #eef6fb 0%, #ffffff 100%);
  padding: 7.5rem 0 6rem;
}
.p-scene__tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 980px;
  margin: 2.5rem auto 2rem;
}
.p-scene__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 98, 168, 0.08);
  color: #0f62a8;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.p-scene__tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 98, 168, 0.14);
}
.p-scene__tab:active {
  transform: scale(0.98);
}
.p-scene__tab .icon {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}
.p-scene__tab .icon img {
  height: 40px;
  width: auto;
}
.p-scene__tab .icon .is-on {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
}
.p-scene__tab.is-active {
  background: #0f62a8;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 98, 168, 0.28);
}
.p-scene__tab.is-active .is-on { opacity: 1; }
.p-scene__tab.is-active .is-off { opacity: 0; }
.p-scene__tab:focus-visible,
.p-scene__item:focus-visible {
  outline: 3px solid #00a0e6;
  outline-offset: 3px;
}
.p-scene__stage {
  max-width: 1100px;
  margin: 0 auto;
}
.p-scene__panel {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.5rem;
  align-items: stretch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-scene__panel.is-active {
  opacity: 1;
  transform: none;
}
.p-scene__photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfeef7;
  box-shadow: 0 18px 40px rgba(15, 98, 168, 0.14);
}
.p-scene__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-scene__photo img.is-swap {
  opacity: 0;
  transform: scale(1.02);
}
.p-scene__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.p-scene__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  text-align: left;
  padding: 18px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  color: #333;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 98, 168, 0.06);
  transition: box-shadow 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-scene__item:hover {
  transform: translateY(-2px);
}
.p-scene__item.is-current {
  box-shadow: 0 0 0 2px #0f62a8, 0 12px 28px rgba(15, 98, 168, 0.14);
}
.p-scene__item .thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.p-scene__item .ttl {
  display: block;
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f62a8;
  line-height: 1.5;
  margin-bottom: 6px;
}
.p-scene__item .desc {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.85;
}
@media screen and (max-width: 767px) {
  .p-scene {
    padding: 4rem 0 3rem;
  }
  .p-scene__tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 1.5rem 0 1.25rem;
  }
  .p-scene__tab {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    font-size: 0.875rem;
    border-radius: 12px;
  }
  .p-scene__tab .icon { height: 26px; }
  .p-scene__tab .icon img { height: 24px; }
  .p-scene__panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .p-scene__item {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .p-scene__item .thumb img { width: 64px; height: 64px; }
  .p-scene__item .ttl { font-size: 1rem; }
  .p-scene__item .desc { font-size: 0.875rem; line-height: 1.75; }
}
@media (prefers-reduced-motion: reduce) {
  .p-scene__panel, .p-scene__photo img, .p-scene__tab, .p-scene__item { transition: none; }
}

/* スクロールで出てくる動き */
.js-reveal.is-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-reveal.is-ready.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 見出し（画像見出しをやめて文字組みで統一） ---------- */
.c-ttl--text {
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 900;
  color: #0f62a8;
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  text-align: center;
  margin-bottom: 2.5rem;
}
.c-ttl--text .em {
  color: #00a0e6;
}
@media screen and (max-width: 767px) {
  .c-ttl--text {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ---------- 特徴: 1つ目を大きく、2・3つ目を並べる ---------- */
@media screen and (min-width: 768px) {
  .p-feature__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
  }
  .p-feature__block {
    margin-top: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 98, 168, 0.1);
  }
  .p-feature__block:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
  .p-feature__block:first-child .block__text,
  .p-feature__block:first-child .block__img {
    width: auto;
  }
  .p-feature__block:first-child .block__text {
    padding: 3rem;
  }
  .p-feature__block:first-child .block__img img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
  }
  .p-feature__block:not(:first-child) {
    display: flex;
    flex-direction: column-reverse;
  }
  .p-feature__block:not(:first-child) .block__text,
  .p-feature__block:not(:first-child) .block__img {
    width: auto;
  }
  .p-feature__block:not(:first-child) .block__text {
    padding: 2rem 2.25rem 2.5rem;
    flex: 1;
  }
  .p-feature__block:not(:first-child) .block__img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
  }
}

/* ---------- 料金: PCは2プランを横並び ---------- */
@media screen and (min-width: 768px) {
  .p-fee .l-wrap,
  .p-enrich .l-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    align-items: start;
    max-width: 1100px;
  }
  .p-fee .c-ttl,
  .p-enrich .c-ttl {
    grid-column: 1 / -1;
  }
  .p-fee .p-plan__block,
  .p-enrich .p-plan__block {
    margin-top: 2.5rem;
    height: calc(100% - 2.5rem);
  }
}

/* ---------- お客様の声: PCは3列 ---------- */
@media screen and (min-width: 768px) {
  .p-voice .l-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
  }
  .p-voice .c-ttl,
  .p-voice__note {
    grid-column: 1 / -1;
  }
  .p-voice__block {
    flex-direction: column;
    align-items: flex-start;
    border: 0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 0;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 98, 168, 0.1);
  }
  .p-voice__block .block__img {
    width: 96px;
    margin-bottom: 1rem;
  }
  .p-voice__block .block__text {
    width: auto;
  }
}
@media screen and (max-width: 767px) {
  .p-voice__block {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 98, 168, 0.1);
  }
}

/* ---------- 設置の流れ: PCは横並び4ステップ ---------- */
@media screen and (min-width: 768px) {
  .p-flow__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .p-flow__block {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    margin: 0;
    border-radius: 16px;
    background: #eaf5fc;
  }
  .p-flow__block::before,
  .p-flow__block::after {
    display: none;
  }
  .p-flow__block .flow-img,
  .p-flow__block .flow-text {
    width: 100%;
  }
  .p-flow__block .flow-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }
}

/* 修正: hidden のパネルは場所を取らない */
.p-scene__panel[hidden] { display: none; }
@media screen and (min-width: 768px) {
  .p-flow__block:not(:last-of-type)::after { display: none; }
  .p-voice__block { justify-content: flex-start; }
  .p-voice__block .block__text { margin: 0; }
  .p-voice__block + .p-voice__block { margin-top: 0; }
}
@media screen and (min-width: 768px) {
  .p-voice__block:not(:last-of-type) { margin-bottom: 0; }
  .p-voice .l-wrap { align-items: stretch; }
  .p-voice__block .voice-ttl { letter-spacing: 0.02em; line-height: 1.5; }
}
/* 見出しを文節で折り返す（対応ブラウザ）＋行長をそろえる */
.c-ttl--text {
  word-break: auto-phrase;
  text-wrap: balance;
}
@media screen and (max-width: 767px) {
  .c-ttl--text { font-size: 1.375rem; }
  .p-voice__block .block__img { width: 120px; margin: 0 auto 0.5rem; }
}

/* 見出し画像（Zen Maru Gothic で書き出し）: 元画像の文字120px → PC約46px / スマホ約28px で表示 */
.c-ttl--img {
  text-align: center;
  margin: 0 auto 2.5rem;
  line-height: 0;
}
.c-ttl--img img {
  width: calc(var(--w) * 0.475);
  max-width: 100%;
  height: auto;
  display: inline-block;
}
@media screen and (max-width: 767px) {
  .c-ttl--img { margin-bottom: 1.5rem; }
  .c-ttl--img img { width: calc(var(--w) * 0.294); }
}

/* FV 3層: 背景写真 + 文字 + バッジ */
.p-mv2__hero {
  position: relative;
  margin: 0;
}
.p-mv2__hero .p-mv2__bg {
  display: block;
  width: 100%;
  height: auto;
}
.p-mv2__copy {
  position: absolute;
  left: 3.5%;
  top: 12%;
  width: 50%;
  margin: 0;
}
.p-mv2__copy img {
  display: block;
  width: 100%;
  height: auto;
}
.p-mv2__badge {
  display: none;
}
.p-mv2__note {
  position: absolute;
  right: 2%;
  bottom: 1.5%;
  font-size: 0.75rem;
  color: #666;
}
@media screen and (max-width: 767px) {
  .p-mv2__copy {
    left: 3%;
    top: 3.5%;
    width: 94%;
  }
  .p-mv2__badge {
    display: block;
    position: absolute;
    left: 40%;
    top: 74.5%;
    width: 57%;
    height: auto;
  }
  .p-mv2__note {
    font-size: 0.625rem;
  }
}
/* FV v2: PCはコピー3行＋勲章バッジ、スマホはコピー2行＋右下にバッジ */
.p-mv2__copy { left: 3.5%; top: 11%; width: 40%; }
.p-mv2__badge { display: block; position: absolute; left: 3.5%; top: 52%; width: 36%; height: auto; }
@media screen and (max-width: 767px) {
  .p-mv2__copy { left: 3%; top: 3.5%; width: 94%; }
  .p-mv2__badge { left: 37%; top: 75.5%; width: 61%; }
}
.p-mv2__hero .p-mv2__badge { position: absolute; left: 3.5%; top: 52%; width: 36%; height: auto; }
@media screen and (max-width: 767px) {
  .p-mv2__hero .p-mv2__badge { left: 37%; top: 75.5%; width: 61%; }
}
@media screen and (max-width: 767px) {
  .p-mv2__hero .p-mv2__badge { left: 32%; top: 73.5%; width: 66%; }
}

/* ---------- 9/29 修正2 ---------- */
/* 料金: 注記の左右に余白（カードからはみ出して見えないように） */
.p-plan__block .note { padding: 0 1.75rem; box-sizing: border-box; }
@media screen and (min-width: 768px) {
  .p-fee .p-plan__block, .p-enrich .p-plan__block { height: auto; }
}
@media screen and (max-width: 767px) {
  .p-plan__block .note { padding: 0 1rem; }
}

/* 泡の比較: スマホは画像を残し、表だけカードに置き換える */
@media screen and (max-width: 767px) {
  .p-about__block { display: block; width: auto; margin-top: 1.5rem; }
  .p-about__block .inner { width: auto; }
  .p-about__block .p-about__bg img { width: 100%; height: auto; border-radius: 12px; display: block; }
  .p-about__block .p-about__bg .text { font-size: 1rem; left: 6%; top: 18%; }
  .p-about__table { display: none; }
  .p-about__cards { margin-top: 1rem; }
}

/* 導入施設スライダー: スマホは小さく複数枚 */
@media screen and (max-width: 767px) {
  .p-introduce__block .swiper-slide .introduce-text { font-size: 0.875rem; padding: 6px 10px; }
}

/* お客様の声: 写真の横に名前・プロフィール、要点に蛍光ペン */
.p-voice__block .hl {
  background: linear-gradient(transparent 58%, #fff27a 58%);
  font-weight: 700;
}
.p-voice__block {
  display: grid !important;
  grid-template-columns: 88px 1fr;
  grid-template-areas: "img prof" "ttl ttl" "desc desc" "more more";
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
}
.p-voice__block .block__text { display: contents; }
.p-voice__block .block__img { grid-area: img; width: 88px !important; margin: 0 !important; }
.p-voice__block .prof { grid-area: prof; margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.p-voice__block .voice-ttl { grid-area: ttl; margin: 6px 0 0; font-size: 1.125rem; }
.p-voice__block .c-desc { grid-area: desc; margin: 0; font-weight: 500; line-height: 1.9; }
.p-voice__more { grid-area: more; display: none; }
@media screen and (max-width: 767px) {
  .p-voice__block { padding: 1.25rem; grid-template-columns: 72px 1fr; }
  .p-voice__block .block__img { width: 72px !important; }
  .p-voice__block .c-desc.js-more:not(.is-open) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .p-voice__more {
    display: inline-block;
    justify-self: start;
    border: 0;
    background: none;
    padding: 4px 0;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f62a8;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
  }
}

/* 取り付けの流れ: 番号は小さなラベルに、カードの間に矢印 */
.p-flow__block .flow-num {
  width: auto; height: auto; background: none; border-radius: 0; margin: 0; padding: 0;
  position: static;
}
.p-flow__block .flow-num p {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: #0f62a8; color: #fff; border-radius: 999px; padding: 4px 14px;
  font-size: 0.8125rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em;
}
.p-flow__block .flow-num .num { font-size: 1rem; color: #fff; line-height: 1.4; }
.p-flow__block .flow-num::before, .p-flow__block .flow-num::after { display: none; }
@media screen and (min-width: 768px) {
  .p-flow__container { gap: 2.25rem; }
  .p-flow__block { position: relative; background: #fff; box-shadow: 0 10px 28px rgba(15, 98, 168, 0.1); }
  .p-flow__block:not(:last-child)::after {
    display: block !important;
    content: "";
    position: absolute;
    right: -1.55rem;
    top: 50%;
    width: 14px; height: 14px;
    border-top: 3px solid #00a0e6;
    border-right: 3px solid #00a0e6;
    transform: translateY(-50%) rotate(45deg);
    background: none;
    clip-path: none;
  }
}
@media screen and (max-width: 767px) {
  .p-flow__block {
    display: grid; grid-template-columns: 104px 1fr; grid-template-areas: "img num" "img text";
    column-gap: 14px; row-gap: 6px; align-items: start;
    padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15, 98, 168, 0.08);
  }
  .p-flow__block .flow-num { grid-area: num; }
  .p-flow__block .flow-img { grid-area: img; width: 104px; }
  .p-flow__block .flow-img img { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; }
  .p-flow__block .flow-text { grid-area: text; }
  .p-flow__block:not(:last-of-type)::after { display: none; }
  .p-flow__block + .p-flow__block { margin-top: 12px; }
}
.p-flow__block .flow-num { font-size: 1rem; aspect-ratio: auto; width: auto; display: block; line-height: 1.4; }
.p-flow__block .flow-num p { flex-direction: row; transform: none; -ms-transform: none; }
@media screen and (max-width: 767px) {
  .p-flow__block .flow-num { width: auto; font-size: 1rem; }
  .p-flow__block .flow-num p { font-size: 0.75rem; }
}

/* FV: 高さを抑える（背景は下寄せでトリミング）、アワードは横長3段 */
@media screen and (min-width: 768px) {
  .p-mv2__hero { aspect-ratio: 1440 / 780; overflow: hidden; }
  .p-mv2__hero .p-mv2__bg { height: 100%; object-fit: cover; object-position: 50% 70%; }
  .p-mv2__copy { top: 9%; width: 38%; }
  .p-mv2__hero .p-mv2__badge { left: 3.5%; top: 64%; width: 25%; }
}
@media screen and (max-width: 767px) {
  .p-mv2__hero { aspect-ratio: 390 / 540; overflow: hidden; }
  .p-mv2__hero .p-mv2__bg { height: 100%; object-fit: cover; object-position: 50% 40%; }
  .p-mv2__hero .p-mv2__badge { left: auto; right: 3%; top: auto; bottom: 5.5%; width: 56%; }
}

/* 導入事例: 大きな写真に白いカードを重ねる */
.p-case {
  position: relative;
  display: block;
  background: none;
  box-shadow: none;
  padding: 0;
  margin-top: 4rem;
}
.p-case__img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.p-case__img img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 0;
}
.p-case__imgnote {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-size: 0.75rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.p-case__text {
  position: absolute;
  right: 2.5rem;
  bottom: -2.5rem;
  width: min(520px, 48%);
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow: 0 18px 44px rgba(15, 98, 168, 0.16);
}
.p-introduce .l-wrap:last-child { padding-bottom: 3rem; }
@media screen and (max-width: 767px) {
  .p-case { margin-top: 2rem; }
  .p-case__img img { aspect-ratio: 4 / 3; }
  .p-case__text {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -2.5rem 12px 0;
    padding: 1.25rem;
  }
  .p-introduce .l-wrap:last-child { padding-bottom: 0; }
}
/* 流れ: 矢印はカードの間に、見出しは帯をやめて紺の太字 */
@media screen and (min-width: 768px) {
  .p-flow__block:not(:last-child)::after { left: auto !important; bottom: auto !important; }
}
.p-flow__block .flow-ttl {
  background: none !important;
  padding: 0 !important;
  color: #0f62a8;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 6px;
}
.p-flow__block .flow-text p { letter-spacing: 0.02em; line-height: 1.8; font-size: 0.9375rem; }
@media screen and (max-width: 767px) {
  .p-introduce__block .swiper-slide .introduce-text { white-space: nowrap; font-size: 0.75rem; }
  .p-flow__block .flow-num { justify-self: start; }
}
/* FV: 金メダル3つ（ChatGPT作成） */
.p-mv2__hero .p-mv2__badge--medal { filter: drop-shadow(0 8px 14px rgba(4, 40, 90, 0.25)); }
@media screen and (min-width: 768px) {
  .p-mv2__hero .p-mv2__badge--medal { left: 3%; top: 58%; width: 30%; }
}
@media screen and (max-width: 767px) {
  .p-mv2__hero .p-mv2__badge--medal { right: 2%; bottom: 5%; width: 62%; }
}
@media screen and (max-width: 767px) {
  .p-mv2__hero .p-mv2__badge--medal { right: 1.5%; bottom: 6%; width: 56%; }
}

/* 泡の比較（スマホ）: 泡の画像をそれぞれのカードに付ける */
@media screen and (max-width: 767px) {
  .p-about__block { display: none; }
  .p-about__cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 1.5rem; }
  .p-about__cards li {
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-areas: "ph tag" "ph name" "ph dl";
    column-gap: 14px;
    align-content: start;
    padding: 12px;
  }
  .p-about__cards .ph { grid-area: ph; position: relative; border-radius: 10px; overflow: hidden; align-self: stretch; min-height: 120px; }
  .p-about__cards .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .p-about__cards .ph .cap {
    position: absolute; left: 6px; right: 6px; top: 8px;
    font-size: 0.75rem; line-height: 1.4; color: #fff; font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }
  .p-about__cards .tag {
    grid-area: tag; justify-self: start;
    background: #fff27a; color: #0f62a8; font-size: 0.75rem; font-weight: 900;
    border-radius: 999px; padding: 2px 10px; margin-bottom: 6px;
  }
  .p-about__cards .name { grid-area: name; }
  .p-about__cards dl { grid-area: dl; grid-template-columns: 3.5em 1fr; font-size: 0.875rem; }
  .p-about__cards li.is-main { box-shadow: 0 10px 26px rgba(15, 98, 168, 0.28); }
}
/* 9/29 FV調整: コピー行間を広げた分の位置、メダル間隔 */
@media screen and (min-width: 768px) {
  .p-mv2__copy { top: 8%; width: 38%; }
  .p-mv2__hero .p-mv2__badge--medal { left: 3%; top: 64%; width: 31%; }
}
@media screen and (max-width: 767px) {
  .p-mv2__copy { top: 3%; }
  .p-mv2__hero .p-mv2__badge--medal { right: 2%; bottom: 6%; width: 58%; }
}

/* ---------- QA修正 ---------- */
/* タブレット(768-1024): 文字が9px台まで縮むので下限を付ける */
@media (max-width: 1024px) and (min-width: 768px) {
  html { font-size: max(12.5px, 1.2820512821vw); }
  .p-about__block .inner { width: 100%; }
  .p-about__table { width: 100%; }
}
/* フォームのラジオ・チェックを押しやすく */
.p-contact input[type="radio"], .p-contact input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: #0f62a8; vertical-align: -4px; margin-right: 6px;
}
/* 注記の最小サイズ */
.p-mv2__note { font-size: max(0.75rem, 11px); }
.p-plan__block .note, .cta-note, .p-mv-cta .note { font-size: max(0.75rem, 11px); }
@media screen and (max-width: 767px) {
  .p-about__cards .tag { font-size: max(0.75rem, 11px); }
  .p-mv2__note { font-size: 11px; }
}
/* タブレット(768-1024): 泡比較はスマホと同じカード表示、キャンペーン金額は改行させない */
@media (max-width: 1024px) and (min-width: 768px) {
  .p-about__block { display: none; }
  .p-about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2rem; }
  .p-about__cards li { background: rgba(255,255,255,0.92); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
  .p-about__cards li.is-main { background: #0f62a8; color: #fff; }
  .p-about__cards .ph { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
  .p-about__cards .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .p-about__cards .ph .cap { position: absolute; left: 8px; right: 8px; top: 8px; font-size: 12px; color: #fff; font-weight: 700; }
  .p-about__cards .tag { align-self: flex-start; background: #fff27a; color: #0f62a8; font-size: 12px; font-weight: 900; border-radius: 999px; padding: 2px 10px; }
  .p-about__cards .name { font-weight: 700; font-size: 1.125rem; color: #0f62a8; }
  .p-about__cards li.is-main .name { color: #fff; }
  .p-about__cards dl { display: grid; grid-template-columns: 3.5em 1fr; font-size: 13px; line-height: 1.6; }
  .p-mv-cta .c-fBox .c-price { white-space: nowrap; }
  .p-case__imgnote, .p-case__label { font-size: 12px; }
}
/* FVのボタン: 白文字が読めるよう青を濃く（コントラスト4.5以上） */
.p-mv-cta .c-fBox .btn { background-color: #0a74bb; }

/* ---------- Codexレビュー反映 ---------- */
/* お客様の声: 高さをそろえたカードの中身は上詰め（Mさんだけ下がる問題） */
.p-voice__block { align-content: start; }
/* 続きを読む: 押しやすいボタンに */
@media screen and (max-width: 767px) {
  .p-voice__more {
    min-height: 44px; padding: 8px 18px; border-radius: 999px;
    background: #eaf5fc; text-decoration: none; justify-self: start;
  }
}
/* フォーム: 選択肢をカード型にしてタップしやすく */
.p-contact .radio-list li label {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 10px; background: #f3f8fc; cursor: pointer; line-height: 1.5;
}
.p-contact .radio-list li label:has(input:checked) { background: #e1f0fb; box-shadow: inset 0 0 0 2px #0f62a8; }
.p-contact .radio-list li + li { margin-top: 8px; }
.p-contact .radio-list.desired-date li + li, .p-contact .radio-list.desired-time li + li { margin-top: 0; }
/* フォーム前の安心文 */
.p-contact__lead {
  text-align: center; color: #0f62a8; font-weight: 700; line-height: 1.8;
  margin: 0 auto 2rem; max-width: 760px;
}
@media screen and (max-width: 767px) {
  .p-contact__lead { font-size: 0.9375rem; text-align: left; margin-bottom: 1.25rem; }
  .p-mv2__hero .p-mv2__badge--medal { width: 62%; }
}
.p-contact .radio-list.naiyou { display: grid; gap: 8px; }
.p-contact .radio-list.naiyou li { margin: 0 !important; }
.p-contact .radio-list li + li { margin-top: 0; }
.p-contact .radio-list input[type="radio"] { flex-shrink: 0; }

/* 基本情報（SEO/AIO向けの事実まとめ） */
.p-spec { padding: 5rem 0 3rem; }
.p-spec__lead { max-width: 820px; margin: 0 auto 1.5rem; line-height: 1.9; font-weight: 500; }
.p-spec__table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(15, 98, 168, 0.08); }
.p-spec__table th, .p-spec__table td { padding: 14px 18px; text-align: left; vertical-align: middle; font-size: 0.9375rem; line-height: 1.7; }
.p-spec__table tr + tr th, .p-spec__table tr + tr td { border-top: 1px solid #e3eef6; }
.p-spec__table th { width: 30%; background: #f1f8fd; color: #0f62a8; font-weight: 700; }
.p-spec__date { max-width: 900px; margin: 0.75rem auto 0; text-align: right; font-size: 0.8125rem; color: #666; }
@media screen and (max-width: 767px) {
  .p-spec { padding: 3rem 0 2rem; }
  .p-spec__table th, .p-spec__table td { display: block; width: auto; padding: 10px 14px; }
  .p-spec__table th { padding-bottom: 4px; }
  .p-spec__table td { padding-top: 0; background: #f1f8fd00; }
  .p-spec__table tr + tr th { border-top: 1px solid #e3eef6; }
  .p-spec__table tr + tr td { border-top: 0; }
}

/* 基本情報: 表をやめて3つのカードに（他セクションと同じ角丸・影・余白） */
.p-spec__table { display: none; }
.p-spec__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
.p-spec__group { background: #fff; border-radius: 16px; padding: 1.75rem 1.5rem; box-shadow: 0 14px 36px rgba(15, 98, 168, 0.1); }
.p-spec__gttl { display: inline-block; background: #0f62a8; color: #fff; font-size: 0.9375rem; font-weight: 700; border-radius: 999px; padding: 4px 14px; margin-bottom: 1rem; }
.p-spec__list { display: grid; gap: 14px; }
.p-spec__row dt { font-size: 0.8125rem; font-weight: 700; color: #0f62a8; margin-bottom: 2px; }
.p-spec__row dd { font-size: 0.9375rem; font-weight: 500; line-height: 1.7; margin: 0; }
.p-spec__row dd small { display: block; font-size: 0.75rem; color: #666; font-weight: 400; }
.p-spec__lead, .p-spec__date { max-width: 1100px; }
@media (max-width: 1024px) and (min-width: 768px) {
  .p-spec__groups { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 767px) {
  .p-spec__groups { grid-template-columns: 1fr; gap: 12px; }
  .p-spec__group { padding: 1.25rem; }
}

/* 料金の上の納得バッジ（画像。左右20pxの影の余白ぶん外へ出してカード幅に揃える） */
.p-fee__badges { grid-column: 1 / -1; margin: -0.5rem -20px 0.25rem; }
.p-fee__badges img { width: 100%; height: auto; display: block; }
@media screen and (max-width: 767px) {
  .p-fee__badges { margin: 0 -20px 0.5rem; }
}
