/* ============================================================
 * リニューアル案（第2案）紹介ページ用
 * v2.css と sub.css のあとに読み込む。色・書体・余白の変数は v2.css のものを使う。
 * Sports Performance Analysis と Investment Planner で同じ内容を使う。
 * ========================================================== */

/* ---------- ヘッダー ---------- */

.lp .brand {
  white-space: nowrap;
}

/* ---------- ヒーロー ---------- */

/* 大見出しの上に置く、ツールの種別などの短い札 */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 14px;
  color: var(--sub);
}

/* 区切りは項目の後ろに付ける（折り返したとき行頭に区切りが来ないように） */
.hero-tags li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--faint);
}

/* 1行が長い大見出しは、はみ出さない大きさに下げる */
.hero-title.is-long {
  font-size: clamp(34px, 7vw, 112px);
}

.hero-lead p + p {
  margin-top: 0.8em;
}

.hero-kicker {
  color: var(--ink);
}

/* ---------- レポートの見本（紙面は v2.css の .sheet を使う） ---------- */

.sample {
  margin-top: clamp(64px, 8vw, 120px);
}

/* 冒頭では紙面を切らずに1枚まるごと見せる */
.sample .shot {
  padding-bottom: clamp(20px, 5vw, 80px);
}

.sample .sheet {
  border-radius: 14px;
  transform: none;
}

/* ---------- 画面の画像 ---------- */

.lp .hero .shot {
  margin-top: clamp(64px, 8vw, 120px);
}

/* 縦に長い画面は上の部分だけを見せる */
.shot.is-crop img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.fig-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--sub);
}

/* ---------- 大きな字の箇条書き ---------- */

.big-list {
  border-top: 1px solid var(--ink);
}

.big-list li {
  padding: clamp(20px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 2.3vw, 34px);
  font-weight: var(--w-head);
  line-height: 1.5;
}

.sec-after {
  max-width: 46em;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: 15.5px;
}

/* ---------- 表（sub.css の .tbl とは別の、行見出しつきの表） ---------- */

.lp-tbl {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  text-align: left;
}

.lp-tbl th,
.lp-tbl td {
  padding: 20px clamp(16px, 2.4vw, 40px) 20px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: var(--w-body);
}

.lp-tbl th:last-child,
.lp-tbl td:last-child {
  padding-right: 0;
}

.lp-tbl thead th {
  padding-block: 14px;
  font-size: 13px;
  color: var(--sub);
}

.lp-tbl tbody th {
  width: 26%;
  font-size: 17px;
  font-weight: var(--w-head);
  line-height: 1.6;
}

.lp-tbl tbody th small {
  display: block;
  font-size: 13px;
  font-weight: var(--w-body);
  color: var(--sub);
}

.lp-tbl td {
  font-size: 15px;
  line-height: 1.85;
}

/* 計算式は本文と同じ書体で組む（等幅にすると和文だけ太く見えるため） */
.lp-tbl code {
  font-family: inherit;
  font-size: inherit;
}

.lp-note {
  max-width: 46em;
  margin-top: 20px;
  font-size: 14px;
  color: var(--sub);
}

.lp-note b {
  margin-right: 0.8em;
  font-weight: var(--w-strong);
  color: var(--ink);
}

/* ---------- 料金（お見積り） ---------- */

.quote {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 40px clamp(32px, 5vw, 88px);
}

.quote-price {
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 100px);
  font-weight: var(--w-display);
  line-height: 1.15;
  letter-spacing: var(--track-display);
  font-synthesis: none;
}

.quote-text {
  max-width: 34em;
  margin-top: clamp(16px, 2vw, 24px);
  font-size: 15.5px;
  color: var(--sub);
}

.quote-main .btn {
  margin-top: 28px;
}

/* 見出しのない箇条書きの列は上端に罫線を引く */
.quote .col ul {
  border-top: 1px solid var(--ink);
}

/* ---------- 相談する ---------- */

.contact-way small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: var(--w-body);
  color: var(--inv-sub);
}

/* ---------- フッター ---------- */

.foot-about {
  max-width: 42em;
  margin-bottom: clamp(28px, 3.6vw, 48px);
  font-size: 14px;
  color: var(--sub);
}

.foot-about strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: var(--w-strong);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.foot-inner p a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

/* ---------- 法的表記などの下層ページ ---------- */

.lp-back {
  margin-top: clamp(32px, 4vw, 56px);
}

/* 戻るリンクの矢印は左向きにして文字の前に置く */
.more.is-back {
  flex-direction: row-reverse;
}

.more.is-back::after {
  transform: rotate(-135deg);
}

.more.is-back:hover::after {
  transform: translateX(-4px) rotate(-135deg);
}

/* ---------- 幅ごとの調整 ---------- */

@media (max-width: 960px) {
  .quote {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .top-inner {
    gap: 12px;
  }

  .lp .brand {
    font-size: 15px;
  }

  .hero-title.is-long {
    font-size: clamp(22px, 7.6vw, 48px);
  }

  .lp .contact-box h2 {
    font-size: min(36px, 8.2vw);
  }

  /* 表は1件ずつ縦に並べ、列の名前を各項目の上に出す */
  .lp-tbl thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .lp-tbl,
  .lp-tbl tbody,
  .lp-tbl tr,
  .lp-tbl th,
  .lp-tbl td {
    display: block;
  }

  .lp-tbl tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .lp-tbl tbody th,
  .lp-tbl td {
    width: auto;
    padding: 0;
    border: 0;
  }

  .lp-tbl td {
    margin-top: 10px;
  }

  .lp-tbl td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: var(--sub);
  }
}
