/**
 * Main Stylesheet
 * Freelance Portfolio Theme
 * 
 * @package Freelance_Portfolio
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ==============================
   共通コンポーネント
   ============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 60px;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==============================
   ヘッダー
   ============================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: #334155;
}

.main-nav a:hover {
    color: #2563eb;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #334155;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==============================
   ヒーローセクション
   ============================== */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    margin-top: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1e293b;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* ==============================
   実績セクション
   ============================== */
.works {
    background-color: #ffffff;
}

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

.work-card {
    background-color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.work-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.work-content {
    padding: 25px;
}

.work-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.work-highlight {
    font-size: 1rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 10px;
}

.work-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* ==============================
   サービス・料金セクション
   ============================== */
.services {
    background-color: #f8fafc;
}

.service-group {
    margin-bottom: 60px;
}

.service-group:last-child {
    margin-bottom: 0;
}

.service-group-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1e293b;
}

.service-badge {
    display: inline-block;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
}

.service-note {
    text-align: center;
    font-size: 1.1rem;
    color: #475569;
    margin-top: 30px;
    font-weight: 500;
}

/* 料金カード */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.pricing-card.recommended {
    border-color: #2563eb;
    position: relative;
}

.pricing-card.recommended::before {
    content: "おすすめ";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2563eb;
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.plan-features {
    text-align: left;
    margin-top: 25px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #475569;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "✓";
    color: #2563eb;
    font-weight: 700;
    margin-right: 10px;
}

/* LP制作プラン */
.lp-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.lp-plan-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.lp-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ==============================
   強みセクション
   ============================== */
.strengths {
    background-color: #ffffff;
}

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

.strength-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.strength-item:hover {
    background-color: #e0f2fe;
}

.strength-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.strength-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.strength-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* ==============================
   お問い合わせセクション
   ============================== */
.contact {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.contact .section-title,
.contact .section-subtitle {
    color: #ffffff;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.contact-method {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-method h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-method p {
    font-size: 1rem;
    opacity: 0.9;
}

.contact-method a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.contact-method a:hover {
    opacity: 0.8;
}

/* ==============================
   フッター
   ============================== */
.site-footer {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ==============================
   レスポンシブ対応（スマホファースト）
   ============================== */
@media (max-width: 768px) {
    /* ナビゲーション */
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.is-open {
        max-height: 400px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-nav li {
        border-bottom: 1px solid #e2e8f0;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
    }
    
    /* ヒーローセクション */
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* セクション */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 実績グリッド */
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    /* 料金グリッド */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* LPプラン */
    .lp-plans {
        grid-template-columns: 1fr;
    }
    
    /* 強みグリッド */
    .strength-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   アニメーション
   ============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* スムーズスクロール用のオフセット */
section {
    scroll-margin-top: 80px;
}