/* Crow's Nest 会社サイト。方向は Codex（社外取締役）の「静かな業務記録」。
   色の役割は固定: 背景・本文・リンクと主ボタン・最新の記録の印・補助の文字・罫線 */
:root {
  --bg: #EEF1F2;
  --ink: #15171C;
  --blue: #2D4A6B;
  --lamp: #E8B828;
  --sub: #6A7480;
  --rule: #CDD4D9;
  --paper: #F7F9FA;
  --max: 1120px;
  --text: 680px;
  --gutter: 24px;
  --gap: 96px;
  --radius: 4px;
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --gap: 56px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 0;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* 上の帯 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.logo small { font-weight: 400; color: var(--sub); font-size: 12px; margin-left: 8px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 700; font-size: 15px; line-height: 1.5;
  border: 1px solid var(--blue); cursor: pointer; font-family: inherit;
}
.btn:hover { background: #233b56; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--paper); }
.top .btn { padding: 6px 14px; font-size: 14px; }
@media (max-width: 860px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}

/* 節 */
section { padding: var(--gap) 0 0; }
section:last-of-type { padding-bottom: var(--gap); }
.label { font-size: 13px; color: var(--sub); margin: 0 0 8px; letter-spacing: .04em; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 700; }
h1 { font-size: clamp(26px, 4.2vw, 40px); letter-spacing: .01em; max-width: 22em; }
h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.lead { max-width: var(--text); color: var(--ink); }
.note { font-size: 14px; color: var(--sub); max-width: var(--text); }

/* 冒頭 */
.hero { padding-top: 72px; }
.hero .lead { margin-top: 24px; font-size: 17px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* 支援の内容: 罫線で区切った行。左に名前、右に中身 */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 260px 1fr; gap: 8px 40px;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.row h3 { padding-top: 2px; }
.row .body { max-width: var(--text); }
.row ul { margin: 0 0 12px; padding-left: 1.2em; }
.row li { margin-bottom: 4px; }
.row .price { font-size: 14px; color: var(--sub); margin: 0; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; } }

.fixed { margin-top: 40px; }
.fixed table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fixed th, .fixed td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fixed th { font-weight: 700; width: 34%; }
.fixed td.price { white-space: nowrap; width: 9.5em; }
@media (max-width: 720px) {
  .fixed tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .fixed th, .fixed td { border: 0; padding: 0; width: auto; }
  .fixed td.what { grid-column: 1 / -1; color: var(--sub); font-size: 14px; }
}

/* 自社の運用: いま回している仕事の表 */
.ops { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 16px; }
.ops th, .ops td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ops thead th { font-size: 13px; color: var(--sub); font-weight: 400; border-bottom: 1px solid var(--ink); }
.ops td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) {
  .ops thead { display: none; }
  .ops tr { display: block; border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .ops td { display: block; border: 0; padding: 0; }
  .ops td:nth-child(2) { color: var(--blue); }
  .ops td:nth-child(3) { color: var(--sub); font-size: 14px; }
}

/* 運用日誌（このサイトで覚えてもらう所）: 縦の罫に日付・やったこと・失敗・直し */
.journal { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid var(--ink); }
.journal > li { position: relative; padding: 0 0 36px 28px; }
.journal > li::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink);
}
.journal > li.latest::before { background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lamp) 30%, transparent); }
.journal .when { font-size: 13px; color: var(--sub); margin: 0 0 2px; }
.journal .when b { color: var(--ink); font-weight: 700; margin-right: 8px; }
.journal h3 { font-size: 17px; margin-bottom: 10px; }
.journal dl { display: grid; grid-template-columns: 4em 1fr; gap: 4px 12px; margin: 0; max-width: var(--text); font-size: 15px; }
.journal dt { color: var(--sub); }
.journal dd { margin: 0; }
.journal .src { font-size: 13px; margin-top: 8px; }

