:root {
  --color-main: #ffc400;
  --color-main-soft: #fff7d8;
  --color-accent: #006ee6;
  --color-contact: #178782;
  --color-text: #1e1e1e;
  --color-muted: #686868;
  --color-border: #dedede;
  --color-bg: #fffdf4;
  --color-white: #ffffff;
  --radius-card: 8px;
  --radius-panel: 28px;
  --shadow-soft: 0 14px 36px rgba(31, 31, 31, 0.08);
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --section-gap: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 固定ヘッダー分だけアンカー位置をずらす */
section[id] {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.75;
  background: #fbfefd;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.l-container {
  width: 90%;
  margin-inline: auto;
}

.l-container--narrow {
  width: min(820px, 90%);
}

.l-section {
  padding: calc(var(--section-gap) / 2) 0;
}

.l-section > .l-container {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-panel);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.l-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
  padding: 16px 5%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 10px rgba(31, 31, 31, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

/* 下スクロールで隠す／上スクロールで表示 */
.l-header.is-hidden {
  transform: translateY(-100%);
}

.l-header__logo,
.l-footer__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.l-header__logo img,
.l-footer__logo img {
  width: 210px;
  height: auto;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 48px);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.l-header__nav a:not(.c-button):hover {
  color: var(--color-contact);
}

.l-header__menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--color-accent);
  cursor: pointer;
}

.l-header__menu span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* メニューを開いたときハンバーガー→バツ（閉じるとバツ→ハンバーガー） */
.l-header__menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.l-header__menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.l-header__menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* メニュー展開時の背景オーバーレイ（ヘッダー/メニューより下、ページより上） */
.l-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(31, 31, 31, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.l-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 901px) {
  .l-menu-overlay {
    display: none;
  }
}

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  color: var(--color-white);
  font-weight: 800;
  line-height: 1.2;
  background: var(--color-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.c-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 110, 230, 0.2);
}

.c-button--secondary {
  color: var(--color-accent);
  background: var(--color-white);
}

.u-nowrap {
  white-space: nowrap;
}

.c-button--small {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

.c-button--contact {
  border-color: var(--color-contact);
  color: var(--color-white);
  background: var(--color-contact);
  box-shadow: 0 5px 12px rgba(23, 135, 130, 0.22);
}

.c-button--contact:hover {
  box-shadow: 0 10px 20px rgba(23, 135, 130, 0.24);
}

.c-section-title {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.c-section-title span,
.p-lower-fv span,
.p-thanks span {
  display: inline-block;
  color: var(--color-contact);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.c-section-title h2,
.p-lower-fv h1,
.p-thanks h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
}

.c-section-title p {
  margin: 14px 0 0;
  color: var(--color-muted);
}

.c-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.c-card-grid--compact {
  grid-template-columns: repeat(4, 1fr);
}

.c-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.c-card__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 900;
}

.c-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.45;
}

.c-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.c-card--todo {
  background: var(--color-main-soft);
}

.c-note {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.p-fv {
  padding: 48px 0 var(--section-gap);
  overflow: hidden;
  background-color: #fbfefd;
  background:
    radial-gradient(circle at 8% 82%, rgba(23, 135, 130, 0.08) 0 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(115deg, rgba(23, 135, 130, 0.08), rgba(255, 255, 255, 0) 48%),
    #fbfefd;
}

.p-fv__inner {
  position: relative;
  width: 90%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: clamp(500px, calc(100vh - 150px), 680px);
}

.p-fv__content {
  position: relative;
  z-index: 2;
}

.p-fv h1 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: 1.36;
  letter-spacing: 0;
}

.p-fv h1 span {
  color: var(--color-contact);
}

/* デスクトップは「ちょうどいいホームページ制作。」を1行（nowrap）、≤900pxで折り返し許可 */
.p-fv__ttl2 {
  white-space: nowrap;
}

/* モバイルのみ表示する改行（デスクトップ・タブレットは非表示） */
.u-br-sp {
  display: none;
}

.p-fv__lead {
  margin: 28px 0 0;
  color: var(--color-text);
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 2;
}

.p-fv__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 14px;
  width: min(100%, 640px);
  margin-top: 32px;
}

