/*
 * whale-lp.css — トップ / CV-LP の .whale-lp 専用ブロック
 *
 * 読み込み: is_front_page() と CV-LP テンプレートのみ（shared-pages.css / home-page.css の後）
 *
 * 役割分担:
 *   - .whale-lp 内セクション（lp-brand, lp-consult, lp-comparison 等）
 *   - .lp-header … LP 専用ヘッダー（site-header は style.css）
 *   - body.whale-lp-page … LP テンプレート専用（padding リセット・スクロール・固定 CTA）
 *   - .whale-lp .hero-campaign … home-page.css ベースのコンパクト上書きのみ
 *   - セクション末尾リンク（POINT・trust・拠点・フッター）は共通スタイルで統一
 *   - ヒーローv2ベースは home-page.css（トップは大きめH1をそのまま使用）
 */

/* --- LP ページ: レイアウト（lp-header 用に site-header の body padding を解除） --- */
body.whale-lp-page {
  --lp-header-height: clamp(3.25rem, 4vw, 4rem);
  background: #fff;
  padding-top: 0;
}

html:has(body.whale-lp-page) {
  scroll-padding-top: calc(var(--lp-header-height) + 0.75rem);
}

body.whale-lp-page .site-main {
  padding: 0;
}

@media (max-width: 768px) {
  body.whale-lp-page {
    padding-bottom: 0;
  }
}

/* --- Hero campaign（.whale-lp 内は home-page.css ベースをコンパクトに上書き） --- */
.whale-lp .hero-campaign__inner {
  gap: 0.625rem;
}

.whale-lp .hero-campaign--after-pricing {
  padding-bottom: var(--lp-section-pad);
}

.whale-lp .hero-campaign .campaign-banner__link {
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: none;
}

.whale-lp .hero-campaign .campaign-banner__link:hover,
.whale-lp .hero-campaign .campaign-banner__link:focus-visible {
  transform: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* --- Brand positioning --- */
.lp-brand__inner {
  text-align: center;
}

.lp-brand__heading {
  margin: 0 0 1rem;
  color: var(--lp-primary);
  font-size: var(--lp-h2-size);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.lp-brand__lead {
  margin: 0 0 clamp(1rem, 2.5vw, 1.25rem);
  color: var(--lp-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 800;
  line-height: 1.75;
}

.lp-brand__visual {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.lp-brand__visual img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--lp-radius-md);
}

.whale-lp .u-br-sp {
  display: none;
}

.lp-brand__cta {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
}

.lp-brand__pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.lp-brand__pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.75rem;
  align-items: start;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-md);
  background: #fff;
  box-shadow: var(--lp-shadow);
}

.lp-brand__pillar-num {
  align-self: start;
  margin-top: 0.125rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--lp-accent) 0%, var(--lp-accent-dark) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
}

.lp-brand__pillar-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lp-brand__pillar-title {
  margin: 0;
  color: var(--lp-primary);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
}

.lp-brand__pillar-text {
  margin: 0;
  color: var(--lp-muted);
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  font-weight: 800;
  line-height: 1.45;
}

.lp-brand__em-link {
  color: var(--lp-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.lp-brand__em-link:hover,
.lp-brand__em-link:focus-visible {
  color: var(--lp-accent-dark, #c2410c);
}

.lp-comparison__heading + .lp-section__lead {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
}


/* --- Consult requests --- */
.lp-consult {
  background: #fff;
}

.lp-consult__flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 34%);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.lp-consult__flow-tasks {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-consult__flow-task {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-height: 100%;
  padding: 0.625rem 0.375rem;
  border-radius: var(--lp-radius-md);
  background: #f8fbff;
  text-align: center;
}

.lp-consult__flow-task-icon {
  width: clamp(28px, 3vw, 36px);
  height: auto;
  flex-shrink: 0;
  opacity: 0.92;
}

.lp-consult__flow-task-title {
  color: var(--lp-primary);
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  font-weight: 800;
  line-height: 1.35;
}

.lp-consult__flow {
  margin: 0;
  max-width: none;
}

.lp-consult__flow-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--lp-radius-lg);
}


/* --- Consult: worries --- */
.lp-consult__worries {
  width: min(1080px, 94%);
  margin: 0 auto;
  padding-top: var(--lp-section-pad-compact);
  background: #fff;
}

.lp-consult__worries .lp-section__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin: clamp(0.75rem, 2vw, 1rem) auto 0;
  background: var(--lp-primary);
  border-radius: 2px;
}

