/* ──────────────────────────────────────────────
   フォント読み込み・リセット
────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カスタムカーソルのため全要素で cursor: none */
html, body, * {
    cursor: none !important;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* ──────────────────────────────────────────────
   ロゴサイズ調整
────────────────────────────────────────────── */
.logo img {
    height: 24px;
}

.logo-footer {
    height: 12px;
    margin: 0 4px;
    vertical-align: middle;
}

/* ──────────────────────────────────────────────
   Vanta.js canvas：全画面固定＆最背面
────────────────────────────────────────────── */
.vanta-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* ──────────────────────────────────────────────
   ヘッダー
────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 10;
}

@media (max-width: 800px) {
    header {
        padding: 20px 40px;
    }
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

@media (max-width: 600px) {
    header nav ul {
        gap: 12px;
    }
}

header nav ul li a {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    padding: 5px 0;
    transition: opacity .3s;
}

header nav ul li a:hover {
    opacity: .7;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all .3s;
    transform: translateX(-50%);
}

header nav ul li a:hover::after {
    left: 0;
    width: 100%;
    transform: none;
}

/* ──────────────────────────────────────────────
   本文余白
────────────────────────────────────────────── */
body {
    padding-top: 80px;
}

/* ──────────────────────────────────────────────
   ヒーローセクション
────────────────────────────────────────────── */
#hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

#hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.25rem;
    font-weight: 400;
}

@media (max-width: 600px) {
    #hero h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    #hero p {
        font-size: 1rem;
    }
}

/* ──────────────────────────────────────────────
   スクロールインジケーター
────────────────────────────────────────────── */
.scroll_down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 2;
}

.scroll_down.visible {
    opacity: 1;
}

.scroll_down a {
    display: inline-block;
}

.scroll_down .mouse {
    display: block;
    position: relative;
    width: 35px;
    height: 55px;
    border: 2px solid #fff;
    border-radius: 23px;
    margin: 0 auto;
    box-sizing: border-box;
}

.scroll_down .mouse > span {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: #fff;
    border-radius: 50%;
    animation: ani-mouse 2.5s linear infinite;
}

@keyframes ani-mouse {
    0% {
        opacity: 0;
        top: 70%;
    }
    40% {
        opacity: 0;
        top: 30%;
    }
    70% {
        opacity: 1;
        top: 30%;
    }
    100% {
        opacity: 1;
        top: 70%;
    }
}

/* ──────────────────────────────────────────────
   セクション共通
────────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
}

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

.section-title {
    font-size: 3rem; /* Aboutに合わせて大きめに */
    margin-bottom: 3rem;
    text-align: center;
    display: block;
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    /* 光るテキスト共通アニメーション */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 0 16px rgba(255, 255, 255, 0.2);
    animation: gradientShift 5s ease infinite;
}

.section-lead {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* グラデアニメーション共通 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ──────────────────────────────────────────────
   About Me 見出しのグラデ
────────────────────────────────────────────── */
#about > .container > .section-title,
.about-section > .section-title {
    background-image: linear-gradient(45deg, #FF004C, #C80039);
    /* 既存のテキストフィル＆シャドウは共通で OK */
}

/* ──────────────────────────────────────────────
   App List 見出しのグラデ（水色→濃紺）
────────────────────────────────────────────── */
#app .section-title {
    background-image: linear-gradient(45deg, #00FF6A, #00C853);
}

/* ──────────────────────────────────────────────
   Project List 見出しのグラデ（黄色系）
────────────────────────────────────────────── */
#project .section-title {
    background-image: linear-gradient(45deg, #FFD500, #C8A600);
}

/* ──────────────────────────────────────────────
   各セクション背景色
────────────────────────────────────────────── */
#about {
    background: rgba(0, 0, 0, 0.8);
}

#project {
    background: rgba(10, 10, 30, 0.7);
}

#app {
    background: rgba(0, 0, 0, 0.8);
}

/* ──────────────────────────────────────────────
   App List カードグリッド & 3Dチルト
────────────────────────────────────────────── */
.app-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 800px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .app-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app-list {
        grid-template-columns: 1fr;
    }
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    transform-style: preserve-3d;
    cursor: pointer;

    aspect-ratio: 3 / 4;
    max-width: 320px;
    margin: 0 auto;

    /* **ここを追加** カード内を中央揃えに */
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card__inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;

    /* **ここを追加** テキストも中央揃え */
    text-align: left;
    align-items: center;
}

