@charset "UTF-8";

/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    --color-primary: #007ACC;
    --color-secondary: #1E293B;
    --color-accent: #F59E0B;
    --color-accent-hover: #ea580c;
    --color-text-main: #334155;
    --color-text-light: #64748b;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #0f172a;
    --font-base: 'Noto Sans JP', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --container-width: 1280px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Utilities & Layout
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
    width: 100%;
}

.section-light {
    background-color: var(--color-bg-light);
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: #fff;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--color-primary); }
.text-red { color: #ef4444; }

/* 修正: hiddenクラスを追加して非表示を強制 */
.hidden {
    display: none !important;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--color-text-light);
    margin-top: 1rem;
}

/* Grid System helper */
.grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex helper */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-cta-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-submit {
    width: 100%;
    background-color: var(--color-accent);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    /* ↓修正: デフォルトの枠線を消し、カーソルを指定 */
    border: none;
    cursor: pointer;
}
.btn-submit:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.02);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 50;
    transition: all 0.2s;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.desktop-nav {
    display: none;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}
.desktop-nav a:not(.btn-accent):hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}
#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #334155;
    font-weight: 500;
}
.mobile-nav-link:hover {
    background-color: #f8fafc;
    color: var(--color-primary);
}

@media (min-width: 1024px) {
    .desktop-nav { display: flex; }
    .mobile-menu-btn { display: none; }
    #mobile-menu { display: none; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
    background: linear-gradient(to bottom right, #eff6ff, #ffffff);
    overflow: hidden;
    position: relative;
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-catch {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.hero-underline {
    position: relative;
    display: inline-block;
}
.hero-underline svg {
    position: absolute;
    width: 100%;
    height: 0.75rem;
    bottom: -0.25rem;
    left: 0;
    color: #fde047; /* yellow-300 */
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background-color: #2563eb;
    color: #fff;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #0f172a;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.point-circle {
    width: 7rem;
    height: 7rem;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-col: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 4px solid var(--color-accent);
    color: var(--color-primary);
    font-weight: 900;
    font-size: 0.875rem;
    line-height: 1.2;
    box-shadow: var(--shadow-xl);
    position: relative;
    transition: transform 0.3s;
}
.point-circle:hover {
    transform: scale(1.1);
}
.point-label {
    position: absolute;
    top: -0.75rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.625rem;
    padding: 0.125rem 0.75rem;
    border-radius: 9999px;
    border: 2px solid #fff;
}

.hero-image-wrapper {
    position: relative;
    margin-top: 2rem;
    transform: rotate(2deg);
    transition: transform 0.5s;
    background: #fff;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid #f1f5f9;
}
.hero-image-wrapper:hover {
    transform: rotate(0);
}
.hero-img-inner {
    background: #f1f5f9;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 5/6;
    position: relative;
}
.hero-float-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-10%); }
    50% { transform: translateY(0); }
}

@media (min-width: 1024px) {
    .hero-section { padding-top: 7rem; }
    .hero-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 3rem;
        align-items: center;
    }
    .hero-content {
        grid-column: span 7;
        text-align: left;
        margin-bottom: 0;
    }
    .hero-image-area {
        grid-column: span 5;
    }
    .hero-title { font-size: 3.75rem; }
    .hero-points { justify-content: flex-start; }
}

/* ==========================================================================
   Logo Scroll
   ========================================================================== */
.logo-scroll-section {
    padding: 1.25rem 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}
.logo-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.logo-slider {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
}
.logo-track {
    display: flex;
    gap: 4rem;
    animation: infinite-scroll 40s linear infinite;
    padding-right: 4rem;
}
.logo-scroll-section:hover .logo-track {
    animation-play-state: paused;
}
.logo-track img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}
.fade-mask-left, .fade-mask-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4rem;
    z-index: 10;
    pointer-events: none;
}
.fade-mask-left {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.fade-mask-right {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.problem-icon {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Features Section (Reasons)
   ========================================================================== */
.feature-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-0.25rem);
}
.feature-img-wrapper {
    height: 12rem;
    position: relative;
    overflow: hidden;
}
.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.feature-card:hover .feature-img-wrapper img {
    transform: scale(1.05);
}
.feature-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}
.feature-content {
    padding: 2rem;
}
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Service Examples
   ========================================================================== */
