/* 自動生成（static/ → wordpress/build_theme.py）。このファイルは直接直さず、static/ を直して作り直す */
/* =========================================================
   デザイン制作の詳細ページ（design.html）
   detail.css（LP制作の詳細ページ）の後に読み、違うところだけ上書きする。
   Figma：70_詳細デザイン_1440 を基準に、1024／768／375／425／320／2560
   ========================================================= */

/* ---------- 01 ページ冒頭：写真と、文字で書く制作期間 ---------- */
.page-design .dt-top__bg {
  background-image:
    linear-gradient(rgba(253, 252, 250, 0) calc(100% - 160px), #fdfcfa),
    radial-gradient(ellipse 71.43% 55.56% at 50% 50%, rgba(252, 252, 250, 0.95), rgba(252, 252, 250, 0.88) 60%, rgba(252, 252, 250, 0.6)),
    url("../assets/images/design_hero.webp");
}

.page-design .dt-top__underline {
  width: calc(100% + 8px);
}

/* 制作期間は数字ではなく「制作物ごとに、最初にお伝えします」 */
.dt-fact__text {
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
}

/* ---------- 03 含まれるもの：4つを左2・右2（整理の帯がないので見出しのすぐ下） ---------- */
.dt-inc__list--4 {
  grid-template-rows: repeat(2, auto);
  margin-top: 32px;
}

/* ---------- 04 制作できるものと料金：白い箱1枚を区切った一覧（PCは3列：4・4・3行） ---------- */
.page-design .dt-plan {
  padding-bottom: 96px;
}

.dt-price {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 48px;
  margin: 32px 0 0;
  padding: 24px 48px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(13, 51, 102, 0.06);
  list-style: none;
}

.dt-price li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #dbe5f0;
}

/* 列の最後の行は線なし（PC：4・8・11番目） */
.dt-price li:nth-child(4),
.dt-price li:nth-child(8),
.dt-price li:last-child {
  border-bottom: 0;
}

.dt-price__name {
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dt-price__value {
  color: var(--blue-700);
  font-size: 26px;
  font-weight: 900;
  line-height: 31px;
  white-space: nowrap;
}

/* 大きさの違う文字を並べても行の高さを変えない */
.dt-price__value > * {
  line-height: 0;
}

.dt-price__value small {
  font-size: 14px;
}

.dt-price__value--text {
  font-size: 18px;
  line-height: 30px;
}

/* 一覧の下の注記（印刷・リッチメニュー） */
.dt-plans__note {
  margin-top: 16px;
  color: var(--navy-600);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  opacity: 0.75;
}

/* 進め方：説明が2行になるので中央ぞろえ（768px以上は縦並びのステップ） */
@media (min-width: 768px) {
  .page-design .dt-step__desc {
    text-align: center;
  }
}

/* =========================================================
   1024〜1439px
   ========================================================= */
@media (min-width: 1024px) and (max-width: 1439px) {
  .page-design .dt-plan__lead {
    line-height: 24px;
  }

  .dt-price {
    column-gap: 40px;
    padding: 20px 40px;
  }

  .dt-price li {
    padding: 16px 0;
  }

  .dt-price__name {
    font-size: 16px;
    line-height: 28px;
  }

  .dt-price__value {
    font-size: 20px;
    line-height: 28px;
  }

  .dt-price__value small {
    font-size: 11px;
  }

  .dt-price__value--text {
    font-size: 16px;
  }

  .dt-plans__note {
    font-size: 13px;
  }
}

/* =========================================================
   1023px以下
   ========================================================= */
@media (max-width: 1023px) {
  .page-design .dt-top__underline {
    left: -3px;
    width: calc(100% + 6px);
  }

  .page-design .dt-plan {
    padding-bottom: 48px;
  }

  .dt-plans__note {
    font-size: 13px;
  }
}

/* 768〜1023px：一覧は2列（6・5行） */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 中間CTA：文の列をLP制作と同じ幅にして、Figmaと同じ位置に（見出しが短いと真ん中に寄ってしまうため） */
  .page-design .dt-mid__band {
    grid-template-columns: 315px 260px;
  }

  .dt-price {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    column-gap: 40px;
    padding: 12px 32px;
  }

  .dt-price li {
    padding: 16px 0;
  }

  .dt-price li:nth-child(4),
  .dt-price li:nth-child(8) {
    border-bottom: 1px solid #dbe5f0;
  }

  .dt-price li:nth-child(6) {
    border-bottom: 0;
  }

  .dt-price__name {
    font-size: 16px;
    line-height: 28px;
  }

  .dt-price__value {
    font-size: 24px;
    line-height: 28px;
  }

  .dt-price__value small {
    font-size: 13px;
  }

  .dt-price__value--text {
    font-size: 16px;
  }
}

/* =========================================================
   スマホ（〜767px）：一覧は1列
   ========================================================= */
@media (max-width: 767px) {
  .dt-fact__text {
    font-size: 14px;
    line-height: 20px;
  }

  .dt-price {
    display: block;
    padding: 4px 20px;
  }

  .dt-price li {
    padding: 14px 0;
  }

  .dt-price li:nth-child(4),
  .dt-price li:nth-child(8) {
    border-bottom: 1px solid #dbe5f0;
  }

  .dt-price__name {
    font-size: 16px;
    line-height: 26px;
  }

  .dt-price__value {
    font-size: 22px;
    line-height: 26px;
  }

  .dt-price__value small {
    font-size: 12px;
  }

  .dt-price__value--text {
    font-size: 16px;
  }

  .dt-plans__note {
    font-size: 12px;
    line-height: 20px;
  }
}

/* =========================================================
   Figma 320（〜374px）
   ========================================================= */
@media (max-width: 374px) {
  /* 見出し「デザイン制作」は52だと幅280に入らないので44 */
  .page-design .dt-top__title {
    font-size: 44px;
  }

  .page-design .dt-top__underline {
    top: 76px;
  }

  .dt-price {
    padding-inline: 14px;
  }

  .dt-price__name {
    font-size: 15px;
  }

  .dt-price__value {
    font-size: 20px;
  }

  .dt-price__value small {
    font-size: 11px;
  }

  .dt-price__value--text {
    font-size: 15px;
  }
}
