/**
 * Front Page Styles
 * 
 * トップページ専用のスタイル
 */

/* 共通スタイルのインポート */
@import url('button-common.css');

/* フロントページの基本設定 */

.front-page .site-main {
    padding: 0;
}

/* ==========================================================================
   テキスト強調スタイル
   ========================================================================== */

/* 重要キーワード強調 */
.text-highlight {
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.2) 100%);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-weight: 600;
    color: #667eea !important;
    transition: all 0.2s ease;
}

.text-highlight:hover {
    background: linear-gradient(120deg, rgba(0, 115, 170, 0.25) 0%, rgba(0, 115, 170, 0.35) 100%);
    transform: scale(1.02);
}

/* グラデーションテキスト */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary, #0073aa), #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-primary, #0073aa); /* fallback */
    font-weight: 700;
}

/* インパクト強調 */
.text-impact {
    position: relative;
    font-weight: 700;
    color: #667eea !important;
}

.text-impact::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary, #0073aa), transparent);
    border-radius: 2px;
}

/* 数字・データ強調 */
.text-number {
    font-size: 1.2em;
    font-weight: 900;
    color: var(--color-primary, #0073aa);
    background: rgba(0, 115, 170, 0.1);
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

/* 引用文の強調 */
.quote-emphasis {
    position: relative;
    font-style: italic;
    font-size: 1.1em;
    color: var(--color-text-secondary, #666);
    padding-left: 2rem;
}

.quote-emphasis::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--color-primary, #0073aa);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* セクション別アクセントカラー */
.features-section .text-highlight {
    background: linear-gradient(120deg, rgba(220, 38, 127, 0.15) 0%, rgba(220, 38, 127, 0.25) 100%);
}

.features-section .text-highlight:hover {
    background: linear-gradient(120deg, rgba(220, 38, 127, 0.25) 0%, rgba(220, 38, 127, 0.35) 100%);
}

.services-section .text-highlight {
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.25) 100%);
}

.services-section .text-highlight:hover {
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.25) 0%, rgba(124, 58, 237, 0.35) 100%);
}

