/* ============================================
   e-colleague プロジェクトサイト用スタイルシート
   共通部分（ポートフォリオ由来）＋ 独自スタイル統合
   ============================================ */

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

:root {
    --bg-color: #ffffff;
    --container-bg: #ffffff;
    --text-color: #1f2937;
    --border-color: #e2e8f0;
    --toc-bg: #f1f5f9;
    --muted-text: #64748b;
    --accent-color: #4a4a4a;
    --sidebar-width: 240px;
    --gray-bg: #F5F5F7;
    --apple-blue: #0071e3;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --radius: 20px;
    --max-width: 1024px;
}

body {
    font-family: 'M PLUS 1p', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== 共通ブランドヘッダー ===== */
.site-header {
    width: 100%;
    background-color: var(--container-bg);
    border-bottom: 3px solid var(--accent-color);
    z-index: 1000;
    position: relative;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0f172a;
    text-decoration: none;
}

.site-title:hover {
    color: var(--accent-color);
}

/* ハンバーガーボタン */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* 全幅ナビメニュー */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--container-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 999;
}

.nav-menu.show {
    display: block;
}

.nav-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.2rem 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.nav-menu a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.nav-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.75rem 0;
}

/* ===== プロダクト専用ナビ ===== */
.product-nav {
    width: 100%;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    margin: 0;
    border-radius: 0;
}

.product-nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-logo {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.product-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.product-links a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--muted-text);
    transition: color 0.2s;
}

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

.btn-cta {
    background-color: var(--apple-blue);
    color: #fff !important;
    padding: 5px 16px;
    border-radius: 980px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-cta:hover {
    background-color: #005bb5;
}

/* ===== レイアウト ===== */
.layout-wrapper {
    display: block;
    padding: 0;
}

.sidebar-toc {
    display: none;
}

.main-content {
    padding: 0;
    margin: 0;
    border: none;
}

/* ===== HERO ===== */
.hero {
    padding: 120px 1.5rem 100px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--gray-bg);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-text);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #0f172a;
    border-left: none;
    padding-left: 0;
}

.hero-copy {
    font-size: 1.4rem;
    color: var(--muted-text);
    margin-bottom: 36px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    background: var(--apple-blue);
    color: #fff;
    padding: 14px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #0055aa;
    transform: scale(1.02);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--apple-blue);
    padding: 14px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--apple-blue);
    transition: background 0.2s;
    margin-left: 12px;
}

.btn-secondary:hover {
    background: rgba(0,113,227,0.06);
}

/* ===== セクション共通 ===== */
.section-ec {
    padding: 100px 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-ec-gray {
    background-color: var(--gray-bg);
    max-width: 100%;
    padding: 100px 1.5rem;
}

.section-ec-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--apple-blue);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--muted-text);
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 0;
}

.main-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: none;
    color: #1d1d1f;
}

.main-content h1 {
    border-left: none;
    padding-left: 0;
}

/* ===== お知らせ ===== */
.news {
   border-top: 1px solid var(--border-color);
}

.news-list {
    display: grid;
    gap: 0;
    margin-top: 40px;
   
}

.news-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: color 0.2s;
}

.news-row:first-child {
    border-top: 1px solid var(--border-color);
}

.news-date {
    font-size: 0.85rem;
    color: var(--muted-text);
    white-space: nowrap;
    font-weight: 400;
    min-width: 90px;
}

.news-title {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 400;
}

.news-row:hover .news-title {
    color: var(--apple-blue);
}

/* ===== お知らせバッジ ===== */
.news-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}

.badge-release {
    background: rgba(0,113,227,0.08);
    color: var(--apple-blue);
}

.badge-article {
    background: var(--gray-bg);
    color: var(--muted-text);
}

/* ===== 3つの特徴カード ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 36px rgba(0,0,0,0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.6;
}

/* ===== Apple式 画像＋テキスト 交互セクション ===== */
.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feature-row-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-text h2 {
    font-size: 2.4rem;
}

.feature-desc {
    font-size: 1.05rem;
    color: var(--muted-text);
    line-height: 1.8;
    margin-top: 12px;
}

.feature-image {
    flex: 1; /* ← 0 0 240px から変更 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== スクリーンショット画像 ===== */
.feature-screenshot {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

@media (max-width: 768px) {
    .feature-row,
    .feature-row-reverse {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .feature-text h2 {
        font-size: 1.8rem;
    }
    .feature-screenshot {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ===== 画像注釈 ===== */
.feature-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-top: 40px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* ===== 使い方ステップ ===== */
.steps {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.step-number {
    width: 44px;
    height: 44px;
    background: #1d1d1f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}

.step-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.step-text {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* ===== プレースホルダー ===== */
.placeholder-box {
    background: var(--gray-bg);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    color: var(--muted-text);
}

.placeholder-sub {
    font-size: 0.85rem;
}

.mt-40 {
    margin-top: 40px;
}

/* ===== 料金 ===== */
.price-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 40px 32px;
    text-align: center;
    max-width: 480px;
    margin: 40px auto 0;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.price-label {
    font-weight: 700;
    margin-top: 4px;
}

.price-note {
    color: var(--muted-text);
    margin-top: 8px;
    font-size: 0.95rem;
}

/* ===== ロードマップ風タイムライン ===== */
.timeline {
    margin: 2rem 0 1rem;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.45rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--container-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-year {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.timeline-item.phase-now::before {
    background: var(--accent-color);
}

.timeline-item.phase-future::before {
    border-style: dashed;
}

/* ===== 資料リスト ===== */
.docs-list {
    list-style: none;
    margin-top: 40px;
    display: grid;
    gap: 16px;
}

.docs-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.docs-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.docs-name {
    font-weight: 600;
    flex: 1;
}

.docs-size {
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* ===== コンタクト ===== */
.contact-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 40px 32px;
    max-width: 640px;
    margin: 40px auto 0;
    overflow: hidden;
}

.form-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.form-wrapper iframe {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 12px;
}

.sns-links-ec {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.sns-links-ec a {
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sns-links-ec a:hover {
    color: #1d1d1f;
}

/* ===== 注釈 ===== */
.notes-box {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    color: var(--muted-text);
    font-size: 0.8rem;
    line-height: 1.8;
}

.note-item {
    margin-bottom: 0.4rem;
}

.note-item sup {
    color: var(--accent-color);
    margin-right: 2px;
}

/* ===== フッター ===== */
.main-footer-ec {
    margin-top: 0;
    padding: 40px 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-text);
    border-top: 1px solid var(--border-color);
    background: var(--gray-bg);
}

/* ===== フェードイン ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 角丸ゼロ統一 */
.site-header,
.main-content,
.product-nav,
.contact-box {
    border-radius: 0 !important;
}

/* ===== モバイル ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-copy {
        font-size: 1.1rem;
    }
    .main-content h2 {
        font-size: 2rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
    }
    .product-links a:not(.btn-cta) {
        display: none;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 12px;
    }
    .contact-box {
        padding: 24px 16px;
    }

    /* タイムライン */
    .timeline {
        padding-left: 1.5rem;
    }
    .timeline-item::before {
        left: -1.95rem;
    }

    /* Apple式特徴セクション */
    .feature-row,
    .feature-row-reverse {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .feature-text h2 {
        font-size: 1.8rem;
    }
    .feature-image {
        flex: 0 0 auto;
    }
    .device-frame-sm {
        width: 180px;
    }
}

/* ===== ダウンロードボタン ===== */
.docs-download {
    background: var(--apple-blue);
    color: #fff !important;
    padding: 5px 16px;
    border-radius: 980px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.docs-download:hover {
    background-color: #005bb5;
}
