@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================================== */
/* VibeSync Main Site Styles (Original Dark Theme) */
/* =============================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-cta-green: #38A169;
    --accent-cta-gradient: linear-gradient(135deg, #38A169 0%, #31825B 100%);
    --bg-dark: #1A202C;
    --bg-dark-gradient: linear-gradient(135deg, #1A202C 0%, #16213E 100%);
    --bg-light: #F7FAFC;
    --text-on-dark: #F7FAFC;
    --text-on-light: #1A202C;
    --text-secondary: #A0AEC0;
    --glass-bg: rgba(26, 32, 44, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    /* Safe header offset for fixed header */
    --header-safe: 72px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-on-light);
    overflow-x: hidden;
    background: var(--bg-dark);
    /* Ensure content does not hide under the fixed header on refresh */
    padding-top: clamp(64px, 8vh, 96px);
}

/* Prevent horizontal scroll on mobile Safari/Chrome */
html, body { max-width: 100%; overflow-x: hidden; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Base sections are stacking contexts */
.hero, .section, .cta-section, footer {
    position: relative;
}

/* Layer 1: Section Backgrounds (Applied directly to sections) */
.hero { background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%); }
.section-dark { background: var(--bg-dark-gradient); }
.section-light { background: var(--bg-light); }
.cta-section { background: var(--bg-dark-gradient); }
footer { background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%); }

/* Layer 2: Particle Animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Particles sit ON TOP of section backgrounds */
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #667eea, #764ba2);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
    will-change: transform, opacity;
}
.particle:nth-child(odd) {
    background: radial-gradient(circle, #38A169, #31825B);
    box-shadow: 0 0 15px rgba(56, 161, 105, 0.8);
}
@keyframes float {
    0% { transform: translateY(100vh) translateX(-20px) scale(0.5); opacity: 0; }
    20% { opacity: 0.8; transform: translateY(80vh) translateX(0px) scale(1); }
    80% { opacity: 0.8; transform: translateY(20vh) translateX(20px) scale(1); }
    100% { transform: translateY(-10vh) translateX(40px) scale(0.5); opacity: 0; }
}

/* Layer 3: All Content */
header, .hero-content, .section .container, .cta-section .container, footer .container {
    position: relative;
    z-index: 2; /* Content sits ON TOP of particles */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000; /* Header is always on top */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* モバイルメニュー配置用の基準 */
    /* ↓ コンテンツ幅と左右の余白を他のセクションと統一 */
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px; /* 上下の余白を広げ、左右にも余白を追加 */
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 0.6; }
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px; /* 各メニュー間の余白を広げる */
}

/* ハンバーガーメニュー（デスクトップでは非表示） */
.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
}
.hamburger span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 23px; }
nav.menu-open .hamburger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .hamburger span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.nav-links a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Mobile nav: collapse links until hamburger toggled */
@media (max-width: 768px) {
    .hamburger { display: inline-block; }
    /* Hide links by default on mobile; reveal when nav has .menu-open */
    .nav-links { display: none; flex-direction: column; align-items: flex-start; width: 100%; gap: 14px; margin-top: 8px; }
    nav.menu-open .nav-links { display: flex; }
}

.nav-links a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.cta-nav {
    background: var(--accent-cta-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 161, 105, 0.3);
}

.nav-links a.active {
    color: #667eea;
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: heroFadeIn 1s ease-out;
    /* Breathing room in addition to body top padding */
    padding-top: 40px;
    padding-bottom: 40px;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    /* Allow wider hero text to avoid clipping while staying responsive */
    max-width: min(1100px, 92vw);
}

.hero h1 {
    /* Slightly reduce fluid size to better fit two enforced lines */
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* Force the home hero to exactly two lines on desktop */
@media (min-width: 768px) {
  .home-hero-title .line1,
  .home-hero-title .line2 { white-space: nowrap; display: inline-block; }
  /* Prevent accidental overflow clipping due to long first line */
  .home-hero-title { overflow-wrap: normal; word-break: keep-all; }
}

/* Reason page hero: improve mobile break control */
.br-m { display: none; }
@media (max-width: 768px) {
    .br-m { display: inline; }
    .reason-hero-title { line-height: 1.2; }
    .reason-hero-title .nowrap-m { white-space: nowrap; }
    /* Slightly reduce font-size on narrow phones to avoid third line wrap */
    @media (max-width: 400px) {
        .reason-hero-title { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }
    }
}

/* PC幅ではヒーロー見出しを改行させない */
/* 強制2行表示にするためPC幅でのnowrapを無効化 */

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-cta-gradient);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 161, 105, 0.3);
}

.cta-primary {
    background: var(--accent-cta-gradient);
}

