/* 株式会社スイートスポット コーポレートサイト */
:root {
  --green: #1f8a3b;
  --green-dark: #156b2c;
  --green-light: #e9f5ec;
  --yellow: #f2c230;
  --text: #222;
  --muted: #666;
  --line: #e2e2e2;
  --bg: #fff;
  --bg-soft: #f6f8f6;
  --max: 1100px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.85; font-size: 16px; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; vertical-align: middle; }
picture { display: contents; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 2px solid #222; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: 200px; height: auto; display: block; }
.global-nav ul { list-style: none; margin: 0; padding: 0; }
.global-nav > ul { display: flex; align-items: center; gap: 4px; }
.global-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.global-nav a:hover, .global-nav a[aria-current="page"] { color: var(--green); }
.global-nav .has-sub { position: relative; }
.global-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.global-nav .sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transition: .15s; }
.global-nav .has-sub:hover .sub, .global-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; }
.global-nav .sub a { padding: 10px 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.global-nav .nav-cta a { background: var(--green); color: #fff; border-radius: 4px; margin-left: 8px; }
.global-nav .nav-cta a:hover { background: var(--green-dark); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .logo img { width: 160px; }
  .nav-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 10px; width: 24px; height: 2px; background: #222; transition: .2s; }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { content: ""; left: 0; }
  .nav-toggle span:first-child::before { top: -8px; }
  .nav-toggle span:first-child::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
  .global-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid #222; max-height: calc(100vh - 70px); overflow-y: auto; }
  .global-nav.is-open { display: block; }
  .global-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .global-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .global-nav .sub { position: static; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding-left: 16px; }
  .global-nav .has-sub > a::after { display: none; }
  .global-nav .nav-cta a { margin: 12px 0 0; text-align: center; }
}

/* ---------- layout ---------- */
main { display: block; }
.page-content, .post-content, .archive, .related, .breadcrumb { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.page-content, .post-content { padding-bottom: 48px; }
.post-content { max-width: 860px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0; margin: 0; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); }

h1, h2, h3, h4 { line-height: 1.45; }
.page-content h1, .archive h1 { font-size: clamp(26px, 4vw, 36px); text-align: center; margin: 24px 0 40px; }
h1 .en, h2 .en { display: block; font-size: 14px; letter-spacing: .15em; color: var(--green); font-weight: 600; text-transform: uppercase; }
.page-content h2, .post-content h2, .home-sec h2, .related h2 { font-size: clamp(22px, 3vw, 28px); margin: 56px 0 24px; padding-bottom: 10px; border-bottom: 4px solid var(--yellow); }
.page-content h2[data-en]::before { content: attr(data-en); display: block; font-size: 13px; letter-spacing: .15em; color: var(--green); text-transform: uppercase; }
.page-content h3, .post-content h3 { font-size: 20px; margin: 36px 0 14px; padding-left: 12px; border-left: 5px solid var(--green); }
.page-content h4, .post-content h4 { font-size: 17px; margin: 28px 0 10px; color: var(--green-dark); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2em; font-weight: 700; }
.note { font-size: 13px; color: var(--muted); }
figure { margin: 0 0 1.5em; }
figure img { border-radius: 6px; }
figcaption { font-size: 13px; color: var(--muted); }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }

/* カラム */
.cols { display: grid; gap: 24px 32px; margin-bottom: 24px; align-items: start; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
/* 役員紹介：写真は控えめな幅に抑え、本文を広く取る */
.officer { grid-template-columns: 220px minmax(0, 1fr); gap: 24px 36px; margin-bottom: 40px; }
.officer figure { margin: 0; }
.officer figure img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
@media (max-width: 760px) { .officer { grid-template-columns: 1fr; } .officer figure { max-width: 180px; margin: 0 auto; } }
@media (min-width: 761px) and (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--green); color: #fff; }
tbody th { background: var(--green-light); width: 28%; white-space: nowrap; }
@media (max-width: 600px) { tbody th { white-space: normal; } th, td { padding: 10px; } }

/* ボタン */
.btn-wrap { margin: 24px 0; }
.btn { display: inline-block; min-width: 200px; text-align: center; background: #111; color: #fff !important; text-decoration: none; font-weight: 700; padding: 14px 28px; border-radius: 4px; box-shadow: 5px 5px 0 var(--green); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--green); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--green); }
details[open] summary::after { content: "−"; }
.faq { padding: 0 16px 8px; }

/* 料金表 */
.price-table { border: 2px solid var(--green); border-radius: 8px; padding: 24px 20px; text-align: center; height: 100%; }
.price-table .plan-sub { color: var(--muted); font-size: 14px; margin: 0; }
.price-table .plan-name { border: 0 !important; padding: 0 !important; margin: 4px 0 12px !important; font-size: 22px; }
.price-table .price { font-size: 34px; font-weight: 800; color: var(--green); margin: 0 0 12px; }
.price-table .price small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.price-table ul { list-style: none; padding: 0; font-weight: 700; }
.price-table .plan-target { font-size: 14px; text-align: left; }
.price-table .btn { min-width: 0; }

/* ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 1.5em; }
.gallery picture { display: block; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.gallery img { border-radius: 6px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--bg-soft); }

/* 目次 */
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px 24px; margin: 24px 0 32px; }
.toc-title { font-weight: 700; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc .toc-h3 { list-style: none; margin-left: 1em; font-size: 14px; }
.toc a { text-decoration: none; }

/* ---------- top ---------- */
/* ===== トップページ ヒーロー（左：コピー／右：アニメーションのステージ） ===== */
.hero-anim { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(rgba(31,138,59,.14) 1px, transparent 1.5px) 0 0 / 20px 20px, linear-gradient(135deg, #f7faf7 0%, #e6f3e9 100%); }
/* 背景にスイートスポットのアイコンを薄く大きく配置 */
.hero-anim::before { content: ""; position: absolute; inset: -32% -4%; background: url(/assets/img/sweetspot-mark.webp) left 20% center / contain no-repeat; opacity: .07; transform: rotate(-6deg); pointer-events: none; }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 56px 16px 64px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--green); }
.hero-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.hero-nowrap { white-space: nowrap; }
.hero-title { margin: 0 0 18px; font-size: clamp(28px, 3.3vw, 40px); font-weight: 800; letter-spacing: .02em; color: #1c2a21; line-height: 1.4; }
.hero-x { display: inline-block; margin: 0 .3em 0 0; color: var(--green); font-weight: 700; transition: transform .5s cubic-bezier(.3,1.6,.5,1) 1.5s, color .3s 1.5s; }
.hero-mk { position: relative; padding: 0 .06em; background: linear-gradient(transparent 60%, rgba(242,194,48,.9) 60%, rgba(242,194,48,.9) 94%, transparent 94%) no-repeat 0 0 / 100% 100%; }
.hero-mk::after { content: ""; position: absolute; top: -.1em; bottom: -.06em; left: 100%; width: 2px; background: var(--green); opacity: 0; pointer-events: none; }
.hero-mk::before { content: "AI"; position: absolute; bottom: 100%; left: 100%; margin: 0 0 2px 4px; font: 600 10px/1 monospace; letter-spacing: .08em; color: var(--green); opacity: 0; pointer-events: none; }
.hero-anim.is-anim .hero-mk { background-size: 0% 100%; transition: background-size .25s; }
.hero-anim.is-anim.is-copy .hero-mk { background-size: 100% 100%; transition: background-size .7s cubic-bezier(.6,0,.35,1) .5s; }
.hero-anim.is-anim.is-copy .hero-mk2 { transition-delay: 1s; }
.hero-anim.is-anim.is-copy .hero-mk::after, .hero-anim.is-anim.is-copy .hero-mk::before { animation: hero-scan .7s cubic-bezier(.6,0,.35,1) .5s forwards, hero-scan-out .2s linear 1.2s forwards; }
.hero-anim.is-anim.is-copy .hero-mk2::after, .hero-anim.is-anim.is-copy .hero-mk2::before { animation-delay: 1s, 1.7s; }
.hero-anim.is-anim.is-copy .hero-x { transform: scale(1.2); color: var(--gold, #e0a800); }
@keyframes hero-scan { from { left: 0; opacity: 1; } to { left: 100%; opacity: 1; } }
@keyframes hero-scan-out { to { opacity: 0; } }
.hero-catch { margin: 0 0 10px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 800; letter-spacing: .03em; line-height: 1.6; color: #1c2a21; }
.hero-catch em { font-style: normal; color: var(--green); }
.hero-catch-text { display: inline-block; transition: clip-path .9s cubic-bezier(.7,0,.2,1) 1.6s; }
.hero-anim.is-anim .hero-catch-text { clip-path: inset(0 100% 0 0); }
.hero-anim.is-anim.is-copy .hero-catch-text { clip-path: inset(0 0 0 0); }
.hero-lead { margin: 0; font-size: 15px; color: #44574a; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px 20px; margin: 28px 0 0; }
.hero-btns .btn { min-width: 180px; }
/* コピーのフェードイン（読み込み直後に表示） */
.hero-anim.is-anim .hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-anim.is-anim.is-copy .hero-copy > * { opacity: 1; transform: none; }
.hero-anim.is-anim.is-copy .hero-copy > :nth-child(2) { transition-delay: .1s; }
.hero-anim.is-anim.is-copy .hero-copy > :nth-child(3) { transition-delay: .25s; }
.hero-anim.is-anim.is-copy .hero-copy > :nth-child(4) { transition-delay: .35s; }
.hero-anim.is-anim.is-copy .hero-copy > :nth-child(5) { transition-delay: .45s; }
/* アニメーションのステージ（アプリ画面風） */
.hero-stage { position: relative; border-radius: 16px; background: #fbfdfb; border: 1px solid rgba(31,138,59,.18); box-shadow: 0 30px 60px rgba(28,42,33,.16), 0 0 0 8px rgba(255,255,255,.55); overflow: hidden; }
.hero-stage-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #1c2a21; }
.hero-stage-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); }
.hero-stage-bar span:first-child { background: var(--yellow); }
.hero-stage-bar b { margin-left: 10px; font: 700 11px/1 monospace; letter-spacing: .14em; color: #9fd3ac; }
.hero-stage canvas { display: block; width: 100%; height: clamp(380px, 42vw, 470px); }
.hero-pause { position: absolute; right: 10px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; padding: 0; }
.hero-pause::before { content: ""; position: absolute; left: 8px; top: 7px; width: 2px; height: 10px; background: currentColor; box-shadow: 5px 0 0 currentColor; }
.hero-pause.is-paused::before { left: 9px; top: 6px; width: 0; height: 0; background: none; box-shadow: none; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; }
.hero-pause:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 16px 44px; }
  .hero-stage canvas { height: 380px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(24px, 7.4vw, 32px); letter-spacing: 0; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .1em; }
  .hero-btns .btn { min-width: 0; flex: 1 1 140px; padding: 12px 16px; }
  .hero-stage canvas { height: 360px; }
}
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } }
.home-sec { max-width: var(--max); margin: 0 auto; padding: 24px 16px 32px; }
.home-sec .cols { align-items: center; }
.worry-title { font-weight: 700; margin: 24px 0 8px; }
.worry { list-style: none; padding: 16px 20px; background: var(--bg-soft); border-radius: 8px; }
/* チェックアイコン付きのお悩みリスト */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.check-list img { width: 28px; height: 28px; flex: none; }
.page-lead { text-align: center; font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: var(--green-dark); margin: -28px 0 40px; }
/* 特長リスト（●の代わりにアイコン付きのカード） */
.point-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.point-list li { position: relative; padding: 14px 16px 14px 44px; background: var(--green-light); border-radius: 6px; font-weight: 700; line-height: 1.6; }
.point-list li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 9px; margin-top: -7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 760px) { .point-list { grid-template-columns: 1fr; } }
/* 手順（番号付き） */
.steps { list-style: none; padding: 0; margin: 0 0 1.5em; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 18px 56px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.page-content .steps h3 { margin: 6px 0 4px; padding: 0; border: 0; font-size: 17px; }
.steps p { margin: 0; }
.worry li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* ---------- 記事カード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-light); }
.card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.card-body { padding: 14px 16px 18px; }
.card time { font-size: 13px; color: var(--muted); }
.card-title { font-size: 16px; margin: 4px 0 8px; line-height: 1.5; border: 0 !important; padding: 0 !important; }
.card-excerpt { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.news-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: flex; gap: 24px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); font-size: 14px; flex: 0 0 auto; }
@media (max-width: 600px) { .news-list li { flex-direction: column; gap: 2px; } }

/* ---------- 投稿 ---------- */
.post-header h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 16px 0 8px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; background: var(--green-light); color: var(--green-dark); padding: 2px 10px; border-radius: 99px; font-size: 13px; text-decoration: none; }
.post-eyecatch img { width: 100%; border-radius: 8px; }
.related { padding-bottom: 48px; }

