/* ===========================
   基本設定
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --sky-top: #1a0835;
    --sky-mid: #6b1f7a;
    --sky-pink: #c94075;
    --sky-orange: #e8621a;
    --sky-gold: #f4a61a;
    --ocean-deep: #0a3c78;
    --ocean-mid: #1565c0;
    --ocean-light: #1e88e5;
    --text-light: #fff5ee;
    --text-shadow: rgba(0,0,0,0.5);
    --card-bg: rgba(0,0,0,0.45);
    --card-border: rgba(255,220,180,0.25);
    --card-hover: rgba(0,0,0,0.58);
    --btn-bg: linear-gradient(135deg, #e8621a, #c94075);
    --btn-hover: linear-gradient(135deg, #f47a30, #d9508a);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   ハワイの夕焼け背景
=========================== */
.sky-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("bg.png") center center / cover no-repeat;
    z-index: -3;
}

/* 太陽 */
.sun-container {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
}

.sun {
    width: 90px;
    height: 45px;
    background: linear-gradient(180deg, #fff176, #ffe082, #ffb74d);
    border-radius: 90px 90px 0 0;
    box-shadow:
        0 0 30px 15px rgba(255,224,130,0.6),
        0 0 60px 30px rgba(255,180,80,0.4),
        0 0 100px 50px rgba(255,130,50,0.2);
    animation: sunPulse 4s ease-in-out infinite;
}

.sun-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse at center bottom, rgba(255,200,80,0.5) 0%, transparent 70%);
    filter: blur(10px);
}

@keyframes sunPulse {
    0%, 100% { box-shadow: 0 0 30px 15px rgba(255,224,130,0.6), 0 0 60px 30px rgba(255,180,80,0.4), 0 0 100px 50px rgba(255,130,50,0.2); }
    50% { box-shadow: 0 0 40px 20px rgba(255,224,130,0.7), 0 0 80px 40px rgba(255,180,80,0.5), 0 0 140px 70px rgba(255,130,50,0.3); }
}

/* 雲 */
.cloud {
    position: absolute;
    border-radius: 50px;
    opacity: 0;
    animation: cloudFloat linear infinite;
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 140px;
    height: 35px;
    top: 12%;
    left: -160px;
    background: rgba(255,180,160,0.25);
    animation-duration: 60s;
    animation-delay: 0s;
}
.cloud-1::before { width: 60px; height: 60px; top: -30px; left: 25px; }
.cloud-1::after  { width: 45px; height: 45px; top: -20px; left: 65px; }

.cloud-2 {
    width: 100px;
    height: 28px;
    top: 20%;
    left: -120px;
    background: rgba(255,150,180,0.2);
    animation-duration: 80s;
    animation-delay: -30s;
}
.cloud-2::before { width: 45px; height: 45px; top: -25px; left: 15px; }
.cloud-2::after  { width: 35px; height: 35px; top: -18px; left: 50px; }

.cloud-3 {
    width: 180px;
    height: 40px;
    top: 8%;
    left: -200px;
    background: rgba(200,120,220,0.18);
    animation-duration: 90s;
    animation-delay: -15s;
}
.cloud-3::before { width: 70px; height: 70px; top: -35px; left: 30px; }
.cloud-3::after  { width: 55px; height: 55px; top: -28px; left: 90px; }

.cloud-4 {
    width: 120px;
    height: 30px;
    top: 25%;
    left: -140px;
    background: rgba(255,160,120,0.15);
    animation-duration: 70s;
    animation-delay: -45s;
}
.cloud-4::before { width: 50px; height: 50px; top: -28px; left: 20px; }
.cloud-4::after  { width: 40px; height: 40px; top: -20px; left: 62px; }

@keyframes cloudFloat {
    0%   { transform: translateX(0); opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { transform: translateX(calc(100vw + 250px)); opacity: 0; }
}

/* ===========================
   海と波
=========================== */
.ocean-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    z-index: -2;
    background: transparent;
}

.wave {
    position: absolute;
    width: 200%;
    left: 0;
    bottom: 0;
}

.wave-1 {
    bottom: 15%;
    animation: waveMove1 8s linear infinite;
    opacity: 0.8;
}

.wave-2 {
    bottom: 8%;
    animation: waveMove2 11s linear infinite;
    opacity: 0.9;
}

.wave-3 {
    bottom: 0;
    animation: waveMove3 14s linear infinite;
}

@keyframes waveMove1 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes waveMove2 {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
@keyframes waveMove3 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   ページレイアウト
=========================== */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 100px;
}

/* ===========================
   ヘッダー
=========================== */
.site-header {
    text-align: center;
    padding: 70px 20px 50px;
    max-width: 700px;
}

.header-decoration {
    font-size: 1.2rem;
    color: rgba(255,220,140,0.6);
    letter-spacing: 20px;
    margin-bottom: 20px;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.site-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff5ee, #ffe0b2, #ffcc80, #fff5ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(255,150,50,0.5));
    margin-bottom: 24px;
    animation: titleShimmer 5s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.site-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.9;
    color: rgba(255,235,210,0.9);
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    letter-spacing: 0.05em;
}

/* ===========================
   作品セクション
=========================== */
.works-section {
    width: 100%;
    max-width: 1200px;
}

.section-label {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: rgba(255,200,140,0.7);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.section-label::before,
.section-label::after {
    content: ' — ';
    opacity: 0.5;
}

/* ===========================
   作品グリッド
=========================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 0 8px;
}

/* ===========================
   作品カード
=========================== */
.work-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: var(--card-hover);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.3),
        0 0 30px rgba(255,150,80,0.2),
        inset 0 0 20px rgba(255,255,255,0.05);
    border-color: rgba(255,200,140,0.45);
}

.card-inner {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

.card-icon {
    width: 44px;
    height: 44px;
    color: rgba(255,200,140,0.7);
    margin-bottom: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.work-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: rgba(255,220,160,1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff5ee;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

.card-description {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255,235,210,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    flex: 1;
    margin-bottom: 24px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--btn-bg);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(200,80,50,0.4);
    transition: background 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.2s ease;
}

.card-btn:hover {
    background: var(--btn-hover);
    box-shadow: 0 6px 25px rgba(200,80,50,0.6);
    transform: translateX(3px);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.card-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===========================
   フッター
=========================== */
.site-footer {
    margin-top: 70px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,220,180,0.5);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-link {
    color: rgba(255,200,140,0.3);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.admin-link:hover {
    color: rgba(255,200,140,0.7);
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 640px) {
    .site-header {
        padding: 55px 16px 40px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card-inner {
        padding: 26px 22px;
        min-height: auto;
    }

    .card-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .sun { width: 70px; height: 35px; }
}

/* ===========================
   スクロールバー
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(10,20,50,0.5); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e8621a, #6b1f7a);
    border-radius: 3px;
}
