@charset "UTF-8";

/* ============================================================
   株式会社ロックスライフ
   CSR・社会貢献活動ページ 専用CSS

   ファイル：assets/css/csr.css

   01. 基本設定
   02. スクロールアニメーション
   03. ファーストビュー
   04. セクション共通
   05. OUR POLICY
   06. ACTIVITIES
   07. 国内の児童養護施設への寄付
   08. アフリカの子どもたちへの食糧支援
   09. FUTURE
   10. ホバー・フォーカス
   11. タブレット
   12. スマートフォン
   13. 小型スマートフォン
   14. 動きを抑える設定
============================================================ */

/* ============================================================
   01. 基本設定
============================================================ */

/* CSRページだけで読み込むことを前提としたヘッダー設定 */
body.body > header {
  background: #ffffff;
  box-shadow: 0 1px 12px rgba(20, 35, 60, 0.08);
}

.csr {
  --csr-blue: #2a5cb8;
  --csr-blue-deep: #12326b;
  --csr-cyan: #35c8e0;
  --csr-purple: #7b3fe4;

  --csr-text: #3d4553;
  --csr-sub: #6b7482;
  --csr-line: #e3e8ef;
  --csr-gray: #f6f8fb;

  --csr-shadow: 0 6px 24px rgba(30, 50, 90, 0.08);

  --csr-shadow-hover: 0 14px 34px rgba(30, 50, 90, 0.13);

  --csr-grad: linear-gradient(
    90deg,
    var(--csr-purple) 0%,
    var(--csr-cyan) 100%
  );

  color: var(--csr-text);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;

  overflow-x: clip;
}

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

