/* =====================================================
PROTON PAGE 共通
===================================================== */
.proton-page {
  background: #ffffff;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
}

/* =====================================================
HERO（ファーストビュー）
===================================================== */

.proton-hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面いっぱい（PC） */
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
  text-align: left;
  overflow: hidden;
}

/* 背景画像ラッパー */
.proton-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 画像をラッパーいっぱいに広げて cover */
.proton-hero__bg picture,
.proton-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
}

.proton-hero__bg img {
  object-fit: cover;
}

/* 上からのグラデーション（前の ::before をこちらに） */
.proton-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .35),
    rgba(0, 0, 0, .15)
  );
}

/* テキストブロック */
.proton-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  padding-inline: 2rem;
  margin-left: 8%;
}

.proton-hero__logo img {
  max-width: 420px;
  width: 70%;
  height: auto;
  display: block;
  margin-left: 0;
}

.proton-hero__copy {
  margin-top: 2.4rem;
  font-size: 2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

.proton-hero__sub {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  line-height: 1.9;
  color: #fff;
}

/* =====================================================
セクション1（ラム画像＋テキスト）
===================================================== */

.proton-section {
  padding: 8rem 0;
}

.proton-section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
}

.proton-section__image {
  flex: 0 0 55%;
}

.proton-section__image img {
  width: 100%;
  height: auto;
  display: block;
}

.proton-section__body {
  flex: 0 0 45%;
}

.proton-section__title {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 2.4rem;
}

.proton-section__lead {
  font-size: 1.4rem;
  line-height: 1.9;
  margin-bottom: 1.6rem;
}

.proton-section__text {
  font-size: 1.4rem;
  line-height: 2;
  margin-bottom: 1.2rem;
}

/* =====================================================
プリザンプティブモデル
===================================================== */

.proton-model {
  padding: 8rem 0;
  background: #fff;
}

.proton-model__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 2rem;
}

.proton-model__title {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: .12em;
  margin-bottom: 3.2rem;
}

/* PC：画像を少し小さくして見やすく（50% → 40%） */
.proton-model__cols {
  display: flex;
  justify-content: center; /* 中央寄せ */
  align-items: flex-start;
  gap: 3rem; /* 余白を少し狭く */
}

.proton-model__col {
  flex: 0 0 40%; /* ←ここで画像幅を縮小 */
}

.proton-model__col img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
SP レスポンシブ
===================================================== */

@media (max-width: 767px) {

  /* ===== HERO の SP 背景切替 ===== */

  .proton-hero {
    /* まずは従来ブラウザ向けのフォールバック */
    height: calc(100vh - 60px);

    /* iOS Safari など dvh 対応ブラウザではこちらが効く */
    height: calc(100dvh - 60px);

    align-items: flex-end;
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .proton-hero__inner {
    margin-left: 0;
    /* 下の余白を少し詰めて文字を上に */
    padding: 0 1.8rem 2.4rem;
    max-width: 100%;
  }

  .proton-hero__logo img {
    max-width: 260px;
    width: 80%;
    margin: 0 auto;
  }

  .proton-hero__copy {
    font-size: 1.6rem;
    margin-top: 1.4rem;
  }

  .proton-hero__sub {
    font-size: 1.4rem;
  }

  /* ===== セクション1 画像と本文を逆に ===== */

  .proton-section {
    padding: 5.6rem 0;
  }

  .proton-section__inner {
    flex-direction: column-reverse;
    gap: 3.2rem;
    padding: 0 3rem;
  }

  .proton-section__image,
  .proton-section__body {
    width: 100%;
    flex: none;
  }

  .proton-section__title {
    font-size: 2rem;
  }

  /* ===== プリザンプティブモデル SPで縦並び ===== */

  .proton-model {
    padding: 5.6rem 0;
  }

  .proton-model__cols {
    flex-direction: column;
    gap: 2.4rem;
  }

  .proton-model__col {
    width: 100%;
    flex: none;
  }

  .proton-model__inner {
    padding-inline: 4rem;
  }
}

/* =========================================
プロトン凍結 point1 / point2 / point3
========================================= */

.proton-point {
  padding: 6rem 0 8rem;
  background: #fff;
}

.proton-point__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 2rem;
}

