/* --- グローバル設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    font-family: 'Noto Sans JP', sans-serif;
}

.main-content {
    opacity: 0;
    visibility: hidden;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 80px;
    font-weight: bold;
    letter-spacing: 4px;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

/* 斜め線アニメーション */
.line-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
    overflow: hidden;
}

.diagonal-line {
    position: absolute;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
    /* ★修正点1: transform-origin を left に戻します */
    transform-origin: left center;
    /* ★修正点2: 初期状態で非表示になるよう scaleX(0) に戻します */
    transform: rotate(-30deg) scaleX(0);
    top: 0;
    left: 0;
}
/* ローディングアニメーション */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.8), rgba(78, 67, 118, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading-logo {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

/* 横線のコンテナ（トラック）のスタイル */
.loading-bar {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3); /* ベースの色を少し透明に */
    position: relative;
    overflow: hidden; /* はみ出した斜め線を隠すため */
}

/* 元の進捗バーは不要なため非表示に */
.loading-progress {
    display: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #fff;
    transition: width 2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 新しい斜め線アニメーションを疑似要素で作成 */
.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.9),
      transparent
    );
    transform: skewX(-45deg); /* 線を斜めに傾ける */
    animation: loading-slash-shine 1.8s infinite ease-in-out; /* 下で定義したアニメーションを適用 */
}

/* --- ヘッダー --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
    backdrop-filter: blur(10px); /* 背景のぼかし効果追加 */
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled nav a {
    color: #000;
}

header.scrolled nav a::after {
    background-color: #000;
}

header.scrolled .hamburger-menu span {
    background-color: #000;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out, background-color 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ハンバーガーメニューのX状態 */
.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}




/* --- ヒーローセクション --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8c2FsZXN8fHx8fHwxNjM4MjU4MjI4&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080') no-repeat center center/cover;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    line-height: 1.4;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    overflow: hidden;
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
}

/* --- サービスセクション --- */
.service-detail-section,
.strengths-section,
.partnership-section,
.cta-section {
    background: linear-gradient(135deg, #2b3a4a, #1a2533);
}

.business-service-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.business-service-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.business-service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 67, 118, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.business-service-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4e4376, #2b5876);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.business-service-content {
    flex-grow: 1;
}

.business-service-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.business-service-title .en-subtitle {
    font-size: 16px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 15px;
    letter-spacing: 1px;
}

.business-service-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 25px;
}

.service-points {
    list-style: none;
    padding-left: 0;
}

.service-points li {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.service-points li::before {
    content: '✔';
    color: #4e4376;
    font-size: 18px;
    margin-right: 12px;
    font-weight: bold;
}

/* --- 強みセクション --- */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.strength-item {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
}

.strength-number {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 80px;
    font-weight: bold;
    color: rgba(78, 67, 118, 0.2);
    line-height: 1;
    z-index: 0;
    transition: color 0.3s ease;
}

.strength-item:hover .strength-number {
    color: rgba(78, 67, 118, 0.3);
}

.strength-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.strength-description {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* --- パートナーシップセクション --- */
.partnership-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.partnership-text {
    flex: 1;
}

.partnership-text p {
    font-size: 16px;
    line-height: 2;
    opacity: 0.9;
}

.partnership-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partnership-diagram {
    width: 300px;
    height: 300px;
    position: relative;
}

.partnership-circle {
    position: absolute;
    background: linear-gradient(135deg, #4e4376, #2b5876);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.partnership-circle.center {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    font-size: 18px;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: pulse 2s infinite ease-in-out;
}

.partnership-circle.outer {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    margin-top: -40px;
    margin-left: -40px;
    font-size: 14px;
    animation: orbit 15s linear infinite;
}

.partnership-circle.outer:nth-child(2) { animation-delay: -3.75s; }
.partnership-circle.outer:nth-child(3) { animation-delay: -7.5s; }
.partnership-circle.outer:nth-child(4) { animation-delay: -11.25s; }

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(78, 67, 118, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 20px rgba(78, 67, 118, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(78, 67, 118, 0);
    }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(110px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}

/* --- CTAセクション --- */
.cta-container {
    background: linear-gradient(135deg, #4e4376, #2b5876);
    padding: 80px 60px;
    text-align: center;
    border-radius: 20px;
}

.cta-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.cta-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- スクロールアニメーション --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ハンバーガーメニュー --- */
.hamburger-menu {
    display: none;
    width: 30px;
    height: 21px;
    position: relative;
    cursor: pointer;
    z-index: 1500;
    appearance: none;
    background: transparent;
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
    background-color: #fff;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
    background-color: #fff;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    .partnership-container {
        flex-direction: column;
        text-align: center;
    }
    
    .partnership-visual {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .section-container {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 60px;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 1400;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
        transform: translateX(100%);
    }
    
    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 20px 0;
        margin-left: 0;
    }

    nav a {
        color: #fff;
        font-size: 22px;
    }
    
    nav a::after {
        display: none;
    }
    
    nav a:hover {
        color: #4e4376;
    }

    .hero-title {
        font-size: 25px;
    }

    .hero-title .line1{
        font-size: 20px;
    }

    .hero-title .line2{
        font-size: 20px;
    }
    
    .business-service-item {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    
    .business-service-title {
        font-size: 24px;
    }
    
    .business-service-title .en-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
    }
    
    .partnership-diagram {
        width: 250px;
        height: 250px;
    }
    
    @keyframes orbit {
        from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
        to   { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
    }

    .cta-title {
        font-size: 28px;
    }
}

/* ★★★ キーフレーム定義 ★★★ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading-slash-shine {
    0% {
        transform: skewX(-45deg) translateX(-250%);
    }
    100% {
        transform: skewX(-45deg) translateX(250%);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        background-color: #000;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(43, 88, 118, 0.95), rgba(78, 67, 118, 0.95));
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 20px 0;
    }

    nav a {
        color: #ffffff;
        font-size: 18px;
    }

    .hero-title {
        font-size: 48px;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }
}