@charset "UTF-8";

/*
  Skin Name: Chotto (Shinobi-AI Lite)
  Description: Webアプリのような「ちょっと」気の利いたUI。管理画面風のヘッダー、チャットUI、ガラスモーフィズムを取り入れた機能的なスキンです。
  Skin URI: https://example.com/shinobi-ai
  Author: Shinobi Dev
  Version: 1.1.0
  Priority: 999999
*/

/* ==================================================================
   1. 変数定義 (Design Tokens)
   ================================================================== */
:root {
  /* メインカラー：知的なブルーと高貴なパープル */
  --primary-1: #6a11cb;
  --primary-2: #2575fc;
  --primary-gradient: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  
  /* 背景・テキスト */
  --bg-body: #f3f6f9;       /* 目に優しいグレー */
  --bg-surface: #ffffff;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  
  /* UI要素 */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-floating: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius-L: 16px;
  --radius-M: 12px;
  --radius-S: 8px;
  
  /* ガラスモーフィズム */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);
}

/* ==================================================================
   2. ベーススタイル
   ================================================================== */
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a {
  color: var(--primary-2);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-1);
  text-decoration: underline;
}

/* Cocoonレイアウト調整 */
.wrap {
  background-color: transparent !important;
  margin-top: 20px;
}

/* ==================================================================
   3. ヘッダー (コンパクト・ガラス風)
   ================================================================== */
/* ヘッダーコンテナ */
.header-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  top: 0;
  z-index: 999;
  padding: 10px 0;
}

/* ロゴ */
.logo-header .site-name-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.02em;
}

/* キャッチフレーズ (小さく表示) */
.tagline {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-left: 10px;
  display: inline-block;
}

/* グローバルナビ */
#navi .navi-in > ul > li > a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-S);
  transition: all 0.2s;
}
#navi .navi-in > ul > li > a:hover {
  background-color: rgba(37, 117, 252, 0.08);
  color: var(--primary-2);
  text-decoration: none;
}

/* ==================================================================
   4. メインコンテンツ & サイドバー
   ================================================================== */
.content {
  margin-top: 0; /* ヘッダーとの隙間調整 */
}

/* メインカラム */
.main {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* 記事カード (Cocoon標準のリスト表示をカード化) */
.entry-card-wrap {
  margin-top: 0;
}
.entry-card {
  background: var(--bg-surface);
  border-radius: var(--radius-L);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a-wrap:hover .entry-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating);
}

/* カード内レイアウト */
.entry-card-thumb {
  margin: 0;
  width: 30%; /* サムネイル比率 */
  aspect-ratio: 16 / 9;
}
.entry-card-content {
  padding: 20px;
  width: 70%;
}
.entry-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.entry-card-snippet {
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* サイドバー */
#sidebar {
  padding: 0;
}
.widget {
  background: var(--bg-surface);
  border-radius: var(--radius-M);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.03);
}
.widget-title {
  font-size: 1rem;
  color: var(--text-main);
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* ==================================================================
   5. 記事詳細 (Single)
   ================================================================== */
.article {
  background: var(--bg-surface);
  border-radius: var(--radius-L);
  box-shadow: var(--shadow-card);
  padding: 40px;
  margin-bottom: 40px;
}

/* タイトル */
.entry-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* メタ情報 */
.date-tags {
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.cat-label {
  background: rgba(37, 117, 252, 0.1);
  color: var(--primary-2);
  border: none;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 12px;
  top: -2px;
}

/* 本文見出し */
.article h2 {
  background: transparent;
  border: none;
  border-left: 5px solid var(--primary-2);
  padding: 0 0 0 15px;
  margin: 3rem 0 1.5rem;
  font-size: 1.5rem;
  color: var(--text-main);
}
.article h3 {
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 8px;
  margin: 2.5rem 0 1.2rem;
  font-size: 1.25rem;
}

/* ==================================================================
   6. 特殊コンポーネント (チャット・管理パネル)
   ================================================================== */
/* 記事内で <div id="chat">...</div> を使う想定のスタイル 
*/

/* チャットエリア */
#chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 2rem 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius-L);
  border: 1px solid #e2e8f0;
}

/* メッセージ共通 */
#chat .message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* AI (左側) */
#chat .message.ai {
  align-self: flex-start;
  background: #fff;
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}
#chat .message.ai::before {
  content: 'AI';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--primary-2);
}

/* ユーザー (右側) */
#chat .message.user {
  align-self: flex-end;
  background: var(--primary-gradient);
  color: #fff;
  border-bottom-right-radius: 2px;
}

/* フォーム要素 */
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-M);
  background: #fff;
  font-size: 16px; /* iOSでのズーム防止 */
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

/* グラデーションボタン */
.btn-primary, .submit, button {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-M);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(37, 117, 252, 0.2);
  transition: transform 0.1s;
}
.btn-primary:active {
  transform: scale(0.98);
}