.cta-primary:hover {
    box-shadow: 0 15px 35px rgba(56, 161, 105, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
}

.section { padding: 120px 0; }
.section-dark { color: var(--text-on-dark); }
.section-light { color: var(--text-on-light); }
.cta-section { padding: 80px 0; text-align: center; color: white; }

.service-card p, .reason-card p, .reason-card li, .philosophy-card p, .timeline-content p, .timeline-content li { color: var(--text-secondary); }

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px auto;
    line-height: 1.6;
}

/* モバイルのタイポグラフィと余白最適化 */
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-title { font-size: clamp(2rem, 7vw, 2.5rem); margin-bottom: 16px; }
    .section-subtitle { font-size: 1rem; margin-bottom: 40px; line-height: 1.7; padding: 0 12px; }
    .service-card, .reason-card, .philosophy-card, .process-step, .timeline-content { padding: 28px; }
    .process-grid, .contact-cards { gap: 24px; }
}

@media (max-width: 480px) {
    .section { padding: 64px 0; }
    .section-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 32px; padding: 0 10px; }
}

.services-grid,
.reasons-grid,
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.services-grid > .service-card,
.reasons-grid > .reason-card,
.philosophy-grid > .philosophy-card {
    grid-column: span 1;
}

.process-grid, .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card, .reason-card, .philosophy-card, .process-step, .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card h3, .reason-card h3, .philosophy-card h3, .process-step h3, .timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-on-dark);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    background: var(--bg-dark-gradient);
    color: var(--text-on-dark);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer-section a:hover { color: #667eea; }

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer policy link should be high-contrast on dark background */
.footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user preference: reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .particle { display: none !important; }
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

.floating-card {
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-step-number {
    background: var(--primary-gradient);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem; /* 文字サイズを調整 */
    line-height: 1; /* 行の高さを調整 */
    text-align: center; /* 中央揃えを確実にする */
    margin-right: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-on-dark);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.timeline-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cta-green);
    font-weight: bold;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--accent-cta-green);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cta-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 32px;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-on-dark);
}

.plan-tagline {
    color: var(--text-secondary);
    font-style: italic;
}

.price-prefix {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-on-dark);
    /* Flexboxで配置を制御 */
    display: flex;
    justify-content: center;
    align-items: baseline; /* テキストのベースラインで揃える */
    white-space: nowrap; /* 折り返しを禁止 */
}

.pricing-card .price .price-amount {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card .price .price-tax {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 8px; /* 金額との間に余白を追加 */
}

.price-suffix {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-monthly {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    position: relative;
    padding-left: 32px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cta-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.pricing-card .cta-button {
    width: 100%;
    justify-content: center;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 40px;
}

@media(max-width: 768px) {
    .pricing-card.popular {
        transform: none;
        order: -1;
    }
}

.portfolio-grid {
    display: grid;
    /* スマートフォンなどの狭い画面では1列で表示 */
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 80px;
}

/* 画面幅が768px以上の広い画面では2列で表示 */
@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 32px;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-on-dark);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-card .cta-button {
    width: 100%;
    justify-content: center;
}

.reason-card ul {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.reason-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    position: relative;
    padding-left: 32px;
    transition: all 0.3s ease;
}

.reason-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cta-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.reason-card li:hover {
    color: var(--text-on-dark);
    transform: translateX(8px);
}

/* =============================================== */
/* Case Study Page Styles (Innovate Consulting)  */
/* =============================================== */
.case-study-page {
    background: #ffffff;
    color: #333;
    font-family: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.case-study-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid #EAECEF;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.case-study-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-study-logo {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.case-study-nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.case-study-nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.case-study-nav-links a:hover {
    color: #0057FF;
}

.case-study-main {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cs-hero {
    background: url('../innovate-consulting/images/背景1.png') center center/cover no-repeat;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cs-hero .container {
    position: relative;
    z-index: 2;
}

.cs-main-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #000000 !important;
}

.cs-main-title .highlight {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-subtitle {
    font-size: 1.25rem;
    color: #000000 !important;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cs-section {
    padding: 100px 0;
}

.cs-section-light {
    background-color: #F8F9FA;
}

.cs-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

.cs-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 24px;
}

.text-center { text-align: center; }
.text-center .cs-section-title { margin-bottom: 80px; }

.cs-flex-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.cs-text-content { flex: 1; }
.cs-image-content { flex: 1; }
.cs-image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.cs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.cs-service-item {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cs-service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cs-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0057FF 0%, #1E3A8A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: #ffffff;
}

.cs-service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
}

.cs-service-item p {
    color: #555;
    line-height: 1.6;
}

.cs-news-list {
    max-width: 800px;
    margin: 0 auto;
}

.cs-news-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cs-news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cs-news-date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.cs-news-item time {
    font-weight: 600;
    color: #0057FF;
}

.cs-news-category {
    background: #E6F0FF;
    color: #0057FF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    align-self: flex-start;
}

.cs-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    flex: 1;
    padding-right: 24px;
    position: relative;
}

.cs-news-title::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #0057FF;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cs-news-item:hover .cs-news-title::after {
    transform: translateY(-50%) translateX(4px);
}

