-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshelfnavigator.html
More file actions
673 lines (619 loc) · 48.8 KB
/
Copy pathshelfnavigator.html
File metadata and controls
673 lines (619 loc) · 48.8 KB
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
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ShelfNavigator — フォルダもドライブも、ひと目で。</title>
<link rel="canonical" href="https://rustyworks.jp/shelfnavigator.html">
<meta name="description" content="散らばったフォルダと外付けドライブを、1つの棚にまとめる macOS 用ビューア。">
<meta property="og:type" content="website">
<meta property="og:site_name" content="RustyWorks">
<meta property="og:locale" content="ja_JP">
<meta property="og:url" content="https://rustyworks.jp/shelfnavigator.html">
<meta property="og:title" content="ShelfNavigator | RustyWorks">
<meta property="og:description" content="散らばったフォルダと外付けドライブを、1つの棚にまとめる macOS 用ビューア。">
<meta property="og:image" content="https://rustyworks.jp/assets/og/shelfnavigator-og.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="ShelfNavigator | RustyWorks">
<meta name="twitter:description" content="散らばったフォルダと外付けドライブを、1つの棚にまとめる macOS 用ビューア。">
<meta name="twitter:image" content="https://rustyworks.jp/assets/og/shelfnavigator-og.jpg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
/* ライトテーマ。淡いラベンダーは、スクリーンショットの背景と同じ family。
暗く戻したいときはこの :root だけ差し替えればよい。デモの窓(.sn-*)は
アプリそのものの見た目なので、意図的に暗いまま据え置いている。 */
:root {
--bg: #f3f0f6;
--bg-2: #ece8f1;
--bg-3: #e4dfec;
--ink: #17151c;
--ink-2: #484455;
--ink-3: #6b6678;
--ink-4: #6d687a;
--accent: #e8a33d;
--accent-ink: #9c5c04;
--line: rgba(23,21,28,.09);
--line-2: rgba(23,21,28,.13);
--line-3: rgba(23,21,28,.18);
--nav-bg: rgba(243,240,246,.86);
}
</style>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--ink);
font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
font-weight: 400;
line-height: 1.75;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ink); }
::selection { background: rgba(232,163,61,.35); color: var(--ink); }
@keyframes fs-rise {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fs-converge {
0%, 100% { transform: translateX(0); opacity: .55; }
50% { transform: translateX(10px); opacity: 1; }
}
.lang { display:flex; align-items:center; gap:6px; font-family:'IBM Plex Mono',monospace; font-size:12px; }
.lang button {
border:0; background:none; padding:2px; cursor:pointer; font:inherit;
color:var(--ink-3); letter-spacing:.04em; transition:color .18s ease;
}
.lang button:hover { color:var(--ink); }
.lang button[aria-pressed="true"] { color:var(--ink); font-weight:600; }
.lang .sep { color:var(--line-3); }
@media (max-width: 760px) {
#fs-nav-links { display: none !important; }
.fs-two-col { grid-template-columns: 1fr !important; }
.fs-conv { grid-template-columns: 1fr !important; gap: 40px !important; }
.fs-conv-arrow { display: none !important; }
.fs-pad { padding-left: 24px !important; padding-right: 24px !important; }
}
</style>
<template id="__bundler_thumbnail" data-bg-color="#0a0a0b">
<svg viewBox="0 0 1200 800" xmlns="http://www.w3.org/2000/svg">
<rect width="1200" height="800" fill="#0a0a0b"/>
<rect x="330" y="250" width="180" height="120" rx="8" fill="#e8a33d"/>
<rect x="330" y="400" width="180" height="120" rx="8" fill="#2a2a2c"/>
<rect x="690" y="250" width="180" height="120" rx="8" fill="#2a2a2c"/>
<rect x="690" y="400" width="180" height="120" rx="8" fill="#2a2a2c"/>
<rect x="330" y="180" width="540" height="10" rx="5" fill="#8a8a86"/>
</svg>
</template>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4092261578757214"
crossorigin="anonymous"></script>
</head>
<body>
<div style="min-height:100vh; display:flex; flex-direction:column;">
<nav style="position:sticky; top:0; z-index:50; background:var(--nav-bg); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line);">
<div class="fs-pad" style="max-width:1200px; margin:0 auto; padding:0 40px; height:64px; display:flex; align-items:center; justify-content:space-between; gap:24px;">
<div style="display:flex; align-items:center; gap:18px; min-width:0;">
<a href="index.html" style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.04em; color:var(--ink-3); white-space:nowrap;">← RustyWorks</a>
<a href="#top" style="font-family:'Space Grotesk',sans-serif; font-weight:700; letter-spacing:.14em; font-size:15px; color:var(--ink);">SHELFNAVIGATOR</a>
</div>
<div id="fs-nav-links" style="display:flex; align-items:center; gap:32px; font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.04em;">
<a href="#one" style="color:var(--ink-3);" data-ja="一覧" data-en="One view">一覧</a>
<a href="#demo" style="color:var(--ink-3);" data-ja="デモ" data-en="Demo">デモ</a>
<a href="#search" style="color:var(--ink-3);" data-ja="検索" data-en="Search">検索</a>
<a href="#formats" style="color:var(--ink-3);" data-ja="対応形式" data-en="Formats">対応形式</a>
<a href="#safe" style="color:var(--ink-3);" data-ja="安全性" data-en="Safety">安全性</a>
</div>
<div style="display:flex; align-items:center; gap:14px;">
<div class="lang" role="group" aria-label="Language">
<button type="button" data-lang="ja" aria-pressed="true">JA</button>
<span class="sep">/</span>
<button type="button" data-lang="en" aria-pressed="false">EN</button>
</div>
<a href="https://apps.apple.com/app/id6794389638" target="_blank" rel="noopener" style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.03em; color:var(--ink); background:#e8a33d; padding:9px 18px; border-radius:6px; font-weight:500;">Mac App Store</a>
</div>
</div>
</nav>
<main id="top" style="flex:1;">
<!-- HERO -->
<section class="fs-pad" style="max-width:1200px; margin:0 auto; padding:140px 40px 120px; animation:fs-rise .7s ease both;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.16em; color:var(--accent-ink); margin-bottom:34px;">macOS APP</div>
<h1 id="fs-hero-title" style="font-family:'Space Grotesk','Zen Kaku Gothic New',sans-serif; font-weight:500; font-size:min(7.4vw, 88px); line-height:1.1; letter-spacing:-.01em; white-space:nowrap;"><span data-ja="フォルダもドライブも、" data-en="Every file.">フォルダもドライブも、</span><br><span data-ja="ひと目で。" data-en="One shelf.">ひと目で。</span></h1>
<p style="margin-top:38px; font-size:20px; line-height:1.9; color:var(--ink-3); max-width:52ch;" data-ja="散らばったフォルダと外付けドライブを、1つの棚にまとめる macOS 用ビューア。" data-en="A macOS viewer that gathers scattered folders and external drives onto a single shelf.">散らばったフォルダと外付けドライブを、1つの棚にまとめる macOS 用ビューア。</p>
<div style="margin-top:44px; display:flex; flex-wrap:wrap; gap:12px;">
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.02em; color:var(--ink); border:1px solid var(--line-3); padding:8px 15px; border-radius:6px;" data-ja="数十万件" data-en="Hundreds of thousands">数十万件</span>
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.02em; color:var(--ink); border:1px solid var(--line-3); padding:8px 15px; border-radius:6px;" data-ja="全ドライブ横断" data-en="Across every drive">全ドライブ横断</span>
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.02em; color:var(--ink); border:1px solid var(--line-3); padding:8px 15px; border-radius:6px;" data-ja="通信しない" data-en="No network">通信しない</span>
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.02em; color:var(--ink); border:1px solid var(--line-3); padding:8px 15px; border-radius:6px;" data-ja="RAW対応" data-en="RAW support">RAW対応</span>
</div>
<div style="margin-top:48px;">
<a href="https://apps.apple.com/app/id6794389638" target="_blank" rel="noopener" style="display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:14px; letter-spacing:.02em; color:var(--ink); background:#e8a33d; padding:15px 30px; border-radius:8px; font-weight:500;">Mac App Store</a>
</div>
<div style="margin-top:72px;">
<img src="assets/lp/shot/01-full.webp" data-src-ja="assets/lp/shot/01-full.webp" data-src-en="assets/lp/shot/01e-full.webp" alt="ShelfNavigator のグリッド表示と情報パネル" data-alt-ja="ShelfNavigator のグリッド表示と情報パネル" data-alt-en="The ShelfNavigator grid with the info pane" style="display:block; width:100%; height:auto;">
</div>
</section>
<!-- PROBLEM -->
<section class="fs-pad" style="border-top:1px solid var(--line); background:var(--bg-2);">
<div style="max-width:1200px; margin:0 auto; padding:88px 40px;">
<p style="font-family:'Space Grotesk','Zen Kaku Gothic New',sans-serif; font-weight:400; font-size:34px; line-height:1.7; letter-spacing:-.005em; color:var(--ink); max-width:32ch;" data-ja="ファイルは、フォルダや外付けドライブ、何年分ものダウンロードに散らばっていきます。どこに何があるのか、だんだん分からなくなります。" data-en="Files scatter across folders, external drives and years of downloads. Little by little, you stop knowing what is where.">ファイルは、フォルダや外付けドライブ、何年分ものダウンロードに散らばっていきます。どこに何があるのか、だんだん分からなくなります。</p>
</div>
</section>
<!-- 01 — HERO FEATURE: convergence -->
<section id="one" class="fs-pad" style="border-top:1px solid var(--line);">
<div style="max-width:1200px; margin:0 auto; padding:120px 40px;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.1em; color:var(--accent-ink); margin-bottom:26px;" data-ja="01 — すべてを1つのビューで" data-en="01 — Everything in one view">01 — すべてを1つのビューで</div>
<p style="font-family:'Space Grotesk','Zen Kaku Gothic New',sans-serif; font-size:22px; line-height:1.8; color:var(--ink-2); max-width:44ch; margin:0 0 34px;" data-ja="3つのフォルダを、別々のドライブに置いた状態です。左のリストを切り替えてみてください。" data-en="Three folders, each sitting on a different drive. Try switching between them in the list on the left.">3つのフォルダを、別々のドライブに置いた状態です。左のリストを切り替えてみてください。</p>
<div id="demo"><div class="sn-demo">
<div class="sn-win">
<div class="sn-titlebar">
<span class="sn-dot" style="background:#ff5f57"></span>
<span class="sn-dot" style="background:#febc2e"></span>
<span class="sn-dot" style="background:#28c840"></span>
<span class="sn-title">ShelfNavigator</span>
<span class="sn-live" data-ja="実際に動きます" data-en="Live">実際に動きます</span>
</div>
<div class="sn-body">
<aside class="sn-side">
<div class="sn-side-head">Libraries<span class="sn-tap" data-ja="▸ 切り替えられます" data-en="▸ Switch between them">▸ 切り替えられます</span></div>
<button class="sn-lib is-on" data-lib="all">
<span class="sn-lib-main"><span class="sn-sq" style="background:#e8a33d"></span><span class="sn-lib-txt"><span class="sn-lib-name">All Files</span></span></span><span class="sn-count">18</span>
</button>
<button class="sn-lib" data-lib="a">
<span class="sn-lib-main"><span class="sn-sq"></span><span class="sn-lib-txt"><span class="sn-lib-name" data-ja="写真フォルダ" data-en="Photos">写真フォルダ</span><span class="sn-vol" data-ja="SDカード" data-en="SD Card">SDカード</span></span></span><span class="sn-count">8</span>
</button>
<button class="sn-lib" data-lib="b">
<span class="sn-lib-main"><span class="sn-sq"></span><span class="sn-lib-txt"><span class="sn-lib-name" data-ja="動画フォルダ" data-en="Videos">動画フォルダ</span><span class="sn-vol" data-ja="外付けHDD" data-en="External HDD">外付けHDD</span></span></span><span class="sn-count">4</span>
</button>
<button class="sn-lib" data-lib="c">
<span class="sn-lib-main"><span class="sn-sq"></span><span class="sn-lib-txt"><span class="sn-lib-name" data-ja="テキストフォルダ" data-en="Notes">テキストフォルダ</span><span class="sn-vol" data-ja="USBメモリ" data-en="USB Stick">USBメモリ</span></span></span><span class="sn-count">6</span>
</button>
<div class="sn-side-note"><span data-ja="3つの別々のドライブ。" data-en="Three separate drives.">3つの別々のドライブ。</span><br><span data-ja="アプリの中では区別なく並びます。" data-en="Inside the app they sit side by side.">アプリの中では区別なく並びます。</span></div>
</aside>
<div class="sn-main">
<div class="sn-bar">
<span class="sn-scope">All Files</span>
<span class="sn-num"><b>18</b> <span data-ja="件" data-en="items">件</span></span>
</div>
<div class="sn-grid" id="snGrid"></div>
</div>
</div>
</div>
<p class="sn-hint" data-ja="動画のタイルにカーソルを乗せると再生されます。アプリと同じ挙動です。" data-en="Hover a video tile and it plays — the same as in the app.">動画のタイルにカーソルを乗せると再生されます。アプリと同じ挙動です。</p>
</div>
<p class="sn-disclaimer" data-ja="この画面は、動きを試していただくためにこのページ上で組み立てたものです。アプリの画面そのものではありません。実際の画面は、下のスクリーンショットをご覧ください。" data-en="This panel was assembled on this page so you can try the interaction. It is not the app's own window. For the real thing, see the screenshots below.">この画面は、動きを試していただくためにこのページ上で組み立てたものです。アプリの画面そのものではありません。実際の画面は、下のスクリーンショットをご覧ください。</p>
</div>
<div style="margin-top:96px; margin-bottom:56px;">
<img src="assets/lp/shot/01.webp" data-src-ja="assets/lp/shot/01.webp" data-src-en="assets/lp/shot/01e.webp" alt="サイドバーに並んだ複数のライブラリと、1つに統合されたグリッド" data-alt-ja="サイドバーに並んだ複数のライブラリと、1つに統合されたグリッド" data-alt-en="Several libraries in the sidebar, merged into one grid" style="display:block; width:100%; height:auto;" loading="lazy" decoding="async">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.04em; color:var(--ink-3); margin-top:14px;">7 libraries — 4,946 items — one grid</div>
</div>
<div>
<p style="font-size:18px; line-height:1.95; color:var(--ink-2);" data-ja="フォルダは何個でも登録できます(内蔵・外付け・ネットワーク)。それらが1つのグリッドに並びます。コピーも取り込みも整理も不要。ファイルは元の場所に置いたままです。" data-en="Register as many folders as you like — internal, external or network. They line up in one grid. Nothing is copied, imported or reorganised; your files stay where they are.">フォルダは何個でも登録できます(内蔵・外付け・ネットワーク)。それらが1つのグリッドに並びます。コピーも取り込みも整理も不要。ファイルは元の場所に置いたままです。</p>
</div>
</div>
</section>
<style>
.sn-demo { --line: rgba(255,255,255,.10); }
.sn-win {
border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
background: #141416; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.sn-titlebar {
display: flex; align-items: center; gap: 8px;
padding: 11px 14px; background: #1b1b1e; border-bottom: 1px solid var(--line);
}
.sn-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.sn-title {
margin-left: 10px; font-family: 'IBM Plex Mono', monospace;
font-size: 12px; color: #8a8a86; letter-spacing: .04em;
}
/* 画面写真と見分けが付かない、という指摘への対応。触れることを
見た目で言う。初回だけ脈打たせ、一度触ったら静かにする。 */
.sn-live {
margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
letter-spacing: .08em; color: #e8a33d;
border: 1px solid rgba(232,163,61,.35); border-radius: 999px;
padding: 3px 9px; white-space: nowrap;
}
.sn-live::before {
content: ""; width: 6px; height: 6px; border-radius: 50%;
background: #e8a33d; animation: sn-blink 2s ease-in-out infinite;
}
@keyframes sn-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.sn-side-head .sn-tap {
display: block; margin-top: 6px; text-transform: none;
letter-spacing: .02em; color: #e8a33d; font-size: 10.5px;
}
/* 選ばれていない項目を、最初の操作までだけ呼吸させる。 */
.sn-demo:not(.is-touched) .sn-lib:not(.is-on) {
animation: sn-breathe 2.6s ease-in-out infinite;
}
.sn-demo:not(.is-touched) .sn-lib:nth-of-type(3) { animation-delay: .25s; }
.sn-demo:not(.is-touched) .sn-lib:nth-of-type(4) { animation-delay: .5s; }
@keyframes sn-breathe {
0%, 100% { background: transparent; }
50% { background: rgba(232,163,61,.10); }
}
@media (prefers-reduced-motion: reduce) {
.sn-live::before, .sn-demo:not(.is-touched) .sn-lib:not(.is-on) { animation: none; }
}
.sn-body { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 430px; }
.sn-side { border-right: 1px solid var(--line); padding: 16px 12px; background: #161618; }
.sn-side-head {
font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
letter-spacing: .12em; color: #6f6f6b; text-transform: uppercase;
padding: 0 8px 10px;
}
.sn-lib {
display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
width: 100%; margin-bottom: 3px; padding: 9px 10px;
border: 0; border-radius: 7px; background: transparent; cursor: pointer;
font-family: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
font-size: 13.5px; color: #c9c9c4; text-align: left;
transition: background .16s ease, color .16s ease;
}
.sn-lib:hover { background: rgba(255,255,255,.05); color: #f2f2f0; }
.sn-lib.is-on { background: #e8a33d; color: #0a0a0b; }
.sn-lib.is-on .sn-count { color: rgba(10,10,11,.65); }
.sn-lib.is-on em { background: rgba(10,10,11,.15); color: #0a0a0b; }
.sn-lib-main { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.sn-lib-txt { display: flex; flex-direction: column; min-width: 0; }
.sn-lib-name { line-height: 1.35; }
/* The volume the folder actually lives on, as the app's sidebar shows it. */
.sn-vol {
font-family: 'IBM Plex Mono', monospace; font-size: 10px;
line-height: 1.5; color: #6f6f6b;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sn-lib:hover .sn-vol { color: #8a8a86; }
.sn-lib.is-on .sn-vol { color: rgba(10,10,11,.6); }
.sn-sq { width: 9px; height: 9px; border-radius: 2px; background: #8a8a86; flex: none; margin-top: 5px; }
.sn-lib.is-on .sn-sq { background: #0a0a0b; }
.sn-count { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #6f6f6b; flex: none; margin-top: 2px; }
.sn-side-note {
margin-top: 18px; padding: 10px 10px 0; border-top: 1px solid var(--line);
font-size: 11.5px; line-height: 1.7; color: #6f6f6b;
}
.sn-main { display: flex; flex-direction: column; min-width: 0; }
.sn-bar {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.sn-scope {
font-family: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
font-size: 14px; color: #f2f2f0;
}
.sn-num { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #6f6f6b; }
.sn-num b { color: #e8a33d; font-weight: 500; }
.sn-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
gap: 10px; padding: 16px; align-content: start;
}
.sn-tile {
position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden;
background: #1d1d20; border: 1px solid rgba(255,255,255,.07); cursor: default;
animation: sn-in .26s ease both;
}
.sn-tile img, .sn-tile video {
width: 100%; height: 100%; object-fit: cover; display: block;
}
.sn-tile video { position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; }
.sn-tile.is-playing video { opacity: 1; }
@keyframes sn-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.sn-badge {
position: absolute; right: 6px; bottom: 6px; z-index: 2;
display: flex; align-items: center; gap: 4px;
padding: 2px 6px; border-radius: 4px;
background: rgba(10,10,11,.72); backdrop-filter: blur(4px);
font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #f2f2f0;
}
.sn-name {
position: absolute; inset: auto 0 0 0; z-index: 2;
padding: 16px 8px 6px;
background: linear-gradient(transparent, rgba(10,10,11,.85));
font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; color: #d8d8d4;
opacity: 0; transition: opacity .18s ease;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sn-tile:hover .sn-name { opacity: 1; }
.sn-text { padding: 11px 10px; height: 100%; background: #202024; }
.sn-text-h {
font-family: 'IBM Plex Mono', monospace; font-size: 9.5px;
color: #e8a33d; margin-bottom: 7px;
}
.sn-text-b {
margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 8px;
line-height: 1.6; color: #9a9a95; white-space: pre-wrap;
word-break: break-all; overflow: hidden;
}
/* デモとアプリ本体を取り違えられないように、直後で言い切る。 */
.sn-disclaimer {
margin: 16px 0 0; max-width: 60ch;
font-size: 13px; line-height: 1.85; color: var(--ink-4);
padding-left: 13px; border-left: 2px solid var(--line-2);
}
.sn-hint {
margin: 14px 0 0; font-family: 'IBM Plex Mono', monospace;
font-size: 11.5px; color: #6f6f6b;
}
@media (max-width: 720px) {
.sn-body { grid-template-columns: 1fr; min-height: 0; }
.sn-side { border-right: 0; border-bottom: 1px solid var(--line); }
.sn-side-note { display: none; }
.sn-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
</style>
<script>
(function () {
var GRID = document.getElementById('snGrid');
if (!GRID) return;
var IMAGES = [
['nebula', '30_doradus_nebula.jpg', '3840×2160'],
['california_nebula', 'california_nebula.jpg', '4096×2304'],
['earth_from_iss', 'iss036e02642.jpg', '4256×2832'],
['egress_training', 'egress_training.jpg', '3000×2000'],
['fallow_deer', 'fallow_deer.jpg', '5184×3456'],
['nile_felucca', 'nile_felucca.jpg', '4000×2667'],
['city_fireworks', 'city_fireworks.jpg', '5472×3648'],
['media_harbour', 'media_harbour.jpg', '4928×3264']
];
var VIDEOS = [
['robin_branch', 'robin_perched.mp4', '0:08'],
['winter_cliff', 'winter_cliff.mp4', '0:08'],
['swiss_mountains', 'swiss_mountains.mp4', '0:07'],
['forest_canopy', 'forest_canopy.mp4', '0:17']
];
var NOTES = [
['README.md', '# Observation Archive'],
['field-notes.txt', 'Field Notes\n===========\n\nClear night, no moon.'],
['haiku.txt', 'Five Seasonal Haiku\n===================\n\n spring —'],
['packing-list.txt','Packing List — Overnight Ridge Trip'],
['observations.csv','date,time,target,instrument,seeing'],
['settings.json', '{\n "session": {\n "name": "Ridge Overlook",']
];
var items = [];
IMAGES.forEach(function (m) {
items.push({ lib: 'a', kind: 'image', src: m[0], name: m[1], meta: m[2] });
});
VIDEOS.forEach(function (m) {
items.push({ lib: 'b', kind: 'video', src: m[0], name: m[1], meta: m[2] });
});
NOTES.forEach(function (n) {
items.push({ lib: 'c', kind: 'text', name: n[0], body: n[1] });
});
var LABELS = {
ja: { all: 'All Files', a: '写真フォルダ', b: '動画フォルダ', c: 'テキストフォルダ' },
en: { all: 'All Files', a: 'Photos', b: 'Videos', c: 'Notes' }
};
var LABEL = LABELS.ja;
var current = 'all';
function tile(it) {
var el = document.createElement('div');
el.className = 'sn-tile';
if (it.kind === 'text') {
var ext = it.name.split('.').pop().toUpperCase();
var body = it.body.replace(/&/g, '&').replace(/</g, '<');
el.innerHTML = '<div class="sn-text"><div class="sn-text-h">' + ext + '</div>' +
'<pre class="sn-text-b">' + body + '</pre></div>' +
'<div class="sn-name">' + it.name + '</div>';
return el;
}
var img = '<img src="assets/lp/demo/' + it.src + '.webp" alt="" loading="lazy">';
var badge = it.kind === 'video'
? '<div class="sn-badge">▶ ' + it.meta + '</div>'
: '<div class="sn-badge">' + it.meta + '</div>';
el.innerHTML = img + badge + '<div class="sn-name">' + it.name + '</div>';
if (it.kind === 'video') {
// Loaded only on hover, the way the app only decodes a preview when
// the pointer is actually over the tile.
var v = document.createElement('video');
v.muted = true; v.loop = true; v.playsInline = true; v.preload = 'none';
v.src = 'assets/lp/demo/' + it.src + '.mp4';
el.insertBefore(v, el.firstChild.nextSibling);
el.addEventListener('mouseenter', function () {
el.classList.add('is-playing');
var p = v.play();
if (p && p.catch) p.catch(function () {});
});
el.addEventListener('mouseleave', function () {
el.classList.remove('is-playing');
v.pause();
});
}
return el;
}
function render(lib) {
current = lib;
var shown = items.filter(function (it) { return lib === 'all' || it.lib === lib; });
GRID.innerHTML = '';
shown.forEach(function (it, i) {
var el = tile(it);
el.style.animationDelay = Math.min(i * 22, 320) + 'ms';
GRID.appendChild(el);
});
document.querySelector('.sn-scope').textContent = LABEL[lib];
document.querySelector('.sn-num b').textContent = shown.length;
}
var demoRoot = document.querySelector('.sn-demo');
document.querySelectorAll('.sn-lib').forEach(function (btn) {
btn.addEventListener('click', function () {
if (demoRoot) { demoRoot.classList.add('is-touched'); }
document.querySelectorAll('.sn-lib').forEach(function (b) { b.classList.remove('is-on'); });
btn.classList.add('is-on');
render(btn.dataset.lib);
});
});
render('all');
// 切替スクリプトから呼ばれる。data-ja/data-en では届かない、
// JS が書き込んだ文字列(スコープ名)だけをここで直す。
window.snSetLang = function (lang) {
LABEL = LABELS[lang] || LABELS.ja;
var el = document.querySelector('.sn-scope');
if (el) el.textContent = LABEL[current];
};
})();
</script>
<!-- 02 -->
<section class="fs-pad" style="border-top:1px solid var(--line); background:var(--bg-2);">
<div class="fs-two-col" style="max-width:1200px; margin:0 auto; padding:104px 40px 56px; display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:start;">
<div>
<div style="font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.1em; color:var(--accent-ink); margin-bottom:22px;" data-ja="02 — 大量のファイルを前提に" data-en="02 — Built for large collections">02 — 大量のファイルを前提に</div>
<div style="font-family:'Space Grotesk',sans-serif; font-weight:500; font-size:56px; letter-spacing:-.01em; color:var(--ink);">100,000+</div>
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.06em; color:var(--ink-3); margin-top:6px;">LOCAL CATALOG</div>
</div>
<p style="font-size:19px; line-height:1.95; color:var(--ink-2); padding-top:38px;" data-ja="カタログはローカルの索引なので、数十万件でもスクロールは滑らかで、検索は即座です。新しいファイルや変更は、バックグラウンドで自動的に反映されます。" data-en="The catalog is a local index, so scrolling stays smooth and search stays instant even at several hundred thousand files. New files and changes are picked up in the background.">カタログはローカルの索引なので、数十万件でもスクロールは滑らかで、検索は即座です。新しいファイルや変更は、バックグラウンドで自動的に反映されます。</p>
</div>
<div style="max-width:1200px; margin:0 auto; padding:0 40px 104px;">
<img src="assets/lp/shot/03.webp" data-src-ja="assets/lp/shot/03.webp" data-src-en="assets/lp/shot/03e.webp" alt="サムネイルを小さくして大量のファイルを一度に見渡す" data-alt-ja="サムネイルを小さくして大量のファイルを一度に見渡す" data-alt-en="Smaller thumbnails putting many files on screen at once" style="display:block; width:100%; height:auto;" loading="lazy" decoding="async">
</div>
</section>
<!-- 03 — search -->
<section id="search" class="fs-pad" style="border-top:1px solid var(--line);">
<div style="max-width:1200px; margin:0 auto; padding:120px 40px;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.1em; color:var(--accent-ink); margin-bottom:22px;" data-ja="03 — 素早く絞り込める検索" data-en="03 — Search that narrows fast">03 — 素早く絞り込める検索</div>
<p style="font-size:22px; line-height:1.85; color:var(--ink); max-width:34ch; margin-bottom:44px;" data-ja="普通の言葉でも、正確な指定でも検索できます。" data-en="Search in plain words, or with precise terms.">普通の言葉でも、正確な指定でも検索できます。</p>
<div style="display:flex; flex-direction:column; gap:12px; max-width:640px;">
<div style="border:1px solid var(--line-2); border-radius:8px; background:var(--bg-3); padding:16px 20px; font-family:'IBM Plex Mono',monospace; font-size:15px; color:var(--ink);"><span style="color:var(--accent-ink); margin-right:12px;">></span>beach ext:png size>10mb</div>
<div style="border:1px solid var(--line-2); border-radius:8px; background:var(--bg-3); padding:16px 20px; font-family:'IBM Plex Mono',monospace; font-size:15px; color:var(--ink);"><span style="color:var(--accent-ink); margin-right:12px;">></span>kind:video duration>60</div>
<div style="border:1px solid var(--line-2); border-radius:8px; background:var(--bg-3); padding:16px 20px; font-family:'IBM Plex Mono',monospace; font-size:15px; color:var(--ink);"><span style="color:var(--accent-ink); margin-right:12px;">></span>tag:family modified:2024</div>
</div>
<p style="font-size:18px; line-height:1.95; color:var(--ink-3); max-width:56ch; margin-top:40px;" data-ja="サイズ・解像度・再生時間・日付はパネルから、Finder タグはサイドバーから絞り込めます。" data-en="Size, resolution, duration and date come from a panel; Finder tags from the sidebar.">サイズ・解像度・再生時間・日付はパネルから、Finder タグはサイドバーから絞り込めます。</p>
<div style="margin-top:56px;">
<img src="assets/lp/shot/02.webp" data-src-ja="assets/lp/shot/02.webp" data-src-en="assets/lp/shot/02e.webp" alt="検索欄に打ち込んだ絞り込みの例" data-alt-ja="検索欄に打ち込んだ絞り込みの例" data-alt-en="A narrowing query typed into the search field" style="display:block; width:100%; height:auto;" loading="lazy" decoding="async">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.04em; color:var(--ink-3); margin-top:12px;" data-ja="SEARCH — 検索欄で絞り込む" data-en="SEARCH — narrowing in the field">SEARCH — 検索欄で絞り込む</div>
</div>
<div style="margin-top:40px;">
<img src="assets/lp/shot/06.webp" data-src-ja="assets/lp/shot/06.webp" data-src-en="assets/lp/shot/06e.webp" alt="名前・サイズ・種類・解像度・再生時間での並び替え" data-alt-ja="名前・サイズ・種類・解像度・再生時間での並び替え" data-alt-en="Sorting by name, size, kind, resolution or duration" style="display:block; width:100%; height:auto;" loading="lazy" decoding="async">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.04em; color:var(--ink-3); margin-top:12px;" data-ja="SORT — 並び替え" data-en="SORT — ordering">SORT — 並び替え</div>
</div>
</div>
</section>
<!-- 04 — formats -->
<section id="formats" class="fs-pad" style="border-top:1px solid var(--line); background:var(--bg-2);">
<div style="max-width:1200px; margin:0 auto; padding:120px 40px;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.1em; color:var(--accent-ink); margin-bottom:22px;" data-ja="04 — 画像・動画・テキスト" data-en="04 — Images, video, text">04 — 画像・動画・テキスト</div>
<p style="font-size:20px; line-height:1.95; color:var(--ink-2); max-width:56ch; margin-bottom:48px;" data-ja="サムネイルの大きさを変えられるタイル表示と、フィルムストリップ付きのプレビュー表示。動画はアプリ内で再生でき、QuickTime が開けない形式にも対応します。テキストファイルは中身を表示。RAW 写真にも対応しています。" data-en="A tile view whose thumbnails resize, and a preview view with a filmstrip below it. Video plays inside the app, including formats QuickTime will not open. Text files show their contents. RAW photos are supported.">サムネイルの大きさを変えられるタイル表示と、フィルムストリップ付きのプレビュー表示。動画はアプリ内で再生でき、QuickTime が開けない形式にも対応します。テキストファイルは中身を表示。RAW 写真にも対応しています。</p>
<div style="display:flex; flex-wrap:wrap; gap:10px;">
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ink-3); border:1px solid var(--line-2); padding:7px 14px; border-radius:6px;" data-ja="タイル表示" data-en="Tile view">タイル表示</span>
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ink-3); border:1px solid var(--line-2); padding:7px 14px; border-radius:6px;" data-ja="フィルムストリップ" data-en="Filmstrip">フィルムストリップ</span>
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ink-3); border:1px solid var(--line-2); padding:7px 14px; border-radius:6px;" data-ja="アプリ内再生" data-en="In-app playback">アプリ内再生</span>
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ink-3); border:1px solid var(--line-2); padding:7px 14px; border-radius:6px;" data-ja="テキスト表示" data-en="Text preview">テキスト表示</span>
<span style="font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ink-3); border:1px solid var(--line-2); padding:7px 14px; border-radius:6px;" data-ja="RAW対応" data-en="RAW support">RAW対応</span>
</div>
<div style="margin-top:56px;">
<img src="assets/lp/shot/04.webp" data-src-ja="assets/lp/shot/04.webp" data-src-en="assets/lp/shot/04e.webp" alt="フィルムストリップ付きのプレビュー表示" data-alt-ja="フィルムストリップ付きのプレビュー表示" data-alt-en="The preview view with its filmstrip" style="display:block; width:100%; height:auto;" loading="lazy" decoding="async">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.04em; color:var(--ink-3); margin-top:12px;" data-ja="PREVIEW — フィルムストリップ" data-en="PREVIEW — filmstrip">PREVIEW — フィルムストリップ</div>
</div>
<div style="margin-top:40px;">
<img src="assets/text-and-video.jpg" alt="テキストファイルの中身と動画が同じグリッドに並ぶ" data-alt-ja="テキストファイルの中身と動画が同じグリッドに並ぶ" data-alt-en="Text file contents and video side by side in one grid" style="display:block; width:100%; height:auto;" loading="lazy" decoding="async">
<div style="font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.04em; color:var(--ink-3); margin-top:12px;" data-ja="TEXT + VIDEO — 同じグリッド上で" data-en="TEXT + VIDEO — in the same grid">TEXT + VIDEO — 同じグリッド上で</div>
</div>
</div>
</section>
<!-- 05 & 06 two-up -->
<section class="fs-pad" style="border-top:1px solid var(--line);">
<div class="fs-two-col" style="max-width:1200px; margin:0 auto; padding:104px 40px 56px; display:grid; grid-template-columns:1fr 1fr; gap:0;">
<div style="padding-right:56px; border-right:1px solid var(--line);">
<div style="font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.1em; color:var(--accent-ink); margin-bottom:22px;" data-ja="05 — Finder と喧嘩しない" data-en="05 — It does not fight Finder">05 — Finder と喧嘩しない</div>
<p style="font-size:18px; line-height:1.95; color:var(--ink-2);" data-ja="Finder のタグを読み取り、サイドバーに表示します。任意のファイルを Finder で表示できます。ファイルの種類ごとに開くアプリを指定できますが、システムの既定は変更しません。" data-en="It reads your Finder tags and shows them in the sidebar. Any file can be revealed in Finder. You can pick an app per file kind without changing your system defaults.">Finder のタグを読み取り、サイドバーに表示します。任意のファイルを Finder で表示できます。ファイルの種類ごとに開くアプリを指定できますが、システムの既定は変更しません。</p>
</div>
<div id="dup" style="padding-left:56px;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.1em; color:var(--accent-ink); margin-bottom:22px;" data-ja="06 — 重複を見つける" data-en="06 — Find duplicates">06 — 重複を見つける</div>
<p style="font-size:18px; line-height:1.95; color:var(--ink-2);" data-ja="登録したすべてのフォルダを横断し、名前ではなく内容で比較します。移動する直前には、対象のファイルを全体まで読み直して照合します。" data-en="It looks across every registered folder and compares contents, not names. Immediately before anything is moved, the files involved are read in full and compared again.">登録したすべてのフォルダを横断し、名前ではなく内容で比較します。移動する直前には、対象のファイルを全体まで読み直して照合します。</p>
</div>
</div>
<div style="max-width:1200px; margin:0 auto; padding:0 40px 104px;">
<img src="assets/lp/shot/05.webp" data-src-ja="assets/lp/shot/05.webp" data-src-en="assets/lp/shot/05e.webp" alt="重複スキャンの設定と推定コスト" data-alt-ja="重複スキャンの設定と推定コスト" data-alt-en="The duplicate scan, with what it found and what it can reclaim" style="display:block; width:100%; height:auto;" loading="lazy" decoding="async">
</div>
</section>
<!-- 07 — safe -->
<section id="safe" class="fs-pad" style="border-top:1px solid var(--line); background:var(--bg-2);">
<div style="max-width:1200px; margin:0 auto; padding:120px 40px;">
<div style="font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:.1em; color:var(--accent-ink); margin-bottom:26px;" data-ja="07 — 既定で安全" data-en="07 — Safe by default">07 — 既定で安全</div>
<div class="fs-two-col" style="display:grid; grid-template-columns:1fr 1fr; gap:40px;">
<p style="font-size:20px; line-height:1.95; color:var(--ink);"><span data-ja="ShelfNavigator がファイルを消去することはありません。削除はゴミ箱への移動で、アプリを開いている間は " data-en="ShelfNavigator never erases a file. Deleting means moving to the Trash, and ">ShelfNavigator がファイルを消去することはありません。削除はゴミ箱への移動で、アプリを開いている間は </span><span style="font-family:'IBM Plex Mono',monospace; color:var(--accent-ink);">⌘Z</span><span data-ja=" ですぐに元へ戻せます。" data-en=" puts it straight back for as long as the app stays open."> ですぐに元へ戻せます。</span></p>
<p style="font-size:20px; line-height:1.95; color:var(--ink);" data-ja="通信機能を持たないため、ファイルの情報が外部へ出ることはありません。" data-en="It has no networking at all, so nothing about your files ever leaves the Mac.">通信機能を持たないため、ファイルの情報が外部へ出ることはありません。</p>
</div>
</div>
</section>
</main>
<!-- FOOTER -->
<footer style="background:var(--bg-3); border-top:1px solid var(--line);">
<div class="fs-pad" style="max-width:1200px; margin:0 auto; padding:56px 40px; display:flex; flex-wrap:wrap; gap:32px; justify-content:space-between; align-items:center;">
<div style="font-family:'Space Grotesk',sans-serif; font-weight:700; letter-spacing:.14em; font-size:15px; color:var(--ink);">SHELFNAVIGATOR</div>
<!-- 製品まわりの共通フッター(README「LP の決まりごと」4番)。並びは3ページで揃える -->
<nav class="rw-product-footer" aria-label="関連ページ" style="display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-family:'IBM Plex Mono',monospace; font-size:13px;">
<a href="index.html" style="color:var(--ink-3);" data-ja="RustyWorks" data-en="RustyWorks">RustyWorks</a>
<span aria-hidden="true" style="color:var(--line-3);">·</span>
<a href="shelfnavigator.html" style="color:var(--ink-3);" data-ja="製品ページ" data-en="Product">製品ページ</a>
<span aria-hidden="true" style="color:var(--line-3);">·</span>
<a href="shelfnavigator_manual.html" style="color:var(--ink-3);" data-ja="取扱説明書" data-en="Manual">取扱説明書</a>
<span aria-hidden="true" style="color:var(--line-3);">·</span>
<a href="https://apps.apple.com/app/id6794389638" target="_blank" rel="noopener" style="color:var(--ink-3);" data-ja="App Store" data-en="App Store">App Store</a>
<span aria-hidden="true" style="color:var(--line-3);">·</span>
<a href="shelfnavigator_privacy.html" style="color:var(--ink-3);" data-ja="プライバシー" data-en="Privacy">プライバシー</a>
<span aria-hidden="true" style="color:var(--line-3);">·</span>
<a href="site_privacy.html" style="color:var(--ink-3);" data-ja="サイトのポリシー" data-en="Site Policy">サイトのポリシー</a>
</nav>
</div>
<div class="fs-pad" style="max-width:1200px; margin:0 auto; padding:0 40px 40px; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ink-3);">© RustyWorks — ShelfNavigator</div>
</footer>
</div>
<script>
/* サイト共通の日英切替。保存先の rw-lang は全ページで共有なので、
トップで EN にした人はこのページも EN で開く。
README の仕組みに、画像の差し替え(data-src-*)と代替文(data-alt-*)を足してある。 */
(function () {
var KEY = 'rw-lang';
var buttons = document.querySelectorAll('.lang button');
var nodes = document.querySelectorAll('[data-ja][data-en]');
var imgs = document.querySelectorAll('[data-src-ja][data-src-en]');
var alts = document.querySelectorAll('[data-alt-ja][data-alt-en]');
function apply(lang) {
document.documentElement.lang = lang;
nodes.forEach(function (el) {
var text = el.getAttribute('data-' + lang);
if (text !== null) el.textContent = text;
});
imgs.forEach(function (el) {
var src = el.getAttribute('data-src-' + lang);
if (src) el.setAttribute('src', src);
});
alts.forEach(function (el) {
var alt = el.getAttribute('data-alt-' + lang);
if (alt !== null) el.setAttribute('alt', alt);
});
buttons.forEach(function (b) {
b.setAttribute('aria-pressed', String(b.dataset.lang === lang));
});
if (window.snSetLang) window.snSetLang(lang);
try { localStorage.setItem(KEY, lang); } catch (e) {}
}
buttons.forEach(function (b) {
b.addEventListener('click', function () { apply(b.dataset.lang); });
});
var saved = null;
// 言語は強い順に決める。1. URL の ?lang 2. 前回の選択 3. 既定は日本語。
// ブラウザの言語では切り替えない。クローラーは en を名乗ることが多く、
// 日本語で書いたページが英語で索引されてしまうため。
try {
var q = new URLSearchParams(location.search).get('lang');
if (q === 'en' || q === 'ja') {
saved = q;
localStorage.setItem(KEY, q);
}
} catch (e) {}
if (!saved) { try { saved = localStorage.getItem(KEY); } catch (e) {} }
if (!saved) saved = 'ja';
if (saved === 'en') apply('en');
})();
</script>
<!-- Cloudflare Web Analytics --><script type='module' src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "04f66ad1837a4b63af68beb6e835358f"}'></script><!-- End Cloudflare Web Analytics -->
</body>
</html>