@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Mono:wght@400;700&display=swap');

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 他のコンテンツの下に配置 */
    background-color: #0a0a0a; /* bodyの背景色と合わせる */
}

body {
    font-family: 'Orbitron', sans-serif; /* サイバー感を出すフォント */
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #00ffcc;
    line-height: 1.6;
    /* 背景に複雑なグリッドパターンとアニメーションを追加 */
    background-image:
        linear-gradient(to right, #1a1a1a 1px, transparent 1px),
        linear-gradient(to bottom, #1a1a1a 1px, transparent 1px),
        linear-gradient(to right, rgba(0, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(0, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    animation: backgroundPan 60s linear infinite; /* 背景アニメーション */
}

header {
    background-color: rgba(26, 26, 26, 0.8); /* 透明度を追加 */
    padding: 1.5rem 0; /* パディングを増やす */
    text-align: center;
    border-bottom: 2px solid #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.7); /* グロー効果 */
    position: sticky; /* スクロールしてもヘッダーを固定 */
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* 背景をぼかす */
}

header h1 {
    margin: 0;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff; /* グロー効果をさらに強化 */
    font-size: 3em; /* フォントサイズをさらに大きく */
    letter-spacing: 4px; /* 文字間隔をさらに広げる */
    animation: neonGlow 1.5s ease-in-out infinite alternate; /* ネオンアニメーション */
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease; /* トランジションを追加 */
    position: relative; /* 下線アニメーション用 */
}

nav ul li a::after { /* 下線アニメーション */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00ffff;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; /* グロー効果をさらに強化 */
    transform: translateY(-3px); /* 少し浮き上がる */
}

main {
    padding: 30px 20px; /* パディングを増やす */
    max-width: 1200px;
    margin: 30px auto; /* マージンを増やす */
    background-color: rgba(26, 26, 26, 0.9); /* 透明度を追加 */
    border: 1px solid #00ffcc;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.7); /* グロー効果を強化 */
    border-radius: 8px; /* 角を丸くする */
    overflow: hidden; /* グロー効果がはみ出さないように */
}

.hero {
    text-align: center;
    padding: 100px 20px; /* パディングをさらに増やす */
    background-color: rgba(10, 10, 10, 0.8); /* 透明度を調整 */
    border: 2px solid #00ffff; /* ボーダーを太く */
    margin-bottom: 60px; /* マージンを増やす */
    box-shadow: 0 0 45px rgba(0, 255, 255, 1); /* グロー効果をさらに強化 */
    border-radius: 10px; /* 角を丸く */
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out; /* フェードインアニメーション */
}

.hero::before { /* ヒーローセクションの背景にグリッドオーバーレイ */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to right, rgba(0, 255, 255, 0.05) 5px, transparent 5px),
        linear-gradient(to bottom, rgba(0, 255, 255, 0.05) 5px, transparent 5px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    opacity: 0.4;
    z-index: 0;
    animation: backgroundPan 60s linear infinite; /* 背景アニメーションを継承 */
}

.hero::after { /* ヒーローセクションの背景に光の筋オーバーレイ */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 255, 255, 0.2) 50%, transparent 60%);
    background-size: 200% 200%;
    background-position: -100% -100%;
    animation: lightBeam 10s linear infinite;
    z-index: 0;
    opacity: 0.2;
}

.hero h2 {
    color: #00ffff;
    font-size: 3.5em; /* フォントサイズをさらに大きく */
    text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff; /* グロー効果をさらに強化 */
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    animation: neonGlow 1.5s ease-in-out infinite alternate; /* ネオンアニメーション */
}

.hero p {
    font-size: 1.4em; /* フォントサイズをさらに大きく */
    color: #00ffcc;
    margin-top: 25px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 5px #00ffcc;
}

.cta-button {
    background-color: #00ffff;
    color: #0a0a0a;
    padding: 20px 40px; /* パディングをさらに増やす */
    text-decoration: none;
    border: none;
    border-radius: 50px; /* より丸く */
    font-size: 1.3em; /* フォントサイズをさらに大きく */
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 20px #00ffff, 0 0 35px rgba(0, 255, 255, 0.7); /* グロー効果をさらに強化 */
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    overflow: hidden; /* ホバーエフェクト用 */
}

.cta-button::before { /* ホバー時の光るエフェクト */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: #00ffcc;
    transform: scale(1.1) translateY(-5px); /* より大きく浮き上がり、拡大 */
    box-shadow: 0 0 25px #00ffcc, 0 0 40px rgba(0, 255, 204, 0.9); /* グロー効果をさらに強化 */
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-item {
    background-color: rgba(10, 10, 10, 0.8); /* 透明度を調整 */
    border: 2px solid #00ffcc; /* ボーダーを太く */
    padding: 30px; /* パディングをさらに増やす */
    margin: 20px; /* マージンを増やす */
    width: 26%; /* さらに狭くして間隔を確保 */
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.7); /* グロー効果をさらに強化 */
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-radius: 8px; /* 角を丸く */
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out forwards; /* 出現アニメーション */
}

.feature-item::before { /* ホバー時の光るボーダー */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 255, 255, 0.8), transparent);
    transform: rotate(0deg);
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-20px) scale(1.05); /* より大きく浮き上がり、拡大 */
    box-shadow: 0 0 40px rgba(0, 255, 204, 1); /* グロー効果をさらに強化 */
}