.lp-consult__worries-media {
  max-width: min(52rem, 100%);
  margin: clamp(1.25rem, 3vw, 1.75rem) auto clamp(1.5rem, 3.5vw, 2rem);
}

.lp-consult__worries-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.lp-consult__worry-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0;
  align-items: start;
}

.lp-consult__resolve-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  margin: clamp(1.5rem, 3.5vw, 2.5rem) 0 0;
  padding: 0;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 800;
  color: #0a3366;
  text-align: center;
  line-height: 1.4;
}

.lp-consult__resolve-deco {
  flex-shrink: 0;
  height: 1.6em;
  width: auto;
  color: #0a3366;
}

.lp-consult__resolve-deco--right {
  height: 1.4em;
}

.lp-consult__worry-card {
  --worry-theme: var(--lp-primary);
  --worry-theme-border: #c5d8ef;
  --worry-theme-shadow: rgba(16, 63, 129, 0.1);
  --worry-head-overlap: 1.125rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0 0 1.25rem;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.lp-consult__worry-card--own {
  --worry-theme: #103f81;
  --worry-theme-border: #b8cce8;
  --worry-theme-shadow: rgba(16, 63, 129, 0.12);
}

.lp-consult__worry-card--switch {
  --worry-theme: #e8913d;
  --worry-theme-border: #f0d4b0;
  --worry-theme-shadow: rgba(232, 145, 61, 0.14);
}

.lp-consult__worry-card--new {
  --worry-theme: #1d9a7f;
  --worry-theme-border: #b5e4d8;
  --worry-theme-shadow: rgba(29, 154, 127, 0.14);
}

.lp-consult__worry-card .lp-consult__worry-title {
  position: relative;
  z-index: 2;
  width: min(92%, 100%);
  margin: 0 auto calc(var(--worry-head-overlap) * -1);
  padding: 0.625rem 1rem;
  box-sizing: border-box;
  background: var(--worry-theme);
  border-radius: var(--lp-radius-pill);
  box-shadow: 0 3px 12px var(--worry-theme-shadow);
  color: #fff;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
}

.lp-consult__worry-card .lp-consult__worry-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(0.75rem + var(--worry-head-overlap)) 1rem 1.5rem;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--worry-theme-border);
  border-radius: 1rem;
}

.lp-consult__worry-card .lp-consult__worry-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid var(--worry-theme-border);
}

.lp-consult__worry-card .lp-consult__worry-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 15px solid #fff;
  z-index: 1;
}

.lp-consult__worry-card .lp-consult__worry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-consult__worry-item {
  margin: 0;
  padding: 0.625rem 0;
  border-bottom: 1px dashed rgba(23, 48, 89, 0.12);
  color: var(--lp-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
}

.lp-consult__worry-item:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

@media (min-width: 769px) {
  .lp-consult__worry-item {
    font-size: 1.125rem;
    line-height: 1.65;
    padding: 0.75rem 0;
  }
}

.whale-lp {
  --lp-primary: #103f81;
  --lp-primary-dark: #0c3574;
  --lp-accent: #f97316;
  --lp-accent-dark: #ea580c;
  --lp-bg: #f8fbff;
  --lp-bg-muted: #eef4ff;
  --lp-ink: #173059;
  --lp-muted: #475569;
  --lp-border: #d7e3f6;
  --lp-radius-lg: 20px;
  --lp-radius-md: 14px;
  --lp-radius-pill: 999px;
  --lp-shadow: 0 8px 32px rgba(16, 63, 129, 0.1);
  --lp-section-pad: clamp(2rem, 4.5vw, 3.5rem);
  --lp-section-pad-compact: clamp(1.5rem, 3vw, 2.25rem);
  --lp-block-gap: clamp(1.5rem, 3vw, 2.25rem);
  --lp-h2-size: clamp(2rem, 3.2vw + 0.5rem, 2.625rem);
  --lp-h3-size: clamp(1.25rem, 2vw + 0.35rem, 1.5rem);
  font-size: 1.0625rem;
  color: var(--lp-ink);
  line-height: 1.7;
  background: #fff;
}

/* セクション共通余白 */
.whale-lp .lp-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding: var(--lp-section-pad) 0;
}

