/* Portomo - アプリダウンロードサイト共通スタイル */
:root {
    --bg-primary: #f6f3ee;
    --bg-secondary: #ffffff;
    --bg-accent: #efece5;
    --accent-blue: #0f7a5a;
    --accent-purple: #1f2f44;
    --accent-pink: #b4472c;
    --accent-teal: #0f7a5a;
    --text-primary: #1f2f44;
    --text-secondary: #5f6b7a;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(15, 122, 90, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(15, 122, 90, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 122, 90, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(164, 59, 30, 0.06) 0%, transparent 50%);
    z-index: -1;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(15, 122, 90, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 122, 90, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 122, 90, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(15, 122, 90, 0.5);
}

/* Page hero */
.page-hero {
    padding: 10rem 2rem 3rem;
    text-align: center;
}

.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(15, 122, 90, 0.1), rgba(15, 122, 90, 0.1));
    border: 1px solid rgba(15, 122, 90, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.page-hero .hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.page-hero h1 {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1000px;
    margin: 0 auto;
    padding: 7.5rem 2rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Sections */
section.block {
    position: relative;
    z-index: 10;
    padding: 4rem;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
}

/* App catalog cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid rgba(15, 122, 90, 0.12);
    border-radius: 20px;
    padding: 2.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 122, 90, 0.15);
}

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

.app-card .app-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
}

.app-card h2 {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.app-card .app-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    flex-grow: 1;
}

.app-card .app-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.app-card .app-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    background: var(--bg-accent);
    color: var(--accent-blue);
    border: 1px solid rgba(15, 122, 90, 0.2);
}

.app-card .app-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease;
}

.app-card:hover .app-link {
    gap: 0.75rem;
}

.app-card.coming-soon {
    opacity: 0.7;
    border-style: dashed;
    pointer-events: none;
}

.app-card.coming-soon .app-icon {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

/* Download button */
.download-box {
    text-align: center;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 80px rgba(15, 122, 90, 0.4);
}

.btn-download svg {
    flex-shrink: 0;
}

.download-meta {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border: 1px solid rgba(15, 122, 90, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 122, 90, 0.15);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.feature-card h3 {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Manual */
.manual {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.manual-toc {
    background: white;
    border: 1px solid rgba(15, 122, 90, 0.12);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-soft);
}

.manual-toc h3 {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.manual-toc ol {
    padding-left: 1.5rem;
}

.manual-toc li {
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.manual-toc a {
    color: var(--text-primary);
    text-decoration: none;
}

.manual-toc a:hover {
    color: var(--accent-blue);
}

.manual-section {
    background: white;
    border: 1px solid rgba(15, 122, 90, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 7rem;
}

.manual-section h3 {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(15, 122, 90, 0.15);
    color: var(--text-primary);
}

.manual-section h3 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    font-size: 1rem;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.manual-section h4 {
    font-size: 1rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
}

.manual-section p,
.manual-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
}

.manual-section p + p {
    margin-top: 0.75rem;
}

.manual-section ol,
.manual-section ul {
    padding-left: 1.6rem;
    margin: 0.75rem 0;
}

.manual-section li {
    margin-bottom: 0.4rem;
}

.manual-section strong {
    color: var(--text-primary);
}

.manual-section code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85em;
    background: var(--bg-accent);
    border: 1px solid rgba(15, 122, 90, 0.15);
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    color: var(--accent-purple);
    word-break: break-all;
}

.code-block {
    position: relative;
    background: #1f2f44;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    color: #7dd3fc;
    white-space: pre;
}

.copy-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.35rem 0.9rem;
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 0.75rem;
    border: 1px solid rgba(125, 211, 252, 0.4);
    border-radius: 8px;
    background: rgba(15, 122, 90, 0.15);
    color: #7dd3fc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(15, 122, 90, 0.35);
}

/* Guide images (接続ガイド用スクリーンショット) */
.guide-img {
    margin: 1rem 0 0.5rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 122, 90, 0.15);
    box-shadow: var(--shadow-soft);
    background: white;
}

.guide-img img {
    display: block;
    width: 100%;
    height: auto;
}

.guide-img figcaption {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-accent);
    border-top: 1px solid rgba(15, 122, 90, 0.1);
}

/* 画像ファイルがまだ無いときに表示されるプレースホルダー枠 */
.guide-img.missing {
    border: 2px dashed rgba(15, 122, 90, 0.35);
    background: var(--bg-accent);
}

.guide-img.missing::before {
    content: '📷 ' attr(data-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

/* Callouts */
.callout {
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.callout strong {
    color: var(--text-primary);
}

.callout.info {
    background: rgba(15, 122, 90, 0.07);
    border: 1px solid rgba(15, 122, 90, 0.25);
    border-left: 5px solid var(--accent-blue);
}

.callout.warning {
    background: rgba(164, 59, 30, 0.06);
    border: 1px solid rgba(164, 59, 30, 0.25);
    border-left: 5px solid var(--accent-pink);
}

/* Steps */
.steps {
    display: grid;
    gap: 1.25rem;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-primary);
    border: 1px solid rgba(15, 122, 90, 0.12);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h4 {
    font-size: 1rem;
    margin: 0 0 0.4rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Info table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.info-table th,
.info-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(15, 122, 90, 0.08);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table th {
    width: 220px;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-accent);
    white-space: nowrap;
}

.info-table td {
    color: var(--text-primary);
}

.hash-value {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.78rem;
    word-break: break-all;
    color: var(--text-secondary);
}

.table-scroll {
    overflow-x: auto;
    border-radius: 16px;
}

/* CTA */
.cta {
    padding: 6rem 4rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta h2 {
    font-family: "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta .btn-white {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--accent-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    padding: 3rem 4rem;
    background: white;
    border-top: 1px solid rgba(15, 122, 90, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.fade-1 { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.fade-2 { animation: fadeInUp 0.8s ease 0.2s forwards; opacity: 0; }
.fade-3 { animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; }

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

    section.block {
        padding: 3rem 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .manual-section {
        padding: 1.75rem 1.5rem;
    }

    .info-table th {
        width: auto;
    }

    .cta {
        padding: 4rem 1.5rem;
    }
}

/* 2026-10-21: shared warm palette with the official portal. */
.bg-pattern,.bg-grid{display:none}
.fade-1,.fade-2,.fade-3{animation:none;opacity:1;transform:none}
.page-hero h1{background:none;-webkit-text-fill-color:currentColor;color:#1f2f44;letter-spacing:-1px}
.logo{display:inline-flex;align-items:center;gap:10px;background:none;-webkit-text-fill-color:currentColor;color:#1f2f44;letter-spacing:-.3px;font-size:1.3rem;font-weight:800}.logo img{width:30px;height:30px;flex:none}
nav{background:#f6f3eef5;border-bottom:1px solid #e2e0d8;box-shadow:none}
.nav-cta,.btn-download,.btn-white{background:#1f2f44;color:#fff;border-radius:8px;box-shadow:none}
.nav-cta:hover,.btn-download:hover,.btn-white:hover{background:#2d4463;color:#fff;box-shadow:none}
.hero-badge,.page-hero .hero-badge{background:#efece5;border-color:#e2e0d8;color:#0f7a5a;border-radius:5px}
.cta{background:#efece5;color:#1f2f44}.cta h2{color:#1f2f44}.cta p{color:#5f6b7a}
footer{background:#f6f3ee;border-top:1px solid #e2e0d8;color:#5f6b7a}
.license-buy-button,.license-buy-button:hover{background:#e3f6ef;color:#0b5f47;border-color:#bfe8d8;box-shadow:none}
.license-manage-link{color:#0b5f47}
@media(max-width:1024px){nav{position:sticky;top:0;padding:14px 18px;flex-wrap:wrap;gap:12px}.nav-links{display:flex!important;order:3;width:100%;gap:18px;overflow:auto;white-space:nowrap;padding-bottom:3px}.nav-links a{font-size:11px}.nav-cta{font-size:11px;padding:8px 12px}.logo{font-size:17px}.logo img{width:26px;height:26px}.page-hero{padding-top:40px}.breadcrumb{padding-top:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