.case-study-footer {
    background: url('../innovate-consulting/images/背景2.png') center center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
}

.cs-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.cs-footer-main {
    max-width: 300px;
}

.cs-footer-main .case-study-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}

.cs-footer-links {
    display: flex;
    gap: 60px;
}

.cs-footer-links ul {
    list-style: none;
}

.cs-footer-links a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.cs-footer-links a:hover {
    color: #ffffff;
}

.cs-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
}

.cs-footer-bottom p {
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cs-footer-content {
        flex-direction: column;
    }
    .cs-footer-links {
        gap: 40px;
    }
}

/* =============================================== */
/* Case Study Sub-Page Styles                    */
/* =============================================== */

.cs-page-hero {
    background: #F8F9FA;
    padding: 80px 0;
    border-bottom: 1px solid #EAECEF;
}

.cs-page-title {
    font-size: 2.5rem;
    color: #111;
}

/* =============================================== */
/* Subscription Plan Card Styles                 */
/* =============================================== */

.sub-plan-card {
    background: #ffffff;
    color: var(--text-on-light);
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sub-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.sub-plan-card .plan-name {
    color: #667eea;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.sub-plan-card .price {
    color: #1A202C;
    margin-bottom: 24px;
    /* Flexboxを使ってテキストの縦位置を揃える */
    display: flex;
    justify-content: center;
    align-items: baseline;
    white-space: nowrap;
}

.sub-plan-card .price .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
}
.sub-plan-card .price .price-suffix {
    font-size: 1rem;
    color: #718096;
}

.sub-plan-card .features-list {
    text-align: left;
    color: #4A5568;
}

.sub-plan-card .features-list li {
    border-bottom: 1px solid #e2e8f0;
    color: #4A5568;
}

.sub-plan-card .features-list li::before {
    color: #38A169;
}

/* =============================================== */
/* SaaS LP Page Styles (Cognify) - NEW THEME     */
/* =============================================== */
.saas-lp-page {
    --saas-base: #FFFFFF;
    --saas-text-charcoal: #2C3E50;
    --saas-text-grey: #7F8C8D;
    --saas-cta-purple: #8E44AD;
    --saas-accent-blue: #2980B9;
    --saas-bg-light-blue: #EBF5FB;
    --saas-border: #EAECEF;
    background: var(--saas-base);
    color: var(--saas-text-charcoal);
    font-family: 'Inter', sans-serif;
}

.saas-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--saas-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.saas-header nav { display: flex; justify-content: space-between; align-items: center; }
.saas-logo { font-size: 28px; font-weight: 700; color: var(--saas-text-charcoal); text-decoration: none; }
.saas-cta-nav {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--saas-cta-purple);
    color: var(--saas-base);
}
.saas-cta-nav:hover {
    background: #7D3C98; /* Darker Purple */
}

.saas-main { animation: fadeIn 1s ease-in-out; }

.saas-hero { padding: 100px 0; }
.saas-hero-badge {
    display: inline-block;
    background: var(--saas-bg-light-blue);
    color: var(--saas-accent-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}
.saas-main-title { font-size: clamp(3rem, 6vw, 4.5rem); color: var(--saas-text-charcoal); margin-bottom: 24px; }
.saas-subtitle { font-size: 1.25rem; color: var(--saas-text-grey); margin-bottom: 40px; }
.saas-cta-main {
    padding: 20px 48px;
    font-size: 1.2rem;
    border-radius: 8px;
    background: var(--saas-cta-purple);
    color: var(--saas-base);
}
.saas-cta-main:hover {
    background: #7D3C98; /* Darker Purple */
}
.saas-hero-image { margin-top: 60px; }
.saas-hero-image img { width: 100%; max-width: 800px; border-radius: 12px; box-shadow: 0 20px 40px rgba(44, 62, 80, 0.1); }

/* SaaS LP モバイル調整 */
@media (max-width: 768px) {
  .saas-header nav { gap: 12px; }
  .saas-logo { font-size: 24px; }
  .saas-cta-nav { padding: 10px 16px; font-size: 0.95rem; }

  .saas-hero { padding: 80px 0 60px; }
  .saas-hero .container { text-align: left; padding: 0 16px; }
  .saas-hero-badge { font-size: 0.9rem; }
  .saas-main-title { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.2; }
  .saas-subtitle { font-size: 1rem; line-height: 1.8; }
  .saas-hero-image { margin-top: 32px; }
  .saas-hero-image img { max-width: 100%; }

  .saas-feature-item, .saas-feature-item.reverse { flex-direction: column; gap: 24px; }
  .saas-feature-item + .saas-feature-item { margin-top: 40px; }
}

@media (max-width: 480px) {
  .saas-hero .container { padding: 0 14px; }
  .saas-main-title { font-size: clamp(1.8rem, 9vw, 2.2rem); }
  .saas-subtitle { font-size: 0.95rem; }
}

.saas-section { padding: 100px 0; }
.saas-section-light { background-color: var(--saas-bg-light-blue); }
.saas-section-title { font-size: 2.8rem; color: var(--saas-text-charcoal); margin-bottom: 80px; }

.saas-problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.saas-problem-item .saas-icon { font-size: 2.5rem; margin-bottom: 16px; }
.saas-problem-item h4 { font-size: 1.5rem; margin-bottom: 12px; }
.saas-problem-item p { color: var(--saas-text-grey); }

.saas-feature-item { display: flex; align-items: center; gap: 80px; margin-bottom: 100px; }
.saas-feature-item.reverse { flex-direction: row-reverse; }

/* 再定義（ベース定義の直後に配置）: モバイルでは縦並びに強制 */
@media (max-width: 768px) {
  .saas-feature-item,
  .saas-feature-item.reverse {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .saas-feature-image img { width: 100%; height: auto; }
}
.saas-feature-text { flex: 1; }
.saas-feature-text h4 { font-size: 2rem; margin-bottom: 20px; }
.saas-feature-text p { font-size: 1.1rem; line-height: 1.8; color: var(--saas-text-grey); }
.saas-feature-image { flex: 1; }
.saas-feature-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1); }

