@charset "UTF-8";

/* ==========================================================================
   Foundation（変数・リセット・ベース）
   ========================================================================== */

:root {
  /* カラー */
  --color-primary: #C4143C;
  --color-primary-dark: #8F0E2C;
  --color-primary-light: #FF6B86;
  --color-text: #1A1A1A;
  --color-heading: #111111;
  --color-text-sub: #3A4046;
  --color-text-muted: #5F6B76;
  --color-text-on-dark: #C9CED3;
  --color-border: #D9DDE0;
  --color-border-strong: #111111;
  --color-gray: #A4ACB4;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-gray: #F4F5F6;
  --color-bg-dark: #111111;

  /* フォント（デザイン基本定義書 3-3 / 3-4。SP値を基本とし、768px以上で上書き） */
  /* Webフォントは読み込まず、端末にインストールされている書体を使う
     Noto Sans JP（インストール済みの端末）→ ヒラギノ（Mac・iOS）→ BIZ UDPゴシック・メイリオ（Windows）→ 標準ゴシック（Android は Noto Sans CJK JP） */
  --font-family-base: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;
  --font-size-h1: 3.0rem;
  --font-size-h2: 2.6rem;
  --font-size-h3: 2.2rem;
  --font-size-h4: 2.0rem;
  --font-size-body-l: 1.8rem;
  --font-size-body: 1.6rem;
  --font-size-small: 1.4rem; /* 注釈・出典・補足など補佐的な文言のみ */

  /* メインビジュアルのタイトル（デザイン基本定義書 3-4-1 の例外。画面幅に応じて34〜60pxで可変） */
  --font-size-hero-title: clamp(3.4rem, 5.4vw, 6.0rem);

  /* 装飾数字（デザイン基本定義書 3-4-1 の例外。日付・統計値・章番号などの大きな数字） */
  --font-size-num-xl: 4.8rem;
  --font-size-num-l: 4.0rem;
  --font-size-num-m: 2.8rem;

  /* 余白（デザイン基本定義書 4。SPはPCの70〜80%程度） */
  --space-section: 6.4rem;
  --space-section-s: 4.8rem;
  --space-heading: 2.0rem;
  --space-text: 1.6rem;
  --space-button: 2.4rem;

  /* レイアウト */
  --container-width: 108rem;
  --container-padding: 2.0rem;
  --header-height: 6.0rem;
}

@media (min-width: 768px) {
  :root {
    --font-size-h1: 4.0rem;
    --font-size-h2: 3.2rem;
    --font-size-h3: 2.4rem;
    --font-size-num-xl: 6.4rem;
    --font-size-num-l: 4.8rem;
    --font-size-num-m: 3.2rem;
    --space-section: 8.8rem;
    --space-section-s: 6.4rem;
    --space-heading: 2.4rem;
    --space-button: 3.2rem;
    --container-padding: 2.4rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 7.2rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding-bottom: 7.6rem; /* SP固定CTAの高さ分 */
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: 1.8;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

small {
  font-size: inherit;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* ==========================================================================
   Layout（l-）
   ========================================================================== */

/* コンテナ */
.l-container {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ヘッダー */
.l-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.l-header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: var(--header-height);
}

.l-header_logo {
  flex: 0 1 auto;
  min-width: 0;
}

.l-header_logo a {
  display: block;
}

.l-header_logo img {
  display: block;
  width: 20rem;
}

@media (min-width: 768px) {
  .l-header_logo img {
    width: 25.2rem;
  }
}

@media (min-width: 1024px) {
  .l-header_inner {
    gap: 2.4rem;
  }
}

/* セクション */
.l-section {
  padding: var(--space-section) 0;
}

.l-section.-gray {
  background: var(--color-bg-gray);
}

.l-section.-small {
  padding: var(--space-section-s) 0;
}

/* フッター */
.l-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.l-footer_inner {
  padding-top: 4.8rem;
  padding-bottom: 4.8rem;
  text-align: center;
}

.l-footer_copy {
  font-size: var(--font-size-small);
}


/* ==========================================================================
   Component（c-）
   ========================================================================== */

/* ボタン */
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 4.4rem;
  padding: 0 2.4rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-size: var(--font-size-body);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}

.c-button.-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.c-button.-outline {
  background: var(--color-white);
  border-color: var(--color-border-strong);
  color: var(--color-heading);
}

.c-button.-thin {
  border-width: 1px;
}

.c-button.-middle {
  min-height: 5.6rem;
  font-size: var(--font-size-body);
}

.c-button.-large {
  min-height: 6.4rem;
  padding: 0 4.4rem;
  font-size: var(--font-size-body-l);
}

.c-button.-large.-outline {
  padding: 0 3.2rem;
  font-size: var(--font-size-body);
}

.c-button.-block {
  display: flex;
  width: 100%;
}

.c-button img {
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .c-button.-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
  }

  .c-button.-outline:hover {
    background: var(--color-bg-gray);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-button {
    transition: none;
  }
}

/* セクションラベル（見出し上の小見出し） */
.c-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}

.c-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 3.2rem;
  height: 2px;
  background: currentColor;
}

