/* ネクストラボ 共通スタイル（トップ・お問い合わせ共通） */
:root {
  color-scheme: light;
  --sky: #4fb3f6;
  --sky-deep: #2a8fe0;
  --aqua: #6fd9e8;
  --mint: #7ee3c8;
  --sun: #ffd43b;
  --navy: #15305c;
  --text: #2b3a55;
  --muted: #6b7a93;
  --bg: #ffffff;
  --card: rgba(255, 255, 255, .78);
  --line: rgba(79, 179, 246, .18);
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --en: "Quicksand", "Zen Maru Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--round);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* スマホが電話番号を自動でリンクにしても、押せない普通の文字にする */
a[href^="tel:"], a[href^="mailto:"], a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; pointer-events: none; cursor: text; }

/* ===== 動く泡の背景 ===== */
#bubbles {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  filter: blur(3px);
  pointer-events: none;
}
.page { position: relative; z-index: 1; }

/* ===== ヘッダー ===== */
header {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 12px 26px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(42, 143, 224, .12);
  z-index: 50;
}
header .logo { position: relative; z-index: 60; }
header .logo img { height: 30px; width: auto; }
nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
nav a { font-size: 14px; font-weight: 700; color: var(--navy); position: relative; }
nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--sky); border-radius: 2px; transition: width .3s;
}
nav a:not(.btn):hover::after { width: 100%; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 999px;
  background: linear-gradient(120deg, var(--sky), var(--aqua));
  color: #fff !important; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 20px rgba(79, 179, 246, .35);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 179, 246, .45); }
.btn.big { padding: 18px 44px; font-size: 16px; }
/* 「る」で終わるボタン：「る」は字の右側の余白が広く、文字が左に寄って見えるので、そのぶん右へ寄せる */
.btn.big.end-ru { padding-left: 45.25px; padding-right: 42.75px; }
/* 「ト」で始まり「る」で終わるボタン：「ト」は字の左側の余白のほうが広いので、逆に左へ寄せる */
.btn.big.start-to { padding-left: 42.5px; padding-right: 45.5px; }
.menu-toggle { display: none; background: none; border: 0; width: 52px; height: 48px; cursor: pointer; position: relative; z-index: 60; color: var(--navy); }
.menu-toggle .bars { position: relative; display: block; width: 30px; height: 20px; margin: 0 auto 4px; }
.menu-toggle .bars i { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px; transition: transform .35s, opacity .25s, top .35s; }
.menu-toggle .bars i:nth-child(1) { top: 0; background: var(--sky); }
.menu-toggle .bars i:nth-child(2) { top: 8.5px; background: var(--sun); }
.menu-toggle .bars i:nth-child(3) { top: 17px; background: var(--sky); }
.menu-toggle .label { display: block; font-family: var(--en); font-weight: 700; font-size: 11px; letter-spacing: .12em; line-height: 1; }
.menu-toggle.open .bars i:nth-child(1) { top: 8.5px; transform: rotate(45deg); }
.menu-toggle.open .bars i:nth-child(2) { opacity: 0; }
.menu-toggle.open .bars i:nth-child(3) { top: 8.5px; transform: rotate(-45deg); background: var(--sun); }

/* ===== ファーストビュー ===== */
.hero {
  min-height: 100vh;
  /* 文字とフクロウをひとかたまりにして、画面の真ん中に置く */
  display: grid; grid-template-columns: auto minmax(0, 440px); justify-content: center; align-items: center; gap: 16px;
  width: min(1160px, calc(100% - 32px)); margin: 0 auto;
  padding: 120px 0 80px;
}
.hero-en {
  font-family: var(--en); font-weight: 700; color: var(--sky-deep);
  font-size: 14px; letter-spacing: .25em; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 900; line-height: 1.45; color: var(--navy);
  letter-spacing: .06em;
}
.hero h1 .ib, .contact h2 .ib { display: inline-block; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--sky-deep), var(--aqua) 60%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 26px 0 36px; font-size: 17.5px; color: var(--text); max-width: 30em; }
.hero-owl { position: relative; display: grid; place-items: center; }
.hero-owl img {
  position: relative; width: min(460px, 100%); height: auto;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--sky-deep);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 46px; background: linear-gradient(var(--sky), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== 共通セクション ===== */
section.block { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0; font-size: 17px; }
.heading { margin-bottom: 54px; }
.heading .en {
  font-family: var(--en); font-weight: 700; font-size: clamp(40px, 6vw, 72px);
  line-height: 1.25; padding-bottom: .06em; letter-spacing: .02em;
  background: linear-gradient(120deg, var(--sky-deep), var(--aqua));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heading .ja { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; color: var(--navy); font-size: 16.5px; }
.heading .ja::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
/* データが浮かぶカード */
.dash { position: relative; width: min(500px, 100%); aspect-ratio: 1 / .92; margin: 0 auto; }
.glass {
  position: absolute; border-radius: 24px; padding: 18px 20px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px rgba(42, 143, 224, .16);
  animation: float 6s ease-in-out infinite;
}
.glass .ttl { font-size: 12px; font-weight: 700; color: var(--muted); }
.glass .big { font-family: var(--en); font-weight: 700; font-size: 34px; color: var(--navy); line-height: 1.2; }
.glass .big small { font-size: 16px; color: var(--sky-deep); margin-left: 4px; }
.g-sales { left: 0; top: 6%; width: 64%; }
.g-sales .bars { display: flex; align-items: flex-end; gap: 9px; height: 110px; margin-top: 10px; }
.g-sales .bars i { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--aqua), var(--sky)); height: 0; transition: height 1.2s cubic-bezier(.2, .8, .2, 1); }
.g-sales .bars i:last-child { background: linear-gradient(180deg, #ffe27a, var(--sun)); }
.g-ctr { right: 0; top: 0; width: 40%; text-align: center; animation-delay: -1.5s; }
.g-ctr svg { width: 92px; height: 92px; margin: 6px auto 0; display: block; transform: rotate(-90deg); }
.g-ctr circle { fill: none; stroke-width: 11; }
.g-ctr .ring { stroke: var(--sky); stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.g-ctr .val { margin-top: -62px; margin-bottom: 26px; font-family: var(--en); font-weight: 700; font-size: 20px; color: var(--navy); }
.g-ctr .val small { font-size: .7em; color: var(--sky-deep); margin-left: 2px; }
.g-fan { right: 4%; bottom: 4%; width: 52%; animation-delay: -3s; }
.g-fan .hearts { display: flex; gap: 6px; margin-top: 8px; }
.g-fan .hearts span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #ffe0ea; font-size: 13px; animation: beat 1.6s ease-in-out infinite; }
.g-fan .hearts span:nth-child(2) { animation-delay: .2s; } .g-fan .hearts span:nth-child(3) { animation-delay: .4s; }
.g-fan .hearts span:nth-child(4) { animation-delay: .6s; } .g-fan .hearts span:nth-child(5) { animation-delay: .8s; }
@keyframes beat { 50% { transform: scale(1.18); } }
.g-cpa { left: 6%; bottom: 10%; padding: 12px 18px; display: flex; align-items: center; gap: 10px; animation-delay: -4.5s; border-radius: 999px; }
.g-cpa .arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: #fff; font-weight: 900; }

.about-visual img { width: 82%; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 20px 26px rgba(42, 143, 224, .2)); }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  33% { border-radius: 45% 55% 40% 60% / 55% 45% 58% 42%; }
  66% { border-radius: 52% 48% 62% 38% / 42% 60% 40% 58%; }
}
.about h3 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); line-height: 1.6; margin-bottom: 24px; font-weight: 900; }
.about p { margin-bottom: 16px; }
.draft { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 999px; background: #fff4c2; color: #8a6d00; margin-bottom: 14px; font-weight: 700; }

/* SERVICE */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--card);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 32px; padding: 40px 32px 34px;
  box-shadow: 0 14px 40px rgba(42, 143, 224, .08);
  transition: transform .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(42, 143, 224, .16); }
