/* 基本スタイル */
body {
    background-color: #F9FAFB; /* ライトグレー */
    color: #1F2937; /* ダークグレー */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #111827;
    color: #ffffff;
}

/* テーマトグルボタン */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #F472B6;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1;
}

.theme-toggle:hover {
    background-color: #EC4899;
}

/* ヒーローセクション */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #1E3A8A, #A78BFA);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('particle-bg.svg');
    opacity: 0.2;
    animation: moveParticles 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes moveParticles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.text-center {
    text-align: center;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.btn-primary {
    display: inline-block;
    background-color: #F472B6;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    z-index: 10;
    position: relative;
    pointer-events: auto;
}

.btn-primary:hover {
    background-color: #EC4899;
    transform: scale(1.1);
    cursor: pointer;
}

/* セクション */
.section {
    padding: 64px 16px;
}

.bg-light-gray {
    background-color: #E5E7EB;
}

body.dark-mode .bg-light-gray {
    background-color: #1F2937;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

/* グリッド */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* カード */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .card {
    background-color: #374151; /* ダークモード時のカード背景を明るめに */
}

/* アプリ用の画像スタイル */
.card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* LINEスタンプ用の画像スタイル */
.sticker-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex; /* バッジとタイトルを横並びにするため */
    align-items: center; /* 垂直方向の中央揃え */
    flex-wrap: wrap; /* 必要に応じて折り返し */
}

.card-text {
    color: #6B7280;
    line-height: 1.6;
}

body.dark-mode .card-text {
    color: #D1D5DB;
}

.link-primary {
    color: #F472B6;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.link-primary:hover {
    color: #EC4899;
}

/* バッジのスタイル */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem; /* 小さめのフォントサイズ */
    font-weight: 700;
    margin-left: 8px; /* カードタイトルなどからの間隔 */
    vertical-align: middle; /* 垂直方向の中央揃え */
    white-space: nowrap; /* テキストの折り返し防止 */
}

/* NEWバッジのスタイル */
.new-badge {
    background-color: #818CF8; /* ライトブルー */
    color: #ffffff;
}

/* UPDATEバッジのスタイル */
.update-badge {
    background-color: #F59E0B; /* オレンジ */
    color: #ffffff;
}

/* フッター */
.footer {
    padding: 32px 16px;
    background: linear-gradient(to bottom right, #1E3A8A, #A78BFA);
}

.profile-section-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.profile-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.profile-contact-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.social-icon {
    height: 24px;
    width: auto;
    vertical-align: middle;
    transition: opacity 0.2s ease-in-out;
}

.social-icon:hover {
    opacity: 0.8;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.project-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.project-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease, text-decoration 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.project-links a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.4em;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M7 17L17 7M17 7h-6M17 7v6'/%3e%3c/svg%3e");
    mask-size: contain;
    mask-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.project-links a[target="_blank"]:hover::after {
    transform: translate(2px, -2px);
}

.project-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 画面幅が狭い時に折り返すように */
    gap: 16px 24px; /* 縦横の隙間を指定 */
    margin-bottom: 16px;
}

.project-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #F3F4F6;
}
/* ▲▲▲ 変更箇所 ▲▲▲ */

.footer .link-primary {
    color: #ffffff;
}

.footer .link-primary:hover {
    color: #F3F4F6;
}

.footer-text {
    color: #ffffff;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-scale {
    transition: transform 0.3s ease-in-out;
}

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* ローディングアニメーション */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F472B6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* モバイル最適化 */
@media (max-width: 640px) {
    .btn-primary {
        font-size: 1.125rem;
    }
    .card {
        padding: 32px;
    }
}