/* ==========================================================================
   株式会社FLOS  スタイルシート
   ビルド不要。このファイルを直接編集して保存・アップロードすれば反映されます。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン
   色を変えたいときは、まずここだけ触れば全体に反映されます。
   -------------------------------------------------------------------------- */
:root {
  --background:        hsl(210 20% 98%);
  --foreground:        hsl(220 40% 10%);
  --muted-foreground:  hsl(215 15% 40%);
  --border:            hsl(220 15% 90%);

  --blue:              #2563eb;
  --blue-dark:         #1d4ed8;
  --indigo:            #4f46e5;
  --slate-50:          #f8fafc;

  /* ロゴの花びらから取ったブランドカラー。事業ごとの識別色に使っています */
  --petal-blue:        #0377BE;
  --petal-purple:      #685B9D;
  --petal-green:       #058A49;
  --petal-orange:      #DB7A1E;

  --container:         1200px;
  --container-narrow:  1024px;

  --font: "Manrope", "Noto Sans JP", sans-serif;
}

/* --------------------------------------------------------------------------
   2. ベース
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: #dbeafe; color: #1e3a8a; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .75rem 1.25rem; background: #fff; border-radius: 0 0 .75rem 0;
  box-shadow: 0 4px 20px rgba(15,23,42,.15); font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 1.5rem;
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.grad-text {
  background-image: linear-gradient(to right, var(--blue), var(--indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent { color: var(--blue); }

.eyebrow {
  display: block;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--dark { color: var(--muted-foreground); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   3. 共通セクション見出し
   -------------------------------------------------------------------------- */
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--center { text-align: center; margin-bottom: 3rem; }

.ghost-title {
  font-size: clamp(3.5rem, 11vw, 6rem);
  font-weight: 800; letter-spacing: -.05em;
  opacity: .09; margin-bottom: 1rem;
}

.section__head-row {
  display: flex; flex-direction: column; gap: 1.75rem;
  margin-top: clamp(-3rem, -5vw, -1.75rem);
}

.section__headline {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  font-weight: 700; line-height: 1.4; max-width: 46rem;
  letter-spacing: -.02em;
  line-break: strict; text-wrap: pretty;
}

.section__note { color: var(--muted-foreground); max-width: 24rem; }

@media (min-width: 900px) {
  .section__head-row {
    flex-direction: row; align-items: flex-end; justify-content: space-between;
  }
  .section__note { text-align: right; }
}

/* --------------------------------------------------------------------------
   4. ナビゲーション
   -------------------------------------------------------------------------- */
.nav { position: fixed; top: 1.5rem; left: 0; right: 0; z-index: 50; }

.nav__inner {
  width: 100%; max-width: var(--container-narrow);
  margin-inline: auto; padding: 1rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  transition: background-color .4s, box-shadow .4s, border-color .4s, padding .4s;
}
.nav.is-scrolled .nav__inner {
  background-color: rgba(255,255,255,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  padding-block: .75rem;
}

.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .625rem; }
.logo__img  { height: 2.75rem; width: auto; }
.logo__text { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }

.nav__links { display: none; align-items: center; gap: .125rem; }
.nav__links a {
  padding: .5rem 1.125rem; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: rgba(15,26,36,.7);
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--foreground); background-color: rgba(255,255,255,.6); }

.nav__toggle {
  display: inline-flex; padding: .5rem; border: 0;
  background: none; color: var(--foreground); cursor: pointer;
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu  { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__menu {
  width: calc(100% - 3rem); max-width: var(--container-narrow);
  margin: .75rem auto 0; padding: .75rem;
  display: flex; flex-direction: column; gap: .25rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.35); border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.1);
}
.nav__menu[hidden] { display: none; }
.nav__menu a { padding: .75rem 1rem; border-radius: .75rem; font-weight: 500; }
.nav__menu a:hover { background: rgba(15,26,36,.05); }

@media (min-width: 900px) {
  .nav__links  { display: flex; }
  .nav__toggle { display: none; }
  .nav__menu   { display: none !important; }
}