.saas-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.saas-plan-item { border: 1px solid var(--saas-border); padding: 40px; border-radius: 12px; text-align: left; }
.saas-plan-item.popular { border-width: 2px; border-color: var(--saas-cta-purple); position: relative; }
.saas-popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--saas-cta-purple); color: var(--saas-base); padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; }
.saas-plan-item h4 { font-size: 1.5rem; }
.saas-price { font-size: 2.5rem; font-weight: 700; margin: 24px 0; }
.saas-price span { font-size: 1rem; font-weight: 400; color: var(--saas-text-grey); }
.saas-plan-item ul { list-style-position: inside; }
.saas-plan-item .cta-button {
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    background: var(--saas-cta-purple);
    color: var(--saas-base);
}

.saas-cta-final { padding: 100px 0; background-color: var(--saas-text-charcoal); }
.saas-cta-final .saas-section-title { color: var(--saas-base); }
.saas-cta-final .cta-button { background: var(--saas-base); color: var(--saas-text-charcoal); }

.saas-footer { background: var(--saas-text-charcoal); color: var(--saas-base); opacity: 0.8; text-align: center; padding: 40px 0; } 

/* サービス紹介カードの文章とボタンの間に余白を追加 */
.service-card p {
    margin-bottom: 24px;
}

/* ========================= */
/* Home: Monitor Offer block */
/* ========================= */
.promo-offer::before,
.promo-offer::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}
.promo-offer::before { background: #7F9CF5; top: -60px; left: -60px; }
.promo-offer::after  { background: #9F7AEA; bottom: -60px; right: -60px; }

.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}
.promo-title {
    font-size: clamp(2rem, 5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.promo-subtitle {
    font-size: 1.15rem;
    opacity: .95;
    margin-bottom: 24px;
}
.promo-cta {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .promo-title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    .promo-subtitle { font-size: 1rem; }
}

/* =============================================== */
/* Special Offer Box Styles                      */
/* =============================================== */

.special-offer-box {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    background: var(--primary-gradient);
    border-radius: 24px;
    color: white;
}

.special-offer-box h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.special-offer-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 32px;
}

.special-offer-box .offer-price {
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    margin: 0 auto 32px;
    display: block; /* CTAと縦に並ぶようブロック表示に */
}

.special-offer-box .offer-price span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 8px;
}

.special-offer-box .cta-button {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    backdrop-filter: blur(10px);
    border: none;
    display: inline-flex;
    margin: 0 auto; /* 中央寄せ */
}

/* =============================================== */
/* Marketing Steps Section Styles                */
/* =============================================== */

.marketing-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.marketing-step-card {
    background: var(--base-color);
    color: var(--text-on-light);
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.marketing-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.marketing-step-number {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.marketing-step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-on-light);
}

.marketing-step-card p {
    color: #555;
    line-height: 1.8;
} 

/* =============================================== */
/* Single Contact Card Layout                    */
/* =============================================== */

.contact-cards.single-contact {
    display: flex;
    justify-content: center;
}

.contact-cards.single-contact .contact-card {
    max-width: 500px; /* カードが横に広がりすぎないように最大幅を指定 */
    width: 100%;
    text-align: center; /* ボタン含め中央揃え */
}

/* 単一カード内のCTAを中央配置 */
.contact-cards.single-contact .contact-card .cta-button {
    margin: 20px auto 0 !important;
    display: inline-flex;
    justify-content: center;
}

/* =============================================== */
/* EC Site Page Styles (KŌSAI)                   */
/* =============================================== */
.ec-site-page {
    background: #FFF;
    color: #4A4A4A;
    font-family: 'Inter', sans-serif;
}
.ec-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.ec-header nav { display: flex; justify-content: space-between; align-items: center; }
.ec-logo { font-size: 24px; font-weight: 600; color: #333; text-decoration: none; letter-spacing: 0.1em; }
.ec-nav-links { list-style: none; display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.ec-nav-links a { text-decoration: none; color: #555; font-weight: 500; transition: color 0.3s ease; white-space: nowrap; }
.ec-nav-links a:hover, .ec-nav-links a.active { color: #000; }
.ec-nav-links .cart-icon-wrapper { display: flex; align-items: center; }
.ec-nav-links .cart-icon { width: 24px; height: 24px; margin-top: -2px; }

.ec-main { animation: fadeIn 1s ease-in-out; }

.ec-hero { position: relative; width: 100%; height: 80vh; overflow: hidden; }
/* 画像を背景化して常にテキストの背面に配置 */
.ec-hero-image { position: absolute; inset: 0; z-index: 1; }
.ec-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 画像に薄い暗幕を重ね、下部ほど濃くして可読性を担保 */
  background: linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.35) 75%);
  z-index: 2;
}
.ec-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* テキストを前面へ */
.ec-hero-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; text-align: center; z-index: 3; padding: 0 16px; }
.ec-hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 500; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    white-space: nowrap; /* 改行を防ぐ */
}

