/* ==========================================================================
   1. ベース設定 & 変数定義
   ========================================================================== */
:root {
    --primary-color: #0f172a;    
    --accent-color: #1e3a8a;     
    --highlight-color: #2563eb;  
    --bg-light: #f1f5f9;         
    --text-dark: #1e293b;
    --text-muted: #516075;
    --font-family: 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--highlight-color);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   2. ヘッダー
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-symbol {
    width: 24px;
    height: 24px;
    background-color: var(--highlight-color);
    border-radius: 4px;
    transform: rotate(45deg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: color 0.3s;
    position: relative;
    padding: 8px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--highlight-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: all 0.3s ease;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:last-child { bottom: 0; }

/* ==========================================================================
   3. ヒーロー・スライドショー
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--primary-color);
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 33, 62, 0.7) 0%, rgba(15, 33, 62, 0) 60%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
    margin-left: 8%;
    color: #ffffff;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    transition-delay: 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 3.8rem;
    line-height: 1.25;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

.slide-content p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.8;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    transform: translateY(-50%) scale(1.05);
}

.arrow-prev { left: 40px; }
.arrow-next { right: 40px; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    background-color: var(--highlight-color);
    transform: scale(1.3);
}

/* ==========================================================================
   4. 特徴セクション
   ========================================================================== */
.features {
    padding: 120px 0 100px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--highlight-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

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

.card {
    background: #ffffff;
    padding: 50px 35px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    z-index: 1;
}

.icon-shape {
    width: 44px;
    height: 44px;
    z-index: 2;
    position: relative;
}

.icon-shape.square {
    background-color: var(--highlight-color);
    border-radius: 6px;
}

.icon-shape.triangle {
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 44px solid var(--accent-color);
}

.icon-shape.circle {
    background-color: var(--primary-color);
    border-radius: 50%;
}

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

.card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   4.5 製品アピールセクション
   ========================================================================== */
.product-appeal {
    padding: 0 0 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* 画像エリアの装飾 */
.product-image {
    position: relative;
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    display: block;
    object-fit: cover;
}

/* 画像の後ろにあるデザイン用の四角形 */
.image-deco-box {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    z-index: -1;
}

/* 文章エリア */
.product-sub {
    font-size: 1rem;
    font-weight: 700;
    color: var(--highlight-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 24px;
}

.product-lead {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-text {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-text:last-of-type {
    margin-bottom: 36px;
}

/* レスポンシブ（スマホ・タブレット対応） */
@media (max-width: 992px) {
    .product-wrapper {
        gap: 40px;
    }
    .product-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .product-appeal {
        padding: 80px 0;
    }
    .product-wrapper {
        grid-template-columns: 1fr; /* スマホでは1カラム（縦並び）に */
        gap: 48px;
    }
    .product-image {
        padding: 0 15px; /* 装飾のハミ出し対策 */
    }
    .image-deco-box {
        top: -15px;
        left: -5px;
        width: 120px;
        height: 120px;
    }
    .product-title {
        font-size: 1.6rem;
    }
    .product-lead {
        font-size: 1.1rem;
    }
}



/* ==========================================================================
   5. 実績セクション
   ========================================================================== */
.stats {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

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

.stat-item h3 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item h3 span {
    font-size: 1.8rem;
    font-weight: 500;
    margin-left: 4px;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ==========================================================================
   6. リッチフッター
   ========================================================================== */
.footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0 0 0;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    display: inline-block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.footer-logo:hover {
    color: var(--highlight-color);
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-sns {
    display: flex;
    gap: 12px;
}

.footer-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    color: var(--accent-color);
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.footer-sns a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    letter-spacing: 0.05em;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-bottom {
    background-color: #e2e8f0;
    padding: 25px 0;
    border-top: 1px solid #cbd5e1;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.footer-sub-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

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

/* ==========================================================================
   7. スクロールアニメーション用CSS
   ========================================================================== */
.js-scroll-trigger {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-scroll-trigger.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   8. レスポンシブ対応
   ========================================================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed;
        top: 80px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #ffffff;
        padding: 40px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    .header.is-open .nav { left: 0; }
    .nav-list { flex-direction: column; gap: 24px; }
    .nav-list a { font-size: 1.1rem; }

    .header.is-open .nav-toggle span:first-child { transform: translateY(11px) rotate(45deg); }
    .header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .header.is-open .nav-toggle span:last-child { transform: translateY(-11px) rotate(-45deg); }

    .slide-content {
        margin-left: 0;
        padding: 0 24px;
        text-align: center;
    }
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; margin-bottom: 30px; margin-left: auto; margin-right: auto; }

    .slider-arrow { width: 44px; height: 44px; font-size: 1rem; }
    .arrow-prev { left: 15px; }
    .arrow-next { right: 15px; }

    .grid, .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand { grid-column: span 1; border-bottom: 1px solid #e2e8f0; padding-bottom: 30px; }
    .footer-bottom-container { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
    .footer-sub-links { flex-direction: column; gap: 12px; }
}