@charset "utf-8";

/* =========================================
   1. 変数定義 (:root)
========================================= */
:root {
    --bg-yellow: #FFFBEA;
    --accent-yellow: #FDE047;
    --text-brown: #4A3B32;
    --btn-red: #C0392B;
    --bg-pink: #FFF0F5;
    --bg-blue-stripe: #E3F2FD;
    --footer-blue: #283593;
    --main-blue: #403b95; 
}

/* =========================================
   2. 基本設定 (Body, Container, Link)
========================================= */
body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Zen Maru Gothic', sans-serif !important;
    color: var(--text-brown);
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* =========================================
   3. 共通パーツ (Title, Color, Button)
========================================= */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.blue-pop-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    color: var(--main-blue);
    -webkit-text-stroke: 8px white;
    paint-order: stroke fill;
    filter: drop-shadow(3px 5px 2px rgba(64, 59, 149, 0.3));
    margin-bottom: 40px;
    background: none;
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .blue-pop-title {
        font-size: 1.5rem;
}
}

.pink-text { color: #D81B60; }

.btn {
    display: inline-block;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-2px);
}

.btn-red {
    background-color: var(--btn-red);
    padding: 10px 40px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .btn-red  {
        font-size: 1rem;
}
}


.topicon { width: 80px; }

/* =========================================
   4. 背景ラッパー (ストライプ)
========================================= */
.stripe-wrapper {
    background-image: linear-gradient(
        90deg,
        #fdf1bf 0%,
        #fdf1bf 50%,
        #fffbeb 50%,
        #fffbeb 100%
    );
    background-size: 40px 100%; 
    padding-bottom: 40px;
}

/* =========================================
   5. メインビジュアルエリア
========================================= */
.mainV-section {
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    min-height: auto;
}

.mainV-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.mainV-content h1 {
    margin: 0;
    padding: 0;
    line-height: 0;
    width: 100%;
    text-indent: 0;
}

.mainV-content h1 img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* =========================================
   6. ナビゲーションエリア
========================================= */
.nav-section {
    background: none;
    padding: 50px 0 20px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: center;
}

.nav-item {
    background: white;
    border: 3px solid #403b95;
    box-shadow: 4px 4px 0 #2a2666;
    border-radius: 15px;
    color: #403b95;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    margin-top: 30px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    transition: 0.2s;
}

.nav-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    line-height: 54px;
    font-size: 30px;
    border-radius: 50%;
    top: -30px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item:hover {
    background-color: #eff1ff; 
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #2a2666; 
}

.nav-item:hover .nav-icon {
    transform: translateY(-5px) scale(1.1);
}

.nav-item:active {
    transform: translate(4px, 4px);
    box-shadow: none;
    background-color: #e0e4ff;
}

@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .nav-section{
        padding:10px 0 20px;
    }
}

/* =========================================
   公開準備中（coming-soon）用のスタイル
========================================= */

/* 1. カーソルを「禁止（駐車禁止マークのようなやつ）」にする */
.nav-item.coming-soon {
    cursor: not-allowed;
}

/* 2. ホバー時のスタイル上書き */
.nav-item.coming-soon:hover {
    background-color: #dcdcdc;  /* 背景をグレーに */
    border-color: #a5a5a5;      /* 枠線もグレーに */
    box-shadow: 4px 4px 0 #7f7f7f; /* 影もグレーに */
    color: transparent;         /* もともとの文字（ダウンロード等）を透明にして隠す */
    transform: none;            /* 動き（ポコッとなるやつ）を止める */
}

/* 3. ホバー時にアイコン画像を消す */
.nav-item.coming-soon:hover .nav-icon {
    opacity: 0;                 /* 透明にする */
    transform: none;            /* アイコンの動きも止める */
}

/* 4. 「公開準備中」の文字を浮かび上がらせる */
.nav-item.coming-soon:hover::after {
    content: "公開準備中";       /* 表示する文字 */
    color: #444;                /* 文字色（濃いグレー） */
    font-size: 1.1rem;
    font-weight: bold;
    position: absolute;         /* 親要素に対して絶対配置 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完全に中央に配置 */
    width: 100%;                /* 幅を確保 */
    line-height: 1.2;
}


/* =========================================
   7. 「ナスバちゃんって？」エリア
========================================= */
.about-section {
    background: none;
    padding: 60px 0;
}