.p-fv-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(23, 135, 130, 0.16);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.08);
}

.p-fv-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.p-fv-card > div {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
}

.p-fv-card h2 {
  margin: 0;
  color: var(--color-contact);
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.3;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.p-fv-card p {
  margin: 2px 0 0;
  color: var(--color-text);
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.p-fv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.p-fv__actions .c-button {
  min-width: min(100%, 320px);
}

.p-fv__actions .c-button--secondary {
  border-color: var(--color-contact);
  color: var(--color-contact);
}

.p-fv__visual {
  position: relative;
  z-index: 1;
  min-height: clamp(340px, 36vw, 560px);
}

.p-fv__pc,
.p-fv__mb {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(31, 31, 31, 0.18));
}

.p-fv__pc {
  right: 7%;
  bottom: 18%;
  width: min(88%, 620px);
}

.p-fv__mb {
  right: 0;
  bottom: 0;
  width: min(22vw, 190px);
}

.p-problem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.p-problem__title {
  margin: 0 0 36px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.p-problem__title span {
  color: var(--color-contact);
}

.p-problem-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 26px 20px;
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
}

.p-problem-card img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.p-problem-card p {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

.p-problem__lead {
  max-width: 760px;
  margin: 40px auto 0;
  color: var(--color-text);
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 700;
  line-height: 2;
  text-align: center;
}

.p-features__lead,
.p-flow__lead {
  margin: 44px 0 0;
  color: var(--color-text);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
  line-height: 2.1;
  text-align: left;
}

.p-flow__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 44px;
}

.p-flow__footer .p-flow__lead {
  margin: 0;
}

.p-flow__cta {
  flex-shrink: 0;
}

/* PC幅のみ改行を有効にする（モバイルは自然な折り返し） */
@media (max-width: 767px) {
  .u-br-pc {
    display: none;
  }
}

.p-features__title {
  margin: 0 0 36px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.p-features__title span {
  color: var(--color-contact);
}

.p-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.p-feature-card {
  min-height: 260px;
  padding: 30px 28px 28px;
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
}

.p-feature-card img {
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.p-feature-card h3 {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.p-feature-card p {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.9;
}

.p-works__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.p-works__lead {
  margin: 0 0 38px;
  color: var(--color-muted);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 700;
  line-height: 1.9;
  text-align: center;
}

.p-works__title span {
  color: var(--color-contact);
}

.p-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.p-work-card {
  overflow: hidden;
  border: 1px solid rgba(31, 31, 31, 0.14);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.12);
}

.p-work-card__image {
  border-bottom: 1px solid rgba(31, 31, 31, 0.1);
  background: #f2f4f7;
  line-height: 0;
}

.p-work-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.p-work-card__body {
  padding: 22px 16px 24px;
  text-align: center;
}

.p-work-card h3 {
  margin: 0 0 8px;
  color: #234082;
  font-size: clamp(20px, 1.5vw, 28px);
  font-weight: 900;
  line-height: 1.35;
}

.p-work-card p {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 800;
  line-height: 1.6;
}

.p-work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.p-work-card__link:hover {
  text-decoration: underline;
}

.p-work-card__ext {
  flex-shrink: 0;
  color: #b3b8c0;
  transition: color 0.2s ease;
}

.p-work-card__link:hover .p-work-card__ext {
  color: var(--color-contact);
}

/* タブレット幅は3カラムで狭くなるため、見出しの折り返しを防ぐ */
@media (min-width: 701px) and (max-width: 900px) {
  .p-work-card h3 {
    font-size: clamp(14px, 2vw, 18px);
  }

  .p-work-card__body {
    padding-inline: 6px;
  }

  /* 社名を1行に収める（3カラムで幅が狭いため縮小＋折り返し禁止） */
  .p-work-card p {
    font-size: 12px;
  }

  .p-work-card__link {
    white-space: nowrap;
  }

  .p-work-card__ext {
    width: 12px;
    height: 12px;
  }
}

.p-pricing__heading {
  margin-bottom: 34px;
  text-align: center;
}

.p-pricing__heading h2 {
  margin: 0;
  color: var(--color-contact);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1.35;
}

.p-pricing__heading p {
  margin: 10px 0 0;
  color: var(--color-text);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 800;
}

.p-pricing__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.p-pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  min-width: 0;
}

/* 料金プランカードのドットインジケーター（横スクロール時のみ表示） */
.p-pricing__dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.p-pricing__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.p-pricing__dot.is-active {
  background: var(--color-contact);
  transform: scale(1.2);
}

.p-price-card {
  position: relative;
  padding: 30px 24px 28px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
}

.p-price-card--featured {
  border: 3px solid var(--color-contact);
  box-shadow: 0 14px 30px rgba(23, 135, 130, 0.16);
}

.p-price-card__badge {
  position: absolute;
  top: -20px;
  right: 14px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 900;
  background: var(--color-main);
}

.p-price-card h3 {
  margin: 0;
  color: #17224a;
  font-size: clamp(24px, 1.9vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.p-price-card__lead {
  min-height: 3.2em;
  margin: 14px 0 20px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.p-price-card__price {
  margin-bottom: 24px;
  text-align: center;
}

.p-price-card__price p {
  margin: 0;
  color: #17224a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
}

.p-price-card__price p + p {
  margin-top: 4px;
  font-size: 14px;
}

.p-price-card__price strong {
  font-size: clamp(30px, 2.35vw, 42px);
  line-height: 1;
}

.p-price-card__price span {
  margin-left: 3px;
  font-size: 12px;
}

.p-pricing__note {
  width: fit-content;
  margin: -14px auto 0;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  background: var(--color-main-soft);
}

.p-pricing__caption,
.p-options__note {
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.p-price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-price-card li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.p-price-card li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 900;
}

.p-pricing-table {
  overflow-x: auto;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
}

.p-pricing-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.p-pricing-table th,
.p-pricing-table td {
  padding: 14px 12px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  text-align: center;
  vertical-align: middle;
}

.p-pricing-table thead th {
  color: var(--color-white);
  font-weight: 900;
  background: var(--color-contact);
}

.p-pricing-table tbody th {
  min-width: 150px;
  font-weight: 900;
  text-align: left;
  background: #f8fbfa;
}

.p-pricing-table td {
  color: var(--color-contact);
  font-weight: 900;
}

/* 対応=○（ティール）/ 非対応=×（薄グレー）で視認性を上げる */
.p-pricing-table td.is-yes span {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
}

.p-pricing-table td.is-no {
  color: #c2cdcb;
}

/* おすすめ列（スタンダード）をハイライト */
.p-pricing-table thead th.is-rec {
  background: #0e6b66;
}

.p-pricing-table__rec {
  display: block;
  width: fit-content;
  margin: 0 auto 4px;
  padding: 1px 9px;
  border-radius: 999px;
  color: #0e6b66;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.6;
  background: var(--color-main);
}

.p-pricing-table tbody td:nth-child(3) {
  background: rgba(23, 135, 130, 0.07);
}

.p-options__title {
  margin: 0 0 34px;
  color: var(--color-contact);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.p-options__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.p-option-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
  text-align: center;
}

.p-option-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.p-option-card h3 {
  min-height: 3em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 900;
  line-height: 1.5;
}

.p-option-card p {
  margin: 0;
  color: var(--color-contact);
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 900;
  line-height: 1.4;
}

.p-flow__title {
  margin: 0 0 34px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.p-flow__list {
  --flow-gap: 46px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--flow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-flow__list li {
  position: relative;
  display: flex;
}

.p-flow__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 15px;
  height: 15px;
  margin-left: calc(var(--flow-gap) / 2);
  border-top: 4px solid var(--color-contact);
  border-right: 4px solid var(--color-contact);
  transform: translate(-50%, -50%) rotate(45deg);
}

.p-flow-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 18px 22px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
  text-align: center;
}

.p-flow-card__num {
  position: absolute;
  top: -20px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 900;
  background: var(--color-contact);
}

.p-flow-card h3 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 900;
  line-height: 1.45;
}

.p-flow-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.p-flow-card p {
  margin: 0;
  /* 1行なら中央のまま、折り返す時は文頭を左に揃える（中央の孤立文字を防ぐ） */
  width: fit-content;
  max-width: 100%;
  color: var(--color-text);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 800;
  line-height: 1.7;
  text-align: left;
}

.p-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.p-faq__column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.p-faq__title {
  margin: 0 0 30px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.p-faq__title span {
  color: var(--color-contact);
}

.p-faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 8px 18px rgba(31, 31, 31, 0.06);
}

.p-faq summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 800;
  list-style: none;
}

.p-faq summary::-webkit-details-marker {
  display: none;
}

.p-faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 16px;
  height: 16px;
  background: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23178782' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.p-faq details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.p-faq summary span {
  flex-shrink: 0;
  color: var(--color-contact);
  font-weight: 900;
}

.p-faq p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--color-muted);
}

