Johnny0619 commited on
Commit
5f148a5
·
verified ·
1 Parent(s): 9932ed7

Update entry_info04.html

Browse files
Files changed (1) hide show
  1. entry_info04.html +48 -30
entry_info04.html CHANGED
@@ -175,7 +175,7 @@
175
  font-size: 14px; color: #fff; display: block; font-weight: normal; margin-top: 5px; opacity: 0.9;
176
  }
177
 
178
- /* 【NEW】画像マニュアル表示エリア(全幅表示) */
179
  .manual-vertical-area {
180
  margin-top: 40px;
181
  border-top: 1px dashed #ddd;
@@ -185,22 +185,19 @@
185
  text-align: center; font-size: 18px; font-weight: bold; color: #333; margin-bottom: 25px;
186
  display: flex; align-items: center; justify-content: center; gap: 8px;
187
  }
188
-
189
  .manual-grid-vertical {
190
  display: grid;
191
  grid-template-columns: 1fr;
192
  gap: 40px;
193
- /* max-width制限を解除し、親要素(container)の幅いっぱいまで広げる */
194
  width: 100%;
195
  }
196
-
197
  .manual-item { text-align: center; }
198
 
199
  .manual-link {
200
  display: block; width: 100%;
201
  border: 2px solid #eee; border-radius: 12px;
202
  overflow: hidden; position: relative; transition: all 0.3s;
203
- background: #fff; cursor: pointer; /* クリックできることを明示 */
204
  }
205
  .manual-link:hover {
206
  border-color: var(--theme-green);
@@ -222,39 +219,59 @@
222
  margin-top: 15px; font-weight: bold; color: var(--theme-green-dark); font-size: 18px;
223
  }
224
 
225
- /* 【NEW】モーダル用スタイル */
 
 
 
226
  .modal-overlay {
227
- display: none; /* 初期は非表示 */
228
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
229
- background: rgba(0, 0, 0, 0.85); z-index: 2000;
230
- align-items: center; justify-content: center;
231
- opacity: 0; transition: opacity 0.3s ease;
 
 
 
232
  }
233
  .modal-overlay.active {
234
- display: flex; opacity: 1;
 
 
 
235
  }
 
236
  .modal-content {
237
  position: relative;
238
- max-width: 95%; max-height: 95%;
 
 
 
239
  background: transparent;
240
  border-radius: 4px;
241
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
242
- overflow: hidden;
243
  }
 
244
  .modal-img {
245
- display: block; max-width: 100vw; max-height: 95vh;
246
- object-fit: contain;
 
 
 
 
247
  }
 
 
248
  .modal-close-btn {
249
- position: absolute; top: 15px; right: 15px;
250
  background: rgba(0,0,0,0.6); color: #fff;
251
- border: none; border-radius: 50%;
252
- width: 40px; height: 40px; font-size: 20px; cursor: pointer;
253
  display: flex; align-items: center; justify-content: center;
 
254
  transition: background 0.2s;
255
  }
256
- .modal-close-btn:hover { background: rgba(0,0,0,0.9); }
257
-
258
  /* メニューエリア */
259
  .menu-header { text-align: center; margin-bottom: 30px; position: relative; margin-top: 50px; }
260
  .menu-header h2 { font-size: 22px; color: #555; background: #fff; display: inline-block; padding: 0 15px; z-index: 1; position: relative; }
@@ -295,7 +312,6 @@
295
  .btn-pweb-main { font-size: 18px; padding: 15px 20px; }
296
  .url-text { font-size: 11px; }
297
 
298
- /* スマホでのマニュアル表示調整 */
299
  .manual-label { font-size: 16px; }
300
  .manual-caption { font-size: 16px; }
301
  }
@@ -408,7 +424,7 @@
408
  <div class="manual-item">
409
  <a href="https://lh3.googleusercontent.com/d/1HaAQibjYgB2Lwd3k1Pj74rkJn-dNVcKK" class="manual-link js-modal-trigger">
410
  <img src="https://lh3.googleusercontent.com/d/1HaAQibjYgB2Lwd3k1Pj74rkJn-dNVcKK" alt="初回利用の手順" class="manual-img">
411
- <div class="zoom-hint"><i class="fa-solid fa-expand"></i> 大きく表示</div>
412
  </a>