/* 毎日の記録の全日（/log/） */
.days { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid var(--ink); }
.days li { position: relative; padding: 0 0 18px 28px; }
.days li::before {
  content: ""; position: absolute; left: -5px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}
.days li.latest::before { width: 12px; height: 12px; left: -7px; top: 8px; background: var(--lamp); }
.days .d { font-size: 13px; color: var(--sub); margin-right: 10px; }

/* 進め方: 順番に意味があるので番号を振る */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 220px 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-weight: 700; color: var(--blue); }
.steps b { font-weight: 700; }
@media (max-width: 720px) { .steps li { grid-template-columns: 32px 1fr; } .steps li span { grid-column: 2; } }

/* 担当 */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--ink); }
.team > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.team .who { font-size: 13px; color: var(--sub); margin: 0; }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }

/* 会社概要 */
.info { width: 100%; max-width: 820px; border-collapse: collapse; font-size: 15px; }
.info th, .info td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.info th { width: 9em; font-weight: 700; white-space: nowrap; }

/* つくったもの（/works/） */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 8px; }
.works.three { grid-template-columns: repeat(3, 1fr); }
.work img { border-radius: var(--radius); border: 1px solid var(--rule); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--paper); }
.work h3 { margin: 14px 0 4px; }
.work p { font-size: 15px; margin-bottom: 6px; }
.work .meta { font-size: 13px; color: var(--sub); }
.groups h2 { margin-top: 0; }
.groups > div + div { margin-top: var(--gap); }
@media (max-width: 860px) { .works.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .works, .works.three { grid-template-columns: 1fr; } }

/* 相談への誘い */
.ask { border-top: 1px solid var(--ink); padding-top: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ask p { margin: 0; max-width: 560px; }

/* フォーム */
form.contact { max-width: var(--text); margin-top: 8px; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.field .opt { font-weight: 400; color: var(--sub); font-size: 13px; margin-left: 6px; }
.field .req { font-weight: 400; color: var(--blue); font-size: 13px; margin-left: 6px; }
.field .hint { font-size: 13px; color: var(--sub); margin: 4px 0 0; }
fieldset.field { border: 0; margin: 0 0 22px; padding: 0; }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #AEB8C0; border-radius: var(--radius); padding: 10px 12px;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.choices label { font-weight: 400; display: flex; gap: 8px; align-items: baseline; margin: 0; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.agree { display: flex; gap: 8px; align-items: baseline; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-left: 3px solid var(--blue); background: var(--paper); padding: 12px 16px; margin: 0 0 24px; }
.msg.err { border-color: #A33A2E; }
.receipt { font-size: 22px; font-weight: 700; color: var(--blue); }

/* 文書（プライバシーポリシー） */
.doc { max-width: var(--text); }
.doc h2 { font-size: 18px; margin: 36px 0 8px; }
.doc ol, .doc ul { padding-left: 1.4em; }

/* 下の帯 */
.foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 13px; color: var(--sub); }
.foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--sub); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
input[type=radio], input[type=checkbox] { accent-color: var(--blue); }
.work img.image-top { object-position: top; }

/* 2026-10-24 Codex のレビューで直した所 */
.subnav { display: none; border-top: 1px solid var(--rule); }
.subnav .wrap { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
@media (max-width: 860px) { .subnav { display: block; } html { scroll-padding-top: 112px; } }

body.sub .hero + section { padding-top: 48px; }
body.sub .days { margin-top: 0; }
@media (max-width: 720px) {
  body.sub .hero + section { padding-top: 32px; }
  .journal dl { grid-template-columns: 3em minmax(0, 1fr); gap: 4px 8px; }
  .journal > li { padding-left: 20px; }
  .info th { width: 5em; }
  .info th, .info td { padding-right: 8px; }
  form.contact .btn { width: 100%; }
}
.choices label { min-height: 44px; align-items: center; }
form.contact .btn { min-height: 44px; }
.row .price, .work .meta, .ops td:nth-child(3) { font-size: 14px; color: var(--ink); }
.journal dt { white-space: nowrap; }