/* お問い合わせセクション */
.p-contact {
  background: #f3f8f7;
}

.p-contact__title {
  margin: 0 0 40px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.p-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 44px;
  align-items: start;
}

.p-contact__catch {
  margin: 0 0 26px;
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 900;
  line-height: 1.7;
}

.p-contact__mail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.p-contact__mail img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.p-contact__mail a {
  color: var(--color-contact);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 900;
  text-decoration: none;
  word-break: break-all;
}

.p-contact__mail a:hover {
  text-decoration: underline;
}

.p-contact__mailnote {
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.7;
}

.p-contact__form {
  padding: 34px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(31, 31, 31, 0.08);
}

.p-contact__form .c-button {
  width: 100%;
}

@media (max-width: 820px) {
  .p-contact__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .p-contact__info {
    text-align: center;
  }

  .p-contact__mail {
    justify-content: center;
  }
}

.p-final-cta {
  margin-top: calc(var(--section-gap) / 2);
  padding: 70px 0;
  background:
    linear-gradient(90deg, rgba(23, 135, 130, 0.92), rgba(23, 135, 130, 0.66)),
    url("../img/other/cta.webp") center / cover no-repeat;
  color: var(--color-white);
}

.p-final-cta .l-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.p-final-cta h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 900;
  line-height: 1.35;
}

