@charset "UTF-8";

/* --- 全体共通設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================
   【全ページ共通】最上部固定ナビゲーションの見た目
   ========================================== */
   .global-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background-color: #FFFFFF; border-bottom: 3px solid #000000;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.1); z-index: 9999;
}
.header-nav {
    max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; box-sizing: border-box;
}
.header-logo a { font-family: 'Holtwood One SC', sans-serif; font-weight: bold; font-size: 1.1rem; color: #000000; text-decoration: none; }
.header-menu { display: flex; list-style: none; gap: 15px; padding: 0; margin: 0; }
.nav-item { text-decoration: none; font-size: 14px; font-weight: 900; color: #000000; padding: 6px 14px; border: 2px solid transparent; border-radius: 20px; transition: all 0.1s ease; }
.nav-home:hover    { background-color: #FFB3BA; border-color: #000; }
.nav-about:hover   { background-color: #BAFFC9; border-color: #000; }
.nav-works:hover   { background-color: #BAE1FF; border-color: #000; }
.nav-skills:hover  { background-color: #FFFFBA; border-color: #000; }



body {
    margin: 0;
    padding: 0;
    background-color: #1c1c1e;
    color: #000000;
    font-family: 'Holtwood One SC', 'M PLUS Rounded 1c', sans-serif;    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* ==========================================
   ローディング画面（かわいい版）
   ========================================== */
body.is-loading { overflow: hidden; }

#loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #ffe9f1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), border-radius 0.9s ease;
}
/* 水玉もよう（ゆっくり流れる） */
.loader-dots {
    position: absolute;
    inset: -60px;
    background-image:
        radial-gradient(#ffc2d6 22%, transparent 23%),
        radial-gradient(#bfe0ff 22%, transparent 23%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: dotsMove 6s linear infinite;
    opacity: 0.8;
}
@keyframes dotsMove { to { transform: translate(60px, 60px); } }

/* 読み込み完了：ぷるんと縮んで上へ */
#loader.loaded {
    transform: translateY(-110%);
    border-radius: 0 0 50% 50%;
}

.loader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
}

/* キャラクターたち */
.loader-chars {
    display: flex;
    align-items: flex-end;
    gap: clamp(10px, 3vw, 22px);
    height: clamp(70px, 18vw, 110px);
}
.lc {
    width: clamp(46px, 13vw, 80px);
    height: auto;
    animation: charHop 1.4s cubic-bezier(.3,.6,.4,1) infinite;
    transform-origin: center bottom;
}
.lc-1 { animation-delay: 0s; }
.lc-2 { animation-delay: .15s; }
.lc-3 { animation-delay: .3s; width: clamp(56px, 15vw, 92px); }
.lc-4 { animation-delay: .45s; }
@keyframes charHop {
    0%, 55%, 100% { transform: translateY(0) scale(1.08, 0.92); }
    15%           { transform: translateY(-34px) scale(0.95, 1.06) rotate(-6deg); }
    30%           { transform: translateY(-40px) scale(1, 1) rotate(6deg); }
    45%           { transform: translateY(0) scale(1.12, 0.88); }
}
/* 足元の影 */
.loader-shadow {
    display: flex;
    gap: clamp(10px, 3vw, 22px);
    margin-top: -10px;
}
.loader-shadow i {
    display: block;
    width: clamp(46px, 13vw, 80px);
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    animation: shadowPulse 1.4s ease-in-out infinite;
}
.loader-shadow i:nth-child(2) { animation-delay: .15s; }
.loader-shadow i:nth-child(3) { animation-delay: .3s; width: clamp(56px, 15vw, 92px); }
.loader-shadow i:nth-child(4) { animation-delay: .45s; }
@keyframes shadowPulse {
    0%, 55%, 100% { transform: scaleX(1); opacity: 1; }
    25%           { transform: scaleX(0.55); opacity: 0.4; }
}

/* LOADING 文字（1文字ずつカラフルに） */
.loader-text {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: clamp(2rem, 9vw, 3.6rem);
    -webkit-text-stroke: 2px #000000;
    text-shadow: 3px 3px 0px #000000;
    display: flex;
    line-height: 1.2;
}
.loader-text span {
    display: inline-block;
    animation: loadBounce 1.4s infinite ease-in-out;
}
.loader-text span:nth-child(1) { color: #ff6fa5; animation-delay: 0.0s; }
.loader-text span:nth-child(2) { color: #fcd400; animation-delay: 0.1s; }
.loader-text span:nth-child(3) { color: #1472fc; animation-delay: 0.2s; }
.loader-text span:nth-child(4) { color: #f13346; animation-delay: 0.3s; }
.loader-text span:nth-child(5) { color: #3ccf7a; animation-delay: 0.4s; }
.loader-text span:nth-child(6) { color: #fab400; animation-delay: 0.5s; }
.loader-text span:nth-child(7) { color: #b77bff; animation-delay: 0.6s; }
@keyframes loadBounce {
    0%, 60%, 100% { transform: translateY(0) rotate(0); }
    30%           { transform: translateY(-14px) rotate(-8deg); }
}

/* お魚が泳ぐプログレスバー */
.loader-bar {
    position: relative;
    width: min(280px, 72vw);
    height: 20px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 20px;
    box-shadow: 3px 3px 0 #000000;
    margin-top: 6px;
}
.loader-bar-fill {
    position: absolute;
    inset: 2px auto 2px 2px;
    width: 0;
    border-radius: 20px;
    background: repeating-linear-gradient(45deg, #ff8fb8 0 10px, #ffb3cf 10px 20px);
    animation: barFill var(--load-time, 3200ms) cubic-bezier(.4,.1,.3,1) forwards;
}
.loader-fish {
    position: absolute;
    top: 50%;
    left: 0;
    width: 46px;
    transform: translate(-50%, -60%) scaleX(-1); /* 右向きに泳ぐ */
    animation: fishGo var(--load-time, 3200ms) cubic-bezier(.4,.1,.3,1) forwards,
               fishWiggle .5s ease-in-out infinite alternate;
}
@keyframes barFill { to { width: calc(100% - 4px); } }
@keyframes fishGo  { to { left: 100%; } }
@keyframes fishWiggle {
    from { margin-top: -3px; }
    to   { margin-top: 3px; }
}
.loader-sub {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: #000000;
    letter-spacing: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
    .lc, .loader-text span, .loader-dots, .loader-shadow i { animation: none; }
}

/* 全体を包むコンテナ（PCでは横幅を広く、スマホでは細長く自動切り替え） */
.portfolio-container {
    width: 100%;
    max-width: 1024px; /* 💡 PCでの最大横幅 */
    background-color: #1472fc; 
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding-bottom: 20px;
    transition: max-width 0.3s ease;
}

/* ==========================================
   HERO HEADER
   水面背景＋画像を手前に表示
========================================== */

.hero-header {
    width: 100%;
    position: relative;
    overflow: hidden;

    /* 水面画像を一番後ろに配置 */
    background-image:
        radial-gradient(
            ellipse at 50% -10%,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(255, 255, 255, 0.12) 25%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 10% 80%,
            rgba(0, 220, 255, 0.35) 0%,
            transparent 38%
        ),
        radial-gradient(
            ellipse at 90% 60%,
            rgba(0, 60, 190, 0.35) 0%,
            transparent 45%
        );

    background-size: auto, auto, auto;

    background-position: center;

    background-color: #087bea;

    /* 水面の奥行き */
    box-shadow:
        inset 0 0 50px rgba(0, 40, 120, 0.45),
        inset 0 0 120px rgba(0, 150, 255, 0.18);

    padding: 180px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 280px;
}

/* ==========================================================
   8. HEROにキラキラ粒
========================================================== */

.hero-header {
    isolation: isolate;
}

.hero-header .logo-title-container {
    position: relative;
}


/* HEROの小さな光 */

.logo-title-container::before,
.logo-title-container::after {
    content: "✦";

    position: absolute;

    color: #ffffff;

    font-size: 28px;

    opacity: 0;

    pointer-events: none;

    animation: sparkleFloat 3s ease-in-out infinite;
}

.logo-title-container::before {
    left: -50px;
    top: 20px;
    animation-delay: 0.5s;
}

.logo-title-container::after {
    right: -50px;
    bottom: 20px;
    animation-delay: 1.5s;
}


@keyframes sparkleFloat {

    0% {
        opacity: 0;
        transform:
            scale(0.5)
            rotate(0deg);
    }

    30% {
        opacity: 1;
    }

    60% {
        opacity: 0.8;
        transform:
            scale(1.2)
            rotate(90deg);
    }

    100% {
        opacity: 0;
        transform:
            scale(0.5)
            rotate(180deg);
    }
}

/* ==========================================
   水面の波紋
   ※画像より後ろに表示
========================================== */

.hero-header::before {
    content: "";
    position: absolute;

    z-index: 0;

    width: 170%;
    height: 170%;

    left: -35%;
    top: -35%;

    background:
        repeating-radial-gradient(
            ellipse at 40% 45%,
            transparent 0px,
            transparent 15px,
            rgba(255, 255, 255, 0.10) 17px,
            rgba(255, 255, 255, 0.035) 20px,
            transparent 24px,
            transparent 38px
        );

    opacity: 0.65;

    transform: rotate(-7deg) scale(1);

    pointer-events: none;

    animation: waterRipple 12s ease-in-out infinite alternate;
}


/* ==========================================
   水面のキラキラした光
   ※画像より後ろに表示
========================================== */

.hero-header::after {
    content: "";
    position: absolute;

    z-index: 0;

    width: 180%;
    height: 45%;

    left: -40%;
    top: 15%;

    background:
        linear-gradient(
            110deg,
            transparent 15%,
            rgba(255, 255, 255, 0.02) 28%,
            rgba(255, 255, 255, 0.18) 38%,
            rgba(255, 255, 255, 0.28) 42%,
            rgba(255, 255, 255, 0.06) 48%,
            transparent 60%
        );

    filter: blur(10px);

    opacity: 0.7;

    transform: rotate(-8deg);

    pointer-events: none;

    animation: waterShine 8s ease-in-out infinite alternate;
}


/* ==========================================
   キャラクター画像・ロゴを一番手前へ
========================================== */

.char-flower,
.char-eyes,
.char-triangle,
.char-peach,
.logo-title-container {
    z-index: 5;
}


/* ==========================================
   水面の波紋アニメーション
========================================== */

@keyframes waterRipple {

    0% {
        transform:
            rotate(-7deg)
            scale(1)
            translate(0, 0);
    }

    50% {
        transform:
            rotate(-5deg)
            scale(1.06)
            translate(15px, -10px);
    }

    100% {
        transform:
            rotate(-9deg)
            scale(1.03)
            translate(-15px, 12px);
    }
}


/* ==========================================
   水面の光がゆっくり移動
========================================== */

@keyframes waterShine {

    0% {
        transform:
            translateX(-15%)
            rotate(-8deg);

        opacity: 0.35;
    }

    50% {
        opacity: 0.75;
    }

    100% {
        transform:
            translateX(20%)
            rotate(-8deg);

        opacity: 0.45;
    }
}

/* ==========================================
   HERO イラスト位置調整
========================================== */

/* 🌸 お花 */
.char-flower {
    position: absolute;
    top: 40px;
    left: 25px;
    width: 180px;
}

/* 👀 赤くん */
.char-eyes {
    position: absolute;
    top: 25px;
    right: 10px;
    width: 270px;
}

/* 🔺 MOMO */
.char-triangle {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 240px;
}

/* ☁️ MOHUMOHU */
.char-peach {
    position: absolute;
    bottom: 45px;
    right: 40px;
    width: 170px;
}

/* ==========================================================================
   キャラクター全員がその場でずっとループで動き続ける設定
   ========================================================================== */

/* 1. お花（FLOWER）：風に吹かれているように、頭を優しく「ゆらゆら」揺らす */
.char-flower, .asset-flower {
    /* 3.5秒かけて、なめらかに、無限に、行って戻る */
    animation: loopFlower 3.5s ease-in-out infinite alternate;
    transform-origin: center bottom; /* 根元を軸にして揺らす */
    display: inline-block;
}

@keyframes loopFlower {
    0% {
        transform: rotate(-6deg); /* 左にちょっと傾く */
    }
    100% {
        transform: rotate(6deg);  /* 右にちょっと傾く */
    }
}


/* 2. 赤くん（AKAKUN）：深呼吸しているように、優しく「のびちぢみ」する */
.char-eyes, .asset-akakun {
    /* 2.8秒かけて、無限に、行って戻る */
    animation: loopAkakun 2.8s ease-in-out infinite alternate;
    transform-origin: center bottom; /* 地面を軸にして伸び縮み */
    display: inline-block;
}

@keyframes loopAkakun {
    0% {
        transform: scale(1, 1);       /* 通常サイズ */
    }
    100% {
        transform: scale(1.05, 0.95); /* 横にちょっと広がって、縦に縮む（もちもち感） */
    }
}


/* 3. モモちゃん（MOMO）：ハッピーに「るんるん」と弾むように少し斜めにジャンプ */
.char-triangle, .asset-momo {
    /* 2.2秒かけて、ちょっと元気なリズムでループ */
    animation: loopMomo 2.2s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes loopMomo {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-8px) rotate(4deg); /* 上に浮きながら、少し右に傾く */
    }
}


/* 4. モフモフ（MOHUMOHU）：（今までの設定のまま、一番まったり浮き沈み） */
.char-peach, .asset-mohumohu {
    animation: fluffyFloat 3s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes fluffyFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-12px); /* まったり上下に浮き沈み */
    }
}

/* MOMO'S PORTFOLIO タイトル */
.logo-title-container {
    text-align: center;
    margin: 45px 0 35px;
    z-index: 10;
}
.logo-main {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 6.5rem; /* PC向けに少しアップ */
    color: #fcd400; 
    -webkit-text-stroke: 3px #000000; 
    text-shadow: 4px 4px 0px #000000;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* ポートフォリオ */
.logo-sub {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 3.5rem;
    color: #ffffff;
    -webkit-text-stroke: 2px #000000; 
    text-shadow: 3px 3px 0px #000000;
    margin-top: -2px;
    letter-spacing: 1px;
}
.logo-title-container {
    /* 1.2秒かけて、オリジナルなバウンドの動きで出現させます */
    animation: jellyBounce 1.2s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
    transform-origin: center bottom; /* 下側を軸にして跳ねるようにする */
}

@keyframes jellyBounce {
    0% {
        transform: translateY(50px) scale(0.3, 0.3); /* 最初は小さく下にある */
    }
    50% {
        transform: translateY(-10px) scale(1.2, 0.9); /* 行き過ぎて横に潰れる */
    }
    70% {
        transform: translateY(5px) scale(0.9, 1.1);   /* 反動で縦に伸びる */
    }
    100% {
        transform: translateY(0) scale(1, 1);         /* ぷるんと元に戻る */
    }
}

/* ----------------------------------
   2. NAVIGATION BAR (4色＆魚エリア)
------------------------------------- */
.nav-bar-container {
    width: 100%;
    z-index: 20;
}
.nav-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
}
.nav-tab-item {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 0.9rem; /* PC向けに少し調整 */
    padding: 15px 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}
.tab-about   { background-color: #fab400; color: #ffffff; }
.tab-works   { background-color: #f13346; }
.tab-skills  { background-color: #ffca00; color: #ffffff; }
.tab-contact { background-color: #e52d3d; }

/* 魚が泳ぐ白い川 */
.nav-fish-stream {
    background-color: #ffffff;
    border-bottom: 4px solid #000000;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fish-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 45px;
}
.fish-box.active {
    border: 3px solid #ffffff; 
    border-radius: 4px;
}
.fish-icon { 
    width: 120px; 
    height: auto; 
}
/* 1. 魚たちが泳ぐ通り道（親要素）の設定 */
.nav-fish-stream {
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    border-bottom: 2px solid #ddd;
    position: relative; /* 魚がはみ出しても大丈夫にするベース */
    overflow: hidden;   /* 画面の外に出た魚を非表示にする */
    height: 40px;       /* 魚が泳ぐエリアの高さを固定（数値は適宜調整してください） */
}

/* 2. 魚の箱自体をアニメーションで動かす設定 */
.fish-box {
    position: absolute;
    right: -50px; /* スタート位置：画面の右側の外に隠しておく */
    top: 50%;
    transform: translateY(-50%); /* 上下の中央寄せ */
    
    /* ↓ アニメーションの設定（5秒かけて、等速で、無限にループ） */
    animation: swimLeft 6s linear infinite;
}

/* 💡 複数いる魚のタイミングをずらして泳がせる設定 */
.fish-box:nth-child(1) {
    animation-delay: 0s; /* 1匹目はすぐスタート */
}
.fish-box:nth-child(2) {
    animation-delay: 2s; /* 2匹目は2秒遅れてスタート */
}
.fish-box:nth-child(3) {
    animation-delay: 4s; /* 3匹目は4秒遅れてスタート */
}

/* 3. アニメーションの具体的な動き（右から左へ） */
@keyframes swimLeft {
    0% {
        left: 100%; /* 画面の右端（外側）からスタート */
    }
    100% {
        left: -50px; /* 画面の左端（外側）まで泳ぎきる */
    }
}

/* 魚のアイコン自体のサイズ */
.fish-icon {
    width: 80px;
    height: auto;
    display: block;
}


/* ----------------------------------
   3. MENU CARDS AREA (メイン配置)
------------------------------------- */
.menu-cards-list {
    padding: 40px 30px;
    display: grid;
    /* 💡 PCではカードを横2列に自動で並べる（重要設定） */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}

/* 各カードの共通スタイル */
.menu-card {
    width: 100%;
    height: 200px; /* PC向けに少し高さをアップ */
    border: 4px solid #000000;
    border-radius: 35px;
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
    position: relative;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* テキストをカード下部に配置 */
    text-decoration: none;
    overflow: hidden;
}


/* ─── 左側のキャラクター画像 ─── */
.card-img {
    position: absolute;
    top: 20px;       /* 上からの位置 */
    left: 30px;      /* 左からの位置 */
    height: 75px;    /* キャラクターの表示サイズ（縦幅） */
    width: auto;
    object-fit: contain;
    z-index: 2;      
}

/* ─── 【新規追加】右側の画像 ─── */
.card-img-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;      /* カードの右半分をカバーするサイズ */
    height: 100%;
    object-fit: cover; /* 画像を隙間なく引き伸ばしてフィットさせる */
    z-index: 1;      /* 区切り線や文字の後ろ、カード背景の上に配置 */
}

/* ─── テキスト用グループ ─── */
.card-text-group {
    position: relative;
    z-index: 2;
    margin-top: auto; /* 下部に固定 */
    display: flex;
    flex-direction: column;
}

/* ─── 【修正】まっすぐな縦の区切り線 ─── */
.card-line {
    position: absolute;
    top: 0;
    left: 50%;       /* カードのちょうど真ん中（50%）に配置 */
    width: 2px;      /* 線の太さを少しハッキリ（2px）に */
    height: 100%;
    background-color: #000000; /* 線をしっかり黒（#000000）に変更 */
    transform: none; /* 💡 斜め回転（rotate）を解除してまっすぐに */
    z-index: 3;      /* 右側画像よりも手前に表示 */
} /* 🌟 💥 ココ！この閉じカッコが抜けていたため反映されていませんでした */


/* カードテキスト */
.card-label-sub {
    font-family: 'M PLUS Rounded 1c', sans-serif; 
    font-size: 0.85rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: -2px;
}
.card-label-main {
    font-family: 'Holtwood One SC', sans-serif; 
    font-size: 2.2rem; /* PC向けにサイズアップ */
    color: #000000;
    line-height: 1.1;
}

/* もこもこ雲のMOREボタン */
.btn-cloud-more {
    position: absolute;
    bottom: 20px;
    right: 25px;
    width: 95px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; 
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Holtwood One SC', sans-serif; 
    font-size: 0.8rem;
    font-weight: 900;
    color: #000000;
    padding-top: 4px;
    z-index: 4; /* ボタンが一番手前に来るように数字を大きく */
}
.btn-cloud-placeholder {
    background-color: #ff9ebb;
    border: 3px solid #000000;
    border-radius: 50px;
    box-shadow: 2px 2px 0px #000000;
}

/* ----------------------------------
   4. FOOTER AREA (最下部)
------------------------------------- */
.footer-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    margin-top: 20px;
}
.footer-square-btns {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.square-btn {
    width: 35px;
    height: 35px;
    background-color: #cccccc;
    border: 3px solid #000000;
    border-radius: 10px;
}
.footer-copyright {
    font-family: 'Holtwood One SC', sans-serif; 
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #000000;
    margin-top: 15px;
}


/* ==========================================================================
   📱 画面幅が「スマホサイズ（480px以下）」になったときの自動切り替えルール
   ========================================================================== */
   @media (max-width: 480px) {
    .portfolio-container {
        max-width: 100%; /* 💡 画面幅ぴったりにフィットさせます */
        overflow: hidden; /* 万が一はみ出ても画面自体が横揺れしないように防ぐ */
    }
    
    /* 💡 スマホ用：高さを260pxにして少しゆとりを持たせます */
    .hero-header {
        height: 260px !important;
        padding: 10px;
    }
    
    /* 💡 【見切れ対策】
       サイズを小さくし、left や right の値を少し内側（30px〜40px）に寄せることで、
       スマホ画面のフチからはみ出さないように安全な位置に配置します！ */
    .char-flower { 
        top: 15px !important; 
        left: 30px !important; /* 15pxから30pxへ内側に */
        width: 55px !important; /* 65pxから55pxへ小さく */
    }   
    .char-eyes { 
        top: 25px !important; 
        right: 40px !important; /* 20pxから40pxへ内側に */
        width: 40px !important;  /* 45pxから40pxへ小さく */
    }  
    .char-triangle { 
        bottom: 20px !important; 
        left: 35px !important; /* 20pxから35pxへ内側に */
        width: 50px !important;  /* 60pxから50pxへ小さく */
    } 
    .char-peach { 
        bottom: 15px !important; 
        right: 40px !important; /* 25pxから40pxへ内側に */
        width: 55px !important;  /* 65pxから55pxへ小さく */
    }
    
    /* タイトル文字のサイズもスマホの隙間に合わせて微調整 */
    .logo-title-container {
        margin: 55px 0 45px !important;
    }
    .logo-main { 
        font-size: 2.2rem !important; 
        -webkit-text-stroke: 2.5px #000000 !important; 
    }
    .logo-sub { 
        font-size: 1.0rem !important; 
        -webkit-text-stroke: 1.5px #000000 !important; 
    }
    
    /* ナビゲーションとカードをスマホ用に縦1列へ戻す */
    .nav-tab-item { font-size: 0.65rem; padding: 10px 0; }
    .nav-fish-stream { padding: 10px 20px; }
    
    .menu-cards-list {
        grid-template-columns: 1fr; 
        padding: 25px 15px;
        gap: 20px;
    }
    
    .menu-card { height: 160px; padding: 20px 24px; }
    .card-label-main { font-size: 1.8rem; }
    .btn-cloud-more { bottom: 15px; right: 20px; width: 85px; height: 45px; }
}

/* ----------------------------------
   4. FOOTER AREA (最下部)
------------------------------------- */
/* 💡 フッター全体を1つの大きな黄色い帯にします */
.footer-bar {
    width: 100%;
    background-color: #fab400; /* 💡 カンプに合わせた鮮やかな黄色 */
    border-top: 4px solid #000000; /* 上側の黒い太線 */
    padding: 20px 30px; /* 内側の余白。ここにしか余白は入れません */
    margin-top: 20px; /* 上のカードエリアとの隙間 */
    
    /* 💡 文字と右下のボタンを横一列に綺麗に並べる設定 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* AI SKILLS用のグリッド（左に寄せるためにmarginを調整） */
.skill-icons-grid.ai-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: 15px; /* 🌟 カード内の左端から少しだけ隙間をあけて、全体を左に寄せる */
    margin-right: auto; /* 右側の余白を自動にして左に寄せる */
}

/* 各アイコン画像を内包するアイテム（全体を左揃えにする） */
.icon-item {
    width: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: flex-start; /* 🌟 centerからflex-start（左揃え）に変更 */
    gap: 12px;              
    margin-bottom: 25px;     /* アイコン同士の縦の間隔を少しあける */
}

.icon-item img {
    max-width: 30%; 
    height: auto;
    display: block;
    object-fit: contain;
    /* 🌟 左揃えを確実にするため、中央寄せの魔法（margin: 0 auto）を解除 */
    margin-left: 0; 
}

/* アプリ名テキスト（こちらも左揃えに変更） */
.icon-text {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;    
    font-weight: 900;   
    color: #000000;    
    margin: 0;
    text-align: left; /* 🌟 centerからleft（左揃え）に変更 */
    letter-spacing: 0.5px;
    /* 🌟 アイコンの丸みと文字の始まりの位置をより綺麗に合わせたい場合は、微調整用のパディングを入れると美しくなります */
    padding-left: 2px; 
}


/* 💡 ©MOMO'S PORTFOLIO の文字（黄色い帯の左側に配置） */
.footer-copyright {
    font-family: 'Holtwood One SC', sans-serif; 
    font-size:1rem;
    font-weight: 900;
    color: #000000;
    text-align: center; /* 左寄せに変更 */
}



/* ==========================================================================
   ✨ 2026-10 レスポンシブ調整（PC / タブレット / スマホ）
   ※ この下のルールが上の設定を上書きします
   ========================================================================== */
:root { --header-h: 70px; }

/* 下に出ていた青い余白をなくす */
.portfolio-container { padding-bottom: 0; }
.footer-bar { margin-top: 0; }

/* MOREボタン（画像がなくても可愛いカプセル型に） */
.btn-cloud-more {
    width: auto;
    height: auto;
    padding: 6px 14px;
    background-color: #ff9ebb;
    border: 3px solid #000000;
    border-radius: 50px;
    box-shadow: 2px 2px 0 #000000;
    font-size: 0.75rem;
    line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease;
}
.menu-card { transition: transform .15s ease, box-shadow .15s ease; }
.menu-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0,0,0,0.25); }
.menu-card:hover .btn-cloud-more { transform: translateX(3px); }

/* ナビの現在ページ */
.nav-item { white-space: nowrap; }
.nav-contact:hover { background-color: #FFD6A5; border-color: #000; }

/* ---------- タブレット（481px〜900px） ---------- */
@media (max-width: 900px) and (min-width: 481px) {
    .hero-header { padding: 120px 20px; }
    .char-flower   { width: 120px; top: 25px; left: 20px; }
    .char-eyes     { width: 170px; top: 20px; right: 15px; }
    .char-triangle { width: 150px; bottom: 30px; left: 25px; }
    .char-peach    { width: 115px; bottom: 30px; right: 30px; }
    .logo-main { font-size: 4.2rem; }
    .logo-sub  { font-size: 2.3rem; }
    .menu-cards-list { padding: 30px 20px; gap: 20px; }
    .card-label-main { font-size: 1.8rem; }
}

/* ---------- 共通ヘッダー：スマホでは2段に ---------- */
@media (max-width: 640px) {
    :root { --header-h: 92px; }
    .global-header { height: var(--header-h); }
    .header-nav {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px;
    }
    .header-logo a { font-size: 1rem; line-height: 1.2; }
    .header-menu {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
    }
    .header-menu li { flex: 1; text-align: center; }
    .nav-item {
        display: block;
        font-size: 11px;
        padding: 5px 2px;
        border-radius: 14px;
    }
}

/* ---------- スマホ（480px以下） ---------- */
@media (max-width: 480px) {
    .hero-header { height: auto !important; min-height: 300px; padding: 0 10px; justify-content: center; }
    .char-flower   { top: 18px !important; left: 14px !important; width: 78px !important; }
    .char-eyes     { top: 16px !important; right: 12px !important; width: 96px !important; }
    .char-triangle { bottom: 16px !important; left: 16px !important; width: 82px !important; }
    .char-peach    { bottom: 18px !important; right: 20px !important; width: 68px !important; }
    .logo-title-container { margin: 95px 0 95px !important; }
    .logo-main { font-size: 2.8rem !important; }
    .logo-sub  { font-size: 1.4rem !important; }
    .logo-title-container::before { left: -26px; font-size: 20px; }
    .logo-title-container::after  { right: -26px; font-size: 20px; }

    .nav-tab-item { font-size: 0.68rem; padding: 12px 0; }
    .fish-icon { width: 60px; }

    /* カード：キャラと文字が重ならないように */
    .menu-card { height: 150px; padding: 18px 20px; border-radius: 28px; }
    .card-img { top: 14px; left: 20px; height: 54px; }
    .card-label-sub { font-size: 0.78rem; }
    .card-label-main { font-size: 1.7rem; }
    .btn-cloud-more { bottom: 18px; right: 18px; width: auto; height: auto; font-size: 0.7rem; }

    .footer-bar { padding: 16px 18px; flex-wrap: wrap; gap: 10px; }
    .footer-copyright { font-size: 0.8rem; }
}


/* トップページ外側（左右の余白）の背景色 */
body.page-home { background-color: #407bcd; }