/* KOSAI モバイル調整: PCと同様に重ね表示を維持 */
@media (max-width: 768px) {
  .ec-hero { height: 70vh; }
  .ec-hero-text { top: 50%; }
  .ec-hero h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); white-space: normal; line-height: 1.15; text-shadow: 0 4px 16px rgba(0,0,0,0.45); }
  .ec-hero::after { background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.46) 80%); }
}

.ec-section { padding: 100px 0; }
.ec-section-light { background: #F8F9FA; }
.ec-section-title { font-size: 2.5rem; font-weight: 600; margin-bottom: 60px; text-align: center; }

.ec-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-bottom: 60px; }
.ec-product-card { text-align: center; text-decoration: none; color: inherit; }
.ec-product-image { width: 100%; height: 400px; overflow: hidden; margin-bottom: 24px; }
.ec-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ec-product-card:hover .ec-product-image img { transform: scale(1.05); }
.ec-product-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.ec-product-card p { font-size: 1.1rem; color: #777; }
.ec-cta {
    background: #333;
    color: #FFF;
    padding: 16px 48px;
    border-radius: 4px;
    font-weight: 500;
}
.ec-concept-container { display: flex; align-items: center; gap: 80px; }
.ec-concept-image { flex: 1; }
.ec-concept-image img { width: 100%; }
.ec-concept-text { flex: 1; }
.ec-concept-text .ec-section-title { margin-bottom: 24px; text-align: left; }
.ec-concept-text p { font-size: 1.1rem; line-height: 2; }

/* KOSAI 私たちの想い: モバイルで縦並び・可読性向上 */
@media (max-width: 768px) {
  .ec-concept-container { flex-direction: column; gap: 24px; }
  .ec-section-title { text-align: center; margin-bottom: 16px; }
  .ec-concept-text p { font-size: 1rem; line-height: 1.9; }
}

.ec-product-detail-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 100px 24px; }
.ec-product-detail-images img { width: 100%; }
.ec-product-detail-info h1 { font-size: 2.5rem; font-weight: 600; margin-bottom: 16px; }
.ec-product-price { font-size: 1.8rem; margin-bottom: 24px; }
.ec-product-description { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; }

.ec-footer { background: #F8F9FA; color: #888; padding: 60px 0; }
/* KOSAI 商品詳細: モバイルでは縦並びに */
@media (max-width: 768px) {
  .ec-product-detail-container { grid-template-columns: 1fr; gap: 32px; padding: 64px 16px; }
  .ec-product-detail-info h1 { font-size: 2rem; }
  .ec-product-price { font-size: 1.5rem; }
  .ec-product-description { font-size: 1rem; line-height: 1.9; }
}
.ec-footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; gap: 24px; flex-wrap: nowrap; }
.ec-footer .ec-logo { margin-right: 16px; }
.ec-footer-bottom { border-top: 1px solid #EAECEF; padding-top: 40px; text-align: center; }

/* KOSAI Mobile nav and footer wrapping to avoid horizontal overflow */
@media (max-width: 768px) {
  .ec-header nav { padding: 16px; }
  /* ロゴの下にナビを縦積み配置 */
  .ec-header nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ec-logo { margin-bottom: 2px; }
  .ec-nav-links { gap: 12px; flex-wrap: wrap; width: 100%; }
  .ec-nav-links a { font-size: 14px; }
  .ec-footer-content { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .ec-nav-links { gap: 10px; }
}

/* ロゴアイコンのスタイル */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* アイコンとテキストの間の余白 */
}

.logo-icon {
    width: 36px; /* アイコンの幅 */
    height: 36px; /* アイコンの高さ */
}

/* =============================================== */
/* Contact Form Styles                           */
/* =============================================== */

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-on-dark);
}