.p-final-cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 800;
}

.p-final-cta .c-button {
  min-width: min(100%, 420px);
  min-height: 76px;
  border-color: var(--color-white);
  color: var(--color-contact);
  background: var(--color-white);
  box-shadow: 0 12px 26px rgba(31, 31, 31, 0.2);
}

.l-footer {
  padding: 48px 0 24px;
  border-top: 4px solid var(--color-contact);
  background: var(--color-white);
}

.l-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.l-footer__brand {
  flex: 0 0 auto;
}

.l-footer nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  flex-wrap: wrap;
  justify-content: end;
  gap: 14px 44px;
  font-size: 18px;
  font-weight: 900;
}

.l-footer nav a:hover {
  color: var(--color-contact);
}

.l-footer nav.l-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 32px 20px 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.l-footer__legal a {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s;
}

.l-footer__legal a:hover {
  color: var(--color-contact);
}

.l-footer__copy {
  margin: 18px 0 0;
  color: var(--color-muted);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.p-lower-fv {
  padding: 72px 0 0;
}

.p-lower-fv .l-container,
.p-thanks .l-container {
  padding: clamp(34px, 6vw, 64px);
  border-radius: var(--radius-panel);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.p-form {
  display: grid;
  gap: 18px;
}

.p-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.p-form label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px 8px;
  font-weight: 800;
}

.p-form label input,
.p-form label select,
.p-form label textarea {
  grid-column: 1 / -1;
}

.p-form label span {
  justify-self: start;
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--color-white);
  font-size: 12px;
  background: var(--color-contact);
}

