/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet Styles (768px and below) */
@media screen and (max-width: 768px) {
    
    /* Typography */
    html {
        font-size: 55%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Header */
    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 2rem;
        padding: 1.5rem 2rem;
        display: block;
        text-align: center;
        border-radius: 10px;
        margin: 0 2rem;
        transition: all 0.3s ease;
        /* タップ領域を最低44px確保 */
        min-height: 44px;
        line-height: 1.2;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background-color: var(--background-light);
        transform: scale(1.02);
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
        padding: 1rem;
        /* タップ領域を44px以上確保 */
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .menu-toggle:hover,
    .menu-toggle:focus {
        background-color: rgba(255, 107, 157, 0.1);
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .menu-toggle span {
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        padding: 1.5rem 3rem;
        font-size: 1.5rem;
        width: 100%;
        max-width: 300px;
        /* モバイルでのタップ領域確保 */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* すべてのボタンでタップ領域を確保 */
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* カテゴリボタンもタップしやすく */
    .category-btn {
        padding: 1rem 2rem;
        font-size: 1.3rem;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* FAQボタンのタップ領域拡大 */
    .faq-question {
        padding: 1.5rem 2rem;
        font-size: 1.5rem;
        min-height: 60px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Back to topボタンの拡大 */
    .back-to-top {
        bottom: 2rem;
        right: 2rem;
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Reasons Section */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .reason-card {
        padding: 2.5rem;
    }
    
    /* Works Section */
    .works-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.3rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Trust Section */
    .trust-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .concern-item,
    .solution-item {
        padding: 2rem;
    }
    
    /* Flow Section */
    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: -2rem;
        width: 2px;
        height: 2rem;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    /* FAQ Section */
    .faq-question {
        padding: 1.5rem 2rem;
        font-size: 1.5rem;
    }
    
    .faq-answer.active {
        padding: 0 2rem 1.5rem;
    }
    
    /* Testimonials Section */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-form-container {
        padding: 3rem;
    }
    
    /* モバイル向けフォーム最適化 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1.4rem 1.2rem;
        font-size: 1.6rem;
        min-height: 48px;
        border-radius: 8px;
        border-width: 2px;
        touch-action: manipulation;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .form-group select {
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1rem;
        padding-right: 3rem;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
        font-family: inherit;
    }
    
    .form-group label {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 2rem;
        right: 2rem;
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.8rem;
    }
}

/* Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    
    /* Typography */
    html {
        font-size: 50%;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* 画像の最適化 */
    img {
        max-width: 100%;
        height: auto;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    .hero-img,
    .logo-img {
        will-change: transform;
    }
    
    .hero-img {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .logo-img {
        height: 4rem;
        width: auto;
        max-width: 160px;
    }
    
    /* Hero Section */
    .hero {
        padding: 8rem 0 5rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .hero-actions {
        gap: 1.5rem;
    }
    
    /* Recent Works */
    .works-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Reasons Section */
    .reason-card {
        padding: 2rem;
    }
    
    .reason-icon img {
        width: 6rem;
        height: 6rem;
    }
    
    .reason-title {
        font-size: 1.8rem;
    }
    
    /* Works Section */
    .works-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Trust Section */
    .concern-item,
    .solution-item {
        padding: 1.5rem;
    }
    
    /* Flow Section */
    .step-number {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.8rem;
    }
    
    /* FAQ Section */
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1.4rem;
    }
    
    .faq-answer.active {
        padding: 0 1.5rem 1.2rem;
    }
    
    /* Testimonials Section */
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: 0.5rem;
        left: 1.5rem;
    }
    
    /* Contact Section */
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1.3rem;
    }
    
    /* Footer */
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.6rem;
    }
    
    .footer-legal a {
        font-size: 1.3rem;
    }
}

/* Large Desktop Styles (1200px and above) */
@media screen and (min-width: 1200px) {
    
    .container {
        max-width: 1400px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.9rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 3.5rem;
    }
    
    /* Reasons Section */
    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Works Section */
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Testimonials Section */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra Wide Screens (1600px and above) */
@media screen and (min-width: 1600px) {
    
    .container {
        max-width: 1600px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    /* Spacing adjustments for ultra-wide screens */
    section {
        padding: 10rem 0;
    }
}

/* Print Styles */
@media print {
    
    .header,
    .menu-toggle,
    .hero-scroll,
    .back-to-top,
    .contact-form-container {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .btn {
        border: 1pt solid #000;
        background: none !important;
        color: #000 !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    
    :root {
        --text-dark: #ecf0f1;
        --text-light: #bdc3c7;
        --background-light: #2c3e50;
        --white: #34495e;
        --border-color: #4a5568;
    }
    
    body {
        background-color: #1a202c;
        color: #ecf0f1;
    }
    
    .header {
        background: rgba(26, 32, 44, 0.95);
    }
    
    .hero {
        background: linear-gradient(135deg, #2c3e50 0%, #1a202c 100%);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2d3748;
        color: #ecf0f1;
        border-color: #4a5568;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    
    :root {
        --primary-color: #d81b60;
        --secondary-color: #ad1457;
        --text-dark: #000;
        --text-light: #333;
        --border-color: #666;
    }
    
    .btn-primary {
        background: #d81b60;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
    
    .nav-link:focus,
    .btn:focus,
    .faq-question:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 3px solid #d81b60;
        outline-offset: 2px;
    }
}


/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 3px;
    background: linear-gradient(45deg, #ff6b9d, #f06292);
    border-radius: 2px;
}

/* ==========================================================================
   Color Scheme
   ========================================================================== */

:root {
    --primary-color: #ff6b9d;
    --primary-dark: #e91e63;
    --secondary-color: #f06292;
    --accent-color: #ffb3d1;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #fdf2f8;
    --border-color: #e1e8ed;
    --success-color: #4caf50;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.6rem;
}

.btn-full {
    width: 100%;
}

.btn-order {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: var(--white);
    box-shadow: var(--shadow);
    font-size: 1.8rem;
    padding: 1.8rem 4rem;
    margin-top: 2rem;
}

.btn-order:hover {
    background: linear-gradient(45deg, #388E3C, #4CAF50);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 5rem;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 2.5rem;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 12rem 0 8rem;
    background: linear-gradient(135deg, var(--background-light) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.accent {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator {
    color: var(--text-light);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2rem;
    height: 2rem;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: 1rem auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==========================================================================
   Recent Works Section
   ========================================================================== */

.recent-works {
    padding: 8rem 0;
    background: var(--white);
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--background-light);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Reasons Section
   ========================================================================== */

.reasons {
    padding: 8rem 0;
    background: var(--background-light);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.reason-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transition: left 0.5s ease;
}

.reason-card:hover::before {
    left: 100%;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-icon {
    margin-bottom: 2rem;
}

.reason-icon img {
    width: 20rem !important;
    height: 20rem !important;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.reason-icon img:hover {
    transform: scale(1.05);
}

.reason-title {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.reason-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   Works Section
   ========================================================================== */

.works {
    padding: 8rem 0;
    background: var(--white);
}

.works-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    color: var(--text-light);
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.work-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.work-content {
    padding: 2rem;
}

.work-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.work-description {
    color: var(--text-light);
    font-size: 1.4rem;
    line-height: 1.5;
}

.work-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Trust Section
   ========================================================================== */

.trust {
    padding: 8rem 0;
    background: var(--background-light);
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.concern-item,
.solution-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.concern-item h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.solution-item h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Flow Section
   ========================================================================== */

.flow {
    padding: 8rem 0;
    background: var(--white);
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 2.75rem;
    top: 5.5rem;
    width: 2px;
    height: 4rem;
    background: var(--border-color);
}

.step-number {
    width: 5.5rem;
    height: 5.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-right: 3rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.step-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
    padding: 8rem 0;
    background: var(--background-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 2rem 3rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--background-light);
}

.faq-icon {
    width: 2rem;
    height: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding: 0 3rem 2rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
    padding: 8rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3つ以下の場合は中央揃えで表示 */
.testimonials-grid:has(.testimonial-card:nth-child(-n+3):last-child) {
    justify-items: center;
}

/* フォールバック: 3つ以下の場合の代替スタイル */
@media (min-width: 769px) {
    .testimonials-grid .testimonial-card:only-child {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .testimonials-grid .testimonial-card:first-child:nth-last-child(2),
    .testimonials-grid .testimonial-card:first-child:nth-last-child(2) ~ .testimonial-card {
        max-width: 400px;
    }
    
    .testimonials-grid .testimonial-card:first-child:nth-last-child(3),
    .testimonials-grid .testimonial-card:first-child:nth-last-child(3) ~ .testimonial-card {
        max-width: 350px;
    }
}

.testimonial-card {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--accent-color);
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    padding: 8rem 0;
    background: var(--background-light);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    color: var(--success-color);
    margin-right: 1rem;
    font-weight: bold;
    font-size: 1.8rem;
}

.contact-actions {
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 4rem;
    width: auto;
    margin-bottom: 2rem;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 2rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #bdc3c7;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}
 
/* FAQ More Button */
.faq-more {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.faq-more .btn {
    min-width: 200px;
    padding: 1.2rem 2.5rem;
    font-size: 1.6rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .faq-more {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .faq-more .btn {
        min-width: 160px;
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}