.form-group label span {
    color: #e53e3e; /* Red for required fields */
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-on-dark);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.form-group.text-center {
    text-align: center;
}

.form-group .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* [NEW] ドロップダウンメニューの選択肢のスタイルを上書き */
.form-group select option {
    background: white;
    color: #1A202C;
}

/* =============================================== */
/* Photographer Portfolio Styles (Akira Tanaka)  */
/* =============================================== */
.photographer-page {
    background: #FFF;
    color: #333;
    font-family: 'Inter', sans-serif;
}
.pg-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.pg-header nav { display: flex; justify-content: space-between; align-items: center; }
.pg-logo { font-size: 20px; font-weight: 600; color: #333; text-decoration: none; }
.pg-nav-links { list-style: none; display: flex; gap: 40px; }
.pg-nav-links a { text-decoration: none; color: #555; font-weight: 500; }
.pg-nav-links a.active { color: #000; font-weight: 600; }

.pg-main { animation: fadeIn 1s ease-in-out; }

.pg-hero { position: relative; width: 100%; height: 70vh; }
.pg-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%); }
.pg-hero-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; width: 90%; }
.pg-hero-title h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: white; text-shadow: 0 2px 15px rgba(0,0,0,0.5); font-weight: 500; line-height: 1.2;}

.pg-section { 
    padding: 100px 0; 
    width: 100%;
    overflow: hidden;
}
.pg-section-dark { background: #111; color: #FFF; }
.pg-section-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.2em; text-align: center; margin-bottom: 60px; font-weight: 600; }
.pg-section-dark .pg-section-title { color: #FFF; }

.pg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 100%;
}
.pg-gallery-item { 
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    display: block;
}
.pg-gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.pg-gallery-item:hover img {
    transform: scale(1.05);
}

