@charset "UTF-8";

:root {
  /* -------------------------------------------------
     レスポンシブタイポグラフィ (1rem = 16px 基準)
     ------------------------------------------------- */
  /* 本文ベース: スマホ15px 〜 PC16px */
  --font-size-base: clamp(0.9375rem, 0.9rem + 0.16vw, 1rem);

  /* 見出し H1 (ヒーロー見出し): スマホ24px 〜 PC36px */
  --font-size-h1: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem);

  /* 見出し H2 (セクションタイトル): スマホ22px 〜 PC32px */
  --font-size-h2: clamp(1.375rem, 1.05rem + 1.4vw, 2rem);

  /* 見出し H3 (カードタイトル等): スマホ18px 〜 PC22px */
  --font-size-h3: clamp(1.125rem, 0.95rem + 0.7vw, 1.375rem);

  /* 補足・注釈用: スマホ12px 〜 PC14px */
  --font-size-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);

  /* ==========================================
   HPE 特設ページ専用の設定
   ========================================== */
  .page-hpe {
    /* --- HPE 固有のカラーパレット --- */
    --hpe-green-600: #008465;
    --hpe-green-500: #01a781;
    --hpe-green-400: #00d294;

    /* --- HPE ページ内でのテーマ上書き --- */
    /* --color-primary を HPE グリーンに差し替える */
    --color-primary: var(--hpe-green-500);
    --color-primary-accent: var(--hpe-green-400);
    --color-primary-hover: color-mix(in srgb, var(--color-primary) 85%, black);
    --color-primary-alpha: color-mix(in srgb, var(--color-primary) 12%, transparent);

    /* ※背景色やCTAをHPE専用に変えたい場合もここだけで上書き可能 */
    /* --bg-main: #f0fdf4; */
  }
}

/* フォントサイズ設定 */
.lp-page {
  /* ページ全体の基準フォントサイズ */
  font-size: var(--font-size-base);
  line-height: 1.6;

  /* パンくずリスト */
  .lp-pankuzu {
    font-size: var(--font-size-sm);
  }

  /* H1 ヒーロー見出し */
  .lp-hero-heading h1 {
    font-size: var(--font-size-h1);
    line-height: 1.3;
  }

  /* H2 セクションタイトル */
  .lp-section-title {
    font-size: var(--font-size-h2);
    line-height: 1.35;
    margin-bottom: 2rem;
  }

  /* H3 商品タイトル・カード見出し */
  .lp-article-title,
  .lp-card-title {
    font-size: var(--font-size-h3);
    line-height: 1.4;
  }
}

/* main */

section {
  padding: 2rem 0;
}

.section-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
}

.section-gray {
  background-color: var(--slate-200);
}

