/* ==========================================
   Global Styles & Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラー定義 */
    --brand-orange: #F97316;
    --brand-blue: #3B82F6;
    --brand-green: #10B981;
    --brand-yellow: #FCD34D;
    
    /* 背景色 */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-cream: #FFF7ED;
    --bg-orange-light: #FFF7ED;
    --bg-blue-light: #EFF6FF;
    --bg-gray-light: #F3F4F6;
    
    /* テキスト色 */
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    
    /* シャドウ - シンプル化 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px 0 rgba(0, 0, 0, 0.07);
    --shadow-xl: 0 8px 12px 0 rgba(0, 0, 0, 0.08);
    
    /* その他 */
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* ==========================================
   Header
   ========================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 72px;
    width: auto;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--brand-orange);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    padding: 80px 0;
    background: url('../images/hero-bg-new.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #FED7AA;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-orange);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    color: white;
}

.highlight-text {
    color: var(--brand-yellow);
}

.underline-text {
    position: relative;
    display: inline-block;
}

.underline-text::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(253, 224, 71, 0.5);
    z-index: -1;
}

.hero-description {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.btn-orange {
    background: var(--brand-orange);
    color: white;
}

.btn-orange:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    color: var(--brand-orange);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-label {
    display: block;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: white;
}

.stat-number.orange {
    color: var(--brand-yellow);
}

.stat-text {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

/* ==========================================
   Problem Section
   ========================================== */
.problem-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.section-tag.orange {
    color: var(--brand-orange);
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title.white {
    color: white;
}

.section-title.center {
    text-align: center;
}

.highlight-border {
    border-bottom: 4px solid #FED7AA;
    color: var(--brand-orange);
}

.highlight-blue {
    color: var(--brand-blue);
}

.section-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

.section-description.white {
    color: rgba(255, 255, 255, 0.9);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid;
}

.problem-card.orange {
    background: #FFF7ED;
    border-color: #FED7AA;
}

.problem-card.blue {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.problem-card.gray {
    background: #F9FAFB;
    border-color: #E5E7EB;
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
    font-size: 32px;
}

.problem-card.orange .problem-icon {
    color: var(--brand-orange);
}

.problem-card.blue .problem-icon {
    color: var(--brand-blue);
}

.problem-card.gray .problem-icon {
    color: var(--text-gray);
}

.problem-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.problem-stat {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--brand-orange);
}

.problem-subtitle {
    display: block;
    font-size: 20px;
}

.problem-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==========================================
   Solution Section
   ========================================== */
.solution-section {
    padding: 80px 0;
    background: #F9FAFB;
    color: var(--text-dark);
    position: relative;
}

.solution-section::before {
    display: none;
}

.section-header.white .section-tag {
    color: var(--brand-orange);
}

.section-header.light .section-title {
    color: var(--text-dark);
}

.section-header.light .section-description {
    color: var(--text-gray);
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.feature-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    background: white;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid #E0E7FF;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #BFDBFE;
}

.feature-box.reverse {
    direction: rtl;
}

.feature-box.reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.feature-badge.blue {
    background: var(--brand-blue);
}

.feature-badge.orange {
    background: var(--brand-orange);
}

.feature-badge.green {
    background: var(--brand-green);
}

.feature-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--text-dark);
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-list i {
    font-size: 16px;
}

.feature-box:nth-child(1) .feature-list i {
    color: var(--brand-blue);
}

.feature-box:nth-child(2) .feature-list i {
    color: var(--brand-orange);
}

.feature-box:nth-child(3) .feature-list i {
    color: var(--brand-green);
}

.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid #E0E7FF;
}

/* ==========================================
   Case Study Section
   ========================================== */
.case-section {
    padding: 80px 0;
    background: #FFF7ED;
    position: relative;
}

.case-section::before {
    display: none;
}

.case-section .container {
    position: relative;
    z-index: 1;
}

.case-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #F3F4F6;
    margin-bottom: 48px;
}

