/* ========================================
   style.css — ロボット研究部 ホームページ
   BEM命名規則 (.ブロック__エレメント--モディファイア) を使用。
   フレームワーク不使用。プレーンなCSS3のみ。
======================================== */


/* ========================================
   CSS カスタムプロパティ（変数）
   色やフォントを一箇所で管理する。
   後から色を変えたい場合はここを編集すればOK。
======================================== */
:root {
  /* カラーパレット（モノクロ基調） */
  --color-black:       #0d0d0d;
  --color-dark:        #1a1a1a;
  --color-gray-dark:   #333333;
  --color-gray:        #666666;
  --color-gray-light:  #aaaaaa;
  --color-border:      #e0e0e0;
  --color-bg-light:    #fefddf; /* クリーム: セクション背景 */
  --color-white:       #ffffff;
  --color-accent:      #222222;

  /* テーマカラー（差し色として使用） */
  --color-orange:      #e87f24; /* メインアクセント: ボタン・CTA */
  --color-yellow:      #ffc81e; /* サブアクセント: ホバー時のみ */
  --color-blue:        #73a5ca; /* クールアクセント: ボーダー・リンク */

  /* タイポグラフィ */
  --font-family:       'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-size-base:    16px;
  --line-height-base:  1.7;

  /* スペーシング */
  --section-padding:   80px;
  --container-width:   1100px;
  --container-padding: 20px;

  /* トランジション */
  --transition:        0.25s ease;
}


/* ========================================
   リセット & ベーススタイル
   ブラウザごとのデフォルトスタイルの差異をなくす。
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* スムーズスクロール: アンカーリンクをクリックした際にスムーズに移動する */
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  /* 画像が親要素からはみ出さないようにする */
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   コンテナ
   各セクションの中央揃え・最大幅・左右余白を管理する共通クラス。
======================================== */
.container {
  /* max-widthで最大幅を設定し、marginでセンタリング */
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  /* 装飾図形（z-index: -1）よりも必ず前面に来るように */
  position: relative;
  z-index: 1;
}


/* ========================================
   セクション共通スタイル
   全セクション共通の上下パディングなどを設定。
======================================== */
.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* セクションタイトル共通 */
.section__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 12px;
  /* タイトル下にブルーのアクセントライン */
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-blue);
  display: inline-block;
}

/* セクションサブタイトル共通 */
.section__subtitle {
  font-size: 0.95rem;
  color: var(--color-gray);
  text-align: center;
  margin-bottom: 48px;
}

/* 奇数セクションの背景を薄いグレーにして、セクションの区切りを明示する */
.section:nth-of-type(odd) {
  background-color: var(--color-bg-light);
}

.section:nth-of-type(even) {
  background-color: var(--color-white);
}


/* ========================================
   サイトヘッダー（スクロール連動）
   JavaScriptで opacity / transform / background をリアルタイムに更新する。
   ページ最上部では完全透明・上にオフセット → スクロールで滑らかに出現。
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 28px;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  will-change: opacity, transform, background-color;
}

.site-header.is-visible {
  pointer-events: auto;
}

.site-header__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
}

.site-header__logo {
  height: 36px;
  width: auto;
  display: block;
}

.site-header__title {
  font-family: 'DotGothic16', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  white-space: nowrap;
}


/* ========================================
   フローティングナビゲーション（右側固定）
   position: fixed + right で画面右端に常時表示。
   各リンクはドット（●）とラベルで構成され、
   ホバー時にラベルがスライドインして表示される。
======================================== */
.float-nav {
  /* 画面右端の垂直中央に固定 */
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

/* リストを縦に並べる */
.float-nav__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.float-nav__link {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  transition: color var(--transition);
}

.float-nav__link:hover {
  color: var(--color-dark);
}

/* アクティブなセクション（JavaScriptで .is-active を付与） */
.float-nav__link.is-active {
  color: var(--color-orange);
  font-weight: 700;
}


/* ========================================
   ヒーロー / トップセクション
   ページ全体の最初に表示される大きなセクション。
   テキストを画面中央に縦横センタリングする。
======================================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-white);
  color: var(--color-dark);
  position: relative;   /* スクロールインジケーターの基準点 */
}