/* アドミンパネル風フローティングメニュー (PC用) */
.admin-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-surface);
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: var(--shadow-floating);
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
}
.admin-panel a {
  color: var(--text-sub);
  font-weight: 500;
}
.admin-panel a:hover {
  color: var(--primary-2);
  text-decoration: none;
}

/* ==================================================================
   7. フッター
   ================================================================== */
.footer {
  background: #fff;
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid #e5e7eb;
}
.footer-bottom-logo .site-name-text {
  color: var(--text-main);
  font-weight: 700;
}

/* ==================================================================
   8. レスポンシブ (スマホ対応)
   ================================================================== */
@media screen and (max-width: 834px) {
  /* レイアウト */
  .entry-card {
    flex-direction: column; /* カードを縦積みに */
  }
  .entry-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .entry-card-content {
    width: 100%;
    padding: 15px;
  }
  
  /* 記事詳細 */
  .article {
    padding: 20px;
    border-radius: 0; /* 画面端まで */
    box-shadow: none;
  }
  
  /* ヘッダー */
  .header-container {
    padding: 8px 0;
  }
  .tagline {
    display: none; /* スマホでは非表示ですっきり */
  }
  
  /* 管理パネル (スマホでは邪魔なので非表示か下部に固定) */
  .admin-panel {
    display: none;
  }
  
  /* スマホ用フッターメニュー (必要な場合) */
  .mobile-menu-buttons {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
  }
}

    .product-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .product-box {
        padding: 20px;
        border-radius: 10px;
        flex: 1 1 calc(33.333% - 20px); /* 3列レイアウト */
        box-sizing: border-box;
        background: linear-gradient(270deg, rgba(76, 224, 251, 0.3), rgba(218, 61, 202, 0.3));
        background-size: 200% 200%;
        animation: gradientAnimation 5s ease infinite;
    }

    @keyframes gradientAnimation {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    .product-name {
        font-size: 1.5em; /* 文字を大きくする */
        font-weight: bold;
        margin: 0 0 10px 0; /* マージンを調整 */
        text-align: center;
    }

    .product-box p {
        margin: 10px 0;
    }

    .product-box .button {
        display: inline-block;
        padding: 10px 20px;
        background-color: black;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        text-align: center;
    }

    .product-price {
        text-align: right;
    }

    .button {
        font-weight: bold;
    }

    .product-box .button:hover {
        opacity: 0.8;
    }

    @media (max-width: 768px) {
        .product-box {
            flex: 100%; /* スマートフォンでは1列レイアウト */
        }
    }

/* フォーム全体 */
#update-form {
    max-width: 520px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, #fdfbfb, #ebedee);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-family: system-ui, sans-serif;
}

/* セクションの見出し */
.gradient-box p {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

/* 入力系統 */
.gradient-box input[type="text"],
.gradient-box input[type="number"],
.gradient-box select,
.gradient-box textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s;
}

.gradient-box input[type="text"]:focus,
.gradient-box input[type="number"]:focus,
.gradient-box select:focus,
.gradient-box textarea:focus {
    border-color: #5a9ef9;
    box-shadow: 0 0 6px rgba(90, 158, 249, 0.3);
    outline: none;
}

/* タブ部分 */
.tabs {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    border-bottom: 2px solid #ddd;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tabs input[type="radio"] {
    display: none;
}

.tabs label {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.25s, color 0.25s;
    border-right: 1px solid #ddd;
    background: #f8f8f8;
}

.tabs label:last-child {
    border-right: none;
}

.tabs input[type="radio"]:checked + label {
    background: #5a9ef9;
    color: #fff;
}

/* タブコンテンツ */
.tab-content {
    display: none;
    padding: 15px 0;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* フォーム送信ボタン */
.centered-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #5a9ef9;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}

.centered-button:hover {
    background: #357ac9;
    transform: translateY(-1px);
}

.centered-button:active {
    transform: scale(0.98);
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* =========================================
   Entry Content Global
   ========================================= */
.entry-content {
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.8;
}

/* 見出しのデザイン */
.entry-content h2.wp-block-heading,
.entry-content h3.wp-block-heading {
    position: relative;
    padding: 0.5em 0 0.5em 0.5em;
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #f3f4f6 0%, transparent 100%);
    border-left: 5px solid #6a11cb; /* アクセントカラー */
    border-radius: 4px;
}

/* =========================================
   Categories (カテゴリーをオシャレなボタンに)
   ========================================= */
ul.wp-block-categories-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

ul.wp-block-categories-list li {
    margin: 0; /* WordPressのデフォルトマージン打ち消し */
    flex: 0 1 auto;
}

ul.wp-block-categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #444;
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    min-width: 140px; /* 最低幅 */
}

/* 投稿数を装飾 */
ul.wp-block-categories-list li {
    /* リスト内のテキストノード(投稿数のカッコ)をCSSで制御しにくい場合の対策 */
    /* 基本的にaタグの中身だけで完結させるデザインにしています */
}

/* ホバー時のエフェクト */
ul.wp-block-categories-list li a:hover {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(37, 117, 252, 0.25);
}