/* ========================================
 リセット＆基本設定
======================================== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
line-height: 1.8;
color: #333;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
display: flex;
flex-direction: column;
position: relative;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: 
radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(173, 216, 230, 0.1) 0%, transparent 50%),
radial-gradient(circle at 40% 20%, rgba(255, 218, 185, 0.1) 0%, transparent 50%);
pointer-events: none;
z-index: -1;
}
/* ========================================
 ヘッダーエリア（複雑な装飾）
======================================== */
header {
background: linear-gradient(to right, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
position: relative;
overflow: hidden;
box-shadow: 
0 10px 30px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
header::before,
header::after {
content: "";
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.3;
animation: float 20s ease-in-out infinite;
}
header::before {
width: 300px;
height: 300px;
background: rgba(255, 255, 255, 0.5);
top: -100px;
left: -100px;
}
header::after {
width: 400px;
height: 400px;
background: rgba(255, 215, 0, 0.3);
bottom: -150px;
right: -150px;
animation-delay: -10s;
}
@keyframes float {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(30px, -30px) scale(1.1); }
66% { transform: translate(-20px, 20px) scale(0.9); }
}
.header-content {
max-width: 800px;
margin: 0 auto;
position: relative;
z-index: 1;
}
h1 {
font-size: clamp(2rem, 6vw, 3.5rem);
font-weight: 900;
text-align: center;
color: #fff;
text-shadow: 
3px 3px 6px rgba(0, 0, 0, 0.3),
0 0 20px rgba(255, 255, 255, 0.5),
0 0 40px rgba(255, 255, 255, 0.3);
letter-spacing: 0.05em;
position: relative;
display: inline-block;
width: 100%;
animation: titlePulse 3s ease-in-out infinite;
}
h1 a{
font-size: clamp(2rem, 6vw, 3.5rem);
font-weight: 900;
text-align: center;
text-decoration: none;
color: #fff;
text-shadow: 
3px 3px 6px rgba(0, 0, 0, 0.3),
0 0 20px rgba(255, 255, 255, 0.5),
0 0 40px rgba(255, 255, 255, 0.3);
letter-spacing: 0.05em;
position: relative;
display: inline-block;
width: 100%;
animation: titlePulse 3s ease-in-out infinite;
}
@keyframes titlePulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.02); }
}
h1::before {
content: "\2605";
position: absolute;
left: -40px;
top: 50%;
transform: translateY(-50%);
font-size: 1.5rem;
animation: starRotate 4s linear infinite;
}
h1::after {
content: "\2605";
position: absolute;
right: -40px;
top: 50%;
transform: translateY(-50%);
font-size: 1.5rem;
animation: starRotate 4s linear infinite reverse;
}
@keyframes starRotate {
from { transform: translateY(-50%) rotate(0deg); }
to { transform: translateY(-50%) rotate(360deg); }
}
/* ========================================
 ヘッダー画像（着脱可能）
======================================== */
.header-image-wrapper {
max-width: 800px;
margin: 0 auto;
padding: 0 clamp(1rem, 3vw, 2rem);
position: relative;
}
.header-image {
width: 100%;
height: auto;
display: block;
border-radius: 12px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
margin-top: clamp(1.5rem, 3vw, 2.5rem);
transition: transform 0.3s ease;
}
.header-image:hover {
transform: translateY(-5px);
}
/* ========================================
 メインコンテナ（複雑な構造）
======================================== */
.main-container {
flex: 1;
display: grid;
grid-template-columns: 
minmax(1rem, 1fr) 
minmax(auto, 800px) 
minmax(1rem, 1fr);
grid-template-areas: 
". content .";
padding: clamp(2rem, 5vw, 4rem) 0;
position: relative;
}
.main-container::before,
.main-container::after {
content: "";
position: absolute;
width: 200px;
height: 200px;
border-radius: 50%;
filter: blur(100px);
opacity: 0.15;
pointer-events: none;
}
.main-container::before {
background: #ff6b6b;
top: 10%;
left: 5%;
animation: floatShape 25s ease-in-out infinite;
}
.main-container::after {
background: #48dbfb;
bottom: 10%;
right: 5%;
animation: floatShape 25s ease-in-out infinite reverse;
}
@keyframes floatShape {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(50px, -50px); }
}
/* ========================================
 本文エリア（シンプル）
======================================== */
main {
grid-area: content;
background: #fff;
padding: clamp(2rem, 5vw, 3rem);
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
h2 {
font-size: 1.8rem;
color: #ff6b6b;
border-left: 6px solid #ff6b6b;
padding-left: 1rem;
margin: 2.5rem 0 1.5rem;
}
h2:first-child {
margin-top: 0;
}
h3 {
font-size: 1.5rem;
color: #48dbfb;
border-bottom: 3px solid #48dbfb;
padding-bottom: 0.5rem;
margin: 2rem 0 1.2rem;
}
h4 {
font-size: 1.3rem;
color: #feca57;
margin: 1.8rem 0 1rem;
position: relative;
padding-left: 1.5rem;
}
h4::before {
content: "\25C6";
position: absolute;
left: 0;
color: #feca57;
}
p {
margin: 1.5rem 0;
text-align: justify;
}
img {
max-width: 100%;
height: auto;
display: block;
margin: 2rem auto;
border-radius: 8px;
}
ul, ol {
margin: 1.5rem 0;
padding-left: 2rem;
}
li {
margin: 0.8rem 0;
}
table {
width: 100%;
border-collapse: collapse;
margin: 2rem 0;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
th, td {
border: 1px solid #ddd;
padding: 1rem;
text-align: left;
}
th {
background: linear-gradient(135deg, #ff6b6b, #feca57);
color: #fff;
font-weight: bold;
}
tr:nth-child(even) {
background: #f9f9f9;
}
/* ========================================
 フッターエリア（複雑な装飾）
======================================== */
footer {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: relative;
overflow: hidden;
margin-top: auto;
}
footer::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(to right, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
background-size: 200% 100%;
animation: slideGradient 3s linear infinite;
}
@keyframes slideGradient {
from { background-position: 0% 0%; }
to { background-position: 200% 0%; }
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
position: relative;
z-index: 1;
}
.footer-menu {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: clamp(1.5rem, 3vw, 2.5rem);
list-style: none;
margin-bottom: 1.5rem;
}
.footer-menu li {
position: relative;
margin: 0;
}
.footer-menu li::before {
content: "";
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 2px;
background: #fff;
transition: width 0.3s ease;
}
.footer-menu li:hover::before {
width: 100%;
}
.footer-menu a {
color: #fff;
text-decoration: none;
font-weight: 600;
font-size: clamp(0.95rem, 2vw, 1.1rem);
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
position: relative;
display: inline-block;
}
.footer-menu a::after {
content: "\00BB";
margin-left: 5px;
opacity: 0;
transform: translateX(-10px);
transition: all 0.3s ease;
}
.footer-menu a:hover {
transform: translateY(-2px);
letter-spacing: 0.05em;
}
.footer-menu a:hover::after {
opacity: 1;
transform: translateX(0);
}
.copyright {
text-align: center;
color: rgba(255, 255, 255, 0.9);
font-size: 0.9rem;
padding-top: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.2);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.copyright a{
text-align: center;
color: rgba(255, 255, 255, 0.9);
font-size: 0.9rem;
text-decoration: none;
padding-top: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.2);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
/* ========================================
 レスポンシブ対応
======================================== */
@media (max-width: 768px) {
h1::before,
h1::after {
display: none;
}
.footer-menu {
flex-direction: column;
align-items: center;
gap: 1rem;
}
main {
padding: clamp(1.5rem, 4vw, 2rem);
}
}
@media (max-width: 480px) {
h2 {
font-size: 1.5rem;
}
h3 {
font-size: 1.3rem;
}
h4 {
font-size: 1.1rem;
}
table {
font-size: 0.9rem;
}
th, td {
padding: 0.7rem;
}
}