/* 左（テキスト）+ 右（画像）の2カラムレイアウト */
.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative; /* 青い円（::after）の基準点 */
  padding: 60px var(--container-padding);
}

.hero__content {
  flex: 1;
  text-align: left;
}

.hero__subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--color-gray);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero__title {
  font-family: 'DotGothic16', sans-serif; /* 日本語対応ピクセルフォント */
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  white-space: nowrap; /* 絶対に改行しない */
  -webkit-text-stroke: 1px currentColor; /* ピクセルフォントを太く見せる */
  margin-bottom: 24px;
}

.hero__description {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-light);
  transition: color var(--transition);
}

.hero__social-link:hover {
  color: var(--color-dark);
}

.hero__social-link svg {
  width: 26px;
  height: 26px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--color-orange);
  border: 1px solid var(--color-orange);
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  transition: background-color var(--transition), border-color var(--transition);
}

.hero__cta:hover {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-dark);
}

/* マスコット画像ブロック */
.hero__logo-wrapper {
  flex-shrink: 0;
  width: 350px;
}

.hero__logo {
  width: 100%;
  height: auto;
  /* 白背景なので mix-blend-mode 不要 */
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* スクロールインジケーター（下矢印アニメーション） */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-indicator span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-orange);
  border-bottom: 2px solid var(--color-orange);
  transform: rotate(45deg);
  /* 上下にバウンドするアニメーション */
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}


/* ========================================
   セクション2: 主な活動内容
   ベントーグリッド（大小混在）レイアウト。
   1枚目は左列を全行占有する大きなカード、
   2・3枚目は右列に縦に並ぶ小さなカード。
   作品紹介（均等グリッド）・設備紹介（ジグザグ）と差別化。
======================================== */
.activities {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 3等分グリッド */
.activities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.activity-card {
  display: flex;
  flex-direction: column;
}

/* 画像: 横長（4:3）で統一 */
.activity-card__image-wrapper {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background-color: var(--color-bg-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.activity-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-card__image {
  transform: scale(1.04);
}

/* 番号: 細くて大きい装飾的な数字 */
.activity-card__number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-orange);
  display: block;
  margin-bottom: 10px;
}

.activity-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.activity-card__text {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.8;
}


/* ========================================
   セクション3: ロボット・作品紹介（カードグリッド）
   CSS Grid を使って 2列 × 2行 のレイアウト。
   スマホではメディアクエリで 1列 に変更。
======================================== */
/* 横スクロールマーキー */
.works__marquee {
  /* JSで自動スクロールを駆動しつつ、ドラッグ／ホイールでの手動スクロールも許可する。
     overflow-x: auto でネイティブスクロールを有効化し、スクロールバーは隠す。 */
  overflow-x: auto;
  overflow-y: hidden;
  margin: 48px 0 40px;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / 旧Edge */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

/* WebKit系のスクロールバーを隠す */
.works__marquee::-webkit-scrollbar {
  display: none;
}

/* ドラッグ中はカーソルを掴む形にし、テキスト選択を無効化 */
.works__marquee.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.works__track {
  display: flex;
  gap: 80px;
  width: max-content;
  padding: 0 40px;
}

.works__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  flex-shrink: 0;
}

.works__image-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.works__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.works__item:hover .works__image {
  transform: translateY(-8px);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.22));
}

.works__name {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 20px;
  text-align: center;
}

.works__sub {
  font-size: 0.82rem;
  color: var(--color-gray);
  text-align: center;
  margin-top: 6px;
  line-height: 1.6;
}

