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

:root {
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-gray: #f5f5f5;
    --color-gray-dark: #666666;
    --color-accent: #2b7de9;
    --color-accent-dark: #1e5bb8;
    --font-primary: 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.8;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

/* ================================================
   共通クラス
================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(43, 125, 233, 0.3);
}

/* ================================================
   ヘッダー & ナビゲーション
================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    transition: var(--transition);
}

/* ================================================
   ヒーローセクション
================================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7), rgba(43, 125, 233, 0.5));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* ================================================
   サービスセクション
================================================ */
.services {
    background-color: var(--color-gray);
}

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

.service-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
}

/* ================================================
   得意ジャンルセクション
================================================ */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.genre-item {
    background-color: var(--color-white);
    padding: 30px 20px;
    border: 2px solid var(--color-gray);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.genre-item:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ================================================
   選ばれる理由セクション
================================================ */
.reasons {
    background-color: var(--color-gray);
}

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

.reason-card {
    text-align: center;
}

.reason-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.reason-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.reason-desc {
    color: var(--color-gray-dark);
}

/* ================================================
   ライター紹介セクション
================================================ */
.profile {
    background-color: var(--color-white);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.profile-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-title {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.profile-desc {
    margin-bottom: 30px;
    line-height: 1.8;
}

.profile-list {
    list-style: none;
}

.profile-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray);
    display: flex;
    align-items: center;
}

.profile-list li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 10px;
}

/* ================================================
   ポートフォリオセクション
================================================ */
.portfolio {
    background-color: var(--color-gray);
}

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

.portfolio-item {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 200px;
    background-color: var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-gray-dark);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-category {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-desc {
    color: var(--color-gray-dark);
    font-size: 0.9rem;
}

/* ================================================
   制作の流れセクション
================================================ */
.flow-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.flow-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.flow-item::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    width: 2px;
    height: calc(100% + 40px);
    background-color: var(--color-gray);
}

.flow-item:last-child::before {
    display: none;
}

.flow-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.flow-content p {
    color: var(--color-gray-dark);
}

/* ================================================
   料金セクション
================================================ */
.pricing {
    background-color: var(--color-gray);
}

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

.pricing-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.pricing-card.featured {
    border: 3px solid var(--color-accent);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.pricing-unit {
    font-size: 1rem;
    color: var(--color-gray-dark);
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

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

/* ================================================
   クライアントの声セクション
================================================ */
.testimonials {
    background-color: var(--color-white);
}

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

.testimonial-card {
    background-color: var(--color-gray);
    padding: 40px 30px;
    border-radius: 10px;
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-company {
    color: var(--color-gray-dark);
    font-size: 0.9rem;
}

/* ================================================
   FAQセクション
================================================ */
.faq {
    background-color: var(--color-gray);
}

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

.faq-item {
    background-color: var(--color-white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--color-gray);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--color-gray-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ================================================
   お問い合わせセクション
================================================ */
.contact {
    background-color: var(--color-white);
}

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

.contact-info {
    text-align: center;
    margin-bottom: 50px;
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-item i {
    color: var(--color-accent);
    margin-right: 10px;
}

.contact-form {
    background-color: var(--color-gray);
    padding: 50px;
    border-radius: 10px;
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.form-submit {
    width: 100%;
}

/* ================================================
   フッター
================================================ */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    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 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ================================================
   レスポンシブ対応
================================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        transition: var(--transition);
        padding: 30px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