.whale-lp .lp-worries.lp-section {
  padding-top: 0;
}

.whale-lp .hero-campaign {
  min-height: auto;
}

.lp-section__inner {
  width: min(1080px, 94%);
  margin: 0 auto;
}

.lp-section__inner--narrow {
  width: min(960px, 92%);
}

/* LP セクション見出し h2 統一 */
.whale-lp .lp-section__title,
.whale-lp .lp-faq__title,
.whale-lp h2.section-heading {
  margin: 0 0 clamp(1.125rem, 2.4vw, 1.5rem);
  color: var(--lp-primary);
  font-size: var(--lp-h2-size);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
}

/* LP サブセクション見出し h3 統一 */
.whale-lp .lp-split__title,
.whale-lp .lp-flow__title {
  color: var(--lp-primary);
  font-size: var(--lp-h3-size);
  font-weight: 800;
  line-height: 1.4;
}

.lp-section__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--lp-accent);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

/* POINT 01〜05：背景の薄い POINT + 数字 */
.whale-lp .lp-point-section {
  position: relative;
  overflow: hidden;
}

.whale-lp .lp-point-section::before,
.whale-lp .lp-point-section::after {
  position: absolute;
  left: 50%;
  z-index: 0;
  color: rgba(16, 63, 129, 0.07);
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.whale-lp .lp-point-section::before {
  content: "POINT";
  top: clamp(1.25rem, 3.5vw, 2rem);
  font-size: clamp(1.125rem, 3.2vw, 1.75rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.whale-lp .lp-point-section::after {
  content: attr(data-point-num);
  top: clamp(2.25rem, 6.5vw, 3.75rem);
  font-size: clamp(6.5rem, 20vw, 11rem);
  letter-spacing: -0.04em;
}

.whale-lp .lp-point-section.lp-section--muted::before,
.whale-lp .lp-point-section.lp-section--muted::after {
  color: rgba(16, 63, 129, 0.09);
}

.whale-lp .lp-point-section .lp-section__inner {
  position: relative;
  z-index: 1;
}

.whale-lp .lp-point-section .lp-section__title {
  padding-top: clamp(2.25rem, 6.5vw, 3.5rem);
}

.whale-lp .lp-point-section .lp-split__title {
  font-size: var(--lp-h3-size);
}

.whale-lp .lp-section.lp-points {
  padding: 0;
}

.whale-lp .lp-points-group-head {
  width: 100%;
  margin: 0;
  padding: var(--lp-section-pad) 0 clamp(0.75rem, 2.5vw, 1.25rem);
  box-sizing: border-box;
}

.whale-lp .lp-points-group-head .lp-section__title {
  margin-bottom: 0;
  padding-top: 0;
}

.whale-lp .lp-points-group-head .lp-section__lead {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  text-align: center;
}

/* セクション末尾リンク */
.lp-link-row {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  font-size: 0.9375rem;
  font-weight: 800;
}

.lp-link-row a {
  color: var(--lp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-link-row--center {
  text-align: center;
}

.lp-link-row--right {
  text-align: right;
}

.lp-split__content .lp-link-row {
  margin: 0.75rem 0 0;
  text-align: left;
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  line-height: 1.5;
}

.lp-split__content:has(.lp-link-row) .lp-split__text {
  margin-bottom: 0;
}

.lp-section__lead {
  margin: 0 0 var(--lp-block-gap);
  color: var(--lp-muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.75;
  text-align: center;
}

.lp-section--muted {
  background: var(--lp-bg-muted);
}

.lp-section__lead strong {
  color: var(--lp-primary);
  font-weight: 800;
}

.whale-lp .section--pricing.lp-section {
  padding: var(--lp-section-pad) 0;
}

/* --- Mid CTA ボタン（WHY WHALE 等で共用） --- */
.lp-btn,
.lp-mid-cta__btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--lp-radius-pill);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.lp-mid-cta__btn {
  gap: 0.75rem;
  width: min(100%, 28rem);
  min-height: 3.75rem;
  padding: 0.375rem 1.125rem 0.375rem 0.375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-mid-cta__btn-badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
}

.lp-mid-cta__btn-text {
  flex: 1;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  text-align: center;
}

.lp-mid-cta__btn-icon {
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 900px) {
  .lp-mid-cta__btn {
    min-height: 3.5rem;
  }

  .lp-mid-cta__btn-badge {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
  }
}

/* --- Header（16インチPC: タイミー風スリム・横余白広め） --- */
.lp-header {
  --lp-header-height: clamp(3.25rem, 4vw, 4rem);
  --lp-header-nav-size: clamp(0.8125rem, 0.35vw + 0.72rem, 0.9375rem);
  --lp-header-btn-size: clamp(0.8125rem, 0.45vw + 0.72rem, 0.9375rem);
  --lp-header-phone-size: clamp(0.875rem, 0.65vw + 0.72rem, 1.0625rem);
  --lp-header-phone-hours-size: clamp(0.6875rem, 0.45vw + 0.58rem, 0.75rem);
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: none;
}

.lp-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem 1rem;
  padding: 0.4375rem clamp(0.75rem, 3vw, 1.25rem);
  min-height: var(--lp-header-height);
}

.lp-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.lp-header__logo img {
  display: block;
  width: auto;
  height: clamp(1.625rem, 2.2vw, 1.875rem);
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 1.2vw, 1rem);
  justify-self: end;
}

.lp-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  color: var(--lp-ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.lp-header__phone:hover,
.lp-header__phone:focus-visible {
  opacity: 0.82;
}

.lp-header__phone-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
}

.lp-header__phone-icon svg {
  width: 1rem;
  height: 1rem;
}

.lp-header__phone-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.0625rem;
  line-height: 1.25;
}

.lp-header__phone-num {
  font-size: var(--lp-header-phone-size);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lp-header__phone-hours {
  font-size: var(--lp-header-phone-hours-size);
  font-weight: 800;
  color: var(--lp-muted);
  white-space: nowrap;
}

.lp-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.5rem;
  padding: 0.4375rem 1.0625rem;
  border-radius: var(--lp-radius-pill);
  font-size: var(--lp-header-btn-size);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lp-header__btn-arrow {
  font-size: 1em;
  line-height: 1;
}

.lp-header__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.875rem, 1.6vw, 1.75rem);
  min-width: 0;
  font-size: var(--lp-header-nav-size);
}

.lp-header__nav--top {
  display: none;
  justify-self: center;
}

.lp-header__nav-link {
  color: var(--lp-ink);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.lp-header__nav-link:hover,
.lp-header__nav-link:focus-visible {
  color: var(--lp-primary);
}

body.whale-lp-page [id] {
  scroll-margin-top: calc(var(--lp-header-height) + 0.75rem);
}

@media (min-width: 1081px) {
  body.whale-lp-page,
  .lp-header {
    --lp-header-height: 4rem;
  }

  .lp-header__inner {
    width: min(1200px, calc(100% - 3rem));
    margin-inline: auto;
    padding-block: 0.625rem;
    padding-inline: 0;
    gap: 1.25rem 2rem;
  }

  .lp-header__logo img {
    height: 2rem;
  }

  .lp-header__nav--top {
    display: inline-flex;
  }

  .lp-header__btn {
    min-height: 2.625rem;
    padding: 0.4375rem 1.1875rem;
    font-size: 0.9375rem;
  }

  .lp-header__phone-num {
    font-size: 1.0625rem;
  }

  .lp-header__phone-hours {
    font-size: 0.75rem;
  }
}

@media (max-width: 1080px) {
  .lp-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .lp-header__nav--top {
    display: none;
  }

  .lp-header__actions {
    flex-shrink: 0;
    gap: 0.625rem;
  }

  .lp-header__btn {
    min-height: 2.5rem;
    padding-inline: 0.9375rem;
  }
}

@media (max-width: 640px) {
  .whale-lp .u-br-sp {
    display: block;
  }

  .lp-header__phone {
    display: none;
  }

  .lp-header__logo img {
    height: 30px;
  }

  .lp-header__btn.cta-contact {
    font-size: clamp(0.8125rem, 2.8vw + 0.45rem, 0.875rem);
    padding-inline: 0.75rem;
    min-height: 2.5rem;
    white-space: nowrap;
  }
}

/* --- Buttons --- */
.lp-btn {
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 4rem;
  padding: 1rem 1.75rem;
  border: none;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* --- Comparison table --- */
.whale-lp .lp-comparison.lp-section--muted {
  background: #fff;
}

.lp-comparison__heading {
  margin-bottom: var(--lp-block-gap);
}

.lp-comparison__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.125rem 0.5rem;
}

.lp-comparison__table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0.625rem 0;
  background: transparent;
}

.lp-comparison__table th,
.lp-comparison__table td {
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: clamp(0.8125rem, 1.35vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: normal;
  background: #fff;
}

.lp-comparison__table thead th {
  background: var(--lp-primary);
  color: #fff;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: 800;
  line-height: 1.45;
}

.lp-comparison__table thead th:first-child {
  width: 18%;
  border-radius: var(--lp-radius-md) 0 0 0;
}

.lp-comparison__table thead th:last-child {
  border-radius: 0 var(--lp-radius-md) 0 0;
}

.lp-comparison__table tbody th {
  width: 18%;
  background: #f8fafc;
  font-size: clamp(0.75rem, 1.25vw, 0.875rem);
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
}

.lp-comparison__table tbody td strong {
  font-size: inherit;
  font-weight: 800;
}

.lp-comparison__table tbody tr:last-child th:first-child {
  border-radius: 0 0 0 var(--lp-radius-md);
}

.lp-comparison__table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--lp-radius-md) 0;
}

