/* =========================================================
   AsTech One トップページ専用スタイル
   すべて .ao-top 配下にスコープし、親テーマCSSと干渉させない
   ========================================================= */

.ao-top { font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif; color: #333; line-height: 1.7; }
.ao-top *, .ao-top *::before, .ao-top *::after { box-sizing: border-box; }
.ao-top h2, .ao-top h3, .ao-top p, .ao-top ul, .ao-top figure { margin: 0; padding: 0; }
.ao-top ul { list-style: none; }
.ao-top img { max-width: none; }
.ao-top a { color: #2BBFA4; text-decoration: none; }
.ao-top a:hover { color: #229e87; }

/* ===== SLIDER (HERO) ===== */
.ao-top .slider-section { position: relative; overflow: hidden; height: 548px; background: #0d1a2e; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.ao-top .slider-track { display: flex; height: 100%; transition: transform 0.7s ease; }
.ao-top .slide-item { min-width: 100%; height: 100%; display: flex; align-items: flex-start; padding: 108px 80px 28px; position: relative; }
.ao-top .svc-pill { position: absolute; top: 40px; left: 80px; z-index: 4; white-space: nowrap; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 9px 24px; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.ao-top .svc-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.ao-top .svc-pill.sf { color: #1a5ad4; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.ao-top .svc-pill.sf .dot { background: #1a5ad4; }
.ao-top .svc-pill.ms { color: #2f9e6e; border: 1px solid rgba(47,158,110,0.35); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ao-top .svc-pill.ms .dot { background: #2f9e6e; }
.ao-top .svc-pill.df { color: #0f9ba0; border: 1px solid rgba(15,155,160,0.35); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ao-top .svc-pill.df .dot { background: #0f9ba0; }
.ao-top .slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; }
.ao-top .slide-inner { position: relative; z-index: 2; display: flex; align-items: center; width: 100%; gap: 40px; }
.ao-top .slide-mobile-img { display: none; }
.ao-top .slide-mobile-illust { display: none; }
.ao-top .slide-mobile-logo { display: none; }
.ao-top .slide-body { flex: 1; }
.ao-top .slide-eyebrow { font-size: 16px; color: #2BBFA4; letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 700; white-space: nowrap; }
.ao-top .slide-eyebrow.yt { color: #FF6B6B; }
.ao-top .slide-body h2 { font-size: 36px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 20px; text-shadow: 1px 1px 4px rgba(0,0,0,0.4); }
.ao-top .slide-body p { font-size: 16px; color: rgba(255,255,255,0.92); line-height: 1.85; margin-bottom: 28px; }
.ao-top .slide-body p:not(.slide-eyebrow) { min-height: 89px; }
.ao-top .slide-btn { display: inline-flex; align-items: center; gap: 8px; background: #2BBFA4; color: #fff; font-size: 16px; font-weight: 600; padding: 15px 34px; border-radius: 3px; text-decoration: none; }
.ao-top .slide-btn:hover { background: #229e87; color: #fff; }
.ao-top .slide-btn::after { content: ' \2192'; }
.ao-top .sp-br { display: none; }
.ao-top .slide-btn.yt { background: #FF0000; }
.ao-top .slide-btn.yt:hover { background: #cc0000; }

.ao-top .slider-dots { position: absolute; bottom: 20px; left: 80px; display: flex; gap: 8px; z-index: 10; }
.ao-top .sdot { width: 28px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; cursor: pointer; transition: background 0.3s; border: none; padding: 0; }
.ao-top .sdot.on { background: #2BBFA4; }
.ao-top .slider-prev, .ao-top .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.08); color: #1a3a5c; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.2s, color 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.ao-top .slider-prev { left: 20px; }
.ao-top .slider-next { right: 20px; }
.ao-top .slider-prev:hover, .ao-top .slider-next:hover { background: #2BBFA4; border-color: #2BBFA4; color: #fff; }

/* ===== サービス内容（3カード） ===== */
.ao-top .about-section { background: #f7f7f7; border-bottom: 1px solid #e0e0e0; padding: 40px; }
.ao-top .about-inner { max-width: 1240px; margin: 0 auto; }
.ao-top .about-heading { font-size: 17px; font-weight: 700; color: #333; padding-bottom: 8px; border-bottom: 2px solid #2BBFA4; display: inline-block; margin-bottom: 24px; }
.ao-top .about-cards { display: flex; gap: 16px; }
.ao-top .about-card { flex: 1; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; text-decoration: none; color: #333; display: flex; flex-direction: column; transition: box-shadow 0.2s; background: #fff; }
.ao-top .about-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.ao-top .about-card-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 16px; text-align: center; min-height: 80px; }
.ao-top .about-card-head.sf { background: #00A1E0; }
.ao-top .about-card-head.ms { background: #15945a; }
.ao-top .about-card-head.df { background: #142a47; }
.ao-top .about-card-name { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.3; }
.ao-top .about-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.ao-top .about-card-service { font-size: 16px; font-weight: 700; color: #444; background: #f0f0f0; border: 1px solid #ddd; padding: 5px 13px; border-radius: 4px; display: inline-block; }
.ao-top .about-card-desc { font-size: 16px; color: #333; line-height: 1.7; flex: 1; }
.ao-top .about-card-btn { display: block; width: 100%; text-align: center; font-size: 16px; font-weight: 700; padding: 11px 12px; border-radius: 4px; text-decoration: none; }
.ao-top .about-card-btn.sf { background: #e6f5fc; color: #00A1E0; border: 1px solid #b3d9f0; }
.ao-top .about-card-btn.sf:hover { background: #00A1E0; color: #fff; }
.ao-top .about-card-btn.ms { background: #e8f4ee; color: #15945a; border: 1px solid #bfe0cd; }
.ao-top .about-card-btn.ms:hover { background: #15945a; color: #fff; }
.ao-top .about-card-btn.df { background: #e9edf3; color: #142a47; border: 1px solid #c2cdde; }
.ao-top .about-card-btn.df:hover { background: #142a47; color: #fff; }
.ao-top .about-link { display: inline-flex; align-items: center; gap: 6px; background: #2BBFA4; color: #fff; font-size: 16px; font-weight: 700; padding: 14px 36px; border-radius: 3px; text-decoration: none; }
.ao-top .about-link:hover { background: #229e87; color: #fff; }
.ao-top .about-link::after { content: ' \2192'; }

/* ===== ニュース ===== */
.ao-top .news-wrap { max-width: 1060px; margin: 0 auto; padding: 32px 20px; }
.ao-top .news-section-title { font-size: 22px; font-weight: 700; color: #333; border-bottom: 2px solid #2BBFA4; padding-bottom: 8px; margin-bottom: 22px; }
.ao-top .post-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
.ao-top .post-item:last-of-type { border-bottom: none; }
.ao-top .post-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ao-top .post-cat { display: inline-block; background: #2BBFA4; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 2px; }
.ao-top .post-date, .ao-top .post-author { font-size: 12px; color: #999; }
.ao-top .post-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ao-top .post-title a { color: #333; }
.ao-top .post-title a:hover { color: #2BBFA4; }
.ao-top .post-more { text-align: right; }
.ao-top .post-more a { font-size: 12px; color: #2BBFA4; }
.ao-top .post-more a::after { content: ' \00bb'; }

/* ===== お問い合わせ CTA ===== */
.ao-top .top-cta { background: linear-gradient(160deg, #f0faf8 0%, #dff3ef 100%); border-top: 1px solid #b8e8e2; border-bottom: 1px solid #b8e8e2; padding: 48px 20px; text-align: center; }
.ao-top .top-cta-inner { max-width: 720px; margin: 0 auto; }
.ao-top .top-cta-title { font-size: 22px; font-weight: 700; color: #173a5e; line-height: 1.5; margin-bottom: 14px; }
.ao-top .top-cta-body { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 26px; }
.ao-top .top-cta-btn { display: inline-block; background: #2BBFA4; color: #fff; font-size: 17px; font-weight: 700; padding: 15px 44px; border-radius: 4px; text-decoration: none; box-shadow: 0 6px 18px rgba(43,191,164,0.28); }
.ao-top .top-cta-btn:hover { background: #17a897; color: #fff; }
.ao-top .top-cta-btn::after { content: ' \2192'; }

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .ao-top .slider-section { height: auto; }
  .ao-top .slider-track { align-items: stretch; }
  .ao-top .slide-item { padding: 30px 20px; min-height: 300px; height: auto; align-items: flex-start; flex-direction: column; }
  .ao-top .svc-pill { position: static; margin: 0 0 14px; top: auto; left: auto; }
  .ao-top .yt-slide .slide-inner { margin-top: 47px; }
  .ao-top .slide-item > div:not(.slide-inner) { display: none !important; }
  .ao-top .slide-inner { flex-direction: column; gap: 20px; align-items: stretch; }
  .ao-top .slide-inner > div:not(.slide-body) { display: none; }
  .ao-top .slide-inner > div:not(.slide-body) img { max-width: 100%; height: auto; }
  .ao-top .slide-body { max-width: none !important; display: flex; flex-direction: column; min-height: 320px; }
  .ao-top .slide-eyebrow { align-self: flex-start; }
  .ao-top .slide-body h2 { font-size: 22px !important; white-space: normal !important; margin-bottom: 12px; }
  .ao-top .slide-body p { font-size: 13px; margin-bottom: 16px; }
  .ao-top .sp-br { display: inline; }
  .ao-top .slide-body p:not(.slide-eyebrow) { min-height: 0; }
  .ao-top .slide-body img { height: 56px !important; align-self: flex-start; }
  .ao-top .slide-btn { font-size: 14px; padding: 12px 24px; display: flex; width: fit-content; margin-left: auto; margin-right: auto; margin-top: auto; }
  .ao-top .slide-mobile-img { display: block !important; width: 100%; margin-top: 6px; }
  .ao-top .slide-mobile-illust { display: block; width: 100%; height: 280px; object-fit: cover; object-position: right center; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
  .ao-top .slide-mobile-logo { display: block; width: 210px; margin: 4px auto 0; background: #fff; padding: 28px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
  .ao-top .slide-bg { display: none !important; }
  .ao-top .slide-geo { display: none !important; }
  .ao-top .df-hero-logo { margin-left: auto !important; margin-right: auto !important; height: 64px !important; }
  .ao-top .slider-prev { left: 6px; width: 32px; height: 32px; font-size: 16px; }
  .ao-top .slider-next { right: 6px; width: 32px; height: 32px; font-size: 16px; }
  .ao-top .slider-dots { left: 50%; transform: translateX(-50%); }
  .ao-top .about-section { padding: 28px 16px; }
  .ao-top .about-cards { flex-direction: column; }
  .ao-top .news-wrap { padding: 20px 16px; }
}
