/* ==========================================================================
   Mapture360 Common Styles & Reset
   ========================================================================== */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --text-main: #202124;
    --text-sub: #5f6368;
    --text-light: #9aa0a6;
    --bg-light: #f8f9fa;
    --border-color: #eaeaea;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* 多言語表示制御ロジック */
body.lang-ja .lang-en {
    display: none !important;
}

body.lang-en .lang-ja {
    display: none !important;
}

/* 共通レイアウト */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Header Component (全ページ共通)
   ========================================================================== */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 言語切り替えトグルスイッチ */
.lang-switcher {
    display: flex;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.2s ease;
}

body.lang-ja .lang-btn[data-lang="ja"],
body.lang-en .lang-btn[data-lang="en"],
.lang-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.lang-switcher a:hover {
    text-decoration: none;
}

/* ==========================================================================
   CTA Button Component
   ========================================================================== */
.btn-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-cta:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* ==========================================================================
   LP Sections (index.html 専用)
   ========================================================================== */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: #ffffff;
}

.hero h1 {
    font-size: 2.6em;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2em;
    color: var(--text-sub);
    max-width: 650px;
    margin: 0 auto 32px;
}

.video-container {
    max-width: 840px;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-container video {
    width: 100%;
    display: block;
}

.redirect-page {
    align-items: center;
    display: flex;
    min-height: 100vh;
    text-align: center;
}

.redirect-page h1 {
    font-size: 2.4em;
    margin-bottom: 12px;
}

.redirect-page p {
    color: var(--text-sub);
    margin-bottom: 24px;
}

.redirect-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pain-sec,
.value-sec,
.usecase-sec,
.workflow-sec,
.faq-sec,
.final-cta {
    padding: 80px 0;
}

.pain-sec {
    background: #ffffff;
}

.pain-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: start;
}

.pain-copy h2 {
    font-size: 2em;
    line-height: 1.3;
    margin-bottom: 16px;
}

.pain-copy p:not(.eyebrow) {
    color: var(--text-sub);
    font-size: 1.08em;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pain-card,
.usecase-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px;
}

.pain-card {
    border-top: 3px solid #fbbc04;
}

.pain-card-wide {
    grid-column: 1 / -1;
}

.pain-card span {
    color: #b06000;
    display: inline-block;
    font-size: 0.8em;
    font-weight: 800;
    margin-bottom: 10px;
}

.pain-card h3,
.usecase-item h3 {
    font-size: 1.05em;
    line-height: 1.45;
    margin-bottom: 8px;
}

.pain-card p,
.usecase-item p {
    color: var(--text-sub);
    font-size: 0.95em;
}

.value-sec {
    background: var(--bg-light);
}

.value-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    color: var(--primary-color);
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.value-copy h2,
.final-cta h2 {
    font-size: 2em;
    line-height: 1.3;
    margin-bottom: 16px;
}

.value-copy p:not(.eyebrow),
.final-cta p {
    color: var(--text-sub);
    font-size: 1.08em;
}

.metric-list {
    display: grid;
    gap: 12px;
}

.metric-item,
.workflow-step,
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.metric-item {
    padding: 20px;
}

.metric-item strong,
.metric-item span,
.permission-list strong,
.permission-list span {
    display: block;
}

.metric-item strong {
    font-size: 1.05em;
    margin-bottom: 4px;
}

.metric-item span,
.permission-list span {
    color: var(--text-sub);
    font-size: 0.95em;
}

.organize-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
    position: relative;
}

