/* ベーススタイル */
:root {
    --primary-color: #0071e3;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-color: #f5f5f7;
    --white: #ffffff;
    --border-color: #d2d2d7;
    --easing-apple: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- ローディング画面 --- */
.loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}
.loading-screen.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: scale(0.95);
    animation: logoReveal 0.8s var(--easing-apple) forwards;
}
@keyframes logoReveal { to { opacity: 1; transform: scale(1); } }

/* --- アニメーション設定 --- */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--easing-apple), transform 1s var(--easing-apple);
}
.js-fade-up.is-active { opacity: 1; transform: translateY(0); }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* --- ヘッダー --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding 0.3s ease;
}
header.is-scrolled { padding: 10px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin: 0; letter-spacing: -0.02em; }
nav ul { display: flex; gap: 24px; align-items: center; font-size: 0.8rem; }
.nav-link { color: var(--text-primary); opacity: 0.8; font-weight: 400; white-space: nowrap; }
.nav-link:hover { opacity: 1; color: var(--primary-color); }
.btn-nav {
    background: var(--text-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 980px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s var(--easing-apple);
    white-space: nowrap;
}

/* --- ヒーロー --- */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    background: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.hero-sub { padding: 160px 0 80px; }

.hero::before {
    content: ''; position: absolute; top: -20%; left: -10%; width: 80%; height: 120%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.4), transparent 70%);
    filter: blur(80px); z-index: -1;
    animation: floatLight 10s ease-in-out infinite alternate;
}
.hero::after {
    content: ''; position: absolute; bottom: -20%; right: -10%; width: 60%; height: 100%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3), transparent 70%);
    filter: blur(90px); z-index: -1;
    animation: floatLight 8s ease-in-out infinite alternate-reverse;
}
@keyframes floatLight {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow { color: var(--primary-color); font-weight: 600; margin-bottom: 16px; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-title { 
    font-size: 4.5rem; 
    font-weight: 600; 
    line-height: 1.1; 
    letter-spacing: -0.03em; 
    margin-bottom: 24px; 
    color: #1d1d1f; 
    word-break: keep-all; 
    overflow-wrap: break-word;
}
.hero-sub .hero-title { font-size: 3.5rem; }
.hero-desc { font-size: 1.5rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 40px; font-weight: 400; }
.btn-primary { display: inline-block; background: var(--primary-color); color: var(--white); padding: 14px 36px; font-size: 1.1rem; font-weight: 500; border-radius: 980px; transition: transform 0.2s, background-color 0.3s; }
.btn-primary:hover { background-color: #0077ed; }


/* --- Sticky Showcase --- */
.section { padding: 100px 0; }

.sticky-showcase {
    background: var(--bg-color);
    transition: background-color 0.8s ease;
}
.sticky-showcase[data-theme="type-a"] { background-color: #e0e7ff; }
.sticky-showcase[data-theme="type-b"] { background-color: #fce7f3; }
.sticky-showcase[data-theme="type-c"] { background-color: #dcdcdc; }

/* PC/SP 表示切り替え (最優先) */
.pc-only { display: flex; }
.sp-only { display: none !important; }

.sticky-container { display: flex; justify-content: space-between; position: relative; }

/* Visual Column (PC) */
.visual-column { width: 58%; height: 100vh; position: sticky; top: 0; margin-bottom: 0; display: flex; align-items: center; }
.visual-frame { width: 100%; height: 450px; border-radius: 24px; overflow: hidden; position: relative; background: #fff; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.1); }
.visual-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transform: scale(0.95); transition: opacity 0.8s var(--easing-apple), transform 0.8s var(--easing-apple); display: flex; justify-content: center; align-items: center; flex-direction: column; }
.visual-item.is-active { opacity: 1; transform: scale(1); }
.visual-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.visual-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.visual-label { font-size: 4rem; font-weight: 800; display: block; line-height: 1; letter-spacing: -0.02em; }
.visual-sub { font-size: 1.2rem; font-weight: 500; opacity: 0.9; margin-top: 10px; display: block; letter-spacing: 0.1em; text-transform: uppercase; }

/* Visual Types */
.bg-corporate { background: #0f172a; }
.tech-grid { width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 50px 50px; }
.bg-creative { background: #fff0f5; }
.bg-creative + .visual-content { color: #db2777; }
.blob-shape { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; height: 120%; background: linear-gradient(135deg, #9333ea, #db2777); filter: blur(60px); opacity: 0.6; animation: pulseBlob 8s infinite alternate; }
.bg-minimal { background: #f5f5f7; border: 20px solid #fff; box-sizing: border-box; }
.bg-minimal + .visual-content { color: #1d1d1f; }
.italic { font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* Text Column */
.text-column { width: 38%; padding-top: 25vh; }

.section-header { margin-bottom: 80px; padding-left: 10px; }
.sticky-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.03em; }
.sticky-desc { font-size: 1.2rem; color: var(--text-secondary); }

.text-item {
    min-height: 70vh;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0.3; transition: opacity 0.5s, transform 0.5s;
    transform: translateX(20px);
}
.text-item.is-active { opacity: 1; transform: translateX(0); }

/* スマホ用埋め込み画像 */
.mobile-visual {
    width: 100%; height: 280px;
    border-radius: 16px 16px 0 0; 
    overflow: hidden; position: relative;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
}
.mobile-visual .visual-label { font-size: 2.5rem; color: #fff; z-index: 2; position: relative; font-weight: 800; }
.mobile-visual .visual-sub { font-size: 0.8rem; color: #fff; z-index: 2; position: relative; opacity: 0.9; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- 【修正箇所】Type C のスマホ画像だけ文字色を黒くする --- */
.text-item[data-bg="type-c"] .mobile-visual .visual-label,
.text-item[data-bg="type-c"] .mobile-visual .visual-sub {
    color: #1d1d1f !important; /* 黒文字に変更 */
}

.text-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.text-item.is-active .text-card { background: rgba(255, 255, 255, 0.9); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.text-card::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: #ddd; transition: background 0.5s; }
.text-item[data-target="visual-type-a"].is-active .text-card::before { background: #0f172a; }
.text-item[data-target="visual-type-b"].is-active .text-card::before { background: #db2777; }
.text-item[data-target="visual-type-c"].is-active .text-card::before { background: #000; }

.item-tag { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; display: block; }
.text-item h4 { font-size: 2.2rem; font-weight: 700; margin: 0 0 20px; letter-spacing: -0.02em; line-height: 1.1; }
.text-item p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 30px; }
.text-link { display: inline-flex; align-items: center; font-weight: 600; color: var(--primary-color); font-size: 1rem; padding: 10px 20px; background: rgba(0, 113, 227, 0.1); border-radius: 50px; transition: background 0.3s; }
.text-link:hover { background: rgba(0, 113, 227, 0.2); }

/* --- 料金ハイライト --- */
.price-box { text-align: center; padding: 100px 0; }
.price-box h3 { font-size: 3rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.price-desc { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 60px; }
.price-row { display: flex; justify-content: center; align-items: baseline; gap: 40px; }
.price-item { text-align: left; }
.price-item .label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 5px; }
.amount-group { display: flex; align-items: baseline; color: var(--text-primary); }
.currency { font-size: 1.5rem; font-weight: 500; margin-right: 5px; }
.amount { font-size: 4rem; font-weight: 600; letter-spacing: -0.03em; font-family: 'Inter', sans-serif; }
.divider { font-size: 3rem; color: #ddd; font-weight: 300; transform: translateY(-10px); }
.price-note { margin-top: 40px; color: var(--text-secondary); font-size: 0.9rem; }

/* フッター等 */
footer { background: #f5f5f7; padding: 40px 0; font-size: 0.8rem; color: var(--text-secondary); border-top: 1px solid rgba(0,0,0,0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { margin-left: 20px; color: var(--text-primary); }

/* 下層ページスタイル */
.clean-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.clean-table th, .clean-table td { padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.clean-table th { text-align: left; color: var(--text-secondary); font-weight: 500; width: 40%; }
.clean-table td { text-align: right; font-weight: 600; font-size: 1.2rem; color: var(--text-primary); }
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 14px 16px; font-size: 1rem; border: 1px solid var(--border-color); border-radius: 12px; background: #fbfbfd; transition: border-color 0.3s, background 0.3s; font-family: inherit; box-sizing: border-box; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--primary-color); background: #fff; }
.form-btn { width: 100%; border: none; cursor: pointer; margin-top: 20px; }
.bg-gray { background-color: #fbfbfd; }
.section-heading { font-size: 2rem; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.02em; color: var(--text-primary); }
.section-heading.center { text-align: center; }
.section-desc.center { text-align: center; margin-bottom: 60px; }
.text-body { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 30px; }
.team-header { max-width: 800px; margin: 0 auto 60px; text-align: center; }
.section-tag { font-size: 0.9rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; display: block; }
.team-title { font-size: 2.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.team-content { display: flex; flex-direction: column; gap: 40px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .team-content { flex-direction: row; gap: 60px; } }
.team-text { flex: 1; }
.team-text h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; border-bottom: 2px solid #eee; padding-bottom: 10px; display: inline-block; }
.team-text p { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); text-align: justify; }
.strength-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 768px) { .strength-grid { grid-template-columns: repeat(3, 1fr); } }
.strength-card { background: #fff; padding: 40px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(0,0,0,0.03); }
.strength-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.strength-icon { font-size: 3rem; margin-bottom: 20px; }
.strength-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; line-height: 1.4; color: var(--text-primary); }
.strength-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* --- 【重要】スマホ専用調整 --- */
@media (max-width: 768px) {
    .pc-only { display: none !important; }
    .sp-only { display: flex !important; }

    /* ヘッダー */
    .header-inner { flex-direction: column; gap: 15px; }
    nav ul { gap: 10px; font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
    .btn-nav { padding: 6px 12px; font-size: 0.75rem; }

    /* ヒーロー */
    .hero-title { font-size: 2.5rem; line-height: 1.2; word-break: normal; overflow-wrap: normal; }
    .hero-sub .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; padding: 0 10px; }

    /* レイアウト調整 (縦積み) */
    .sticky-container { flex-direction: column; }
    .text-column { width: 100%; padding-top: 0; }
    
    .section-header { margin-bottom: 30px; text-align: center; }
    .sticky-title { font-size: 2.2rem; }

    /* テキストカード調整 */
    .text-item {
        min-height: auto; 
        margin-bottom: 40px; 
        opacity: 1; 
        transform: none;
        display: block; /* 縦積み */
    }
    
    .text-card { 
        padding: 30px 20px; 
        border-radius: 0 0 24px 24px;
        border-top: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    /* 料金表 */
    .price-box h3 { font-size: 2.2rem; }
    .price-row { flex-direction: column; gap: 30px; align-items: center; }
    .price-item { align-items: center; }
    .divider { display: none; }
    .amount { font-size: 3rem; }
    
    .team-title { font-size: 1.6rem; }
}