/* 岡本商店 AIコンサル — site styles
   Layout: dark "blueprint" hero with a safety-stripe edge, light content sections,
   case cards that open detail pages with a before/after comparison. */
:root {
  --ink: #16202B;
  --ink-2: #223041;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --line: #D8DFE6;
  --muted: #4A5664;
  --steel: #2F5D7C;
  --steel-soft: #E4EDF4;
  --accent: #E8A500;
  --accent-soft: #FDF3D8;
  --on-dark: #F3F5F7;
  --on-dark-muted: #BFCAD6;
  --f-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --radius: 10px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 38px; object-fit: contain; }
.brand b { font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: 0.06em; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: var(--steel-soft); }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #F2B81A; color: var(--ink); }
.btn-ghost { border-color: var(--on-dark-muted); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.nav .btn { min-height: 40px; padding: 6px 18px; font-size: 14px; }
.nav a.btn-ink, .nav a.btn-ink:hover { color: var(--white); background: var(--ink); }

/* ---------- hero ---------- */
.stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px); }
.hero {
  position: relative; color: var(--on-dark); overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--ink);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--accent); }
.hero h1 { font-size: clamp(28px, 4.4vw, 48px); font-weight: 900; margin-top: 14px; letter-spacing: 0.01em; }
.hero h1 .ln { display: inline-block; white-space: nowrap; }
.hero h1 .mark { background: linear-gradient(transparent 64%, rgba(232,165,0,.55) 64%); }
.hero .lead { margin-top: 20px; color: var(--on-dark-muted); font-size: clamp(15px, 1.6vw, 17px); max-width: 34em; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
  justify-self: end; width: min(100%, 360px);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 28px; text-align: center;
}
.hero-card img { width: 168px; height: 168px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--accent); object-fit: cover; }
.hero-card .name { font-family: var(--f-display); font-weight: 900; font-size: 22px; margin-top: 16px; }
.hero-card .role { color: var(--on-dark-muted); font-size: 14px; }
.hero-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
.hero-stats div { font-size: 12px; color: var(--on-dark-muted); line-height: 1.4; }
.hero-stats b { display: block; font-family: var(--f-display); font-size: 24px; color: var(--white); line-height: 1.3; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-card { justify-self: stretch; width: 100%; display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 4px 16px; text-align: left; align-items: center; padding: 18px; }
  .hero-card img { width: 96px; height: 96px; border-width: 4px; grid-row: span 2; margin: 0; }
  .hero-card .name { margin-top: 0; }
  .hero-stats { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 44em; }
.sec-head .eyebrow { color: var(--steel); }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; }
.sec-head p { color: var(--muted); }

.worries { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.worry { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-weight: 700; }
.worry .check { flex: none; width: 26px; height: 26px; border: 2.5px solid var(--ink); border-radius: 5px; display: grid; place-items: center; }
.worry .check svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .worries { grid-template-columns: minmax(0,1fr); } }

.services { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.service { background: var(--paper); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 4px 18px; }
.service .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; grid-row: span 2; }
.service .ico svg { width: 26px; height: 26px; }
.service h3 { font-size: 19px; font-weight: 700; }
.service p { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .services { grid-template-columns: minmax(0,1fr); }
  .service { grid-template-columns: 44px minmax(0,1fr); align-items: center; padding: 20px; }
  .service .ico { width: 44px; height: 44px; grid-row: auto; }
  .service p { grid-column: 1 / -1; margin-top: 6px; }
}

/* ---------- case list ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filters .count { color: var(--muted); font-size: 13px; align-self: center; margin-left: 4px; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 980px) { .cases { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .cases { grid-template-columns: minmax(0,1fr); } }
.case-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(22,32,43,.45); border-color: #C3CDD7; color: var(--ink); }
.case-card .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--ink); color: var(--on-dark); }
.case-card.ai .top { background: var(--steel); }
.case-card .no { font-family: var(--f-display); font-weight: 900; font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.case-card.ai .no { color: var(--white); }
.case-card .cat { font-size: 12px; font-weight: 700; color: var(--on-dark-muted); }
.case-card.ai .cat { color: #DCE8F1; }
.case-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card h3 { font-size: 19px; font-weight: 900; }
.case-card .sum { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.case-card .metric { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.case-card .metric .m-label { font-size: 12px; color: var(--muted); width: 100%; }
.case-card .metric .m-before { color: var(--muted); font-size: 15px; }
.case-card .metric .m-arrow { color: var(--accent); font-weight: 900; }
.case-card .metric .m-after { font-family: var(--f-display); font-weight: 900; font-size: 22px; background: linear-gradient(transparent 60%, var(--accent-soft) 60%); }
.case-card .more { font-size: 13px; font-weight: 700; color: var(--steel); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--steel); background: var(--steel-soft); border-radius: 999px; padding: 2px 10px; }
.tag.dev { background: var(--accent); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-card[hidden] { display: none !important; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 900; font-size: 34px; color: var(--steel); line-height: 1; display: block; margin-bottom: 10px; }
.steps li:last-child { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.steps li:last-child::before { color: var(--accent); }
.steps h3 { font-size: 17px; font-weight: 700; }
.steps p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.steps li:last-child p { color: var(--on-dark-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0,1fr); } }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.profile .photo { text-align: center; }
.profile .photo img { width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; border: 6px solid var(--accent); object-fit: cover; }
.profile .photo .name { font-family: var(--f-display); font-weight: 900; font-size: 22px; margin-top: 14px; }
.profile .photo .meta { color: var(--muted); font-size: 14px; }
.profile .intro { font-size: 16.5px; }
.profile .intro + .intro { margin-top: 12px; }
.timeline { list-style: none; margin: 26px 0 0; padding: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--steel); }
.timeline li.now::before { background: var(--accent); border-color: var(--ink); }
.timeline .when { font-size: 12px; font-weight: 700; color: var(--steel); letter-spacing: .08em; }
.timeline .what { font-weight: 700; }
.timeline .note { font-size: 14px; color: var(--muted); }
.likes { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.likes div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.likes b { display: block; font-family: var(--f-display); font-size: 15px; }
.likes span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .profile { grid-template-columns: minmax(0,1fr); } .likes { grid-template-columns: minmax(0,1fr); } }

/* ---------- contact ---------- */
.contact { background: var(--accent); color: var(--ink); }
.contact .wrap { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.contact h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; }
.contact p { margin-top: 10px; }
.contact-box { background: var(--white); border-radius: 14px; padding: 24px; display: grid; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); min-height: 56px; }
.contact-row:hover { border-color: var(--ink); color: var(--ink); }
.contact-row svg { flex: none; width: 24px; height: 24px; }
.contact-row small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.contact-row b { font-size: 17px; line-height: 1.3; word-break: break-all; }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: minmax(0,1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 28px; }
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-family: var(--f-display); font-weight: 700; }
.site-footer img { width: 34px; height: 32px; }
.site-footer a { color: var(--on-dark-muted); }