/* 「もっとみる→」リンク: 右寄せに配置 */
.works__more-link-wrapper {
  text-align: right;
}

.works__more-link {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.08em;
  padding: 12px 32px;
  border: 2px solid var(--color-dark);
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.works__more-link:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}


/* ========================================
   セクション3: 設備紹介（ジグザグレイアウト）
   Flexbox で画像とテキストを左右に並べる。
   .equipment__item--reverse クラスで flex-direction を逆にすることで、
   画像とテキストの左右を入れ替えるジグザグ（Z型）レイアウトを実現。
======================================== */
.equipment__item {
  /* Flexbox: デフォルトは テキスト（左）+ 画像（右） */
  display: flex;
  align-items: center;
  gap: 32px;
  /* margin-bottom: 40px; */
}

.equipment__item:last-child {
  margin-bottom: 0;
}

/* モディファイア: このクラスで左右を入れ替える */
.equipment__item--reverse {
  flex-direction: row-reverse;
}

/* テキストブロックと画像ブロックは均等に幅を分ける */
.equipment__text,
.equipment__image-wrapper {
  min-width: 0;    /* Flexboxのはみ出し防止 */
}

.equipment__text {
  flex: 1;
}

.equipment__image-wrapper {
  flex: 1.6;
}

.equipment__name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.equipment__description {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.8;
}

.equipment__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.equipment__image-wrapper--topping {
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment__image--topping {
  aspect-ratio: unset;
  object-fit: contain;
  max-height: 480px;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.18));
  transform: translateY(-8px);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.equipment__image--large {
  max-height: 680px;
}

.equipment__item:hover .equipment__image--topping {
  transform: translateY(-16px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.22));
}


/* ========================================
   セクション4: 歴史・実績（タイムライン）
   CSS の ::before 擬似要素を使って縦線とドットを描画する。
   .timeline__line が縦の実線。
   .timeline__item::before が各ポイントのドット（丸）。
======================================== */
.timeline {
  /* タイムライン全体: 縦線の基準点 */
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 40px;
}

/* タイムラインの縦線 */
.timeline__line {
  position: absolute;
  left: 8px;            /* ドットの中心に合わせる */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}

/* 各タイムラインアイテム */
.timeline__item {
  position: relative;
  padding: 0 0 48px 0;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* ドット（丸）: ::before 擬似要素で描画 */
.timeline__item::before {
  content: '';
  display: block;
  position: absolute;
  left: -36px;          /* .timeline の padding-left を考慮して左へ */
  top: 6px;             /* テキストの高さに合わせて調整 */
  width: 16px;
  height: 16px;
  border-radius: 50%;   /* 円にする */
  background-color: var(--color-dark);
  border: 3px solid var(--color-bg-light); /* 背景色と同じ色で縦線を「切り抜く」効果 */
  box-shadow: 0 0 0 2px var(--color-dark);  /* ドットの外枠 */
}

.timeline__content {
  padding-left: 8px;
}

.timeline__year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gray);
  margin-bottom: 4px;
}

.timeline__event {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* テキストなしアイテム: 高さだけ確保してドットと線のみ表示 */
.timeline__item--empty {
  padding-bottom: 48px;
}


/* ========================================
   セクション5: 入部希望者向け
   テキストを中央揃えで表示。
======================================== */
/* 左（活動情報）+ 右（マップ）の2カラムレイアウト */
.join__body {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.join__info {
  flex: 1;
  min-width: 0;
}

/* 定義リスト: 活動日・時間・場所 */
.join__details {
  margin-bottom: 32px;
}

.join__detail-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.join__detail-item:first-child {
  border-top: 1px solid var(--color-border);
}

.join__detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  width: 80px;
  flex-shrink: 0;
  padding-top: 2px;
}

.join__detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.join__welcome {
  list-style: none;
  margin-bottom: 28px;
}

.join__welcome li {
  font-size: 0.95rem;
  color: var(--color-dark);
  padding: 6px 0 6px 20px;
  position: relative;
}

.join__welcome li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-size: 0.65rem;
  top: 10px;
}

