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

body {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.circle , .circle01 , .circle02{
    margin: -250px 0 0 0;
    height: 400px;
    width: 100%;
    clip-path: ellipse(100% 100% at 50% 0%);
    z-index: 99;
}    
.circle{
    background-color: #5b4fc8;
}    
.circle01 , .cbg02{
    background-color: #F4F8FA;
}    
.circle02 , .cbg01{
    background-color: #E8EEF1;
}

/* ヒーロー背景画像のフェードイン */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(img/top_mv.png) right top / cover no-repeat;
    background-size: 95%;
    opacity: 0;
    transition: opacity 1.2s ease-out;
    z-index: 1;
}

.hero.bg-visible::before {
    opacity: 1;
}

/* ヒーローセクションのコンテンツを前面に */
.hero > * {
    position: relative;
    z-index: 2;
}

/* ヒーローセクションのアニメーション */
.title-text span {
    display: block;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.title-text span.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.subtitle-box {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.subtitle-box.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* フェードインアニメーション用のスタイル */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 各要素に遅延を追加 */
.fade-in-element:nth-child(1) {
    transition-delay: 0s;
}

.fade-in-element:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-in-element:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-in-element:nth-child(4) {
    transition-delay: 0.3s;
}

.fade-in-element:nth-child(5) {
    transition-delay: 0.4s;
}

.fade-in-element:nth-child(6) {
    transition-delay: 0.5s;
}

/* Hero Section */
.hero {
    background:right top / cover no-repeat #5b4fc8;
    background-size: 95%;
    color: white;
    padding: 40px 0 0 0;
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 60px;
    text-align: left;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2;
    text-align: left;
    overflow: visible;
}

.hero h1 {
    font-size: 90px;
    font-weight: bold;
    margin-bottom: 0;
    letter-spacing: 3px;
    line-height: 1.1;
    text-align: left;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: nowrap;
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 0;
}

.hero h1 .title-text {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

.hero h1 .title-text span {
    display: block;
}
.hero h1 .title-text span::first-letter{
    font-size: 150%;
    display: block;
}

.hero h1 .subtitle-box {
    background: white;
    color: #5b4fc8;
    padding: 12px 40px;
    padding-right: 1000px;
    font-size: 26px;
    letter-spacing: 1px;
    margin-left: auto;
    margin-bottom: 27px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.hero-section-title {
    font-size: 28px;
    margin-top: 80px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
}

.hero-description {
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn-wrapper {
    margin: 0 auto;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 15px 50px;
    border: 2px solid white;
    background-color: #0F4AC0;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    background: white;
    color: #5b4fc8;
}

/* Section Styles */
section {
    padding: 80px 20px 0px;
    position: relative;
    overflow: visible;
}

.sbg01 {
    background: #E8EEF1;
}

.sbg02 {
    background: #F4F8FA;
}

section > .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 44px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #2c2c2c;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 60px;
    margin-top: 5px;
    position: relative;
    padding-left: 60px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 5px;
    background: #5b4fc8;
    border-radius: 5px;
}

/* Product Section - 修正箇所 */
.products {
    display: flex;
    flex-wrap: wrap;
    margin-top: -120px;
    position: relative;
}

.product-box01{
    margin: 12%  auto 0;
}
.product-box02{
    margin:0 auto;
}

.product-card {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    min-height: 200px;
    position: relative;
    max-width: 550px;
}

.product-card:nth-child(1) {
    align-self: flex-start;
}

.product-card:nth-child(2) {
    align-self: flex-end;
}

.product-card:nth-child(3) {
    align-self: flex-end;
}

.product-image {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}
.smartocr {
    background: #8DD4F5;
}
.denho {
    background: #84BB4D;
}
.brox {
    background: #015A81;
}

.product-card:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}



.product-image img {
    width: 400px;
    margin-right: 50%;
}

.product-info {
    flex: 1;
    padding: 40px 40px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    margin-left: -50px;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}
.product-info img{
    display: block;
    width: 200px;
    margin: 0 auto 40px;
}

.product-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.product-description {
    font-size: 15px;
    color: #555;
    line-height: 2;
    margin-bottom: 20px;
}

.product-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #5ba8e8;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.product-link:hover {
    margin-left: 12px;
    color: #015A81;
}

/* Kind Section */
.kinds {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.kind-item {
    text-align: center;
    max-width: 320px;
    background: white;
    padding: 40px 30px;
    margin-top: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.kind-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b5dd8 0%, #7b6de8 100%);
    margin: -50% auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 40px;
    line-height: 1.5;
}

.kind-name {
    display: none;
}

.kind-description {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    text-align: left;
}

/* Merit Section */
.merits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 60px;
    position: relative;
}

.merit-item {
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
}

.merit-item:nth-child(1) {
    justify-content: flex-start;
}

.merit-item:nth-child(2) {
    justify-content: flex-start;
    padding-left: 50px;
}

.merit-item:nth-child(3) {
    justify-content: flex-start;
}

.merit-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 500px;
    z-index: 3;
    position: relative;
}

.merit-item:nth-child(2) .merit-content {
    order: 2;
}

.merit-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c2c2c;
    line-height: 1.5;
}

