/*
Theme Name: SUGO Japan Theme
Theme URI: https://sugo-japan.com
Author: Your Name
Author URI: https://sugo-japan.com
Description: かわいい系で信頼度が高い、モバイルファーストのWordPressテーマ
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sugo-japan
*/

/* ========================================
   カラーパレット
======================================== */
:root {
    /* メインカラー */
    --primary-color: #FF6B9D;
    --primary-light: #FFB6D3;
    --primary-dark: #E85587;
    
    /* アクセントカラー */
    --accent-color: #FFA07A;
    --accent-light: #FFD1B3;
    
    /* ニュートラルカラー */
    --white: #FFFFFF;
    --light-bg: #FFF5F8;
    --light-gray: #F8F9FA;
    --gray: #E9ECEF;
    --text-gray: #6C757D;
    --dark-gray: #495057;
    --text-dark: #212529;
    
    /* 機能カラー */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    
    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(255, 107, 157, 0.08);
    --shadow-md: 0 4px 12px rgba(255, 107, 157, 0.12);
    --shadow-lg: 0 8px 24px rgba(255, 107, 157, 0.15);
    
    /* ボーダーラジウス */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* スペーシング */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* トランジション */
    --transition: all 0.3s ease;
}

/* ========================================
   リセット & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   コンテナ
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 800px;
}

/* ========================================
   タイポグラフィ
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5, h6 {
    font-size: 1.1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* ========================================
   ナビゲーション
======================================== */
.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    padding: var(--spacing-sm);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* モバイルメニュー */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--gray);
}

.mobile-menu a {
    display: block;
    padding: var(--spacing-md);
    color: var(--text-dark);
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   カード
======================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.card-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ========================================
   グリッドレイアウト
======================================== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========================================
   セクション
======================================== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ========================================
   バッジ・タグ
======================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--light-bg);
    color: var(--primary-color);
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    border-radius: 20px;
    background: var(--light-bg);
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   記事コンテンツ
======================================== */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2 {
    margin-top: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--light-bg);
}

.article-content h3 {
    margin-top: var(--spacing-lg);
    padding-left: var(--spacing-sm);
    border-left: 4px solid var(--primary-color);
}

.article-content ul,
.article-content ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.article-content li {
    margin-bottom: var(--spacing-sm);
}

.article-content img {
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
}

.article-content blockquote {
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
}

/* ========================================
   ページネーション
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ========================================
   フッター
======================================== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-widget a {
    color: var(--light-gray);
}

.footer-widget a:hover {
    color: var(--primary-light);
}

.site-info {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--dark-gray);
    color: var(--text-gray);
}

/* ========================================
   ページトップボタン
======================================== */
.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-top.visible {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========================================
   レスポンシブ
======================================== */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .main-nav {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
    
    .section {
        padding: 64px 0;
    }
}

/* ========================================
   ユーティリティクラス
======================================== */
.text-center {
    text-align: center;
}

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden {
    display: none;
}

.visible-mobile {
    display: block;
}

.visible-desktop {
    display: none;
}

@media (min-width: 768px) {
    .visible-mobile {
        display: none;
    }
    
    .visible-desktop {
        display: block;
    }
}

/* ========================================
   Front Page専用スタイル
======================================== */

/* ヘッダー調整 */
.site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #6B4FFF;
    letter-spacing: 0.5px;
}

.header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.icon-btn {
    width: 24px;
    height: 24px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.icon-btn:hover {
    background: #e8e8e8;
}

/* 検索バー */
.search-bar {
    padding: 0 16px 14px;
    background: white;
}

.search-input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #6B4FFF;
    background: white;
}

/* カテゴリナビ */
.category-nav {
    background: white;
    padding: 20px 16px;
    border-bottom: 1px solid #e8e8e8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
}

.category-item:hover {
    color: #6B4FFF;
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
}

.category-item:hover .category-icon-wrapper {
    background: #f0ebff;
    transform: translateY(-2px);
}

.category-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* 統計 */
.stats {
    background: white;
    padding: 28px 16px;
    margin-top: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #6B4FFF;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

/* セクション */
.section {
    margin-top: 8px;
    background: white;
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.more-link {
    font-size: 13px;
    color: #6B4FFF;
    text-decoration: none;
    font-weight: 500;
}

/* スクロールコンテナ */
.scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* 記事カード */
.article-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8e8e8;
    transition: all 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-image {
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    color: #6B4FFF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.article-content {
    padding: 14px;
}

.article-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    color: #222;
}

.article-meta {
    font-size: 12px;
    color: #999;
}

/* タグセクション */
.tags-section {
    background: white;
    padding: 20px 16px;
    margin-top: 8px;
}

.tags-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #222;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 8px 14px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #555;
    border: 1px solid #e8e8e8;
    transition: all 0.2s;
    font-weight: 500;
}

.tag:hover {
    background: #f0ebff;
    border-color: #6B4FFF;
    color: #6B4FFF;
}

/* CTAバナー */
.cta-banner {
    margin: 24px 16px;
    padding: 36px 24px;
    background: linear-gradient(135deg, #7C5FFF 0%, #5B47CC 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.cta-banner h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-banner p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.cta-banner-btn {
    display: inline-block;
    background: white;
    color: #6B4FFF;
    padding: 13px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

/* フッター調整 */
.site-footer {
    background: #2a2a2a;
    color: #999;
    padding: 32px 16px 24px;
    margin-top: 32px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section {
    margin-bottom: 0;
}

.footer-title {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: #6B4FFF;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
}

.copyright {
    font-size: 11px;
    color: #666;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}