/* --- 基本設定 --- */
html, body {
  margin: 0; padding: 0; font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', "Helvetica Neue", Arial, sans-serif; color: #333; line-height: 1.7;
}
a { color: #72AEE6; text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
a:hover { text-decoration: underline; opacity: 0.8; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* LP Common Header & Footer Styles */
.lp-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.lp-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.lp-header__logo img {
    height: 40px;
}
.lp-cta-button { /* General LP CTA Button Style */
    background-color: #e60012; /* Fukumi Red */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block; /* Ensure proper spacing and alignment */
    text-align: center;
}
.lp-cta-button:hover {
    background-color: #c00; /* Darker Red on hover */
}
.lp-footer { /* Simple Footer for LPs */
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive Styles for LP Header/Footer */
@media (max-width: 768px) {
    .lp-header__container {
        flex-direction: column;
        gap: 15px;
    }
    .lp-cta-button { /* Make CTA full width on mobile */
        width: 100%;
        box-sizing: border-box; /* Include padding in width */
    }
}

/* Common Footer Section Styles (used in some LPs like export-agent) */
.main-footer {
    background-color: #2c3e50; /* Dark Blue-Gray */
    color: #ecf0f1; /* Light Gray text */
    padding: 50px 0;
}
/* Define --primary-color and --secondary-color if not defined globally in lp-common scope */
/* Moved variables inside :root for better practice */
:root {
  --primary-color: #0A1E3E; /* Ensure variables are available */
  --secondary-color: #72AEE6;
  /* Add other root variables if needed */
  --text-color: #333;
  --bg-color: #f4f7f6;
  --card-bg-color: #ffffff;
}
.company-table {
    width: 100%;
    max-width: 800px; /* Limit width */
    margin: 30px auto; /* Centered with spacing */
    color: #bdc3c7; /* Lighter gray for table text */
    border-collapse: collapse; /* Clean borders */
}
.company-table td {
    padding: 12px 15px; /* Adjust padding */
    border-bottom: 1px solid #34495e; /* Subtle border */
    vertical-align: top; /* Align content to top */
}
.company-table td:first-child { /* Table Headers (TH simulated with TD) */
    font-weight: bold;
    width: 30%; /* Fixed width for labels */
    color: #fff; /* White labels */
    padding-right: 20px; /* Space between label and value */
}
.company-table ul { /* Lists inside table */
    margin: 0;
    padding-left: 1.2em;
}
.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #7f8c8d; /* Dimmed copyright text */
}
/* Responsive Table */
@media (max-width: 600px) {
    .company-table td {
        display: block; /* Stack cells vertically */
        width: 100%;
        box-sizing: border-box;
        border-bottom: none; /* Remove bottom border between stacked cells */
        padding: 8px 10px;
    }
    .company-table td:first-child {
        background-color: #34495e; /* Highlight the label */
        margin-bottom: 2px; /* Space between label and value */
        border-radius: 4px 4px 0 0;
    }
    .company-table tr {
        display: block;
        margin-bottom: 15px; /* Space between table rows */
        border: 1px solid #34495e; /* Border around each stacked row */
        border-radius: 4px;
    }
     .company-table td:last-child {
         border-bottom: none; /* Remove border for the last cell in stack */
     }
}


/* LP Sticky Navigation Style */
.lp-sticky-nav {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0; /* Adjust if header height changes */
    z-index: 999;
    background-color: #343a40; /* Match simple footer */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.lp-sticky-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    list-style: none;
    margin: 0;
    padding: 0;
}
.lp-sticky-nav li {
    flex-grow: 1; /* Distribute space evenly */
    text-align: center;
}
.lp-sticky-nav a {
    display: block;
    padding: 12px 15px;
    color: #f8f9fa;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border-right: 1px solid #495057; /* Separator */
}
.lp-sticky-nav li:last-child a {
    border-right: none;
}
.lp-sticky-nav a:hover {
    background-color: #495057; /* Darker background on hover */
    text-decoration: none;
}
/* Responsive Sticky Nav */
@media (max-width: 768px) {
    .lp-sticky-nav li {
       flex-basis: 33.33%; /* 3 items per row */
       flex-grow: 0;
    }
     .lp-sticky-nav a {
         border-right: none;
         border-bottom: 1px solid #495057;
         font-size: 0.85rem;
         padding: 10px;
     }
     /* Remove bottom border from last row items */
     .lp-sticky-nav li:nth-last-child(-n+3) a {
         /* Needs adjustment based on actual item count if not a multiple of 3 */
          border-bottom: none;
     }
}
@media (max-width: 480px) {
    .lp-sticky-nav li {
        flex-basis: 50%; /* 2 items per row */
    }
     /* Remove bottom border from last row items */
     .lp-sticky-nav li:nth-last-child(-n+2) a {
          border-bottom: none;
     }
}


/* --- Unified Accordion Styles (Vanilla JS) --- */
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden; /* Ensures content stays within bounds during animation */
    background-color: #fff; /* White background */
}
.accordion-header {
    width: 100%;
    background-color: #f9f9f9; /* Light gray background for header */
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color); /* Use CSS Variable */
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Pushes icon to the right */
    align-items: center; /* Vertically aligns text and icon */
    transition: background-color 0.3s ease;
}
.accordion-header:hover {
    background-color: #f0f0f0; /* Slightly darker on hover */
}
.accordion-icon { /* Style for the Font Awesome icon */
    transition: transform 0.3s ease-in-out; /* Smooth rotation */
    color: var(--secondary-color); /* Use CSS Variable */
    font-size: 1rem; /* Adjust icon size if needed */
}
.accordion-content {
    max-height: 0; /* Initially collapsed */
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* Smooth transition for height */
    padding: 0 20px; /* Horizontal padding, applied when open */
    background-color: #fff; /* Ensure content background is white */
    color: var(--text-color); /* Use CSS Variable */
    line-height: 1.7;
}
/* Styles when accordion is active/open */
.accordion-item.active .accordion-icon {
    transform: rotate(180deg); /* Rotate icon */
}
.accordion-item.active .accordion-content {
    /* max-height is set dynamically by JS based on scrollHeight */
    padding-top: 1rem; /* Vertical padding when open */
    padding-bottom: 1rem;
    border-top: 1px solid #e0e0e0; /* Separator line */
}


