:root {
  --fde-ink: #07131f;
  --fde-navy: #06111d;
  --fde-navy-2: #0a1b29;
  --fde-paper: #f4f0e8;
  --fde-paper-2: #e9e2d7;
  --fde-white: #fff;
  --fde-gold: #c79c63;
  --fde-accent: #c79c63;
  --fde-accent-rgb: 199, 156, 99;
  --fde-muted: #64717d;
  --fde-line: rgba(7, 19, 31, .16);
  --fde-line-dark: rgba(255, 255, 255, .13);
  --fde-sans: "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
  --fde-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --fde-wrap: min(1180px, calc(100% - 72px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--fde-navy); }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--fde-ink);
  background: var(--fde-paper);
  font-family: var(--fde-sans);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.fde-wrap { width: var(--fde-wrap); margin-inline: auto; }
.fde-skip {
  position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%);
  padding: 10px 14px; background: #fff; color: #000;
}
.fde-skip:focus { transform: none; }

.fde-topbar {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 76px;
  display: flex; align-items: center;
  color: #fff; background: rgba(3, 12, 21, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.fde-topbar__inner { width: var(--fde-wrap); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fde-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.fde-brand img { width: 174px; height: 42px; object-fit: contain; object-position: left center; }
.fde-nav { display: flex; align-items: center; gap: 24px; }
.fde-nav a { color: #d8e0e7; text-decoration: none; font-size: 12px; letter-spacing: .08em; }
.fde-nav a:hover, .fde-nav a:focus-visible { color: #fff; }
.fde-nav__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--fde-accent); color: #fff !important;
}

.fde-hero {
  position: relative; isolation: isolate; min-height: 92svh;
  display: flex; align-items: flex-end; padding: 150px 0 72px;
  color: #fff; background: var(--fde-navy); overflow: hidden;
}
.fde-hero__media { position: absolute; inset: 0; z-index: -3; }
.fde-hero__media picture, .fde-hero__media img { width: 100%; height: 100%; }
.fde-hero__media img { object-fit: cover; object-position: center; }
.fde-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 10, 18, .98) 0%, rgba(2, 10, 18, .92) 36%, rgba(2, 10, 18, .34) 70%, rgba(2, 10, 18, .55) 100%),
    linear-gradient(0deg, rgba(2, 10, 18, .92), transparent 52%);
}
.fde-hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(var(--fde-accent-rgb), .9), transparent);
}
.fde-hero__content { max-width: 1120px; }
.fde-kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  color: var(--fde-accent); font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
}
.fde-kicker::before { content: ""; width: 42px; height: 1px; background: currentColor; flex: 0 0 auto; }
.fde-hero h1 {
  max-width: 1120px; margin: 0; font-family: var(--fde-serif);
  font-size: clamp(50px, 6.2vw, 88px); line-height: 1.04; letter-spacing: -.045em;
}
.fde-hero h1 span { display: block; color: var(--fde-accent); font-family: var(--fde-sans); font-size: .22em; line-height: 1.4; letter-spacing: .14em; margin-bottom: 14px; }
.fde-hero__lead { max-width: 720px; margin: 24px 0 0; color: #d8e0e7; font-size: clamp(16px, 1.4vw, 20px); }
.fde-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fde-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-width: 224px; min-height: 56px; padding: 14px 18px;
  color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3); font-weight: 800;
}
.fde-button::after { content: "↗"; font-size: 15px; }
.fde-button--accent { color: var(--fde-ink); background: var(--fde-accent); border-color: var(--fde-accent); }
.fde-button--dark { color: #fff; background: var(--fde-ink); border-color: var(--fde-ink); }
.fde-button:hover { transform: translateY(-1px); }
.fde-proofbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 46px; border-top: 1px solid rgba(255, 255, 255, .22); border-left: 1px solid rgba(255, 255, 255, .22);
  max-width: 900px;
}
.fde-proof {
  min-height: 104px; padding: 17px 18px;
  border-right: 1px solid rgba(255, 255, 255, .22); border-bottom: 1px solid rgba(255, 255, 255, .22);
  background: rgba(3, 12, 21, .3);
}
.fde-proof strong { display: block; color: var(--fde-accent); font-family: var(--fde-sans); font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fde-proof span { display: block; margin-top: 8px; color: #d5dde4; font-size: 11px; line-height: 1.5; }

.fde-section { padding: clamp(76px, 9vw, 126px) 0; }
.fde-section--paper { background: var(--fde-paper); }
.fde-section--white { background: #fff; }
.fde-section--dark { color: #f5f1ea; background: var(--fde-navy); }
.fde-section--soft { background: var(--fde-paper-2); }
.fde-section--accent { background: var(--fde-accent); }
.fde-section__head { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(40px, 8vw, 110px); align-items: start; margin-bottom: 48px; }
.fde-eyebrow { margin: 0; color: #8a683f; font-size: 11px; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.fde-section--dark .fde-eyebrow { color: var(--fde-accent); }
.fde-section h2 {
  margin: 12px 0 0; font-family: var(--fde-serif);
  font-size: clamp(38px, 5vw, 70px); line-height: 1.14; letter-spacing: -.035em;
}
.fde-section__intro { margin: 4px 0 0; color: #4f5d68; font-size: 17px; }
.fde-section--dark .fde-section__intro { color: #aeb9c3; }
.fde-direct {
  display: grid; grid-template-columns: 110px 1fr; gap: 32px;
  padding: 36px 0; border-top: 1px solid var(--fde-line); border-bottom: 1px solid var(--fde-line);
}
.fde-direct__label { color: #977044; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.fde-direct p { max-width: 940px; margin: 0; font-size: clamp(21px, 2.2vw, 31px); line-height: 1.6; font-weight: 700; }
.fde-note { margin-top: 20px; color: #62707b; font-size: 12px; }
.fde-note a { font-weight: 800; }

.fde-position { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1px; background: var(--fde-line); border: 1px solid var(--fde-line); }
.fde-position__main, .fde-position__side { padding: clamp(28px, 5vw, 56px); background: #fff; }
.fde-position__side { background: var(--fde-ink); color: #fff; }
.fde-position h3 { margin: 0 0 20px; font-family: var(--fde-serif); font-size: clamp(28px, 3.2vw, 46px); line-height: 1.25; }
.fde-position p { color: #53616c; }
.fde-position__side p { color: #b4bec7; }
.fde-checks { list-style: none; margin: 24px 0 0; padding: 0; }
.fde-checks li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid rgba(255, 255, 255, .13); }
.fde-checks li::before { content: "—"; position: absolute; left: 0; color: var(--fde-accent); }

.fde-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fde-card { position: relative; min-height: 300px; padding: 30px; background: #fff; border: 1px solid var(--fde-line); overflow: hidden; }
.fde-card::after { content: attr(data-index); position: absolute; right: 12px; bottom: -36px; color: rgba(7, 19, 31, .045); font-family: var(--fde-serif); font-size: 126px; line-height: 1; }
.fde-card__tag { color: #936b3e; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.fde-card h3 { position: relative; z-index: 1; margin: 28px 0 14px; font-size: 24px; line-height: 1.38; }
.fde-card p { position: relative; z-index: 1; margin: 0; color: #5d6974; font-size: 14px; }
.fde-card a { position: relative; z-index: 2; display: inline-block; margin-top: 20px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.fde-section--dark .fde-card { background: #0b1c29; border-color: var(--fde-line-dark); }
.fde-section--dark .fde-card::after { color: rgba(255, 255, 255, .035); }
.fde-section--dark .fde-card p { color: #abb7c1; }
.fde-section--dark .fde-card__tag { color: var(--fde-accent); }

.fde-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fde-line-dark); border-left: 1px solid var(--fde-line-dark); }
.fde-flow__step { min-height: 330px; padding: 26px 23px; border-right: 1px solid var(--fde-line-dark); border-bottom: 1px solid var(--fde-line-dark); }
.fde-flow__step b { color: var(--fde-accent); font-size: 10px; letter-spacing: .18em; }
.fde-flow__step h3 { margin: 46px 0 15px; font-size: 22px; line-height: 1.35; }
.fde-flow__step p { margin: 0; color: #aeb9c3; font-size: 13px; }
.fde-flow__step small { display: block; margin-top: 22px; color: #778794; font-size: 11px; }

.fde-table-wrap { overflow-x: auto; border: 1px solid var(--fde-line); background: #fff; }
.fde-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.fde-table th, .fde-table td { padding: 17px 19px; border-bottom: 1px solid var(--fde-line); text-align: left; vertical-align: top; }
.fde-table th { width: 21%; background: #eee8de; font-size: 12px; letter-spacing: .05em; }
.fde-table thead th { width: auto; color: #fff; background: var(--fde-ink); }
.fde-table td { color: #4d5b66; font-size: 14px; }
.fde-table tr:last-child th, .fde-table tr:last-child td { border-bottom: 0; }

.fde-case-list { display: grid; gap: 18px; }
.fde-case {
  display: grid; grid-template-columns: 120px .9fr 1.15fr; gap: clamp(24px, 5vw, 68px);
  padding: 40px 0; border-top: 1px solid var(--fde-line);
}
.fde-case:last-child { border-bottom: 1px solid var(--fde-line); }
.fde-case__no { color: var(--fde-accent); font-family: var(--fde-serif); font-size: 66px; line-height: 1; }
.fde-case h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.4; }
.fde-case__meta { margin: 0; color: #7a5c39; font-size: 12px; font-weight: 800; }
.fde-case__body p { margin-top: 0; color: #56636e; }
.fde-case__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fde-case__facts span { padding: 11px 12px; border: 1px solid var(--fde-line); color: #42505b; font-size: 11px; font-weight: 800; text-align: center; }

.fde-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--fde-line); border: 1px solid var(--fde-line); }
.fde-plan { padding: 34px; background: #fff; }
.fde-plan--featured { background: var(--fde-ink); color: #fff; }
.fde-plan__label { color: #86633c; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.fde-plan--featured .fde-plan__label { color: var(--fde-accent); }
.fde-plan h3 { margin: 20px 0 6px; font-size: 25px; }
.fde-plan__price { margin: 0; font-family: var(--fde-sans); font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fde-plan__price small { font-family: var(--fde-sans); font-size: 12px; }
.fde-plan ul { margin: 24px 0 0; padding: 0; list-style: none; }
.fde-plan li { padding: 10px 0; border-top: 1px solid var(--fde-line); color: #586570; font-size: 13px; }
.fde-plan--featured li { color: #c0cad2; border-color: var(--fde-line-dark); }

.fde-industry-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fde-industry-link {
  position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; color: #fff; text-decoration: none; background: #0a1824; overflow: hidden;
}
.fde-industry-link::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 11, 18, .96), rgba(3, 11, 18, .25)); }
.fde-industry-link > * { position: relative; }
.fde-industry-link b { color: var(--fde-accent); font-size: 10px; letter-spacing: .18em; }
.fde-industry-link strong { margin-top: 8px; font-family: var(--fde-serif); font-size: 29px; line-height: 1.3; }
.fde-industry-link span { margin-top: 10px; color: #c3cdd5; font-size: 13px; }
.fde-industry-link:hover { outline: 1px solid var(--fde-accent); outline-offset: -1px; }

.fde-faq { max-width: 980px; }
.fde-faq details { padding: 22px 0; border-top: 1px solid var(--fde-line); }
.fde-faq details:last-child { border-bottom: 1px solid var(--fde-line); }
.fde-faq summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 800; }
.fde-faq summary::-webkit-details-marker { display: none; }
.fde-faq summary::after { content: "+"; color: #8e6638; font-size: 24px; }
.fde-faq details[open] summary::after { content: "−"; }
.fde-faq p { max-width: 860px; margin: 15px 0 0; color: #596671; }

.fde-sourcebox { padding: 26px; border-left: 3px solid var(--fde-accent); background: #fff; color: #53616c; font-size: 13px; }
.fde-sourcebox strong { color: var(--fde-ink); }
.fde-sourcebox a { font-weight: 800; }

.fde-closing { color: var(--fde-ink); background: var(--fde-accent); }
.fde-closing__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.fde-closing h2 { font-size: clamp(43px, 6vw, 80px); }
.fde-closing p { max-width: 720px; font-size: 17px; }

.fde-footer { padding: 40px 0; color: #8997a3; background: #020a11; font-size: 12px; }
.fde-footer__grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.fde-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

body.theme--construction { --fde-accent: #e0a04c; --fde-accent-rgb: 224, 160, 76; }
body.theme--service { --fde-accent: #ca835c; --fde-accent-rgb: 202, 131, 92; }
body.theme--sales { --fde-accent: #e14a4c; --fde-accent-rgb: 225, 74, 76; }
body.theme--sales .fde-hero::after { background: linear-gradient(90deg, #e14a4c, #3269c8, transparent); }

.fde-vertical-intro { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 7vw, 92px); }
.fde-vertical-intro h2 { margin-top: 10px; }
.fde-vertical-intro__copy p { margin-top: 0; color: #53616c; }
.fde-workmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--fde-line); }
.fde-workmap__item { min-height: 240px; padding: 26px; background: #fff; border-right: 1px solid var(--fde-line); }
.fde-workmap__item:last-child { border-right: 0; }
.fde-workmap__item b { color: #8b653b; font-size: 10px; letter-spacing: .17em; }
.fde-workmap__item h3 { margin: 32px 0 12px; font-size: 21px; }
.fde-workmap__item p { margin: 0; color: #5e6b75; font-size: 13px; }
.fde-output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fde-output { padding: 26px; border: 1px solid var(--fde-line-dark); background: rgba(255, 255, 255, .035); }
.fde-output b { color: var(--fde-accent); font-size: 10px; letter-spacing: .17em; }
.fde-output h3 { margin: 10px 0; font-size: 21px; }
.fde-output p { margin: 0; color: #aeb9c3; font-size: 13px; }
.fde-case-focus { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--fde-line); }
.fde-case-focus__title { padding: clamp(30px, 5vw, 54px); background: var(--fde-ink); color: #fff; }
.fde-case-focus__title h3 { margin: 22px 0 12px; font-family: var(--fde-serif); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.3; }
.fde-case-focus__title p { color: #aeb9c3; }
.fde-case-focus__body { padding: clamp(30px, 5vw, 54px); background: #fff; }
.fde-case-focus__body dl { display: grid; grid-template-columns: 120px 1fr; gap: 0; margin: 0; }
.fde-case-focus__body dt, .fde-case-focus__body dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--fde-line); }
.fde-case-focus__body dt { color: #89643b; font-size: 11px; font-weight: 800; }
.fde-case-focus__body dd { color: #4f5d68; }

@media (max-width: 1000px) {
  :root { --fde-wrap: min(100% - 44px, 760px); }
  .fde-nav a:not(.fde-nav__cta) { display: none; }
  .fde-proofbar { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
  .fde-section__head, .fde-position, .fde-closing__grid, .fde-vertical-intro, .fde-case-focus { grid-template-columns: 1fr; }
  .fde-cards, .fde-plans, .fde-industry-links { grid-template-columns: 1fr 1fr; }
  .fde-flow { grid-template-columns: 1fr 1fr; }
  .fde-case { grid-template-columns: 82px 1fr; }
  .fde-case__body { grid-column: 1 / -1; }
  .fde-workmap { grid-template-columns: 1fr 1fr; }
  .fde-workmap__item { border-bottom: 1px solid var(--fde-line); }
  .fde-workmap__item:nth-child(2) { border-right: 0; }
}

@media (max-width: 640px) {
  :root { --fde-wrap: calc(100% - 28px); }
  body { font-size: 15px; }
  .fde-topbar { height: 66px; }
  .fde-brand img { width: 142px; height: 36px; }
  .fde-nav { gap: 8px; }
  .fde-nav__cta { min-height: 40px; padding: 0 12px; font-size: 10px !important; }
  .fde-hero { min-height: 760px; padding: 108px 0 50px; align-items: center; }
  .fde-hero::before { background: linear-gradient(0deg, rgba(2, 10, 18, .98) 0%, rgba(2, 10, 18, .86) 58%, rgba(2, 10, 18, .55) 100%); }
  .fde-hero__media img { object-position: 68% center; }
  .fde-kicker { font-size: 9px; letter-spacing: .16em; }
  .fde-kicker::before { width: 28px; }
  .fde-hero h1 { font-size: clamp(40px, 12.2vw, 56px); line-height: 1.08; }
  .fde-hero h1 span { font-size: .25em; letter-spacing: .08em; }
  .fde-hero__lead { font-size: 15px; line-height: 1.75; }
  .fde-actions { display: grid; }
  .fde-button { width: 100%; min-width: 0; }
  .fde-proofbar { grid-template-columns: 1fr 1fr; margin-top: 30px; }
  .fde-proof { min-height: 88px; padding: 13px; }
  .fde-proof strong { font-size: 23px; }
  .fde-section { padding: 68px 0; }
  .fde-section__head { gap: 22px; margin-bottom: 34px; }
  .fde-section h2 { font-size: clamp(36px, 10.8vw, 48px); overflow-wrap: anywhere; }
  .fde-section__intro { font-size: 15px; }
  .fde-direct { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .fde-direct p { font-size: 19px; }
  .fde-position__main, .fde-position__side { padding: 28px; }
  .fde-cards, .fde-plans, .fde-industry-links, .fde-flow, .fde-workmap, .fde-output-grid { grid-template-columns: 1fr; }
  .fde-card { min-height: 250px; }
  .fde-flow__step { min-height: 0; padding: 26px; }
  .fde-flow__step:last-child { grid-column: auto; }
  .fde-flow__step h3 { margin-top: 22px; }
  .fde-case { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; }
  .fde-case__body { grid-column: auto; }
  .fde-case__no { font-size: 48px; }
  .fde-case__facts { grid-template-columns: 1fr 1fr; }
  .fde-plan { padding: 28px; }
  .fde-industry-link { min-height: 220px; }
  .fde-workmap__item { min-height: 0; border-right: 0; }
  .fde-case-focus__title, .fde-case-focus__body { padding: 28px; }
  .fde-case-focus__body dl { grid-template-columns: 1fr; }
  .fde-case-focus__body dt { padding-bottom: 0; }
  .fde-case-focus__body dd { border-top: 0; padding-top: 4px; }
  .fde-faq summary { font-size: 17px; }
  .fde-footer__grid { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