.csr-inner {
  width: 90%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* リンクのキーボード操作 */
.csr a:focus-visible {
  outline: 3px solid var(--csr-cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.csr a {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   02. スクロールアニメーション

   JSで .csr--reveal が追加された場合だけ有効。
   JavaScriptが未設定でも文章は表示される。
============================================================ */

.csr--reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.csr--reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;

  transition:
    opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   03. ファーストビュー
============================================================ */

.csr .csr-fv {
  position: relative;
  display: flex;
  align-items: center;

  min-height: 750px;
  padding: 135px 0 105px;

  background: linear-gradient(118deg, #0f2340 0%, #1d3f77 100%);

  overflow: hidden;
  isolation: isolate;
}

/* 背景画像 */
.csr .csr-fv__bg {
  position: absolute;
  inset: 0;
  z-index: -2;

  background-color: #0f2340;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  transform: scale(1.02);
}

/* 写真の上に暗いグラデーションを重ねる */
.csr .csr-fv__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    100deg,
    rgba(8, 18, 40, 0.92) 0%,
    rgba(8, 18, 40, 0.82) 40%,
    rgba(8, 18, 40, 0.55) 75%,
    rgba(8, 18, 40, 0.38) 100%
  );
}

/* コンテンツの配置 */
.csr .csr-fv__inner {
  position: relative;
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

/* 英語ラベル */
.csr .csr-fv__eyebrow {
  display: inline-block;

  margin: 0 0 26px;
  padding: 8px 18px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;

  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

/* メインコピー */
.csr .csr-fv__title {
  max-width: 850px;
  margin: 0 0 32px;

  color: #ffffff;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;

  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

/* 説明文全体 */
.csr .csr-fv__description {
  max-width: 750px;
  margin: 0;
  padding-left: 22px;

  border-left: 3px solid var(--csr-cyan);
}

/* 説明文 */
.csr .csr-fv__description p {
  margin: 0 0 16px;

  color: rgba(255, 255, 255, 0.93);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: 0.025em;
}

.csr .csr-fv__description p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   04. セクション共通
============================================================ */

/* 各セクションの余白 */
.csr .csr-sec {
  padding: 104px 0;
  background: #ffffff;
}

/* グレー背景 */
.csr .csr-sec--gray {
  background: var(--csr-gray);
}

/* 見出し全体 */
.csr .csr-sec__head {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 0 0 60px;
  text-align: center;
}

/* 英語見出し */
.csr .csr-sec__en {
  margin: 0;

  color: var(--csr-blue);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-align: center;
}

/* グラデーションライン */
.csr .csr-sec__line {
  width: 90px;
  height: 3px;

  margin: 12px 0 0;
  padding: 0;

  border: none;
  border-radius: 2px;
  opacity: 1;

  background: var(--csr-grad);
}

/* 日本語見出し */
.csr .csr-sec__ja {
  margin: 20px 0 0;

  color: var(--csr-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ============================================================
   05. OUR POLICY
   私たちの考え方
============================================================ */

.csr .csr-policy__content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* メインメッセージ */
.csr .csr-policy__title {
  max-width: 820px;
  margin: 0 auto 36px;

  color: var(--csr-blue-deep);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.035em;
}

/* メッセージ下の装飾 */
.csr .csr-policy__title::after {
  content: "";
  display: block;

  width: 48px;
  height: 3px;
  margin: 28px auto 0;

  border-radius: 2px;
  background: var(--csr-grad);
}

/* 本文 */
.csr .csr-policy__text {
  max-width: 800px;
  margin: 0 auto;
}

.csr .csr-policy__text p {
  margin: 0 0 24px;

  color: var(--csr-text);
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.025em;
  text-align: center;
}

.csr .csr-policy__text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   06. ACTIVITIES
   社会貢献活動
============================================================ */

.csr .csr-activities .csr-inner {
  max-width: 1080px;
}

/* 活動カード */
.csr .csr-activity {
  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  align-items: stretch;
  gap: 0;

  min-width: 0;
  margin: 0 0 44px;

  border: 1px solid var(--csr-line);
  border-radius: 20px;

  background: #ffffff;
  box-shadow: var(--csr-shadow);

  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.csr .csr-activity:last-child {
  margin-bottom: 0;
}

/* 2つ目は画像を右側に配置 */
.csr .csr-activity--reverse {
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 0.95fr);
}

.csr .csr-activity--reverse .csr-activity__image {
  order: 2;
}

.csr .csr-activity--reverse .csr-activity__body {
  order: 1;
}

/* 画像がない場合は文章を全幅で表示 */
.csr .csr-activity__body:only-child {
  grid-column: 1 / -1;
}

/* ========================================
   活動写真
======================================== */

.csr .csr-activity__image {
  position: relative;

  display: block;
  min-width: 0;
  min-height: 350px;

  margin: 0;
  padding: 0;

  background: #e9eef5;
  overflow: hidden;
}

/* 写真全体をカードの中に収める */
.csr .csr-activity__image img {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

/* イメージ写真の注記 */
.csr .csr-activity__image figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;

  margin: 0;
  padding: 5px 11px;

  border-radius: 5px;
  background: rgba(15, 35, 64, 0.78);

  color: #ffffff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ========================================
   活動説明エリア
======================================== */

.csr .csr-activity__body {
  min-width: 0;
  padding: 46px 42px;
}

/* 活動番号 */
.csr .csr-activity__number {
  display: inline-block;
  margin: 0 0 18px;

  color: var(--csr-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.15em;
}

/* 活動タイトル */
.csr .csr-activity__title {
  margin: 0 0 25px;

  color: var(--csr-blue-deep);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}

/* 説明文 */
.csr .csr-activity__text {
  margin: 0 0 20px;

  color: var(--csr-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: 0.02em;
}

.csr .csr-activity__text:last-of-type {
  margin-bottom: 0;
}

/* ============================================================
   07. 国内の児童養護施設への寄付
============================================================ */

/* 寄付先の表示 */
.csr .csr-activity__donation {
  margin: 30px 0 0;
  padding: 22px 24px;

  border-radius: 12px;
  background: var(--csr-gray);
}

/* 寄付先ラベル */
.csr .csr-activity__label {
  margin: 0 0 12px;

  color: var(--csr-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* 寄付先一覧 */
.csr ul.csr-activity__facilities {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.csr ul.csr-activity__facilities li {
  position: relative;

  margin: 0;
  padding: 0 0 0 18px;

  color: var(--csr-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  list-style: none;
}

/* 寄付先の点 */
.csr ul.csr-activity__facilities li::before {
  content: "";
  position: absolute;

  top: 0.72em;
  left: 0;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: var(--csr-cyan);
}

/* プレスリリース */
.csr .csr-activity__release {
  margin-top: 28px;
  padding-top: 24px;

  border-top: 1px solid var(--csr-line);
}

/* 発表日 */
.csr .csr-activity__release-date {
  margin: 0 0 14px;

  color: var(--csr-sub);
  font-size: 12.5px;
  line-height: 1.8;
}

/* リンク */
.csr a.csr-activity__release-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--csr-blue) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;

  border-bottom: 1px solid rgba(42, 92, 184, 0.35);
  padding-bottom: 5px;

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.csr a.csr-activity__release-link span {
  color: inherit;
}

/* 矢印 */
.csr .csr-activity__release-link span:last-child {
  display: inline-block;
  font-size: 18px;
  transition: transform 0.25s ease;
}

/* ============================================================
   08. アフリカの子どもたちへの食糧支援
============================================================ */

/* 年間支援額 */
.csr .csr-activity__amount {
  margin-top: 34px;
  padding: 28px 30px;

  border: 1px solid rgba(42, 92, 184, 0.14);
  border-radius: 14px;

  background: linear-gradient(
    120deg,
    rgba(123, 63, 228, 0.055) 0%,
    rgba(53, 200, 224, 0.09) 100%
  );
}

/* 支援額のラベル */
.csr .csr-activity__amount-label {
  margin: 0 0 10px;

  color: var(--csr-sub);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

/* 金額全体 */
.csr .csr-activity__amount-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;

  margin: 0;
  line-height: 1.3;
}

/* 140 */
.csr .csr-activity__amount-number {
  color: var(--csr-blue-deep);
  font-size: 45px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 万円 */
.csr .csr-activity__amount-unit {
  color: var(--csr-blue-deep);
  font-size: 19px;
  font-weight: 700;
}

/* ============================================================
   09. FUTURE
   これからの社会貢献活動
============================================================ */

.csr .csr-future {
  position: relative;
  padding: 104px 0 110px;

  background: linear-gradient(118deg, #0f2340 0%, #1d3f77 55%, #1f6f97 100%);

  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* 左側の柔らかな光 */
.csr .csr-future::before {
  content: "";

  position: absolute;
  bottom: -230px;
  left: -140px;
  z-index: -1;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(53, 200, 224, 0.2) 0%,
    rgba(53, 200, 224, 0) 70%
  );

  pointer-events: none;
}

/* 右側の柔らかな光 */
.csr .csr-future::after {
  content: "";

  position: absolute;
  top: -220px;
  right: -160px;
  z-index: -1;

  width: 480px;
  height: 480px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(123, 63, 228, 0.17) 0%,
    rgba(123, 63, 228, 0) 70%
  );

  pointer-events: none;
}

.csr .csr-future .csr-inner {
  position: relative;
  z-index: 1;
}

/* FUTUREの見出し */
.csr .csr-sec__head--light .csr-sec__en {
  color: #ffffff;
}

.csr .csr-sec__head--light .csr-sec__ja {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.75;
}

/* FUTUREの本文 */
.csr .csr-future__content {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.csr .csr-future__text {
  margin: 0 0 22px;

  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 400;
  line-height: 2.15;
  letter-spacing: 0.03em;
  text-align: center;
}

.csr .csr-future__text:last-child {
  margin-bottom: 0;
}

/* ============================================================
   10. ホバー・フォーカス
============================================================ */

@media (hover: hover) and (pointer: fine) {
  /* 活動カードの動き */
  .csr .csr-activity:hover {
    transform: translateY(-4px);
    box-shadow: var(--csr-shadow-hover);
  }

  /* プレスリリースのリンク */
  .csr a.csr-activity__release-link:hover {
    color: #1f9fb4 !important;
    border-bottom-color: #1f9fb4;
  }

  .csr a.csr-activity__release-link:hover span:last-child {
    transform: translateX(5px);
  }
}

/* ============================================================
   11. タブレット
   768px〜1024px
============================================================ */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* ファーストビュー */
  .csr .csr-fv {
    min-height: 650px;
    padding: 135px 0 85px;
  }

  .csr .csr-fv__title {
    font-size: 37px;
  }

  .csr .csr-fv__description p {
    font-size: 14.5px;
  }

  /* セクション */
  .csr .csr-sec {
    padding: 84px 0;
  }

  .csr .csr-sec__en {
    font-size: 38px;
  }

  .csr .csr-sec__head {
    margin-bottom: 48px;
  }

  /* 私たちの考え方 */
  .csr .csr-policy__title {
    font-size: 27px;
  }

  /* 活動カード */
  .csr .csr-activity__body {
    padding: 36px 30px;
  }

  .csr .csr-activity__image {
    min-height: 350px;
  }

  .csr .csr-activity__title {
    font-size: 21px;
  }

  .csr .csr-activity__text {
    font-size: 14.5px;
  }

  .csr .csr-activity__amount-number {
    font-size: 40px;
  }

  /* FUTURE */
  .csr .csr-future {
    padding: 86px 0;
  }
}

/* ============================================================
   12. スマートフォン
   767px以下
============================================================ */

@media screen and (max-width: 767px) {
  .csr {
    font-size: 15px;
  }

  /* PC専用の改行を非表示 */
  .csr .csr-pc {
    display: none;
  }

  /* ========================================
     ファーストビュー
  ======================================== */

  .csr .csr-fv {
    min-height: 0;
    padding: 115px 0 75px;
  }

  .csr .csr-fv__bg {
    background-position: center center;
  }

  .csr .csr-fv__overlay {
    background: linear-gradient(
      170deg,
      rgba(8, 18, 40, 0.91) 0%,
      rgba(8, 18, 40, 0.84) 55%,
      rgba(8, 18, 40, 0.76) 100%
    );
  }

  .csr .csr-fv__eyebrow {
    margin-bottom: 22px;
    padding: 7px 13px;

    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .csr .csr-fv__title {
    margin-bottom: 28px;

    font-size: clamp(25px, 6.4vw, 30px);
    line-height: 1.6;
    letter-spacing: 0.025em;
  }

  .csr .csr-fv__description {
    padding-left: 16px;
    border-left-width: 2px;
  }

  .csr .csr-fv__description p {
    margin-bottom: 14px;
    font-size: 13.5px;
    line-height: 2;
    letter-spacing: 0.015em;
  }

  /* ========================================
     セクション共通
  ======================================== */

  .csr .csr-sec {
    padding: 68px 0;
  }

  .csr .csr-sec__head {
    margin-bottom: 38px;
  }

  .csr .csr-sec__en {
    font-size: 31px;
  }

  .csr .csr-sec__line {
    width: 75px;
    margin-top: 10px;
  }

  .csr .csr-sec__ja {
    margin-top: 16px;
    font-size: 15px;
  }

  /* ========================================
     OUR POLICY
  ======================================== */

  .csr .csr-policy__title {
    margin-bottom: 28px;

    font-size: 23px;
    line-height: 1.75;
  }

  .csr .csr-policy__title::after {
    margin-top: 23px;
  }

  .csr .csr-policy__text p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 2.05;
    text-align: left;
  }

  /* ========================================
     ACTIVITIES
  ======================================== */

  .csr .csr-activity,
  .csr .csr-activity--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;

    margin-bottom: 26px;
    border-radius: 16px;
  }

  /* スマホでは画像→本文の順に統一 */
  .csr .csr-activity--reverse .csr-activity__image,
  .csr .csr-activity--reverse .csr-activity__body {
    order: initial;
  }

  .csr .csr-activity__image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .csr .csr-activity__image img {
    object-position: center center;
  }

  .csr .csr-activity__image figcaption {
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    font-size: 10.5px;
  }

  .csr .csr-activity__body {
    padding: 30px 24px 34px;
  }

  .csr .csr-activity__number {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .csr .csr-activity__title {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.65;
  }

  .csr .csr-activity__text {
    margin-bottom: 17px;
    font-size: 14px;
    line-height: 2;
  }

  /* ========================================
     国内の寄付
  ======================================== */

  .csr .csr-activity__donation {
    margin-top: 26px;
    padding: 20px;
  }

  .csr .csr-activity__label {
    font-size: 12.5px;
  }

  .csr ul.csr-activity__facilities li {
    font-size: 14px;
  }

  .csr .csr-activity__release {
    margin-top: 24px;
    padding-top: 20px;
  }

  .csr .csr-activity__release-date {
    font-size: 12px;
  }

  .csr a.csr-activity__release-link {
    font-size: 13.5px;
  }

  /* ========================================
     アフリカへの食糧支援
  ======================================== */

  .csr .csr-activity__amount {
    margin-top: 27px;
    padding: 23px 24px;
  }

  .csr .csr-activity__amount-label {
    font-size: 12px;
  }

  .csr .csr-activity__amount-number {
    font-size: 39px;
  }

  .csr .csr-activity__amount-unit {
    font-size: 17px;
  }

  /* ========================================
     FUTURE
  ======================================== */

  .csr .csr-future {
    padding: 74px 0 78px;
  }

  .csr .csr-sec__head--light .csr-sec__ja {
    font-size: 20px;
    line-height: 1.75;
  }

  .csr .csr-future__text {
    margin-bottom: 19px;
    font-size: 14px;
    line-height: 2.05;
    text-align: left;
  }
}

/* ============================================================
   13. 小型スマートフォン
   380px以下
============================================================ */

@media screen and (max-width: 380px) {
  .csr .csr-fv {
    padding-top: 108px;
  }

  .csr .csr-fv__title {
    font-size: 24px;
  }

  .csr .csr-fv__description p {
    font-size: 13px;
  }

  .csr .csr-policy__title {
    font-size: 21px;
  }

  .csr .csr-activity__body {
    padding: 27px 20px 30px;
  }

  .csr .csr-activity__title {
    font-size: 18px;
  }

  .csr .csr-activity__text {
    font-size: 13.5px;
  }

  .csr .csr-activity__donation {
    padding: 18px;
  }

  .csr .csr-activity__amount {
    padding: 20px;
  }

  .csr .csr-activity__amount-number {
    font-size: 36px;
  }

  .csr .csr-sec__head--light .csr-sec__ja {
    font-size: 18px;
  }
}

/* ============================================================
   14. アニメーション軽減設定

   端末側で動きを減らす設定が有効な場合は
   アニメーションを省略し、内容を必ず表示する。
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .csr *,
  .csr *::before,
  .csr *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .csr--reveal [data-reveal],
  .csr--reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   ファーストビューの高さ調整
======================================== */

/* PC */
@media screen and (min-width: 1025px) {
  .csr .csr-fv {
    min-height: 800px;
  }
}