.join__cta {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--color-orange);
  color: var(--color-white);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: background-color var(--transition);
}

.join__cta:hover {
  background-color: var(--color-yellow);
  color: var(--color-dark);
}

/* 構内マップ */
.join__map {
  flex: 1;
  min-width: 0;
}

.join__map-images {
  display: flex;
  gap: 8px;
}

.join__map-image {
  width: 50%;
  height: 260px;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.join__map-image--detail {
  object-fit: contain;
  object-position: center;
}

.join__map-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-gray);
}


/* ========================================
   セクション6: お問い合わせ
   連絡先とコンタクトフォームを中央に表示。
======================================== */
/* 連絡先カード: Flexboxで横並び・中央揃え */
.contact__cards {
  display: flex;
  justify-content: center;
  gap: 32px;
}

/* カード1枚 */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 48px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  min-width: 220px;
  text-decoration: none;
  color: var(--color-dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--color-orange);
}

/* アイコン円形背景 */
.contact-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange);
  transition: background-color var(--transition);
}

.contact-card:hover .contact-card__icon {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.contact-card__icon svg,
.contact-card__icon-img {
  width: 28px;
  height: 28px;
}

/* ホバー時: 黒ロゴ → 白ロゴに切り替え */
.contact-card:hover .contact-card__icon-img {
  content: url('assets/images/x-logo/logo-white.webp');
}

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-gray);
  text-transform: uppercase;
}

.contact-card__value {
  font-size: 0.9rem;
  color: var(--color-blue);
  word-break: break-all;
  text-align: center;
}



/* ========================================
   フッター
======================================== */
.footer {
  background-color: var(--color-black);
  color: var(--color-gray-light);
  padding: 24px var(--container-padding);
  text-align: center;
}

.footer__text {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}


/* ========================================
   レスポンシブデザイン
   ブレークポイントは2段階:
     タブレット: max-width 1024px
     スマホ:     max-width 768px
======================================== */

/* ----------------------------------------
   タブレット（〜1024px）
   サイドの余白・フォントサイズを少し縮小する程度。
---------------------------------------- */
@media (max-width: 1024px) {

  /* ヒーロー: ロゴを少し小さく */
  .hero__logo-wrapper {
    width: 260px;
  }

  /* 設備: gapを縮小 */
  .equipment__item {
    gap: 40px;
  }

  /* 入部: gapを縮小 */
  .join__body {
    gap: 40px;
  }
}


