/* === AR Service Page Styles === */

/* base.cssのスクロールアニメーションをこのページでは無効化 */
.ar-page .scroll-fade-up,
.ar-page .scroll-fade-left,
.ar-page .scroll-fade-right,
.ar-page .scroll-scale-up,
.ar-page .scroll-stagger > * {
    opacity: 1 !important;
    transform: none !important;
}

/* スクロールアニメーション: 下からふわっと */
.ar-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ar-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* カードは順番にディレイをつける */
.ar-fade-up.delay-1 { transition-delay: 0.1s; }
.ar-fade-up.delay-2 { transition-delay: 0.2s; }
.ar-fade-up.delay-3 { transition-delay: 0.3s; }
.ar-fade-up.delay-4 { transition-delay: 0.4s; }
.ar-fade-up.delay-5 { transition-delay: 0.5s; }
.ar-fade-up.delay-6 { transition-delay: 0.6s; }
.ar-fade-up.delay-7 { transition-delay: 0.7s; }
.ar-fade-up.delay-8 { transition-delay: 0.8s; }
.ar-fade-up.delay-9 { transition-delay: 0.9s; }
.ar-fade-up.delay-10 { transition-delay: 1.0s; }

/* フォント: コンテンツ部分のみゴシック体 */
.ar-page {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    line-height: 1.8;
    font-size: 16px;
}
/* ヘッダー・フッターはbase.cssのフォントを維持 */
.ar-page .header,
.ar-page .footer {
    font-family: "游明朝体", Yu Mincho, YuMincho, "ヒラギノ明朝 Pro", Hiragino Mincho Pro, "MS P明朝", MS PMincho, serif;
    line-height: 1.6;
    font-size: inherit;
}