/* --- Unified Slider Styles (Vanilla JS - Swiper.js) --- */
.swiper-container {
    width: 100%;
    padding: 50px 0; /* Vertical padding for spacing */
    overflow: hidden; /* Hide non-visible slides, required by Swiper */
}
.swiper-slide {
    width: 60%; /* Adjust width for coverflow effect - shows parts of prev/next */
    max-width: 500px; /* Max width for larger screens */
    height: auto; /* Let content define height (works with autoHeight: true) */
    background: var(--card-bg-color); /* Use CSS Variable */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); /* Softer shadow */
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden; /* Ensures content/pseudo-elements stay within bounds */
    transition: transform 0.4s ease, opacity 0.4s ease; /* Smooth transitions */
    display: flex; /* Use flex for content alignment if needed */
    flex-direction: column; /* Stack content vertically */
}
/* Background Color Filter using Pseudo-element */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Background color is set by JS using CSS variable --slide-filter-color */
    background-color: var(--slide-filter-color, transparent);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease;
    z-index: 1; /* Below content */
}
/* Show filter only on the active slide */
.swiper-slide.swiper-slide-active::before {
    opacity: 0.20; /* Adjust transparency level */
}
/* Content within the slide */
.slide-content {
    padding: 2rem; /* Padding around content */
    position: relative; /* Ensure content is above pseudo-element */
    z-index: 2; /* Above pseudo-element */
    color: var(--text-color); /* Use CSS Variable */
    line-height: 1.7;
}
/* --- ▼▼▼ 最終修正: 直接カラーコード指定 + !important ▼▼▼ --- */
.swiper-slide .slide-content h3 {
    display: flex;
    align-items: center; /* Vertically align icon and text */
    font-size: 1.25rem !important; /* Larger, bold title */
    font-weight: 700 !important;
    color: #0A1E3E !important; /* ★ Directly use the hex code for primary color */
    margin: 0 0 1rem 0 !important; /* Remove default top margin, add bottom margin */
}
/* --- ▲▲▲ 修正ここまで ▲▲▲ --- */
.slide-content h3 i { /* Icon styling */
    margin-right: 0.75rem; /* Space between icon and text */
    width: 24px; /* Fixed width for alignment */
    text-align: center;
    color: var(--secondary-color); /* Icon color */
}
.slide-content p {
    margin: 0; /* Remove default paragraph margins */
}
.slide-content img { /* Ensure images within slides are responsive */
    max-width: 100%;
    height: auto;
    margin-top: 1rem; /* Space above image */
    border-radius: 4px; /* Optional: slight rounding */
}

