/*
  Technogram サービス詳細ページ 共通スタイル
  Used by: aio-seo, consulting, web-creation, ads
*/

/* SWELL OVERRIDES */
.service-detail {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #333;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  --black: #1a1a1a;
  --text: #333;
  --text-sub: #555;
  --text-muted: #888;
  --text-pale: #aaa;
  --border: #e2e2e2;
  --border-light: #eee;
  --bg: #fff;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --w: 1060px;
  --px: clamp(20px, 5vw, 60px);
}
body:has(.service-detail) { overflow-x: clip; }
html:has(.service-detail) { scroll-behavior: smooth; }
body:has(.service-detail) .p-breadcrumb.-bg-on { display: none !important; }
body:has(.service-detail) .l-footer { margin-top: 0 !important; }
body:has(.service-detail) #wrapper,
body:has(.service-detail) .l-wrapper,
body:has(.service-detail) .l-content { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body:has(.service-detail) .l-mainContent,
body:has(.service-detail) .l-mainContent__inner,
body:has(.service-detail) .l-mainContent > article,
body:has(.service-detail) .post_content,
body:has(.service-detail) .l-content,
body:has(.service-detail) .l-content__inner { overflow: visible !important; max-width: 100% !important; padding: 0 !important; }
.service-detail *, .service-detail *::before, .service-detail *::after { box-sizing: border-box; }
.service-detail a { color: inherit; text-decoration: none; }
.service-detail img { max-width: 100%; height: auto; display: block; }
.w { max-width: var(--w); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }

/* HERO */
.hero { background: var(--bg-dark); color: #fff; padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"); pointer-events: none; }
.hero .w { position: relative; z-index: 1; }
.hero-bc { font-size: 12px; color: rgba(255,255,255,.3); margin-bottom: 56px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-bc a { color: rgba(255,255,255,.3); transition: color .2s; }
.hero-bc a:hover { color: rgba(255,255,255,.7); }
.hero-label { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.35); margin-bottom: 24px; }
.hero-label::before { content: ''; width: 24px; height: 1px; background: rgba(255,255,255,.25); }
.hero h1 { font-size: clamp(26px, 3.8vw, 42px); font-weight: 900; letter-spacing: .02em; line-height: 1.35; margin-bottom: 32px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.55); line-height: 2.1; max-width: 640px; font-weight: 300; }
.hero-line { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(255,255,255,.06) 50%, var(--bg-dark) 100%); }

/* SECTION */
.sec { padding: 104px 0; position: relative; }
.sec--alt { background: var(--bg-light); }
.sec-header { margin-bottom: 56px; position: relative; }
.sec-en { font-size: 11px; letter-spacing: .2em; color: var(--text-pale); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 12px; }
.sec-en::before { content: ''; width: 20px; height: 1px; background: var(--border); }
.sec-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; color: var(--black); letter-spacing: .02em; line-height: 1.4; margin-bottom: 14px; }
.sec-desc { font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 2; max-width: 640px; }
.sec-deco { position: absolute; right: var(--px); top: 80px; font-size: clamp(100px, 14vw, 180px); font-weight: 900; color: #AFAFB0; line-height: 1; pointer-events: none; letter-spacing: -.04em; }
.sec--alt .sec-deco { color: #AFAFB0; }

/* LEAD */
.lead { padding: 80px 0; border-bottom: 1px solid var(--border-light); }
.lead-inner { display: grid; grid-template-columns: 3px 1fr; gap: 32px; align-items: stretch; }
.lead-accent { background: var(--black); border-radius: 2px; }
.lead-title { font-size: clamp(20px, 2.5vw, 26px); font-weight: 900; color: var(--black); margin-bottom: 20px; line-height: 1.45; }
.lead-text { font-size: 15px; color: var(--text-sub); line-height: 2.2; font-weight: 300; }
.lead-text strong { font-weight: 700; color: var(--text); }

/* DEFINITION BOX */
.def { margin-top: 56px; background: var(--bg-light); border: 1px solid var(--border-light); border-radius: 6px; padding: 44px 48px; position: relative; overflow: hidden; }
.def::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--black) 0%, transparent 100%); }
.def h3 { font-size: 13px; font-weight: 700; color: var(--black); letter-spacing: .08em; margin-bottom: 16px; }
.def-text { font-size: 14px; color: var(--text-sub); line-height: 2; font-weight: 300; margin-bottom: 28px; }
.def-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.def-list li { font-size: 14px; color: var(--text-sub); line-height: 1.9; font-weight: 300; padding-left: 28px; position: relative; }
.def-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg-light); }
.def-list li strong { font-weight: 700; color: var(--text); }

/* BLOCKQUOTE (.bq) */
.bq { margin-top: 48px; padding: 36px 40px; background: var(--bg-dark); color: rgba(255,255,255,.7); border-radius: 6px; position: relative; }
.bq::before { content: '\201C'; position: absolute; top: 12px; left: 20px; font-size: 48px; font-weight: 900; color: rgba(255,255,255,.08); line-height: 1; }
.bq p { font-size: 14px; line-height: 2; font-weight: 300; }
.bq strong { font-weight: 700; color: #fff; }

/* PROCESS TIMELINE */
.process { display: flex; flex-direction: column; gap: 0; position: relative; }
.process::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--border); }
.p-step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 24px 0; position: relative; }
.p-dot { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-muted); position: relative; z-index: 1; }
.p-body { display: flex; flex-direction: column; justify-content: center; }
.p-body h3 { font-size: 15px; font-weight: 900; color: var(--black); margin-bottom: 4px; }
.p-body p { font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.8; }