.feature-item h3 {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; /* グロー効果をさらに強化 */
    font-size: 1.6em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-item p {
    color: #00ffcc;
}

.about, .services {
    padding: 50px 40px; /* パディングをさらに増やす */
    margin-bottom: 50px; /* マージンを増やす */
    background-color: rgba(10, 10, 10, 0.9); /* 透明度を調整 */
    border: 2px solid #00ffcc; /* ボーダーを太く */
    box-shadow: 0 0 35px rgba(0, 255, 204, 1); /* グロー効果をさらに強化 */
    border-radius: 10px; /* 角を丸く */
    animation: fadeIn 1s ease-out; /* フェードインアニメーション */
}

.about h2, .services h2 {
    color: #00ffff;
    text-align: center;
    margin-bottom: 40px; /* マージンをさらに増やす */
    text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff; /* グロー効果をさらに強化 */
    font-size: 3em;
    letter-spacing: 2px;
    animation: neonGlow 1.5s ease-in-out infinite alternate; /* ネオンアニメーション */
}

.about p {
    margin-bottom: 25px; /* マージンをさらに増やす */
    color: #00ffcc;
    font-family: 'Roboto Mono', monospace; /* モノスペースフォント */
    font-size: 1.15em; /* フォントサイズを少し大きく */
    line-height: 1.9;
    text-shadow: 0 0 3px #00ffcc;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 中央寄せ */
    gap: 30px; /* アイテム間のギャップ */
}

.service-item {
    background-color: rgba(26, 26, 26, 0.9); /* 透明度を調整 */
    border: 2px solid #00ffff; /* ボーダーを太く */
    padding: 35px; /* パディングをさらに増やす */
    width: 38%; /* さらに狭くして間隔を確保 */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7); /* グロー効果をさらに強化 */
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border-radius: 8px; /* 角を丸く */
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out forwards; /* 出現アニメーション */
}

.service-item::before { /* ホバー時の光るボーダー */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 255, 255, 0.8), transparent);
    transform: rotate(0deg);
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-20px) scale(1.05); /* より大きく浮き上がり、拡大 */
    box-shadow: 0 0 40px rgba(0, 255, 255, 1); /* グロー効果をさらに強化 */
}

.service-item h3 {
    color: #00ffcc;
    text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffcc; /* グロー効果をさらに強化 */
    font-size: 1.7em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-item p {
    color: #00ffcc;
    font-family: 'Roboto Mono', monospace; /* モノスペースフォント */
    position: relative;
    z-index: 1;
}

footer {
    text-align: center;
    padding: 30px; /* パディングをさらに増やす */
    background-color: rgba(26, 26, 26, 0.9); /* 透明度を調整 */
    color: #00ffcc;
    border-top: 2px solid #00ffcc;
    margin-top: 50px; /* マージンを増やす */
    box-shadow: 0 0 30px rgba(0, 255, 204, 1); /* グロー効果をさらに強化 */
    text-shadow: 0 0 5px #00ffcc;
}

/* 新しいキーフレームアニメーション */
@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes neonGlow {
    from { text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff, 0 0 40px #00ffff; }
    to { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 50px #00ffff; }
}

@keyframes backgroundPan {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 600px 600px, 600px 600px, 600px 600px, 600px 600px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lightBeam {
    0% { background-position: -100% -100%; }
    100% { background-position: 100% 100%; }
}

@keyframes borderLight {
    0% { box-shadow: 0 0 0 rgba(0, 255, 255, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.5); }
    100% { box-shadow: 0 0 0 rgba(0, 255, 255, 0); }
}