/*
Theme Name: 建設業許可申請代行サービス
Theme URI: https://example.com
Author: Construction License Service
Author URI: https://example.com
Description: 建設業許可申請代行サービス専門のWordPressテーマ
Version: 1.0
Text Domain: construction-license
*/

:root {
    --primary-color: #1e40af;
    --secondary-color: #f97316;
    --success-color: #16a34a;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

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

/* ヘッダー */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

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

.header-main {
    padding: 15px 0;
}

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

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.cta-button {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.value-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.badge {
    background: white;
    color: var(--primary-color);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.badge-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
}

.badge-label {
    font-size: 14px;
    margin-top: 5px;
}

/* 信頼性セクション */
.trust-section {
    background: var(--light-bg);
    padding: 60px 0;
}

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

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

.trust-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* 価格セクション */
.pricing-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

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

.pricing-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.plan-name {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.plan-price {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 16px;
    color: var(--text-color);
}

.plan-features {
    list-style: none;
    margin: 30px 0;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* お客様の声 */
.testimonials-section {
    background: var(--light-bg);
    padding: 80px 0;
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.author-company {
    font-size: 14px;
    color: #6b7280;
}

/* お問い合わせセクション */
.contact-section {
    padding: 80px 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-method {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.contact-method:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-button:hover {
    background: #1e3a8a;
}

/* フッター */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 追加のスタイル */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.mobile-cta {
    background: var(--secondary-color);
    color: white !important;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    border: none !important;
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-phone,
.floating-line {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.floating-phone {
    background: var(--primary-color);
}

.floating-line {
    background: #00B900;
}

.floating-phone:hover,
.floating-line:hover {
    transform: scale(1.1);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-title a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #6b7280;
}

.post-excerpt {
    margin-bottom: 20px;
    color: #6b7280;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination .current {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    border-radius: 5px;
}

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

.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.page-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.pricing-plans.detailed {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.pricing-card .featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.plan-features.detailed li {
    padding: 8px 0;
    font-size: 14px;
}

.recommended-for {
    list-style: none;
    margin: 20px 0;
}

.recommended-for li {
    padding: 5px 0;
    font-size: 14px;
    color: #6b7280;
}

.plan-timeline {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-options {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.cost-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cost-table th,
.cost-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cost-table th {
    background: var(--light-bg);
    font-weight: bold;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
}

.comparison-table td strong {
    color: var(--secondary-color);
}

.testimonials-stats {
    background: var(--light-bg);
    padding: 60px 0;
}

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

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

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-color);
}

.testimonial-card.extended {
    padding: 30px;
    margin-bottom: 30px;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-date {
    font-size: 14px;
    color: #6b7280;
}

.star {
    color: #fbbf24;
    font-size: 18px;
}

.star.filled {
    color: #fbbf24;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active,
.tab-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.success-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-rate {
    font-weight: bold;
    color: var(--success-color);
    font-size: 18px;
}

.contact-benefits {
    margin-bottom: 60px;
}

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

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.benefit-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-method.primary {
    border: 2px solid var(--primary-color);
}

.contact-icon.line {
    background: #00B900;
}

.contact-icon.phone {
    background: var(--primary-color);
}

.line-button {
    background: #00B900;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.line-button:hover {
    background: #009900;
}

.contact-form.detailed {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.half {
    margin-bottom: 25px;
}

.required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    display: inline-block;
    margin-right: 8px;
}

.faq-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.process-section {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-button.large {
    font-size: 20px;
    padding: 18px 40px;
    margin-top: 30px;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top-left {
        display: none;
    }
    
    .value-badges {
        gap: 20px;
    }
    
    .pricing-plans {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .value-badges {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .badge {
        width: 180px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-header {
        position: relative;
    }
    
    .header-main .container {
        position: relative;
    }
    
    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
    }
    
    .mobile-nav-menu {
        padding: 10px 0;
    }
    
    .mobile-nav-menu li {
        margin-bottom: 0;
    }
    
    .mobile-nav-menu a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s;
    }
    
    .mobile-nav-menu a:hover {
        background: var(--light-bg);
        color: var(--primary-color);
        padding-left: 30px;
    }
    
    .mobile-nav-menu li:last-child a {
        border-bottom: none;
    }
    
    .mobile-cta {
        background: var(--secondary-color);
        color: white !important;
        margin: 10px 20px;
        padding: 15px 20px;
        border-radius: 25px;
        text-align: center;
        font-weight: bold;
        border: none !important;
    }
    
    .mobile-cta:hover {
        background: #e65a00 !important;
        padding-left: 20px !important;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-phone,
    .floating-line {
        width: 50px;
        height: 50px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .plan-price {
        font-size: 36px;
    }
    
    .badge-number {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .pricing-section,
    .testimonials-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .cost-table {
        overflow-x: auto;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .page-title {
        font-size: 24px;
    }
}