/* ============ Webconnect 見本 v2（アピア山陰HPの組み方を参考） ============ */
:root {
  --accent: #3448cc;       /* ロゴの青紫（グラデーションは使わない） */
  --accent-dark: #25339a;
  --ink: #16181f;
  --ink-sub: #5b5f6b;
  --line: #dfe1e8;
  --bg: #ffffff;
  --bg-soft: #f2f3f6;
  --en: "Raleway", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--ja); font-size: 15px; line-height: 1.9; letter-spacing: .05em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.pc { display: none; }
.sp { display: inline; }
@media (min-width: 768px) {
  body { font-size: 16px; }
  :root { --gutter: 40px; }
  .pc { display: inline; }
  .sp { display: none; }
}

/* 画像がまだ無いときの仮の地 */
.hero__media, .decl__photo, .svc__photo, .band, .work__thumb { background: #c9ccd6; }

/* ---------- ふわっと出る動き ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 var(--gutter);
}
.header__logo { position: relative; width: 84px; }
.header__logo img { width: 100%; }
.header__logo .logo-color { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.header__logo .logo-white { transition: opacity .3s; }
.header.is-scrolled .logo-color { opacity: 1; }
.header.is-scrolled .logo-white { opacity: 0; }

.menu-btn {
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  position: relative; z-index: 60;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .3s; }
body.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(25deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-25deg); }

.gnav {
  position: fixed; inset: 0; background: #fff; z-index: 55;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
body.menu-open .gnav { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.gnav ul { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.gnav a { display: flex; flex-direction: column; line-height: 1.3; }
.gnav .en { font-family: var(--en); font-size: 28px; font-weight: 700; letter-spacing: .04em; }
.gnav .ja { font-size: 12px; color: var(--ink-sub); }
.gnav__contact a {
  margin-top: 10px; display: inline-block; padding: 14px 36px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}

@media (min-width: 1024px) {
  .header { height: 96px; padding: 0 28px; }
  .header__logo { width: 104px; }
  .menu-btn { display: none; }
  /* 白い角丸バーのメニュー */
  .gnav {
    position: static; inset: auto; opacity: 1; visibility: visible; display: block;
    background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 12px; padding: 8px 8px 8px 30px;
  }
  .gnav ul { flex-direction: row; align-items: center; gap: 30px; }
  .gnav .en { display: none; }
  .gnav .ja { font-size: 13px; color: var(--ink); font-weight: 500; transition: color .25s; }
  .gnav a:hover .ja { color: var(--accent); }
  .gnav__contact a { margin: 0; padding: 10px 26px; font-size: 13px; }
  .gnav__contact a:hover { background: var(--accent-dark); }
}

