/*
Theme Name: Modern Clean Theme
Theme URI: https://example.com
Description: モダンでクリーンなコーポレートサイト向けWordPressテーマ
Author: Your Name
Author URI: https://example.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-clean
*/

/* ============================================
   リセット & 基本設定
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-white);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* ============================================
   コンテナ & レイアウト
============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.site-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.site-logo a:hover {
    color: var(--primary-color);
}

/* ナビゲーション */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* モバイルメニュートグル */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* ============================================
   ヒーローセクション（トップページ用）
============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

/* ============================================
   特徴セクション
============================================ */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   コンテンツセクション（固定ページ用）
============================================ */
.content-section {
    padding: 80px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    color: var(--text-color);
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.page-content h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-dark);
}

.page-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
}

.page-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-color);
    padding: 8px 16px;
    background: linear-gradient(to right, #eff6ff, transparent);
    border-radius: 4px;
}

.page-content h5 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.page-content ul > li {
    position: relative;
    padding-left: 8px;
}

.page-content ul > li::marker {
    color: var(--primary-color);
}

.page-content ol > li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

.page-content a:hover {
    text-decoration-color: var(--primary-color);
}

.page-content img {
    border-radius: 8px;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.page-content blockquote {
    margin: 32px 0;
    padding: 24px 24px 24px 28px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-style: italic;
    color: var(--text-light);
}

.page-content code {
    background-color: #f1f5f9;
    color: #e11d48;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.page-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.page-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* テーブルスタイル */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background-color: white;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.page-content thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.page-content thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.page-content tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.page-content tbody tr:last-child {
    border-bottom: none;
}

.page-content tbody tr:hover {
    background-color: var(--bg-light);
}

.page-content td {
    padding: 14px 16px;
    color: var(--text-color);
}

.page-content tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.page-content tbody tr:nth-child(even):hover {
    background-color: var(--bg-light);
}

/* シンプルなテーブルスタイル（オプション） */
.page-content table.simple-table {
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.page-content table.simple-table thead {
    background: var(--bg-light);
    color: var(--text-color);
}

.page-content table.simple-table thead th {
    border-bottom: 2px solid var(--primary-color);
}

/* 水平線 */
.page-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    margin: 48px 0;
}

/* ============================================
   フッター
============================================ */
.site-footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

.mt-small {
    margin-top: 20px;
}

.mt-medium {
    margin-top: 40px;
}

.mt-large {
    margin-top: 60px;
}

.mb-small {
    margin-bottom: 20px;
}

.mb-medium {
    margin-bottom: 40px;
}

.mb-large {
    margin-bottom: 60px;
}