/* SCOPE GRID */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; }
.scope-item { padding: 24px 32px; border-bottom: 1px solid var(--border-light); display: flex; align-items: baseline; gap: 16px; }
.scope-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
.scope-item:nth-last-child(-n+2) { border-bottom: none; }
.scope-num { font-size: 12px; font-weight: 700; color: var(--text-pale); min-width: 20px; }
.scope-text { font-size: 14px; color: var(--text-sub); font-weight: 400; line-height: 1.8; }

/* INSIGHT SPLIT */
.insight-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.insight-col h3 { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; }
.insight-col h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--black); }
.insight-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.insight-list li { font-size: 14px; color: var(--text-sub); line-height: 1.9; font-weight: 300; padding-left: 20px; position: relative; }
.insight-list li::before { content: '\2014'; position: absolute; left: 0; color: var(--text-pale); }
.insight-list li strong { font-weight: 700; color: var(--text); }
.i-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.i-list li { font-size: 14px; color: var(--text-sub); line-height: 1.9; font-weight: 300; padding-left: 20px; position: relative; }
.i-list li::before { content: '\2014'; position: absolute; left: 0; color: var(--text-pale); }
.i-list li strong { font-weight: 700; color: var(--text); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-q { padding: 28px 52px 28px 0; font-size: 15px; font-weight: 700; color: var(--black); cursor: pointer; position: relative; display: block; width: 100%; transition: color .2s; }
.faq-q:hover { color: var(--text-sub); }
.faq-q::after { content: ''; position: absolute; right: 0; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); background: linear-gradient(var(--text-muted), var(--text-muted)) center/1px 14px no-repeat, linear-gradient(var(--text-muted), var(--text-muted)) center/14px 1px no-repeat; transition: transform .35s ease, opacity .35s ease; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.16,1,.3,1), padding .45s ease; }
.faq-item.open .faq-a { max-height: 260px; padding-bottom: 32px; }
.faq-a p { font-size: 14px; color: var(--text-sub); line-height: 2; font-weight: 300; }

/* RELATED */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card { border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; transition: box-shadow .35s ease, transform .35s ease; }
.rel-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.06); transform: translateY(-3px); }
.rel-img { aspect-ratio: 4/3; overflow: hidden; }
.rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.rel-card:hover .rel-img img { transform: scale(1.06); }
.rel-body { padding: 24px 28px; }
.rel-en { font-size: 10px; letter-spacing: .15em; color: var(--text-pale); margin-bottom: 6px; }
.rel-name { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.rel-sub { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.rel-arrow { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--black); margin-top: 12px; }
.rel-arrow span { width: 20px; height: 1px; background: var(--black); position: relative; transition: width .3s ease; }
.rel-arrow span::after { content: ''; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-top: 1px solid var(--black); border-right: 1px solid var(--black); transform: translateY(-50%) rotate(45deg); }
.rel-card:hover .rel-arrow span { width: 28px; }

/* CTA */
.cta-sec { background: var(--bg-dark); color: #fff; padding: clamp(100px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.cta-sec::before { content: 'Contact'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: clamp(8rem, 20vw, 18rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: rgba(255,255,255,.025); pointer-events: none; white-space: nowrap; font-family: 'Sora', sans-serif; }
.cta-header { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); position: relative; z-index: 1; }
.cta-header .sec-eyebrow { font-size: clamp(5rem, 10vw, 8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #AFAFB0; font-family: 'Sora', sans-serif; display: block; margin-bottom: 16px; }
.cta-header .sec-title { color: #fff; font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; letter-spacing: .02em; line-height: 1.4; margin-bottom: 14px; }
.cta-header .sec-lead { color: rgba(255,255,255,.45); font-size: 14px; line-height: 2; font-weight: 300; margin: 0 auto; }
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 720px; margin: 0 auto; padding: 0 var(--px); position: relative; z-index: 1; }
.cta-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 32px); text-align: center; transition: background .3s, border-color .3s, transform .3s; }
.cta-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); transform: translateY(-4px); }
.cta-icon { width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; }
.cta-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.5; }
.cta-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.cta-card p { font-size: .78rem; opacity: .4; line-height: 1.9; margin-bottom: 24px; }
.btn-cta-w, .btn-cta-a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 28px; border-radius: 80px; font-size: .78rem; font-weight: 600; transition: all .3s; font-family: var(--font); cursor: pointer; }
.btn-cta-w { border: 1px solid rgba(255,255,255,.25); color: #fff !important; background: transparent; }
.btn-cta-a { background: #0055cc; color: #fff !important; border: none; }
.btn-cta-w:hover, .btn-cta-a:hover { transform: translateY(-1px); opacity: 1; }

/* ANIMATIONS */
.fi { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fi.v { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 760px) {
  .hero { padding: 88px 0 72px; }
  .hero::before { font-size: 120px; right: -20px; }
  .lead-inner { grid-template-columns: 1fr; gap: 0; }
  .lead-accent { display: none; }
  .def { padding: 28px 24px; }
  .bq { padding: 28px 24px; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-item:nth-child(odd) { border-right: none; }
  .insight-split { grid-template-columns: 1fr; gap: 32px; }
  .rel-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .sec-deco { display: none; }
  .process::before { left: 27px; }
}
@media (max-width: 540px) {
  .hero { padding: 72px 0 56px; }
  .sec { padding: 72px 0; }
  .p-step { grid-template-columns: 44px 1fr; gap: 16px; }
  .p-dot { width: 44px; height: 44px; font-size: 12px; }
  .process::before { left: 21px; }
  .scope-item { padding: 20px 24px; }
}