.app-card__img {
    /* 固定幅にして左寄せを外す */
    width: 80px;
    height: auto;
    margin: 0 auto 1rem; /* 中央寄せ＋下に余白 */
    border-radius: .75rem;
    object-fit: contain;
}

.app-card__title {
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.app-card__desc {
    flex-grow: 1;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.app-card__link {
    text-decoration: none;
    font-weight: 500;
    color: #00C8FF;
    transition: color .2s ease;
}

.app-card__link:hover {
    color: #66FF66;
}

.app-card:hover {
    transform: rotateX(6deg) rotateY(-6deg) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 200, 255, 0.4),
    0 0 16px rgba(128, 255, 0, 0.6);
}

/* ──────────────────────────────────────────────
   Project List：カードホバー光＆リンク色をサイバーイエローに
────────────────────────────────────────────── */
.project-list .app-card:hover {
    /* ホバー時シャドウをイエロー系に */
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4),
    0 0 16px rgba(255, 255, 0, 0.6);
}

/* 通常リンク色をイエロー */
.project-list .app-card__link {
    color: #FFD500;
}

/* リンクホバー色をより濃いイエロー */
.project-list .app-card__link:hover {
    color: #C8A800;
}

/* ──────────────────────────────────────────────
   ネオン風ボタン＆アイコン付きリンク
────────────────────────────────────────────── */
.neon-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 2px solid #00FF6A; /* 蛍光グリーン */
    border-radius: 0.5rem;
    color: #00FF6A;
    text-decoration: none;
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
}

.neon-btn .arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.neon-btn:hover {
    background: rgba(0, 255, 106, 0.1);
    box-shadow: 0 0 8px #00FF6A, 0 0 16px #00FF6A;
}

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

/* ──────────────────────────────────────────────
   Project List：黄色ネオンボタンに切り替え
────────────────────────────────────────────── */
.project-list .neon-btn {
    border-color: #FFD500;
    color: #FFD500;
}

.project-list .neon-btn:hover {
    background: rgba(255, 213, 0, 0.1);
    box-shadow: 0 0 8px #FFD500, 0 0 16px #FFD500;
}

/* 矢印も黄色に */
.project-list .neon-btn .arrow {
    color: #FFD500;
}

/* ──────────────────────────────────────────────
   About セクションの背景を透明に
────────────────────────────────────────────── */
#about {
    background: transparent; /* 背景を透明にしてVanta.jsを見せる */
}

/* ──────────────────────────────────────────────
   About セクション・レイアウト（グラスモーフィズム版）
────────────────────────────────────────────── */
.about-container {
    background: rgba(30, 30, 30, 0.2); /* 少し暗めのガラス色 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem; /* 角を丸くする */
    padding: 3rem; /* 内側の余白 */

    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;

    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    box-shadow: 0 0 15px rgba(199, 21, 133, 0.4), 0 0 30px rgba(148, 0, 211, 0.3);
}

/* マウスカーソルがあるデバイスでのみ、ホバー演出を有効にする */
@media (hover: hover) {
    .about-container:hover {
        transform: scale(1.1) translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),      /* 浮かび上がる影 */
        0 0 20px rgba(199, 21, 133, 0.5),    /* 紫の光（少し強く） */
        0 0 40px rgba(148, 0, 211, 0.4);
    }
}

@media (max-width: 800px) {
    .about-container {
        flex-direction: column;
        padding: 2rem; /* スマホでは余白を少し狭く */
    }

    .about-image {
        margin-top: 0; /* マージンをリセット */
        order: -1; /* スマホではロゴを上に */
    }
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-width: 200px; /* ロゴのサイズを少し調整 */
}

/* ──────────────────────────────────────────────
   SNSアイコン（元のデザイン）
────────────────────────────────────────────── */
.social-icons { /* ← クラス名を元に戻したHTMLに対応 */
    margin-top: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform .3s, box-shadow .3s;
    margin-right: 1rem; /* アイコン間の余白 */
}
.social-icon:last-child {
    margin-right: 0; /* 最後のアイコンの余白をなくす */
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05); /* 少し浮き上がるような動きに変更 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ここに色のついた枠（背景）のスタイルがあります */
.x-icon {
    background: linear-gradient(135deg, rgba(0, 64, 126, 0.4), rgba(0, 124, 255, 0.4));
    border-color: rgba(0, 124, 255, 0.6);
}

