/* 基本スタイル */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --highlight: #FF9F1C;
    --light-bg: #ffffff;
    --dark-text: #2D3748;
    --light-gray: #F8F9FA;
    --shadow: rgba(0, 0, 0, 0.1);
    --new-color: #9B5DE5; /* パープル */
    --deep-blue: #1A5DFF; /* ディープブルー */
    --warm-pink: #FF6B9D; /* 温かみのあるピンク */
    --cool-teal: #2A9D8F; /* クールなティール */
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ヒーローセクション */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--new-color), var(--cool-teal));
    position: relative;
    overflow: hidden;
}

/* ガラスモーフィズム効果 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

.text-center {
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--light-bg);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--light-bg);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--dark-text);
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px; /* より丸みを帯びたボタン */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    position: relative;
    pointer-events: auto;
    box-shadow: 0 8px 20px rgba(255, 111, 107, 0.3);
    border: none;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--highlight);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 111, 107, 0.4);
    cursor: pointer;
}

/* セクション */
.section {
    padding: 100px 16px;
    background: var(--light-bg);
}

.bg-light-gray {
    background-color: var(--light-gray);
}

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

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 70px;
    color: var(--dark-text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--new-color));
    border-radius: 2px;
}

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

@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: var(--light-bg);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* カードのホバーエフェクト */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,159,28,0.05), rgba(78,205,196,0.05));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 1;
}

/* シャイニーエフェクト */
.shiny-effect {
    position: relative;
    overflow: hidden;
}

.shiny-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40px;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.5s ease;
    z-index: 2;
}

.shiny-effect:hover::after {
    left: 120%;
    transition: all 0.6s ease;
}

/* ボタン用のシャイニーエフェクト */
.btn-primary.shiny-effect::after {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* カード用のシャイニーエフェクト */
.card.shiny-effect::after {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* アプリ用の画像スタイル */
.card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover .card-img {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* LINEスタンプ用の画像スタイル */
.sticker-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .sticker-img {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: var(--dark-text);
}

.card-text {
    color: #666666;
    line-height: 1.8;
    font-size: 1.05rem;
}

.link-primary {
    color: var(--primary);
    text-decoration: none;
    margin-top: 16px;
    display: inline-block;
    font-weight: 600;
    position: relative;
}

.link-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.link-primary:hover::after {
    width: 100%;
}

.link-primary:hover {
    color: var(--warm-pink);
    text-decoration: none;
}

/* バッジのスタイル */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 12px;
    vertical-align: middle;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NEWバッジのスタイル */
.new-badge {
    background-color: var(--secondary);
    color: var(--light-bg);
}

/* UPDATEバッジのスタイル */
.update-badge {
    background-color: var(--accent);
    color: var(--dark-text);
}

/* フッター */
.footer {
    padding: 60px 16px;
    background: linear-gradient(135deg, var(--primary), var(--new-color), var(--cool-teal));
    color: var(--light-bg);
}

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

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-bg);
    margin-bottom: 8px;
}

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

.social-icon {
    height: 32px;
    width: auto;
    vertical-align: middle;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1); /* アイコンを白くする */
}

.social-icon:hover {
    opacity: 0.9;
    transform: scale(1.2) translateY(-3px);
}

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

.project-links a {
    color: var(--light-bg);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.project-links a:hover {
    opacity: 1;
    text-decoration: underline;
    color: var(--accent);
}

.footer-text {
    color: var(--light-bg);
    font-size: 1rem;
    text-align: center;
    margin-top: 20px;
}

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

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

.hover-scale:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

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

/* モバイル最適化 */
@media (max-width: 640px) {
    .btn-primary {
        font-size: 1.125rem;
        padding: 14px 28px;
    }
    .card {
        padding: 28px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .profile-section-footer {
        flex-direction: column;
        gap: 15px;
    }
}

/* ポップな要素追加用のクラス */
.pop-element {
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