.lp-comparison__col-whale {
  position: relative;
  z-index: 1;
  width: 30%;
  border-color: var(--lp-accent) !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 100%) !important;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.22);
}

.lp-comparison__table thead th.lp-comparison__col-whale {
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
  border-color: var(--lp-accent-dark) !important;
  background: linear-gradient(180deg, var(--lp-accent) 0%, var(--lp-accent-dark) 100%) !important;
  color: #fff;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  border-radius: var(--lp-radius-md) var(--lp-radius-md) 0 0;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.28);
}

.lp-comparison__table tbody tr:last-child td.lp-comparison__col-whale {
  border-radius: 0 0 var(--lp-radius-md) var(--lp-radius-md);
}

.lp-comparison__table tbody td.lp-comparison__col-whale {
  border-top: none;
  border-bottom: none;
}

.lp-comparison__table tbody tr:first-child td.lp-comparison__col-whale {
  border-top: 2px solid var(--lp-accent);
}

.lp-comparison__table tbody tr:last-child td.lp-comparison__col-whale {
  border-bottom: 2px solid var(--lp-accent);
}

.lp-comparison__table thead th:nth-child(3),
.lp-comparison__table thead th:nth-child(4),
.lp-comparison__table tbody td:nth-child(3),
.lp-comparison__table tbody td:nth-child(4) {
  width: 26%;
}

