/*
Theme Name: avimo 2026
Theme URI: https://www.avimo.jp/
Author: アビモ株式会社
Description: アビモ株式会社 コーポレートサイト用オリジナルテーマ（2026-09リニューアル）。DESIGN.md準拠：黒#19191A＋赤い点#DC2525、Noto Sans JP＋Poppins、未来感＞親しみ。お知らせは投稿タイプ news を引き継ぎ。
Version: 1.0.0
Text Domain: avimo
*/

/* ---------- 変数（DESIGN.md §3〜§5） ---------- */
:root {
  --ink: #19191A;
  --ink-2: #4A4A48;
  --ink-3: #6F6F6F;
  --red: #DC2525;
  --bg: #FAFAF8;
  --surface: #F1F1EE;
  --line: #E3E3E0;
  --line-2: #C9C9C4;
  --navy: #232156;
  --iron: #2B3A42;
  --slate: #4A5A6A;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Poppins', 'Noto Sans JP', sans-serif;
  --max: 1120px;
  --pad: 64px;
  --sec: 128px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (max-width: 900px) { :root { --pad: 20px; --sec: 72px; } }

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-jp); font-size: 16px; line-height: 1.9; font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p { margin: 0; }
.in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.kick { font-family: var(--font-en); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; }
.thin { font-weight: 300; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.sec { padding: var(--sec) 0; }
.sec--surface { background: var(--surface); }
.sec--ink { background: var(--ink); color: var(--bg); }
.sec--ink a { color: var(--bg); }
.sec--ink .kick { color: #A9A9A4; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .grid12 { display: flex; flex-direction: column; gap: 32px; } }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; background: var(--ink); color: var(--bg); transition: transform .3s var(--ease), background .3s; }
.btn:hover { color: var(--bg); background: #000; transform: translateY(-1px); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.sec--ink .btn--light, .sec--ink .btn--light:hover { color: var(--ink); } /* 黒帯内では .sec--ink a に負けないよう明示 */
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 12px 20px; font-size: 13px; }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--red { background: var(--red); color: #fff; } /* 主ボタンだけ赤（JINS型・2026-09-08） */
.btn--red:hover { background: #B81C1C; color: #fff; }
.sec--ink .btn--red, .sec--ink .btn--red:hover { color: #fff; }
.link-u { font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-u:hover { border-color: var(--red); }

/* ---------- ロゴ ---------- */
.logo { display: inline-flex; align-items: baseline; font-family: var(--font-en); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .i { position: relative; }
.logo .i::after { content: ''; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--red); }
/* 本物のロゴ画像（images/logo.png・メディアの avimoロゴ002 から透過化）。無い環境では上の文字ロゴにフォールバック */
.logo--img { display: inline-flex; align-items: center; }
.logo--img img { height: 28px; width: auto; display: block; }
.site-foot .logo--img img { height: 32px; }
@media (max-width: 900px) { .logo--img img { height: 22px; } }

/* ---------- ヘッダー（番兵式：スクロール後に固定） ---------- */
.sentinel { position: absolute; top: 0; height: 160px; width: 1px; pointer-events: none; }
.site-head { position: relative; z-index: 20; }
.site-head .in { max-width: none; display: flex; align-items: center; justify-content: space-between; height: 96px; padding: 0 96px; }
@media (max-width: 900px) { .site-head .in { height: 64px; padding: 0 var(--pad); } }
.site-head nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; font-size: 13px; }
.site-head nav a { color: var(--ink-2); }
.site-head nav a:hover { color: var(--red); }
.site-head--fixed { position: fixed; top: 0; left: 0; right: 0; background: rgba(250,250,248,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .4s var(--ease); z-index: 30; }
.site-head--fixed .in { height: 64px; }
body.head-fixed .site-head--fixed { transform: translateY(0); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .site-head nav { display: none; }
  .site-head nav.open { display: block; position: fixed; inset: 64px 0 0 0; background: var(--bg); padding: 32px var(--pad); z-index: 40; }
  .site-head nav.open ul { flex-direction: column; gap: 24px; font-size: 18px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; padding: 8px 0; }
}

/* ---------- 開幕：赤い点（初回のみ・JSが付与） ---------- */
.opening { position: fixed; inset: 0; background: var(--bg); z-index: 100; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: opening-out .5s var(--ease) 1.1s forwards; }
.opening .dot { width: 10px; height: 10px; animation: opening-dot .9s var(--ease) both; }
@keyframes opening-dot { 0% { transform: scale(0); opacity: 0; } 40% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes opening-out { to { opacity: 0; visibility: hidden; } }

/* ---------- FV：文字主体＋背景動画＋ベール ---------- */
.fv { position: relative; min-height: 100svh; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.fv__bg { position: absolute; inset: 0; overflow: hidden; }
.fv__bg iframe, .fv__bg video { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); pointer-events: none; border: 0; }
.fv__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 2026-09-08 社長指示：JINS型＝動画の上に白文字。ベールは黒を薄く（動画がしっかり見える）、赤は点・番号・主ボタンだけ */
.fv { color: var(--bg); }
.fv__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,25,26,.30) 0%, rgba(25,25,26,.48) 60%, rgba(25,25,26,.62) 100%); }
.fv__main { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.fv h1 { color: #fff; }
.fv__lead { color: #E6E6E2; }
.fv__one { color: #F1F1EE; }
.fv__one .later { color: #C9C9C4; }
.fv__side .kick { color: #C9C9C4; }
.fv__list a { color: #fff; border-top-color: rgba(250,250,248,.45); }
.fv__list a:last-of-type { border-bottom-color: rgba(250,250,248,.45); }
.fv__list a:hover { color: #fff; }
.fv__list a span:last-child { color: var(--red); }
.fv__list a:hover span:last-child { color: #fff; }
.fv__body { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding: 48px 96px 72px; }
.fv__main { grid-column: span 8; display: flex; flex-direction: column; gap: 40px; }
.fv__side { grid-column: span 4; display: flex; flex-direction: column; justify-content: flex-end; }
.fv__lead { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 300; color: var(--ink-2); }
.fv h1 { font-size: 72px; line-height: 1.25; letter-spacing: -0.02em; }
.fv__one { font-size: 20px; line-height: 1.8; font-weight: 300; max-width: 680px; }
.fv__one .later { color: #7A7A76; }
.fv__list { display: flex; flex-direction: column; }
.fv__list a { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid #A9A9A4; font-size: 18px; font-weight: 700; }
.fv__list a:last-of-type { border-bottom: 1px solid #A9A9A4; }
.fv__list a span:last-child { font-family: var(--font-en); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.fv__side .btn { margin-top: 32px; align-self: flex-start; }
@media (max-width: 900px) {
  .fv__body { display: flex; flex-direction: column; padding: 24px var(--pad) 48px; gap: 40px; }
  .fv h1 { font-size: 34px; } /* 「会社の困りごとを、」が1行に収まる幅（375px） */
  .fv__one { font-size: 16px; }
  .fv__bg iframe { display: none; } /* SPは静止フレーム */
}

/* ---------- お知らせ帯 ---------- */
.newsbar { border-bottom: 1px solid var(--line); }
.newsbar .in { max-width: none; padding: 20px 96px; display: flex; align-items: center; gap: 48px; font-size: 13px; }
.newsbar a { display: flex; gap: 20px; }
.newsbar time { color: var(--ink-3); font-family: var(--font-en); }
.newsbar .more { margin-left: auto; }
@media (max-width: 900px) { .newsbar .in { padding: 16px var(--pad); flex-wrap: wrap; gap: 12px 24px; } .newsbar .more { margin-left: 0; } }

/* ---------- 宣言：根本は問題解決（2026-09-08 社長指示） ---------- */
.why { padding: var(--sec) 0 0; }
.why .in { max-width: 920px; }
.why h2 { font-size: 40px; line-height: 1.5; letter-spacing: -0.01em; }
.why h2 em { font-style: normal; color: var(--red); }
.why p { margin-top: 32px; font-size: 18px; font-weight: 300; color: var(--ink-2); max-width: 720px; }
@media (max-width: 900px) { .why h2 { font-size: 26px; } .why p { font-size: 15px; } }

/* ---------- 私たちの仕事／3リソース ---------- */
.work .grid12 > .l { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; }
.work .grid12 > .r { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 20px; font-weight: 300; }
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0 0 var(--sec); }
@media (max-width: 900px) { .res { grid-template-columns: 1fr; } }
.res__card { display: flex; flex-direction: column; gap: 20px; padding: 40px 36px 44px; background: var(--surface); border-radius: 4px; border-top: 1px solid var(--navy); transition: transform .4s var(--ease); }
.res__card:hover { transform: translateY(-4px); color: var(--ink); }
.res__card--2 { border-top-color: var(--iron); }
.res__card--3 { border-top-color: var(--slate); }
.res__meta { display: flex; justify-content: space-between; }
.res__meta span:first-child { color: var(--red); } /* 番号は赤（JINS型） */
.res__pain { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.res__img { height: 180px; background: var(--line); border-radius: 2px; overflow: hidden; }
.res__img img { width: 100%; height: 100%; object-fit: cover; }
.res__title { font-size: 24px; font-weight: 700; }
.res__desc { font-size: 14px; color: var(--ink-2); }
.res__more { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }

/* ---------- 進め方 ---------- */
.how .grid12 > .l { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.how .grid12 > .r { grid-column: 6 / span 7; }
.how__mono { font-weight: 300; color: var(--ink-2); }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line-2); }
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step__n { font-family: var(--font-en); font-size: 13px; font-weight: 500; color: var(--red); }
.step__t { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step__d { font-size: 15px; color: var(--ink-2); }

/* ---------- 実績 ---------- */
.works__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.works__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.wk { display: flex; flex-direction: column; gap: 12px; }
.wk__img { aspect-ratio: 4 / 3; background: var(--line); border-radius: 2px; overflow: hidden; }
.wk__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.wk:hover .wk__img img { transform: scale(1.03); }
.wk__cat { font-family: var(--font-en); font-size: 12px; color: var(--ink-3); }
.wk__t { font-size: 15px; font-weight: 700; }

/* ---------- 代表 ---------- */
.msg .grid12 { align-items: center; }
.msg .grid12 > .l { grid-column: span 4; }
.msg .grid12 > .r { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 24px; }
.msg__img { width: 100%; aspect-ratio: 4 / 5; background: var(--line); border-radius: 4px; overflow: hidden; }
.msg__img img { width: 100%; height: 100%; object-fit: cover; }
.msg__sign { display: flex; align-items: center; gap: 24px; font-size: 14px; }

/* ---------- 相談 ---------- */
.contact .grid12 { align-items: center; }
.contact .grid12 > .l { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; }
.contact .grid12 > .r { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; }
.contact h2 { font-size: 40px; color: var(--bg); }
.contact .sub { color: #C9C9C4; font-weight: 300; font-size: 15px; }
.contact .tel { font-family: var(--font-en); font-size: 22px; letter-spacing: 0.02em; color: var(--bg); }
.contact .hours { color: #C9C9C4; font-size: 13px; }
@media (max-width: 900px) { .contact h2 { font-size: 28px; } }

/* ---------- フッター ---------- */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .in { max-width: none; padding: 64px 96px 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.site-foot .addr { font-size: 13px; color: var(--ink-2); margin-top: 20px; }
.site-foot .cols { display: flex; gap: 64px; font-size: 13px; }
.site-foot .cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-foot .copy { padding: 0 96px 32px; font-family: var(--font-en); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
@media (max-width: 900px) { .site-foot .in { flex-direction: column; padding: 48px var(--pad) 24px; } .site-foot .cols { flex-wrap: wrap; gap: 24px 40px; } .site-foot .copy { padding: 0 var(--pad) 24px; } }

/* ---------- 下層ページ／お知らせ ---------- */
.page-head { padding: 96px 0 48px; }
.page-head h1 { font-size: 40px; }
.page-head .kick { display: block; margin-bottom: 16px; }
.entry { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) var(--sec); }
.entry > * + * { margin-top: 1.4em; }
.entry h2 { font-size: 26px; margin-top: 2.4em; }
.entry h3 { font-size: 20px; margin-top: 2em; }
.entry img { border-radius: 4px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry a { border-bottom: 1px solid var(--ink); }
.entry .wp-block-buttons a, .entry .btn { border-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { width: 30%; font-weight: 700; color: var(--ink-2); }
.news-list { list-style: none; margin: 0; padding: 0 0 var(--sec); max-width: 760px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.news-list li { border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 24px; padding: 22px 0; font-size: 15px; }
.news-list time { color: var(--ink-3); font-family: var(--font-en); flex: 0 0 96px; }
.news-single .date { color: var(--ink-3); font-family: var(--font-en); font-size: 13px; }
.pagination { display: flex; gap: 12px; justify-content: center; padding: 0 0 var(--sec); font-family: var(--font-en); }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: var(--bg); }

/* ---------- 下層ページの部品（2026-09-09：サービス／私たちについて／会社概要／FAQ） ---------- */
.entry--wide { max-width: var(--max); }
.about-lead { font-size: 22px; line-height: 1.8; font-weight: 300; }
.about-sign { font-size: 14px; }
.about-motto { display: flex; align-items: center; gap: 24px; padding: 32px; background: var(--surface); border-radius: 4px; }
.about-motto b { font-family: var(--font-en); font-size: 28px; font-weight: 600; white-space: nowrap; }
.about-motto span { font-size: 15px; color: var(--ink-2); }
.about-motto .btn { flex: 0 0 auto; }
@media (max-width: 900px) { .about-lead { font-size: 18px; } .about-motto { flex-direction: column; align-items: flex-start; padding: 24px; } }
/* サービス：3つの手段 */
.svc { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.entry > .svc:first-child { border-top: 0; padding-top: 0; }
.svc__head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; margin-bottom: 40px; }
.svc__n { font-family: var(--font-en); font-size: 13px; font-weight: 500; color: var(--red); letter-spacing: .06em; }
.svc__pain { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.svc h2 { font-size: 32px; margin: 0 0 16px; }
.svc__lead { font-size: 17px; font-weight: 300; color: var(--ink-2); max-width: 720px; }
.svc__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.svc__text { grid-column: span 5; font-size: 15px; color: var(--ink-2); }
.svc__text p + p { margin-top: 1.2em; }
.svc__items { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.svc-item { padding: 20px 22px; background: var(--surface); border-radius: 4px; }
.svc-item b { display: block; font-size: 15px; margin-bottom: 6px; }
.svc-item span { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.svc-item a { border-bottom: 1px solid var(--line-2); }
.svc__foot { margin-top: 32px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) { .svc { padding: 48px 0; } .svc__head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; } .svc h2 { font-size: 24px; } .svc__body { display: flex; flex-direction: column; } .svc__items { grid-template-columns: 1fr; } }
/* 会社概要：表と沿革 */
.spec th { width: 28%; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--font-en); color: var(--ink-3); }
.timeline li.new time { color: var(--red); }
.timeline li.new time::after { content: 'NEW'; margin-left: 8px; font-size: 10px; letter-spacing: .1em; }
@media (max-width: 900px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.entry .map iframe { width: 100%; height: 360px; border: 0; border-radius: 4px; }
/* お問い合わせ：Contact Form 7（2026-09-09 Otterフォームから移行） */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; }
.contact-grid h2 { font-size: 22px; margin: 0 0 12px; }
.contact-grid__form > p, .contact-grid__side > p { font-size: 15px; color: var(--ink-2); margin-top: 0; }
.contact-grid__form > p { margin-bottom: 24px; }
.contact-grid__side > p + p { margin-top: 16px; }
.contact-tel a { font-family: var(--font-en); font-size: 26px; font-weight: 600; letter-spacing: .02em; border-bottom: 0; }
@media (max-width: 900px) { .contact-grid { display: flex; flex-direction: column; gap: 40px; } }
.entry--wide.entry--contact { max-width: var(--max); }
.cf7 label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.cf7 .req { display: inline-block; margin-left: 8px; padding: 1px 7px; font-size: 11px; font-weight: 500; color: #fff; background: var(--red); border-radius: 2px; vertical-align: middle; }
.cf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.cf7 input[type="text"], .cf7 input[type="email"], .cf7 input[type="tel"], .cf7 textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 4px; }
.cf7 input:focus, .cf7 textarea:focus { outline: none; border-color: var(--ink); }
.cf7 textarea { min-height: 180px; resize: vertical; }
.cf7__note { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.cf7 .wpcf7-submit { display: inline-flex; align-items: center; padding: 18px 40px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--red); cursor: pointer; transition: background .3s; }
.cf7 .wpcf7-submit:hover { background: #B81C1C; }
.cf7 .wpcf7-submit:disabled { opacity: .6; cursor: default; }
.cf7 .wpcf7-spinner { margin-left: 12px; }
.cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--red); }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 14px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--ink); background: var(--surface); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--red); }
.grecaptcha-badge { visibility: hidden; } /* バッジは隠し、フォーム下に文言で告知（Googleの規約） */
.cf7__legal { font-size: 11px; color: var(--ink-3); margin-top: 16px; }
.cf7__legal a { border-bottom: 1px solid var(--line-2); }
/* FAQ：開閉式 */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; gap: 16px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: var(--red); font-family: var(--font-en); font-weight: 600; flex: 0 0 16px; }
.faq details p { margin-top: 12px; padding-left: 32px; color: var(--ink-2); font-size: 15px; }
.faq h2 { font-size: 20px; margin-top: 2em; }

/* ---------- 制作事例（通常投稿・カテゴリー works 配下）一覧と記事 ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.cat-chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.cat-chips a:hover, .cat-chips a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.works-archive { padding: 0 0 var(--sec); }
.post-list { list-style: none; margin: 0 auto; padding: 0 var(--pad) var(--sec); max-width: 760px; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: flex; gap: 24px; padding: 22px 0; font-size: 15px; align-items: baseline; }
.post-list time { color: var(--ink-3); font-family: var(--font-en); flex: 0 0 96px; }
.post-list .c { font-size: 12px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.entry__meta { display: flex; gap: 16px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.entry__meta time { font-family: var(--font-en); }
.entry__meta a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.entry .wp-block-embed, .entry iframe { max-width: 100%; }
.entry .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry__foot { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- 動き（DESIGN.md §6・§6-B） ---------- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.on { opacity: 1; transform: none; }
.rv-line { overflow: hidden; }
.rv-line > span { display: block; transform: translateY(110%); transition: transform .6s var(--ease); }
.rv-line.on > span { transform: none; }
.rv-gray { color: #9A9A96; background: linear-gradient(90deg, var(--ink) 50%, #9A9A96 50%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position 2.6s ease-out .4s; }
.rv-gray.on { background-position: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-line > span, .rv-gray { opacity: 1 !important; transform: none !important; transition: none !important; background: none !important; -webkit-text-fill-color: inherit !important; color: inherit !important; }
  .opening { display: none; }
}
