/*
Theme Name: デジタル家庭教師
Author: デジタル家庭教師
Version: 1.0.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: #4a4a4a;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(155, 136, 101, 0.1);
    padding: 0.8rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 300;
    color: #9b8865;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #9b8865;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #9b8865;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu li {
    padding: 0.5rem 2rem;
}

.mobile-menu a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* WordPress Content Areas */
.content-area {
    margin-top: 120px;
    padding: 2rem 0;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.entry-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(155, 136, 101, 0.08);
}

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.entry-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.entry-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: #9b8865;
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    text-align: center;
    color: #4a4a4a;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(250, 249, 247, 0.9) 0%, rgba(247, 245, 242, 0.9) 50%, rgba(245, 243, 240, 0.9) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}


.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    font-weight: 300;
    letter-spacing: 2px;
    color: #9b8865;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s both;
    color: #6a6a6a;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-primary {
    background: #9b8865;
    color: white;
    box-shadow: 0 4px 20px rgba(155, 136, 101, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #9b8865;
    border: 1px solid #9b8865;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: #8a7755;
    box-shadow: 0 6px 25px rgba(155, 136, 101, 0.3);
}

.btn-secondary:hover {
    background: #9b8865;
    color: white;
}

/* Sections */
.services, .features, .blog {
    padding: 100px 0;
    background: #ffffff;
}

.pricing, .blog {
    background: #f8f6f3;
}

.target {
    padding: 100px 0;
    background: #9b8865;
    color: white;
}

.contact {
    padding: 100px 0;
    background: #2c2c2c;
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 4rem;
    color: #4a4a4a;
    font-weight: 300;
    letter-spacing: 1px;
}

.target .section-title,
.contact .section-title {
    color: white;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f5f3f0;
    box-shadow: 0 5px 20px rgba(155, 136, 101, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(155, 136, 101, 0.12);
}

.service-card h3 {
    color: #9b8865;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.service-card p {
    color: #6a6a6a;
    line-height: 1.8;
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(155, 136, 101, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f5f3f0;
    width: 400px;
    max-width: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(155, 136, 101, 0.15);
}

.pricing-card.featured {
    border: 2px solid #9b8865;
    position: relative;
}

.pricing-card.featured::before {
    content: "人気";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #9b8865;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.pricing-header h3 {
    color: #9b8865;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 300;
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    color: #6a6a6a;
}

.pricing-duration {
    color: #6a6a6a;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #6a6a6a;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9b8865;
    font-weight: bold;
}

/* Target Cards */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.target-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.target-card h3 {
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    background: #9b8865;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

.feature-item h3 {
    color: #4a4a4a;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.feature-item p {
    color: #6a6a6a;
    line-height: 1.8;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(155, 136, 101, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(155, 136, 101, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #9b8865, #b39a7a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    color: #4a4a4a;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h3 {
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(155, 136, 101, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: #9b8865;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.8rem 1.2rem;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #6a6a6a;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #9b8865;
    color: white;
    border-color: #9b8865;
}

/* WordPress Comment Forms */
.comment-form {
    background: #f8f6f3;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #9b8865;
}

.comment-form .form-submit {
    text-align: center;
}

.comment-form .submit {
    background: #9b8865;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: #8a7755;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.alignnone {
    margin: 0 0 1rem;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-item {
    text-align: center;
}

.gallery-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
    }
    
    .entry-content {
        padding: 2rem;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
}