/* Coverflow Effect Specific Styles */
.swiper-coverflow .swiper-slide {
    /* Potential adjustments for coverflow */
}
/* Scale down non-active slides */
.swiper-coverflow .swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.66);
    opacity: 0.7; /* Optional: slightly fade non-active slides */
}
/* Ensure active slide is fully scaled and opaque */
.swiper-coverflow .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

/* Swiper Navigation/Pagination Styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color); /* Dark blue arrows */
    --swiper-navigation-size: 30px; /* Adjust arrow size */
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    border-radius: 50%;
    width: 44px; /* Increase clickable area */
    height: 44px;
    transition: background-color 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
     background-color: rgba(255, 255, 255, 0.9);
}
.swiper-button-next::after, /* Position arrows correctly */
.swiper-button-prev::after {
    font-size: 18px; /* Adjust icon size within button */
}

.swiper-pagination {
    position: relative; /* Position below slider */
    margin-top: 20px; /* Space between slider and dots */
    bottom: auto; /* Reset default bottom positioning */
}
.swiper-pagination-bullet { /* Default dot style */
    background: #ccc;
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: background-color 0.3s ease;
}
.swiper-pagination-bullet-active { /* Active dot style */
    background: var(--primary-color); /* Dark blue active dot */
    width: 12px; /* Slightly larger active dot */
    height: 12px;
}

/* Unified Form Styles (used by form.js, can be basic) */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--text-color); }
.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Include padding in width */
    background-color: #fff; /* Ensure white background */
    color: var(--text-color);
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color); /* Highlight on focus */
    box-shadow: 0 0 0 2px rgba(114, 174, 230, 0.3);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit-button { /* General Submit Button Style */
    display: inline-block;
    background-color: #e60012; /* Match LP CTA */
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}
.form-submit-button:hover { background-color: #c00; }
.form-submit-button:disabled { background-color: #ccc; cursor: not-allowed; opacity: 0.7; }
span.haveto { /* Required field indicator */
    color: #e60012;
    font-size: 0.8em;
    margin-left: 0.3em;
    font-weight: normal;
}
/* Style for validation errors (form.js adds 'error' class to parent dd or .form-group) */
.form-group.error .form-label,
dd.error > label, /* Target label if it's direct child of dd.error */
dd.error { /* Add styles for visual feedback, e.g., red text or border */
    color: #e60012 !important; /* Force color change */
}
.form-group.error .form-input,
.form-group.error .form-textarea,
dd.error input, /* Target inputs within dd.error */
dd.error textarea,
dd.error select {
    border-color: #e60012 !important; /* Force border color change */
    background-color: #fffafa; /* Optional: Light pink background */
}


/* Loading Overlay and Thanks Animation */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; /* Cover entire screen */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 10000; /* Ensure it's on top */
    display: flex; /* Center the spinner */
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Not interactive when hidden */
    transition: opacity 0.3s ease-in-out;
}
.loading-overlay.active {
    opacity: 1; /* Show when active */
    pointer-events: auto; /* Allow interaction if needed (though usually not) */
}
.spinner {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid var(--secondary-color); /* Site blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.thanks-animation {
    background: #28a745; /* Success green */
    color: white;
    padding: 25px 50px;
    border-radius: 10px;
    font-size: 1.2em;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
    position: fixed; /* Center on screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%); /* Start slightly above center */
    z-index: 10001; /* Above loading overlay */
}
.thanks-animation.active {
    opacity: 1; /* Show */
    pointer-events: auto; /* Allow interaction if needed */
    transform: translate(-50%, -50%); /* Move to exact center */
}

/* Utility class for Text Marker (from common.css) */
.marker-yellow {
  background: linear-gradient(transparent 60%, #ffff99 60%);
}