@charset "UTF-8";

/* ==========================================================================
   ページ：SKILLS ME (`skills.html`) 専用のスタイル
   ========================================================================== */

/* ----------------------------------
   1. 上部：緑のチェック（市松模様）背景エリア
------------------------------------- */
.skills-top-container {
    background-color: #8cd993; /* カンプのベースのライトグリーン */
    /* 💡 グラデーションを重ねて可愛い市松模様を再現 */
    background-image: linear-gradient(45deg, #a4e5aa 25%, transparent 25%, transparent 75%, #a4e5aa 75%, #a4e5aa),
                      linear-gradient(45deg, #a4e5aa 25%, transparent 25%, transparent 75%, #a4e5aa 75%, #a4e5aa);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    padding: 100px 20px 40px 20px;
    text-align: center;
    width: 100%;
}

/* 「# 03」のナンバリングテキスト */
.skills-num {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 3.5rem;
    color: #1472fc; /* ポップなブルー */
    -webkit-text-stroke: 2px #000000;
    text-shadow: 3px 3px 0px #000000;
    text-align: left;
    margin-bottom: 5px;
    padding-left: 10px;
}

/* 「SKILLS」大見出し */
.skills-title {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 4.5rem;
    color: #1472fc;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    
    /* 💡 1文字ずつを横並びにして中央に寄せる設定 */
    display: flex;
    justify-content: center;
}

/* ─── 【新規追加】1文字ずつの共通アニメーション設定 ─── */
.skills-title span {
    display: inline-block;
    /* もともとのカワイイフチ取りと影をここに継承 */
    -webkit-text-stroke: 3px #000000;
    text-shadow: 4px 4px 0px #000000;
    
    /* 1.4秒かけてループするジャンプアニメーション */
    animation: popBounce 1.4s infinite ease-in-out;
}

/* ─── 【新規追加】順番に連動して動くための時間差（ディレイ） ─── */
.skills-title span:nth-child(1) { animation-delay: 0.0s; }
.skills-title span:nth-child(2) { animation-delay: 0.1s; }
.skills-title span:nth-child(3) { animation-delay: 0.2s; }
.skills-title span:nth-child(4) { animation-delay: 0.3s; }
.skills-title span:nth-child(5) { animation-delay: 0.4s; }
.skills-title span:nth-child(6) { animation-delay: 0.5s; }

/* ─── 【新規追加】ぽよんと跳ねる動きの定義 ─── */
@keyframes popBounce {
    0%, 100% {
        transform: translateY(0) scale(1); /* 通常位置 */
    }
    30% {
        transform: translateY(-24px) scaleX(0.95) scaleY(1.1); /* 上に高くジャンプ、少し縦長に伸びる */
    }
    50% {
        transform: translateY(0) scaleX(1.1) scaleY(0.85); /* 着地した瞬間に少し横に潰れる（ぽよん感） */
    }
    65% {
        transform: translateY(-4px) scale(1); /* 反動でちょっとだけ浮く */
    }
    80% {
        transform: translateY(0) scale(1); /* 完全に静止 */
    }
}

/* 上部の白い丸角ボックス（文字の長さに合わせて自動でサイズフィットするように最適化） */
.skills-intro-card {
    background-color: #ffffff;
    border: 4px solid #000000;
    border-radius: 40px;
    height: auto; 
    padding: 25px 35px; 
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.15);
    width: 100%;
    box-sizing: border-box; /* 枠線や余白を含めてサイズ計算するお守り */
}

/* 白いボックスの中の「pタグ（文字）」自体のデザイン */
.skills-intro-card p {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.1rem;     /* パソコンで見たときの文字サイズ */
    font-weight: 700;      /* ポップで可愛い太字 */
    color: #222222;        /* 読みやすい濃いグレー */
    line-height: 1.8;      /* 行の間隔をあけて読みやすく */
    margin: 0;             /* 無駄な隙間をゼロにする */
    text-align: center;    /* 文字を真ん中寄せ */
}

/* 📱 スマホ（画面幅480px以下）のときのサイズ調整ルール */
@media (max-width: 480px) {
    .skills-intro-card {
        border-radius: 25px; /* スマホ画面に合わせて角丸をすこし小さく */
        border: 3px solid #000000;
        padding: 15px 20px;  /* スマホ用のすっきりした余白 */
    }
    
    .skills-intro-card p {
        font-size: 0.95rem;  /* スマホ画面で文字がはみ出さないサイズ */
        line-height: 1.6;
    }
}

/* ----------------------------------
   2. 真ん中：ギザギザななみなみ線
------------------------------------- */
.skills-zigzag-divider {
    width: 100%;
    height: 24px;
    /* ABOUTとお揃いの赤・水色・オレンジのポップなウェーブ */
    background: linear-gradient(135deg, #fc3c3c 25%, transparent 25%) -12px 0,
                linear-gradient(225deg, #fc3c3c 25%, transparent 25%) -12px 0,
                linear-gradient(135deg, #4da6ff 50%, transparent 50%) -12px 0,
                linear-gradient(225deg, #4da6ff 50%, transparent 50%) -12px 0,
                linear-gradient(135deg, #fab400 75%, transparent 75%) -12px 0,
                linear-gradient(225deg, #fab400 75%, transparent 75%) -12px 0;
    background-size: 24px 24px;
    background-color: #fab400;
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
}

/* ----------------------------------
   3. 下部：鮮やかなグリーン背景とスキルカード
------------------------------------- */
.skills-bottom-container {
    background-color: #3cb85c; /* カンプの鮮やかなグリーン */
    padding: 60px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* グレーの丸角スキルボックス */
.skill-category-card {
    background-color: #cccccc; /* カンプのライトグレー */
    border: 4px solid #000000;
    border-radius: 50px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* カード内の白文字タイトル（DESIGN / AI SKILLS） */
.category-title {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 3.5rem;
    color: #ffffff;
    -webkit-text-stroke: 2.5px #000000;
    text-shadow: 4px 4px 0px #000000;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* スキルアイコンを綺麗に配置するグリッド（カンプ同様の2列構成：DESIGNは現在のまま！） */
.skill-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 600px;
}

/* 各アイコン画像を内包するアイテム（DESIGNカード用のデフォルト：現在のまま！） */
.icon-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-item img {
    max-width: 30%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   💥 ここから下がAI SKILLS（右側に文字を入れる横並び）専用の修正・追加コード
   ========================================================================== */

/* AI SKILLS用のグリッド（説明文が入るため、横幅を550pxに広げて左に寄せます） */
.skill-icons-grid.ai-grid {
    grid-template-columns: 1fr; /* 縦に1列でアイテムを並べる設定 */
    width: 100%;
    max-width: 550px;           /* 🌟 300pxから550pxに拡張 */
    margin-left: 15px;          /* 白いカードの内側で少し左に寄せる */
    margin-right: auto;
    gap: 30px;                  /* 上下のアイテム同士のすきま */
}

/* 🌟 AI SKILLSの中のアイテムだけを「横並び・左揃え」に強制上書き */
.skill-icons-grid.ai-grid .icon-item {
    display: flex;
    flex-direction: row;        /* 🌟 画像と文字を横並びにする */
    justify-content: flex-start;
    align-items: flex-start;    /* 画像と文字の上のラインを揃える */
    gap: 20px;                  /* 画像と右側テキストの間のすきま */
}

/* 🌟 AI SKILLSの中の画像だけサイズと余白を最適化 */
.skill-icons-grid.ai-grid .icon-item img {
    max-width: 65px;            /* 🌟 アイコンの大きさを横並びに丁度いいサイズに固定 */
    width: 65px;
    margin: 0;                  /* 中央寄せを解除して完全に左に寄せる */
}

/* 🌟 右側のテキスト（名前＋説明文）を綺麗に縦に並べるグループの箱 */
.icon-text-group {
    display: flex;
    flex-direction: column;     /* 上に名前、下に説明文 */
    align-items: flex-start;    /* 左揃え */
    flex: 1;                    /* 残りの横幅をいっぱいに使う */
}

/* アプリ名テキスト（MOMO、DART等の指定に合わせたポップな太文字） */
.icon-text {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 18px;            /* 横並びで見栄えが良いように少し大きめ */
    font-weight: 900;   
    color: #000000;    
    margin: 0;
    text-align: left;
    letter-spacing: 0.5px;
}

/* AIコンサル用・箇条書き風の説明文スタイル */
.icon-spec {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;       
    font-weight: 700;       
    color: #1a1a1a;        
    line-height: 1.6;      
    margin-top: 6px;            /* アプリ名とのすきま */
    margin-bottom: 0;
    text-align: left;      
    width: 100%;           
}

/* ----------------------------------
   4. 各カードの下にある赤いアクション 
------------------------------------- */

/* ==========================================================================
   ✨ 2026-10 スマホ調整
   ========================================================================== */
@media (max-width: 480px) {
    .skills-top-container { padding: 40px 16px 30px; }
    .skills-bottom-container { padding-left: 16px; padding-right: 16px; }
    .skill-category-card { padding: 28px 16px; border-radius: 30px; }
    .category-title { font-size: 2.4rem; margin-bottom: 20px; }
    .skill-icons-grid { gap: 20px 12px; }
    .skill-icons-grid.ai-grid { margin-left: 0; }
    .skill-icons-grid.ai-grid .icon-item { gap: 14px; }
    .skill-icons-grid.ai-grid .icon-item img { width: 48px; max-width: 48px; }
    .icon-text { font-size: 16px; }
}

/* ==========================================
   DESIGN WORKS / AI WORKS ボタン（未スタイルで素のリンクになっていたのを修正）
========================================== */
.skills-action-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 14px 44px;
    background-color: #1472fc;
    color: #ffffff;
    font-family: 'Holtwood One SC', 'M PLUS Rounded 1c', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 4px solid #000000;
    border-radius: 50px;
    box-shadow: 4px 4px 0 #000000;
    transition: transform 0.15s, box-shadow 0.15s;
}
.skills-action-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000000; }
.skills-action-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000000; }


/* ページ外側（左右の余白）の背景色 */
body { background-color: #3cb85c; }