@media (max-width: 900px) {
  .lp-comparison__table-wrap {
    margin-inline: -0.25rem;
    padding: 0.125rem 0 0.375rem;
  }

  .lp-comparison__table {
    min-width: 680px;
    border-spacing: 0.5rem 0;
  }

  .lp-comparison__table th,
  .lp-comparison__table td {
    padding: 0.75rem 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.55;
  }

  .lp-comparison__table thead th {
    font-size: 0.8125rem;
  }

  .lp-comparison__table thead th.lp-comparison__col-whale {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-size: 0.875rem;
  }

  .lp-comparison__table tbody th {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .lp-comparison__col-whale {
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18);
  }
}

@media (max-width: 480px) {
  .lp-comparison__table {
    min-width: 600px;
    border-spacing: 0.375rem 0;
  }

  .lp-comparison__table th,
  .lp-comparison__table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .lp-comparison__table thead th {
    font-size: 0.75rem;
  }

  .lp-comparison__table thead th.lp-comparison__col-whale {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.8125rem;
  }

  .lp-comparison__table tbody th {
    font-size: 0.6875rem;
  }
}

/* --- Industries (BtoB products) --- */
.whale-lp .lp-industries {
  min-height: auto;
}

.lp-industries__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.whale-lp .lp-industries .logistics-tasks__subtitle {
  margin: var(--lp-block-gap) 0 clamp(0.5rem, 1vw, 0.75rem);
  color: var(--lp-primary);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
}