.instagram-icon {
    background: linear-gradient(135deg, rgba(138, 47, 187, 0.4), rgba(255, 47, 232, 0.4));
    border-color: rgba(255, 47, 232, 0.6);
}

.note-icon {
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.4), rgba(128, 255, 0, 0.4));
    border-color: rgba(128, 255, 0, 0.6);
}

.social-icon img {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    .social-icons {
        justify-content: center;
        display: flex;
    }
    .social-icon {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .social-icon img {
        width: 30px;
        height: 30px;
    }
}

/* ──────────────────────────────────────────────
   フェードイン用ユーティリティ
────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

/* ──────────────────────────────────────────────
   フッター：透過黒背景
────────────────────────────────────────────── */
footer {
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    padding: 20px 0;
    text-align: center;
    z-index: 1;
    position: relative; /* ← この一行を追加！ */
}

.footer-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .875rem;
}

/* ──────────────────────────────────────────────
   Goo フィルター付きカスタムカーソル
────────────────────────────────────────────── */
#cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    filter: url("#goo");
}

.Cursor span {
    position: absolute;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    transform-origin: center center;
    transform: translate(-50%, -50%);
}


/* ──────────────────────────────────────────────
   モバイル専用：ヘッダー & ハンバーガーメニュー
────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* 変更点：ヒーローセクションを画面全体に */
    #hero {
        height: 100vh;
        box-sizing: border-box; /* paddingを含めて高さを計算 */
    }

    /* 変更点：bodyのpadding-topを無くす */
    body {
        padding-top: 0;
    }

    /* About画像小さく */
    .about-image img {
        width: 100%;
        max-width: 180px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* ヘッダーの高さを60pxに固定 */
    header {
        height: 60px;
        padding: 0 20px;
    }

    header .logo img {
        height: 20px;
    }

    /* ハンバーガー */
    #nav-toggle {
        order: 2;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        pointer-events: auto;
        cursor: pointer;
        z-index: 1002;
    }

    #nav-toggle span {
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: transform .4s ease, opacity .4s ease;
    }

    #nav-toggle.open span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    #nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    #nav-toggle.open span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* メニュー全画面 */
    #nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        pointer-events: none;
        clip-path: circle(0% at 90% 10%);
        transition: clip-path .6s ease-out;
        backdrop-filter: blur(20px) brightness(0.6);
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    #nav-menu.open {
        pointer-events: auto;
        clip-path: circle(150% at 90% 10%);
    }

    /* ネオンリンク */
    #nav-menu ul {
        list-style: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #nav-menu ul li {
        margin: 1rem 0;
    }

    #nav-menu ul li a {
        font-size: 1.5rem;
        color: #fff;
        --neon: #0ff;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 12px var(--neon);
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .3s ease, transform .3s ease;
    }

    #nav-menu.open ul li:nth-child(1) a {
        transition-delay: .1s;
        opacity: 1;
        transform: none;
    }

    #nav-menu.open ul li:nth-child(2) a {
        transition-delay: .2s;
        opacity: 1;
        transform: none;
    }

    #nav-menu.open ul li:nth-child(3) a {
        transition-delay: .3s;
        opacity: 1;
        transform: none;
    }

    #nav-menu.open ul li:nth-child(4) a {
        transition-delay: .4s;
        opacity: 1;
        transform: none;
    }

    #nav-menu.open ul li:nth-child(5) a {
        transition-delay: .5s;
        opacity: 1;
        transform: none;
    }
}

/* ──────────────────────────────────────────────
   スマホだけセクションタイトルを小さく
────────────────────────────────────────────── */
@media (max-width: 600px) {
    .section-title {
        font-size: 2rem; /* 元の 3rem より小さく */
        margin-bottom: 2rem;
    }
}

/* スマホ（600px 以下）ではカスタムカーソルを非表示 */
@media (max-width: 600px) {
    #cursor {
        display: none !important;
    }

    /* 全ページのスクロールアイコンを上に移動 */
    .scroll_down {
        bottom: 80px;
    }
}