/* 見出し（h2） */
.c-heading {
  margin-bottom: var(--space-heading);
  color: var(--color-heading);
  font-size: var(--font-size-h2);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}

.c-heading.-small {
  font-size: var(--font-size-h3);
}

.c-heading.-tight {
  margin-bottom: .8rem;
}

/* 見出し（h3） */
.c-subheading {
  color: var(--color-heading);
  font-size: var(--font-size-h3);
  font-weight: 700;
  line-height: 1.5;
}

/* リード文 */
.c-lead {
  max-width: 82rem;
  margin-bottom: 4.0rem;
  line-height: 1.9;
}

.c-lead.-sub {
  margin-bottom: 3.6rem;
  color: var(--color-text-sub);
}

/* 本文 */
.c-text {
  line-height: 1.9;
}

/* 注釈 */
.c-note {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* タグ */
.c-tag {
  display: inline-block;
  padding: 0 1.2rem;
  border: 1px solid var(--color-border-strong);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.8;
}

.c-tag.-fill {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  letter-spacing: .04em;
}

.c-tag.-light {
  padding: .3rem 1.4rem;
  border-color: var(--color-border);
  color: inherit;
  font-weight: 400;
  line-height: 1.7;
}

/* 装飾数字 */
.c-num {
  font-weight: 700;
  line-height: 1;
}

.c-num.-xl {
  font-size: var(--font-size-num-xl);
}

.c-num.-l {
  font-size: var(--font-size-num-l);
}

.c-num.-m {
  font-size: var(--font-size-num-m);
}

.c-num.-primary {
  color: var(--color-primary);
}

.c-num.-muted {
  color: var(--color-text-muted);
}

/* 仮置き枠（素材差し替え予定の箇所） */
.c-placeholder {
  padding: 1.6rem;
  border: 1px dashed var(--color-gray);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}


/* ==========================================================================
   Project（p-）
   ========================================================================== */

/* --------------------------------------------------------------------------
   グローバルナビ
   -------------------------------------------------------------------------- */
.p-gnav {
  flex-shrink: 0;
}

.p-gnav_list {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  font-weight: 500;
}

/* SP・タブレットはアンカーリンクを非表示にし、申し込みボタンのみ表示 */
.p-gnav_item {
  display: none;
}

.p-gnav_item.-cta {
  display: block;
}

.p-gnav_link {
  color: var(--color-text);
  font-size: var(--font-size-small); /* デザイン基本定義書の最小サイズルールの例外 */
  text-decoration: none;
}

.p-gnav_button {
  padding: 0 1.6rem;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .p-gnav_item {
    display: block;
  }

  .p-gnav_button {
    padding: 0 2.4rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .p-gnav_link:hover {
    color: var(--color-primary);
  }
}

/* --------------------------------------------------------------------------
   メインビジュアル
   -------------------------------------------------------------------------- */
.p-hero {
  border-bottom: 1px solid var(--color-border);
}

.p-hero_inner {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
  padding-top: 4.0rem;
  padding-bottom: 4.8rem;
}

.p-hero_body {
  flex: 1 1 auto;
  min-width: 0;
}

.p-hero_title {
  margin-bottom: 2.4rem;
  color: var(--color-heading);
  font-size: var(--font-size-hero-title);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .01em;
}

/* タイトル下の矢印線（情報を持たない装飾のため背景画像で表示） */
.p-hero_title::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 56rem;
  height: 1.6rem;
  margin-top: 1.6rem;
  background: url("../images/deco_underline.svg") left center / 100% 100% no-repeat;
}

.p-hero_lead {
  margin-bottom: 2.4rem;
  color: var(--color-heading);
  font-size: var(--font-size-h4);
  font-weight: 700;
  line-height: 1.5;
}

.p-hero_name {
  margin-bottom: .8rem;
  color: var(--color-heading);
  font-size: var(--font-size-h2);
  font-weight: 700;
  line-height: 1.4;
}

.p-hero_text {
  max-width: 58rem;
  color: var(--color-text-sub);
  line-height: 1.9;
}

.p-hero_actions {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: var(--space-button);
}

.p-hero_cover {
  display: flex;
  justify-content: center;
}

.p-hero_cover img {
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 340 / 481;
  object-fit: cover;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .16);
}