/* ---------- お問い合わせ ---------- */
.contact-box { border: 2px solid var(--green); background: var(--green-light); border-radius: 10px; padding: 28px 20px; margin: 48px 0 16px; text-align: center; }
.contact-box-title { font-weight: 800; font-size: 18px; }
.contact-mail { background: #fff; border-radius: 8px; padding: 14px 20px; display: inline-block; max-width: 100%; margin: 8px 0 12px; line-height: 0; }
.contact-mail img { display: block; width: 416px; max-width: 100%; height: auto; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
.contact-box-note { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.contact-box-tel { margin: 0; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: #1d2a21; color: #dfe7e1; margin-top: 48px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px 16px 24px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.footer-brand img { background: #fff; padding: 8px 12px; border-radius: 6px; width: 200px; }
.footer-brand p { font-size: 13px; margin-top: 12px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
.footer-nav a { color: #dfe7e1; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; margin: 0; padding: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.pagetop { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; text-decoration: none; opacity: 0; visibility: hidden; transition: .2s; font-size: 14px; }
.pagetop.is-show { opacity: .9; visibility: visible; }
.pagetop:hover { color: #fff; opacity: 1; }

@media print { .site-header, .site-footer, .pagetop, .contact-box { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 在庫管理アプリ「ハウメニ」ページ */
.app-hero { align-items: center; }
.app-hero h1 { text-align: left; margin-top: 0; }
.app-tags { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags li { font-size: 13px; font-weight: 700; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.app-notice { border-left: 4px solid var(--yellow); background: #fffbea; padding: 14px 18px; margin: 8px 0 32px; }
.app-notice p { margin: 0 0 .4em; } .app-notice p:last-child { margin: 0; }
.app-features .col { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; background: #fff; height: 100%; }
.app-features h3 { margin-top: 0; font-size: 17px; color: var(--green-dark); }
.app-features p { margin: 0; font-size: 15px; }
.app-screens { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.app-screens figure { margin: 0; text-align: center; }
.app-screens img { width: 100%; max-width: 200px; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.app-plans td, .app-plans thead th { text-align: center; }
@media (max-width: 760px) { .app-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ===== サービス詳細ページ（AIコンサルティング・Webシステム開発）共通 ===== */
.svc-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: center; margin: 8px 0 64px; padding: 48px 44px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: radial-gradient(rgba(31,138,59,.16) 1px, transparent 1.5px) 0 0 / 18px 18px, linear-gradient(135deg, #f7faf7 0%, #e9f5ec 100%); }
.svc-hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(242,194,48,.18); pointer-events: none; }
.svc-hero-text { position: relative; }
.svc-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--green); }
.svc-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.page-content .svc-hero h1 { text-align: left; margin: 0 0 14px; font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; letter-spacing: .02em; line-height: 1.25; }
.svc-catch { margin: 0 0 14px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; line-height: 1.6; color: #1c2a21; }
.mk { background: linear-gradient(transparent 60%, rgba(242,194,48,.85) 60%, rgba(242,194,48,.85) 94%, transparent 94%); padding: 0 .1em; }
.svc-lead { margin: 0; color: #44574a; font-size: 15px; }
.svc-btns { display: flex; flex-wrap: wrap; gap: 16px 20px; margin: 26px 0 0; }
.svc-btns .btn { min-width: 180px; }
.svc-hero-img { position: relative; margin: 0; }
.svc-hero-img img { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px rgba(28,42,33,.16); }
@media (max-width: 760px) {
  .svc-hero { grid-template-columns: 1fr; padding: 32px 20px; gap: 24px; margin-bottom: 48px; }
  .svc-hero-img { max-width: 360px; margin: 0 auto; }
  .svc-btns { gap: 14px; }
  .svc-btns .btn { flex: 1 1 100%; min-width: 0; white-space: nowrap; }
}
/* 3ステップの流れ */
.svc-flow { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.svc-flow li { position: relative; padding: 24px 22px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.svc-flow li:not(:last-child)::after { content: ""; position: absolute; right: -21px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--green); border-right: 3px solid var(--green); transform: translateY(-50%) rotate(45deg); }
.svc-flow-num { display: block; font-size: 34px; font-weight: 800; line-height: 1; color: var(--green); letter-spacing: .02em; }
.page-content .svc-flow h3 { margin: 10px 0 8px; padding: 0; border: 0; font-size: 19px; }
.svc-flow p { margin: 0; font-size: 15px; color: #44574a; }
@media (max-width: 760px) { .svc-flow { grid-template-columns: 1fr; gap: 24px; } .svc-flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%) rotate(135deg); } }
/* チェック付きカード */
.check-cards { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check-cards li { position: relative; padding: 16px 16px 16px 48px; border-radius: 10px; background: var(--bg-soft); border: 1px solid #e3ece5; font-size: 15px; line-height: 1.7; }
.check-cards li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); }
.check-cards li::after { content: ""; position: absolute; left: 23px; top: 24px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.check-cards strong { color: var(--green-dark); }
@media (max-width: 960px) { .check-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .check-cards { grid-template-columns: 1fr; } }
/* 番号付きカード */
.num-cards { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: num; }
.num-cards li { position: relative; padding: 22px 20px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); counter-increment: num; overflow: hidden; }
.num-cards li::before { content: counter(num, decimal-leading-zero); position: absolute; right: 12px; top: 2px; font-size: 54px; font-weight: 800; line-height: 1.2; color: rgba(31,138,59,.1); }
.num-cards li::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--green), var(--yellow)); }
.page-content .num-cards h3 { margin: 0 0 6px; padding: 0; border: 0; font-size: 18px; position: relative; }
.num-cards p { margin: 0; font-size: 15px; color: #44574a; position: relative; }
@media (max-width: 960px) { .num-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .num-cards { grid-template-columns: 1fr; } }
/* お悩みの吹き出し */
.svc-quotes { text-align: center; margin: 0 0 56px; }
.svc-quote { display: inline-block; position: relative; margin: 0 8px 18px; padding: 14px 24px; border-radius: 999px; background: #fff; border: 2px solid #1c2a21; font-weight: 800; font-size: clamp(15px, 2vw, 18px); }
.svc-quote::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 14px; height: 14px; background: #fff; border-right: 2px solid #1c2a21; border-bottom: 2px solid #1c2a21; transform: translateX(-50%) rotate(45deg); }
.svc-quote-answer { margin: 8px 0 0; font-size: clamp(17px, 2.2vw, 21px); font-weight: 800; }
.svc-quote-answer strong { color: var(--green); }
/* 方針の帯 */
.svc-policy { margin: 0 0 56px; padding: 36px 32px; border-radius: 16px; background: #1c2a21; color: #fff; text-align: center; position: relative; overflow: hidden; }
.svc-policy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px) 0 0 / 18px 18px; pointer-events: none; }
.svc-policy p { position: relative; margin: 0 auto; max-width: 720px; color: #d7e3da; font-size: 15px; }
.svc-policy .svc-policy-label { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--yellow); margin-bottom: 8px; }
.svc-policy .svc-policy-title { font-size: clamp(19px, 2.6vw, 26px); font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.5; }
/* 成果イメージ */
.case-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { padding: 22px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.case-card p { margin: 0; font-size: 15px; }
.case-card .case-tag { display: inline-block; margin-bottom: 12px; padding: 2px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; }
.case-card .case-change { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 800; }
.case-change span { padding: 6px 12px; border-radius: 6px; background: var(--bg-soft); font-size: 14px; }
.case-change span + span { background: var(--green-light); color: var(--green-dark); position: relative; }
.case-change span + span::before { content: "↓"; position: absolute; left: 50%; top: -16px; transform: translateX(-50%); color: var(--green); font-size: 13px; }
.case-change { gap: 14px !important; }
@media (max-width: 760px) { .case-cards { grid-template-columns: 1fr; } }
/* 料金プラン（カードの見た目を強化） */
.page-aiconsulting .price-table { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green); box-shadow: 0 8px 24px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.page-aiconsulting .price-table:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.1); }
.page-aiconsulting .price-table .btn-wrap { margin-top: auto; }
.page-aiconsulting .cols-3 { margin-bottom: 56px; align-items: stretch; }
/* 業界別アコーディオン */
.industry { margin: 0 0 56px; }
.industry summary { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.industry summary .num { font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: .05em; }
.industry details[open] { border-color: var(--green); }
.industry .table-wrap { margin: 0 16px 16px; }
.industry table { font-size: 14px; }

/* ===== 下層ページ共通の見出しエリア（画像なし） ===== */
.page-hero { position: relative; margin: 8px 0 56px; padding: 44px 40px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left;
  background: radial-gradient(rgba(31,138,59,.16) 1px, transparent 1.5px) 0 0 / 18px 18px, linear-gradient(135deg, #f7faf7 0%, #e9f5ec 100%); }
.page-hero::before { content: ""; position: absolute; right: -110px; top: -110px; width: 300px; height: 300px; border-radius: 50%; border: 42px solid rgba(242,194,48,.18); pointer-events: none; }
.page-content .page-hero h1, .archive .page-hero h1 { position: relative; text-align: left; margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 42px); font-weight: 800; line-height: 1.25; }
.page-hero-lead { position: relative; margin: 0; max-width: 760px; font-size: clamp(15px, 1.8vw, 17px); font-weight: 700; color: #44574a; }
@media (max-width: 760px) { .page-hero { padding: 30px 20px; margin-bottom: 44px; } }
.svc-h1-sub { display: block; font-size: .42em; font-weight: 800; letter-spacing: .08em; color: var(--green-dark); margin-bottom: 4px; }
.svc-h1-sub-lg { font-size: .52em; letter-spacing: .04em; margin-bottom: 6px; }
/* プランページ：料金パネル */
.svc-hero-price { position: relative; background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center; box-shadow: 0 18px 40px rgba(28,42,33,.12); border-top: 5px solid var(--green); }
.svc-hero-price .price-label { margin: 0; font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.svc-hero-price .price-main { margin: 0 0 14px; font-size: clamp(52px, 7vw, 68px); font-weight: 800; line-height: 1.1; color: var(--green); }
.svc-hero-price .price-main small { font-size: 22px; margin-left: 4px; }
.svc-hero-price dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-hero-price dl div { background: var(--bg-soft); border-radius: 8px; padding: 8px; }
.svc-hero-price dt { font-size: 12px; color: var(--muted); }
.svc-hero-price dd { margin: 0; font-weight: 800; font-size: 17px; }
/* 月ごとの進め方 */
.steps-months > li { padding-bottom: 22px; }
.steps-months ul { margin: 0; padding-left: 1.2em; font-size: 15px; color: #44574a; list-style: disc; }
.steps-months ul li { padding: 0; }
.tool-tags li { font-size: 14px; padding: 6px 14px; }
/* 特長カード（アイコン付き） */
.feature-cards { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature-cards li { grid-column: span 2; padding: 24px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.05); text-align: center; }
.feature-cards li:nth-child(4) { grid-column: 2 / span 2; }
.feature-cards img { width: 72px; height: 72px; object-fit: contain; }
.page-content .feature-cards h3 { margin: 10px 0 8px; padding: 0; border: 0; font-size: 18px; }
.feature-cards p { margin: 0; font-size: 15px; color: #44574a; text-align: left; }
@media (max-width: 960px) { .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature-cards li, .feature-cards li:nth-child(4) { grid-column: auto; } }
@media (max-width: 600px) { .feature-cards { grid-template-columns: 1fr; } }
/* 2つのサービスを並べるカード */
.duo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 56px; }
.duo-card { padding: 26px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.05); border-top: 5px solid var(--green); }
.duo-card + .duo-card { border-top-color: var(--yellow); }
.duo-card .duo-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--green); }
.page-content .duo-card h3 { margin: 2px 0 12px; padding: 0; border: 0; font-size: 21px; }
.duo-card ul { margin: 0 0 14px; padding-left: 1.2em; font-size: 15px; }
.duo-card .duo-link { margin: 0; font-weight: 700; }
.duo-card .duo-link a::after { content: " →"; }
@media (max-width: 760px) { .duo-cards { grid-template-columns: 1fr; } }
/* 認証カード */
.cert-cards { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cert-cards li { padding: 22px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; }
.cert-cards img { height: 80px; width: auto; object-fit: contain; }
.cert-cards p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.cert-cards .cert-name { margin-top: 12px; font-weight: 800; color: var(--text); font-size: 15px; }
@media (max-width: 760px) { .cert-cards { grid-template-columns: 1fr; } }
.page-company .svc-policy { margin-bottom: 56px; }
/* SDGs */
.sdg-cards { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sdg-cards li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.sdg-cards img { width: 84px; height: 84px; flex: none; border-radius: 6px; }
.sdg-cards p { margin: 0; font-size: 15px; }
.sdg-cards .sdg-goal { font-size: 13px; font-weight: 800; color: var(--green-dark); margin-bottom: 4px; }
@media (max-width: 760px) { .sdg-cards { grid-template-columns: 1fr; } .sdg-cards li { gap: 12px; padding: 14px; } .sdg-cards img { width: 56px; height: 56px; } }
.sdgs-about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; margin-bottom: 40px; }
.sdgs-about figure { margin: 0; }
.sdgs-about p { margin-top: 0; font-size: 15px; }
.link-list { padding-left: 1.2em; font-size: 14px; }
@media (max-width: 760px) { .sdgs-about { grid-template-columns: 1fr; } }
/* サービス一覧カード */
.svc-list .col { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0 0 18px; box-shadow: 0 6px 18px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s; height: 100%; }
.svc-list .col:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.svc-list { align-items: stretch; }
.svc-list figure { margin: 0 0 14px; }
.svc-list figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.page-content .svc-list h3 { margin: 0 18px 8px; font-size: 18px; }
.svc-list h3 a { color: var(--text); text-decoration: none; }
.svc-list p { margin: 0 18px; font-size: 14px; color: #44574a; }
@media (max-width: 960px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-list { grid-template-columns: 1fr; } }
.contact-tel-line a { font-weight: 800; }

/* ===== 記事ページ・一覧ページ ===== */
.post-content h2[data-en]::before, .related h2[data-en]::before { content: attr(data-en); display: block; font-size: 13px; letter-spacing: .15em; color: var(--green); text-transform: uppercase; }
.post-header { position: relative; margin: 8px 0 36px; padding: 36px 36px 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: radial-gradient(rgba(31,138,59,.16) 1px, transparent 1.5px) 0 0 / 18px 18px, linear-gradient(135deg, #f7faf7 0%, #e9f5ec 100%); }
.post-header::before { content: ""; position: absolute; right: -110px; top: -110px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(242,194,48,.18); pointer-events: none; }
.post-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--green); }
.post-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.post-header h1 { position: relative; margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.4; text-align: left; }
.post-header .post-meta { position: relative; margin: 0; }
.post-header .post-eyecatch { position: relative; margin: 24px 0 0; }
.post-eyecatch img { width: 100%; border-radius: 12px; box-shadow: 0 14px 32px rgba(28,42,33,.14); aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) { .post-header { padding: 26px 18px 20px; } }
.post-content { font-size: 16px; }
.post-content .cols-2 { padding: 20px; border-radius: 12px; background: var(--bg-soft); border: 1px solid #e3ece5; align-items: center; }
.post-content .cols-2 figure { margin: 0; }
.post-content .cols-2 p:last-child { margin-bottom: 0; }
.post-content .toc { background: #fff; border: 2px solid var(--green-light); border-radius: 12px; }
.post-content .toc-title { color: var(--green-dark); letter-spacing: .1em; }
.related { margin-top: 16px; }
.related-back { text-align: center; }
/* 記事カード */
.card { border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.05); display: flex; flex-direction: column; }
.card a { display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 16px 34px rgba(0,0,0,.12); transform: translateY(-4px); }
.card-img img { transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-label { align-self: flex-start; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; }
.card-title { font-size: 17px; font-weight: 800; }
.card-more { margin: auto 0 0; padding-top: 12px; font-size: 13px; font-weight: 800; color: var(--green); }
.card-more::after { content: " →"; transition: margin .2s; }
.card:hover .card-more::after { margin-left: 4px; }
.cards { align-items: stretch; }
/* ブログ一覧：先頭記事を大きく */
@media (min-width: 901px) {
  .cards-featured > .card:first-child { grid-column: 1 / -1; }
  .cards-featured > .card:first-child a { flex-direction: row; }
  .cards-featured > .card:first-child .card-img { flex: 0 0 56%; aspect-ratio: 16 / 9; }
  .cards-featured > .card:first-child .card-body { padding: 28px 30px; justify-content: center; }
  .cards-featured > .card:first-child .card-title { font-size: 24px; line-height: 1.5; }
  .cards-featured > .card:first-child .card-excerpt { font-size: 15px; }
}
.archive .page-hero { margin-top: 8px; }
.archive { padding-bottom: 48px; }
/* 開発事例 */
.case-summary { position: relative; margin: 0 0 28px; padding: 28px 28px 24px; border-radius: 16px; background: #1c2a21; color: #d7e3da; overflow: hidden; }
.case-summary::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px) 0 0 / 18px 18px; pointer-events: none; }
.case-summary p { position: relative; margin: 0; font-size: 15px; }
.case-summary .case-summary-label { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--yellow); margin-bottom: 6px; }
.case-summary .case-summary-title { font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.5; }
.case-items { counter-reset: caseitem; }
.case-items .cols-2 { position: relative; margin-bottom: 16px; padding-left: 64px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.05); counter-increment: caseitem; }
.case-items .cols-2::before { content: counter(caseitem, decimal-leading-zero); position: absolute; left: 18px; top: 20px; font-size: 24px; font-weight: 800; line-height: 1; }
.case-challenge .cols-2 { border-left: 5px solid #d9534f; }
.case-challenge .cols-2::before { color: #d9534f; }
.case-result .cols-2 { border-left: 5px solid var(--green); }
.case-result .cols-2::before { color: var(--green); }
.case-items .cols-2 p { font-weight: 600; }
@media (max-width: 760px) { .case-items .cols-2 { padding-left: 20px; padding-top: 52px; } .case-items .cols-2::before { left: 20px; top: 18px; } }
.cat-result .gallery img { border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
/* SDGs：ゴールごとの色 */
.sdg-cards li { border-top: 5px solid var(--goal, var(--green)); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.sdg-cards .sdg-goal { color: var(--goal, var(--green-dark)); }
.goal-03 { --goal: #4c9f38; } .goal-04 { --goal: #c5192d; } .goal-08 { --goal: #a21942; } .goal-09 { --goal: #fd6925; }
.goal-10 { --goal: #dd1367; } .goal-11 { --goal: #fd9d24; } .goal-12 { --goal: #bf8b2e; }
.sdgs-about { grid-template-columns: 1fr; padding: 24px 26px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }

/* ===== トップページ：サービス紹介（AIコンサルティング／WEBシステム開発） ===== */
.home-services { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: 72px 16px 40px; }
main, .site-main { overflow-x: clip; }
.home-services-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.home-services-head .hero-eyebrow { justify-content: center; }
.home-services-head h2 { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.45; }
.home-services-head p:last-child { margin: 0; color: #44574a; }
.svc-show { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 48px 44px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(28,42,33,.08); overflow: hidden; }
.svc-show::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, var(--green), var(--yellow)); }
.svc-show-rev .svc-show-text { order: 2; }
.svc-show-rev::before { inset: 0 0 0 auto; }
.svc-show-num { margin: 0 0 6px; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1.5px var(--green); }
.svc-show-text { position: relative; }
.svc-show-en { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--green); }
.svc-show h3 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.3; }
.svc-show-catch { margin: 0 0 14px; font-size: clamp(17px, 1.9vw, 20px); font-weight: 800; color: #1c2a21; line-height: 1.6; }
.svc-show-text > p:not([class]) { color: #44574a; font-size: 15px; }
.svc-show-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; counter-reset: f; }
.svc-show-flow li { position: relative; counter-increment: f; padding: 8px 14px 8px 34px; border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-weight: 800; font-size: 14px; }
.svc-show-flow li::before { content: counter(f); position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.svc-show-flow li:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--green); }
.svc-show-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.svc-show-tags li { padding: 8px 16px; border-radius: 999px; background: #1c2a21; color: #fff; font-weight: 800; font-size: 14px; }
.svc-show-tags li::before { content: "✓ "; color: var(--yellow); }
.svc-show-label { margin: 22px 0 8px; font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.svc-show-worries { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.svc-show-worries li { position: relative; padding: 10px 14px 10px 40px; border-radius: 10px; background: var(--bg-soft); border: 1px solid #e3ece5; font-size: 15px; font-weight: 600; }
.svc-show-worries li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--green); }
.svc-show-worries li::after { content: ""; position: absolute; left: 18px; top: 50%; width: 6px; height: 4px; margin-top: -3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.svc-show-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 0; }
.svc-show-link { font-weight: 800; color: var(--green-dark); }
.svc-show-link::after { content: " →"; }
.svc-show-visual { position: relative; }
.svc-show-visual figure { margin: 0; border-radius: 20px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 20px 44px rgba(28,42,33,.12); }
.svc-show-visual img { display: block; width: 100%; border-radius: 0; transition: transform .6s; }
.svc-show:hover .svc-show-visual img { transform: scale(1.04); }
.svc-badge { position: absolute; margin: 0; padding: 10px 16px; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(28,42,33,.16); font-size: 14px; font-weight: 700; white-space: nowrap; animation: svc-float 5s ease-in-out infinite; }
.svc-badge b { color: var(--green); font-size: 1.25em; margin: 0 2px; }
.svc-badge-1 { left: -18px; top: 14%; }
.svc-badge-2 { right: -14px; bottom: 12%; animation-delay: -2.5s; background: #1c2a21; color: #fff; }
.svc-badge-2 b { color: var(--yellow); }
@keyframes svc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.svc-cross { display: flex; justify-content: center; margin: -10px 0; position: relative; z-index: 1; }
.svc-cross span { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: #1c2a21; font-size: 30px; font-weight: 800; box-shadow: 0 0 0 10px rgba(242,194,48,.2); }
.svc-combo { display: grid; gap: 4px; margin: 40px 0 0; padding: 28px 32px; border-radius: 18px; text-decoration: none; color: #fff; background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px) 0 0 / 18px 18px, linear-gradient(120deg, #1c2a21 0%, #1f5a33 100%); transition: transform .2s, box-shadow .2s; }
.svc-combo:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28,42,33,.25); color: #fff; }
.svc-combo-en { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--yellow); }
.svc-combo-title { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; }
.svc-combo-more { font-size: 14px; color: #c9e3cf; }
.svc-combo-more::after { content: " →"; }
@media (max-width: 900px) {
  .svc-show, .svc-show-rev { grid-template-columns: 1fr; gap: 32px; padding: 36px 22px 32px; }
  .svc-show-rev .svc-show-text { order: 0; }
  .svc-show-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .svc-show-num { font-size: 52px; }
  .svc-badge-1 { left: -6px; } .svc-badge-2 { right: -6px; }
}
@media (max-width: 600px) { .home-services { padding-top: 52px; } .svc-badge { font-size: 12px; padding: 8px 12px; } .svc-show-btns .btn { width: 100%; } }
/* スクロールで表示 */
.has-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .svc-badge { animation: none; } .has-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== 投稿記事の本文デザイン ===== */
.single .post-content { font-size: 16px; line-height: 1.95; }
.single .post-content > h2, .single .post-content .col > h2 { position: relative; margin: 64px 0 24px; padding: 14px 20px 14px 26px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #eaf5ed 0%, rgba(234,245,237,0) 92%); font-size: clamp(21px, 2.6vw, 26px); line-height: 1.5; }
.single .post-content > h2::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 6px; border-radius: 6px; background: linear-gradient(var(--green), #5bb974); }
.single .post-content > h2[data-en]::before { margin-bottom: 2px; }
.h2-step { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 800; letter-spacing: .16em; color: var(--green); }
.single .post-content h3:not(.idea-label) { display: flex; align-items: center; gap: 12px; margin: 44px 0 16px; padding: 0 0 10px; border: 0; border-bottom: 2px dashed #d5e4d9; font-size: 20px; }
.single .post-content h3:not(.idea-label)::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--green); transform: rotate(45deg); box-shadow: 4px -4px 0 var(--yellow); }
.single .post-content > h4 { display: flex; align-items: center; gap: 10px; color: var(--green-dark); }
.single .post-content > h4::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--yellow); }
.single .post-content strong { background: linear-gradient(transparent 64%, rgba(242,194,48,.42) 64%); }
.single .post-content figure img { border-radius: 12px; box-shadow: 0 10px 28px rgba(28,42,33,.12); }
.single .post-content .gallery figure img { box-shadow: none; }
.single .post-content a:not(.btn):not(.tag) { color: var(--green-dark); text-decoration: underline; text-decoration-color: rgba(31,138,59,.35); text-underline-offset: 3px; }

/* 冒頭イントロ */
.post-intro { position: relative; margin: 8px 0 40px; padding: 26px 30px 24px 30px; border-radius: 16px; background: var(--bg-soft); border: 1px solid #e1ece4; font-size: 16.5px; }
.post-intro::before { content: "“"; position: absolute; left: 16px; top: -18px; font: 900 64px/1 Georgia, serif; color: var(--yellow); }
.post-intro p { margin: 0 0 .6em; } .post-intro p:last-child { margin-bottom: 0; }

/* チェックリスト */
.post-checks { list-style: none; margin: 20px 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(28,42,33,.05); }
.post-checks li { position: relative; padding: 7px 0 7px 32px; border-bottom: 1px dashed #e3ebe5; }
.post-checks li:last-child { border-bottom: 0; }
.post-checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); }
.post-checks li::after { content: ""; position: absolute; left: 7px; top: 16px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.col .post-checks { padding: 10px 16px; box-shadow: none; }

/* 手順 */
.step-line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.step-no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; line-height: 1; box-shadow: 0 3px 0 var(--green-dark); }

/* 特長カード */
.feat-grid { counter-reset: feat; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.feat { position: relative; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(28,42,33,.06); overflow: hidden; }
.feat::before { counter-increment: feat; content: counter(feat, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--green); }
.feat::after { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--yellow)); }
.single .post-content .feat h4 { margin: 4px 0 8px; font-size: 17px; color: var(--text, #1c2a21); line-height: 1.5; }
.feat p { margin: 0 0 8px; font-size: 15px; line-height: 1.85; } .feat p:last-child { margin-bottom: 0; }
.feat .post-cta { margin-top: 12px; }

/* 機能チップ */
.func-chips { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 20px 0 32px; padding: 0; }
.func-chips li { position: relative; padding: 12px 14px 12px 40px; border-radius: 10px; background: var(--bg-soft); border: 1px solid #e1ece4; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.func-chips li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 4px; background: var(--green); }
.func-chips li::after { content: ""; position: absolute; left: 19.5px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* フロー */
.flow-steps { counter-reset: flow; list-style: none; margin: 24px 0 32px; padding: 0; }
.flow-steps li { counter-increment: flow; position: relative; padding: 0 0 22px 64px; }
.flow-steps li::before { content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; letter-spacing: .04em; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: repeating-linear-gradient(#9fd3ac 0 6px, transparent 6px 11px); }
.flow-steps strong { display: block; padding-top: 8px; font-size: 17px; background: none !important; }
.flow-steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* 注記・引用・コード */
.note-box { margin: 24px 0; padding: 22px 26px; border-radius: 14px; background: #fffbea; border: 1px solid #f2e2a4; font-size: 15px; }
.single .post-content blockquote { margin: 20px 0; padding: 18px 22px; border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; background: var(--bg-soft); }
.single .post-content code { padding: 2px 7px; border-radius: 6px; background: #eef4ef; font-size: .9em; color: var(--green-dark); }
.single .post-content table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

/* ボタンリンク */
.post-cta { margin: 20px 0 28px; }
.btn-arrow::after { content: "→"; margin-left: 10px; transition: transform .2s; display: inline-block; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ChatGPT 活用アイデア記事 */
.idea-label { display: inline-flex !important; align-items: center; margin: 22px 0 10px !important; padding: 3px 14px !important; border: 0 !important; border-radius: 999px; font-size: 13px !important; font-weight: 800; letter-spacing: .06em; }
.idea-label::before { display: none !important; }
.idea-issue { background: #fdecea; color: #b3261e; }
.idea-prompt { background: #e6f3e9; color: var(--green-dark); }
.idea-effect { background: #fff3c4; color: #7a5b00; }
.prompt-box { position: relative; margin: 0 0 8px; padding: 34px 22px 18px; border-radius: 12px; background: #1c2a21; color: #e4efe6; font-size: 14.5px; line-height: 1.9; }
.prompt-box::before { content: "PROMPT"; position: absolute; left: 22px; top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--yellow); }
.prompt-box::after { content: ""; position: absolute; right: 18px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #ff6159; box-shadow: -14px 0 0 #ffbd2e, -28px 0 0 #28c840; }
@media (max-width: 760px) { .post-intro { padding: 22px 18px 18px; } .flow-steps li { padding-left: 56px; } }
.single .post-content th a { color: #fff !important; text-decoration-color: rgba(255,255,255,.6) !important; }
.post-checks li { font-weight: 400; display: block; }
.single .post-content td:first-child { background: var(--bg-soft); font-weight: 700; color: var(--green-dark); white-space: nowrap; }
@media (max-width: 760px) { .single .post-content td:first-child { white-space: normal; } }
.single .post-content > figure { text-align: center; }
.single .post-content figcaption { margin-top: 8px; text-align: center; }
.post-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 8px 0 28px; }
.post-gallery figure { margin: 0; flex: 0 1 auto; max-width: calc(50% - 8px); }

/* 日本語の改行を文節単位に（対応ブラウザのみ）＋孤立行を防ぐ */
.single .post-content p { text-wrap: pretty; }
.single .post-content :is(h2, h3, h4, li, .case-title, .sub-label, .step-line, figcaption), .single .post-header h1, .single .toc { word-break: auto-phrase; }
.single .post-content h2, .single .post-content h3, .single .post-content h4, .case-title { text-wrap: balance; }
.cols-text { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) !important; align-items: start !important; }
@media (max-width: 760px) { .cols-text { grid-template-columns: 1fr !important; } }
.sub-label { display: inline-block; margin: 18px 0 8px; padding: 2px 12px; border-radius: 999px; background: #e6f3e9; color: var(--green-dark); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.case-title { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 19px; font-weight: 800; line-height: 1.5; }
.case-no { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; font-size: 18px; }
.effect-box { margin: 18px 0 4px; padding: 14px 18px 8px; border-radius: 14px; background: #fffbea; border: 1px solid #f2e2a4; }
.effect-box .sub-label { margin-top: 0; background: var(--yellow); color: #4a3800; }
.effect-box .post-checks { margin: 6px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
.effect-box .post-checks li { border-bottom-color: #f0e3b5; }
.step-desc { margin: -6px 0 18px 40px; color: var(--muted); }
.step-line:has(+ .step-desc) { font-weight: 700; }
.p-head { position: relative; margin: 26px 0 8px; padding-left: 14px; font-size: 17px; font-weight: 800; color: var(--green-dark); line-height: 1.6; word-break: auto-phrase; }
.p-head::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 2px; background: var(--yellow); }
.cols-text .col:last-child { position: sticky; top: 90px; }

/* 文章＋画像ブロック：上段に「導入文｜小さめ画像」、リスト等の本文はカード幅いっぱい */
.media-box { margin-bottom: 24px; padding: 22px 24px; border-radius: 12px; background: var(--bg-soft); border: 1px solid #e3ece5; }
.media-head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center; }
.media-head:has(.media-fig-sq) { grid-template-columns: minmax(0, 1fr) 190px; }
.media-head:not(:last-child) { margin-bottom: 4px; }
.media-text > :first-child { margin-top: 0; }
.media-text > :last-child { margin-bottom: 0; }
.media-box > :last-child { margin-bottom: 0; }
.media-fig figure { margin: 0 0 12px; }
.media-fig figure:last-child { margin-bottom: 0; }
.media-fig img { border-radius: 10px; }
.media-box .p-head:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .media-box { padding: 18px; }
  .media-head, .media-head:has(.media-fig-sq) { grid-template-columns: 1fr; gap: 16px; }
  .media-fig { order: -1; max-width: 360px; width: 100%; margin: 0 auto; }
  .media-fig-sq { max-width: 220px; }
}
.media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.media-gallery figure { margin: 0; }
.media-gallery img { border-radius: 10px; }
@media (max-width: 760px) { .media-gallery { grid-template-columns: 1fr; } }