.p-form input,
.p-form select,
.p-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 13px 14px;
  background: var(--color-white);
}

.p-form input:focus,
.p-form select:focus,
.p-form textarea:focus {
  outline: 3px solid rgba(0, 110, 230, 0.18);
  border-color: var(--color-accent);
}

/* 同意チェック：テキストは通常のインライン流し（折り返しはぶら下げ揃え） */
.p-form__check {
  display: block !important;
  position: relative;
  padding-left: 32px;
  line-height: 1.7;
}

.p-form__check input {
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  /* テキスト入力用の .p-form input（padding:13px 14px 等）がチェックボックスに
     漏れて iOS で肥大化・テキストと重なるのを防ぐ */
  flex: none;
  -webkit-appearance: checkbox;
  appearance: checkbox;
  accent-color: var(--color-contact);
  border: 0;
  background: none;
  border-radius: 0;
}

/* ハニーポット（スパム対策の隠しフィールド） */
.p-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 入力エラー表示 */
.p-form__errors {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid #d93025;
  border-radius: 10px;
  background: #fdecea;
  color: #b3261e;
}

.p-form__errors p {
  margin: 0 0 8px;
  font-weight: 700;
}

.p-form__errors ul {
  margin: 0;
  padding-left: 1.2em;
}

.p-form__errors li {
  margin: 2px 0;
  font-size: 14px;
}

/* --- クライアント側バリデーション：該当欄近くのポップアップ --- */
.p-form label.is-invalid,
.p-form__check.is-invalid {
  position: relative;
}

.p-form .is-error {
  border-color: #d93025;
  outline: 3px solid rgba(217, 48, 37, 0.16);
}

.p-form__popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: max-content;
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  background: #d93025;
  box-shadow: 0 10px 22px rgba(217, 48, 37, 0.3);
  animation: form-popup-in 0.18s ease;
}

.p-form__popup::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 18px;
  border: 6px solid transparent;
  border-bottom-color: #d93025;
}

@keyframes form-popup-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.p-thanks-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.p-thanks {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vh, 88px) 0;
}

.p-thanks .l-container {
  text-align: center;
}

.p-thanks__badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-contact);
  box-shadow: 0 10px 24px rgba(23, 135, 130, 0.28);
}

.p-thanks p {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--color-muted);
  line-height: 1.95;
}

.p-thanks__back {
  margin-top: 34px;
}

.p-doc {
  color: var(--color-muted);
}

.p-doc h2 {
  margin: 40px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--color-contact);
  color: var(--color-text);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}

.p-doc__list {
  margin: 8px 0 0;
  padding-left: 1.5em;
  color: var(--color-text);
}

.p-doc__list li {
  margin: 12px 0;
  line-height: 1.7;
}

.p-doc__contact {
  margin: 16px 0 0;
  padding: 16px 22px;
  border-left: 4px solid var(--color-contact);
  border-radius: 8px;
  background: #f3f8f7;
}

.p-doc__contact p {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.9;
}

.p-doc__contact a {
  color: var(--color-contact);
}

/* FVと同じつぶつぶ背景（下層ページなどの背景に使用） */
.u-dots-bg {
  background-color: #fbfefd;
  background-image: radial-gradient(circle at 8% 82%, rgba(23, 135, 130, 0.1) 0 1px, transparent 1px);
  background-size: 14px 14px;
}

.p-law-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid var(--color-border);
}

.p-law-list dt,
.p-law-list dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.p-law-list dt {
  font-weight: 800;
  color: var(--color-contact);
}

