/* ============================================================
   布施金属工業（アルミ職人工房）Block Library v1.0
   Design tokens + 9 standard block types
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------ */
:root {
  --fk-dark:    #0E1C2B;
  --fk-navy:    #162840;
  --fk-primary: #2A4A7F;
  --fk-silver:  #8B9EB7;
  --fk-accent:  #4A8FD4;
  --fk-light:   #F4F7FB;
  --fk-text:    #111827;
  --fk-muted:   #6B7280;
  --fk-border:  #E5E7EB;
  --fk-max-w:   1200px;
  --fk-py:      5rem;
  --fk-px:      1.25rem;
  --fk-radius:  1rem;
}
@media (min-width: 1024px) {
  :root { --fk-px: 2.5rem; }
}

/* ------------------------------------------------------------
   2. Layout Wrapper
   ------------------------------------------------------------ */
.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-dark) 0%, var(--fk-navy) 60%, #1e3659 100%);
}

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

/* ------------------------------------------------------------
   3. Section Header
   ------------------------------------------------------------ */
.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: #93C5FD; }

/* ------------------------------------------------------------
   4. 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: #3a7fc4; transform: translateY(-1px); }

.fk-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.fk-btn--ghost:hover { background: rgba(255,255,255,0.15); }

.fk-btn--outline {
  background: transparent;
  color: var(--fk-accent);
  border: 1.5px solid var(--fk-accent);
}
.fk-btn--outline:hover { background: #EFF6FF; }

.fk-btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.fk-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ------------------------------------------------------------
   BLOCK 1: HERO
   ------------------------------------------------------------ */
.fk-hero {
  padding: 8rem var(--fk-px) 5rem;
  background: linear-gradient(135deg, var(--fk-dark) 0%, var(--fk-navy) 60%, #1e3659 100%);
}
.fk-hero--page { padding: 8rem var(--fk-px) 4rem; }

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

.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, 5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.fk-hero__sub {
  font-size: 1.125rem;
  color: #93C5FD;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}
.fk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------------------
   BLOCK 2: FEATURES
   ------------------------------------------------------------ */
.fk-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.fk-feature-card {
  background: var(--fk-light);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius);
  padding: 2rem;
}
.fk-feature-card--dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.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--dark .fk-feature-card__title { color: #fff; }
.fk-feature-card__body {
  font-size: 0.875rem;
  color: var(--fk-muted);
  line-height: 1.7;
}
.fk-feature-card--dark .fk-feature-card__body { color: #9CA3AF; }

/* ------------------------------------------------------------
   BLOCK 3: PRODUCT / SERVICE CARDS
   ------------------------------------------------------------ */
.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;
}
.fk-product-card:hover {
  box-shadow: 0 8px 24px rgba(14,28,43,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; }

/* ------------------------------------------------------------
   BLOCK 4: DETAIL (2カラム)
   ------------------------------------------------------------ */
.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;
}

/* ------------------------------------------------------------
   BLOCK 5: FLOW (工程ステップ)
   ------------------------------------------------------------ */
.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: var(--fk-border);
}
.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;
}

/* ------------------------------------------------------------
   BLOCK 6: CASES  (製品実績)
   ------------------------------------------------------------ */
.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.06);
  border: 1px solid rgba(255,255,255,0.1);
  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: #60A5FA;
  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(74,143,212,0.25);
  color: #93C5FD;
}

/* ------------------------------------------------------------
   BLOCK 7: 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;
}

/* ------------------------------------------------------------
   BLOCK 8: 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; }
}

/* ------------------------------------------------------------
   BLOCK 9: CTA
   ------------------------------------------------------------ */
.fk-cta {
  padding: var(--fk-py) var(--fk-px);
  background: var(--fk-dark);
  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: #93C5FD;
  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(74,143,212,0.15);
}
.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(14,28,43,0.15);
}
.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; }