/* --------------------------------------------------------------------------
   5. ヒーロー
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 9rem; padding-bottom: 5rem; overflow: hidden;
  background-color: #fff;
  background-image:
    radial-gradient(at 80% 0,    #d8e5fd 0, transparent 50%),
    radial-gradient(at 0% 50%,   #dbedff 0, transparent 50%),
    radial-gradient(at 80% 50%,  #e6edff 0, transparent 50%),
    radial-gradient(at 0 100%,   #ebf5ff 0, transparent 50%),
    radial-gradient(at 80% 100%, #f5f8ff 0, transparent 50%),
    radial-gradient(at 0 0,      #f5faff 0, transparent 50%);
}

.hero__bg {
  position: absolute; inset: 0 0 0 auto;
  width: 58%; height: 100%; z-index: 0;
  opacity: .8; mix-blend-mode: multiply; pointer-events: none;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
.hero__bg-fade { display: none; }

.hero__grid { position: relative; z-index: 10; }
.hero__content { display: flex; flex-direction: column; gap: 1.75rem; }
.hero__title-block { display: flex; flex-direction: column; gap: .5rem; }

.hero__brand {
  font-size: clamp(4.5rem, 17vw, 9.5rem);
  font-weight: 800; letter-spacing: -.05em; line-height: .9; margin-left: -.04em;
}

.hero__tagline {
  font-size: clamp(1.75rem, 4.8vw, 2.875rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  color: var(--muted-foreground); text-wrap: balance;
}

.hero__lead {
  font-size: 1.125rem; font-weight: 300; line-height: 1.9;
  max-width: 34rem; color: rgba(15,26,36,.8);
}
.hero__lead b { font-weight: 600; color: var(--foreground); }

.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__tags li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4375rem .875rem;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15,26,36,.07);
  border-radius: 999px;
  font-size: .8125rem; font-weight: 600;
}
.hero__tags li::before {
  content: ""; width: .5rem; height: .5rem;
  border-radius: 999px; background: var(--petal);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: .75rem; }

.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; gap: .75rem;
  height: 3.5rem; padding-inline: 1.75rem;
  border-radius: 999px; font-weight: 600;
  transition: background-color .3s, transform .3s, box-shadow .3s;
}
.btn-solid {
  background-color: var(--foreground); color: #fff;
  box-shadow: 0 8px 24px rgba(15,26,36,.18);
}
.btn-solid:hover { background-color: #1c2a3d; transform: translateY(-2px); }
.btn-solid svg { width: 18px; height: 18px; }

.btn-ghost { border: 1px solid rgba(15,26,36,.12); font-weight: 500; padding-inline: 1.5rem; }
.btn-ghost:hover { background-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.btn-ghost__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px;
  background-color: rgba(15,26,36,.05); transition: background-color .3s;
}
.btn-ghost__arrow svg { width: 16px; height: 16px; }
.btn-ghost:hover .btn-ghost__arrow { background-color: rgba(15,26,36,.1); }

@media (min-width: 900px) {
  .hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; }
}
@media (max-width: 899px) {
  .hero__bg { width: 100%; opacity: .3; }
  .hero__bg img {
    -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 45%);
            mask-image: linear-gradient(to top, transparent 2%, #000 45%);
  }
}

/* --------------------------------------------------------------------------
   6. 事業内容
   -------------------------------------------------------------------------- */
.services { position: relative; background-color: var(--slate-50); overflow: hidden; }
.services__blob { position: absolute; border-radius: 999px; filter: blur(80px); pointer-events: none; }
.services__blob--a { top: -20%; right: -10%; width: 50%; height: 50%; background: rgba(219,234,254,.5); }
.services__blob--b { bottom: -10%; left: -10%; width: 40%; height: 40%; background: rgba(224,231,255,.5); }
.services .container { position: relative; z-index: 10; }

.services__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .services__grid { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative; overflow: hidden;
  padding: 2.5rem 2.25rem 2.25rem;
  background-color: rgba(255,255,255,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 1.5rem;
  transition: background-color .5s, box-shadow .5s, transform .5s;
}
.card:hover {
  background-color: #fff;
  box-shadow: 0 25px 50px -12px rgba(30,58,138,.1);
  transform: translateY(-4px);
}

/* 事業ごとの識別色。上端のレールに出ます */
.card__rail {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--petal); opacity: .85;
}

.card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; margin-bottom: 1.75rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--petal) 10%, #fff);
  color: var(--petal);
  transition: transform .5s;
}
.card__icon svg { width: 1.75rem; height: 1.75rem; }
.card:hover .card__icon { transform: scale(1.08); }

.card__sub {
  display: block; margin-bottom: .5rem;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--petal);
}

.card__title { font-size: 1.625rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -.01em; }

.card__desc { line-height: 1.95; color: var(--muted-foreground); margin-bottom: 1.5rem; }

.card__list {
  display: grid; gap: .625rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(15,26,36,.07);
}
.card__list li {
  position: relative; padding-left: 1.375rem;
  font-size: .9375rem; color: var(--muted-foreground);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .5rem;
  width: .375rem; height: .375rem; border-radius: 999px;
  background: var(--petal); opacity: .5;
}

/* --------------------------------------------------------------------------
   7. FLOSの強み
   -------------------------------------------------------------------------- */
.strengths { background-color: #fff; }

.strengths__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .strengths__grid { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  padding: 2.25rem 2rem;
  border: 1px solid var(--border); border-radius: 1.25rem;
  background: var(--slate-50);
  transition: transform .4s, box-shadow .4s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,23,42,.15); }

