/* ============================================================
   布施金属工業 Block Library — Pattern②
   ライト × スチールブルー × 2カラム分割ヒーロー
   ============================================================ */

:root {
  --fk-dark:    #111827;
  --fk-navy:    #1E3A5F;
  --fk-primary: #1E6091;
  --fk-silver:  #94A3B8;
  --fk-accent:  #1E6091;
  --fk-warm:    #F59E0B;
  --fk-light:   #F8FAFC;
  --fk-text:    #111827;
  --fk-muted:   #6B7280;
  --fk-border:  #E2E8F0;
  --fk-max-w:   1200px;
  --fk-py:      5rem;
  --fk-px:      1.25rem;
  --fk-radius:  1rem;
}
@media (min-width: 1024px) { :root { --fk-px: 2.5rem; } }

/* ── Sections ── */
.fk-section { padding: var(--fk-py) var(--fk-px); }
.fk-section--white { background: #fff; }
.fk-section--light { background: var(--fk-light); }
.fk-section--dark  { background: var(--fk-dark); }
.fk-section--navy  { background: linear-gradient(135deg, var(--fk-navy) 0%, var(--fk-primary) 100%); }
.fk-section--blue  { background: linear-gradient(135deg, #1E3A5F 0%, #1E6091 100%); }

.fk-inner { max-width: var(--fk-max-w); margin: 0 auto; }

.fk-section-header { margin-bottom: 3rem; }
.fk-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fk-accent); margin-bottom: 1rem;
}
.fk-eyebrow::before { content: ''; display: block; width: 24px; height: 3px; background: currentColor; border-radius: 2px; flex-shrink: 0; }
.fk-eyebrow--light { color: #93C5FD; }
.fk-section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; line-height: 1.2; color: var(--fk-text); margin-bottom: 0.75rem; }
.fk-section-title--light { color: #fff; }
.fk-section-sub { font-size: 1rem; color: var(--fk-muted); line-height: 1.7; }
.fk-section-sub--light { color: #BFDBFE; }

/* ── Buttons ── */
.fk-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s, transform 0.15s; cursor: pointer; border: none;
}
.fk-btn--primary { background: var(--fk-accent); color: #fff; }
.fk-btn--primary:hover { background: #165A80; transform: translateY(-1px); }
.fk-btn--ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.fk-btn--ghost:hover { background: rgba(255,255,255,0.25); }
.fk-btn--outline { background: transparent; color: var(--fk-accent); border: 1.5px solid var(--fk-accent); }
.fk-btn--outline:hover { background: #EFF6FF; }
.fk-btn--outline-dark { background: transparent; color: var(--fk-text); border: 1.5px solid var(--fk-border); }
.fk-btn--outline-dark:hover { background: var(--fk-light); }
.fk-btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.fk-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ── Hero: 2カラム分割 ── */
.fk-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.fk-hero::after { display: none; }
.fk-hero__text {
  padding: 7rem 3rem 5rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 1280px) { .fk-hero__text { padding: 7rem 4rem 5rem 5rem; } }
.fk-hero__image {
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.fk-hero__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(30,96,145,0.28) 100%);
}
/* inner pages: single-column dark hero */
.fk-hero--page {
  display: block;
  padding: 8rem var(--fk-px) 4rem;
  background: linear-gradient(135deg, #1E3A5F 0%, #1E6091 100%);
}
.fk-hero__inner { max-width: var(--fk-max-w); margin: 0 auto; position: relative; }
.fk-hero--page .fk-hero__title { color: #fff; }
.fk-hero--page .fk-hero__sub   { color: #BFDBFE; }
.fk-hero__bc { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #9CA3AF; margin-bottom: 1.5rem; }
.fk-hero__bc a { color: inherit; text-decoration: none; }
.fk-hero__bc a:hover { color: #fff; }
.fk-hero__bc-sep { color: #4B5563; }
.fk-hero__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--fk-text); line-height: 1.15; margin-bottom: 1.25rem; }
.fk-hero__sub   { font-size: 1.0625rem; color: var(--fk-muted); font-weight: 400; line-height: 1.75; margin-bottom: 2.5rem; }
.fk-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }

/* Hero stats strip */
.fk-hero__stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  padding-top: 2rem; border-top: 1px solid var(--fk-border);
}
.fk-hero__stat { text-align: left; }
.fk-hero__stat-num { display: block; font-size: 1.625rem; font-weight: 900; color: var(--fk-primary); line-height: 1; }
.fk-hero__stat-num small { font-size: 0.9rem; font-weight: 700; }
.fk-hero__stat-label { display: block; font-size: 0.7rem; color: var(--fk-muted); margin-top: 0.2rem; }
.fk-hero__stat-divider { width: 1px; height: 2.25rem; background: var(--fk-border); }

@media (max-width: 768px) {
  .fk-hero { grid-template-columns: 1fr; }
  .fk-hero__image { min-height: 260px; order: -1; }
  .fk-hero__text { padding: 2.5rem 1.25rem; }
}

/* ── WHY: 数字パネルグリッド ── */
.fk-why {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 2.5rem; border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius); overflow: hidden;
}
.fk-why__item {
  padding: 2.5rem 2rem; position: relative;
  border-right: 1px solid var(--fk-border);
  border-bottom: 1px solid var(--fk-border);
}
.fk-why__item:nth-child(2n)   { border-right: none; }
.fk-why__item:nth-child(3),
.fk-why__item:nth-child(4)    { border-bottom: none; }
.fk-why__num {
  display: block; font-size: 3.5rem; font-weight: 900;
  color: #EFF6FF; line-height: 1; margin-bottom: 1rem;
}
.fk-why__icon {
  width: 2.5rem; height: 2.5rem; background: var(--fk-accent);
  border-radius: 0.625rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}
.fk-why__icon svg { width: 1.25rem; height: 1.25rem; stroke: #fff; fill: none; }
.fk-why__title { font-size: 1.0625rem; font-weight: 800; color: var(--fk-text); margin-bottom: 0.5rem; }
.fk-why__desc  { font-size: 0.875rem; color: var(--fk-muted); line-height: 1.75; }
@media (max-width: 640px) {
  .fk-why { grid-template-columns: 1fr; }
  .fk-why__item { border-right: none; }
  .fk-why__item:nth-child(3) { border-bottom: 1px solid var(--fk-border); }
}

/* ── Service list: 横ロー ── */
.fk-service-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 3rem; }
.fk-service-row {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.5rem; border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius); background: #fff;
  text-decoration: none; transition: box-shadow 0.2s, transform 0.15s;
  border-left: 4px solid var(--fk-accent);
}
.fk-service-row:hover { box-shadow: 0 8px 24px rgba(30,96,145,0.10); transform: translateY(-2px); }
@media (min-width: 768px) {
  .fk-service-row {
    display: grid;
    grid-template-columns: 3rem 1fr 2fr auto;
    gap: 1.5rem 2rem; align-items: center;
  }
}
.fk-service-row__num   { font-size: 1.5rem; font-weight: 900; color: #DBEAFE; line-height: 1; }
.fk-service-row__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fk-accent); margin-bottom: 0.375rem; }
.fk-service-row__title { font-size: 1.0625rem; font-weight: 800; color: var(--fk-text); }
.fk-service-row__body  { font-size: 0.875rem; color: var(--fk-muted); line-height: 1.7; }
.fk-service-row__arrow { width: 1.25rem; height: 1.25rem; stroke: var(--fk-accent); flex-shrink: 0; fill: none; }

/* ── Horizontal flow (index) ── */
.fk-hflow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-top: 3rem; position: relative;
}
.fk-hflow::before {
  content: ''; position: absolute;
  top: 1.375rem; left: 12.5%; right: 12.5%;
  height: 2px; background: rgba(255,255,255,0.2); z-index: 0;
}
.fk-hflow__step { text-align: center; position: relative; z-index: 1; }
.fk-hflow__dot {
  width: 2.75rem; height: 2.75rem; background: #fff;
  color: var(--fk-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9375rem; font-weight: 900;
  margin: 0 auto 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fk-hflow__title { font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 0.375rem; }
.fk-hflow__body  { font-size: 0.75rem; color: #BFDBFE; line-height: 1.6; }
@media (max-width: 640px) {
  .fk-hflow { grid-template-columns: repeat(2, 1fr); }
  .fk-hflow::before { display: none; }
}

/* ── Feature cards (inner pages) ── */
.fk-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.fk-feature-card { background: #fff; border: 1px solid var(--fk-border); border-radius: var(--fk-radius); padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.fk-feature-card__icon { width: 2.75rem; height: 2.75rem; background: var(--fk-accent); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.fk-feature-card__icon svg { width: 1.25rem; height: 1.25rem; stroke: #fff; fill: none; }
.fk-feature-card__title { font-size: 1rem; font-weight: 700; color: var(--fk-text); margin-bottom: 0.5rem; }
.fk-feature-card__body  { font-size: 0.875rem; color: var(--fk-muted); line-height: 1.7; }

/* ── Product grid (inner pages) ── */
.fk-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.fk-product-card { display: block; background: #fff; border: 1px solid var(--fk-border); border-radius: var(--fk-radius); padding: 2rem; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; box-shadow: 0 2px 12px rgba(0,0,0,0.04); overflow: hidden; }
.fk-product-card:hover { box-shadow: 0 12px 32px rgba(30,96,145,0.12); transform: translateY(-3px); }
.fk-product-card__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fk-accent); margin-bottom: 0.75rem; }
.fk-product-card__title { font-size: 1.125rem; font-weight: 800; color: var(--fk-text); line-height: 1.4; margin-bottom: 0.625rem; }
.fk-product-card__body  { font-size: 0.875rem; color: var(--fk-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.fk-product-card__link  { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--fk-accent); }
.fk-product-card__link svg { width: 0.875rem; height: 0.875rem; }

/* ── Detail layout (inner pages) ── */
.fk-detail { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) {
  .fk-detail { grid-template-columns: 1fr 1fr; }
  .fk-detail--reverse .fk-detail__text   { order: 2; }
  .fk-detail--reverse .fk-detail__visual { order: 1; }
}
.fk-detail__title  { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--fk-text); line-height: 1.3; margin-bottom: 1.5rem; }
.fk-detail__body   { font-size: 1rem; color: #4B5563; line-height: 1.85; margin-bottom: 1rem; }
.fk-list { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.625rem; }
.fk-list li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; color: #374151; line-height: 1.65; }
.fk-list li::before { content: '〇'; color: var(--fk-accent); font-weight: 700; flex-shrink: 0; }
.fk-list--check li::before { content: '✓'; color: #16A34A; }
.fk-detail__visual { background: var(--fk-light); border: 2px dashed var(--fk-border); border-radius: var(--fk-radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #9CA3AF; font-size: 0.875rem; }

/* ── Flow vertical (inner pages) ── */
.fk-flow { display: flex; flex-direction: column; gap: 0; margin-top: 3rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
.fk-flow-step { display: flex; gap: 1.5rem; padding-bottom: 2rem; position: relative; }
.fk-flow-step:not(:last-child)::before { content: ''; position: absolute; left: 1.375rem; top: 2.75rem; bottom: 0; width: 2px; background: #BFDBFE; }
.fk-flow-step__num     { flex-shrink: 0; width: 2.75rem; height: 2.75rem; background: var(--fk-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.875rem; font-weight: 800; }
.fk-flow-step__content { padding-top: 0.375rem; }
.fk-flow-step__title   { font-size: 1rem; font-weight: 700; color: var(--fk-text); margin-bottom: 0.375rem; }
.fk-flow-step__body    { font-size: 0.875rem; color: var(--fk-muted); line-height: 1.7; }

/* ── Cases grid ── */
.fk-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.fk-case-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--fk-radius); padding: 2rem; }
.fk-case-card__no    { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #93C5FD; margin-bottom: 0.75rem; }
.fk-case-card__title { font-size: 1.125rem; font-weight: 800; color: #fff; line-height: 1.4; margin-bottom: 0.875rem; }
.fk-case-card__body  { font-size: 0.875rem; color: #9CA3AF; line-height: 1.7; margin-bottom: 1.25rem; }
.fk-case-card__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fk-case-card__chip  { font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 999px; background: rgba(30,96,145,0.25); color: #93C5FD; }

/* ── FAQ ── */
.fk-faq { max-width: 48rem; margin: 3rem auto 0; }
.fk-faq-item { border-bottom: 1px solid var(--fk-border); }
.fk-faq-item summary { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.25rem 0; cursor: pointer; list-style: none; gap: 1rem; }
.fk-faq-item summary::-webkit-details-marker { display: none; }
.fk-faq__q { font-size: 0.9375rem; font-weight: 700; color: var(--fk-text); line-height: 1.55; display: flex; gap: 0.75rem; }
.fk-faq__q::before { content: 'Q'; color: var(--fk-accent); font-weight: 900; flex-shrink: 0; }
.fk-faq__chevron { flex-shrink: 0; width: 1.25rem; height: 1.25rem; stroke: #9CA3AF; fill: none; transition: transform 0.2s; }
details[open] .fk-faq__chevron { transform: rotate(180deg); }
.fk-faq__a { padding: 0 0 1.25rem 1.75rem; font-size: 0.9375rem; color: #4B5563; line-height: 1.8; display: flex; gap: 0.75rem; }
.fk-faq__a::before { content: 'A'; color: #16A34A; font-weight: 900; flex-shrink: 0; }

/* ── Company table ── */
.fk-company-table { width: 100%; border-collapse: collapse; }
.fk-company-table tr { border-bottom: 1px solid var(--fk-border); }
.fk-company-table th { text-align: left; width: 9rem; padding: 1rem 1.5rem 1rem 0; font-size: 0.875rem; font-weight: 700; color: var(--fk-text); vertical-align: top; white-space: nowrap; }
.fk-company-table td { padding: 1rem 0; font-size: 0.875rem; color: #4B5563; line-height: 1.75; }
@media (max-width: 640px) {
  .fk-company-table, .fk-company-table tbody, .fk-company-table tr, .fk-company-table th, .fk-company-table td { display: block; }
  .fk-company-table th { padding-bottom: 0.25rem; border-bottom: none; width: 100%; }
  .fk-company-table td { padding-top: 0; }
}

/* ── CTA ── */
.fk-cta { padding: var(--fk-py) var(--fk-px); background: linear-gradient(135deg, #1E3A5F 0%, #1E6091 100%); text-align: center; }
.fk-cta__inner   { max-width: 40rem; margin: 0 auto; }
.fk-cta__title   { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 1rem; }
.fk-cta__sub     { font-size: 0.9375rem; color: #BFDBFE; line-height: 1.75; margin-bottom: 2rem; }
.fk-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

/* ── Form ── */
.fk-form label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--fk-text); margin-bottom: 0.375rem; }
.fk-form input, .fk-form select, .fk-form textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--fk-border); border-radius: 0.5rem; font-size: 0.9375rem; font-family: inherit; color: var(--fk-text); background: #fff; transition: border-color 0.15s; }
.fk-form input:focus, .fk-form select:focus, .fk-form textarea:focus { outline: none; border-color: var(--fk-accent); box-shadow: 0 0 0 3px rgba(30,96,145,0.12); }
.fk-form textarea { min-height: 10rem; resize: vertical; }
.fk-form__group { margin-bottom: 1.5rem; }
.fk-form__req { display: inline-block; font-size: 0.6875rem; font-weight: 700; color: #fff; background: #DC2626; padding: 0.1rem 0.375rem; border-radius: 0.25rem; margin-left: 0.375rem; vertical-align: middle; }

/* ── Utilities ── */
.fk-acl  { width: 48px; height: 3px; background: var(--fk-accent); border-radius: 2px; }
.fk-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.fk-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(30,96,145,0.12); }
.fk-tag  { display: inline-block; font-size: 0.6875rem; font-weight: 700; padding: 0.2rem 0.625rem; border-radius: 999px; }
.fk-tag--blue  { background: #DBEAFE; color: #1e40af; }
.fk-tag--green { background: #DCFCE7; color: #166534; }
.fk-tag--amber { background: #FEF3C7; color: #92400e; }
.fk-note { padding: 1rem 1.25rem; border-radius: 0.75rem; font-size: 0.875rem; line-height: 1.75; }
.fk-note--blue  { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1e40af; }
.fk-note--amber { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400e; }
.fk-note--green { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