.ar-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.ar-section { padding: 80px 0; }
.ar-section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 20px; color: #1a1a1a; letter-spacing: 0.02em; position: relative; padding-bottom: 16px; }
.ar-section-title::after { content: ''; display: block; width: 40px; height: 3px; background: #2d5a87; margin: 12px auto 0; border-radius: 2px; }
.ar-section-subtitle { text-align: center; color: #666; font-size: 15px; margin-bottom: 48px; }
.accent { color: #2d5a87; }

/* Top (Hero) */
.ar-top {
    background: #f8f9fa url('../media/ar-service/ar-hero-bg.jpg') center / cover no-repeat;
    padding: 20px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}
/* 背景画像の上に半透明オーバーレイ（テキスト読みやすさ確保） */
.ar-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 250, 0.85);
    z-index: 0;
}
.ar-top .ar-container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.ar-top-text { flex: 1; }
.ar-top-label { display: inline-block; background: #f0f4f8; color: #2d5a87; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 6px; margin-bottom: 20px; letter-spacing: 0.02em; border: 1px solid #dde4ed; }
.ar-top-title { font-size: 36px; font-weight: 800; line-height: 1.4; color: #1a1a1a; margin-bottom: 20px; }
.ar-top-desc { font-size: 16px; color: #666; margin-bottom: 32px; line-height: 1.9; }
.ar-top-cta { display: inline-flex; align-items: center; gap: 10px; background: #2d5a87; color: #fff; font-size: 15px; font-weight: 600; padding: 14px 32px; border-radius: 8px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap; box-shadow: 0 4px 14px rgba(45,90,135,0.25); }
.ar-top-cta:hover { background: #1a4068; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,90,135,0.35); }
.ar-top-cta svg { transition: transform 0.2s; }
.ar-top-cta:hover svg { transform: translateX(3px); }
.ar-top-visual { flex: 0 0 300px; }
.ar-top-img { width: 280px; margin: 30px auto; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); display: block; }

/* Steps */
.ar-steps { background: #fff; }
.ar-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.ar-steps-grid::before { content: ''; position: absolute; top: 48px; left: 16%; right: 16%; height: 2px; background: #eee; z-index: 0; }
.ar-step-card { text-align: center; position: relative; z-index: 1; }
.ar-step-label { display: inline-block; color: #2d5a87; font-size: 12px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.05em; }
.ar-step-number { width: 96px; height: 96px; border-radius: 50%; background: #f0f4f8; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; border: 2px solid #dde4ed; }
.ar-step-icon { width: 44px; height: 44px; fill: #2d5a87; }
.ar-step-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.ar-step-desc { font-size: 14px; color: #666; line-height: 1.8; }
.ar-steps-image { text-align: center; margin-top: 48px; }
.ar-steps-image img { max-width: 600px; width: 100%; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* Use Cases - 横並びリスト */
.ar-usecases { background: #f8f9fa; }
.ar-usecases-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.ar-usecase-row { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 10px; padding: 16px 20px; border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.ar-usecase-row:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.ar-usecase-icon { width: 44px; height: 44px; min-width: 44px; background: #f0f4f8; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
.ar-usecase-icon svg { width: 22px; height: 22px; fill: #2d5a87; }
.ar-usecase-text { flex: 1; }
.ar-usecase-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ar-usecase-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 10px; }
.ar-tag-school { background: #f0f4f8; color: #2d5a87; }
.ar-tag-biz { background: #f0f0f0; color: #555; }
.ar-tag-gov { background: #f0f8f4; color: #3a7a5a; }
.ar-usecase-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.ar-usecase-desc { font-size: 13px; color: #666; line-height: 1.6; }

/* Features - 横並びリスト */
.ar-features { background: #fff; }
.ar-features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.ar-feature-row { display: flex; align-items: center; gap: 16px; background: #f8f9fa; border-radius: 10px; padding: 16px 20px; border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.ar-feature-row:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.ar-feature-icon { width: 44px; height: 44px; min-width: 44px; background: #f0f4f8; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #dde4ed; }
.ar-feature-icon svg { width: 22px; height: 22px; fill: #2d5a87; }
.ar-feature-text { flex: 1; }
.ar-feature-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #1a1a1a; }
.ar-feature-desc { font-size: 13px; color: #666; line-height: 1.6; }

/* Flow */
.ar-flow { background: #f8f9fa; }
.ar-flow-steps { display: flex; justify-content: center; max-width: 820px; margin: 0 auto; position: relative; }
.ar-flow-steps::before { content: ''; position: absolute; top: 36px; left: 12%; right: 12%; height: 3px; background: #dde4ed; z-index: 0; }
.ar-flow-item { text-align: center; flex: 1; position: relative; z-index: 1; }
.ar-flow-circle { width: 72px; height: 72px; background: #fff; border: 3px solid #2d5a87; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.ar-flow-circle svg { width: 34px; height: 34px; fill: #2d5a87; }
.ar-flow-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #1a1a1a; }
.ar-flow-desc { font-size: 13px; color: #888; line-height: 1.6; }

/* Plans - 料金表風2カラム */
.ar-plans { background: #fff; }
.ar-plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; align-items: start; }
.ar-plan-card { background: #fff; border-radius: 12px; border: 1px solid #e0e0e0; overflow: hidden; position: relative; }
.ar-plan-featured { border: 2px solid #2d5a87; transform: scale(1.03); box-shadow: 0 8px 30px rgba(45,90,135,0.12); }
.ar-plan-ribbon { position: absolute; top: 16px; right: -32px; background: #2d5a87; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 40px; transform: rotate(45deg); letter-spacing: 0.05em; }
.ar-plan-header { padding: 28px 24px 20px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.ar-plan-header-featured { background: #f0f6ff; border-bottom: 1px solid #dde4ed; }
.ar-plan-name { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.ar-plan-featured .ar-plan-name { color: #2d5a87; }
.ar-plan-catch { font-size: 13px; color: #888; }
.ar-plan-list { list-style: none; padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ar-plan-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #333; }
.ar-plan-list li svg { width: 18px; height: 18px; fill: #2d5a87; flex-shrink: 0; }
.ar-plan-list-disabled { color: #ccc !important; }
.ar-plan-list-disabled svg { fill: #ccc !important; }
.ar-plan-list-highlight { font-weight: 600; background: #f0f6ff; margin: 0 -24px; padding: 0 24px; }
.ar-plan-list-highlight svg { fill: #2d5a87; }
.ar-plan-footer { padding: 0 24px 28px; text-align: center; }
.ar-plan-btn { display: inline-block; padding: 12px 36px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 2px solid #2d5a87; color: #2d5a87; transition: all 0.2s; }
.ar-plan-btn:hover { background: #f0f6ff; }
.ar-plan-btn-featured { background: #2d5a87; color: #fff; border-color: #2d5a87; }
.ar-plan-btn-featured:hover { background: #1a4068; }

/* CTA */
.ar-cta-section { background: linear-gradient(135deg, #192a45 0%, #2d5a87 100%); color: #fff; text-align: center; padding: 48px 0; }
.ar-cta-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.ar-cta-desc { font-size: 16px; color: #aaa; margin-bottom: 36px; line-height: 1.8; }
.ar-cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.ar-cta-tel { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.08); padding: 16px 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); transition: background 0.2s; }
.ar-cta-tel:hover { background: rgba(255,255,255,0.15); }
.ar-cta-tel svg { width: 24px; height: 24px; fill: #fff; }
.ar-cta-tel-number { font-size: 24px; font-weight: 700; }
.ar-cta-tel-note { font-size: 12px; color: #aaa; }
.ar-cta-mail { display: flex; align-items: center; gap: 12px; background: #2d5a87; color: #fff; padding: 16px 32px; border-radius: 8px; font-weight: 600; font-size: 16px; transition: background 0.2s, transform 0.2s; }
.ar-cta-mail:hover { background: #1a4068; transform: translateY(-2px); }
.ar-cta-mail svg { width: 20px; height: 20px; fill: #fff; }

/* AR Bracket Animation (Hero background) */
.ar-brackets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.ar-bracket {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.2;
    border: 2.5px solid #2d5a87;
    border-right: none;
    border-bottom: none;
}
/* 四隅のL字コーナーを疑似要素で対角に追加 */
.ar-bracket::after {
    content: '';
    position: absolute;
    bottom: -2.5px;
    right: -2.5px;
    width: 60%;
    height: 60%;
    border: 2.5px solid #2d5a87;
    border-left: none;
    border-top: none;
}

/* 各ブラケットの配置・サイズ・アニメーション */
.ar-b1 { width: 70px; height: 70px; top: 8%; left: 6%; animation: arBracketFloat1 20s ease-in-out infinite; }
.ar-b2 { width: 50px; height: 50px; top: 15%; right: 12%; animation: arBracketFloat2 17s ease-in-out infinite; }
.ar-b3 { width: 80px; height: 80px; bottom: 12%; left: 15%; animation: arBracketFloat3 22s ease-in-out infinite; }
.ar-b4 { width: 45px; height: 45px; top: 55%; right: 8%; animation: arBracketFloat1 19s ease-in-out infinite reverse; }
.ar-b5 { width: 55px; height: 55px; bottom: 20%; right: 30%; animation: arBracketFloat2 24s ease-in-out infinite; }
.ar-b6 { width: 40px; height: 40px; top: 35%; left: 40%; animation: arBracketFloat3 18s ease-in-out infinite reverse; }
.ar-b7 { width: 65px; height: 65px; top: 5%; right: 35%; animation: arBracketFloat1 23s ease-in-out infinite; }
.ar-b8 { width: 50px; height: 50px; bottom: 8%; left: 40%; animation: arBracketFloat2 20s ease-in-out infinite reverse; }
.ar-b9 { width: 35px; height: 35px; top: 70%; left: 8%; animation: arBracketFloat3 16s ease-in-out infinite; }

@keyframes arBracketFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -12px) rotate(5deg); }
    50% { transform: translate(-8px, -20px) rotate(-3deg); }
    75% { transform: translate(-12px, 8px) rotate(2deg); }
}
@keyframes arBracketFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-12px, 18px) rotate(-4deg); }
    66% { transform: translate(15px, -10px) rotate(6deg); }
}
@keyframes arBracketFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(10px, 15px) rotate(3deg); }
    40% { transform: translate(-15px, 5px) rotate(-4deg); }
    60% { transform: translate(8px, -18px) rotate(5deg); }
    80% { transform: translate(-10px, -5px) rotate(-2deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ar-top .ar-container { flex-direction: column; gap: 40px; text-align: center; }
    .ar-top-title { font-size: 26px; }
    .ar-top-visual { flex: none; }
    .ar-top-img { width: 220px; }
    .ar-top { margin-top: 60px; }
    .ar-section { padding: 60px 0; }
    .ar-section-title { font-size: 22px; }
    .ar-steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .ar-steps-grid::before { display: none; }
    .ar-usecases-list { grid-template-columns: 1fr; }
    .ar-features-list { grid-template-columns: 1fr; }
    .ar-flow-steps { flex-wrap: wrap; gap: 20px 0; }
    .ar-flow-steps::before { top: 28px; left: 15%; right: 15%; }
    .ar-flow-item { flex: 0 0 50%; }
    .ar-cta-title { font-size: 22px; }
    .ar-plans-grid { grid-template-columns: 1fr; gap: 16px; }
    .ar-plan-featured { transform: none; }
    .ar-plan-name { font-size: 18px; }
}