.card .num { display: block; font-family: var(--en); font-weight: 700; font-size: 56px; line-height: 1; padding-bottom: .08em; margin-bottom: 12px; background: linear-gradient(120deg, var(--sky-deep), var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { padding-top: 22px; }
.card .thumb { margin: 0 -10px 18px; border-radius: 24px; background: #fff; overflow: hidden; }
.card .thumb img { width: 100%; height: auto; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.05); }
.card h3 { font-size: 21px; color: var(--navy); line-height: 1.5; margin-bottom: 14px; font-weight: 900; }
.card p { font-size: 17px; color: var(--text); flex: 1; }
.card .note { margin-top: 12px; font-size: 13.5px; color: #c07a00; }
.more { margin-top: 22px; font-weight: 700; color: var(--sky-deep); font-size: 15.5px; display: inline-flex; align-items: center; gap: 10px; }
.more .arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; transition: transform .3s; }
.more .arrow::before { content: ""; width: 7px; height: 7px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg) translate(-1px, 1px); }
.card:hover .arrow { transform: translateX(6px); }

/* NEWS */
.news-list { list-style: none; background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 32px; padding: 10px 40px; border: 1px solid var(--line); }
.news-list li { border-bottom: 1px dashed rgba(79, 179, 246, .3); }
.news-row { display: grid; grid-template-columns: 120px 110px 1fr; gap: 16px; align-items: center; padding: 22px 0; }
a.news-row { transition: color .2s; }
a.news-row .ttl { position: relative; padding-right: 28px; }
a.news-row .ttl::after { content: "›"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); color: var(--sky); font-size: 22px; transition: transform .25s; }
a.news-row:hover .ttl { color: var(--sky-deep); }
a.news-row:hover .ttl::after { transform: translate(4px, -52%); }
a.news-row:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 12px; }
.news-list .news-empty { padding: 22px 0; color: var(--muted); border-bottom: 0; }
.news-more { margin-top: 18px; text-align: right; }
.news-more .more, .news-back .more { margin-top: 0; }
/* お知らせ一覧ページのページ送り */
.news-pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.news-pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: var(--en); font-weight: 700; color: var(--sky-deep); }
.news-pager a.on { background: linear-gradient(120deg, var(--sky), var(--aqua)); color: #fff; border-color: transparent; }
/* お知らせ本文ページ */
.news-article { min-height: 260px; transition: opacity .3s; }
.news-article.loading { opacity: .5; }
.news-meta { display: flex; align-items: center; gap: 14px; }
.news-meta time { font-family: var(--en); font-weight: 700; color: var(--muted); font-size: 15.5px; }
.news-meta .tag { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: #e3f4ff; color: var(--sky-deep); font-weight: 700; }
.news-article h1 { margin: 14px 0 26px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--navy); line-height: 1.6; text-wrap: balance; padding-bottom: 20px; border-bottom: 1px dashed rgba(79, 179, 246, .35); }
/* スマホでは、タイトルが1行におさまるように画面の幅に合わせて文字を小さくする（全角16文字まで。もっと長いタイトルは折り返す） */
@media (max-width: 600px) { .news-article h1 { font-size: clamp(14px, calc((100vw - 86px) / 16.2), 22px); } }
.news-eyecatch { margin: 0 0 26px; }
.news-eyecatch img { width: 100%; max-width: 560px; height: auto; margin: 0 auto; border-radius: 20px; }
.news-body > * + * { margin-top: 1.1em; }
.news-body h2 { font-size: 21px; font-weight: 900; color: var(--navy); margin-top: 1.8em; }
.news-body h3 { font-size: 18px; font-weight: 900; color: var(--navy); margin-top: 1.5em; }
.news-body a { color: var(--sky-deep); text-decoration: underline; }
.news-body img { border-radius: 14px; }
.news-body ul, .news-body ol { padding-left: 1.4em; }
.news-body blockquote { border-left: 4px solid #cfe7fa; padding: 4px 0 4px 16px; color: var(--muted); }
.news-back { margin-top: 28px; text-align: center; }
.news-list li:last-child { border-bottom: 0; }
.news-list time { font-family: var(--en); font-weight: 700; color: var(--muted); font-size: 15.5px; }
.news-list .tag { font-size: 13px; text-align: center; padding: 3px 10px; border-radius: 999px; background: #e3f4ff; color: var(--sky-deep); font-weight: 700; }

/* COMPANY */
.message {
  background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 32px; padding: 44px 48px; border: 1px solid var(--line); margin-bottom: 28px;
}
.message { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; }   /* 代表の写真は枠の上下の真ん中に */
.message .portrait { text-align: center; }
.message .photo {
  width: 200px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 14px; overflow: hidden;
  background: linear-gradient(140deg, #e3f4ff, #e4fbf6);
  box-shadow: 0 0 0 6px #fff, 0 0 0 10px rgba(79, 179, 246, .35), 0 16px 34px rgba(42, 143, 224, .2);
}
.message .photo img { width: 100%; height: 100%; object-fit: cover; }
.message .portrait .name { font-weight: 900; color: var(--navy); line-height: 1.6; }
.message .portrait .name small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.message h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--navy); margin-bottom: 18px; font-weight: 900; }
.message h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.message p { margin-bottom: 14px; }
.message .sign { text-align: right; font-weight: 700; color: var(--navy); margin: 22px 0 0; }
.company-title { font-size: 20px; color: var(--navy); margin: 0 0 18px 4px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.company-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.company { display: block; }
.company dl { margin-bottom: 56px; }
.access { background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 32px; padding: 32px 40px 40px; border: 1px solid var(--line); }
.access address { font-style: normal; margin-bottom: 16px; }
.access .walk { display: inline-flex; align-items: center; gap: 10px; background: #e3f4ff; color: var(--sky-deep); font-weight: 700; padding: 8px 18px; border-radius: 999px; font-size: 15.5px; margin-bottom: 24px; }
.access .walk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.company dd a { color: var(--sky-deep); }
.company dl { background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 32px; padding: 20px 40px; border: 1px solid var(--line); }
.company dl div { display: grid; grid-template-columns: 110px 1fr; padding: 18px 0; border-bottom: 1px dashed rgba(79, 179, 246, .3); }
.company dl div:last-child { border-bottom: 0; }
.company dt { font-weight: 700; color: var(--navy); }
.map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CONTACT */
.contact {
  text-align: center; position: relative;
  background: linear-gradient(130deg, rgba(242, 250, 255, .88), rgba(242, 253, 250, .88));
  border-radius: 48px; padding: 80px 24px; overflow: hidden;
}
.contact h2 { font-size: clamp(24px, 3.4vw, 36px); color: var(--navy); font-weight: 900; margin: 10px 0 14px; }
.contact p { color: var(--text); margin-bottom: 34px; }
/* お問い合わせボタンの下の2つ目のボタン（Chatwork など）：白地＋水色のふち */
.btn.ghost { background: #fff; color: var(--sky-deep) !important; border: 2px solid var(--sky); box-shadow: none; }
.contact .btn.big { min-width: min(260px, 100%); justify-content: center; white-space: nowrap; }  /* 2つのボタンの幅をそろえる */
@media (max-width: 360px) { .contact .btn.big { padding-left: 24px; padding-right: 24px; } }  /* 小さいスマホでも1行に収める */
.contact .chat-btn { display: flex; width: fit-content; margin: 16px auto 0; padding-top: 16px; padding-bottom: 16px; }  /* ふち2pxのぶん内側を減らして高さもそろえる */


/* ===== フッター：白地＋流れる色のライン ===== */
footer { position: relative; margin-top: 40px; color: var(--navy); background: rgba(255, 255, 255, .92); padding-top: 56px; }
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--sky), var(--mint), var(--sun), var(--aqua), var(--sky));
  background-size: 200% 100%; animation: flow 6s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }
.footer-body { position: relative; padding: 0 0 26px; }
.footer-nav a { position: relative; }
.footer-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--sky); transition: width .3s; }
.footer-nav a:hover::after { width: 100%; }
.footer-inner { width: min(1160px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 18px; }
.footer-inner address { font-style: normal; font-size: 14px; opacity: .95; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; font-size: 14px; font-weight: 700; align-content: start; }
.copy { width: min(1160px, calc(100% - 32px)); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(21, 48, 92, .15); font-family: var(--en); font-size: 12px; opacity: .85; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; z-index: 40;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s;
  font-family: var(--en); font-weight: 700; font-size: 14px; line-height: 1.15; letter-spacing: .06em;
  color: var(--navy); text-align: center;
  filter: drop-shadow(0 6px 14px rgba(42, 143, 224, .25));
}
.to-top::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--sky) 0 50%, var(--sun) 50% 100%);
  transition: transform .6s;
}
.to-top::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.to-top span { position: relative; z-index: 1; }
.to-top:hover::before { transform: rotate(180deg); }
.to-top:hover { color: var(--sky-deep); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ===== ふわっと表示 ===== */
.reveal { opacity: .35; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ===== スマホ ===== */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav {
    position: fixed; inset: 0; z-index: 45;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 110px 24px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  nav.open { opacity: 1; visibility: visible; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav li { border-bottom: 1px solid rgba(79, 179, 246, .25); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
  nav.open li { opacity: 1; transform: none; }
  nav.open li:nth-child(2) { transition-delay: .05s; } nav.open li:nth-child(3) { transition-delay: .1s; }
  nav.open li:nth-child(4) { transition-delay: .15s; } nav.open li:nth-child(5) { transition-delay: .2s; }
  nav li:last-child { border-bottom: 0; padding-top: 28px; text-align: center; }
  nav a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-size: 16px; }
  nav a:not(.btn)::after { position: static; width: 9px; height: 9px; background: none; border-top: 2.5px solid var(--sky); border-right: 2.5px solid var(--sky); border-radius: 0; transform: rotate(45deg); transition: none; }
  nav a:not(.btn):hover::after { width: 9px; }
  nav .btn { padding: 16px 48px; font-size: 16px; }
  header { z-index: 50; }
  header {
    padding: 8px 10px 8px 20px; left: 16px; right: 16px; width: auto; transform: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .94);
  }
  body.menu-open header { box-shadow: none; background: transparent; }
  header .logo img { height: 24px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 10px; }
  .hero-owl { order: -1; }
  .hero-owl img { width: min(300px, 80%); }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .about, .company, .footer-inner { grid-template-columns: 1fr; }
  .about { gap: 36px; }
  .dash { width: min(380px, 100%); }
  .glass .big { font-size: 26px; }
  .g-fan { right: 0; }
  .g-cpa { left: 0; padding: 10px 14px; gap: 8px; }
  .g-cpa .arrow { width: 26px; height: 26px; }
  .g-sales .bars { height: 70px; }
  .g-ctr svg { width: 70px; height: 70px; }
  .g-ctr .val { margin-top: -50px; margin-bottom: 18px; font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  section.block { padding: 80px 0; }
  .news-list { padding: 6px 22px; }
  /* 日付の幅を固定して、タイトルの長さに関係なく「お知らせ」の位置をそろえる */
  .news-row { grid-template-columns: 92px max-content 1fr; gap: 6px 12px; padding: 18px 0; }
  .news-row time { white-space: nowrap; }
  .news-row .ttl { grid-column: 1 / -1; }
  .company dl { padding: 12px 22px; }
  .company dl div { grid-template-columns: 1fr; gap: 2px; }
  .contact { padding: 56px 22px; }
  .access { padding: 24px 20px 24px; }
  .message { grid-template-columns: 1fr; gap: 20px; padding: 32px 22px; }
  .message .photo { width: 160px; }
  .map { aspect-ratio: 4 / 3; }
  .scroll-hint { display: none; }
  .to-top { width: 58px; height: 58px; right: 14px; bottom: 14px; font-size: 11px; }
  .to-top::after { inset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== 下層ページ共通（お問い合わせ・特商法・プライバシーポリシー） ===== */
.page-head { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 150px 0 10px; }
.page-head .heading { margin-bottom: 26px; }
.page-head .heading .en { font-size: clamp(44px, 8vw, 96px); }
.crumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb a { color: var(--sky-deep); font-weight: 700; }
.crumb a:hover { text-decoration: underline; }
.sub-wrap { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 90px; font-size: 17px; }
.doc-card {
  background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 32px; padding: 44px 48px;
  box-shadow: 0 14px 40px rgba(42, 143, 224, .08);
}
.doc-card > .lead { margin-bottom: 8px; }
/* 項目と内容の表（特商法など） */
.spec { margin: 0; }
.spec > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px dashed rgba(79, 179, 246, .3); }
.spec > div:first-child { padding-top: 0; }
.spec > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { font-weight: 700; color: var(--navy); }
.spec dd { min-width: 0; overflow-wrap: anywhere; }
.spec dd p + p, .spec dd .sub + p { margin-top: 6px; }
.spec .sub { display: block; font-weight: 700; color: var(--sky-deep); font-size: 15px; margin-top: 12px; }
.spec .sub:first-child { margin-top: 0; }
.spec .note { font-size: 14.5px; color: var(--muted); }
/* 条文（プライバシーポリシー） */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #e3f4ff; color: var(--sky-deep); font-size: 13.5px; font-weight: 700; }
.toc a:hover { background: var(--sky); color: #fff; }
.article { padding: 30px 0; border-bottom: 1px dashed rgba(79, 179, 246, .3); scroll-margin-top: 100px; }
.article:last-of-type { border-bottom: 0; padding-bottom: 0; }
.article h2 { display: flex; align-items: baseline; gap: 12px; font-size: 20px; color: var(--navy); font-weight: 900; margin-bottom: 14px; line-height: 1.5; }
.article h2 .no { flex: none; font-family: var(--en); font-size: 13px; color: #fff; background: var(--sky-deep); border-radius: 999px; padding: 1px 12px; transform: translateY(-2px); }
.article p + p, .article ol + p, .article p + ol { margin-top: 10px; }
.article ol { list-style: none; padding-left: 1em; }
/* 番号（1．や（1））の下に文章が回り込まないように、番号の右側でそろえる */
.article .hang { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.article .hang .n { white-space: nowrap; }
.article .hang > ol { grid-column: 2; margin-top: 6px; }
.article ol li + li { margin-top: 6px; }
.article ol.roman { padding-left: 2.2em; list-style: lower-roman; }
.article ol.roman li::marker { color: var(--sky-deep); font-weight: 700; }
.sub-cta { margin-top: 40px; text-align: center; background: linear-gradient(130deg, rgba(242, 250, 255, .88), rgba(242, 253, 250, .88)); border-radius: 32px; padding: 40px 24px; }
.sub-cta h2 { font-size: 22px; color: var(--navy); font-weight: 900; margin-bottom: 8px; }
.sub-cta p { color: var(--muted); margin-bottom: 22px; }
@media (max-width: 900px) {
  .page-head { padding-top: 120px; }
  .doc-card { padding: 28px 20px; border-radius: 26px; }
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
  .article h2 { font-size: 18px; flex-direction: column; gap: 6px; }
  .article h2 .no { transform: none; }
}

/* ===== 事業ページ共通（デジタルマーケティング・Web広告運用） ===== */
.svc-wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 40px; font-size: 17px; }
.svc-sec { padding: 56px 0; }
.sec-head { margin-bottom: 30px; }
.sec-head .eyebrow { font-family: var(--en); font-weight: 700; font-size: 14px; letter-spacing: .28em; color: var(--sky-deep); }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; color: var(--navy); line-height: 1.5; margin-top: 6px; text-wrap: balance; }
.prose p + p { margin-top: 14px; }
.prose .em { font-weight: 900; color: var(--navy); }
.pull {
  margin: 24px 0; padding: 20px 26px; border-radius: 22px; font-weight: 900; color: var(--navy); font-size: 18.5px; line-height: 1.7;
  background: linear-gradient(120deg, rgba(227, 244, 255, .5), rgba(228, 251, 246, .5));
}
.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }

/* プラットフォームの図 */
.platform { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.platform .ring { position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed rgba(79, 179, 246, .45); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.platform .core {
  position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(140deg, var(--sky), var(--aqua)); color: #fff; font-weight: 900; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.4;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .8), 0 18px 40px rgba(42, 143, 224, .3);
}
.platform .core small { display: block; font-size: .7em; font-weight: 700; opacity: .9; }
.platform .pro {
  position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: #fff; border: 2px solid #cfe7fa; font-weight: 700; color: var(--navy); font-size: clamp(12px, 1.7vw, 14.5px); line-height: 1.35;
  box-shadow: 0 10px 24px rgba(42, 143, 224, .14); animation: float 6s ease-in-out infinite;
}
.platform .pro svg { width: 30%; height: auto; margin: 0 auto 2px; display: block; stroke: var(--sky-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform .p1 { left: 35%; top: 0; }
.platform .p2 { right: 0; top: 35%; animation-delay: -1.5s; }
.platform .p3 { left: 35%; bottom: 0; animation-delay: -3s; }
.platform .p4 { left: 0; top: 35%; animation-delay: -4.5s; }
/* 広告運用のイメージ図（Web広告運用ページ）。文章が長いので図はスクロールについてくる */
.side-visual { align-items: start; }
.side-visual .visual-stick { position: sticky; top: 130px; }
.adviz { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.adviz .ring { position: absolute; inset: 15%; border-radius: 50%; border: 2px dashed rgba(79, 179, 246, .45); animation: spin 60s linear infinite; }
.adviz .screen {
  position: absolute; left: 23%; top: 17%; width: 54%; height: 64%; display: flex; flex-direction: column; gap: 6%;
  padding: 6% 7% 7%; background: #fff; border: 2px solid #cfe7fa; border-radius: 24px; box-shadow: 0 18px 40px rgba(42, 143, 224, .2);
}
.adviz .dots { display: flex; gap: 5px; }
.adviz .dots i { width: 7px; height: 7px; border-radius: 50%; background: #cfe7fa; }
.adviz .ad-img { position: relative; flex: 1.3; border-radius: 14px; background: linear-gradient(140deg, var(--sky), var(--aqua)); display: grid; place-items: center; }
.adviz .ad-img svg { width: 34%; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adviz .ad { position: absolute; left: 8px; top: 8px; font-family: var(--en); font-weight: 700; font-size: 11px; color: var(--navy); background: var(--sun); border-radius: 6px; padding: 0 6px; }
.adviz .lines { display: grid; gap: 6px; }
.adviz .lines i { height: 7px; border-radius: 99px; background: #e3f4ff; }
.adviz .lines i:last-child { width: 65%; }
.adviz .graph { width: 100%; height: auto; flex: none; }
.adviz .graph .area { fill: rgba(111, 217, 232, .25); }
.adviz .graph .ln { fill: none; stroke: var(--sky-deep); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.adviz .graph circle { fill: var(--sky-deep); }
.adviz .cta { align-self: center; padding: 4px 16px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 12px; background: linear-gradient(120deg, var(--sky), var(--aqua)); }
.adviz .chip {
  position: absolute; padding: .35em 1em; border-radius: 999px; background: #fff; border: 2px solid #cfe7fa; white-space: nowrap;
  font-family: var(--en); font-weight: 700; color: var(--navy); font-size: clamp(12px, 1.6vw, 15px);
  box-shadow: 0 10px 24px rgba(42, 143, 224, .14); animation: float 6s ease-in-out infinite;
}
.adviz .c1 { left: 2%; top: 7%; }
.adviz .c2 { right: 3%; top: 4%; animation-delay: -1.2s; }
.adviz .c3 { right: 0; top: 45%; animation-delay: -2.4s; }
.adviz .c4 { left: 4%; bottom: 24%; animation-delay: -3.6s; }
.adviz .c5 { right: 8%; bottom: 5%; animation-delay: -4.8s; }
.adviz .kpi {
  position: absolute; display: flex; align-items: center; gap: 6px; padding: .5em .9em; border-radius: 14px; white-space: nowrap;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(42, 143, 224, .16); font-weight: 700; color: var(--navy); font-size: clamp(11px, 1.5vw, 13.5px);
}
.adviz .kpi b { font-family: var(--en); color: var(--sky-deep); font-size: 1.25em; }
.adviz .k1 { left: 0; top: 50%; }
.adviz .k2 { left: 12%; bottom: 4%; }
@media (max-width: 900px) { .side-visual .visual-stick { position: static; } }
.phases { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-weight: 700; color: var(--navy); font-size: 15px; }
.phases span { background: #fff; border: 2px solid #cfe7fa; border-radius: 999px; padding: 4px 16px; }
.phases i { font-style: normal; color: var(--sky); }

/* 理由カード */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.reason { position: relative; background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 32px; padding: 36px 32px 32px; box-shadow: 0 14px 40px rgba(42, 143, 224, .08); }
.reason .no { font-family: var(--en); font-weight: 700; font-size: 56px; line-height: 1; background: linear-gradient(120deg, var(--sky-deep), var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.reason h3 { font-size: 21px; font-weight: 900; color: var(--navy); line-height: 1.5; margin: 12px 0 12px; }
.reason p + p { margin-top: 10px; }

/* 対応できるサービス */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.svc-grid li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; font-weight: 700; color: var(--navy); box-shadow: 0 8px 20px rgba(42, 143, 224, .06); transition: transform .3s, box-shadow .3s; }
.svc-grid li:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(42, 143, 224, .14); }
.svc-grid .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--sky), var(--aqua)); }
.svc-grid .ic svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 流れ（ステップ） */
.flow { list-style: none; position: relative; display: grid; gap: 18px; }
/* ステップの丸どうしをつなぐ線（最後のステップの下には出さない） */
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 33px; top: 34px; height: calc(100% + 18px); width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--sky), var(--mint)); }
.flow li { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 20px; align-items: start; }
.flow .st {
  position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: #fff; border: 3px solid #cfe7fa; font-family: var(--en); font-weight: 700; color: var(--sky-deep); line-height: 1.1;
}
.flow .st small { font-size: 10px; letter-spacing: .12em; }
.flow .st b { font-size: 22px; }
.flow .body { background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 22px; padding: 18px 24px; }
.flow .body h3 { font-size: 19px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.flow .body.has-img { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: center; }
.flow .body.has-img img { width: 150px; height: auto; }

/* 料金・プラン */
.price-card { text-align: center; background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 32px; padding: 40px 28px; box-shadow: 0 14px 40px rgba(42, 143, 224, .08); }
.price-card .big { font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--navy); line-height: 1.4; }
.price-card .big em { font-style: normal; background: linear-gradient(120deg, var(--sky-deep), var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card .sub-big { font-size: 19px; font-weight: 700; color: var(--sky-deep); margin: 6px 0 16px; }
/* 本文は左寄せ（かたまりごとカードの真ん中に置く） */
.price-card .body { display: inline-block; text-align: left; max-width: 100%; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.plan { display: flex; flex-direction: column; background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 32px; padding: 34px 32px; box-shadow: 0 14px 40px rgba(42, 143, 224, .08); }
.plan .tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 14px; border-radius: 999px; background: #e3f4ff; color: var(--sky-deep); }
.plan h3 { font-size: 23px; font-weight: 900; color: var(--navy); margin: 12px 0 10px; }
.plan .desc { flex: 1; }
.plan .fee { margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(79, 179, 246, .4); display: grid; gap: 6px; }
.plan .fee dl { display: grid; gap: 6px; }
.plan .fee div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan .fee dt { font-weight: 700; color: var(--muted); font-size: 15px; }
.plan .fee dd { font-weight: 900; color: var(--navy); font-size: 22px; }
.plan .fee .ex { font-size: 13.5px; color: var(--muted); }
.media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.media li { font-size: 14px; font-weight: 700; color: var(--sky-deep); background: #fff; border: 1.5px solid #cfe7fa; border-radius: 999px; padding: 4px 14px; }

.svc-cta { margin: 20px auto 100px; width: min(1080px, calc(100% - 32px)); }

@media (max-width: 900px) {
  .svc-sec { padding: 40px 0; }
  .two-col, .reasons, .plans { grid-template-columns: 1fr; gap: 28px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .svc-grid li { padding: 12px; gap: 10px; font-size: 14.5px; }
  .svc-grid .ic { width: 38px; height: 38px; border-radius: 12px; }
  .svc-grid .ic svg { width: 20px; height: 20px; }
  .flow li:not(:last-child)::before { left: 25px; top: 26px; }
  .flow li { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .flow .st { width: 52px; height: 52px; }
  .flow .st b { font-size: 18px; }
  .flow .st small { font-size: 8px; }
  .flow .body { padding: 14px 16px; }
  .flow .body.has-img { grid-template-columns: 1fr; gap: 10px; }
  .flow .body.has-img img { width: min(200px, 70%); order: -1; justify-self: center; }
  .reason, .plan { padding: 28px 22px; }
}
@media (max-width: 420px) { .svc-grid { grid-template-columns: 1fr; } }
/* サービス一覧のタイル：ふわっと表示とホバーの動きを両立 */
.svc-grid li.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.svc-grid li.reveal.d1 { transition-delay: .12s; }
.svc-grid li.reveal.d2 { transition-delay: .24s; }
.svc-grid li.reveal.on:hover { transition-delay: 0s; }

/* ページ内リンクで移動したとき、見出しが固定ヘッダーに隠れないように */
[id] { scroll-margin-top: 90px; }

/* スマホのときだけ改行する */
.sp-br { display: none; }
@media (max-width: 600px) { .sp-br { display: inline; } }