/* ---------- case detail ---------- */
.crumbs { font-size: 13px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); }
.case-hero { color: var(--on-dark); background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--ink); }
.case-hero .wrap { padding-block: clamp(32px, 6vw, 64px) calc(clamp(32px, 6vw, 64px) + 36px); display: grid; gap: 14px; }
.case-hero h1 { font-size: clamp(28px, 4.6vw, 46px); font-weight: 900; }
.case-hero .lead { color: var(--on-dark-muted); max-width: 40em; }
.case-hero .tags .tag { background: rgba(255,255,255,.1); color: var(--on-dark); }
.case-hero .tags .tag.dev { background: var(--accent); color: var(--ink); }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: -36px; position: relative; }
.metric-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: 0 14px 30px -24px rgba(22,32,43,.5); }
.metric-box .label { font-size: 13px; font-weight: 700; color: var(--muted); }
.metric-box .vals { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.metric-box .before { color: var(--muted); font-size: 18px; }
.metric-box .arrow { color: var(--accent); font-weight: 900; font-size: 20px; }
.metric-box .after { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.2; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.metric-box .note { font-size: 13px; color: var(--muted); margin-top: 6px; }

.ba { display: grid; grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr); gap: 0; align-items: stretch; }
.ba .panel { border-radius: 14px; padding: 26px; }
.ba .before-p { background: var(--white); border: 1px solid var(--line); }
.ba .after-p { background: var(--ink); color: var(--on-dark); }
.ba .panel h3 { font-size: 14px; letter-spacing: .14em; font-weight: 700; margin-bottom: 12px; }
.ba .before-p h3 { color: var(--muted); }
.ba .after-p h3 { color: var(--accent); }
.ba ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.ba .after-p li::marker { color: var(--accent); }
.ba .mid { display: grid; place-items: center; }
.ba .mid span { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.ba .mid svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .ba { grid-template-columns: minmax(0,1fr); }
  .ba .mid { padding-block: 10px; }
  .ba .mid svg { transform: rotate(90deg); }
}

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; counter-increment: how; }
.how li::before { content: counter(how); width: 40px; height: 40px; border-radius: 50%; background: var(--steel); color: var(--white); font-family: var(--f-display); font-weight: 900; display: grid; place-items: center; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.box h3 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.box ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 8px; background: var(--steel-soft); color: var(--steel); }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0,1fr); } }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { border-radius: 8px; width: 100%; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 2px; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0,1fr); } }

.demo-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--steel-soft); border-radius: 14px; padding: 22px 24px; }
.demo-cta b { font-family: var(--f-display); font-size: 18px; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.pager a { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.pager a:hover { border-color: var(--ink); }
.pager small { display: block; font-size: 12px; color: var(--muted); }
.pager b { font-family: var(--f-display); }
.pager .next { text-align: right; }
.pager .empty { visibility: hidden; }
.stack { display: grid; gap: clamp(36px, 5vw, 56px); }
.h-sub { font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; margin-bottom: 16px; }
.dev-note { background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: 12px; padding: 16px 18px; font-size: 15px; }

/* ---------- reveal on scroll (only when JS adds .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* closing card in the case grid */
.case-cta { grid-column: span 2; background: var(--ink); color: var(--on-dark); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background-image: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--ink) 12px 24px); background-size: 100% 8px; background-repeat: no-repeat; background-position: top; }
.case-cta h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; }
.case-cta p { color: var(--on-dark-muted); font-size: 15px; }
.case-cta .btn { align-self: flex-start; }
@media (max-width: 620px) { .case-cta { grid-column: auto; } }