.organize-flow div {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.organize-flow div:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.flow-step-num {
    color: var(--primary-color);
    display: inline-block;
    font-size: 0.8em;
    font-weight: 800;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.organize-flow h3 {
    font-size: 1.15em;
    font-weight: 700;
    margin: 4px 0 10px 0;
    color: var(--text-main);
}

.organize-flow p {
    font-size: 0.88em;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

.flow-img {
    width: 100%;
    height: 160px;
    object-fit: cover; /* 背景付き写真・イラスト（STEP 01/03）用：隙間なく綺麗に埋める */
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-top: 12px;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    background-color: #f8f9fa;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 白・透明背景のインフォグラフィック（STEP 02）専用の超高精細ブレンドスタイル */
.flow-img.graphic-type {
    object-fit: contain; /* 画像を一切カットせず、領域内に全体をきれいに収める */
    padding: 12px; /* 図の周りに適切な内側余白を確保 */
    background-color: #ffffff; /* カードの背景と100%同化・統合させる */
    border: 1px solid rgba(0, 0, 0, 0.06); /* より繊細な極薄枠線 */
    box-shadow: none; /* 余白カードとしての影を消し、フラットに溶け込ませる */
}



/* 使い方・特徴量セクション共通 */
.section-title {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 48px;
}

.how-it-works {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.step-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.feature-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.step-card h3,
.feature-card h3 {
    font-size: 1.25em;
    margin-bottom: 12px;
}

.step-card .step-num {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.step-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-top: 24px;
    border-radius: 4px;
    background: var(--bg-light);
}

.feature-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-top: 24px;
    border-radius: 4px;
    background: transparent; /* 背景と同化させグレーの余白を非表示化 */
}

.features-sec {
    padding: 80px 0;
}

.usecase-sec {
    background: #ffffff;
}

.section-heading {
    margin: 0 auto 40px;
    max-width: 720px;
    text-align: center;
}

.section-heading .section-title {
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--text-sub);
    font-size: 1.05em;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.usecase-item {
    border-top: 3px solid #34a853;
}

.usecase-item-wide {
    grid-column: span 2;
}

.workflow-sec {
    background: var(--bg-light);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.workflow-step {
    padding: 24px;
}

.workflow-step span {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85em;
    font-weight: 800;
    margin-bottom: 14px;
}

.workflow-step h3 {
    font-size: 1.12em;
    margin-bottom: 10px;
}

.workflow-step p {
    color: var(--text-sub);
    font-size: 0.95em;
}

.security-visual {
    min-height: 180px;
    margin-top: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(26, 115, 232, 0.08), rgba(15, 157, 88, 0.08)),
        #ffffff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: center;
    padding: 22px;
}

.security-visual span {
    min-height: 72px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid rgba(26, 115, 232, 0.22);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    padding: 12px;
}

.permission-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.permission-list div {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    background: var(--bg-light);
}

.permission-list strong {
    margin-bottom: 4px;
}

.faq-sec {
    background: var(--bg-light);
}

/* タブUIのスタイル */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.faq-tab {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-sub);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    outline: none;
}

.faq-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(23, 78, 166, 0.15);
}

/* アコーディオン要素のスタイル */
.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] {
    box-shadow: 0 10px 30px rgba(23, 78, 166, 0.06);
    border-color: rgba(23, 78, 166, 0.15);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 700;
    cursor: pointer;
    list-style: none; /* デフォルトの三角形マーカーを消す */
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Safari用のマーカー消去 */
}

.faq-item summary h3 {
    font-size: 1.05em;
    margin: 0;
    padding-right: 16px;
    color: var(--text-main);
    transition: color 0.3s ease;
    line-height: 1.5;
    text-align: left;
}

.faq-item[open] summary h3 {
    color: var(--primary-color);
}

.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-sub);
    transition: all 0.3s ease;
}

/* プラス記号 */
.faq-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.faq-item[open] .faq-icon::before {
    transform: rotate(180deg);
    background: var(--primary-color);
}

.faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0; /* マイナス記号にするため縦線を消す */
}