.lp-page {
  display: grid;
  grid-template-columns:
    [full-start] minmax(1rem, 1fr)
    [content-start] min(100% - 2rem, 1200px)
    [content-end] minmax(1rem, 1fr)
    [full-end];

  > * {
    grid-column: content;
  }

  .full-width {
    grid-column: full;

    display: grid;
    grid-template-columns: subgrid;
    gap: 1rem;

    > * {
      grid-column: content;
    }
  }

  .lp-pankuzu {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    list-style: none;
  }

  .lp-pankuzu li:not(:last-child):after {
    content: ">";
    margin-left: 0.5rem;
  }

  .lp-hero {
    display: grid;
    grid-template-areas:
      "title image"
      "text image"
      "btn image";
    grid-template-columns: minmax(0, 1fr) clamp(240px, 50%, 640px);
    gap: 1.5rem clamp(1rem, 2.5vw, 2rem);
    background-color: var(--slate-50);
    border-radius: 24px;
    padding: clamp(1rem, 3vw, 1.5rem);
  }

  .lp-hero-heading {
    grid-area: title;
  }

  .lp-hero-text {
    grid-area: text;
  }

  .lp-hero-btn {
    grid-area: btn;
  }

  .lp-hero-img {
    grid-area: image;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .lp-section-title {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 30px;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -8px;
      width: 60px;
      height: 4px;
      background: var(--color-primary-accent);
      border-radius: 2px;
    }
  }

  .lp-section-text {
    position: relative;
    background: var(--color-primary-alpha);
    border: 1px solid var(--slate-500);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    /* 枠線用のしっぽ（外側） */
    &::before {
      content: "";
      position: absolute;
      left: 32px;
      bottom: -13px; /* 枠線分1px分低く配置 */
      border-width: 12px 10px 0;
      border-style: solid;
      border-color: var(--slate-500) transparent transparent transparent;
    }

    /* 背景塗りつぶし用のしっぽ（内側） */
    &::after {
      content: "";
      position: absolute;
      left: 33px; /* 中の塗り用に微調整 */
      bottom: -11px;
      border-width: 11px 9px 0;
      border-style: solid;
      border-color: var(--color-primary-alpha) transparent transparent transparent;
    }
  }

  .lp-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-primary-alpha); /* ブランドカラーの薄い色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lp-icon .material-symbols-outlined {
    font-size: 2rem;
    color: var(--color-primary); /* メインブランドカラー */
  }

  .lp-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
  }

  .lp-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 1rem;
    white-space: nowrap;
    vertical-align: middle;
  }

  .lp-tag-soft-primary {
    background-color: var(--color-primary);
    color: var(--slate-50);
  }

  .lp-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .lp-cta-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: 0.2s;

    &.primary {
      background-color: var(--cta-primary-bg);
      color: var(--color-white);

      &:hover {
        background-color: var(--cta-primary-bg-hover);
      }
    }

    &.secondary {
      background-color: var(--color-white);
      color: var(--color-primary-accent);
      border: 1px solid var(--color-primary-accent);

      &:hover {
        background-color: var(--slate-50);
      }
    }
  }

  .lp-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
    gap: 1rem;
  }

  .lp-article-list {
    display: grid;
    gap: 1rem;
  }

  .lp-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1.3rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: 0.2s ease;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }
  }

  .lp-article {
    display: grid;
    grid-template-areas:
      "title title"
      "image text"
      "image btn";
    grid-template-columns: auto 1fr;

    header {
      grid-area: title;
    }

    figure {
      grid-area: image;

      img {
        width: 100%;
        max-width: 400px;
        height: auto;
      }
    }

    dl {
      grid-area: text;
      display: grid;
      grid-template-columns: auto 1fr; /* 項目名と値を綺麗な2列にする */
      gap: 0.5rem 1rem;
      margin: 1rem 0;
      align-content: start;
    }

    dt {
      font-weight: bold;
      color: var(--slate-700);
      white-space: nowrap;

      &::after {
        content: ":";
        margin-left: 0.2rem;
      }
    }

    dd {
      margin: 0;
      color: var(--slate-700);
    }

    footer {
      grid-area: btn;
      place-self: center;
      justify-self: top;
    }
  }

  .lp-article-title {
    display: flex;
    align-items: center;
    padding: 0.5em 0.7em;
    background-color: var(--color-primary-alpha);

    &::before {
      display: inline-block;
      width: 5px;
      height: 1.5em;
      margin-right: 0.5em;
      background-color: var(--color-primary);
      content: "";
    }
  }

  /* チェックリストデザイン */
  .lp-checklist {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    li {
      position: relative;
      padding: 1rem 1rem 1rem 2.8rem;
      background-color: var(--color-white);
      border: 1px solid var(--slate-500);
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
      font-weight: 600;

      &::before {
        content: "✔";
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-primary);
        font-size: 1.2rem;
        font-weight: bold;
      }
    }
  }

  /* 比較テーブルデザイン */

  /* --- テーブルの横スクロールを追加 --- */
  .lp-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lp-comparison-table {
    width: 100%;
    max-width: 800px;
    min-width: 600px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--slate-500);
    border-radius: 12px;
    overflow: hidden; /* 背景色のはみ出しを防止 */

    th {
      padding: 0.75rem 1rem;
      background-color: var(--slate-500);
      color: var(--color-white);
      font-weight: 700;
      text-align: center;

      &.col-smart {
        background-color: var(--color-primary);
        color: #ffffff;
      }
    }

    td {
      padding: 0.75rem 1rem;
      border: 1px solid var(--slate-500);
      text-align: center;

      &.item-name {
        font-weight: 700;
      }

      &.smart-val {
        font-weight: 700;
        background-color: var(--color-primary-alpha);
      }
    }

    .badge-primary {
      color: var(--color-primary);
    }

    .badge-secondary {
      color: var(--color-orange-400);
    }
  }

  /* -------------------------------------------------
   おすすめモデル ナビ目次
   ------------------------------------------------- */
  .lp-model-toc {
    width: 100%;
    background-color: var(--color-white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .lp-model-toc-title {
    font-weight: bold;
    color: var(--slate-700);
    font-size: var(--font-size-base);
  }

  .lp-model-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .lp-model-toc-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    color: var(--slate-700);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .lp-model-toc-list a:hover {
    background-color: var(--color-primary-alpha);
    border-color: var(--color-primary);
    color: var(--color-primary-hover);
    /* transform: translateX(3px); */
  }

  .lp-model-toc-list .toc-badge {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--slate-500);
    background-color: var(--color-white);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--slate-200);
    white-space: nowrap;
    margin-left: 0.5rem;
  }

  /* タイムラインデザイン */
  .lp-timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 700px;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 20px; /* 左からの位置 */
      width: 2px;
      background-color: #e2e8f0; /* 薄いグレー */
    }
  }

  .lp-timeline-item {
    position: relative;
    padding-left: 50px; /* 線とドットの分の余白を空ける */
    margin-bottom: 2rem;

    &:last-child {
      margin-bottom: 0;
    }

    &::before {
      content: "";
      position: absolute;
      top: 4px; /* テキストの高さに合わせる */
      left: 12px; /* 縦線の中心に合わせる (20px - (16px/2 - 1px)) */
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background-color: var(--color-white);
      border: 4px solid var(--color-primary-accent);
      z-index: 1;
    }
  }

  .lp-timeline-content {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }

  .lp-timeline-title {
    margin: 0 0 10px 0;
    font-weight: bold;
  }

  .lp-timeline-text {
    margin: 0;
    line-height: 1.5;
  }

  /* よくある質問デザイン */
  .lp-faq {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--color-white);
    border: 1px solid var(--slate-500);
    border-radius: 8px;

    details {
      width: 100%;
      padding: 1rem;
      border: 0;
      border-bottom: 1px solid var(--slate-500);
      background: var(--color-white);

      p {
        max-width: 100%;
        overflow-wrap: break-word;
        margin-top: 0.75rem;
        margin-bottom: 0;
      }
    }

    summary {
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      font-weight: 700;
      cursor: pointer;

      &::after {
        content: "+";
        color: var(--color-primary);
        font-size: 1.5rem;
        line-height: 1.5;
        flex-shrink: 0;
        transition: transform 0.3s ease;
      }
    }
  }

  details[open] summary::after {
    content: "+";
    transform: rotate(45deg);
  }

  /* ==========================================
   最終CTA・サポート案内セクション
   ========================================== */
  .lp-final-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 960px;
    margin-inline: auto;
    padding: 3.5rem 2.5rem;
    background-color: var(--bg-surface);
    border: 2px solid var(--hpe-green-500);
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--hpe-green-500) 12%, transparent);
  }

  /* メイン見出し */
  .lp-final-title {
    font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
    font-weight: 800;
    line-height: 1.4;
  }

  /* 説明テキスト */
  .lp-final-description {
    font-size: var(--font-size-base);
    color: var(--slate-700);
  }

  /* 2大CTAボタンエリア */
  .lp-final-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 720px;
    margin-inline: auto;
  }

  /* モバイル対応 */
  @media (max-width: 768px) {
    .lp-hero {
      grid-template-areas:
        "title"
        "image"
        "text"
        "btn";
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .lp-hero-img {
      width: 100%;
      max-width: 100%;
      height: auto;
    }

    .lp-pankuzu {
      flex-wrap: wrap;
      font-size: 0.8rem;
    }

    .lp-card-list {
      grid-template-columns: 1fr;
      place-items: stretch; /* 中央寄せではなく幅一杯に広げる */
    }

    .lp-article {
      grid-template-areas:
        "title"
        "image"
        "text"
        "btn";
      grid-template-columns: 1fr;
      gap: 1rem;

      figure {
        display: flex;
        justify-content: center;
        margin: 0;

        img {
          width: 100%;
          max-width: 280px;
          height: auto;
        }
      }

      dl {
        grid-template-columns: 1fr; /* スマホでは項目と内容を縦並びにするか、小幅の2列にする */
        gap: 0.25rem;
      }

      dt {
        margin-top: 0.5rem;
      }

      footer {
        width: 100%;
        place-self: stretch;
      }
    }

    .lp-cta-group {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
    }

    .lp-cta-btn {
      width: 100%;
      max-width: 100%;
      padding: 1rem;
    }

    .lp-table-scroll {
      overflow-x: auto;
      width: 100%;
      max-width: 100%;
      display: block;
    }

    /* チェックリストの左余白とアイコン配置調整 */
    .lp-checklist {
      padding: 0;

      li {
        padding: 0.85rem 0.85rem 0.85rem 2.5rem;
        font-size: 0.95rem;

        &::before {
          left: 0.85rem;
        }
      }
    }

    /* タイムラインの余白調整 */
    .lp-timeline-item {
      padding-left: 40px;
    }

    .lp-final-card {
      padding: 2rem 1.25rem;
    }

    .lp-final-buttons {
      grid-template-columns: 1fr; /* スマホでは縦並び */
      gap: 1rem;
    }
  }
}
