/* dotbinary サイト共通スタイル（トップ・プロフィール）
   色はガイド・ブログと同じモノクロ基調。リンクだけ青。 */

:root {
  --ink: #111111;
  --muted: #555555;
  --faint: #888888;
  --surface: #F5F5F5;
  --line: #E5E5E5;
  --link: #1D4ED8;
  --link-bg: #DBEAFE;
  --err: #DC2626;
  --wrap: 1040px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: #FFFFFF;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover, a:focus-visible { background: var(--link-bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a[target="_blank"]:not(.btn)::after {
  content: "";
  content: "" / "（新しいタブで開きます）";
  display: inline-block; width: .8em; height: .8em; margin-left: .2em; vertical-align: -.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.g-toc a[target="_blank"] { position: relative; padding-right: 1.8rem; }
.g-toc a[target="_blank"]::after { position: absolute; right: .5rem; top: .95rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > *, .col { max-width: 760px; }

/* ── 背景の点と線（白い区画だけに見える。色の付いた区画は上から覆う） ── */
#net { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: -1; }

/* ── スクロールで現れる動き ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print { .reveal { opacity: 1; transform: none; } #net { display: none; } }

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo:hover, .logo:focus-visible { background: none; }
.gnav { display: none; }
.gnav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 24px; }
.gnav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.gnav a:hover, .gnav a:focus-visible { color: var(--ink); background: none; }
.gnav a[aria-current="page"] { color: var(--ink); }
.gnav a.btn, .gnav a.btn:hover, .gnav a.btn:focus-visible { color: #fff; }
.gnav a.btn:hover, .gnav a.btn:focus-visible { background: #333; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: #fff; }
.mnav[hidden] { display: none; }
.mnav ul { list-style: none; padding: 8px var(--gutter) 20px; }
.mnav li a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav li:last-child a { border: 0; margin-top: 12px; }
.mnav li a.btn { display: flex; color: #fff; border: 1px solid var(--ink); }
@media (min-width: 900px) {
  .gnav { display: block; }
  .menu-btn, .mnav { display: none !important; }
}

/* ── ボタン ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 24px;
  border-radius: 999px; border: 1px solid var(--ink);
  font-size: .95rem; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center;
  color: var(--ink); background: #fff; cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--surface); }
.btn-main { color: #fff; background: var(--ink); }
.btn-main:hover, .btn-main:focus-visible { background: #333; }
.gnav .btn { min-height: 40px; padding: 6px 18px; font-size: .85rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .btns .btn { width: 100%; } }

/* ── 区画 ── */
.sec { padding: 80px 0; }
.sec-gray { background: var(--surface); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-dark .text { color: rgba(255,255,255,.72); }
.sec-dark a:not(.btn) { color: #fff; }
@media (min-width: 768px) { .sec { padding: 128px 0; } }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem; letter-spacing: .2em; color: var(--faint);
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.sec-dark .eyebrow { color: rgba(255,255,255,.5); }
.sec h2 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); line-height: 1.4; letter-spacing: -.01em; font-weight: 700; margin-bottom: 32px; }
@media (min-width: 768px) { .sec h2 { margin-bottom: 48px; } }
.sec h3 { font-size: 1.1rem; line-height: 1.6; font-weight: 700; margin: 36px 0 12px; }
.sec p + p { margin-top: 1em; }
.text { color: var(--muted); }
.list { padding-left: 1.4em; color: var(--muted); }
.list li + li { margin-top: .4em; }
.list b, .text b { color: var(--ink); }
.small { font-size: .875rem; }
.nb { display: inline-block; }

/* ── 最初の画面 ── */
.hero { padding: 72px 0 80px; }
@media (min-width: 768px) {
  .hero { min-height: calc(100svh - 60px); display: flex; align-items: center; padding: 96px 0; }
  .hero .wrap { width: 100%; }
}
.hero h1 { font-size: clamp(1.9rem, .8rem + 5.2vw, 4.4rem); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.hero .lead { margin-top: 24px; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 500; }
.hero .text { margin-top: 16px; max-width: 40em; }
.prices { list-style: none; padding: 0; margin-top: 28px; border-top: 1px solid var(--line); max-width: 40em; }
.prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prices .name { font-weight: 500; }
.prices .name small { display: block; color: var(--faint); font-size: .8rem; font-weight: 400; }
.prices .yen { font-weight: 700; white-space: nowrap; }
.prices .yen small { color: var(--faint); font-size: .8rem; font-weight: 400; margin-left: 4px; }

/* ── 不安の一覧 ── */
.worries { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .worries { grid-template-columns: 1fr 1fr; } }
.worries li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-weight: 500; }
.sec-dark .worries li { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); color: #fff; padding: 20px 24px; }

/* ── できること ── */
.cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; background: #fff; }
.card .kicker { font-size: .85rem; color: var(--faint); font-weight: 500; }
.card h3 { margin: 4px 0 16px; font-size: 1.25rem; }
.card .text { font-size: .95rem; }
.card .price { margin-top: auto; padding-top: 20px; font-size: 1.15rem; font-weight: 700; }
.card .price small { display: block; font-size: .8rem; font-weight: 400; color: var(--faint); }
.card .btn { margin-top: 16px; align-self: flex-start; }
@media (max-width: 479px) { .card .btn { align-self: stretch; } }
.card .cond { margin-top: 20px; padding: 16px; background: var(--surface); border-radius: 10px; font-size: .85rem; color: var(--muted); }
.card .cond p:first-child { color: var(--ink); font-weight: 700; }
.card .cond ul { padding-left: 1.2em; margin-top: 6px; }
.card .cond ul + p { margin-top: 10px; }

/* ── 進め方 ── */
.box { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; }
.box + .box { margin-top: 16px; }
.flow { list-style: none; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 20px 48px; color: var(--muted); }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: .9rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.flow li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.flow b { display: block; color: var(--ink); }

.box-title { font-weight: 700; margin-bottom: 4px; }
.box-title + .text { margin-top: 0; }

/* ── 項目名と説明（項目名のあとで改行する） ── */
.defs { border-top: 1px solid var(--line); }
.defs > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 700; }
.defs dt small, .info th small { display: block; font-size: .8rem; font-weight: 400; color: var(--faint); }
.defs dd { margin-top: 4px; color: var(--muted); }
.info-wide th { width: 1%; white-space: nowrap; }
@media (max-width: 599px) {
  .info.info-wide th, .info.info-wide td { display: block; width: auto; white-space: normal; }
  .info.info-wide th { border-bottom: 0; padding-bottom: 4px; }
  .info.info-wide td { padding-top: 0; }
}
.sec-dark .list { color: rgba(255,255,255,.72); }
.person .list b { display: block; }

/* ── 下層ページの最初の画面 ── */
.hero-sub h1 { font-size: clamp(1.7rem, .9rem + 3.6vw, 3.4rem); }
@media (min-width: 768px) { .hero.hero-sub { min-height: 0; padding: 112px 0 104px; } }

/* ── 担当者 ── */
.person { display: grid; gap: 24px; align-items: start; }
@media (min-width: 768px) { .person { grid-template-columns: 160px 1fr; gap: 40px; } }
.avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
@media (min-width: 768px) { .avatar { width: 160px; height: 160px; } }
.person .name { font-size: 1.25rem; font-weight: 700; }
.person .role { margin-left: .75em; font-size: .9rem; font-weight: 400; color: var(--muted); }
.person .text { margin-top: 12px; }
.person .list { margin-top: 16px; }

/* ── よくある質問 ── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--faint); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ── 相談フォーム ── */
.form-card { margin-top: 32px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 8px 40px rgba(0,0,0,.06); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.field + .field { margin-top: 20px; }
.field label, .field .label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.req, .opt { font-size: .75rem; font-weight: 400; margin-left: 6px; color: var(--faint); }
.req { color: var(--err); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid #CCCCCC; border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
/* iPhone などは select の高さに行の高さを使わないため、高さをそろえて決め、見た目の矢印を描き直す */
.field input[type="text"], .field input[type="email"], .field select { height: 3.5rem; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--err); }
.err { margin-top: 6px; font-size: .85rem; color: var(--err); }
.err:empty { display: none; }
.field label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn-main { width: 100%; margin-top: 28px; }
.form-card .btn-main[disabled] { opacity: .5; cursor: wait; }
.send-err { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: #FEF2F2; color: var(--err); font-size: .9rem; }
.form-note { margin-top: 16px; font-size: .875rem; color: var(--muted); text-align: center; }
.success { text-align: center; }
.success h3 { margin-top: 0; }

/* ── プロフィールページ ── */
.page-label { font-size: 1rem; font-weight: 500; color: var(--faint); margin-bottom: 24px; }
.sec-dark .page-label { color: rgba(255,255,255,.55); }
.big-name { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; line-height: 1.3; }
.sec.page-head { padding: 64px 0 72px; }
@media (min-width: 768px) { .sec.page-head { padding: 96px 0 104px; } }
.page-dates { margin-top: 20px; font-size: .9rem; line-height: 1.8; color: var(--muted); width: fit-content; margin-left: auto; text-align: left; }
.sec-dark .page-dates { color: rgba(255,255,255,.72); }
.profile-top { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .profile-top { grid-template-columns: 200px 1fr; gap: 40px; } }
.profile-top .avatar { width: 160px; height: 160px; }
@media (min-width: 768px) { .profile-top .avatar { width: 200px; height: 200px; } }
.steps { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: var(--muted); background: #fff; }
.steps b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }
.career { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.career li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.career b { display: block; color: var(--ink); margin-bottom: 4px; }
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info tr:first-child th, .info tr:first-child td { border-top: 1px solid var(--line); }
.info th { width: 7em; background: var(--surface); font-weight: 700; font-size: .9rem; }
.info td { color: var(--muted); }
/* スマホでは項目名を上の帯にし、中身を横幅いっぱいに使う */
@media (max-width: 599px) {
  .info th, .info td { display: block; width: auto; }
  .info th { border-bottom: 0; padding: 10px 12px; }
  .info td { padding: 12px 12px 20px; }
  .info tr:first-child td { border-top: 0; }
}

/* ── 相談への導線（下層ページ） ── */
.cta { text-align: center; }
.cta .btns { justify-content: center; }

/* ── フッター ── */
.site-footer { background: var(--ink); color: #BBBBBB; padding: 48px 0 32px; font-size: .9rem; }
.site-footer .logo { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #DDDDDD; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; background: none; text-decoration: underline; }
.site-footer small { display: block; margin-top: 32px; color: #888888; }

/* ── プライバシーポリシーのような長い文のページ（見出しを小さく） ── */
.doc h2 { font-size: 1.2rem; line-height: 1.6; letter-spacing: 0; margin: 56px 0 16px; }
.doc h2:first-child { margin-top: 0; }
