/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* p要素の基本スタイル */
p {
    color: #00ff00;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

html, body {
    background: transparent;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: transparent;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ヘッダー */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(0, 255, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    color: #00ff00;
    margin-bottom: 10px;
}

/* 管理アクセス */
.admin-access {
    position: absolute;
    top: 20px;
    right: 20px;
}

.admin-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #000000;
    color: #00ff00;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #00ff00;
    cursor: pointer;
}

.admin-btn:hover {
    background: #00ff00;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,255,0,0.3);
    text-decoration: none;
}

/* サービスグリッド */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    word-wrap: break-word;
    border: 2px solid rgba(0, 255, 0, 0.3);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 255, 0, 0.8);
    box-shadow: 0 15px 40px rgba(0, 255, 0, 0.2);
}

.service-image {
    text-align: center;
    margin-bottom: 15px;
}

.service-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.3));
    transition: all 0.3s ease;
}

.service-image img:hover {
    filter: drop-shadow(0 0 20px rgba(0, 255, 0, 0.6));
    transform: scale(1.1);
}

.default-image {
    width: 80px;
    height: 80px;
    background: #222222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    border: 3px solid #00ff00;
    color: #00ff00;
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.service-info p {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.service-url {
    color: #00ff00;
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.service-url:hover {
    text-decoration: underline;
    color: #00cc00;
}

/* サービスなしの場合 */
.no-services {
    text-align: center;
    padding: 60px 20px;
    background: #111111;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,255,0,0.2);
    border: 1px solid #00ff00;
}

.no-services p {
    font-size: 1.2rem;
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .admin-access {
        position: static;
        margin-top: 15px;
    }
    
    .admin-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 15px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.5s ease-out;
}

/* ローディング状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
