/* Fluen株式会社 コーポレートサイト */
:root {
  --navy: #17213b;
  --navy-2: #22305a;
  --ink: #222838;
  --muted: #5b6375;
  --paper: #f3f5f8;
  --white: #ffffff;
  --gold: #c8962f;
  --gold-soft: #f4ead3;
  --line: #d6dbe4;
  --wrap: 1120px;
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Poppins", var(--jp);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt" 1;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 8px 16px;
}
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo svg { height: 32px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav ul a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1.5px solid var(--navy); border-radius: 2px;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d9a948; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }

.menu-toggle { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; position: relative; }
  .menu-toggle summary {
    list-style: none; cursor: pointer; font-weight: 700;
    border: 1.5px solid var(--navy); padding: 6px 14px; border-radius: 2px;
  }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle[open] summary { background: var(--navy); color: var(--white); }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 14px);
    width: min(86vw, 320px); background: var(--white);
    border: 1px solid var(--line); padding: 16px 20px 20px;
    box-shadow: 0 12px 30px rgba(23, 33, 59, 0.12);
  }
  .menu-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
  .menu-panel li a {
    display: block; padding: 12px 0; text-decoration: none; font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .menu-panel .btn { width: 100%; margin-top: 10px; }
}

/* ---------- hero (home) ---------- */
.hero { background: var(--paper); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 88px 0 96px;
}
.tagline {
  font-family: var(--en); font-weight: 500; font-size: 15px;
  color: var(--gold); letter-spacing: 0.02em; margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(27px, 7.4vw, 46px); line-height: 1.42;
  font-weight: 900; color: var(--navy); margin: 0 0 28px;
  letter-spacing: 0.01em;
}
.hero h1 .nb { display: inline-block; white-space: nowrap; }
@media (min-width: 861px) { .hero h1 { font-size: clamp(34px, 3.7vw, 46px); } }
.hero p.lead { font-size: 17px; max-width: 34em; margin: 0 0 36px; color: var(--ink); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }

