:root {
  --ink: #14221d;
  --muted-ink: #4e5c57;
  --blue: #2f7fbd;
  --navy: #203968;
  --blue-soft: #e5f3fb;
  --paper: #f7f9fc;
  --orange: #ff8c1a;
  --white: #ffffff;
  --line: #d9e2dd;
  --shadow: 0 18px 52px rgb(20 34 29 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN",
    sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(217 226 221 / 80%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.header-nav,
.footer-links {
  display: flex;
  align-items: center;
}

.header-inner,
.footer-inner {
  min-height: 72px;
  justify-content: space-between;
  gap: 20px;
}

.header-nav,
.footer-links {
  gap: 22px;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown summary {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.menu-dropdown summary::-webkit-details-marker {
  display: none;
}

.menu-dropdown summary span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.menu-dropdown .menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.menu-panel a {
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.menu-panel a:hover {
  background: var(--blue-soft);
}

.menu-section {
  margin: 4px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: var(--paper);
}

.menu-section-title {
  margin: 0 4px 8px;
  color: var(--muted-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.menu-industry-links {
  display: grid;
  gap: 6px;
}

.menu-industry-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgb(217 226 221 / 80%);
  background: var(--white);
}

.menu-industry-links a::after {
  content: ">";
  color: var(--blue);
  font-weight: 900;
}

.header-nav > a:not(.button),
.footer-links a {
  color: var(--muted-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: 104px 0;
}

.section-muted {
  background: var(--paper);
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-dark .eyebrow {
  color: #99cdf2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.05em;
  line-height: 1.25;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 66px);
}

h1 .accent {
  color: var(--blue);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.5;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgb(229 243 251 / 95%), transparent 26%),
    var(--white);
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 72px;
}

.hero-grid > *,
.card-grid > *,
.industry-grid > *,
.result-grid > *,
.pricing-grid > *,
.strength-grid > * {
  min-width: 0;
}

.desktop-title,
.mobile-title {
  display: block;
}

.mobile-title {
  display: none;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted-ink);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.contact-note {
  margin-top: 12px;
  color: var(--muted-ink);
  font-size: 13px;
}

.hero-actions p {
  position: relative;
  flex-basis: 100%;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid rgb(47 127 189 / 22%);
  border-radius: 16px;
  padding: 10px 14px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgb(32 57 104 / 8%);
}

.hero-actions p::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 32px;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--blue-soft);
  border-left: 8px solid transparent;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 27px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 12px 30px rgb(255 140 26 / 22%);
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.button:hover {
  background: #e87808;
  transform: translateY(-2px);
}

.button-accent {
  background: var(--orange);
}

.button-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow);
}

.hero-visual {
  display: grid;
  gap: 22px;
}

.hero-visual img {
  width: min(280px, 100%);
  margin: 0 auto;
}

.hero-card-label {
  color: var(--blue);
  font-weight: 800;
}

.hero-card-title {
  margin: 8px 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
}

.solution-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.solution-mini-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--white);
}

.solution-mini-grid span {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.solution-mini-grid p {
  margin: 8px 0 0;
  color: var(--muted-ink);
  font-size: 12px;
  line-height: 1.7;
}

.check-list {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--blue);
  content: "✓";
  font-weight: 900;
}

.card-grid,
.industry-grid,
.strength-grid,
.result-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.card,
.industry-grid article,
.strength-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: var(--white);
}

.card p {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.section-heading-media {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading-media > div {
  min-width: 0;
}

.section-heading-media img {
  width: min(260px, 32vw);
  max-height: 190px;
  object-fit: contain;
}

.section-dark .section-heading-media img {
  filter: drop-shadow(0 18px 34px rgb(0 0 0 / 16%));
}

.strength-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.strength-grid h3 {
  color: var(--ink);
}

.strength-grid p {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.result-grid,
.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card strong {
  display: block;
  margin: 12px 0;
  color: var(--blue);
  font-size: 25px;
}

.price-card p {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.section-lead {
  color: var(--muted-ink);
}

.card-number,
.industry-grid p {
  color: var(--blue) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.steps {
  display: grid;
  margin: 44px 0 0;
  padding: 0;
  gap: 18px;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 22px;
}

.steps span {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid li {
  border-bottom: 0;
}

.industry-grid article {
  color: var(--ink);
}

.industry-grid span,
.industry-grid a,
.industry-grid em {
  display: block;
}

.industry-grid span {
  min-height: 66px;
  color: var(--muted-ink);
}

.industry-grid a,
.industry-grid em {
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.contact {
  text-align: center;
  background: var(--blue-soft);
}

.contact p {
  color: var(--muted-ink);
}

.contact .button {
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

small {
  color: var(--muted-ink);
}

@media (max-width: 820px) {
  .section {
    padding: 76px 0;
  }

  .hero-grid,
  .card-grid,
  .industry-grid,
  .strength-grid,
  .result-grid,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .header-nav > a:not(.button) {
    display: none;
  }

  .section-heading-media {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .section-heading-media img {
    width: min(240px, 72vw);
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 28px), 1120px);
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  h1,
  h2,
  h3,
  p,
  li {
    overflow-wrap: anywhere;
  }

  .hero h1 {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-title .desktop-title {
    display: none;
  }

  .hero-title .mobile-title {
    display: block;
  }

  .button {
    width: 100%;
    padding-inline: 18px;
    text-align: center;
  }

  .hero-card {
    padding: 24px;
  }

  .solution-mini-grid {
    grid-template-columns: 1fr;
  }

  .header-nav .button {
    display: none;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .footer-inner {
    min-height: 108px;
  }
}

/* ============================================================
   bescode.jp 追加スタイル
   既存 styles.css の末尾に追記してください
   既存変数 (--ink, --blue, --orange など) をそのまま利用
   ============================================================ */

/* ---------- 共通: セクション内サブラベル ---------- */
.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

/* ============================================================
   SECTION: 開発者プロフィール
   ============================================================ */
.profile {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #e5f3fb, transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 76px;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 18px 40px rgb(32 57 104 / 25%);
}

.profile-role {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.profile-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  line-height: 1.3;
}

.profile-name small {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted-ink);
  margin-left: 10px;
}

.profile-bio {
  color: var(--muted-ink);
  margin-bottom: 24px;
  font-size: 16px;
}

.profile-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.cred-pill {
  background: var(--blue-soft);
  color: var(--navy);
  border: 1px solid rgb(47 127 189 / 22%);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
}

.profile-stack-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.profile-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.stack-tag {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.profile-weakness {
  background: var(--paper);
  border-left: 4px solid var(--orange);
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted-ink);
  line-height: 1.8;
}

.profile-weakness strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 800;
}

/* ============================================================
   SECTION: 事例カード (実績セクションの差し替え)
   ============================================================ */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 42px;
}

.case {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.case:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.case-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--paper);
}

.case-meta {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}

.case-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.case-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}

.case-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.case-status.dev {
  background: #fff4e6;
  color: #8a4a00;
}

.case-status.dev::before { background: var(--orange); }

.case-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.case-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  color: var(--blue);
}

.case-col.before h4 { color: #c75a3a; }
.case-col.after  h4 { color: #2a8a6b; }

.case-col p {
  color: var(--ink);
  font-size: 15px;
  margin: 0;
  line-height: 1.85;
}

.case-col strong { font-weight: 800; }

.case-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.case-foot .item .label {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 2px;
}

.case-foot .item .value {
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

/* ============================================================
   SECTION: 概算見積もりツール
   ============================================================ */
.estimate {
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.estimate-step + .estimate-step { margin-top: 32px; }

.step-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  font-size: 16px;
  flex: 0 0 auto;
}

.step-q {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.opt {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  transition: all 160ms ease;
  user-select: none;
  line-height: 1.4;
}

.opt:hover {
  border-color: var(--blue);
  background: var(--paper);
  transform: translateY(-1px);
}

.opt.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgb(47 127 189 / 25%);
}

.opt .sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 4px;
}

.opt.active .sub { opacity: 0.85; }

.estimate-result {
  margin-top: 36px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--paper) 100%);
  text-align: center;
  opacity: 0.5;
  transition: opacity 250ms ease;
  border: 1px solid var(--line);
}

.estimate-result.active { opacity: 1; }

.estimate-result .label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.estimate-result .price {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.estimate-result .period {
  color: var(--muted-ink);
  font-size: 14px;
  margin-bottom: 22px;
}

.estimate-result .note {
  display: block;
  color: var(--muted-ink);
  font-size: 12px;
  margin-top: 14px;
}

.button.is-disabled {
  background: var(--line);
  color: var(--muted-ink);
  box-shadow: none;
  pointer-events: none;
}

/* ============================================================
   レスポンシブ調整
   ============================================================ */
@media (max-width: 820px) {
  .profile {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px;
    gap: 28px;
  }
  .profile-avatar {
    margin: 0 auto;
    width: 140px;
    height: 140px;
    font-size: 56px;
  }
  .profile-creds,
  .profile-stack {
    justify-content: center;
  }
  .case-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .estimate {
    padding: 24px;
  }
}
