@charset "UTF-8";

/* ===========================================================
   ポートフォリオ / ライト配色
   =========================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-sunken: #eef1f6;
  --ink: #14161a;
  --ink-2: #3b414c;
  --muted: #626a78;
  --line: #e2e6ee;
  --line-strong: #cfd6e2;
  --accent: #1550d8;
  --accent-dark: #0f3ca8;
  --accent-soft: #e8efff;
  --warm: #b8641c;
  --warm-soft: #fdf1e4;
  --ok: #10714b;
  --ok-soft: #e6f5ee;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .05), 0 2px 8px rgba(20, 22, 26, .04);
  --shadow-md: 0 2px 4px rgba(20, 22, 26, .05), 0 12px 32px rgba(20, 22, 26, .09);
  --maxw: 1120px;
}

*, *::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: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--accent) 0%, #3f7bff 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .01em; line-height: 1.3; }
.brand-name span { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav .btn-sm {
  margin-left: 8px; background: var(--accent); color: #fff; padding: 9px 16px;
}
.nav .btn-sm:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 860px) { .nav a:not(.btn-sm) { display: none; } }

/* ---------- ヒーロー ---------- */

.hero { padding: 76px 0 64px; background:
  radial-gradient(900px 420px at 12% -10%, #eaf0ff 0%, rgba(234, 240, 255, 0) 70%),
  radial-gradient(700px 380px at 92% 0%, #fdf3e8 0%, rgba(253, 243, 232, 0) 65%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-dark); background: var(--accent-soft);
  border: 1px solid #d3e0ff; border-radius: 999px; padding: 5px 14px;
}
.hero h1 {
  margin: 22px 0 0; font-size: clamp(29px, 5.2vw, 50px); line-height: 1.34;
  letter-spacing: -.015em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin: 22px 0 0; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--ink-2); max-width: 46em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 11px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--muted); }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.hero-stats div { background: #fff; padding: 20px 22px; }
.hero-stats b { display: block; font-size: clamp(21px, 4.4vw, 27px); font-weight: 800; letter-spacing: -.02em; line-height: 1.32; }
.hero-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- セクション共通 ---------- */

section { padding: 84px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 44em; margin-bottom: 44px; }
.sec-label {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent);
  text-transform: uppercase;
}
.sec-head h2 {
  margin: 10px 0 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4;
  letter-spacing: -.01em; font-weight: 800;
}
.sec-head p { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- 強み ---------- */

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.pillar-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 18px;
}
.pillar-ico svg { width: 22px; height: 22px; }
.pillar h3 { margin: 0 0 10px; font-size: 18.5px; font-weight: 800; letter-spacing: -.005em; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }

/* ---------- 実績（大カード） ---------- */

.works { display: grid; gap: 30px; }
.work {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.work-head { padding: 30px 32px 0; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.badge {
  font-size: 11.5px; font-weight: 800; letter-spacing: .03em; padding: 4px 11px;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge-own  { background: var(--accent-soft); color: var(--accent-dark); border-color: #d3e0ff; }
.badge-demo { background: var(--warm-soft); color: var(--warm); border-color: #f3ddc5; }
.badge-live { background: var(--ok-soft); color: var(--ok); border-color: #c9e8da; }
.badge-cat  { background: var(--bg-sunken); color: var(--ink-2); border-color: var(--line-strong); }

.work h3 { margin: 0; font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.012em; line-height: 1.42; }
.work h3 small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.work-body { padding: 22px 32px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
@media (max-width: 780px) { .work-body { grid-template-columns: 1fr; } .work-head, .work-body { padding-inline: 22px; } }

.qa { margin: 0; }
.qa dt {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted);
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.qa dt::before { content: ""; width: 14px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.qa dd { margin: 0 0 20px; font-size: 14.8px; color: var(--ink-2); line-height: 1.92; }
.qa dd:last-child { margin-bottom: 0; }
.qa dd strong { color: var(--ink); font-weight: 700; }

.feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.feat li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); }
.feat li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); opacity: .75;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; white-space: nowrap;
}

.shots {
  display: grid; gap: 10px; padding: 0 32px 32px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
@media (max-width: 780px) { .shots { padding-inline: 22px; } }
.shots figure { margin: 0; }
.shots img {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-alt); aspect-ratio: 16 / 10; object-fit: cover; object-position: top center;
}
.shots img.tall { aspect-ratio: 9 / 15; object-fit: cover; }
.shots figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }

.work-foot {
  padding: 18px 32px; border-top: 1px solid var(--line); background: var(--bg-alt);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
@media (max-width: 780px) { .work-foot { padding-inline: 22px; } }
.work-foot .link {
  font-size: 14px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.work-foot .link svg { width: 14px; height: 14px; }
.work-foot .note { font-size: 12.5px; color: var(--muted); margin-left: auto; }
@media (max-width: 780px) { .work-foot .note { margin-left: 0; } }

/* ---------- 小カードのグリッド ---------- */

.grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 22px; }
.card-sm {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: .18s;
}
.card-sm:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-sm > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.card-sm-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-sm h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.005em; line-height: 1.5; }
.card-sm h3 small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.card-sm p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.card-sm .tags { margin-top: auto; padding-top: 4px; }
.card-sm .link { font-size: 13.5px; font-weight: 700; text-decoration: none; }

/* ---------- 対応できること ---------- */

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skill { background: #fff; padding: 26px 26px 28px; }
.skill h3 { margin: 0 0 12px; font-size: 15.5px; font-weight: 800; }
.skill ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.skill li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.skill li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px;
  border: 1.6px solid var(--accent); border-top: 0; border-right: 0;
  transform: rotate(-45deg); opacity: .8;
}

/* ---------- 進め方 ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; position: relative;
}
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .06em;
}
.step h3 { margin: 8px 0 8px; font-size: 16px; font-weight: 800; }
.step p { margin: 0; font-size: 13.8px; color: var(--ink-2); line-height: 1.85; }

/* ---------- 料金 ---------- */

.price-table {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.price-row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 210px) minmax(0, 1.5fr);
  gap: 4px 24px; padding: 22px 26px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.price-row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .price-row { grid-template-columns: 1fr; padding: 20px 20px; } }
.price-row h3 { margin: 0; font-size: 16.5px; font-weight: 800; }
.price-row .amount { font-size: 19px; font-weight: 800; color: var(--accent-dark); letter-spacing: -.01em; white-space: nowrap; }
.price-row .amount small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.price-row p { margin: 0; font-size: 14px; color: var(--ink-2); }
.price-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 19px 30px 19px 0; font-weight: 700;
  font-size: 15.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
  border: 2px solid var(--muted); border-left: 0; border-top: 0;
  transform: translateY(-70%) rotate(45deg); transition: .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 0 22px; color: var(--ink-2); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- CTA / フッター ---------- */

.cta { background: linear-gradient(150deg, #10265e 0%, #1550d8 100%); color: #fff; }
.cta h2 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.45; letter-spacing: -.01em; }
.cta p { margin: 18px 0 0; color: #d3ddf6; font-size: 15.5px; max-width: 40em; }
.cta .hero-cta { margin-top: 32px; }
.cta .btn-primary { background: #fff; color: var(--accent-dark); }
.cta .btn-primary:hover { background: #eef3ff; color: var(--accent-dark); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.cta-sub { margin-top: 26px; font-size: 13.5px; color: #b9c8ea; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer small { font-size: 13px; color: var(--muted); }
.site-footer .to-top { margin-left: auto; font-size: 13px; font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