/* 上の3カラム部分 */
.proton-point__items {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}

.proton-point__item {
  flex: 1 1 0;
  text-align: center;
}

.proton-point__label {
  font-size: 1.4rem;
  color: #00a6d9;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.proton-point__thumb {
  margin-bottom: 1.6rem;
}

.proton-point__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.proton-point__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.proton-point__text {
  font-size: 1.3rem;
  line-height: 1.9;
}

/* 下の説明テキスト */
.proton-point__desc {
  font-size: 1.4rem;
  line-height: 1.8; /* 行間少し詰める */
  max-width: 720px; /* 横幅を絞る */
  margin: 0 auto; /* 中央寄せ */
  text-align: left; /* 読みやすく左寄せ */
  padding-bottom: 6rem; /* ページ最下部に締まる余白 */
}

.proton-point__desc p + p {
  margin-top: 1.6rem; /* 段落間の余白 */
}

/* SP：1カラム縦並びに */
@media (max-width: 767px) {

  .proton-point {
    padding: 4.8rem 0 6.4rem;
  }

  .proton-point__items {
    flex-direction: column;
    gap: 2.4rem;
    margin-bottom: 3.2rem;
  }

  .proton-point__item {
    text-align: center;
  }

  .proton-point__thumb img {
    max-width: 260px;
    margin-inline: auto;
  }

  .proton-point__desc {
    font-size: 1.3rem;
    line-height: 1.9;
    max-width: 92%;
    padding-bottom: 5rem;
  }
}

.proton-model__credit {
  margin-top: 1.6rem;
  font-size: 1.2rem;
  color: #777;
  text-align: right;
}

@media (max-width: 767px) {
  /* このクラスを付けたセクションだけは 画像 → 文章 の順にする */
  .proton-section--image-first-sp .proton-section__inner {
    flex-direction: column; /* 通常の順番に戻す */
  }
}

/* =========================================
トップページへ戻るボタン
========================================= */
.proton-backtohome {
  text-align: center;
  padding: 5rem 0 8rem;
}

.proton-backtohome__btn {
  display: inline-block;
  padding: 1.4rem 3.2rem;
  font-size: 1.4rem;
  border-radius: 9999px;
  background: #333;
  color: #fff;
  letter-spacing: .08em;
  transition: .2s ease;
}

.proton-backtohome__btn:hover {
  opacity: .8;
}

.proton-model__title-block {
  text-align: center;
  padding: 5rem 0 4rem;
}

.proton-model__title-block::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #ccc;
  margin: 2.4rem auto 0;
}

.proton-model__title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
  margin: 0;
}

.proton-model__subtitle {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  letter-spacing: .16em;
  color: #666;
  text-align: center;
}

/* 共通のフェードアップアニメーション */
@keyframes protonHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 初期状態を透明＆少し下に */
.proton-hero__logo,
.proton-hero__copy,
.proton-hero__sub {
  opacity: 0;
  transform: translateY(24px);
}

/* ロゴ → 英語コピー → 日本語テキスト の順に表示（少しゆっくり） */
.proton-hero__logo {
  animation: protonHeroFadeUp 1.4s ease-out forwards;
  animation-delay: .4s;
}

.proton-hero__copy {
  animation: protonHeroFadeUp 1.4s ease-out forwards;
  animation-delay: 1.0s;
}

.proton-hero__sub {
  animation: protonHeroFadeUp 1.4s ease-out forwards;
  animation-delay: 1.6s;
}

/* 初期状態：ちょっと下＋透明 */
.js-fadein {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .8s ease-out,
    transform .8s ease-out;
}

/* 画面内に入ったら表示 */
.js-fadein.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを抑えたい人向け（OS設定連動） */
@media (prefers-reduced-motion: reduce) {
  .js-fadein {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