.chain { width: 100%; height: auto; }
.chain .edge { stroke: #b9c1cf; stroke-width: 1.5; fill: none; }
.chain .path {
  stroke: var(--gold); stroke-width: 3; fill: none; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 2.2s .4s ease-out forwards;
}
.chain .node rect { fill: var(--white); stroke: #b9c1cf; stroke-width: 1.2; }
.chain .node text { font-family: var(--jp); font-size: 13px; fill: var(--muted); }
.chain .node.on rect { stroke: var(--gold); stroke-width: 2; }
.chain .node.on text { fill: var(--navy); font-weight: 700; }
.chain .node.top rect { fill: var(--navy); stroke: var(--navy); }
.chain .node.top text { fill: var(--white); font-weight: 700; }
.chain .caption { font-family: var(--jp); font-size: 12px; fill: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chain .path { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero .visual { max-width: 460px; }
}

/* ---------- page head (sub pages) ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 64px 0 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 {
  font-size: clamp(30px, 3.8vw, 44px); line-height: 1.4; font-weight: 900;
  color: var(--navy); margin: 0;
}
.page-head .lead { font-size: 17px; max-width: 40em; margin: 20px 0 0; }
.page-head .sub { font-size: 20px; font-weight: 700; color: var(--navy); margin: 14px 0 0; line-height: 1.6; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section + .section { padding-top: 0; }
.section.alt { background: var(--paper); padding-top: 96px; }
.section.alt + .section { padding-top: 96px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2, .h2 {
  font-size: clamp(26px, 3vw, 34px); line-height: 1.45; font-weight: 900;
  color: var(--navy); margin: 0;
}
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 40em; }
.more { font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.more:hover { color: var(--gold); }

.prose { max-width: 42em; }
.prose p { margin: 0 0 1.4em; }
.prose h3 { font-size: 21px; color: var(--navy); margin: 2.2em 0 .6em; line-height: 1.55; }
.prose h2 { font-size: 26px; color: var(--navy); margin: 2.4em 0 .8em; line-height: 1.5; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold);
  font-size: 17px; color: var(--navy);
}
.prose ul { padding-left: 1.2em; }

/* about (home) */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.split .h2 { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* service list */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.svc-list > li { border-bottom: 1px solid var(--line); }
.svc-list a {
  display: grid; grid-template-columns: 300px 1fr 40px; gap: 32px;
  padding: 36px 0; text-decoration: none; align-items: start;
}
.svc-list h3 { font-size: 24px; color: var(--navy); margin: 0 0 8px; line-height: 1.4; }
.svc-list .desc { margin: 0; color: var(--muted); font-size: 15px; }
.svc-list .menu { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 4px 0 0; padding: 0; }
.svc-list .menu li {
  font-size: 14px; padding: 4px 12px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px;
}
.svc-list .go {
  width: 40px; height: 40px; border: 1.5px solid var(--navy); border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  transition: background-color .15s;
}
.svc-list .go svg { width: 14px; height: 14px; stroke: var(--navy); }
.svc-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.svc-list a:hover .go { background: var(--navy); }
.svc-list a:hover .go svg { stroke: var(--white); }
@media (max-width: 860px) {
  .svc-list a { grid-template-columns: 1fr 40px; gap: 16px; padding: 28px 0; }
  .svc-list .menu { grid-column: 1 / -1; grid-row: 2; }
  .svc-list .go { grid-column: 2; grid-row: 1; }
}

/* case list */
.case-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.case-list li { border-bottom: 1px solid var(--line); }
.case-list a {
  display: grid; grid-template-columns: 120px 1fr 120px; gap: 24px;
  padding: 26px 0; text-decoration: none; align-items: baseline;
}
.case-list .tag { font-size: 13px; color: var(--gold); font-weight: 700; }
.case-list .title { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.case-list .meta { font-size: 13px; color: var(--muted); text-align: right; }
.case-list a:hover .title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
@media (max-width: 720px) {
  .case-list a { grid-template-columns: 1fr; gap: 4px; }
  .case-list .meta { text-align: left; }
}

/* problems */
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.problems li {
  position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.problems li::before {
  content: ""; position: absolute; left: 0; top: 26px; width: 18px; height: 10px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}
@media (max-width: 720px) { .problems { grid-template-columns: 1fr; } }

/* menu table */
.menu-table { margin: 0; border-top: 1px solid var(--navy); }
.menu-table > div {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.menu-table dt { font-weight: 700; color: var(--navy); font-size: 18px; }
.menu-table dd { margin: 0; color: var(--ink); }
@media (max-width: 720px) { .menu-table > div { grid-template-columns: 1fr; gap: 6px; } }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
.features.three { grid-template-columns: repeat(3, 1fr); }
.features h3 {
  font-size: 20px; line-height: 1.55; color: var(--navy); margin: 0 0 12px;
  padding-top: 18px; border-top: 3px solid var(--gold);
}
.features p { margin: 0; }
@media (max-width: 860px) { .features, .features.three { grid-template-columns: 1fr; gap: 36px; } }

/* flow (sequential) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.flow li { position: relative; padding: 0 20px 0 0; counter-increment: step; }
.flow li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--en); font-weight: 600; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.flow li::after {
  content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1.5px; background: var(--line);
}
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.flow p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .flow li { padding: 0 0 0 64px; }
  .flow li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow li::after { display: none; }
}

/* company table */
.company { margin: 0; border-top: 1px solid var(--navy); }
.company > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company dt { font-weight: 700; color: var(--navy); }
.company dd { margin: 0; }
@media (max-width: 600px) { .company > div { grid-template-columns: 1fr; gap: 4px; } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.mv .label { font-size: 14px; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.mv .big { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: var(--navy); line-height: 1.55; margin: 0; }
@media (max-width: 720px) { .mv { grid-template-columns: 1fr; gap: 36px; } }

.signature { margin-top: 2em; text-align: right; }
.signature .role { font-size: 14px; color: var(--muted); display: block; }
.signature .name { font-size: 22px; font-weight: 700; color: var(--navy); }
.signature .en { font-family: var(--en); font-size: 13px; color: var(--muted); display: block; }

/* case detail */
.case-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 18px; }
.case-meta .tag { color: var(--gold); font-weight: 700; }

/* positions */
.positions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.positions a {
  display: flex; flex-direction: column; height: 100%;
  padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--navy);
  text-decoration: none; background: var(--white);
}
.positions a:hover { border-top-color: var(--gold); }
.positions .kind { font-size: 13px; color: var(--gold); font-weight: 700; }
.positions h3 { font-size: 21px; color: var(--navy); margin: 4px 0 12px; }
.positions p { margin: 0 0 16px; font-size: 15px; }
.positions ul { margin: auto 0 0; padding-left: 1.1em; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .positions { grid-template-columns: 1fr; } }

.steps-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; counter-reset: s; }
.steps-inline li {
  counter-increment: s; padding: 12px 18px; background: var(--white); border: 1px solid var(--line);
  font-weight: 500;
}
.steps-inline li::before { content: counter(s) ". "; color: var(--gold); font-weight: 700; }
.steps-inline small { display: block; color: var(--muted); font-weight: 400; }

/* forms */
.form-box { max-width: 720px; background: var(--white); border: 1px solid var(--line); padding: 40px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-fallback { padding: 20px; background: var(--paper); border-left: 3px solid var(--gold); }
@media (max-width: 600px) { .form-box { padding: 24px; } }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.cta-band a {
  display: block; padding: 64px 48px 64px 0; text-decoration: none;
}
.cta-band a + a { padding-left: 48px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.cta-band h2 { font-size: 26px; margin: 0 0 10px; }
.cta-band p { margin: 0 0 22px; color: #c9d0de; font-size: 15px; }
.cta-band .arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gold);
}
.cta-band a:hover h2 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
@media (max-width: 720px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band a, .cta-band a + a { padding: 44px 0; border-left: 0; }
  .cta-band a + a { border-top: 1px solid rgba(255, 255, 255, 0.18); }
}

/* footer */
.site-footer { background: #0f1729; color: #c9d0de; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding: 56px 0 32px; }
.site-footer .logo svg { height: 30px; }
.site-footer address { font-style: normal; margin-top: 18px; line-height: 1.8; }
.foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-nav p { color: var(--white); font-weight: 700; margin: 0 0 10px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 6px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--white); text-decoration: underline; }
.copy {
  grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px;
}
.copy a { text-decoration: none; }
.copy a:hover { color: var(--white); }
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
}

/* photos */
.ceo-photo { display: block; margin-top: 32px; max-width: 360px; }
.ceo-photo img { width: 100%; height: auto; border-radius: 2px; }
@media (max-width: 860px) { .ceo-photo { max-width: 280px; margin-top: 20px; } }

.page-head.has-photo .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 56px 0; }
.head-photo { display: block; }
.head-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (max-width: 860px) {
  .page-head.has-photo .wrap { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
}