413
  <div class="manual-caption">▲ 初回利用の手順</div>
414
  </div>
@@ -416,7 +432,7 @@
416
  <div class="manual-item">
417
  <a href="https://lh3.googleusercontent.com/d/1UVRXjNafHk8xUIzoR9x1HOtnKXZZcjWY" class="manual-link js-modal-trigger">
418
  <img src="https://lh3.googleusercontent.com/d/1UVRXjNafHk8xUIzoR9x1HOtnKXZZcjWY" alt="操作画面イメージ" class="manual-img">
419
- <div class="zoom-hint"><i class="fa-solid fa-expand"></i> 大きく表示</div>
420
  </a>
421
  <div class="manual-caption">▲ 操作画面イメージ</div>
422
  </div>
@@ -498,34 +514,36 @@
498
  </div>
499
 
500
  <script>
501
- // モーダル制御スクリプト
502
  document.addEventListener('DOMContentLoaded', () => {
503
  const modal = document.getElementById('imageModal');
504
  const modalImg = document.getElementById('modalImg');
505
  const closeBtn = document.getElementById('modalClose');
506
  const triggers = document.querySelectorAll('.js-modal-trigger');
507
 
508
- // 画像リンククリック時
509
  triggers.forEach(trigger => {
510
  trigger.addEventListener('click', (e) => {
511
- e.preventDefault(); // リンク遷移をキャンセル
512
  const imgSrc = trigger.getAttribute('href');
513
  modalImg.src = imgSrc;
514
- modal.classList.add('active'); // モーダル表示
515
  document.body.style.overflow = 'hidden'; // 背景スクロール禁止
516
  });
517
  });
518
 
519
- // 閉じる処理 (ボタン or 背景クリック)
520
  const closeModal = () => {
521
  modal.classList.remove('active');
522
  document.body.style.overflow = ''; // スクロール解除
523
- setTimeout(() => { modalImg.src = ''; }, 300); // アニメーション後にsrcクリア
524
  };
525
 
526
  closeBtn.addEventListener('click', closeModal);
527
  modal.addEventListener('click', (e) => {
528
- if (e.target === modal) closeModal();
 
 
 
529
  });
530
  });
531
  </script>
 
175
  font-size: 14px; color: #fff; display: block; font-weight: normal; margin-top: 5px; opacity: 0.9;
176
  }
177
 
178
+ /* 画像マニュアル表示エリア */
179
  .manual-vertical-area {
180
  margin-top: 40px;
181
  border-top: 1px dashed #ddd;
 
185
  text-align: center; font-size: 18px; font-weight: bold; color: #333; margin-bottom: 25px;
186
  display: flex; align-items: center; justify-content: center; gap: 8px;
187
  }
 
188
  .manual-grid-vertical {
189
  display: grid;
190
  grid-template-columns: 1fr;
191
  gap: 40px;
 
192
  width: 100%;
193
  }
 
194
  .manual-item { text-align: center; }
195
 
196
  .manual-link {
197
  display: block; width: 100%;
198
  border: 2px solid #eee; border-radius: 12px;
199
  overflow: hidden; position: relative; transition: all 0.3s;
200
+ background: #fff; cursor: pointer;
201
  }
202
  .manual-link:hover {
203
  border-color: var(--theme-green);
 
219
  margin-top: 15px; font-weight: bold; color: var(--theme-green-dark); font-size: 18px;
220
  }
221
 
222
+ /* * ==========================================================================
223
+ * モーダル用スタイル (95%幅制御・スクロール対応)
224
+ * ==========================================================================
225
+ */
226
  .modal-overlay {
227
+ display: none;
228
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
229
+ background: rgba(0, 0, 0, 0.9); z-index: 2000;
230
+ /* 縦長画像対応のためスクロール許可 */
231
+ overflow-y: auto;
232
+ -webkit-overflow-scrolling: touch;
233
+ box-sizing: border-box;
234
+ padding: 20px 0;
235
  }
236
  .modal-overlay.active {
237
+ display: flex;
238
+ align-items: flex-start; /* 上端合わせでスクロールさせる */
239
+ justify-content: center;
240
+ opacity: 1;
241
  }