.p-law-list dd {
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .l-header {
    min-height: 72px;
    padding: 12px 20px;
  }

  .l-header__logo img {
    width: 140px;
  }

  .l-header__menu {
    display: block;
    background: var(--color-contact);
  }

  .l-header__nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    border-radius: 0 0 20px 20px;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    font-size: 16px;
    white-space: normal;
  }

  .l-header__nav .c-button {
    width: min(100%, 320px);
  }

  .l-header__nav.is-open {
    display: flex;
  }

  .c-card-grid,
  .c-card-grid--compact {
    grid-template-columns: 1fr;
  }

  .p-problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-works__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-pricing__body {
    grid-template-columns: 1fr;
  }

  /* 料金プランカードは横スクロール（おすすめバッジ用に上余白を確保） */
  .p-pricing__cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 24px 2px 14px;
    -webkit-overflow-scrolling: touch;
  }

  .p-price-card {
    flex: 0 0 auto;
    width: min(82%, 300px);
    scroll-snap-align: start;
  }

  .p-pricing__dots {
    display: flex;
  }

  .p-options__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-flow__list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .p-flow__list li:not(:last-child)::after {
    top: 100%;
    bottom: auto;
    left: 50%;
    margin-left: 0;
    margin-top: 14px;
    transform: translate(-50%, -50%) rotate(135deg);
  }

  .p-flow__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .p-fv {
    padding-top: 44px;
  }

  .p-fv__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* タブレット以下：見出しは「ちょうどいい」で折り返し可、「ホームページ制作。」は1語 */
  .p-fv__ttl2 {
    white-space: normal;
  }

  /* タブレット以下：画像をリード文の下に配置（見出し→リード→画像→カード→ボタン） */
  .p-fv__content {
    display: contents;
  }

  .p-fv h1 {
    order: 1;
  }

  .p-fv__lead {
    order: 2;
  }

  .p-fv__visual {
    order: 3;
  }

  .p-fv__cards {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .p-fv__actions {
    order: 5;
  }

  .p-fv__visual {
    min-height: clamp(300px, 72vw, 500px);
  }

  .p-fv__pc {
    right: 8%;
    bottom: 18%;
    width: min(82vw, 560px);
  }

  .p-fv__mb {
    width: min(28vw, 170px);
  }

  .l-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .l-footer nav {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

/* タブレット：カード4枚を横並びでリード下に、画像の左にボタンを配置 */
@media (min-width: 561px) and (max-width: 900px) {
  .p-fv__inner {
    grid-template-columns: 1fr minmax(0, 0.82fr);
    grid-template-areas:
      "title   title"
      "lead    lead"
      "cards   cards"
      "actions visual";
    align-items: center;
    gap: 24px 28px;
  }

  .p-fv h1 {
    grid-area: title;
  }

  .p-fv__lead {
    grid-area: lead;
  }

  .p-fv__cards {
    grid-area: cards;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 0;
  }

  .p-fv__actions {
    grid-area: actions;
    flex-direction: column;
    gap: 14px;
    margin-top: 0;
  }

  .p-fv__actions .c-button {
    min-width: 0;
    width: 100%;
  }

  .p-fv__visual {
    grid-area: visual;
    min-height: clamp(240px, 42vw, 340px);
  }

  .p-fv__pc {
    right: 0;
    bottom: 10%;
    width: min(96%, 400px);
  }

  .p-fv__mb {
    right: -2%;
    bottom: 0;
    width: 32%;
  }

  /* 4枚横並びに収まるようカードを縦積み（アイコン上）に */
  .p-fv-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    min-height: 0;
    padding: 14px 8px;
    text-align: center;
  }

  .p-fv-card > div {
    min-height: 0;
    align-items: center;
  }

  .p-fv-card h2 {
    justify-content: center;
    white-space: normal;
  }

  .p-fv-card p {
    white-space: normal;
  }
}

/* 実績カードは3カラムを維持できる幅までとし、狭い画面は1カラムへ */
@media (max-width: 700px) {
  .p-works__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .l-container,
  .l-container--narrow,
  .p-fv__inner {
    width: 90%;
  }

  .p-form__row {
    grid-template-columns: 1fr;
  }

  .l-section {
    padding: calc(var(--section-gap) / 2) 0;
  }

  .l-section > .l-container,
  .p-fv__inner,
  .p-lower-fv .l-container,
  .p-thanks .l-container {
    border-radius: 20px;
    padding: 24px;
  }

  /* 料金比較表：横スクロールを廃止し、3プランを1画面に収める */
  .p-pricing-table {
    overflow-x: visible;
    /* コンテナ左右パディング分を使って表幅を確保（値・見出しの折り返し防止） */
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }

  .p-pricing-table table {
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }

  /* table-layout:fixed の列幅は先頭行(thead)で決まるため明示指定 */
  .p-pricing-table thead th:first-child {
    width: 37%;
  }

  .p-pricing-table thead th:not(:first-child) {
    width: 21%;
  }

  .p-pricing-table th,
  .p-pricing-table td {
    padding: 10px 2px;
  }

  .p-pricing-table thead th {
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    white-space: nowrap;
    padding: 9px 2px;
  }

  .p-pricing-table tbody th {
    min-width: 0;
    padding-left: 10px;
    padding-right: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  .p-pricing-table tbody td {
    font-size: 11.5px;
    line-height: 1.3;
  }

  .p-pricing-table__rec {
    padding: 1px 6px;
    font-size: 9px;
  }

  .p-fv h1 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.42;
  }

  .u-br-sp {
    display: inline;
  }

  .p-fv__lead {
    order: 3;
    font-size: 15px;
    line-height: 1.8;
  }

  .p-fv__lead br {
    display: none;
  }

  .p-fv__cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .p-fv-card {
    min-height: 72px;
  }

  /* モバイルはリードと画像を入れ替え（見出し→画像→リード→カード→ボタン） */
  .p-fv__visual {
    order: 2;
    min-height: 260px;
  }

  .p-fv__pc {
    right: 6%;
    bottom: 20%;
    width: 82vw;
  }

  .p-fv__mb {
    width: 31vw;
  }

  .p-fv__actions,
  .c-button {
    width: 100%;
  }

  /* セクションタイトルを1行に収める */
  .p-problem__title,
  .p-features__title,
  .p-works__title {
    font-size: clamp(18px, 5.7vw, 26px);
    white-space: nowrap;
  }

  .p-problem__lead {
    text-align: left;
  }

  /* モバイルは料金カードの幅を元（全幅）に戻す（横スクロールは維持） */
  .p-price-card {
    width: min(100%, 340px);
  }

  /* 最終CTA見出しを1行に収める */
  .p-final-cta h2 {
    font-size: clamp(19px, 6.2vw, 30px);
    white-space: nowrap;
  }

  /* お問い合わせフォームの入力欄を広げる（内外の余白を縮小） */
  .p-contact > .l-container {
    padding: 24px 16px;
  }

  .p-contact__form {
    padding: 24px 16px;
  }

  .p-problem__grid {
    grid-template-columns: 1fr;
  }

  .p-problem-card {
    min-height: 170px;
  }

  .p-features__grid {
    grid-template-columns: 1fr;
  }

  .p-feature-card {
    min-height: 0;
  }

  .p-works__grid {
    grid-template-columns: 1fr;
  }

  .p-faq {
    grid-template-columns: 1fr;
  }

  .p-options__grid {
    grid-template-columns: 1fr;
  }

  .p-final-cta .l-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .l-footer nav {
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
  }

  .l-footer__logo img {
    width: 160px;
  }

  .p-flow-card {
    min-height: 210px;
  }

  .p-law-list {
    grid-template-columns: 1fr;
  }

  .p-law-list dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