.values-section .text-highlight {
    background: linear-gradient(120deg, rgba(5, 150, 105, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
}

.values-section .text-highlight:hover {
    background: linear-gradient(120deg, rgba(5, 150, 105, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
}

.values-section .text-impact::after {
    background: linear-gradient(90deg, #059669, transparent);
}

/* アニメーション効果 */
@media (prefers-reduced-motion: no-preference) {
    .text-highlight,
    .text-impact,
    .text-gradient {
        transition: all 0.3s ease;
    }
    
    .text-impact:hover {
        transform: translateY(-1px);
    }
}

/* ヒーローセクション */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.hero-section-minimal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    /* 白ベースの背景 */
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(120, 200, 255, 0.08) 0%, transparent 50%);
}

.hero-content-minimal {
    width: 100%;
    padding: var(--spacing-2xl) 0;
    text-align: left;
}

.hero-content-minimal .container {
    max-width: var(--container-max-width);
    padding: 0 var(--container-padding-x);
}

.hero-title-minimal {
    font-size: clamp(4rem, 8vw, 10rem);
    font-weight: 900; /* メインビジュアルは独自のウェイトを維持 */
    letter-spacing: 0.05em;
    line-height: var(--line-height-tight);
    margin: 0 0 var(--spacing-xl);
    font-feature-settings: "palt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-spacing: 0.2em;
    text-align: left;
    /* 明確に見える濃い色 */
    color: #1a202c !important;
}

.title-line1 {
    display: inline-block;
    opacity: 0;
    color: inherit !important;
    animation: titleSlideIn 1s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
}

.title-line2 {
    display: inline-block;
    opacity: 0;
    color: inherit !important;
    animation: titleSlideIn 1s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards;
}

.hero-tagline {
    font-size: clamp(var(--font-size-base), 2.5vw, var(--font-size-2xl));
    font-weight: 400;
    margin-bottom: var(--spacing-4xl);
    color: #4a5568 !important;
    letter-spacing: -0.02em;
    text-align: left;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 3em;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin-right: 1em;
    vertical-align: middle;
}

.hero-description {
    font-size: clamp(var(--font-size-base), 2vw, var(--font-size-xl));
    line-height: var(--line-height-relaxed);
    max-width: 80rem;
    margin: 0 auto var(--spacing-4xl);
    color: #718096 !important;
    font-weight: var(--font-weight-normal);
}

.hero-cta-wrapper {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 3rem 2rem 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--border-radius-full);
    font-size: 1.8rem;
    font-weight: var(--font-weight-semibold);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.hero-cta-button:hover {
    color: var(--color-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.hero-cta-button:hover::before {
    opacity: 1;
}

.hero-cta-button .button-text {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.hero-cta-button .button-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-cta-button:hover .button-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* ヒーローセカンダリボタン */
.hero-cta-button-secondary {
    display: inline-flex;
    align-items: center;
    padding: 2rem 3rem;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: var(--border-radius-full);
    font-size: 1.8rem;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    position: relative;
}

.hero-cta-button-secondary:hover {
    background-color: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
    color: #764ba2;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}


/* セクション共通 */

.front-page section {
    padding: 8rem 0;
}

/* セクション背景色の定義 */
.services-section {
    background-color: #f8fafc;
    position: relative;
    z-index: 1;
}

.values-section {
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.works-section {
    background-color: #f8fafc;
    position: relative;
    z-index: 1;
}

.faq-section {
    background-color: #2d3748;
    position: relative;
    z-index: 1;
}

.cta-section {
    background-color: #1e293b;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* セクション間のスムーズなトランジション */
.front-page section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #222;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1.6rem, 2vw, 1.8rem);
    color: #666;
    max-width: 80rem;
    margin: 0 auto;
    line-height: 1.8;
}

.section-footer {
    text-align: center;
    margin-top: 4rem;
}

/* 特徴セクション */

.features-section {
    background-color: #ffffff;
    position: relative;
}

.onestop-section {
    background-color: var(--color-bg-lighter);
    position: relative;
    z-index: 1;
}

.features-intro {
    text-align: center;
    margin: var(--spacing-2xl) 0;
}

.features-intro-title {
    font-size: 2.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: 0;
    position: relative;
    display: inline-block;
}

.features-intro-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: var(--spacing-2xl);
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}


.feature-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: var(--color-primary);
}

.feature-subtitle {
    font-size: 1.8rem;
    font-weight: var(--font-weight-semibold);
    color: #333333;
    margin: 0 0 1rem 0;
    line-height: var(--line-height-snug);
}

.feature-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-loose);
    color: #333333;
    margin: 0;
}

/* サービスセクション */

.services-timeline {
    position: relative;
    max-width: 90rem;
    margin: 0 auto;
    padding: 4rem 0;
}

.timeline-line {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--color-gray-300) 10%, var(--color-gray-300) 90%, transparent);
}

.service-item {
    display: flex;
    position: relative;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.service-item.in-view {
    opacity: 1;
    transform: translateX(0);
}

.service-marker {
    position: relative;
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.marker-dot {
    position: absolute;
    left: 41px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-item::before {
    content: attr(data-service);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.6;
}

.service-content {
    flex: 1;
    padding: 0 0 0 3rem;
}

.service-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1.5rem 0;
    position: relative;
}

.service-description {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2.5rem;
}

.service-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-tag {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: rgba(0, 115, 170, 0.08);
    color: var(--color-primary);
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

/* アクティブ状態のアニメーション */
.service-item:hover .marker-dot {
    transform: scale(1.3);
    background: var(--color-primary);
    box-shadow: 0 0 0 8px rgba(0, 115, 170, 0.1);
}

.service-item:hover .service-title {
    color: var(--color-primary);
}

/* ==========================================================================
   最新記事セクション
   ========================================================================== */

.recent-posts-section {
    background-color: #f8f9fa;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card__thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.post-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.05);
}

.post-card__content {
    padding: 3rem;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #999;
}

.post-card__category {
    background-color: var(--color-primary, #0073aa);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 3px;
    font-size: 1.2rem;
}

.post-card__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.post-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card__title a:hover {
    color: var(--color-primary, #0073aa);
}

.post-card__excerpt {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.post-card__link {
    font-size: 1.5rem;
    color: var(--color-primary, #0073aa);
    font-weight: 600;
    text-decoration: none;
}

.no-posts-message {
    text-align: center;
    font-size: 1.8rem;
    color: #666;
    padding: 4rem 0;
}

/* ==========================================================================
   お客様の声セクション
   ========================================================================== */

.testimonials-section {
    background-color: #fff;
}

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

.testimonial-item {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    position: relative;
}

.testimonial-item::before {
    content: """;
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--color-primary, #0073aa);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    font-style: normal;
    display: block;
}

.author-title {
    font-size: 1.4rem;
    color: #666;
    display: block;
}

/* ==========================================================================
   CTAセクション（比較軸を明示するタイプ）
   ========================================================================== */

.cta-section-comparison {
    background-color: #1a202c !important;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section-comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.cta-content-comparison {
    max-width: 100rem;
    margin: 0 auto;
    text-align: center;
}

.comparison-header {
    margin-bottom: 3rem;
}

.comparison-title {
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.comparison-title .highlight {
    color: #4f94cd;
    position: relative;
}

.comparison-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    opacity: 0.3;
}

/* 受付状況の通知 */
.cta-availability-notice {
    margin: 2rem 0 1rem;
    font-size: 2rem;
    text-align: center;
}

.cta-availability-notice span {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.availability-normal {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.availability-warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.availability-urgent {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    animation: pulse 2s ease-in-out infinite;
}

.availability-closed {
    background: #e2e3e5;
    color: #383d41;
    border: 2px solid #d6d8db;
    opacity: 0.8;
}

.comparison-main {
    margin-bottom: 5rem;
}

.comparison-lead {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.comparison-description {
    font-size: 1.7rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.comparison-description .emphasis {
    font-weight: 600;
    color: #ffffff;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto 5rem;
}

.comparison-item {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.comparison-item-before {
    opacity: 0.7;
}

.comparison-item-after {
    border: 2px solid var(--color-primary);
}

.comparison-label {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.comparison-item-after .comparison-label {
    color: var(--color-primary);
}

.comparison-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.comparison-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #666;
}

.comparison-item-after .comparison-list li {
    color: #333;
    font-weight: 500;
}

.comparison-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.8rem;
    color: #999;
}

.comparison-item-after .comparison-list li::before {
    content: '✓';
    color: var(--color-primary);
}

.comparison-versus {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-versus span {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ccc;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* CTAアクションエリア */
.cta-actions {
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-actions .contact-availability-badge {
    display: inline-flex !important;
    margin: 0 auto 2rem !important;
    position: relative;
    z-index: 10;
}

/* CTAボタン特有のスタイル */
.cta-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), #005580);
    color: var(--color-white);
    text-decoration: none;
    padding: 2rem 4rem;
    border-radius: var(--border-radius-full);
    font-size: 1.8rem;
    font-weight: var(--font-weight-semibold);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 115, 170, 0.3);
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0080c0 0%, #0066a0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cta-button-primary:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 115, 170, 0.4);
    text-decoration: none;
}

.cta-button-primary:hover::before {
    opacity: 1;
}

.cta-button-primary .button-text {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.cta-button-primary .button-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-button-primary:hover .button-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* ==========================================================================
   アニメーション
   ========================================================================== */

/* タイトルアニメーション */
@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px) translateY(10px);
        filter: blur(4px);
    }
    50% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }
}

/* 汎用フェードイン */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ==========================================================================
   セクションアニメーション
   ========================================================================== */

/* スクロールで表示されるアニメーション */
.section-header,
.feature-card,
.benefit-item,
.service-item,
.onestop-visual,
.value-card,
.work-card,
.faq-item,
.cta-content,
.cta-content-comparison,
.comparison-item {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header.in-view,
.feature-card.in-view,
.benefit-item.in-view,
.service-item.in-view,
.onestop-visual.in-view,
.value-card.in-view,
.work-card.in-view,
.faq-item.in-view,
.cta-content.in-view,
.cta-content-comparison.in-view,
.comparison-item.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 順番に表示する遅延（ピュッと連続して出る） */
.feature-card:nth-child(2),
.benefit-item:nth-child(2),
.value-card:nth-child(2),
.faq-item:nth-child(2),
.comparison-item:nth-child(2) {
    transition-delay: 0.08s;
}

.feature-card:nth-child(3),
.benefit-item:nth-child(3),
.value-card:nth-child(3),
.faq-item:nth-child(3),
.comparison-item:nth-child(3) {
    transition-delay: 0.16s;
}

.faq-item:nth-child(4) {
    transition-delay: 0.24s;
}

.faq-item:nth-child(5) {
    transition-delay: 0.32s;
}

.faq-item:nth-child(6) {
    transition-delay: 0.40s;
}

/* グリッドやリスト内のアイテムを連続表示 */
.features-grid.in-view .feature-card,
.onestop-benefits.in-view .benefit-item,
.values-grid.in-view .value-card,
.faq-list.in-view .faq-item,
.comparison-grid.in-view .comparison-item {
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* イントロテキストのアニメーション */
.features-intro,
.onestop-intro,
.services-intro {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.features-intro.in-view,
.onestop-intro.in-view,
.services-intro.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   FAQ Footer
   ========================================================================== */

.faq-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.faq-footer-text {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.faq-all-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    text-decoration: none;
    padding: 1.2rem 2.4rem;
    border: 2px solid #ffffff;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-base);
}

.faq-all-link:hover {
    background: #ffffff;
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.faq-all-link svg {
    transition: transform 0.3s ease;
}

.faq-all-link:hover svg {
    transform: translateX(5px);
}

/* CTAサブテキスト */
.cta-subtext {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
}

/* ==========================================================================
   価値観（大切にしていること）セクション
   ========================================================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.value-card {
    background: #fff;
    border-radius: 16px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), #0284c7);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: rgba(0, 115, 170, 0.15);
    transform: scale(1.1);
}

.value-content {
    position: relative;
    z-index: 2;
}

.value-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.value-description {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.value-number {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 115, 170, 0.08);
    line-height: 1;
}

/* 値カードのグラデーション背景 */
.value-card:nth-child(1) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.value-card:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
}

.value-card:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .hero-title-minimal {
        font-size: clamp(5rem, 10vw, 10rem);
    }
    
    .hero-tagline {
        font-size: clamp(1.8rem, 3vw, 3rem);
    }
    
    .hero-description {
        font-size: 1.8rem;
        padding: 0 2rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-section-minimal {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title-minimal {
        font-size: clamp(4rem, 9vw, 8rem);
        margin-bottom: 2rem;
    }
    
    .hero-tagline {
        font-size: 2.4rem;
        margin-bottom: 4rem;
    }
    
    .hero-tagline::before {
        width: 1.5em;
    }
    
    .hero-description {
        font-size: 1.6rem;
        margin-bottom: 4rem;
    }
    
    .hero-cta-button {
        padding: 1.5rem 3rem 1.5rem 4rem;
        gap: 2rem;
    }
    
    .cta-text {
        font-size: 1.6rem;
    }
    
    .cta-arrow {
        width: 40px;
        height: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* タイムラインのレスポンシブ */
    .services-timeline {
        padding: 2rem 0;
    }
    
    .timeline-line {
        left: 25px;
    }
    
    .service-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 3rem;
        padding: 2rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .service-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--color-primary);
        border-radius: 2px 0 0 2px;
    }
    
    .service-marker {
        width: 60px;
        flex-shrink: 0;
        margin-right: 1.5rem;
    }
    
    .marker-dot {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        background: var(--color-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 1.4rem;
    }
    
    .service-item[data-service="01"] .marker-dot::after {
        content: "01";
    }
    
    .service-item[data-service="02"] .marker-dot::after {
        content: "02";
    }
    
    .service-item[data-service="03"] .marker-dot::after {
        content: "03";
    }
    
    .service-content {
        flex: 1;
        padding: 0;
    }
    
    .service-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .service-description {
        font-size: 1.4rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .service-tags,
    .service-features-grid {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .service-tag {
        font-size: 1.3rem;
        padding: 0.8rem 1.4rem;
        text-align: center;
        width: 100%;
        max-width: 250px;
    }
    
    .posts-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* 比較型CTAのレスポンシブ */
    .comparison-title {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }
    
    .cta-availability-notice {
        font-size: 1.6rem;
    }
    
    .cta-availability-notice span {
        padding: 0.8rem 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 40rem;
    }
    
    .comparison-versus {
        display: none;
    }
    
    .comparison-item {
        padding: 2rem;
    }
    
    .comparison-item-before {
        opacity: 1;
        order: 2;
    }
    
    .comparison-item-after {
        order: 1;
    }
    
    .cta-button-primary {
        padding: 1.5rem 3rem;
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .front-page section {
        padding: 6rem 0;
    }
    
    .features-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 12px;
        text-align: center;
        display: block !important;
        flex-direction: column !important;
    }
    
    .feature-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .feature-subtitle {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
    
    .feature-description {
        font-size: 1.4rem;
        line-height: 1.7;
    }
    
    .service-item,
    .post-card__content,
    .testimonial-item {
        padding: 2rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   ヒーローセクションのビジュアルエフェクト
   ========================================================================== */

/* 背景のパーティクルエフェクト */
.hero-visual-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.effect-particle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.effect-particle-1 {
    background: rgba(255, 255, 255, 0.3);
    top: 10%;
    right: 10%;
    animation: floatParticle 15s ease-in-out infinite;
}

.effect-particle-2 {
    background: rgba(255, 255, 255, 0.2);
    bottom: 20%;
    left: 15%;
    animation: floatParticle 20s ease-in-out infinite reverse;
}

.effect-particle-3 {
    background: rgba(255, 255, 255, 0.25);
    top: 50%;
    right: 30%;
    animation: floatParticle 18s ease-in-out infinite 2s;
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}


/* タイトルのアンダーラインエフェクト */
.title-line2 {
    position: relative;
}

.title-line2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 8px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    border-radius: 4px;
    animation: underlineExpand 1s ease-out 1s forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    transition: opacity 0.3s;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.scroll-indicator svg {
    color: rgba(255, 255, 255, 0.5);
}

/* タグライン */
.hero-tagline {
    font-size: clamp(var(--font-size-base), 2.5vw, var(--font-size-2xl));
    font-weight: 300;
    margin-bottom: var(--spacing-4xl);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: titleSlideIn 1s cubic-bezier(0.19, 1, 0.22, 1) 0.7s forwards;
}

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .scroll-indicator {
        bottom: 2rem;
    }
}

/* ==========================================================================
   ワンストップ開発セクション
   ========================================================================== */

.onestop-intro {
    text-align: center;
    margin-bottom: 6rem;
}

.intro-text {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #555;
    max-width: 80rem;
    margin: 0 auto;
}

.onestop-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.benefit-item {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 3rem 4rem 3rem 0;
    border-radius: 10px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, var(--color-primary) 0%, #0284c7 100%);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.benefit-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    padding-left: 2.5rem;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #333;
}

.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #666;
}

.benefit-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.8rem;
}

/* プロセスフロー */
.onestop-visual {
    background: #fff;
    padding: 4rem;
    border-radius: 10px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    max-width: 90rem;
    margin: 0 auto;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.process-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.process-item:hover .process-icon {
    background: rgba(0, 115, 170, 0.2);
    transform: scale(1.1);
}

.process-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.process-arrow {
    font-size: 2.4rem;
    color: #ccc;
    margin: 0 1rem;
    flex-shrink: 0;
}

.process-person {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 115, 170, 0.05);
    border-radius: 8px;
}

.process-person p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

/* レスポンシブ */
@media screen and (max-width: 1024px) {
    .process-flow {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    .onestop-benefits {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefit-item {
        padding: 2rem 2rem 2rem 1rem;
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .benefit-item::before {
        width: 6px;
    }
    
    .benefit-number {
        font-size: 3rem;
        padding-left: 1.5rem;
        line-height: 1.2;
    }
    
    .benefit-title {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .benefit-description {
        font-size: 1.4rem;
        line-height: 1.7;
    }
    
    .onestop-section .process-flow {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 4rem !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        justify-content: flex-start !important;
    }
    
    .onestop-section .process-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        text-align: left !important;
        position: relative !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }
    
    .onestop-section .process-item::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 4px !important;
        background: var(--color-primary) !important;
        border-radius: 2px 0 0 2px !important;
    }
    
    .onestop-section .process-icon {
        width: 50px !important;
        height: 50px !important;
        background: var(--color-primary) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    .onestop-section .process-icon svg {
        width: 24px !important;
        height: 24px !important;
        color: white !important;
    }
    
    .onestop-section .process-label {
        font-size: 1.6rem !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        flex: 1 !important;
        text-align: left !important;
    }
    
    .onestop-section .process-arrow {
        display: none !important;
    }
    
    .onestop-visual {
        padding: 2rem;
    }
    
    /* モバイルで3つずつ改行 */
    .process-item:nth-child(6),
    .process-arrow:nth-child(5) {
        display: none;
    }
    
    .process-flow {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr auto;
        align-items: center;
        gap: 1rem;
        justify-items: center;
    }
    
    .process-arrow {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   アニメーション定義
   ========================================================================== */

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}