/* ----------------------------------------
   スマホ（〜768px）
   1カラム化・フォント縮小・余白調整を行う。
---------------------------------------- */
@media (max-width: 768px) {

  /* CSS変数をスマホ用に上書き */
  :root {
    --section-padding: 48px;
    --container-padding: 16px;
  }

  /* ---- フローティングナビ: スマホでは非表示 ---- */
  .float-nav {
    display: none;
  }

  /* ---- セクションタイトル ---- */
  .section__title {
    font-size: 1.5rem;
  }

  /* ---- ヒーロー ---- */
  /* 画像が上、テキストが下の縦積みに変更 */
  .hero__inner {
    flex-direction: column-reverse;
    gap: 24px;
    padding: 48px var(--container-padding);
    text-align: center;
  }

  .hero__content {
    text-align: center;
  }

  .hero__logo-wrapper {
    width: 160px;
  }

  .hero__title {
    /* vwで幅いっぱいに広げる。「ロボット研究部」7文字が改行なく収まるサイズ */
    font-size: 10.5vw;
    line-height: 1.6;
  }

  .hero__description {
    font-size: 0.88rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta {
    width: 100%;
    text-align: center;
  }

  /* ---- 活動内容: 3列 → 1列 ---- */
  .activities__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ---- 設備（ジグザグ）: 縦積みに変更 ---- */
  .equipment__item,
  .equipment__item--reverse {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .equipment__name {
    font-size: 1.2rem;
  }

  /* ---- 入部希望者: 縦積みに変更 ---- */
  .join__body {
    flex-direction: column;
    gap: 32px;
  }

  .join__cta {
    width: 100%;
    text-align: center;
  }

  /* ---- お問い合わせ ---- */
  .contact__cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 360px;
  }

  /* ---- 装飾図形: スマホでは小さく・薄く ---- */
  .hero::before         { width: 340px; height: 340px; right: -100px; bottom: -100px; }
  .hero::after          { width: 260px; height: 260px; left: -70px; top: -70px; }
  .works::before        { width: 120px; height: 120px; top: -40px; right: -40px; }
  .works::after         { border-width: 0 0 48px 48px; bottom: 20px; left: 16px; }
  .equipment::before    { border-width: 72px 72px 0 0; }
  .equipment::after     { width: 48px; height: 48px; right: 20px; bottom: 20px; }
  .join::before         { width: 44px; height: 44px; right: 20px; top: 20px; }
  .contact::before      { border-width: 0 48px 48px 0; left: 16px; top: 16px; }
  .contact::after       { width: 220px; height: 220px; right: -80px; bottom: -80px; }

}


/* ========================================
   装飾: 幾何学的な差し色要素
   ::before / ::after 擬似要素のみで実装。
   HTMLには一切手を加えない。
   各セクションに overflow: hidden を設定して
   画面外にはみ出す形状をクリップする。
======================================== */

/* ---- ヒーローセクション ---- */
.hero {
  overflow: hidden;
  isolation: isolate;
}

/* 右下: 大きな塗り円（ブルー）
   .hero 基準で固定 → 画面幅が変わっても右下に貼りついたまま */
.hero::before {
  content: '';
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background-color: var(--color-blue);
  opacity: 0.13;
  pointer-events: none;
  z-index: -1;
}

/* 左上: 回転した塗り四角（オレンジ）
   .hero 基準で固定 → 画面幅が変わっても左上に貼りついたまま */
.hero::after {
  content: '';
  position: absolute;
  left: -100px;
  top: -100px;
  width: 420px;
  height: 420px;
  background-color: var(--color-orange);
  transform: rotate(25deg);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

/* ---- 作品紹介セクション ---- */
.works {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 右上: 円のアウトライン（ブルー） */
.works::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--color-blue);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* 左下: 塗り三角（オレンジ） */
.works::after {
  content: '';
  position: absolute;
  bottom: 32px;
  left: 32px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 72px 72px;
  border-color: transparent transparent var(--color-orange) transparent;
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

/* ---- 設備紹介セクション ---- */
.equipment {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 左上: 大きな塗り三角（オレンジ） */
.equipment::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 120px 120px 0 0;
  border-color: var(--color-orange) transparent transparent transparent;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

/* 右下: 四角のアウトライン（ブルー） */
.equipment::after {
  content: '';
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 72px;
  height: 72px;
  border: 3px solid var(--color-blue);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* ---- 入部希望者セクション ---- */
.join {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 右上: 傾いた塗り四角（イエロー） */
.join::before {
  content: '';
  position: absolute;
  right: 48px;
  top: 36px;
  width: 64px;
  height: 64px;
  background-color: var(--color-yellow);
  transform: rotate(20deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* 左下: 塗り円（オレンジ） */
.join::after {
  content: '';
  position: absolute;
  bottom: -48px;
  left: -48px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--color-orange);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

/* ---- お問い合わせセクション ---- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 右下: 大きな塗り円（オレンジ） */
.contact::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background-color: var(--color-orange);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

/* 左上: 塗り三角（ブルー） */
.contact::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 32px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 72px 72px 0;
  border-color: transparent var(--color-blue) transparent transparent;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