.faq-content {
    padding: 0 24px 24px 24px;
    color: var(--text-sub);
    line-height: 1.7;
    font-size: 0.92em;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    animation: faqSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.faq-content p {
    margin: 0;
    color: var(--text-sub);
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OSトラブルボックス */
.os-trouble-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 18px;
    margin-top: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.os-group h4 {
    color: var(--text-main);
    font-size: 0.95em;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
}

.os-group ul {
    margin: 0;
    padding-left: 18px;
}

.os-group li {
    font-size: 0.92em;
    margin-bottom: 6px;
    line-height: 1.6;
}

.os-group li:last-child {
    margin-bottom: 0;
}

/* FAQ スクリーンショット横スクロールレイアウト */
.faq-screenshots {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 8px 4px;
    -webkit-overflow-scrolling: touch; /* iOSでの滑らかなスクロール用 */
}

.screenshot-item {
    flex: 0 0 150px; /* スマホ画面に合わせたスマートな横幅 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.screenshot-item span.step-num {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(23, 78, 166, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
}

.faq-step-img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    background-color: #ffffff;
    transition: transform 0.2s ease;
}

.faq-step-img:hover {
    transform: scale(1.03);
}


.final-cta {
    background: #174ea6;
    color: #ffffff;
    text-align: center;
}

.final-cta p {
    color: #d2e3fc;
    max-width: 680px;
    margin: 0 auto 28px;
}

/* ==========================================================================
   Legal Pages Layout (privacy.html / terms.html)
   ========================================================================== */
.legal-content {
    max-width: 760px;
    margin: 60px auto;
}

.legal-content h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-content .last-updated {
    font-style: italic;
    color: var(--text-sub);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.35em;
    margin-top: 40px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.legal-content p,
.legal-content li {
    font-size: 1em;
    color: #3c4043;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.highlight-box,
.warning-box {
    padding: 24px;
    border-radius: 6px;
    margin: 24px 0;
}

.highlight-box {
    background-color: #e8f0fe;
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background-color: #fce8e6;
    border-left: 4px solid #d93025;
}

/* ==========================================================================
   Footer Component (全ページ共通)
   ========================================================================== */
footer {
    background: #202124;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: #8ab4f8;
    margin: 0 16px;
}

.footer-links a:hover {
    color: #aecbfa;
}

footer .contact {
    color: var(--text-light);
    line-height: 1.8;
}

footer .contact a {
    color: #8ab4f8;
}

/* アコーディオン（詳しい使い方）用スタイル */
.accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: #ffffff;
    padding: 18px 24px;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #ffffff;
    border-top: 0 solid var(--border-color);
}

.accordion-body {
    padding: 24px;
    color: #3c4043;
}

.accordion-body ol {
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 12px;
}

.accordion-body ul {
    margin-top: 8px;
    padding-left: 20px;
    background: var(--bg-light);
    padding: 12px 16px 12px 32px;
    border-radius: 6px;
}

.legend-list {
    display: grid;
    gap: 6px;
    margin: 8px 0 0 18px;
    max-width: 560px;
}

.legend-list div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    align-items: start;
}

.legend-label {
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 警告マーク・Tips装飾 */
.alert-badge {
    background-color: #d93025;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.75em;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

.tips-badge {
    background-color: #1a73e8;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.75em;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

/* 5枚カード用のグリッド最適化 */
.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

/* ==========================================================================
   Feature Video Preview Styles
   ========================================================================== */
.feature-video-box {
    width: 100%;
    height: 180px;
    margin-top: 24px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: transparent; /* 背景と同化させグレーの余白を非表示化 */
}

.feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Lightbox Modal Component (Modern Glassmorphism Overlay)
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); /* 高級感を演出する背景ぼかし */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-asset {
    width: 80vw !important; /* 画面幅の80%に枠を統一 */
    height: 55vh !important; /* 画面高さの55%に枠を統一 */
    max-width: 960px !important; /* 最大幅を制限 */
    max-height: 540px !important; /* 最大高さを制限(約16:9アスペクト) */
    object-fit: contain !important; /* アスペクト比を完全に維持して枠内に収める */
    border-radius: 8px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* モバイル向けのレスポンシブ制限 */
@media (max-width: 768px) {
    .lightbox-asset {
        width: 90vw !important;
        height: 40vh !important;
        max-height: 350px !important;
    }
}

/* グローバルスタンダードな右上の閉じるボタン */
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 48px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    z-index: 1010;
    outline: none;
}

.lightbox-close:hover {
    color: #8ab4f8;
    transform: scale(1.1);
}

/* ホバー可能な画像・動画要素にズームカーソルとホバーエフェクトを設定 */
.feature-video-box,
.feature-img {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-video-box:hover,
.feature-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* カード内のテキスト量に依存せず、動画・画像の位置（段差）を最下部で均一に揃える */
.feature-card .feature-video-box,
.feature-card .feature-img {
    margin-top: auto !important;
}

@media (max-width: 900px) {
    .pain-layout,
    .value-grid,
    .usecase-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .pain-grid,
    .workflow-grid {
        gap: 12px;
    }

    .usecase-item-wide {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    header {
        position: static;
    }

    .header-content,
    .nav-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-tools {
        gap: 12px;
        width: 100%;
    }

    .hero {
        padding: 56px 0 44px;
    }

    .hero h1 {
        font-size: 2.05em;
    }

    .hero p {
        font-size: 1.05em;
    }

    .pain-sec,
    .value-sec,
    .features-sec,
    .usecase-sec,
    .how-it-works,
    .workflow-sec,
    .faq-sec,
    .final-cta {
        padding: 56px 0;
    }

    .section-title,
    .pain-copy h2,
    .value-copy h2,
    .final-cta h2 {
        font-size: 1.65em;
    }

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

    .organize-flow {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card,
    .step-card,
    .pain-card,
    .usecase-item,
    .workflow-step,
    .faq-item {
        padding: 22px;
    }

    .security-visual {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .legend-list {
        margin-left: 0;
    }

    .legend-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .footer-links a {
        display: inline-block;
        margin: 6px 10px;
    }
}

/* ==========================================================================
   Pricing Section Components
   ========================================================================== */
.pricing-sec {
    background: var(--bg-light);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(26, 115, 232, 0.06);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #ffffff;
    padding: 4px 16px;
    font-size: 0.8em;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.pricing-price span {
    font-size: 0.45em;
    font-weight: 600;
    color: var(--text-sub);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 32px 0;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.95em;
    color: var(--text-sub);
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.pricing-features li::before {
    content: "✓";
    color: #34a853;
    font-weight: bold;
    flex-shrink: 0;
}

.cta-sub-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.88em;
    color: var(--text-sub);
    transition: color 0.2s;
}

.cta-sub-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-sub-cta {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-sub-cta:hover {
    background-color: var(--bg-light);
    border-color: var(--text-light);
    text-decoration: none;
}

/* ==========================================================================
   Usecase Orbit Section (放射状サークルUI)
   ========================================================================== */
.usecase-sec {
    background: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

/* 放射配置用の親コンテナ。PC用基準サイズ */
.usecase-orbit-wrapper {
    position: relative;
    width: 640px;
    height: 640px;
    margin: 60px auto 0 auto;
}

/* 中央の青丸ブランドアイコン（白プレート化しサイズを175pxに拡大） */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 175px;  /* 155pxから175pxへ拡大 */
    height: 175px; /* 155pxから175pxへ拡大 */
    background: #ffffff; /* 白プレートに変更し、ロゴ画像本来の発色を保証 */
    border: 1px solid var(--border-color); /* 極薄の境界線でクッキリ際立たせる */
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05); /* 柔らかく上品な影に変更 */
    overflow: hidden;
}

/* 画像が配置された際の表示設定 */
.orbit-center img {
    width: 78%;  /* ギチギチにならず、フチで途切れないように78%で contain */
    height: 78%;
    object-fit: contain; /* アスペクト比を完全維持 */
    display: block;
}

/* 画像読み込み前、またはプレースホルダー時の仮テキストマーク */
.orbit-center::before {
    content: "Mapture360";
    color: var(--primary-color); /* 白背景で見えるようにブランドカラーに変更 */
    font-weight: 800;
    font-size: 1.1em;
    position: absolute;
    z-index: 1;
}

/* 画像がロードされて子要素のimgが存在する場合は、仮テキストを非表示にする */
.orbit-center:has(img)::before {
    display: none;
}

/* 放射状ユースケースカード */
.usecase-orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    margin-top: -95px;
    margin-left: -95px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* 72度刻みでの等間隔配置（インデックスを2〜6に修正） */
.usecase-orbit-item:nth-child(2) { transform: rotate(270deg) translate(225px) rotate(-270deg); }
.usecase-orbit-item:nth-child(3) { transform: rotate(342deg) translate(225px) rotate(-342deg); }
.usecase-orbit-item:nth-child(4) { transform: rotate(54deg) translate(225px) rotate(-54deg); }
.usecase-orbit-item:nth-child(5) { transform: rotate(126deg) translate(225px) rotate(-126deg); }
.usecase-orbit-item:nth-child(6) { transform: rotate(198deg) translate(225px) rotate(-198deg); }

.usecase-orbit-item h3 {
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-main);
}

.usecase-orbit-item p {
    font-size: 0.76em;
    line-height: 1.4;
    color: var(--text-sub);
}

/* ホバー時の挙動を個別定義（元の位置を保持したまま scale し、z-index: 12 で中央円より前面へ） */
.usecase-orbit-item:nth-child(2):hover { transform: rotate(270deg) translate(225px) rotate(-270deg) scale(1.08); z-index: 12; border-color: rgba(26, 115, 232, 0.35); box-shadow: 0 12px 32px rgba(26, 115, 232, 0.12); }
.usecase-orbit-item:nth-child(3):hover { transform: rotate(342deg) translate(225px) rotate(-342deg) scale(1.08); z-index: 12; border-color: rgba(26, 115, 232, 0.35); box-shadow: 0 12px 32px rgba(26, 115, 232, 0.12); }
.usecase-orbit-item:nth-child(4):hover { transform: rotate(54deg) translate(225px) rotate(-54deg) scale(1.08); z-index: 12; border-color: rgba(26, 115, 232, 0.35); box-shadow: 0 12px 32px rgba(26, 115, 232, 0.12); }
.usecase-orbit-item:nth-child(5):hover { transform: rotate(126deg) translate(225px) rotate(-126deg) scale(1.08); z-index: 12; border-color: rgba(26, 115, 232, 0.35); box-shadow: 0 12px 32px rgba(26, 115, 232, 0.12); }
.usecase-orbit-item:nth-child(6):hover { transform: rotate(198deg) translate(225px) rotate(-198deg) scale(1.08); z-index: 12; border-color: rgba(26, 115, 232, 0.35); box-shadow: 0 12px 32px rgba(26, 115, 232, 0.12); }

/* ==========================================================================
   Usecase Mobile Responsive (900px以下でのレイアウト自動変形)
   ========================================================================== */
@media (max-width: 900px) {
    .usecase-orbit-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
    }

    .orbit-center {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 10px;
    }

    .usecase-orbit-item {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important; /* 円形配置を無効化 */
        width: 100%;
        max-width: 480px;
        height: auto;
        margin: 0;
        border-radius: 12px; /* モバイルでは可読性向上のため長方形カードに変化 */
        padding: 24px 28px;
        text-align: left;
        align-items: flex-start;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    }

    .usecase-orbit-item:hover {
        transform: translateY(-2px);
    }
    
    .usecase-orbit-item h3 {
        font-size: 1.05em;
    }

    .usecase-orbit-item p {
        font-size: 0.88em;
    }
}

/* ==========================================================================
   Text Formatting & Break Control (オルファン・孤立文字防止)
   ========================================================================== */
.nobr {
    display: inline-block;
}

/* グローバルでのインテリジェントな改行制御（モダンブラウザ対応のプログレッシブエンハンスメント） */
p {
    text-wrap: pretty;
}

/* ==========================================================================
   Integrated Brand Header (統合型ブランドロゴ)
   ========================================================================== */
.logo {
    display: flex;
    align-items: center;
}

/* 開発企業リンク (サブ) */
.brand-company {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82em;
    color: var(--text-sub) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.brand-company:hover {
    opacity: 0.8;
}

.company-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ディバイダー */
.brand-divider {
    height: 16px;
    border-left: 1px solid var(--border-color);
    margin: 0 12px;
    display: inline-block;
}

/* プロダクトリンク (メイン) */
.brand-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text-main) !important;
    letter-spacing: -0.02em;
    text-decoration: none !important;
}

.product-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* モバイルレスポンシブ制限 (企業ロゴ・ディバイダーを隠してヘッダー破綻を防止) */
@media (max-width: 768px) {
    .brand-company,
    .brand-divider {
        display: none !important;
    }
    .brand-product {
        font-size: 1.15em;
    }
}

/* ==========================================================================
   Viewer Guide Image (ビューアー解説画像コンポーネント)
   ========================================================================== */
.viewer-img-container {
    margin: 12px 0 24px 0; /* 直前のテキストとの隙間を詰め、下部に適度な余白を設定 */
    text-align: center;
    width: 100%;
    overflow: hidden;
    background: transparent; /* 背景を透過し、大きさの差による余白の露出を完全にシャットアウト */
}

.viewer-img-container .feature-img {
    display: inline-block;
    max-width: 100%;
    width: auto; /* 強制的に引き伸ばさずアスペクト比を完璧に保護 */
    height: auto;
    max-height: 480px; /* PCでの過度な画面占有をインテリジェントに制限 */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    cursor: pointer; /* 拡大表示可能であることを明示するポインター */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* ホバー時のプレミアムな浮き上がり＆微ズームを画像自体にダイナミックに適用 */
.viewer-img-container:hover .feature-img {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
}