.whale-lp .lp-industries .logistics-tasks__grid {
  margin-top: 0;
  /* グリッド本体は shared-pages.css の .logistics-tasks__* を継承 */
}

.lp-industries__tags li {
  padding: 0.625rem 1.125rem;
  border: 1.5px solid var(--lp-primary);
  border-radius: var(--lp-radius-pill);
  background: #fff;
  color: var(--lp-primary);
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  font-weight: 800;
  line-height: 1.35;
}


/* --- Case study（文章主体・シンプルカード） --- */
.whale-lp .lp-case.lp-section--muted {
  background: #fafbfc;
}

.lp-case__title {
  margin-bottom: 0.5rem;
}

.lp-case__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: var(--lp-accent);
}

.lp-case__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.lp-case__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.lp-case__card-media {
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}

.lp-case__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-case__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 2vw, 1.125rem) clamp(1rem, 2vw, 1.25rem) clamp(1.125rem, 2.2vw, 1.375rem);
  text-align: left;
}

.lp-case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem 0.25rem;
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.4;
}

.lp-case__industry {
  color: var(--lp-muted);
  font-weight: 800;
}

.lp-case__meta-sep {
  color: #cbd5e1;
}

.lp-case__headline {
  margin: 0;
  color: var(--lp-ink);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.lp-case__quote {
  margin: 0;
  color: var(--lp-ink);
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 800;
  line-height: 1.75;
}

.lp-case__more {
  margin: auto 0 0;
  padding-top: 0.25rem;
  text-align: right;
}

.lp-case__more a {
  color: var(--lp-muted);
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lp-case__more a:hover,
.lp-case__more a:focus-visible {
  color: var(--lp-primary);
}


/* --- Warehouse tour --- */
.whale-lp .lp-tour {
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

/* --- Trust (company / warehouse / staff) --- */
.lp-trust__block {
  margin-bottom: var(--lp-block-gap);
}

.lp-trust__block:last-child {
  margin-bottom: 0;
}

.lp-trust__subtitle {
  margin: 0 0 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lp-primary);
  color: var(--lp-primary);
  font-size: var(--lp-h3-size);
  font-weight: 800;
  line-height: 1.4;
}

.lp-trust__company {
  margin: 0 0 1rem;
}

.lp-trust__company-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f1f3;
}

.lp-trust__company-row:last-child {
  border-bottom: 0;
}

.lp-trust__company-row dt {
  margin: 0;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.5;
}

.lp-trust__company-row dd {
  margin: 0;
  color: var(--lp-ink);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.6;
}

.lp-trust__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.lp-trust__certs li {
  padding: 0.5rem 0.875rem;
  border-radius: var(--lp-radius-pill);
  color: var(--lp-primary);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.35;
}

.lp-trust__security-text {
  margin: 0;
  color: #5b6b82;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.75;
}

/* --- Flow steps --- */
.lp-flow__lead {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  color: var(--lp-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.lp-flow__lead strong {
  color: var(--lp-accent);
}

.lp-flow__steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.lp-flow__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--lp-border);
}

.lp-flow__step:last-child {
  border-bottom: none;
}

.lp-flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}

.lp-flow__title {
  margin: 0 0 0.35rem;
}

.lp-flow__text {
  margin: 0;
  color: var(--lp-muted);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.65;
}

