/*
Theme Name: Speed Publishing Lab
Description: スピード出版ラボ株式会社のオフィシャルテーマ
Author: Speed Publishing Lab
Version: 1.0
Text Domain: speedpublab
*/
/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-color: #4285f4;
    --secondary-color: #1a73e8;
    --accent-color: #34a853;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #e8f0fe;
    --border-color: #dadce0;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

/* ヘッダー */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ヒーローセクション */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(232, 240, 254, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

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

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

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

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

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* タイムライン視覚化 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.timeline-visual .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.timeline-visual .timeline-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-light);
}

.timeline-arrow {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 0.5rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* セクション共通 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

section {
    padding: 80px 0;
}

/* ミッション・ビジョン */
.about {
    background: var(--bg-primary);
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.mission-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.mission-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.mission-item strong {
    color: var(--primary-color);
}

/* 会社情報 */
.company-info {
    background: var(--bg-secondary);
}

.company-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.company-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.company-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.company-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* サービス概要 */
.service {
    background: var(--bg-secondary);
    /* 背景画像はfunctions.phpで動的に設定 */
}

.service-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.service-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.service-benefits {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.service-benefits h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 課題と解決策 */
.solutions {
    background: var(--bg-primary);
}

.catchphrase {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-accent);
    border-radius: 12px;
}

.catchphrase p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.catchphrase strong {
    color: var(--primary-color);
    font-weight: 700;
}

.solutions-grid {
    display: grid;
    gap: 2rem;
}

.solution-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.solution-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* 課題と解決策を横並びにするラッパー */
.problem-solution-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.problem, .solution {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.problem {
    border-left-color: #ea4335;
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.1);
}

.solution {
    border-left-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.1);
}

.problem h4, .solution h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.problem h4 {
    color: #ea4335;
}

.solution h4 {
    color: var(--accent-color);
}

.problem h4:before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 0;
}

.solution h4:before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.solution-item ul {
    padding-left: 1.5rem;
}

.solution-item li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 料金プラン */
.pricing {
    background: var(--bg-secondary);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(66, 133, 244, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(52, 168, 83, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.pricing .container {
    position: relative;
    z-index: 2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

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

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.recommended {
    background: var(--bg-accent);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    flex-grow: 0;
}

.pricing-card .btn {
    margin-top: auto;
}

/* 制作フロー */
.workflow {
    background: var(--bg-primary);
    /* 背景画像はfunctions.phpで動的に設定 */
}

.workflow .timeline {
    position: relative;
    margin: 2rem 0;
}

.workflow .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.workflow .timeline-item {
    position: relative;
    margin: 3rem 0;
    display: flex;
    align-items: center;
}

.workflow .timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.workflow .timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.workflow .timeline-number {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
}

.workflow .timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    width: 45%;
    box-shadow: var(--shadow-light);
}

.workflow .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.gate {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.workflow-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-accent);
    border-radius: 12px;
}

.workflow-note strong {
    color: var(--primary-color);
}

/* FAQ */
.faq {
    background: var(--bg-secondary);
}

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

.faq-item {
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

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

/* お問い合わせ */
.contact {
    background: var(--bg-secondary);
    /* 背景画像はfunctions.phpで動的に設定 */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-message {
    text-align: center;
}

.contact-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

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

.contact-method a:hover {
    color: var(--secondary-color);
}

/* フッター */
.footer {
    background: var(--text-primary);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9aa0a6;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3c4043;
    color: #9aa0a6;
}

/* 実績ページ */
.results-overview {
    background: var(--bg-secondary);
    padding: 80px 0;
}

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

.stat-item {
    text-align: center;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.portfolio {
    background: var(--bg-primary);
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.portfolio-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.portfolio-image i {
    color: var(--primary-color);
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-link {
    margin-bottom: 1rem;
}

.portfolio-link .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.portfolio-service-link {
    margin-top: 1rem;
}

.portfolio-service-link .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.service-link {
    margin-top: 1rem;
}

.service-link .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-accent);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.testimonials {
    background: var(--bg-secondary);
    padding: 80px 0;
}

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

.testimonial-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding: 1rem;
}

.testimonial-content p:before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -5px;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.service-details {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-detail-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.service-detail-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-detail-icon i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.service-detail-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.service-detail-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-detail-item ul {
    list-style: none;
    padding: 0;
}

.service-detail-item ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-detail-item ul li:before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin-bottom: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        background-attachment: scroll;
    }
    
    .service {
        background-attachment: scroll;
    }
    
    .workflow {
        background-attachment: scroll;
    }
    
    .contact {
        background-attachment: scroll;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    /* 課題と解決策のモバイル対応 */
    .problem-solution-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-flow {
        flex-direction: column;
        gap: 2rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .workflow .timeline::before {
        left: 25px;
        width: 3px;
    }
    
    .workflow .timeline-item {
        justify-content: flex-start !important;
        padding-left: 60px;
        margin: 2rem 0;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .workflow .timeline-number {
        position: absolute;
        left: 25px;
        transform: translateX(-50%);
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .workflow .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        max-width: none;
        text-align: left;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-visual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .logo-image {
        width: 42px;
        height: 42px;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 追加のアニメーション */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* アニメーション対象要素 */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-timeline {
    animation: slideInFromBottom 0.8s ease forwards;
}

/* メッセージ表示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.message.show {
    opacity: 1;
    transform: translateX(0);
}

.message-success {
    background: var(--accent-color);
}

.message-error {
    background: #ea4335;
}

.message-info {
    background: var(--primary-color);
}

/* ヘッダースクロール時 */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

/* ホバー効果 */
.pricing-card:hover .popular-badge {
    transform: translateX(-50%) scale(1.1);
}

.timeline-visual .timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}