.pg-about-container { display: flex; align-items: center; gap: 80px; }
.pg-about-image { flex-basis: 40%; }
.pg-about-image img { width: 100%; border-radius: 50%; }
.pg-about-text { flex-basis: 60%; }
.pg-about-text .pg-section-title { text-align: left; margin-bottom: 24px; }
.pg-about-text p { color: #DDD; line-height: 2; }

.pg-cta { background: #333; color: #FFF; border-radius: 4px; }

.pg-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pg-contact-form input,
.pg-contact-form textarea {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-family: inherit;
}
.pg-contact-form button {
    cursor: pointer;
    border: none;
}


.pg-footer { background: #111; color: #888; text-align: center; padding: 40px 0; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pg-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pg-gallery-item {
        height: 250px;
    }
    
    .pg-about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .pg-about-image, .pg-about-text {
        flex-basis: 100%;
    }
    
    .pg-nav-links {
        gap: 20px;
    }

    /* Photographer Hero: スマホでのテキストはみ出し防止 */
    .pg-hero { height: 65vh; }
    .pg-hero-title { top: 32%; }
    .pg-hero-title h1 { font-size: clamp(1.8rem, 7.5vw, 3rem); line-height: 1.2; }
}

@media (max-width: 480px) {
    .pg-hero-title { top: 28%; }
    .pg-hero-title h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

/* =============================================== */
/* FAQ Page Styles                               */
/* =============================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--text-on-dark);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* 十分な高さを確保 */
}

/* =============================================== */
/* EC Product Back Button                         */
/* =============================================== */

.ec-product-back {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.ec-back-button {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ec-back-button:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* =============================================== */
/* Cart Page Styles                              */
/* =============================================== */

.cart-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2rem;
    color: #333;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cart-empty p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    margin-right: 20px;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    color: #666;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity {
    margin: 0 15px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    min-width: 100px;
    text-align: right;
    margin-right: 20px;
}

.cart-item-remove {
    width: 30px;
    height: 30px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.cart-item-remove:hover {
    background: #c82333;
}

.cart-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cart-total {
    margin-bottom: 30px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.total-final {
    border-top: 2px solid #333;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.3rem;
    color: #333;
}

.cart-actions {
    text-align: center;
}

.cart-checkout {
    margin-bottom: 25px;
    padding: 15px 40px;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.cart-continue {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cart-continue:hover {
    background-color: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.cart-continue:hover {
    text-decoration: underline;
}

/* =============================================== */
/* Toast Notification Styles                     */
/* =============================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out forwards;
    max-width: 300px;
}

.toast.success {
    background: rgba(40, 167, 69, 0.9);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        margin-bottom: 10px;
    }
    
    .cart-item-details {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .cart-item-quantity {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .cart-item-total {
        margin-right: 0;
        text-align: left;
    }
}

/* =============================================== */
/* Cart Icon Styles                              */
/* =============================================== */

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #333;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cart-icon-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.cart-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
    transform: translate(50%, -50%);
}

.cart-badge.hidden {
    display: none;
}

/* =============================================== */
/* レスポンシブ対応 - ヘッダー                    */
/* =============================================== */

@media (max-width: 768px) {
    /* ヘッダーナビゲーション */
    nav {
        padding: 15px 16px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 24px;
        margin-bottom: 0;
    }

    /* ハンバーガー表示 */
    .hamburger { display: inline-block; }

    /* 並び順: 左にロゴ、右にハンバーガー */
    nav .logo { order: 1; }
    nav .hamburger { order: 3; margin-left: auto; }
    nav .nav-links { order: 4; }

    /* モバイルメニュー（デフォルト非表示） */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 16px 16px;
        background: rgba(15, 15, 30, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1001;
    }
    nav.menu-open .nav-links { display: flex; }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 10px 8px;
        white-space: nowrap;
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .cta-nav {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    /* コンテナーのパディング調整 */
    .container {
        padding: 0 16px;
    }
    
    /* ヒーローセクションの調整 */
    .hero {
        padding-top: 120px; /* ヘッダー高さ分の調整 */
        min-height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    nav {
        padding: 12px 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 15px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .cta-nav {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding-top: 140px;
        min-height: calc(100vh - 140px);
    }
    .hero .hero-content { padding: 0 14px; }
    .hero h1 { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }
    .hero .subtitle { font-size: 0.95rem; }
}

/* =============================================== */
/* Case Study ヘッダー - レスポンシブ対応         */
/* =============================================== */

@media (max-width: 768px) {
    .case-study-header {
        padding: 12px 0;
    }
    
    .case-study-header nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .case-study-logo {
        font-size: 20px;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .case-study-nav-links {
        gap: 20px;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .case-study-nav-links a {
        font-size: 14px;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .cs-hero {
        padding: 80px 0 60px;
    }
    
    .cs-main-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }
    
    .cs-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Innovate Consulting: テキストと画像の2カラムを縦並びに */
    .cs-flex-container {
        flex-direction: column;
        gap: 24px;
    }
    .cs-image-content img { width: 100%; height: auto; }
}

/* =============================================== */
/* CTA spacing and FAQ mobile tuning               */
/* =============================================== */

/* 共通CTAコンテナ（複数ボタン横並び用） */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ質問行でプラスアイコンと文の間に余白を確保 */
.faq-question {
    padding-right: 56px; /* アイコン用の余白を追加 */
}

@media (max-width: 768px) {
    /* ヒーローのCTA間隔を広げる */
    .hero-buttons { gap: 20px; }

    /* 複数CTAを縦並び＋適切な間隔に */
    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }

    /* モバイルでFAQのアイコンとテキストの距離をさらに確保 */
    .faq-question { padding-right: 64px; }
    .faq-question::after { right: 16px; }

    /* 料金プラン：モバイルでは記述順のまま表示（人気カードを先頭にしない） */
    .pricing-card.popular {
        order: 0;       /* 初期順序に戻す */
        transform: none; /* 拡大は無効化して高さ差を抑える */
    }
    .hero .hero-content { padding: 0 16px; }
    .hero h1 { font-size: clamp(2rem, 7.5vw, 2.6rem); line-height: 1.2; }
    .hero .subtitle { font-size: 1rem; line-height: 1.8; margin-bottom: 32px; }
}

@media (max-width: 480px) {
    .case-study-header {
        padding: 10px 0;
    }
    
    .case-study-logo {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .case-study-nav-links {
        gap: 15px;
    }
    
    .case-study-nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .cs-hero {
        padding: 60px 0 40px;
    }
    
    .cs-main-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 16px;
    }
    
    .cs-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
}


\n/* Image showcase */\n.image-showcase { padding: 80px 0; }\n.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }\n.image-card { overflow: hidden; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); }\n.image-card img { width: 100%; height: auto; display: block; transition: transform .4s ease; }\n.image-card:hover img { transform: scale(1.03); }

/* Emoji-free icon replacements */
\.service-icon,\.reason-icon,\.philosophy-icon{--icon-size:24px;display:inline-block;width:var(--icon-size);height:var(--icon-size);position:relative;color:currentColor}
/* diamond */
.service-icon::before{content:"";position:absolute;inset:0;margin:auto;width:14px;height:14px;background:currentColor;transform:rotate(45deg);border-radius:2px;opacity:.95}
/* circled check */
.reason-icon{border:2px solid currentColor;border-radius:50%}
.reason-icon::before{content:"";position:absolute;left:6px;top:7px;width:10px;height:6px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
/* three dots */
.philosophy-icon::before,.philosophy-icon::after{content:"";position:absolute;top:50%;width:5px;height:5px;background:currentColor;border-radius:50%;transform:translateY(-50%);opacity:.9}
.philosophy-icon::before{left:4px}
.philosophy-icon::after{right:4px;box-shadow:-8px 0 0 0 currentColor,8px 0 0 0 currentColor}
/* envelope */
/* CTA arrow */
.cta-button::after{content:"";display:inline-block;width:.55em;height:.55em;margin-left:8px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:translateY(1px) rotate(45deg);transition:transform .2s ease}
.cta-button:hover::after{transform:translate(2px,1px) rotate(45deg)}

/* Monochrome Icon Set (emoji-less, currentColor) */
\.service-icon,\.reason-icon,\.philosophy-icon{--icon-size:24px;display:inline-block;width:var(--icon-size);height:var(--icon-size);position:relative;vertical-align:-2px;color:currentColor}
/* Spark star via mask */
.service-icon::before{content:"";position:absolute;inset:0;margin:auto;width:100%;height:100%;background:currentColor;-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M12 2 14.8 8.2 22 10 14.8 11.8 12 18 9.2 11.8 2 10 9.2 8.2Z'/></svg>");-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:80% 80%;mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M12 2 14.8 8.2 22 10 14.8 11.8 12 18 9.2 11.8 2 10 9.2 8.2Z'/></svg>");mask-repeat:no-repeat;mask-position:center;mask-size:80% 80%}
/* Check circle (border + check) */
.reason-icon{border:2px solid currentColor;border-radius:50%}
.reason-icon::before{content:"";position:absolute;left:6px;top:7px;width:10px;height:6px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
/* Three dots */
.philosophy-icon::before,.philosophy-icon::after{content:"";position:absolute;top:50%;width:5px;height:5px;background:currentColor;border-radius:50%;transform:translateY(-50%);opacity:.9}
.philosophy-icon::before{left:4px}
.philosophy-icon::after{right:4px;box-shadow:-8px 0 0 0 currentColor,8px 0 0 0 currentColor}
/* Envelope */
/* CTA arrow */
.cta-button::after{content:"";display:inline-block;width:.55em;height:.55em;margin-left:8px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:translateY(1px) rotate(45deg);transition:transform .2s ease}
.cta-button:hover::after{transform:translate(2px,1px) rotate(45deg)}
`n/* Envelope inline SVG tweaks */`n.contact-icon{ --icon-size:28px; width:var(--icon-size); height:calc(var(--icon-size)*0.75); display:inline-block; color:currentColor; border:none; border-radius:0; }`n.contact-icon svg{ width:100%; height:100%; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round }`n
`n



/* Contact icon: inline SVG (monochrome) */
.contact-icon svg{ width:100%; height:100%; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; display:block }


/* =============================================== */
/* Icon Size Normalization (override duplicates)  */
/* =============================================== */
.service-icon, .reason-icon, .philosophy-icon {
    --icon-size: 20px; /* revert to compact size */
    width: var(--icon-size);
    height: var(--icon-size);
    display: inline-block;
    position: relative;
    vertical-align: -2px;
}

.reason-card .reason-icon {
    display: inline-block;
    width: var(--icon-size);
    height: var(--icon-size);
    margin: 0 0 12px 0; /* top-left of card */
    vertical-align: top; /* align with top of text block */
}

.contact-icon {
    --icon-size: 28px; /* keep contact a bit larger for clarity */
    width: var(--icon-size);
    height: calc(var(--icon-size) * 0.75);
    display: inline-block;
    position: relative;
}

/* =============================================== */
/* Reason Icon – precise center check inside circle */
/* Uses percentage geometry so it remains centered   */
/* even if --icon-size changes.                      */
.reason-icon {
    border: 2px solid currentColor;
    border-radius: 999px;
    box-sizing: border-box;
}

.service-card .service-icon {
    display: inline-block;
    width: var(--icon-size);
    height: var(--icon-size);
    margin: 0 0 12px 0;
    vertical-align: top;
}

/* Service Icon – diamond outline, a bit larger */
.service-icon::before{
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: calc(var(--icon-size) * 0.9);
    height: calc(var(--icon-size) * 0.9);
    border: 2px solid currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
    background: transparent;
    -webkit-mask: none; mask: none;
}
.reason-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--icon-size) * 0.48);
    height: calc(var(--icon-size) * 0.28);
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-52%, -58%) rotate(-45deg);
    box-sizing: border-box;
}

/* Contact icon – final override */
.contact-icon{ --icon-size:28px; width:var(--icon-size); height:calc(var(--icon-size)*0.75); display:inline-block; position:relative; color:currentColor }
.contact-icon svg{ width:100%; height:100%; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; display:block !important }