/* ロゴの花びらの弧をそのまま目印に使っています */
.pillar__mark { display: block; width: 3.25rem; height: 3.25rem; margin-bottom: 1.75rem; color: var(--petal); }
.pillar__mark svg { width: 100%; height: 100%; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.pillar:hover .pillar__mark svg { transform: scale(1.1) rotate(8deg); }
.strengths__grid .pillar:nth-child(1):hover .pillar__mark svg { transform: rotate(20deg)  scale(1.08); }
.strengths__grid .pillar:nth-child(2):hover .pillar__mark svg { transform: rotate(140deg) scale(1.08); }
.strengths__grid .pillar:nth-child(3):hover .pillar__mark svg { transform: rotate(260deg) scale(1.08); }

.pillar__title { font-size: 1.25rem; font-weight: 700; margin-bottom: .875rem; }
.pillar__desc { line-height: 1.95; color: var(--muted-foreground); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   8. 支援の進め方
   -------------------------------------------------------------------------- */
.process { background-color: var(--slate-50); }

.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.step { position: relative; padding-top: 1.75rem; border-top: 1px solid rgba(15,26,36,.15); }

/* 細い大きな数字。見出しの太さとの対比が狙いです */
.step__num {
  display: block; margin-bottom: 1rem;
  font-size: 3.25rem; font-weight: 200;
  letter-spacing: -.04em; line-height: 1;
  color: var(--blue);
}

.step__title { font-size: 1.125rem; font-weight: 700; margin-bottom: .75rem; }
.step__desc { font-size: .9375rem; line-height: 1.9; color: var(--muted-foreground); }

/* --------------------------------------------------------------------------
   9. 私たちについて / 会社概要
   -------------------------------------------------------------------------- */
.about { background-color: #fff; }

.about__grid { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.about__title { font-size: 2.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.about__sub {
  font-size: 1.375rem; font-weight: 500; line-height: 1.7;
  color: var(--muted-foreground); margin-bottom: 2rem;
}
.about__body { line-height: 2.1; color: var(--muted-foreground); }
.about__body + .about__body { margin-top: 1.5rem; }

.profile { padding: 2.25rem; background-color: var(--slate-50); border: 1px solid var(--border); border-radius: 1.25rem; }
.profile__title {
  font-size: 1.25rem; font-weight: 700;
  padding-bottom: 1rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(220,225,235,.7);
}
.profile__list { display: flex; flex-direction: column; gap: 1.5rem; }
.profile__row { display: grid; gap: .375rem; }
.profile__row dt { font-weight: 500; color: var(--muted-foreground); font-size: .9375rem; }
.profile__row dd { font-weight: 500; line-height: 1.8; }
@media (min-width: 640px) { .profile__row { grid-template-columns: 1fr 2fr; gap: 1rem; } }

/* --------------------------------------------------------------------------
   10. よくあるご質問
   -------------------------------------------------------------------------- */
.faq { background-color: var(--slate-50); }
.faq__wrap { max-width: 52rem; }
.faq__title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; }

.faq__list { display: flex; flex-direction: column; gap: .875rem; }

.qa {
  background: #fff; border: 1px solid var(--border); border-radius: 1rem;
  transition: box-shadow .3s, border-color .3s;
}
.qa[open] { border-color: rgba(37,99,235,.3); box-shadow: 0 12px 30px -18px rgba(15,23,42,.25); }

.qa summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.375rem 1.5rem; cursor: pointer;
  font-weight: 600; line-height: 1.7; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 1.125rem; height: 1.125rem; margin-top: .3125rem;
  background: currentColor; color: var(--blue);
  transition: transform .3s;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
          mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.qa[open] summary::after { transform: rotate(135deg); }

.qa__body { padding: 0 1.5rem 1.5rem; }
.qa__body p { line-height: 2; color: var(--muted-foreground); }

/* --------------------------------------------------------------------------
   11. フッター
   -------------------------------------------------------------------------- */
.footer { background-color: #fff; border-top: 1px solid var(--border); }

.footer__grid {
  display: grid; gap: 3rem;
  padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 3rem;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.2fr 1fr; } }

.footer__addr { margin-top: 1.25rem; font-size: .875rem; line-height: 1.9; color: var(--muted-foreground); }

.footer__navtitle {
  font-size: .75rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 1.25rem;
}
.footer__nav ul { display: grid; gap: .75rem; }
@media (min-width: 480px) { .footer__nav ul { grid-template-columns: 1fr 1fr; } }
.footer__nav a { font-size: .9375rem; color: var(--muted-foreground); transition: color .2s; }
.footer__nav a:hover { color: var(--blue); }

.footer__base {
  padding-block: 1.5rem; border-top: 1px solid var(--border);
  text-align: center; font-size: .8125rem; color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   12. 表示アニメーション
   -------------------------------------------------------------------------- */
.reveal-load { opacity: 0; transform: translateY(30px); animation: rise .8s cubic-bezier(.22,1,.36,1) forwards; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 同じ列に並ぶ要素を少しずつ遅らせて出します */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
