:root {
  --ink: #16242a;
  --ink-2: #44555c;
  --muted: #6b7b82;
  --line: #dfe6e8;
  --bg: #ffffff;
  --tint: #f3f7f6;
  --brand: #0f3d3e;
  --brand-2: #1c6b66;
  --brand-soft: #e3f0ee;
  --accent: #f08a24;
  --accent-ink: #ffffff;
  --accent-hover: #d9761a;
  --ok: #1d7a4e;
  --ok-soft: #e4f4ec;
  --warn: #9a6200;
  --warn-soft: #fdf1dc;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 36, 42, 0.06), 0 8px 24px rgba(16, 36, 42, 0.06);
  --font: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(240, 138, 36, .28); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- ヘッダー・フッター ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 19px; min-width: 0; }
.brand .logo-mark { color: var(--brand); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 21px; letter-spacing: .04em; }
.brand-en { font-size: 10px; font-weight: 700; letter-spacing: .32em; color: var(--brand-2); margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--brand-2); }
@media (max-width: 980px) {
  .nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}

.site-footer { background: var(--brand); color: #d6e5e3; padding: 48px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { color: #fff; font-weight: 900; font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { color: #fff; }
.footer-tagline { font-size: 14px; margin: 4px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: #d6e5e3; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 12px; margin-top: 32px; color: #9fbcb8; }

/* ---------- ヒーロー ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #d7ebe7 0%, transparent 60%), linear-gradient(180deg, #f6faf9 0%, #fff 100%); padding: 84px 0 76px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero-brand-mark { color: var(--brand); flex: none; }
.hero-brand-name { margin: 0; font-size: clamp(34px, 4.6vw, 48px); font-weight: 900; line-height: 1.05; letter-spacing: .06em; color: var(--brand); }
.hero-brand-en { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .42em; color: var(--accent-hover); }
.name-em { color: var(--brand-2); background: linear-gradient(transparent 64%, #fde3c8 64%); padding: 0 .08em; }
.hero-eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(26px, 4.3vw, 46px); font-weight: 900; letter-spacing: .01em; line-height: 1.3; margin-bottom: 24px; color: var(--brand); }
.hero-lead { color: var(--ink-2); font-size: 17px; margin-bottom: .6em; }
.hero-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { font-size: 13px; font-weight: 500; color: var(--brand); background: #fff; border: 1px solid #c9dcd9; border-radius: 999px; padding: 3px 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.highlights li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; display: flex; flex-direction: column; }
.highlights strong { font-size: 30px; font-weight: 900; color: var(--brand); line-height: 1.2; }
.highlights span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions .btn { flex: 1 1 200px; }
  .hero-actions .btn-lg { padding: 13px 20px; font-size: 16px; }
  /* スマホでは屋号を控えめにして、見出し（何屋か）とボタンが最初の画面に入るようにする */
  .hero-brand { gap: 12px; margin-bottom: 20px; }
  .hero-brand-mark { width: 44px; height: 44px; }
  .hero-brand-name { font-size: 28px; }
  .hero-lead { font-size: 16px; }
  .highlights { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .highlights li { padding: 16px 18px; }
  .highlights strong { font-size: 24px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0 88px; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow { color: var(--brand-2); font-weight: 700; font-size: 13px; letter-spacing: .18em; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; }
.section-lead { color: var(--ink-2); max-width: 640px; margin: 16px auto 0; }
.note { color: var(--muted); font-size: 13px; margin-top: 20px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.pains { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.pains li { background: #fff; border-radius: 12px; padding: 16px 20px 16px 52px; position: relative; border: 1px solid var(--line); }
.pains li::before { content: ''; position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; border-radius: 5px; background: var(--brand-soft); border: 2px solid var(--brand-2); }
.pains li::after { content: ''; position: absolute; left: 26px; top: 25px; width: 6px; height: 10px; border: solid var(--brand-2); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pains-answer { text-align: center; font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; margin: 40px 0 0; }
.pains-answer strong { color: var(--accent-hover); background: linear-gradient(transparent 62%, #fde3c8 62%); }

.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.strengths li { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.strength-num { display: block; font-weight: 900; font-size: 32px; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.strengths h3 { font-size: 19px; margin-bottom: 12px; color: var(--brand); }
.strengths p { color: var(--ink-2); font-size: 15px; margin: 0; }

.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { font-size: 20px; color: var(--brand); margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.service-meta { display: flex; gap: 32px; margin: auto 0 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.service-meta dt { font-size: 12px; color: var(--muted); }
.service-meta dd { margin: 0; font-weight: 900; font-size: 20px; color: var(--ink); }

.industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.industry { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.industry h3 { font-size: 17px; margin-bottom: 10px; color: var(--brand); }
.industry ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.industry li { font-size: 13px; background: var(--tint); color: var(--ink-2); border-radius: 999px; padding: 2px 10px; }

.work { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.work-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.badge { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.badge-case { background: var(--brand); color: #fff; }
.badge-example { background: var(--brand-soft); color: var(--brand); }
.work-industry { font-size: 13px; color: var(--muted); }
.work h3 { font-size: 18px; color: var(--ink); margin-bottom: 14px; }
.work-body { margin: 0; display: grid; gap: 12px; }
.work-body dt { font-size: 12px; font-weight: 700; color: var(--brand-2); }
.work-body dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.work-result { background: var(--tint); border-radius: 10px; padding: 10px 14px; }
.work-meta { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }

.domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.domain { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; border-left: 4px solid var(--brand-2); }
.domain h3 { font-size: 17px; margin-bottom: 8px; color: var(--brand); }
.domain p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* 開発の進め方（段階ごとに、決めること・お渡しするもの・目安） */
.steps-detail { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 920px; margin: 0 auto; }
.steps-detail > li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.step-num { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--accent-hover); }
.step-head h3 { font-size: 19px; color: var(--brand); }
.step-duration { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand-2); background: var(--brand-soft); border-radius: 999px; padding: 2px 12px; }
.step-body { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.step-detail { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; padding-top: 14px; border-top: 1px dashed var(--line); }
.step-detail dt { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.step-detail dd { margin: 0; }
.step-detail ul { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--ink); }
.step-detail li { margin: 0; }
@media (max-width: 640px) { .steps-detail > li { padding: 20px; } .step-duration { margin-left: 0; } }

/* 安心材料 */
.policy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.policy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.policy-card h3 { font-size: 17px; color: var(--brand); margin-bottom: 8px; padding-left: 14px; border-left: 3px solid var(--accent); line-height: 1.3; }
.policy-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.policy-cards-plain .policy-card h3 { border-left-color: var(--muted); color: var(--ink); }
.policy-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.policy-table thead th { background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; text-align: left; padding: 10px 18px; }
.policy-table tbody th { text-align: left; vertical-align: top; width: 34%; padding: 14px 18px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-top: 1px solid #fff; }
.policy-table tbody td { vertical-align: top; padding: 14px 18px; color: var(--ink-2); border-top: 1px solid var(--line); line-height: 1.7; }
@media (max-width: 640px) {
  .policy-table thead { display: none; }
  .policy-table tbody th, .policy-table tbody td { display: block; width: auto; }
  .policy-table tbody td { border-top: 0; padding-top: 10px; }
}

/* 会社概要 */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.company-grid-single { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.company { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.company > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.company > div:first-child { border-top: 0; }
.company dt { font-weight: 700; color: var(--brand); }
.company dd { margin: 0; color: var(--ink-2); }
.company-list { margin: 0; padding-left: 1.2em; }
.tech { background: var(--tint); border-radius: var(--radius); padding: 22px 24px; }
.tech h3 { font-size: 16px; color: var(--brand); margin-bottom: 10px; }
.tech ul { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .company > div { grid-template-columns: 1fr; gap: 2px; } }

.profile { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 36px; max-width: 880px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 48px; font-weight: 900; }
.profile-role { color: var(--brand-2); font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.profile-name { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.profile p { color: var(--ink-2); }
.profile-career { margin: 16px 0 0; padding-left: 1.2em; color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; padding: 28px; gap: 20px; } .profile-avatar { width: 80px; height: 80px; font-size: 32px; } }

.faqs { display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 48px 18px 22px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: var(--accent); font-weight: 900; margin-right: 10px; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand-2); }
.faq[open] summary::after { content: '−'; }
.faq p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

.brand-story { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.brand-hero { text-align: center; margin-bottom: 40px; }
.brand-hero-mark { color: var(--brand); }
.brand-hero-name { font-size: clamp(48px, 9vw, 88px); font-weight: 900; letter-spacing: .1em; color: var(--brand); line-height: 1.1; margin: 8px 0 0; }
.brand-hero-en { font-size: 14px; font-weight: 700; letter-spacing: .6em; color: var(--accent-hover); margin: 8px 0 0; padding-left: .6em; }
.brand-parts { display: flex; justify-content: center; align-items: stretch; gap: 20px; max-width: 820px; margin: 0 auto; }
.brand-part { flex: 1 1 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; text-align: center; }
.brand-part-kana { font-size: 34px; font-weight: 900; color: var(--brand); margin: 0; letter-spacing: .08em; }
.brand-part-kanji { display: inline-block; font-size: 15px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 0 14px; margin: 8px 0 12px; }
.brand-part-meaning { color: var(--ink-2); font-size: 15px; margin: 0; }
.brand-plus { align-self: center; font-size: 28px; font-weight: 900; color: var(--accent); }
.brand-body { max-width: 720px; margin: 40px auto 0; text-align: center; color: var(--ink-2); font-size: 17px; }
@media (max-width: 640px) {
  .brand-parts { flex-direction: column; gap: 8px; }
  .brand-body { text-align: left; }
}

.cta { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 80px 0; text-align: center; }
.cta-inner { max-width: 760px; }
.cta-mark { color: #fff; margin-bottom: 12px; }
.cta .name-em { color: #fff; background: linear-gradient(transparent 62%, rgba(240, 138, 36, .55) 62%); }
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; margin-bottom: 16px; }
.cta p { color: #d6e9e6; }
.cta .btn { margin-top: 12px; }
.cta-note { font-size: 13px; margin-top: 14px; }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--tint); padding: 64px 0 40px; }
.page-head .name-em { color: var(--brand); }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; color: var(--brand); margin-bottom: 16px; }
.page-head p { color: var(--ink-2); }
.page-head-note { font-weight: 700; color: var(--brand-2) !important; }
.page-head-center { text-align: center; padding: 96px 0; }
.page-head-center .btn { margin-top: 16px; }
.prose h2 { font-size: 18px; margin: 32px 0 8px; color: var(--brand); }
.prose h3 { font-size: 16px; margin: 24px 0 6px; color: var(--brand); }
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { color: var(--ink-2); margin: 0 0 1em; padding-left: 1.5em; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; color: var(--ink-2); }
.prose th { background: var(--tint); color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- 記事 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--brand-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-lead { margin: 0 0 12px; max-width: none; }
.article-meta { font-size: 13px; color: var(--muted); margin: 0; }
.article-body > :first-child { margin-top: 0; }
.article-list { display: grid; gap: 16px; margin-bottom: 28px; }
.article-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.article-card h2 { font-size: 18px; color: var(--brand); margin-bottom: 8px; }
.article-card p { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.article-card-more { display: inline-block; color: var(--brand-2); font-weight: 700; font-size: 14px; margin-top: 6px; }
.article-related { background: var(--tint); }
.article-related h2 { font-size: 18px; color: var(--brand); margin-bottom: 14px; }
.article-tool-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; color: inherit; text-decoration: none; margin-bottom: 20px; }
.article-tool-card strong { display: block; font-size: 18px; color: var(--brand); margin-bottom: 6px; }
.article-tool-card p { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.article-tool-card .eyebrow { margin-bottom: 4px; }
.article-contact { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field label, .field .label { font-weight: 700; font-size: 14px; }
.req { display: inline-block; margin-left: 8px; font-size: 11px; background: var(--danger-soft); color: var(--danger); border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #c9d4d7; border-radius: 10px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(28, 107, 102, .18); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-2); }
.help { font-size: 13px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; font-size: 15px; }
.alert p { margin: 0; font-weight: 700; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.alert-info { background: var(--warn-soft); color: var(--warn); }

/* ---------- 管理画面 ---------- */
body.admin { background: #f4f6f7; display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; font-size: 15px; line-height: 1.7; }
.admin-side { background: var(--brand); color: #cfe0de; padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { color: #fff; text-decoration: none; font-weight: 900; font-size: 17px; padding: 0 10px 20px; display: block; }
.admin-brand small { display: block; font-weight: 500; font-size: 12px; color: #9fbcb8; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; color: #cfe0de; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a.active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; }
.admin-nav-label { font-size: 11px; letter-spacing: .12em; color: #88aaa6; margin: 18px 12px 4px; }
.nav-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 8px; }
.admin-user { margin-top: auto; padding: 16px 10px 0; font-size: 12px; color: #88aaa6; word-break: break-all; }
.admin-main { padding: 32px 40px 80px; max-width: 1200px; width: 100%; }
.admin-title { font-size: 24px; font-weight: 900; margin-bottom: 20px; }
@media (max-width: 860px) {
  body.admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 16px; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-nav-label { display: none; }
  .admin-user { display: none; }
  .admin-main { padding: 24px 16px 64px; }
}
body.admin-center { display: grid; place-items: center; grid-template-columns: 1fr; padding: 16px; }
.panel.narrow { max-width: 520px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 20px; }
.panel h2 { font-size: 16px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .muted { margin: 0; }
.segmented { display: inline-flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented a { text-decoration: none; color: var(--ink-2); padding: 5px 12px; border-radius: 7px; font-size: 13px; }
.segmented a.active { background: var(--brand); color: #fff; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: inherit; text-decoration: none; }
.kpi-link:hover { border-color: var(--brand-2); }
.kpi-label { font-size: 13px; color: var(--muted); margin: 0; }
.kpi-value { font-size: 32px; font-weight: 900; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--muted); margin: 0; }
.up { color: var(--ok); font-weight: 700; }
.down { color: var(--danger); font-weight: 700; }

.chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: #e8edee; stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-bar { fill: #9cc9c3; }
.chart-bar:hover { fill: var(--brand-2); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart-dot { fill: var(--accent); }
.legend { font-size: 12px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.legend-bar { display: inline-block; width: 12px; height: 12px; background: #9cc9c3; border-radius: 3px; }
.legend-line { display: inline-block; width: 16px; height: 2px; background: var(--accent); margin-left: 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; }
.grid-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid-detail { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; font-size: 14px; }
.rank-bar { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); border-radius: 6px; z-index: 0; }
.rank-label, .rank-value { position: relative; z-index: 1; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { font-weight: 700; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid #eef2f3; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; width: 72px; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.status { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.status-new { background: var(--warn-soft); color: var(--warn); }
.status-in_progress { background: #e5eefc; color: #1f4fa3; }
.status-done { background: var(--ok-soft); color: var(--ok); }
.status-spam { background: #eceff0; color: var(--muted); }

.detail { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.detail dt { color: var(--muted); font-size: 13px; }
.detail dd { margin: 0; word-break: break-word; }
.pre { white-space: pre-wrap; }
@media (max-width: 640px) { .detail { grid-template-columns: 1fr; gap: 2px; } .detail dd { margin-bottom: 10px; } }

.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, #f4f6f7 30%); padding: 20px 0 12px; }
.danger-zone { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

.footer-social { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 12px; }
.footer-social a:hover { background: rgba(255, 255, 255, .1); }

/* 開発会社向けページ（/partner） */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.partner-card { border: 1px solid #e3e6ea; border-radius: 12px; padding: 16px; background: #fff; }
.partner-card h3 { margin: 0 0 6px; font-size: 17px; }
.partner-card p { margin: 0; font-size: 14px; color: #4a5560; }
.partner-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.partner-table th, .partner-table td { border-bottom: 1px solid #e3e6ea; padding: 10px 8px; text-align: left; vertical-align: top; }
.partner-table th { width: 8em; white-space: nowrap; color: #0f3d3e; }
.partner-note { margin-top: 12px; color: #4a5560; }
.partner-teaser { border: 1px solid #e3e6ea; border-radius: 14px; padding: 22px; background: #fff; }
.tool-list { padding-left: 1.2em; }
.tool-list li { margin: 4px 0; }
.tool-cta { background: #f3f7f7; }
