/* ---------
基本設定
----------- */

:root {
  /* フォント */
  --main-font: "Noto Serif JP", serif;
  /* 英字見出し */
  --en-font: "Poppins", sans-serif;
  /* 英字（明朝系・ナビ等） */
  --serif-en-font: "Cormorant Garamond", serif;
  /* 明朝（見出し等） */
  --mincho: "Shippori Mincho B1", serif;
  /* ゴシック（本文サブ等） */
  --gothic: "Noto Sans JP", sans-serif;

  /* 色（Figma Variables 準拠） */
  --text-color: #3d3a39;
  /* 本文 */
  --accent-color: #8d002b;
  /* 基調色01 */
  --gold-color: #af9b31;
  /* af9b31（特徴バーの数字・アクセント） */

  /* ヘッダー高さ（l-pageのpadding-topと連動） */
  --header-height: min(21.3333vw, 80px);
}

/* ---------
共通
----------- */
a:not(.activity__link) {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}
a.breadcrumb-link {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}
.breadcrumb-item:last-child a.breadcrumb-link {
  pointer-events: none;
}
html {
  overflow-x: hidden;
}

body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-color);
  font-family: var(--main-font);
  background: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

em {
  font-style: normal;
}

.l-page {
  padding-top: var(--header-height);
}

.section-space {
  width: calc(100% - 40px);
  margin: 0 auto;
}

/* メタル固定背景（パララックス）。透過セクションの背後で背景が固定され、
   スクロールしても動かない。SPはiOSでfixedが効かないため::beforeで固定を再現 */
.l-parallax {
  position: relative;
  z-index: 0;
  /* clip-path で position: fixed の ::before の見える範囲をこの領域内に限定する
       （fixed の背景がセクション外へはみ出さず、固定＝パララックスは保たれる） */
  clip-path: inset(0);
}

/* SPは background-attachment: fixed がモバイルブラウザ（iOS Safari等）で
   無視されるため使わない。::before を position: fixed でビューポートに固定し、
   .l-parallax の領域内でだけ見えるよう clip-path で領域を切り出してパララックスを再現。 */
.l-parallax::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: url("../images/top/bg-metal-sp.png") center / cover no-repeat;
  background-image: image-set(
    url("../images/top/bg-metal-sp.webp") type("image/webp"),
    url("../images/top/bg-metal-sp.png") type("image/png")
  );
}

/* 表示切り替え */
.sp_in {
  display: block;
}

.sp-layout {
  display: block;
}

.pc_in,
.pc-layout {
  display: none;
}

/* リンクを付けない */
.not-link a {
  color: var(--text-color);
  text-decoration: none;
  pointer-events: none;
}

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 配置 */
.is-center {
  text-align: center;
}

/* 共通ボタン（c-btn）：寸法・レイアウト・矢印の位置を集約。
   枠線・背景・文字色・矢印の色や表現は各 __btn 側で指定する */
.c-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(17.5rem, 14.5141rem + 14.0515vw, 21.25rem);
  height: min(13.3333333333vw, 50px);
  transition: opacity 0.3s ease;
}

/* 矢印アイコンの器（位置・サイズ）。中身（background/mask）は各 __btn::after で指定 */
.c-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: min(5.3333333333vw, 20px);
  width: min(2.4vw, 9px);
  height: min(2.9333vw, 11px);
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  :root {
    --header-height: min(6.735vw, 92px);
  }

  .l-page {
    padding-top: calc(
      var(--header-height) + clamp(2.5rem, 1.6973rem + 1.6722vw, 3.125rem)
    );
  }

  .section-space {
    width: 100%;
    max-width: 1920px;
  }

  /* PCはbackground-attachment: fixedでパララックスを実現（::beforeは不要） */
  .l-parallax {
    background: url("../images/top/bg-metal-pc.png") center / cover no-repeat;
    background-image: image-set(
      url("../images/top/bg-metal-pc.webp") type("image/webp"),
      url("../images/top/bg-metal-pc.png") type("image/png")
    );
    background-attachment: fixed;
  }

  .l-parallax::before {
    content: none;
  }

  .sp_in {
    display: none;
  }

  .pc_in {
    display: block;
  }

  .sp-layout {
    display: none;
  }

  .pc-layout {
    display: block;
  }

  /* 共通ボタン */
  .c-btn {
    width: min(20.4978vw, 280px);
    height: min(3.6603vw, 50px);
  }

  .c-btn::after {
    right: min(1.4641vw, 20px);
    width: min(0.6589vw, 9px);
    height: min(0.8053vw, 11px);
  }
}