.case-image {
    position: relative;
    min-height: 250px;
}

.case-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--brand-orange);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.case-content {
    padding: 40px;
}

.case-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.case-location {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    background: #FFF7ED;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-box .stat-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.stat-box .stat-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-orange);
}

.case-quote {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    border-left: 4px solid var(--brand-orange);
    padding-left: 16px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-mini {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3F4F6;
}

.case-mini-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-icon.blue {
    background: #EFF6FF;
    color: var(--brand-blue);
}

.mini-icon.green {
    background: #ECFDF5;
    color: var(--brand-green);
}

.mini-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.mini-location {
    font-size: 12px;
    color: var(--text-gray);
}

.mini-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.mini-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F9FAFB;
    padding: 12px;
    border-radius: 8px;
}

.result-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
}

.result-value {
    font-size: 16px;
    font-weight: 900;
}

.result-value.blue {
    color: var(--brand-blue);
}

.result-value.green {
    color: var(--brand-green);
}

/* ==========================================
   Comparison Section
   ========================================== */
.comparison-section {
    padding: 80px 0;
    background: white;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table thead {
    background: #F9FAFB;
}

.header-cell {
    padding: 16px;
    text-align: center;
    font-weight: 700;
}

.header-cell.gray {
    color: var(--text-gray);
}

.header-cell.orange {
    background: var(--brand-orange);
    color: white;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.recommend-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #DC2626;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

.label-cell {
    padding: 16px;
    font-weight: 700;
    background: #F9FAFB;
    text-align: left;
    color: var(--text-dark);
}

.gray-cell {
    padding: 16px;
    text-align: center;
    color: var(--text-gray);
    border-bottom: 1px solid #F3F4F6;
}

.orange-cell {
    padding: 16px;
    text-align: center;
    font-weight: 700;
    color: var(--brand-orange);
    background: #FFF7ED;
    border-bottom: 1px solid #FED7AA;
}

.small-text {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 4px;
}

/* ==========================================
   Steps Section
   ========================================== */
.steps-section {
    padding: 80px 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.steps-section .container {
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.step-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #F3F4F6;
    text-align: center;
    position: relative;
}

.step-number {
    width: 96px;
    height: 96px;
    background: var(--brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    margin: 0 auto 24px;
    border: 8px solid white;
    box-shadow: var(--shadow-sm);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 96px 0;
    background: #F97316;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 24px;
}

.highlight-yellow {
    color: var(--brand-yellow);
}

.cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.9;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto 40px;
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 4px;
    margin-left: 4px;
}

.required {
    color: #DC2626;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    background: #F9FAFB;
    color: var(--text-dark);
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, var(--brand-orange), #DC2626);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    margin-top: 16px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.form-note {
    font-size: 12px;
    color: #9CA3AF;
    text-align: center;
    margin-top: 16px;
}

.contact-phone {
    margin-top: 40px;
}

.phone-label {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 8px;
}

.phone-number {
    display: inline-block;
    font-size: 40px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    font-family: monospace;
    transition: var(--transition);
}

.phone-number:hover {
    color: var(--brand-yellow);
}

.phone-hours {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.8;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: #1F2937;
    color: #9CA3AF;
    padding: 60px 0;
    font-size: 21px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 36px;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 36px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: #6B7280;
}

/* ==========================================
   Scroll to Top Button
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    background: #ea580c;
}

/* ==========================================
   Scroll Animation Classes
   ========================================== */
.problem-card,
.feature-box,
.case-mini,
.step-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-card.is-visible,
.feature-box.is-visible,
.case-mini.is-visible,
.step-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .feature-box,
    .case-main {
        grid-template-columns: 1fr;
    }
    
    .problem-grid,
    .case-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 112px 0 120px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-large {
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .problem-grid,
    .case-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .phone-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .contact-form {
        padding: 24px 16px;
    }
}