/* 下部のドット装飾（情報を持たない装飾のため背景画像で表示） */
.p-hero::after {
  content: "";
  display: block;
  height: 12rem;
  background: url("../images/bg_dot_pattern.svg") center / cover no-repeat;
}

@media (min-width: 768px) {
  .p-hero_actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .p-hero_inner {
    flex-direction: row;
    align-items: center;
    gap: 6.4rem;
    padding-top: 7.2rem;
    padding-bottom: 5.6rem;
  }

  .p-hero_cover {
    flex: 0 0 34rem;
  }
}

/* --------------------------------------------------------------------------
   TOPICS（イベント告知）
   -------------------------------------------------------------------------- */
.p-topics_head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.6rem;
  margin-bottom: var(--space-heading);
}

.p-topics_title {
  color: var(--color-heading);
  font-size: var(--font-size-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
}

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

.p-event {
  display: grid;
  border: 1px solid var(--color-border);
}

.p-event_date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  padding: 2.8rem 2.4rem;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.p-event_year {
  color: var(--color-primary-light);
  font-weight: 700;
  letter-spacing: .04em;
}

.p-event_date .c-num {
  white-space: nowrap;
}

/* 日付の「月」「日」は数字より小さく表示 */
.p-event_unit {
  margin: 0 .1em;
  font-size: .4em;
}

.p-event_time {
  margin-top: .8rem;
  font-weight: 700;
}

.p-event_body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem 2.0rem;
}

.p-event_tags {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.p-event_text {
  color: var(--color-text-sub);
}

.p-event_info {
  display: grid;
  gap: .2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border);
}

.p-event_row {
  display: grid;
  grid-template-columns: 8.8rem 1fr;
}

.p-event_row dt {
  color: var(--color-text-muted);
}

.p-event_action {
  padding: 0 2.0rem 2.4rem;
}

@media (min-width: 768px) {
  .p-event {
    /* 日付の列は中身（「12月17日」）の幅に合わせる。端末ごとに書体が変わっても左右の余白が同じになる */
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .p-event_date {
    grid-row: span 2;
    padding: 2.8rem 3.2rem;
  }

  .p-event_body {
    padding: 2.8rem 3.2rem;
  }

  .p-event_action {
    padding: 0 3.2rem 2.8rem;
  }}

/* --------------------------------------------------------------------------
   レポート概要・特長
   -------------------------------------------------------------------------- */
.p-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(23rem, 100%), 1fr));
  gap: 1.6rem;
}

.p-features_item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem 2.4rem 2.8rem;
  background: var(--color-white);
  border-top: 3px solid var(--color-border-strong);
}

