-
Notifications
You must be signed in to change notification settings - Fork 0
豊臣秀吉の自己紹介LPを追加 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
豊臣秀吉の自己紹介LPを追加 #11
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,343 @@ | ||||||||||||||||||||||||||||||||||||||||
| :root { | ||||||||||||||||||||||||||||||||||||||||
| --gold: #d4af37; | ||||||||||||||||||||||||||||||||||||||||
| --dark-gold: #b8860b; | ||||||||||||||||||||||||||||||||||||||||
| --black: #111; | ||||||||||||||||||||||||||||||||||||||||
| --dark-gray: #222; | ||||||||||||||||||||||||||||||||||||||||
| --white: #f5f5f5; | ||||||||||||||||||||||||||||||||||||||||
| --red: #8b0000; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| body { | ||||||||||||||||||||||||||||||||||||||||
| margin: 0; | ||||||||||||||||||||||||||||||||||||||||
| padding: 0; | ||||||||||||||||||||||||||||||||||||||||
| font-family: 'Shippori Mincho', 'Noto Serif JP', serif; | ||||||||||||||||||||||||||||||||||||||||
| background-color: var(--black); | ||||||||||||||||||||||||||||||||||||||||
| color: var(--white); | ||||||||||||||||||||||||||||||||||||||||
| line-height: 1.8; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| a { | ||||||||||||||||||||||||||||||||||||||||
| text-decoration: none; | ||||||||||||||||||||||||||||||||||||||||
| color: inherit; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| h1, h2, h3 { | ||||||||||||||||||||||||||||||||||||||||
| font-family: 'Noto Serif JP', serif; | ||||||||||||||||||||||||||||||||||||||||
| letter-spacing: 0.1em; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| /* Hero Section */ | ||||||||||||||||||||||||||||||||||||||||
| .hero { | ||||||||||||||||||||||||||||||||||||||||
| height: 100vh; | ||||||||||||||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||||||||||||||||||
| text-align: center; | ||||||||||||||||||||||||||||||||||||||||
| position: relative; | ||||||||||||||||||||||||||||||||||||||||
| overflow: hidden; | ||||||||||||||||||||||||||||||||||||||||
| background: radial-gradient(circle, #333 0%, #000 100%); | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .hero-bg { | ||||||||||||||||||||||||||||||||||||||||
| position: absolute; | ||||||||||||||||||||||||||||||||||||||||
| top: 0; | ||||||||||||||||||||||||||||||||||||||||
| left: 0; | ||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||
| height: 100%; | ||||||||||||||||||||||||||||||||||||||||
| background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiM0NDQiIGZpbGwtb3BhY2l0eT0iMC4xIj48cGF0aCBkPSJNMzYgMzR2LTRoLTJ2NGgtMnY0aDJ2NGgydi00aDJ2LTRoLTJ6TTM2IDM0VjMwaDR2NGgtNHpNNiAzNHYtNGgtMnY0SDJ2NGgydjRoMnYtNGgydi00SDZ6Ii8+PC9nPjwvZz48L3N2Zz4='); /* 和柄パターン(例:青海波などではないがシンプルなもの) */ | ||||||||||||||||||||||||||||||||||||||||
| z-index: 0; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .hero-overlay { | ||||||||||||||||||||||||||||||||||||||||
| position: absolute; | ||||||||||||||||||||||||||||||||||||||||
| top: 0; | ||||||||||||||||||||||||||||||||||||||||
| left: 0; | ||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||
| height: 100%; | ||||||||||||||||||||||||||||||||||||||||
| background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8)); | ||||||||||||||||||||||||||||||||||||||||
| z-index: 1; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .hero-content { | ||||||||||||||||||||||||||||||||||||||||
| position: relative; | ||||||||||||||||||||||||||||||||||||||||
| z-index: 2; | ||||||||||||||||||||||||||||||||||||||||
| margin-bottom: 2rem; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .hero h1 { | ||||||||||||||||||||||||||||||||||||||||
| font-size: 4rem; | ||||||||||||||||||||||||||||||||||||||||
| color: var(--gold); | ||||||||||||||||||||||||||||||||||||||||
| text-shadow: 2px 2px 4px rgba(0,0,0,0.5); | ||||||||||||||||||||||||||||||||||||||||
| margin: 0; | ||||||||||||||||||||||||||||||||||||||||
| writing-mode: vertical-rl; | ||||||||||||||||||||||||||||||||||||||||
| text-orientation: upright; | ||||||||||||||||||||||||||||||||||||||||
| margin-right: 1rem; | ||||||||||||||||||||||||||||||||||||||||
| display: inline-block; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| .subtitle { | ||||||||||||||||||||||||||||||||||||||||
| font-size: 1.5rem; | ||||||||||||||||||||||||||||||||||||||||
| color: var(--white); | ||||||||||||||||||||||||||||||||||||||||
| letter-spacing: 0.2em; | ||||||||||||||||||||||||||||||||||||||||
| writing-mode: vertical-rl; | ||||||||||||||||||||||||||||||||||||||||
| text-orientation: upright; | ||||||||||||||||||||||||||||||||||||||||
| display: inline-block; | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
| @media (max-width: 480px) { | |
| .hero h1, | |
| .subtitle { | |
| writing-mode: horizontal-tb; | |
| text-orientation: mixed; | |
| margin-right: 0; | |
| margin-top: 0.5rem; | |
| margin-bottom: 0.5rem; | |
| display: block; | |
| } | |
| } |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The animation for the kamon (family crest) rotates infinitely for 20 seconds. This continuous animation could be distracting for users with vestibular disorders or motion sensitivity. Consider adding a prefers-reduced-motion media query to disable or reduce this animation for users who have indicated a preference for reduced motion in their system settings.
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text-align: justify property can create uneven spacing and rivers of whitespace, especially in Japanese text with longer words or mixed language content. This can reduce readability and is particularly problematic for users with dyslexia or other reading difficulties. Consider using text-align: left or center for better readability, especially for Japanese content.
| text-align: justify; | |
| text-align: left; |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fade-in animations (.fade-in and .fade-in-delay) use the 'forwards' fill-mode which keeps the final animation state. However, these classes are applied to elements that should always be visible (the hero title and subtitle). If JavaScript is disabled or fails to load, these elements will remain invisible (opacity: 0) permanently. Consider using a noscript fallback or applying a default visible state that only gets overridden when JavaScript is available.
| opacity: 0; | |
| animation: fadeIn 1.5s ease-out forwards; | |
| } | |
| .fade-in-delay { | |
| opacity: 0; | |
| animation: fadeIn 1.5s ease-out 0.5s forwards; | |
| } | |
| @keyframes fadeIn { | |
| animation: fadeIn 1.5s ease-out forwards; | |
| } | |
| .fade-in-delay { | |
| animation: fadeIn 1.5s ease-out 0.5s forwards; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hero background uses a Base64-encoded SVG pattern which adds significant inline data to the CSS file. While this pattern is small, it increases the initial CSS file size and cannot be cached separately. Consider moving this pattern to a separate SVG file that can be cached, or simplifying the pattern if the decorative effect is not critical. This would improve initial page load performance.