/* Split layout */
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.lp-split--reverse {
  direction: rtl;
}

.lp-split--reverse > * {
  direction: ltr;
}

.lp-point-section .lp-split {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.lp-point-section .lp-split .lp-split__text {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.65;
}

.lp-point-section .lp-split .lp-split__text small {
  display: block;
  margin-top: 0.5rem;
  color: #5b6b82;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}

#point-5 .lp-section__inner > p:last-child {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  color: var(--lp-muted);
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

.lp-split__media {
  margin: 0;
}

.lp-split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--lp-radius-md);
}

.lp-split__title {
  margin: 0 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--lp-primary);
}

.lp-split__text {
  margin: 0 0 1rem;
  color: var(--lp-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.lp-split__text strong {
  color: var(--lp-accent);
  font-weight: 800;
}

/* FAQ */
.lp-faq {
  background: #fff;
}

.whale-lp .lp-faq__title {
  margin-bottom: 2rem;
}

.lp-faq__list {
  display: grid;
  gap: 0.875rem;
}

.lp-faq__item {
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-md);
  overflow: hidden;
  background: #fff;
}

.lp-faq__item summary {
  padding: 1.25rem 1.375rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  font-weight: 800;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.lp-faq__item summary::-webkit-details-marker {
  display: none;
}

.lp-faq__item p {
  margin: 0;
  padding: 0 1.375rem 1.25rem;
  color: var(--lp-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .whale-lp {
    --lp-section-pad: clamp(1.75rem, 5vw, 2.75rem);
    --lp-section-pad-compact: clamp(1.375rem, 4vw, 1.875rem);
    --lp-block-gap: clamp(1.25rem, 3.5vw, 1.75rem);
  }

  .lp-split,
  .lp-split--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .lp-point-section .lp-split,
  .lp-point-section .lp-split--reverse {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 0.75rem;
    align-items: start;
  }

  .lp-point-section .lp-split--reverse {
    direction: rtl;
  }

  .lp-point-section .lp-split--reverse > * {
    direction: ltr;
  }

  .lp-point-section .lp-split .lp-split__title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    font-size: clamp(0.9375rem, 3.8vw, 1.0625rem);
  }

  .lp-point-section .lp-split .lp-split__text {
    font-size: clamp(0.8125rem, 3.2vw, 0.9375rem);
    line-height: 1.55;
  }

  .lp-industries__tags {
    gap: 0.4375rem;
    justify-content: flex-start;
  }

  .lp-industries__tags li {
    padding: 0.375rem 0.625rem;
    border-width: 1px;
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .lp-brand__pillars {
    grid-template-columns: 1fr;
  }

  .lp-consult__worry-groups {
    grid-template-columns: 1fr;
  }

  .lp-consult__flow-layout {
    grid-template-columns: 1fr;
  }

  .lp-consult__flow-tasks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lp-consult__flow {
    max-width: 420px;
    margin-inline: auto;
  }

  .lp-consult__worry-item {
    font-size: 1rem;
    line-height: 1.65;
  }

  .lp-trust__company-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .whale-lp .warehouse-tour-bases {
    grid-template-columns: 1fr;
  }

  .lp-case__grid {
    grid-template-columns: 1fr;
  }

  .lp-case__card-body {
    gap: 0.4375rem;
    padding: 0.75rem 0.75rem 0.875rem;
  }

  .lp-case__card-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .lp-consult__flow-tasks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 導入事例（/case/） */
.case-archive__section,
.case-single {
  background: #fafbfc;
}

.case-archive__lead {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.case-archive__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: #5c6b82;
  font-weight: 800;
}

.case-single__article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1rem clamp(2.5rem, 5vw, 4rem);
}

.case-single__back {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 800;
}

.case-single__back a {
  color: #103f81;
}

.case-single__title {
  margin: 0 0 1rem;
  color: #103f81;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}

.case-single__figure {
  margin: 0 0 1.25rem;
}

.case-single__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.case-single__content {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}

.case-archive .pagination,
.case-archive .nav-links {
  margin-top: 1.5rem;
  text-align: center;
}

.sp-only {
  display: none;
}
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}