.about-container {
    background-color: #ffffff;
    border-radius: 30px;
    max-width: 1140px;
    width: 95%;
    margin: 0 auto;
    padding: 50px 80px;  
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.about-section .section-title.pink-text {
    background: none;
    box-shadow: none;
    display: block;
    padding: 0;
    margin-bottom: 40px;
    width: 100%;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff8ca0;
    letter-spacing: 0.1em;
    -webkit-text-stroke: 8px #4A3B32; 
    paint-order: stroke fill; 
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px; 
    text-align: left;
}

.about-image img {
    max-width: 300px; 
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
    /* ▼▼▼ このスタイルをコンテンツにも適用します ▼▼▼ */
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 700;
    color: #333;
    
    display: flex;
    flex-direction: column;
}

.about-text .btn {
    margin-top: 30px;
    display: inline-block;
    min-width: 240px; /* この幅をコンテンツボタンにも適用 */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    align-self: center;
}

/* --- Aboutエリアのレスポンシブ --- */
@media (max-width: 900px) {
    
    /* ▼▼▼ 追加：セクション自体の上下余白を減らす ▼▼▼ */
    .about-section {
        padding: 30px 0; /* PCは60pxなので半分に */
    }

    .about-container {
        padding: 40px 30px;
        width: auto;
        margin: 0 20px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-section .section-title.pink-text{
        font-size:1.5rem;
    }

    .about-text {
        text-align: left;
    }
    
    .about-text .btn {
        display: block;
        margin: 20px auto 0;
    }
}

/* =========================================
   8. 「コンテンツ」エリア (水玉)
========================================= */
.contents-section {
    background-color: #fff5fe;
    background-image: 
        radial-gradient(#ffe9fd 30%, transparent 31%),
        radial-gradient(#ffe9fd 30%, transparent 31%);
    background-position: 0 0, 250px 250px;
    background-size: 500px 500px;
    padding: 60px 0;
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.content-card img {
    margin-bottom: 15px;
    border: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストエリア（スタイルをAboutと統一） */
.card-text {
    /* ▼▼▼ Aboutと同じフォント設定に変更 ▼▼▼ */
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* コンテンツ内のボタン */
.content-card .btn {
    align-self: center;
    margin-top: auto; 
    
    /* ▼▼▼ Aboutボタンと同じ幅に拡大 ▼▼▼ */
    min-width: 240px; 
}

@media (max-width: 768px) {
    .contents-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ボタン用：公開準備中（coming-soon）スタイル
========================================= */

/* 1. 基本設定（カーソル禁止など） */
.btn.coming-soon {
    position: relative; /* 文字を中央に配置するために必要 */
    cursor: not-allowed;
}

/* 2. ホバー時のスタイル（赤色をグレーで上書き） */
.btn.coming-soon:hover {
    background-color: #dcdcdc !important; /* グレー背景（優先度高） */
    color: transparent !important;        /* 元の文字を透明に */
    box-shadow: none !important;          /* 影を消す */
    transform: none !important;           /* 動きを止める */
    border: none;                         /* ボーダーがあれば消す */
}

/* 3. ホバー時に「公開準備中」の文字を出す */
.btn.coming-soon:hover::after {
    content: "公開準備中";
    color: #444;               /* 文字色（濃いグレー） */
    font-size: 0.9rem;         /* ボタンに合わせて少し小さめに */
    font-weight: bold;
    
    /* ど真ん中に配置 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    line-height: 1;
}


/* =========================================
   9. 「お仕事」エリア (青ストライプ)
========================================= */
.work-section {
    background-image: repeating-linear-gradient(
        0deg,
        #cde6ff,
        #cde6ff 40px,
        #dbf3ff 40px,
        #dbf3ff 80px
    );
    padding: 60px 0;
    text-align: center;
}

.work-section .container {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 1140px; 
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.work-desc {
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.8;
    
    /* ▼▼▼ 絵文字用フォントを追加（文字化け対策） ▼▼▼ */
    font-family: 'Zen Maru Gothic', 'Noto Color Emoji', sans-serif !important;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom:50px;
}

.work-card {
    background: #fffef0;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
/* ▼▼▼ 追加・変更箇所 ▼▼▼ */
    display: flex;             /* 中身を整列させる */
    flex-direction: column;    /* 縦並び */
    align-items: center;       /* 中央揃え */
    justify-content: flex-start; 
    
    text-decoration: none;     /* リンクの下線を消す */
    color: inherit;            /* 文字色を親要素から継承 */
    transition: all 0.3s ease; /* アニメーションの設定 */
    height: 100%;              /* 高さを揃える */
    box-sizing: border-box;    /* パディングを含めたサイズ計算 */
    cursor: pointer;           /* カーソルを指の形に */
    position: relative;        /* 動きの基準点 */    
}

/* 画像の設定（既存＋アニメーション用） */
.work-card img {
    border-radius: 10px;
    width: 200px;
    transition: transform 0.3s ease; /* 画像もふわっと動かす */
}

/* タイトルの設定（既存） */
.work-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #4A3B32;
}

.work01_h3{
position: relative;
  padding: 0.6em;
  background: -webkit-repeating-linear-gradient(-45deg, #fff5fe, #fff5fe 4px,#ffe9fd 3px, #ffe9fd 8px);
  background: repeating-linear-gradient(-45deg, #fff5fe, #fff5fe 4px,#ffe9fd 3px, #ffe9fd 8px);
  border-radius: 7px;
}
.work01_h3:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 60px;
  border: 15px solid transparent;
  border-top: 15px solid #ffe9fd;
  width: 0;
  height: 0;
}

.work02_h3{
position: relative;
  padding: 0.6em;
  background: -webkit-repeating-linear-gradient(-45deg, #fff5df, #fff5df 4px,#ffe4b1 3px, #ffe4b1 8px);
  background: repeating-linear-gradient(-45deg, #fff5df, #fff5df 4px,#ffe4b1 3px, #ffe4b1 8px);
  border-radius: 7px;
}
.work02_h3:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 50px;
  border: 15px solid transparent;
  border-top: 15px solid #ffebbe;
  width: 0;
  height: 0;
}

.work03_h3{
position: relative;
  padding: 0.6em;
  background: -webkit-repeating-linear-gradient(-45deg, #dbf3ff, #dbf3ff 4px,#cde6ff 3px, #cde6ff 8px);
  background: repeating-linear-gradient(-45deg, #dbf3ff, #dbf3ff 4px,#cde6ff 3px, #cde6ff 8px);
  border-radius: 7px;
}
.work03_h3:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 90px;
  border: 15px solid transparent;
  border-top: 15px solid #cde6ff;
  width: 0;
  height: 0;
}



/* -----------------------------------------
   ★ホバー時のアクション（ふわっと浮く）
----------------------------------------- */
.work-card:hover {
    /* 1. 上に5px浮き上がる */
    transform: translateY(-5px);
    
    /* 2. 影を濃くして浮遊感を出す */
    box-shadow: 0 10px 20px rgba(74, 59, 50, 0.15);
    
    /* 3. 背景色を少し濃くする（押した感） */
    background-color: #fffbd6; 
}

/* ホバー時に画像も少し拡大してポップにする */
.work-card:hover img {
    transform: scale(1.05) rotate(2deg); /* 拡大 + ほんの少し傾ける */
}


@media (max-width: 768px) {
    .work-section .container {
        padding: 40px 20px;
        width: auto;
        margin: 0 20px;
    }
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   10. フッター・PageTopボタン
========================================= */
.nasvachanFooter {
    margin-top: 0 !important;
}

body#nasvachan #page_top, 
body#nasvachan .pagetop,
body#nasvachan .back-to-top {
    display: none !important;
}

#nasva_pagetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
}

#nasva_pagetop a {
    display: block;
    transition: transform 0.3s ease;
}

#nasva_pagetop a:hover {
    transform: translateY(-10px);
}

#nasva_pagetop img {
    width: 100px;
    height: auto;
}

@media (max-width: 768px) {
    #nasva_pagetop {
        bottom: 10px;
        right: 10px;
    }
    #nasva_pagetop img {
        width: 70px;
    }
}

/* =========================================
   ロケットの「エアー感」エフェクト
========================================= */
#nasva_pagetop a {
    position: relative;
    z-index: 10;
}

/* エフェクトのコンテナ */
.jet-stream {
    position: absolute;
    top: 60%;         /* ボタンの中央より少し下から出す */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;      /* 全体の幅 */
    height: 0;
    display: flex;
    justify-content: space-between;
    z-index: -1;      /* ナスバちゃんより後ろ */
    pointer-events: none;
}

/* 3本のエアーライン共通設定 */
.jet-stream span {
    display: block;
    width: 4px;       /* 線は細くスタイリッシュに */
    height: 0;        /* 最初は長さゼロ */
    border-radius: 4px;
    
    /* ▼▼▼ 重要：エアー感を出すグラデーション ▼▼▼ */
    /* 上は白く、下に行くほど透明になる */
    background: linear-gradient(to bottom, rgba(180, 180, 255, 0.9) 0%, rgba(180, 180, 255,0) 100%);
    
    /* 動きの設定 */
    transition: height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

/* 飛んでいる時（クラスがついた時）の状態 */
#nasva_pagetop.is-flying .jet-stream span {
    opacity: 1;
    height: 150px; /* クリックした瞬間、一気にこの長さまで伸びる */
}

/* --- 微調整：3本の長さを変えてランダム感を出す --- */
.jet-stream span:nth-child(1) {
    margin-top: 10px;      /* 少し下から出る */
    transition-delay: 0s;  /* すぐ出る */
}
.jet-stream span:nth-child(2) {
    width: 6px;            /* 真ん中は少し太く */
    height: 0;
}
/* 真ん中はさらに長く伸びる上書き設定 */
#nasva_pagetop.is-flying .jet-stream span:nth-child(2) {
    height: 220px; 
    transition-duration: 0.3s; /* 真ん中はさらに速く */
}

.jet-stream span:nth-child(3) {
    margin-top: 5px;
    transition-delay: 0.05s; /* ほんの少し遅れて出る */
}
/* =========================================
   11. スマホ用メニュー (黄色いバー & オーバーレイ)
========================================= */
.nasva-mobile-bar {
    display: none;
}

@media (min-width: 769px) {
    .nav-close-btn {
        display: none;
    }
}

/* --- スマホ時の設定 (768px以下) --- */
@media (max-width: 768px) {
    
    /* 1. 黄色いメニューバーの枠組み */
    .nasva-mobile-bar {
        display: block;
        width: 100%;
        background-color: #FBC02D;
        border-bottom: 3px solid #F57F17;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: relative;
        z-index: 9000;
    }

    .nasva-bar-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        height: 60px;
    }

    .nasva-bar-title {
        font-family: 'Zen Maru Gothic', sans-serif;
        color: #5D4037;
        font-weight: 900;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* 2. 黄色いハンバーガーボタン */
    .hamburger-btn-yellow {
        display: block;
        position: relative;
        width: 44px;
        height: 44px;
        background-color: #FFF9C4;
        border: 2px solid #FBC02D;
        border-radius: 8px;
        cursor: pointer;
    }

    .hamburger-btn-yellow span {
        display: block;
        position: absolute;
        left: 7px;
        width: 26px;
        height: 3px;
        background-color: #5D4037;
        border-radius: 3px;
        transition: 0.3s;
    }
    
    .hamburger-btn-yellow span:nth-child(1) { top: 10px; }
    .hamburger-btn-yellow span:nth-child(2) { top: 19px; }
    .hamburger-btn-yellow span:nth-child(3) { top: 28px; }

    /* 開いた時のアニメーション */
    .hamburger-btn-yellow.active span:nth-child(1) {
        top: 19px;
        transform: rotate(45deg);
    }
    .hamburger-btn-yellow.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn-yellow.active span:nth-child(3) {
        top: 19px;
        transform: rotate(-45deg);
    }

/* 3. 開くメニュー本体 (nav-gridのオーバーライド) */
    .nav-grid {
        display: none; /* jQueryで制御 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        
        /* ▼▼▼ 修正：スマホのアドレスバー対策 ▼▼▼ */
        height: 100vh;       /* 古いブラウザ用 */
        height: 100dvh;      /* 新しい単位（アドレスバーを除いた高さ） */
        
        background-color: rgba(255, 251, 234, 1);
        z-index: 9999;
        
        /* ▼▼▼ 修正：下の余白をたっぷり取って見切れを防ぐ ▼▼▼ */
        padding: 30px 20px 120px; 
        
        /* ▼▼▼ 修正：スクロールを滑らかにする設定 ▼▼▼ */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; 
        
        /* ▼▼▼ 追加：パディングを含めたサイズ計算にする ▼▼▼ */
        box-sizing: border-box;
        
        /* 縦並び */
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* メニュー項目 */
    .nav-item {
        width: 90%;      /* 幅を広めにとる */
        margin: 0;
        background: white;
        min-height: 60px; /* 高さを少し低く */
        height: auto;     /* 自動調整 */
        padding: 10px 20px;
        
        /* 横並び（左アイコン・右テキスト）に変更 */
        display: flex;
        flex-direction: row; 
        align-items: center;
        justify-content: flex-start; /* 左寄せ */
        
        /* 文字サイズを小さく */
        font-size: 1.1rem;
    }

    /* ▼▼▼ 追加：スマホメニューでは改行タグ（<br>）を消して1行にする ▼▼▼ */
    .nav-item br {
        display: none;
    }

    /* アイコンの位置調整 */
    .nav-item .nav-icon {
        /* 絶対配置(position:absolute)を解除して、普通の要素として配置 */
        position: static; 
        width: 40px;      /* アイコン枠を小さく */
        height: 40px;
        line-height: 36px;
        font-size: 20px;  /* 中の画像サイズ基準 */
        margin-right: 15px; /* テキストとの間隔 */
        top: 0;
        
        /* 画像サイズ調整 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-item .nav-icon img {
        width: 100%;
        height: auto;
    }

    /* 4. 閉じるボタンのデザイン（控えめ） */
    .nav-close-btn {
        display: block;
        width: 120px;
        min-width: 120px; 
        margin-bottom: 20px;
        padding: 5px 20px;
        text-align: center;
        background-color: #5D4037;
        color: white;
        font-weight: bold;
        border-radius: 50px;
        cursor: pointer;
        font-size: 0.9rem;
        box-shadow: none; 
    }

  .nav-close-btn span {
        font-size: 1.1rem;
        margin-right: 5px;
        vertical-align: middle;
    } 
}
.mgt-15{
margin-top:-15px!important;
}