/* ============================================
   Fledge - Premium Light Design System
   構造設計と監査対応の専門家
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
    /* Colors - Light Professional */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.02);

    /* Accent Colors */
    --accent-orange: #F08300;
    --accent-orange-light: #FF9F33;
    --accent-orange-glow: rgba(240, 131, 0, 0.08);
    --accent-blue: #3B82F6;

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-accent: #F08300;

    /* Borders */
    --border-subtle: #e8e8e8;
    --border-accent: rgba(240, 131, 0, 0.3);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #F08300 0%, #FF9F33 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);

    /* Typography */
    --font-main: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 4px 20px rgba(240, 131, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul { list-style: none; }

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

/* ---- Utilities ---- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom:32px;
    line-height: 1.8;
}

.accent-label {
    display: inline-block;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-orange);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(240, 131, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(240, 131, 0, 0.35);
}

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

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: var(--accent-orange-glow);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(240, 131, 0, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(240, 131, 0, 0.35);
}

/* ---- Header ---- */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo img {
    height: 36px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-cta {
    margin-left: 8px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ---- Hero Section ---- */
.hero {
    margin-top: var(--header-height);
    min-height: 650px;
    padding: 80px 0 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
        url('../images/fledge-assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content .accent-label {
    color: rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content h1 .text-gradient {
    background: linear-gradient(135deg, #FFB347 0%, #FFCC70 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.8;
    max-width: 640px;
}

.hero-content .hero-copy {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Hero badge */
.hero-badge {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.hero-badge-item {
    text-align: center;
}

.hero-badge-item .number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-orange-light);
}

.hero-badge-item .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.hero-badge-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Grid overlay (unused in light mode but keep for structure) */
.hero-grid-overlay { display: none; }

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 100% !important;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 36px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-orange-glow);
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
}

.service-card-link {
    display: block;
    text-decoration: none;
}

.service-card-link .card { height: 100%; }

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
    transition: var(--transition-fast);
}

.card-arrow::after {
    content: '→';
    transition: var(--transition-fast);
}

.card:hover .card-arrow::after {
    transform: translateX(4px);
}

/* ---- 4-Axis Model ---- */
.axis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
}

.axis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition-normal);
}

.axis-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.axis-card .axis-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.axis-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.axis-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.axis-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 30px rgba(240, 131, 0, 0.25);
}

.axis-center span {
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.3;
}

/* ---- Problem Section ---- */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    gap: 0;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.problem-col { padding: 32px; }

.problem-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-vs span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-orange-glow);
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--accent-orange);
}

.problem-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.problem-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.problem-list li::before {
    content: '×';
    color: #ef4444;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.problem-list.solution li::before {
    content: '✓';
    color: var(--accent-orange);
}

/* ---- Comparison Table ---- */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table thead th {
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.comparison-table thead th:last-child {
    color: var(--accent-orange);
}

.comparison-table tbody td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table tbody td:last-child {
    color: var(--accent-orange);
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background: var(--accent-orange-glow);
}

/* ---- Steps ---- */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.step-item {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 32px;
}

.step-item:last-child { padding-bottom: 0; }

.step-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-orange-glow);
    border: 2px solid var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-orange);
    flex-shrink: 0;
    z-index: 1;
}

.step-connector {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--accent-orange), var(--border-subtle));
    margin-top: 4px;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- FAQ Accordion ---- */
.faq-list { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover { border-color: #ccc; }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: var(--transition-fast);
}

.faq-question:hover { background: #eef0f3; }

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

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

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

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-secondary);
}

.cta-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 60px 40px;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: var(--shadow-md);
}

.cta-inner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: none !important;
}

.cta-inner p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Contact Strip */
.contact-strip {
    background: var(--text-primary);
    padding: 60px 0;
    text-align: center;
}

.contact-strip h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.contact-strip p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

/* ---- Page Header ---- */
.page-header {
    margin-top: var(--header-height);
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 131, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header .accent-label {
    color: rgba(255,255,255,0.6);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* ---- Content Blocks ---- */
.content-block {
    max-width: 100% !important; 
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-orange);
}

.content-block h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-block h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.9;
}

.content-block ul {
    margin: 12px 0 20px 20px;
}