/* ---------- hero：スクロールで映像が縮む ---------- */
.hero { position: relative; height: 190vh; height: 190svh; --p: 0; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  transform: scale(calc(1 - var(--p) * .22));
  border-radius: calc(var(--p) * 24px);
  will-change: transform;
}
.hero__media video, .hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__img { transform: scale(calc(1.08 - var(--p) * .08)); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 40, .52); }
.hero__inner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 0 var(--gutter) 96px;
  opacity: calc(1 - var(--p) * 3.2); transform: translateY(calc(var(--p) * -60px));
}
.hero__en { font-family: var(--en); font-weight: 700; font-size: 58px; line-height: 1.02; letter-spacing: .01em; }
.hero__copy { margin-top: 22px; font-size: 18px; font-weight: 500; line-height: 1.8; letter-spacing: .1em; }
.hero__sub { margin-top: 16px; font-family: var(--en); font-size: 11px; line-height: 1.7; letter-spacing: .06em; opacity: .85; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 0; z-index: 1;
  font-family: var(--en); font-size: 11px; letter-spacing: .2em; writing-mode: vertical-rl; padding-bottom: 76px;
  opacity: calc(1 - var(--p) * 4);
}
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; background: rgba(255,255,255,.35); }
.hero__scroll::before {
  content: ""; position: absolute; left: 50%; bottom: 44px; width: 1px; height: 20px; background: #fff; z-index: 1;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(44px); opacity: 0; } }
@media (min-width: 768px) {
  .hero__inner { padding: 0 0 12vh 7vw; }
  .hero__en { font-size: clamp(80px, 9vw, 132px); }
  .hero__copy { font-size: clamp(20px, 2vw, 26px); }
  .hero__sub { font-size: 13px; }
  .hero__scroll { right: 40px; }
}

/* ---------- 宣言：特大の文字＋文字に埋め込む写真 ---------- */
.decl {
  min-height: 100vh; min-height: 100svh; padding: 110px var(--gutter) 90px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.decl__lines { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.decl__line { display: flex; align-items: center; font-size: clamp(24px, 6.2vw, 58px); font-weight: 500; line-height: 1.25; letter-spacing: .08em; white-space: nowrap; }
/* 1文字ずつ出る（spanはJSで作る） */
.decl .ch { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .5s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; transition-delay: calc(var(--i) * 60ms); }
.decl.is-in .ch { opacity: 1; transform: none; filter: none; }
/* 強調の語：ひとまわり大きく、出たあとに青が塗られて白抜きになる */
.decl__box { position: relative; isolation: isolate; font-size: 1.4em; font-weight: 700; color: var(--accent); padding: .04em .14em .1em; margin: 0 .16em 0 0; line-height: 1.2; transition: color .3s ease var(--bd, 0s); }
.decl__box::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.7,0,.2,1) var(--bd, 0s); }
.decl__box .ch { transform: translateY(.3em) scale(.3); }
.decl.is-in .decl__box { color: #fff; }
.decl.is-in .decl__box::before { transform: scaleX(1); }
/* 文字に埋め込む写真：横にひらく */
.decl__photo { display: inline-block; width: 0; aspect-ratio: 3 / 2; height: .95em; margin: 0; border-radius: 999px; overflow: hidden; transition: width .9s cubic-bezier(.7,0,.2,1) var(--bd, 0s), margin .9s cubic-bezier(.7,0,.2,1) var(--bd, 0s); }
.decl.is-in .decl__photo { width: 1.9em; margin: 0 .3em; }
.decl__photo img { width: 1.9em; max-width: none; height: 100%; object-fit: cover; }
.decl__end { margin-top: 56px; font-size: clamp(16px, 2.2vw, 24px); text-align: center; line-height: 1.9; letter-spacing: .1em; --d: 1.6s; }

/* ---------- 流れる文字帯 ---------- */
.marquee { background: #fff; overflow: hidden; padding: 14px 0; border-top: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--en); font-weight: 500; font-size: clamp(22px, 3.4vw, 40px); letter-spacing: .18em; color: #b7bbc7; white-space: nowrap; padding-right: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 共通の見出し ---------- */
.section { position: relative; padding: 96px 0; overflow: hidden; }
@media (min-width: 768px) { .section { padding: 160px 0; } }
.sec-head { text-align: center; margin-bottom: 56px; position: relative; z-index: 1; }
.sec-head__en { font-family: var(--en); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: .01em; color: var(--accent); }
.sec-head__ja { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.sec-head__lead { margin-top: 26px; font-size: 14px; line-height: 2.1; color: var(--ink-sub); }
.sec-head--left { text-align: left; }
@media (min-width: 768px) {
  .sec-head { margin-bottom: 88px; }
  .sec-head__en { font-size: 84px; }
  .sec-head__ja { font-size: 15px; }
  .sec-head__lead { font-size: 15px; }
}
/* 背景の巨大な透かし英単語 */
.watermark {
  position: absolute; left: -.04em; top: 40px; z-index: 0; pointer-events: none;
  font-family: var(--en); font-weight: 700; font-size: 24vw; line-height: 1; letter-spacing: -.01em;
  color: rgba(22, 24, 31, .04); white-space: nowrap;
}
.watermark--right { left: auto; right: -.04em; }
.watermark--light { color: rgba(255,255,255,.07); top: auto; bottom: -.12em; }

/* 丸い矢印ボタン */
.arrow-btn {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--en); font-weight: 500; font-size: 13px; letter-spacing: .14em;
}
.arrow-btn::after {
  content: "→"; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 16px; letter-spacing: 0; transition: transform .3s;
}
.arrow-btn:hover::after { transform: translateX(6px); }
.more { text-align: right; margin-top: 44px; }

/* ---------- service：写真と文章を左右交互 ---------- */
.service { background: var(--bg-soft); }
.svc { position: relative; z-index: 1; margin-bottom: 72px; }
/* --sp：画面の中央に来るほど 0→1（JS）。写真が外側から大きくなる */
.svc__photo {
  aspect-ratio: 4 / 3; overflow: hidden; margin-right: var(--gutter);
  transform: scale(calc(.58 + var(--sp, 1) * .42)); transform-origin: left center;
  border-radius: calc((1 - var(--sp, 1)) * 90px); will-change: transform;
}
.svc--rev .svc__photo { margin-right: 0; margin-left: var(--gutter); transform-origin: right center; }
.svc__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.4 - var(--sp, 1) * .4)); }
.svc__body { position: relative; z-index: 2; background: #fff; padding: 30px 24px 34px; margin: -44px var(--gutter) 0 calc(var(--gutter) + 20px); box-shadow: 0 18px 40px -24px rgba(22,24,31,.25); }
.svc--rev .svc__body { margin: -44px calc(var(--gutter) + 20px) 0 var(--gutter); }
.svc__num { display: block; font-family: var(--en); font-weight: 300; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.svc__num { margin-top: -62px; }
.svc__tag { display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 3px 14px; }
.svc__title { margin-top: 14px; font-size: 26px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.svc__en { margin-top: 6px; font-family: var(--en); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.svc__text { margin-top: 18px; font-size: 14px; line-height: 2.1; color: var(--ink-sub); }
.svc__points { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__points li { font-size: 12px; padding: 4px 14px; background: var(--bg-soft); }
.svc .arrow-btn { margin-top: 28px; }
.service-note { margin-top: 8px; font-size: 13px; color: var(--ink-sub); text-align: center; }

@media (min-width: 900px) {
  .svc { display: grid; grid-template-columns: 58% 1fr; align-items: center; margin-bottom: 140px; }
  .svc__photo { margin: 0; aspect-ratio: 16 / 11; }
  .svc__body { z-index: 2; margin: 0 0 0 -7vw; padding: 60px 5vw 64px 4vw; }
  .svc--rev { grid-template-columns: 1fr 58%; }
  .svc--rev .svc__photo { grid-column: 2; grid-row: 1; margin: 0; }
  .svc--rev .svc__body { grid-column: 1; grid-row: 1; margin: 0 -7vw 0 0; padding: 60px 4vw 64px 5vw; text-align: right; }
  .svc--rev .svc__points { justify-content: flex-end; }
  .svc__num { font-size: 110px; margin-top: -116px; }
  .svc__title { font-size: 36px; }
  .svc__text { font-size: 15px; max-width: 28em; }
  .svc--rev .svc__text { margin-left: auto; }
  .svc--main .svc__photo { aspect-ratio: 16 / 12; }
  .svc--main .svc__title { font-size: 44px; }
}

/* ---------- reason：罫線で区切った3列 ---------- */
.reason { background: #fff; }
.reason-list { display: grid; border-top: 1px solid var(--line); }
.reason-list li { position: relative; padding: 40px var(--gutter) 44px; border-bottom: 1px solid var(--line); }
.reason-list__vt { position: absolute; right: var(--gutter); top: 40px; writing-mode: vertical-rl; font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.reason-list__num { font-family: var(--en); font-weight: 300; font-size: 60px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.reason-list h3 { margin-top: 18px; font-size: 22px; line-height: 1.6; letter-spacing: .08em; }
.reason-list p { margin-top: 14px; font-size: 14px; color: var(--ink-sub); line-height: 2.1; }
@media (min-width: 900px) {
  .reason-list { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .reason-list li { border-bottom: 0; padding: 56px 64px 64px 40px; }
  .reason-list li + li { border-left: 1px solid var(--line); }
  .reason-list li:nth-child(2) { --d: .15s; } .reason-list li:nth-child(3) { --d: .3s; }
  .reason-list__num { font-size: 88px; }
  .reason-list h3 { font-size: 26px; }
}

/* ---------- AI × Human（濃い地） ---------- */
.ai { background: #14161d; color: #fff; }
.ai .sec-head__en { color: #fff; }
.ai .sec-head__en span { color: var(--accent); font-weight: 300; }
.ai .sec-head__lead { color: rgba(255,255,255,.72); }
.ai-list { display: grid; border-top: 1px solid rgba(255,255,255,.16); position: relative; z-index: 1; }
.ai-list li { padding: 30px 0 32px; border-bottom: 1px solid rgba(255,255,255,.16); }
.ai-list__en { font-family: var(--en); font-size: 12px; letter-spacing: .16em; color: #8e9bf0; }
.ai-list h3 { margin-top: 10px; font-size: 20px; line-height: 1.6; letter-spacing: .08em; }
.ai-list p { margin-top: 10px; font-size: 14px; line-height: 2; color: rgba(255,255,255,.72); }
.ai__note { margin-top: 48px; text-align: center; font-size: 15px; line-height: 2; position: relative; z-index: 1; }
@media (min-width: 900px) {
  .ai-list { grid-template-columns: repeat(2, 1fr); column-gap: 64px; border-top: 0; }
  .ai-list li { padding: 40px 0 44px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 0; }
  .ai-list li:nth-child(even) { --d: .15s; }
  .ai-list h3 { font-size: 24px; }
  .ai__note { margin-top: 72px; font-size: 17px; }
}

/* ---------- works：横スクロールの写真カード ---------- */
.works__head { display: flex; justify-content: space-between; align-items: flex-end; }
.works__head .sec-head { margin-bottom: 44px; }
.works__nav { display: none; gap: 10px; margin-bottom: 52px; }
.works__arw { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: none; cursor: pointer; font-size: 18px; transition: background .25s, color .25s; }
.works__arw:hover { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .works__nav { display: flex; } }
.works-list {
  position: relative; z-index: 1;
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 8px; scroll-padding-left: var(--gutter);
}
.works-list::-webkit-scrollbar { display: none; }
.works-list li { flex: 0 0 78%; scroll-snap-align: start; }
.works-list li:nth-child(2) { --d: .1s; } .works-list li:nth-child(3) { --d: .2s; }
.work { display: block; }
.work__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-soft) !important; transition: background .4s; }
.work:hover .work__thumb { background: #e4e7f6 !important; }
.work__icon { position: relative; z-index: 1; width: 46%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 14px 30px -16px rgba(22,24,31,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work:hover .work__icon { transform: scale(1.07); }
.work__thumb::after {
  content: attr(data-initial); position: absolute; left: 16px; bottom: 10px;
  font-family: var(--en); font-weight: 300; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.work__body { padding: 18px 2px 0; }
.work__cat { font-size: 12px; color: var(--accent); font-weight: 700; }
.work__name { margin-top: 4px; font-size: 18px; line-height: 1.5; letter-spacing: .06em; }
@media (min-width: 768px) {
  .works-list { gap: 32px; padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + 40px)); scroll-padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + 40px)); }
  .works-list li { flex-basis: 40%; }
}
@media (min-width: 1280px) { .works-list li { flex-basis: 30%; } }

/* ---------- voice ---------- */
.voice { background: var(--bg-soft); }
.voice-list { display: grid; gap: 16px; }
.voice-card { background: #fff; padding: 32px 26px; }
.voice-card h3 { font-size: 18px; line-height: 1.6; padding-bottom: 16px; border-bottom: 1px solid var(--accent); }
.voice-card p { margin-top: 16px; font-size: 14px; line-height: 2.1; color: var(--ink-sub); }
@media (min-width: 768px) {
  .voice-list { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .voice-list li:nth-child(even) { --d: .15s; }
  .voice-card { padding: 48px 48px; }
}

/* ---------- message：写真＋右下にずらした細い青枠 ---------- */
.message__grid { display: grid; gap: 56px; }
.message__frame { position: relative; padding: 0 24px 24px 0; max-width: 460px; margin: 0 auto; width: 100%; }
.message__frame::before { content: ""; position: absolute; inset: 24px 0 0 24px; border: 1px solid var(--accent); }
.message__photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; background: #e8ebf7; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.message__photo img { width: 100%; height: 100%; object-fit: cover; }
.message__body p { margin-bottom: 1.3em; line-height: 2.2; }
.message__sign { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.message__role { font-size: 13px; color: var(--ink-sub); }
.message__name { font-size: 24px; font-weight: 700; letter-spacing: .16em; }
.message__roman { font-family: var(--en); font-size: 12px; color: var(--ink-sub); letter-spacing: .12em; }
.message__links { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 32px; }
@media (min-width: 900px) {
  .message__grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; }
  .message__body { --d: .15s; }
}

/* ---------- blog ---------- */
.blog { padding-top: 0; }
.blog-list { border-top: 1px solid var(--ink); }
.blog-list li { border-bottom: 1px solid var(--line); }
.blog-list a { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 24px 4px; transition: color .25s; }
.blog-list a:hover { color: var(--accent); }
.blog-list time { font-family: var(--en); font-size: 13px; color: var(--ink-sub); }
.blog-list__cat { font-size: 11px; justify-self: start; padding: 0 10px; color: #fff; background: var(--accent); }
.blog-list__title { grid-column: 1 / -1; font-size: 15px; line-height: 1.7; }
@media (min-width: 900px) {
  .blog__grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
  .blog-list a { grid-template-columns: 110px 120px 1fr; align-items: center; padding: 28px 8px; }
  .blog-list__title { grid-column: auto; font-size: 16px; }
}

/* ---------- 写真の帯でページ送り ---------- */
.band { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 150px; overflow: hidden; color: #fff; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(8,12,40,.5); transition: background .4s; }
.band:hover img { transform: scale(1.05); }
.band:hover::after { background: rgba(52,72,204,.62); }
.band__en, .band__ja { position: relative; z-index: 1; }
.band__en { font-family: var(--en); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: .02em; }
.band__ja { font-size: 13px; letter-spacing: .14em; margin-top: 6px; }
@media (min-width: 768px) {
  .bands { display: grid; grid-template-columns: repeat(3, 1fr); }
  .band { height: 300px; }
  .band__en { font-size: 44px; }
}

/* ---------- contact（青い面はここだけ・ベタ塗り） ---------- */
.contact { position: relative; overflow: hidden; background: var(--accent); color: #fff; text-align: center; padding: 100px 0; }
.contact .container { position: relative; z-index: 1; }
.contact__en { font-family: var(--en); font-weight: 700; font-size: 56px; line-height: 1; }
.contact__lead { margin-top: 26px; font-size: 19px; font-weight: 700; line-height: 1.7; }
.contact__text { margin-top: 14px; font-size: 14px; opacity: .9; }
.btn-primary {
  display: inline-block; margin-top: 38px; padding: 20px 52px; border-radius: 999px;
  background: #fff; color: var(--accent); font-weight: 700; font-size: 16px; transition: transform .25s;
}
.btn-primary:hover { transform: translateY(-2px); }
.contact__area { margin-top: 26px; font-size: 12px; opacity: .8; }
@media (min-width: 768px) {
  .contact { padding: 150px 0; }
  .contact__en { font-size: 110px; }
  .contact__lead { font-size: 26px; }
  .contact__text { font-size: 15px; }
}

/* ---------- footer（白地・4列） ---------- */
.footer { background: #fff; padding: 64px 0 96px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 40px; }
.footer__logo { width: 104px; }
.footer__desc { margin-top: 16px; font-size: 12px; line-height: 1.9; color: var(--ink-sub); }
.footer__addr { margin-top: 8px; font-size: 12px; color: var(--ink-sub); }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; font-size: 13px; }
.footer__nav a:hover { color: var(--accent); }
.footer__cta-lead { font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); text-align: center; }
.footer__btn { display: block; margin-top: 18px; padding: 16px; text-align: center; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; transition: background .25s; }
.footer__btn:hover { background: var(--accent-dark); }
.footer__area { margin-top: 12px; font-size: 12px; text-align: center; color: var(--ink-sub); }
.footer__copy { text-align: center; margin-top: 56px; font-family: var(--en); font-size: 11px; color: var(--ink-sub); letter-spacing: .1em; }
@media (min-width: 900px) {
  .footer { padding-bottom: 32px; }
  .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 64px; align-items: start; }
  .footer__nav { grid-template-columns: 1fr; }
}

/* ---------- PC：回転する丸いCTA ---------- */
.round-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 40;
  width: 136px; height: 136px; border-radius: 50%;
  background: rgba(52,72,204,.92); color: #fff;
  display: none; align-items: center; justify-content: center;
  transition: transform .3s, opacity .3s, visibility .3s;
}
.round-cta.is-hidden { opacity: 0; visibility: hidden; transform: scale(.8); }
.round-cta:hover { transform: scale(1.06); }
.round-cta__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.round-cta__ring text { fill: #fff; font-family: var(--en); font-size: 10.5px; letter-spacing: .12em; }
.round-cta__center { position: relative; font-size: 13px; font-weight: 700; line-height: 1.45; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- スマホ：画面下の固定CTA ---------- */
.sp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  transition: transform .35s;
}
.sp-cta.is-hidden { transform: translateY(100%); }
@media (min-width: 900px) {
  .round-cta { display: flex; }
  .sp-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .round-cta__ring, .hero__scroll::before, .marquee__track { animation: none; }
  .reveal, .decl .ch { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 下層ページ（ブログ一覧・記事） ============ */
.header--solid { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .header--solid .gnav { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; } }

.page-head { position: relative; overflow: hidden; background: var(--bg-soft); padding: 120px 0 48px; }
.page-head .watermark { top: auto; bottom: -.1em; }
.page-head .container { position: relative; z-index: 1; }
.page-head__en { font-family: var(--en); font-weight: 700; font-size: 52px; line-height: 1; color: var(--accent); }
.page-head__ja { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
@media (min-width: 768px) {
  .page-head { padding: 180px 0 72px; }
  .page-head__en { font-size: 96px; }
}

/* パンくず */
.breadcrumb { padding-top: 18px; padding-bottom: 18px; font-size: 12px; color: var(--ink-sub); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #b7bbc7; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent); }

/* 一覧：カード */
.blog-index { padding: 32px 0 96px; }
.post-cards { display: grid; gap: 40px; }
.post-card a { display: block; }
.post-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #c9ccd6; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post-card a:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.post-card__meta time { font-family: var(--en); font-size: 13px; color: var(--ink-sub); }
.post-card__title { margin-top: 8px; font-size: 17px; line-height: 1.7; letter-spacing: .06em; transition: color .25s; }
.post-card a:hover .post-card__title { color: var(--accent); }
.post-card__excerpt { margin-top: 8px; font-size: 13px; line-height: 1.9; color: var(--ink-sub); }
.cat-tag { display: inline-block; font-size: 11px; padding: 0 10px; color: #fff; background: var(--accent); line-height: 1.9; }
@media (min-width: 768px) {
  .blog-index { padding: 48px 0 160px; }
  .post-cards { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
}
@media (min-width: 1100px) { .post-cards { grid-template-columns: repeat(3, 1fr); } }

/* 記事 */
.post { padding: 24px 0 96px; }
.post__inner { max-width: 760px; margin: 0 auto; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--ink-sub); }
.post__meta time { font-family: var(--en); }
.post__title { margin-top: 16px; font-size: 24px; line-height: 1.6; letter-spacing: .06em; }
.post__eyecatch { margin-top: 28px; aspect-ratio: 16 / 9; overflow: hidden; background: #c9ccd6; }
.post__eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.post__lead { margin-top: 32px; padding: 24px 26px; background: var(--bg-soft); border-left: 3px solid var(--accent); font-size: 15px; line-height: 2.1; }
.post__toc { margin-top: 40px; padding: 24px 26px; border: 1px solid var(--line); }
.post__toc-title { font-family: var(--en); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.post__toc ol { margin-top: 10px; counter-reset: toc; }
.post__toc li { counter-increment: toc; padding: 4px 0; font-size: 14px; line-height: 1.8; }
.post__toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--en); color: var(--accent); margin-right: 12px; }
.post__toc a:hover { color: var(--accent); }
.post__body { margin-top: 16px; }
.post__body h2 { margin-top: 64px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 21px; line-height: 1.6; letter-spacing: .06em; scroll-margin-top: 92px; }
@media (min-width: 900px) { .post__body h2 { scroll-margin-top: 120px; } } /* ヘッダーの高さ＋24px */
.post__body h3 { margin-top: 40px; padding-left: 14px; border-left: 3px solid var(--accent); font-size: 17px; line-height: 1.6; }
.post__body p { margin-top: 1.4em; line-height: 2.1; }
.post__body ul, .post__body ol { margin-top: 1.4em; }
.post__body ul li { position: relative; padding-left: 1.3em; line-height: 2; }
.post__body ul li::before { content: ""; position: absolute; left: .2em; top: .85em; width: 6px; height: 6px; background: var(--accent); }
.post__body ol { counter-reset: ol; }
.post__body ol li { counter-increment: ol; position: relative; padding-left: 2em; line-height: 2; }
.post__body ol li::before { content: counter(ol) "."; position: absolute; left: .2em; font-family: var(--en); font-weight: 700; color: var(--accent); }
.post__body strong { background: #e3e7fb; padding: 0 .15em; font-weight: 700; }
.post__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post__body .box { margin-top: 1.8em; padding: 22px 24px; background: var(--bg-soft); }
.post__body .box__title { font-weight: 700; color: var(--accent); }
.post__body .box p:first-child, .post__body .box ul:first-child { margin-top: 0; }
.post__body .prompt { font-family: inherit; overflow-x: auto; margin-top: 1.6em; padding: 20px 22px; background: #14161d; color: #e9ebf5; font-size: 14px; line-height: 2; white-space: pre-wrap; border-radius: 4px; }
.post__body .prompt::before { content: "AIへの頼み方（例）"; display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .12em; color: #8e9bf0; }
.post__body .note { font-size: 12px; color: var(--ink-sub); }
.post__summary { margin-top: 64px; padding: 28px 26px; border: 1px solid var(--accent); }
.post__summary h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 18px; color: var(--accent); }
.post__author { display: flex; gap: 18px; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post__author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: #e8ebf7; flex-shrink: 0; }
.post__author-name { font-weight: 700; }
.post__author-desc { font-size: 13px; color: var(--ink-sub); line-height: 1.9; }
@media (min-width: 768px) {
  .post { padding: 32px 0 160px; }
  .post__title { font-size: 32px; }
  .post__body h2 { font-size: 25px; }
  .post__body h3 { font-size: 19px; }
}

/* 記事末のCTA */
.post-cta { margin-top: 56px; padding: 36px 26px; background: var(--accent); color: #fff; text-align: center; }
.post-cta__en { font-family: var(--en); font-size: 12px; letter-spacing: .2em; opacity: .8; }
.post-cta__title { margin-top: 8px; font-size: 20px; line-height: 1.6; font-weight: 700; }
.post-cta__text { margin-top: 12px; font-size: 14px; line-height: 2; opacity: .92; }
.post-cta .btn-primary { margin-top: 24px; padding: 16px 40px; font-size: 15px; }
@media (min-width: 768px) { .post-cta { padding: 48px 40px; } .post-cta__title { font-size: 24px; } }

/* 前後の記事 */
.post-nav { display: grid; gap: 12px; margin-top: 56px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); transition: border-color .25s, color .25s; }
.post-nav a:hover { border-color: var(--accent); color: var(--accent); }
.post-nav__label { display: block; font-family: var(--en); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.post-nav__title { display: block; margin-top: 4px; font-size: 14px; line-height: 1.7; }
.post-nav__next { text-align: right; }
.post-nav__back { margin-top: 32px; text-align: center; }
@media (min-width: 768px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav__next { grid-column: 2; } }
.post-spacer { height: 68px; }
@media (min-width: 1024px) { .post-spacer { height: 96px; } }

/* ============ 下層ページ（サービス・事例・会社概要・FAQ・お問い合わせ） ============ */
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-intro { padding: 40px 0 24px; text-align: center; }
.page-intro__lead { font-size: 21px; font-weight: 700; line-height: 1.7; letter-spacing: .08em; }
.page-intro__text { margin-top: 18px; font-size: 14px; line-height: 2.1; color: var(--ink-sub); }
@media (min-width: 768px) {
  .page-intro { padding: 64px 0 40px; }
  .page-intro__lead { font-size: 30px; }
  .page-intro__text { font-size: 15px; }
}

/* サービス：目次 */
.svc-index { margin-top: 36px; display: grid; gap: 8px; text-align: left; }
.svc-index a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); font-weight: 500; transition: border-color .25s, color .25s; }
.svc-index a::after { content: "↓"; margin-left: auto; color: var(--accent); }
.svc-index a:hover { border-color: var(--accent); color: var(--accent); }
.svc-index span { font-family: var(--en); font-size: 13px; color: var(--accent); }
@media (min-width: 900px) { .svc-index { grid-template-columns: repeat(5, 1fr); } .svc-index a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; font-size: 14px; } .svc-index a::after { margin: 6px 0 0; } }

/* サービス：詳細 */
.svc-detail { padding: 72px 0; scroll-margin-top: 20px; } /* 見出しがヘッダーのすぐ下（約24px空け）に来る */
.svc-detail:nth-of-type(even) { background: var(--bg-soft); }
.svc-detail__head { position: relative; margin-bottom: 32px; }
.svc-detail__num { display: block; font-family: var(--en); font-weight: 300; font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.svc-detail__title { margin-top: 12px; font-size: 26px; line-height: 1.5; letter-spacing: .08em; }
.svc-detail__en { margin-top: 4px; font-family: var(--en); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.svc-detail__grid { display: grid; gap: 32px; }
.svc-detail__photo { aspect-ratio: 4 / 3; overflow: hidden; background: #c9ccd6; }
.svc-detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__summary { font-size: 16px; line-height: 2; font-weight: 500; }
.svc-detail__body h3 { margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 16px; letter-spacing: .08em; }
.svc-detail__note { margin-top: 28px; padding: 14px 18px; background: #fff; border-left: 3px solid var(--accent); font-size: 14px; }
.svc-detail:nth-of-type(odd) .svc-detail__note { background: var(--bg-soft); }
.check-list { margin-top: 14px; }
.check-list li { position: relative; padding: 6px 0 6px 1.8em; font-size: 14px; line-height: 1.9; }
.check-list li::before { content: ""; position: absolute; left: .2em; top: .95em; width: .9em; height: .5em; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (min-width: 900px) {
  .svc-detail { padding: 120px 0; scroll-margin-top: 0; }
  .svc-detail__head { margin-bottom: 48px; }
  .svc-detail__num { font-size: 110px; }
  .svc-detail__title { font-size: 38px; }
  .svc-detail--main .svc-detail__title { font-size: 46px; }
  .svc-detail__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .svc-detail__grid--rev .svc-detail__photo { order: 2; }
  .svc-detail__summary { font-size: 17px; }
  .check-list li { font-size: 15px; }
}

/* サービス：AIの箱 */
.svc-ai { padding: 24px 0 0; }
.svc-ai__box { background: #14161d; color: #fff; padding: 40px 26px; }
.svc-ai__en { font-family: var(--en); font-weight: 700; font-size: 28px; line-height: 1; }
.svc-ai__en span { color: var(--accent); font-weight: 300; }
.svc-ai__title { margin-top: 18px; font-size: 21px; line-height: 1.6; letter-spacing: .08em; }
.svc-ai__text { margin-top: 14px; font-size: 14px; line-height: 2.1; color: rgba(255,255,255,.76); }
@media (min-width: 900px) { .svc-ai { padding-top: 40px; } .svc-ai__box { padding: 64px 72px; } .svc-ai__en { font-size: 44px; } .svc-ai__title { font-size: 28px; } .svc-ai__text { font-size: 15px; max-width: 46em; } }

/* 流れ */
.flow-list { display: grid; gap: 12px; position: relative; z-index: 1; counter-reset: flow; }
.flow-list li { position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--line); }
.flow-list__num { font-family: var(--en); font-weight: 300; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.flow-list h3 { margin-top: 10px; font-size: 18px; letter-spacing: .08em; }
.flow-list p { margin-top: 8px; font-size: 14px; line-height: 2; color: var(--ink-sub); }
.flow .service-note { margin-top: 40px; }
@media (min-width: 900px) {
  .flow-list { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .flow-list li:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); z-index: 1; }
  .flow-list li:nth-child(2) { --d: .1s; } .flow-list li:nth-child(3) { --d: .2s; } .flow-list li:nth-child(4) { --d: .3s; } .flow-list li:nth-child(5) { --d: .4s; }
}

/* 事例 */
.works-page { padding: 24px 0 96px; }
.works-grid { display: grid; gap: 40px; }
.works-card__link { display: block; }
.works-card__thumb { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: background .4s; }
.works-card__link:hover .works-card__thumb { background: #e4e7f6; }
.works-card__thumb img { width: 42%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 14px 30px -16px rgba(22,24,31,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.works-card__link:hover .works-card__thumb img { transform: scale(1.07); }
.works-card__thumb::after { content: attr(data-initial); position: absolute; left: 16px; bottom: 10px; font-family: var(--en); font-weight: 300; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.works-card__body { padding-top: 18px; }
.works-card__name { margin-top: 4px; font-size: 20px; line-height: 1.5; letter-spacing: .06em; }
.works-card__text { margin-top: 10px; font-size: 14px; line-height: 2; color: var(--ink-sub); }
.works-card__more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--accent); border-bottom: 1px solid currentColor; }
.works-card__more::after { content: " ↗"; }
.works-note { margin-top: 48px; }
.works-note__text { font-size: 14px; line-height: 2; color: var(--ink-sub); text-align: center; }
.works-note + .works-web { margin-top: 48px; }
.works-web { margin-top: 72px; padding: 40px 26px; border: 1px solid var(--accent); }
.works-web__en { font-family: var(--en); font-weight: 700; font-size: 32px; line-height: 1; color: var(--accent); }
.works-web__title { margin-top: 10px; font-size: 20px; letter-spacing: .08em; }
.works-web__text { margin-top: 12px; font-size: 14px; line-height: 2.1; color: var(--ink-sub); }
.works-web__list { margin-top: 20px; display: grid; gap: 14px; }
.works-web__list a { display: block; height: 100%; padding: 18px 20px; background: var(--bg-soft); transition: background .3s; }
.works-web__list a:hover { background: #e4e7f6; }
.works-web__list h3 { font-size: 16px; letter-spacing: .06em; color: var(--accent); }
.works-web__list h3::after { content: " →"; }
.works-web__list p { margin-top: 6px; font-size: 13px; line-height: 1.9; color: var(--ink-sub); }
.works-web__list + .works-web__text { margin-top: 18px; font-size: 13px; }
@media (min-width: 900px) { .works-web__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) {
  .works-page { padding: 48px 0 160px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 64px 40px; }
  .works-grid li:nth-child(even) { --d: .12s; }
  .works-web { margin-top: 120px; padding: 56px 64px; }
}
@media (min-width: 1100px) { .works-grid { grid-template-columns: repeat(3, 1fr); } .works-grid li:nth-child(3n+2) { --d: .1s; } .works-grid li:nth-child(3n) { --d: .2s; } }

/* 会社概要 */
.about-message { padding-top: 48px; }
.policy { background: var(--bg-soft); }
.policy-list { display: grid; gap: 16px; position: relative; z-index: 1; }
.policy-list li { background: #fff; padding: 32px 26px; }
.policy-list__num { font-family: var(--en); font-weight: 300; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.policy-list h3 { margin-top: 14px; font-size: 20px; line-height: 1.6; letter-spacing: .08em; }
.policy-list p { margin-top: 10px; font-size: 14px; line-height: 2.1; color: var(--ink-sub); }
@media (min-width: 900px) { .policy-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } .policy-list li { padding: 48px 40px; } .policy-list li:nth-child(2) { --d: .12s; } .policy-list li:nth-child(3) { --d: .24s; } }
.company-table { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; border-top: 1px solid var(--ink); }
.company-table > div { display: grid; gap: 4px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.company-table dt { font-size: 13px; font-weight: 700; color: var(--accent); }
.company-table dd { margin: 0; font-size: 15px; line-height: 1.9; }
.company-table dd li { position: relative; padding-left: 1.2em; }
.company-table dd li::before { content: ""; position: absolute; left: .1em; top: .8em; width: 5px; height: 5px; background: var(--accent); }
@media (min-width: 768px) { .company-table > div { grid-template-columns: 200px 1fr; padding: 28px 12px; } .company-table dt { font-size: 14px; } }

/* FAQ */
.faq-page { padding: 24px 0 96px; }
.faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; cursor: pointer; list-style: none; padding: 22px 48px 22px 44px; font-weight: 700; line-height: 1.7; transition: color .25s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 4px; top: 18px; font-family: var(--en); font-size: 22px; color: var(--accent); }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--en); font-weight: 300; font-size: 20px; line-height: 30px; text-align: center; transition: transform .3s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item__a { position: relative; padding: 0 8px 26px 44px; }
.faq-item__a::before { content: "A"; position: absolute; left: 4px; top: -4px; font-family: var(--en); font-size: 22px; color: var(--ink-sub); }
.faq-item__a p { font-size: 14px; line-height: 2.1; color: var(--ink-sub); }
.faq-page__more { margin-top: 40px; text-align: center; font-size: 14px; }
@media (min-width: 768px) { .faq-page { padding: 48px 0 160px; } .faq-item summary { padding: 28px 64px 28px 56px; font-size: 17px; } .faq-item summary::before { top: 24px; font-size: 26px; } .faq-item__a { padding-left: 56px; } .faq-item__a p { font-size: 15px; } }

/* お問い合わせフォーム */
.contact-page { padding: 24px 0 96px; }
.contact-page__intro { text-align: center; }
.form { max-width: 760px; margin: 40px auto 0; padding: 32px 22px; background: var(--bg-soft); }
.form__row { margin-bottom: 24px; }
.form__fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.form__label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.form__req, .form__opt { font-size: 11px; font-weight: 700; padding: 0 8px; line-height: 1.8; }
.form__req { background: var(--accent); color: #fff; }
.form__opt { background: #fff; color: var(--ink-sub); border: 1px solid var(--line); }
.form__input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.form__input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form__textarea { resize: vertical; min-height: 180px; line-height: 1.8; }
.form__checks { display: flex; flex-wrap: wrap; gap: 8px; }
.form__checks label { cursor: pointer; }
.form__checks input { position: absolute; opacity: 0; pointer-events: none; }
.form__checks span { display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.form__checks input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.form__checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__agree { margin-top: 8px; text-align: center; font-size: 14px; }
.form__agree label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form__agree input { width: 20px; height: 20px; accent-color: var(--accent); }
.form__submit { margin-top: 28px; text-align: center; }
.btn-submit { display: inline-block; min-width: 260px; padding: 20px 52px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .25s, transform .25s; }
.btn-submit:hover { background: var(--accent-dark); transform: translateY(-2px); }
@media (min-width: 768px) { .contact-page { padding: 48px 0 160px; } .form { padding: 56px 64px; } }
.thanks { max-width: 760px; margin: 0 auto; padding: 40px 0; text-align: center; }
.thanks__back { margin-top: 40px; }

/* 規約などの文章ページ */
.doc-page { padding: 24px 0 96px; }
@media (min-width: 768px) { .doc-page { padding: 48px 0 160px; } }

/* 今いるページのメニュー */
.gnav a[aria-current="page"] .ja { color: var(--accent); }
@media (min-width: 900px) { .flow-list li { padding: 26px 20px; } .flow-list h3 { font-size: 16px; letter-spacing: .02em; white-space: nowrap; } }
.faq-item summary::after { font-family: var(--ja); font-weight: 400; font-size: 18px; }

/* メニューを開いたとき：ヘッダーのぼかし（backdrop-filter）があると、全画面メニューがヘッダーの高さに閉じ込められるので切る */
body.menu-open .header--solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

/* ブログ記事：旧サイトから移した記事で使う要素（表・小見出し・引用・図） */
.post__body h4 { margin-top: 32px; font-size: 16px; line-height: 1.6; color: var(--accent); }
.post__body hr { margin: 48px 0 0; border: 0; border-top: 1px solid var(--line); }
.post__body blockquote { margin: 1.6em 0 0; padding: 18px 22px; border-left: 3px solid var(--line); background: var(--bg-soft); color: var(--ink-sub); }
.post__body blockquote p:first-child { margin-top: 0; }
.post__body .post__fig { margin: 2em 0 0; }
.post__body .post__fig img { width: 100%; height: auto; }
.post__body .table-wrap { margin-top: 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post__body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.post__body th, .post__body td { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.post__body th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
.post__body td strong { background: none; padding: 0; }
.post-card__thumb--noimg { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.post-card__thumb--noimg img { width: 56%; height: auto; object-fit: contain; }
.post-card a:hover .post-card__thumb--noimg img { transform: none; }

/* ブログ一覧のページ送り（reviverate の漫画一覧と同じ） */
.pager ol { display: flex; justify-content: center; gap: 10px; margin-top: 56px; position: relative; z-index: 1; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); font-family: var(--en); font-weight: 700; background: #fff; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager span[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 404 */
.notfound { padding: 160px 0 120px; text-align: center; }
.notfound .notfound__code { font-family: var(--en); font-size: 72px; font-weight: 300; color: var(--accent); line-height: 1; }
.notfound h1 { margin-top: 16px; font-size: 20px; letter-spacing: .06em; }
.notfound p:not(.notfound__code) { margin-top: 20px; line-height: 2; color: var(--ink-sub); }
@media (min-width: 768px) { .notfound { padding: 220px 0 160px; } .notfound .notfound__code { font-size: 112px; } }
.btns-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; position: relative; z-index: 1; }

/* ---- YouTube：サムネを押したらその場で再生（js/main.js）。事例カードの代表作 ---- */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #0f1012; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.yt:hover img { transform: scale(1.04); opacity: .9; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 60px; height: 42px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(15,16,18,.78); transition: background .25s; }
.yt__play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-36%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt__play { background: var(--accent); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 説明文の行数がカードごとに違っても、動画の位置が横でそろうように下に寄せる */
.works-card { display: flex; flex-direction: column; }
.works-card .yt-one { margin-top: auto; padding-top: 20px; }
.yt-one__title { margin-top: 8px; min-height: calc(13px * 1.7 * 2); font-size: 13px; line-height: 1.7; color: var(--ink-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-one__title::before { content: "代表作｜"; color: var(--accent); font-weight: 700; }