.service-bg {
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}
.service-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#007ACC 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.05;
}
.service-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-0.5rem);
}
.service-bar {
    height: 0.5rem;
    background: var(--color-primary);
    width: 100%;
}
.service-card-body {
    padding: 2rem;
}
.service-icon-box {
    width: 4rem;
    height: 4rem;
    background: #eff6ff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin: 0 auto 1.5rem auto;
    transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-icon-box {
    background: var(--color-primary);
    color: #fff;
}
.service-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #475569;
}
.service-list-item:hover {
    background: #f8fafc;
}
.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Software Tags */
.software-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
}
.tag {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
    border-width: 1px;
    border-style: solid;
}
/* 個別色はHTML側でstyle属性で入れるか、以下のように定義 */
.tag-yayoi { background: #fefce8; color: #a16207; border-color: #fef08a; }
.tag-freee { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
/* ... (他のソフトも同様に定義可能ですが、簡略化のためクラス例としています) */

/* ==========================================================================
   Assistants Section
   ========================================================================== */
.staff-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
}
.staff-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.staff-img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}
.staff-spec-box {
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 0.25rem;
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}
.pricing-table {
    min-width: 100%;
    border-collapse: collapse;
}
.pricing-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    white-space: nowrap;
}
.pricing-table th:first-child { text-align: left; }
.pricing-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    white-space: nowrap;
}
.pricing-table td:first-child { text-align: left; }

.plan-name { font-size: 0.875rem; font-weight: 700; }
.plan-title { font-size: 1.125rem; font-weight: 700; color: var(--color-primary); }
.plan-price { font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.plan-sub { font-size: 0.75rem; color: #64748b; }

.row-highlight {
    background-color: rgba(239, 246, 255, 0.3);
}
.row-standard {
    background-color: rgba(254, 252, 232, 0.5);
    border-left: 4px solid var(--color-primary);
}
.badge-popular {
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 0 0 4px 0;
    position: absolute;
    top: 0;
    left: 0;
    font-weight: bold;
}

/* ==========================================================================
   Flow Section
   ========================================================================== */
.flow-container {
    position: relative;
}
.flow-line {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    background: #f1f5f9;
    z-index: 0;
}
@media (min-width: 768px) {
    .flow-line { display: block; }
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}
.flow-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}
.flow-num-primary {
    background: var(--color-primary);
    color: #fff;
}
.flow-num-outline {
    background: #fff;
    border: 4px solid var(--color-primary);
    color: var(--color-primary);
}
.flow-num-green {
    background: #22c55e;
    color: #fff;
}

@media (min-width: 768px) {
    .flow-step {
        flex-direction: row;
    }
    .flow-step-reverse {
        flex-direction: row-reverse;
    }
    .flow-content {
        width: 50%;
    }
    .flow-content-left { text-align: right; }
    .flow-content-right { text-align: left; }
    .flow-spacer { width: 50%; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}
.faq-summary {
    padding: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon {
    transition: transform 0.3s;
}
details[open] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #475569;
    font-size: 0.875rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-section {
    position: relative;
    background-color: var(--color-primary);
    color: #fff;
}
.contact-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}
.form-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-2xl);
    color: #334155;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #334155;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}
.form-errors {
    background-color: #ffffff; /* 白背景 */
    color: #dc2626; /* 赤文字 (#ef4444でもOK) */
    border: 1px solid #fca5a5; /* 淡い赤の枠線 */
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-weight: 600;
    list-style: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.form-errors ul {
    margin: 0;
    padding-left: 1.2em;
}
.form-errors li {
    margin-bottom: 4px;
}
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: background 0.2s;
}
.drop-zone:hover, .drop-zone.drag-active {
    background-color: #f8fafc;
    border-color: var(--color-primary);
}
.file-upload-label {
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
}
.file-upload-label:hover {
    text-decoration: underline;
}

/* Error Message */
.error-box {
    background: #fee2e2;
    border: 1px solid #f87171;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 3rem;
    padding-bottom: 3rem;
    font-size: 0.875rem;
}
.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
    display: inline-block;
}
.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}
.footer-links a:hover {
    color: #fff;
}
.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.75rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}