242
+
243
  .modal-content {
244
  position: relative;
245
+ /* 【重要】ウィンドウ幅の95%に固定 */
246
+ width: 95%;
247
+ max-width: 1400px; /* PCでの拡大しすぎ防止(任意) */
248
+ margin: auto; /* 上下左右中央寄せ(スクロール時はよしなに配置される) */
249
  background: transparent;
250
  border-radius: 4px;
251
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
 
252
  }
253
+
254
  .modal-img {
255
+ display: block;
256
+ /* コンテンツ幅(95%)いっぱいに表示 */
257
+ width: 100%;
258
+ height: auto;
259
+ background: #fff;
260
+ border-radius: 4px;
261
  }
262
+
263
+ /* 閉じるボタン(追従型) */
264
  .modal-close-btn {
265
+ position: fixed; top: 20px; right: 20px;
266
  background: rgba(0,0,0,0.6); color: #fff;
267
+ border: 2px solid #fff; border-radius: 50%;
268
+ width: 50px; height: 50px; font-size: 24px; cursor: pointer;
269
  display: flex; align-items: center; justify-content: center;
270
+ z-index: 2010;
271
  transition: background 0.2s;
272
  }
273
+ .modal-close-btn:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); }
274
+
275
  /* メニューエリア */
276
  .menu-header { text-align: center; margin-bottom: 30px; position: relative; margin-top: 50px; }
277
  .menu-header h2 { font-size: 22px; color: #555; background: #fff; display: inline-block; padding: 0 15px; z-index: 1; position: relative; }
 
312
  .btn-pweb-main { font-size: 18px; padding: 15px 20px; }
313
  .url-text { font-size: 11px; }
314
 
 
315
  .manual-label { font-size: 16px; }
316
  .manual-caption { font-size: 16px; }
317
  }
 
424
  <div class="manual-item">
425
  <a href="https://lh3.googleusercontent.com/d/1HaAQibjYgB2Lwd3k1Pj74rkJn-dNVcKK" class="manual-link js-modal-trigger">
426
  <img src="https://lh3.googleusercontent.com/d/1HaAQibjYgB2Lwd3k1Pj74rkJn-dNVcKK" alt="初回利用の手順" class="manual-img">
427
+ <div class="zoom-hint"><i class="fa-solid fa-expand"></i> 画面幅95%で表示</div>
428
  </a>
429
  <div class="manual-caption">▲ 初回利用の手順</div>
430
  </div>
 
432
  <div class="manual-item">
433
  <a href="https://lh3.googleusercontent.com/d/1UVRXjNafHk8xUIzoR9x1HOtnKXZZcjWY" class="manual-link js-modal-trigger">
434
  <img src="https://lh3.googleusercontent.com/d/1UVRXjNafHk8xUIzoR9x1HOtnKXZZcjWY" alt="操作画面イメージ" class="manual-img">
435
+ <div class="zoom-hint"><i class="fa-solid fa-expand"></i> 画面幅95%で表示</div>
436
  </a>
437
  <div class="manual-caption">▲ 操作画面イメージ</div>
438
  </div>
 
514
  </div>
515
 
516
  <script>
 
517
  document.addEventListener('DOMContentLoaded', () => {
518
  const modal = document.getElementById('imageModal');
519
  const modalImg = document.getElementById('modalImg');
520
  const closeBtn = document.getElementById('modalClose');
521
  const triggers = document.querySelectorAll('.js-modal-trigger');
522
 
523
+ // リンククリックでモーダル表示
524
  triggers.forEach(trigger => {
525
  trigger.addEventListener('click', (e) => {
526
+ e.preventDefault();
527
  const imgSrc = trigger.getAttribute('href');
528
  modalImg.src = imgSrc;
529
+ modal.classList.add('active');
530
  document.body.style.overflow = 'hidden'; // 背景スクロール禁止
531
  });
532
  });
533
 
534
+ // 閉じる処理
535
  const closeModal = () => {
536
  modal.classList.remove('active');
537
  document.body.style.overflow = ''; // スクロール解除
538
+ setTimeout(() => { modalImg.src = ''; }, 300);
539
  };
540
 
541
  closeBtn.addEventListener('click', closeModal);
542
  modal.addEventListener('click', (e) => {
543
+ // 画像以外の領域クリックで閉じる
544
+ if (e.target === modal || e.target.classList.contains('modal-content')) {
545
+ closeModal();
546
+ }
547
  });
548
  });
549
  </script>