.merit-title .highlight {
    color: #6b5dd8;
}

.merit-description {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

.merit-image {
    flex: 0 0 auto;
    z-index: 1;
    position: relative;
    margin-left: -120px;
}

.merit-image img {
    max-width: 700px;
    height: auto;
    display: block;
}

.merit-item:nth-child(2) .merit-image {
    order: 1;
    margin-left: 0;
    margin-right: -80px;
}

/* Partner Section */
.t_right{
    text-align: right;
    font-size: 14px;
    padding: 40px 10px;
}
.partner-category {
    margin-bottom: 50px;
}

.partner-category:last-child {
    margin-bottom: 0;
    padding-bottom: 120px;
}

.partner-category-title {
    font-size: 30px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c2c2c;
    padding-bottom: 10px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.partner-logo {
    background: white;
    width: 200px;
    max-width: 200px;
    height: 112px;
    border-radius: 8px;
    padding: 30px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.partner-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #6b5dd8;
    transition: width 0.4s ease-out;
}

.partner-logo:hover::after {
    width: 100%;
}
.partner-logo img {
    width: 100%;
}

.partner-logo-text {
    font-size: 20px;
    color: #2c5aa0;
    font-weight: bold;
}

.partner-logo-text-accent {
    color: #5ba8e8;
}

@media (max-width: 1024px) {
    .hero{
        background-size: 90%;
    }
    .hero h1 {
        font-size: 70px;
    }    
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #5b4fc8 0%, #6b5dd8 100%);
    color: white;
    text-align: center;
    padding: 80px 20px 80px;
    position: relative;
    overflow: visible;
}

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

.cta-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1a2b4a;
    color: white;
    padding: 60px 20px 30px;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-item {
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    background: white;
    max-width: 300px;
}

.footer-logo-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.footer-info {
    flex: 1;
}

.footer-company {
    margin-bottom: 15px;
}

.footer-company h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.footer-company p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-group-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-group-info img {
    max-width: 30px;
    height: auto;
    display: inline-block;
    margin-top: 5px;
}

.footer-group-info p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 13px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    .hero {
        background-size: 90%;
        padding: 20px 0 0;
    }
    .hero h1 {
        font-size: 45px;
        flex-direction: column;
        align-items: flex-start;
        margin-right: -20px;
        margin-left: -20px;
        padding-left: 20px;
    }

    .hero h1 .subtitle-box {
        margin-left: 0;
        margin-top: 20px;
        margin-bottom: 0;
        font-size: 16px;
        padding: 10px 20px;
        width: calc(100% + 20px);
    }
    .hero-section-title {
        font-size: 20px;
        margin-top: 40px;
    }
    .hero-description {
        font-size: 13px;
        line-height: 1.5;
    }    
    .logo {
        padding: 0 20px;
        margin-bottom: 25px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section-title {
        font-size: 28px;
    }
    .kind-icon {
        width: 170px;
        height: 170px;
        font-size: 18px;
    }    
    .merit-item {
        flex-direction: column !important;
        padding-left: 0 !important;
    }

    .merit-item:nth-child(2) .merit-content,
    .merit-item:nth-child(2) .merit-image {
        order: 0;
    }

    .merit-content {
        width: auto;
        padding: 30px;
    }

    .merit-image {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .merit-image img {
        max-width: 100%;
    }
    .products {
        margin-top: 10px;
    }
    
    .product-card {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .product-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        clip-path: none;
    }
    
    .product-image img {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .product-info {
        padding: 30px 20px;
        margin-left: 0;
        clip-path: none;
    }
    
    .product-info img {
        width: 150px;
        margin-bottom: 20px;
    }

    /* フッターのレスポンシブ対応 */
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logos {
        min-width: auto;
        width: 100%;
        flex-direction: column;
        padding: 20px;
    }

    .footer-logo-item {
        padding: 15px;
    }

    .footer-group-logo {
        margin-bottom: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}