.content-block ul li {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.9;
    padding: 4px 0;
    list-style-type: disc;
}

/* ---- Info Table ---- */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin: 24px 0;
}

.info-table th,
.info-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.93rem;
}

.info-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    width: 30%;
}

.info-table td {
    color: var(--text-secondary);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* ---- Form Styles ---- */
.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-label .required {
    color: #ef4444;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(240, 131, 0, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ---- Footer ---- */
footer {
    background: #1a1a2e;
    color: #fff;
    border-top: 1px solid #333;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-col p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

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

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

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

.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.2s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }

/* ---- Decorative ---- */
.glow-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 0 auto 24px;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    margin: 60px 0;
}

/* ---- 404 ---- */
.error-page {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page p {
    color: var(--text-secondary);
    margin: 16px 0 32px;
}

/* ---- Service Grid (legacy) ---- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 36px;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* ====== Nav Menu under 1024 ====== */
    .mobile-menu-toggle { 
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 32px 32px;
        z-index: 1000;
        gap: 4px;
    }

    .nav-menu.active { display: flex; }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 16px;
    }

    .nav-cta { margin-left: 0; margin-top: 16px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }

    .hero { min-height: auto; padding: 60px 0 80px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .hero-lead { font-size: 1rem; }

    .card-grid,
    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .axis-grid { grid-template-columns: 1fr; }
    .axis-center { display: none; }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .problem-vs { justify-content: flex-start; }

    .hero-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 30px;
        flex-wrap: wrap;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15);
    }

    .page-header { padding: 60px 0 40px; }
    .page-header h1 { font-size: 2rem; }

    .footer-grid { grid-template-columns: 1fr; }

    .cta-inner {
        padding: 40px 24px;
    }
    .cta-inner h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }

    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn { width: 100%; }

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

/* ---- Selection ---- */
::selection {
    background: rgba(240, 131, 0, 0.2);
    color: var(--text-primary);
}
/* ---- Page Top Link ---- */
#pageTopLink {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

#pageTopLink a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(43, 45, 66, 0.9);
    color: #fff;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
}

#pageTopLink a:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

/* ---- AForm Styling ---- */
.section form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* 基本の入力フィールド */
.section form input[type="text"],
.section form input[type="email"],
.section form input[type="tel"],
.section form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition-fast);
    margin-top: 8px;
    margin-bottom: 24px;
    font-family: inherit;
    background: #fafafa;
}

.section form input[type="text"]:focus,
.section form input[type="email"]:focus,
.section form input[type="tel"]:focus,
.section form textarea:focus {
    border-color: var(--accent-orange);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 131, 0, 0.1);
}

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

/* 必須マーク（よくあるクラス名対応） */
.section form .require,
.section form .aform-required {
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 12px;
    display: inline-block;
    vertical-align: middle;
}

/* ラジオボタンやチェックボックス周り */
.section form input[type="radio"],
.section form input[type="checkbox"] {
    margin-right: 6px;
    margin-bottom: 12px;
    transform: scale(1.1);
    vertical-align: middle;
}

/* テーブルレイアウトの場合の調整 */
.section form table {
    width: 100%;
    border-collapse: collapse;
}

.section form th,
.section form td {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: block; /* モバイルでは縦並び */
    text-align: left;
}

/* デスクトップ表示のテーブル */
@media (min-width: 768px) {
    .section form th,
    .section form td {
        display: table-cell;
        padding: 24px 16px;
    }
    .section form th {
        width: 30%;
        background: var(--bg-secondary);
        font-weight: 700;
        vertical-align: top;
        border-right: 1px dashed var(--border-subtle);
    }
}

/* 送信・確認ボタン */
.section form input[type="submit"],
.section form input[type="button"],
.section form button {
    background: var(--gradient-accent);
    color: #fff;
    padding: 16px 48px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    display: block;
    margin: 40px auto 0;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(240, 131, 0, 0.2);
}

.section form input[type="submit"]:hover,
.section form input[type="button"]:hover,
.section form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 131, 0, 0.35);
}

.section form .button-wrap,
.section form .aform-submitBtn {
    text-align: center;
}

.aform-header{
    display:none !important;
}