Spaces:
Sleeping
Sleeping
File size: 20,864 Bytes
8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 ac6844c 8fc1930 3f6ad64 8fc1930 0640af2 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 ac6844c 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 ac6844c 8fc1930 3f6ad64 8fc1930 ac6844c 8fc1930 ac6844c 8fc1930 3f6ad64 8fc1930 ac6844c 8fc1930 ac6844c 8fc1930 ac6844c 8fc1930 3f6ad64 8fc1930 ac6844c 8fc1930 3f6ad64 8fc1930 3f6ad64 8fc1930 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 | <!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LEOC 業務ポータルサイト | 入社時のご案内</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* --- ベーススタイル --- */
:root {
--theme-green: #29a745;
--theme-green-light: #f0f9f2;
--footer-bg: #305590;
--text-primary: #333333;
--bg-color: #ffffff;
--header-height: 70px;
}
html { scroll-behavior: smooth; }
body {
margin: 0; padding: 0;
background-color: var(--bg-color);
font-family: "Helvetica Neue", "Arial", sans-serif;
color: var(--text-primary);
line-height: 1.6;
/* 【修正】基本文字サイズを拡大 */
font-size: 18px;
}
/* --- ヘッダー --- */
header {
background: #ffffff;
border-bottom: 4px solid var(--theme-green);
padding: 10px 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
position: sticky; top: 0; z-index: 1000;
/* 高さは固定せず、内容に応じて広がるように変更 */
height: auto;
min-height: var(--header-height);
box-sizing: border-box;
}
.header-inner {
max-width: 1200px; margin: 0 auto; padding: 5px 20px;
display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 26px; font-weight: 900; color: #222; }
.logo-sub { font-size: 11px; color: #777; letter-spacing: 0.15em; }
.header-right { display: flex; align-items: center; gap: 10px; }
.btn-portal {
font-size: 14px; padding: 8px 12px; border: 1px solid #333;
color: #333; text-decoration: none; border-radius: 4px; font-weight: bold;
}
/* --- 追従型インデックスナビゲーション(修正版) --- */
.sticky-nav {
position: sticky;
top: var(--header-height); /* PC等の位置 */
z-index: 999;
background: rgba(255, 255, 255, 0.98);
border-bottom: 1px solid #ddd;
box-shadow: 0 4px 6px -4px rgba(0,0,0,0.1);
}
.nav-list {
display: flex; margin: 0; padding: 0; list-style: none;
max-width: 1000px; margin: 0 auto;
/* 【修正】スマホで見切れないよう、折り返しを許可 */
flex-wrap: wrap;
justify-content: center;
}
.nav-item {
/* 【修正】スマホで押しやすいサイズ感に */
flex: 0 0 auto;
}
.nav-link {
display: block; padding: 12px 15px;
font-size: 15px; /* メニュー文字サイズ */
font-weight: bold; color: #555; text-decoration: none;
border-bottom: 4px solid transparent;
transition: all 0.2s;
}
/* アクティブ時のスタイル */
.nav-link:hover, .nav-link.active {
color: var(--theme-green); border-bottom-color: var(--theme-green); background-color: var(--theme-green-light);
}
.nav-icon { margin-right: 6px; }
/* --- メインコンテンツ --- */
.container { max-width: 900px; margin: 0 auto; padding: 30px 20px 80px; }
.page-intro {
text-align: center; margin-bottom: 40px; padding: 30px 20px;
background-color: #f9f9f9; border-radius: 10px;
}
.page-title {
font-size: 32px; /* タイトル拡大 */
margin: 0 0 15px; color: #222; font-weight: 800;
}
.page-desc {
font-size: 16px; /* 説明文拡大 */
color: #444; line-height: 1.8;
}
/* --- セクションスタイル --- */
.content-section {
margin-bottom: 80px; padding-top: 20px; border-top: 1px dashed #ddd;
/* アンカーリンクのズレ調整 */
scroll-margin-top: 160px;
}
.section-header {
display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
padding-left: 15px; border-left: 8px solid var(--theme-green);
}
.section-title { font-size: 26px; margin: 0; font-weight: bold; color: #333; }
.section-subtitle {
font-size: 14px; color: #666; margin-left: auto;
background: #eee; padding: 4px 10px; border-radius: 4px;
}
/* 画像・カードスタイル */
.image-container {
width: 100%; margin-bottom: 30px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; background: #fff;
border: 1px solid #eee;
}
.guide-image { width: 100%; height: auto; display: block; }
.image-caption {
padding: 12px 15px; background: #f0f0f0; font-size: 15px; font-weight: bold; color: #333;
border-bottom: 1px solid #ddd;
}
/* テキスト情報ブロック(ID/PASS等) */
.info-block {
background-color: #f8fcf9; border: 2px solid #c3e6cb; border-radius: 8px;
padding: 20px; margin-bottom: 30px;
}
.info-title {
font-weight: bold; font-size: 18px; margin-bottom: 15px;
color: #155724; display: flex; align-items: center; gap: 8px;
}
.info-row { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 10px; font-size: 16px; align-items: center; }
.info-label { font-weight: bold; color: #444; min-width: 80px; }
.info-value {
font-family: monospace; font-size: 18px; font-weight: bold;
background: #fff; padding: 4px 10px; border: 1px solid #aaa; border-radius: 4px; select-all: auto;
}
.info-note { font-size: 14px; color: #666; margin-top: 10px; }
/* 動画エリア */
.video-wrapper {
position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
background: #000; border-radius: 10px; margin-bottom: 15px;
}
.video-wrapper iframe {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.video-fallback-link {
display: inline-block; font-size: 15px; color: #fff; background-color: #c00;
padding: 10px 25px; border-radius: 30px; text-decoration: none; margin-bottom: 30px;
font-weight: bold; transition: opacity 0.2s;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.video-fallback-link:hover { opacity: 0.8; }
.video-fallback-note { font-size: 14px; color: #555; margin-bottom: 10px; font-weight: bold; }
/* --- フッター --- */
footer { background-color: var(--footer-bg); color: #fff; padding: 50px 0; font-size: 14px; }
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 0 25px; text-align: center; }
.copyright { margin-top: 15px; opacity: 0.8; }
/* --- スマホ専用調整 --- */
@media (max-width: 768px) {
/* ナビゲーションを折り返し表示&大きく */
.sticky-nav {
position: relative; /* スマホでは画面占有率を下げるため、追従させない(あるいはtop調整) */
top: 0;
overflow: visible;
height: auto;
}
.nav-list {
flex-wrap: wrap; /* 折り返し有効 */
justify-content: flex-start; /* 左詰め(あるいはcenter) */
}
.nav-item {
flex: 1 0 33.33%; /* 3列表示で大きく */
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
text-align: center;
}
.nav-link {
font-size: 13px; /* ボタン内の文字サイズ調整 */
padding: 10px 5px;
line-height: 1.3;
}
/* ヘッダー調整 */
.logo-main { font-size: 22px; }
.header-inner { flex-direction: row; align-items: center; }
/* コンテンツ調整 */
.page-title { font-size: 24px; }
.page-desc { font-size: 15px; text-align: left; }
.section-header { flex-direction: column; align-items: flex-start; border-left: 5px solid var(--theme-green); }
.section-subtitle { margin-left: 0; margin-top: 5px; }
.info-row { flex-direction: column; align-items: flex-start; gap: 5px; }
.info-value { width: 100%; box-sizing: border-box; }
/* 見切れ対策 */
body { font-size: 16px; } /* スマホではベースを少しだけ抑えるが、PCよりは大きく見せる */
}
</style>
</head>
<body>
<!-- ヘッダー -->
<header>
<div class="header-inner">
<div class="logo-area">
<div class="logo-main">オノパー</div>
<div class="logo-sub">ONODERA PARK</div>
</div>
<div class="header-right">
<a href="#" class="btn-portal">ポータルTOPへ</a>
</div>
</div>
</header>
<!-- ナビゲーション(スマホで見切れないよう折り返し対応) -->
<nav class="sticky-nav">
<ul class="nav-list">
<li class="nav-item">
<a href="#sec-health" class="nav-link"><i class="fa-solid fa-user-nurse nav-icon"></i>体調・緊急</a>
</li>
<li class="nav-item">
<a href="#sec-training" class="nav-link"><i class="fa-solid fa-graduation-cap nav-icon"></i>研修・動画</a>
</li>
<li class="nav-item">
<a href="#sec-welfare" class="nav-link"><i class="fa-solid fa-gift nav-icon"></i>福利厚生</a>
</li>
<li class="nav-item">
<a href="#sec-info" class="nav-link"><i class="fa-solid fa-circle-info nav-icon"></i>社内情報</a>
</li>
<li class="nav-item">
<a href="#sec-anpi" class="nav-link"><i class="fa-solid fa-mobile-screen nav-icon"></i>安否確認</a>
</li>
<li class="nav-item">
<a href="#sec-pweb" class="nav-link"><i class="fa-solid fa-file-invoice-dollar nav-icon"></i>給与・MN</a>
</li>
<li class="nav-item">
<a href="#sec-compliance" class="nav-link"><i class="fa-solid fa-comments nav-icon"></i>相談窓口</a>
</li>
</ul>
</nav>
<main class="container">
<div class="page-intro">
<!-- タイトル変更 -->
<h1 class="page-title">入社時のご案内</h1>
<p class="page-desc">
入社時に必要な動画視聴、各種登録手続き、福利厚生の利用方法をまとめています。<br>
※画像内のID/パスワードはコピーしてご利用ください。
</p>
</div>
<!-- 1. 体調不良・緊急連絡 -->
<section id="sec-health" class="content-section">
<div class="section-header">
<h2 class="section-title">体調不良時・緊急連絡先</h2>
<span class="section-subtitle" style="color:#e74c3c; font-weight:bold;">最優先</span>
</div>
<div class="image-container">
<div class="image-caption">▼ 嘔吐・下痢・腹痛時の対応ルール</div>
<!-- 画像リンクあり -->
<a href="https://lh3.googleusercontent.com/d/1XlMVeBv-kHYBgPo_1ufrbLXDeBAV0dGQ" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1XlMVeBv-kHYBgPo_1ufrbLXDeBAV0dGQ" alt="体調不良に関するお願い" class="guide-image">
</a>
</div>
<div class="image-container">
<div class="image-caption">▼ 緊急連絡先カード</div>
<a href="https://lh3.googleusercontent.com/d/189ei6TnFnGyWKG88YpVK5veckMHV9b1V" target="_blank">
<img src="https://lh3.googleusercontent.com/d/189ei6TnFnGyWKG88YpVK5veckMHV9b1V" alt="緊急連絡先カード" class="guide-image">
</a>
</div>
</section>
<!-- 2. 研修・動画 -->
<section id="sec-training" class="content-section">
<div class="section-header">
<h2 class="section-title">入社時動画の視聴</h2>
<span class="section-subtitle">必須研修</span>
</div>
<!-- 説明ブロック(動画の前へ移動) -->
<div class="info-block">
<div class="info-title"><i class="fa-solid fa-film"></i> 会社概要・研修動画</div>
<p style="margin-bottom:10px;">LEOCに入社される全ての方が対象です。会社や業務を知って頂く事を目的としています。</p>
</div>
<!-- YouTube動画埋め込み -->
<div class="video-wrapper">
<iframe
src="https://www.youtube.com/embed/M5DebUhDCVc?si=OONODERA_GROUP"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
</div>
<!-- エラー回避用:直接リンク -->
<div style="text-align:center;">
<p class="video-fallback-note">※動画が再生できない場合は、下のボタンから直接視聴してください。</p>
<a href="https://youtube.com/watch?v=M5DebUhDCVc" target="_blank" class="video-fallback-link">
<i class="fa-brands fa-youtube"></i> YouTubeで動画を見る
</a>
</div>
</section>
<!-- 3. 福利厚生・手当 -->
<section id="sec-welfare" class="content-section">
<div class="section-header">
<h2 class="section-title">福利厚生・手当制度</h2>
<span class="section-subtitle">従業員限定</span>
</div>
<!-- ベネフィット・ステーション -->
<div class="info-block">
<div class="info-title"><i class="fa-solid fa-ticket"></i> ベネフィット・ステーション</div>
<p style="margin-bottom:10px;">レジャー、グルメ、映画、宿泊などが割引価格で利用できます。(入社2ヶ月以上対象)</p>
<div class="info-row">
<span class="info-label">URL</span>
<span class="info-value"><a href="http://bs.benefit-one.inc" target="_blank">http://bs.benefit-one.inc</a></span>
</div>
<div class="info-row">
<span class="info-label">団体ID</span>
<span class="info-value">C100130AV</span>
</div>
<div class="info-row">
<span class="info-label">認証キー1</span>
<span class="info-value">社員番号(6桁)</span>
</div>
<div class="info-row">
<span class="info-label">認証キー2</span>
<span class="info-value">生年月日(8桁)</span>
</div>
</div>
<!-- Biz Person's -->
<div class="info-block">
<div class="info-title"><i class="fa-solid fa-briefcase"></i> Biz Person's (三菱UFJ)</div>
<p style="margin-bottom:10px;">ライフ・キャリアイベントに関わるお金の基礎知識やローン等の相談。</p>
<div class="info-row">
<span class="info-label">URL</span>
<span class="info-value"><a href="https://biz-persons.mufg.jp/userlogin" target="_blank">https://biz-persons.mufg.jp/userlogin</a></span>
</div>
<div class="info-row">
<span class="info-label">ID</span>
<span class="info-value">og</span>
<span class="info-label" style="margin-left:15px; min-width:auto;">PW</span>
<span class="info-value">19834</span>
</div>
</div>
<!-- 手当情報 -->
<div class="info-block" style="border-color:#f39c12; background:#fffcf5;">
<div class="info-title" style="color:#d35400;"><i class="fa-solid fa-yen-sign"></i> 各種手当制度</div>
<ul style="padding-left:20px; margin:0;">
<li style="margin-bottom:10px;"><strong>母子父子手当</strong>:18歳未満の子の保護者である従業員に対し月額5,000円支給(要申請)。<br>問合せ:給与計算部 03-5220-8506</li>
<li><strong>紹介手当</strong>:友人・家族を紹介できる制度(要申請)。事業所責任者まで。</li>
</ul>
</div>
<div class="image-container">
<div class="image-caption">▼ 福利厚生サービス・ログイン情報詳細</div>
<a href="https://lh3.googleusercontent.com/d/1r1lauavxtwC3Ya1L8UGr2GcJ2jhjwU36" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1r1lauavxtwC3Ya1L8UGr2GcJ2jhjwU36" alt="福利厚生のご案内" class="guide-image">
</a>
</div>
</section>
<!-- 4. 社内情報・Web社内報 -->
<section id="sec-info" class="content-section">
<div class="section-header">
<h2 class="section-title">社内報・メルマガ</h2>
<span class="section-subtitle">情報共有</span>
</div>
<!-- Web社内報 オノパー -->
<div class="info-block">
<div class="info-title"><i class="fa-solid fa-globe"></i> Web社内報「オノパー」</div>
<p style="margin-bottom:10px;">グループ会社の活動内容や取り組みを随時更新中。</p>
<div class="info-row">
<span class="info-label">URL</span>
<span class="info-value"><a href="https://park.onodera-group.com/" target="_blank">https://park.onodera-group.com/</a></span>
</div>
<div class="info-row">
<span class="info-label">ユーザー名</span>
<span class="info-value">op</span>
<span class="info-label" style="margin-left:15px; min-width:auto;">PW</span>
<span class="info-value">2</span>
</div>
</div>
<div class="image-container">
<div class="image-caption">▼ メルマガ登録方法・オノパーQRコード</div>
<a href="https://lh3.googleusercontent.com/d/1yTjJFqUfCGMoUE1wrolzfHlu4ZNSc5jk" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1yTjJFqUfCGMoUE1wrolzfHlu4ZNSc5jk" alt="社内メルマガ登録・社内報" class="guide-image">
</a>
</div>
</section>
<!-- 5. 安否確認サービス -->
<section id="sec-anpi" class="content-section">
<div class="section-header">
<h2 class="section-title">安否確認サービス</h2>
</div>
<div class="image-container">
<div class="image-caption">▼ サービスの概要と登録のお願い</div>
<a href="https://lh3.googleusercontent.com/d/1aqSJpVH1aB-owwpB5siyvm5JQvuwUrEA" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1aqSJpVH1aB-owwpB5siyvm5JQvuwUrEA" alt="安否確認登録のご案内" class="guide-image">
</a>
</div>
<div class="image-container">
<div class="image-caption">▼ アプリ・メールアドレスの登録手順</div>
<a href="https://lh3.googleusercontent.com/d/11od2GZX7U7zOP2J846dDADIfMFLsyxB_" target="_blank">
<img src="https://lh3.googleusercontent.com/d/11od2GZX7U7zOP2J846dDADIfMFLsyxB_" alt="安否確認サービスの登録方法" class="guide-image">
</a>
</div>
</section>
<!-- 6. P-web・マイナンバー -->
<section id="sec-pweb" class="content-section">
<div class="section-header">
<h2 class="section-title">給与明細・マイナンバー</h2>
</div>
<div class="image-container">
<div class="image-caption">▼ 給与明細(P-web) 利用登録</div>
<a href="https://lh3.googleusercontent.com/d/1cZe_6MUEjJO5Edm6mywO94DH7V4vd8nH" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1cZe_6MUEjJO5Edm6mywO94DH7V4vd8nH" alt="P-web利用案内" class="guide-image">
</a>
</div>
<div class="image-container">
<div class="image-caption">▼ マイナンバー提供・登録手順</div>
<a href="https://lh3.googleusercontent.com/d/1HaAQibjYgB2Lwd3k1Pj74rkJn-dNVcKK" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1HaAQibjYgB2Lwd3k1Pj74rkJn-dNVcKK" alt="マイナンバー提供のお願い" class="guide-image">
</a>
</div>
<div class="image-container">
<a href="https://lh3.googleusercontent.com/d/1UVRXjNafHk8xUIzoR9x1HOtnKXZZcjWY" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1UVRXjNafHk8xUIzoR9x1HOtnKXZZcjWY" alt="マイナンバー登録方法" class="guide-image">
</a>
</div>
</section>
<!-- 7. コンプライアンス -->
<section id="sec-compliance" class="content-section">
<div class="section-header">
<h2 class="section-title">コンプライアンス相談窓口</h2>
</div>
<div class="image-container">
<div class="image-caption">▼ 相談窓口「そうだ、そうだんだ。」</div>
<a href="https://lh3.googleusercontent.com/d/1D10GDFZpNyla9UctZ1O2ITzB4UCv5Acp" target="_blank">
<img src="https://lh3.googleusercontent.com/d/1D10GDFZpNyla9UctZ1O2ITzB4UCv5Acp" alt="そうだそうだんだカード" class="guide-image">
</a>
</div>
</section>
</main>
<footer>
<div class="footer-inner">
<h2>オノパー</h2>
<p>ONODERA PARK</p>
<div class="copyright">
Copyright© ONODERA GROUP Corporate Communications Division All Rights Reserved.
</div>
</div>
</footer>
<script>
// スクロール時のメニューアクティブ化処理
document.addEventListener('DOMContentLoaded', () => {
const sections = document.querySelectorAll('.content-section');
const navLinks = document.querySelectorAll('.nav-link');
window.addEventListener('scroll', () => {
let current = '';
sections.forEach(section => {
// オフセット値調整
const sectionTop = section.offsetTop - 250;
if (pageYOffset >= sectionTop) {
current = section.getAttribute('id');
}
});
navLinks.forEach(link => {
link.classList.remove('active');
if (current && link.getAttribute('href').includes(current)) {
link.classList.add('active');
}
});
});
});
</script>
</body>
</html> |