.p-features_text {
  color: var(--color-heading);
  font-size: var(--font-size-body-l);
  font-weight: 700;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   調査ハイライト
   -------------------------------------------------------------------------- */
.p-highlight {
  display: grid;
  gap: 4.0rem;
}

.p-highlight_stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

@media (min-width: 768px) {
  .p-highlight_stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.p-highlight_source {
  grid-column: 1 / -1;
}

/* グラフの下に「文章＋誌面サンプル」を配置（PC・タブレットは2カラム） */
.p-highlight_side {
  display: grid;
  gap: 2.4rem;
}

/* 誌面サンプル（スミケイで囲む） */
.p-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.p-samples_item {
  aspect-ratio: 210 / 297;
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
}

.p-samples_item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .p-highlight_side {
    /* 文章：誌面サンプル ＝ 3：2 */
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: 4.8rem;
  }

  .p-samples {
    gap: 1.6rem;
  }
}

@media (min-width: 1024px) {
  .p-highlight {
    gap: 4.8rem;
  }
}

.p-stat {
  display: flex;
  flex-direction: column;
  gap: 2.0rem;
  padding: 2.4rem;
  background: var(--color-bg-gray);
}

.p-stat_title {
  color: var(--color-heading);
  font-size: var(--font-size-body);
  line-height: 1.8;
  font-weight: 700;
}

.p-stat_nums {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
}

.p-stat_bars {
  display: grid;
  gap: 1.0rem;
}

.p-stat_row {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  align-items: center;
  gap: 1.2rem;
  font-size: var(--font-size-small);
}

.p-stat_row.-future dt {
  font-weight: 700;
}

/* 棒グラフ（全ブラウザ共通の表示にするため、div要素とクラスで幅を指定） */
.p-stat_bar {
  display: block;
  height: 2.0rem;
  background: var(--color-white);
}

.p-stat_fill {
  display: block;
  height: 100%;
  background: var(--color-gray);
}

.p-stat_fill.-primary {
  background: var(--color-primary);
}

/* 棒の長さ（値が変わったらここを更新する） */
.p-stat_fill.-v242 { width: 24.2%; }
.p-stat_fill.-v408 { width: 40.8%; }
.p-stat_fill.-v474 { width: 47.4%; }
.p-stat_fill.-v573 { width: 57.3%; }

@media (min-width: 768px) {
  .p-stat {
    padding: 2.8rem;
  }
}

/* --------------------------------------------------------------------------
   収録内容
   -------------------------------------------------------------------------- */
.p-chapters {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.p-chapter {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  align-items: start;
  gap: 1.6rem;
  padding: 2.4rem 1.6rem;
  background: var(--color-white);
}

.p-chapter_num {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: var(--color-heading);
}

.p-chapter_label {
  color: var(--color-text-muted);
  font-weight: 700;
}

.p-chapter_body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.p-chapter_tags {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.p-chapter_text {
  color: var(--color-text-on-dark);
}

.p-chapter.-dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.p-chapter.-dark .p-chapter_body {
  gap: .8rem;
}

.p-chapter.-dark .p-chapter_label {
  color: var(--color-text-on-dark);
}

.p-chapter.-dark .p-chapter_num {
  color: var(--color-primary-light);
}

.p-chapter.-dark .c-subheading {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .p-chapter {
    grid-template-columns: 12rem 1fr;
    gap: 2.4rem;
    padding: 2.8rem 3.2rem;
  }
}

/* 取材先企業 */
.p-companies_title {
  margin-top: 4.8rem;
  margin-bottom: .4rem;
}

.p-companies_note {
  margin-bottom: 2.0rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

.p-companies {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  font-weight: 500;
}

.p-companies_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: 4.8rem;
  padding: 0 1.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

.p-companies_link img {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .p-companies {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .p-companies {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (hover: hover) and (pointer: fine) {
  .p-companies_link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
}

/* --------------------------------------------------------------------------
   発行概要
   -------------------------------------------------------------------------- */
.p-spec {
  display: grid;
  align-items: start;
  gap: 4.0rem;
}

.p-spec_table {
  border-top: 2px solid var(--color-border-strong);
}

.p-spec_row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  align-items: baseline;
  gap: 1.6rem;
  padding: 1.6rem .8rem;
  border-bottom: 1px solid var(--color-border);
}

.p-spec_term {
  color: var(--color-heading);
  font-weight: 700;
}

.p-spec_price {
  color: var(--color-heading);
  font-size: var(--font-size-h3);
  font-weight: 700;
}

.p-purchase {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.8rem 2.0rem;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.p-purchase_title {
  font-size: var(--font-size-h4);
  font-weight: 700;
  line-height: 1.5;
}

.p-purchase_note {
  color: var(--color-text-on-dark);
  font-size: var(--font-size-small);
}

@media (min-width: 768px) {
  .p-spec_row {
    grid-template-columns: 14rem 1fr;
  }

  .p-purchase {
    padding: 3.6rem 3.2rem;
  }
}

@media (min-width: 1024px) {
  .p-spec {
    grid-template-columns: minmax(0, 1fr) 36rem;
    gap: 4.8rem;
  }
}

/* --------------------------------------------------------------------------
   バックナンバー
   -------------------------------------------------------------------------- */
.p-archive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.4rem;
  padding: 2.0rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.p-archive_cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.0rem;
  height: 8.4rem;
  padding: 0;
  font-size: var(--font-size-small);
}

.p-archive_body {
  display: flex;
  flex: 1 1 32rem;
  flex-direction: column;
  gap: .2rem;
}

.p-archive_title {
  color: var(--color-heading);
  font-weight: 700;
}

.p-archive_text {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

@media (min-width: 768px) {
  .p-archive {
    padding: 2.0rem 2.8rem;
  }
}

/* --------------------------------------------------------------------------
   SP固定CTA
   -------------------------------------------------------------------------- */
.p-sp-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 1.0rem 1.6rem 1.2rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, .12);
}

@media (min-width: 768px) {
  .p-sp-cta {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   ページの先頭へ戻るボタン（追従）
   JavaScriptを使わず position: sticky で実現する。
   ・置いた位置（TOPICSの直後）を通過するまでは画面外にあり、見えない
   ・通過すると画面右下で止まって追従し、main の終わり（フッターの手前）で止まる
   ・高さ0の要素なので、レイアウトに影響しない
   -------------------------------------------------------------------------- */
.p-pagetop {
  position: sticky;
  /* ボタン（4.8rem）＋画面下からの余白（1.6rem）＋SP固定CTAの高さ（7.6rem）＋ボタン上の余白（2.4rem） */
  top: calc(100vh - 16.4rem);
  top: calc(100dvh - 16.4rem);
  z-index: 25;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding-right: 1.6rem;
}

.p-pagetop_button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  /* 最下部で止まったとき、フッター上端との間に余白をとる（追従中の位置は .p-pagetop の top で相殺） */
  margin-top: 2.4rem;
  background: var(--color-bg-dark);
  border: 1px solid var(--color-white);
  color: var(--color-white);
  transition: background-color .2s;
}

/* 上向きの矢印 */
.p-pagetop_button::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  margin-top: .6rem;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .p-pagetop {
    /* SP固定CTAがないため、ボタン（4.8rem）＋画面下からの余白（2.4rem）＋ボタン上の余白（2.4rem） */
    top: calc(100vh - 9.6rem);
    top: calc(100dvh - 9.6rem);
    padding-right: 2.4rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .p-pagetop_button:hover {
    background: var(--color-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-pagetop_button {
    transition: none;
  }
}


/* ==========================================================================
   Utility（u-）
   ========================================================================== */

/* 画面には表示せず、読み上げソフトにだけ伝える */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 途中で改行させない（年号・数値など） */
.u-nowrap {
  white-space: nowrap;
}

/* ページ内リンクの着地位置を固定ヘッダーの高さ分ずらす */
.u-anchor {
  scroll-margin-top: var(--header-height);
}
