/* =========================================================
   FYC合同会社 コーポレートサイト
   Design tokens → Base → Layout → Components → Sections
   ========================================================= */
:root {
  --navy-900: #071428;
  --navy-800: #0b1f3a;
  --navy-700: #12305a;
  --teal: #19c3b1;
  --teal-dark: #0e9a8b;
  --sky: #4aa8ff;
  --ink: #16202e;
  --muted: #5b6676;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--sky) 100%);
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Montserrat", var(--font-ja);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .08);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 16px; z-index: 1000; }
.skip:focus { left: 16px; }
.sp { display: none; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 48px); }
.section { padding: clamp(80px, 12vw, 140px) 0; }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head__en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: .02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.sec-head__ja { font-size: 1rem; font-weight: 700; margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.sec-head__ja::before { content: ""; width: 28px; height: 2px; background: var(--ink); }
.sec-head__lead { margin-top: 24px; color: var(--muted); }
.sec-head--light .sec-head__ja { color: #fff; }
.sec-head--light .sec-head__ja::before { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 200px; padding: 16px 32px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn::after { content: "→"; transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(25, 195, 177, .35); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--white { background: #fff; color: var(--navy-800); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.header__inner { height: 100%; width: min(1280px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; color: #fff; transition: color .4s; }
.header.is-scrolled .logo { color: var(--navy-800); }
.logo__mark { font-family: var(--font-en); font-weight: 800; font-size: 1.7rem; letter-spacing: .04em; }
.logo__text { font-family: var(--font-en); font-weight: 500; font-size: .95rem; }
.logo__mark::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-left: 3px; }

.gnav ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.gnav a {
  font-family: var(--font-en); font-weight: 700; font-size: .82rem; letter-spacing: .1em;
  text-decoration: none; color: #fff; position: relative; transition: color .4s;
}
.header.is-scrolled .gnav a { color: var(--navy-800); }
.gnav a:not(.gnav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav__cta { padding: 10px 22px; border-radius: 999px; background: var(--grad); color: #fff !important; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; z-index: 110; }
.burger span { position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s, background .3s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 28px; }
.header.is-scrolled .burger span { background: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  background: radial-gradient(1200px 600px at 80% 20%, #16407a 0%, transparent 60%), var(--navy-900);
  color: #fff; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,20,40,.85) 0%, rgba(7,20,40,.35) 60%, rgba(7,20,40,.1) 100%); }
.hero__content { position: relative; width: min(1120px, 100% - 48px); margin-inline: auto; padding-top: var(--header-h); }
.hero__eyebrow { font-family: var(--font-en); font-weight: 700; letter-spacing: .3em; color: var(--teal); font-size: .9rem; }
.hero__title { font-family: var(--font-en); font-weight: 800; font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: 1.02; letter-spacing: -.01em; margin: 16px 0 28px; }
.hero__title .line { display: block; overflow: hidden; animation: rise 1.1s var(--ease) both; }
.hero__title .line + .line { animation-delay: .15s; }
.hero__title .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(.95rem, 1.8vw, 1.15rem); line-height: 2; opacity: .92; animation: fade 1.2s .5s both; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; animation: fade 1.2s .7s both; }
.hero__scroll {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: 0; writing-mode: vertical-rl;
  font-family: var(--font-en); font-size: .7rem; letter-spacing: .3em; color: #fff; text-decoration: none;
  padding-bottom: 90px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 80px; background: rgba(255,255,255,.3);
}
.hero__scroll span::after {
  content: ""; position: absolute; left: calc(50% - 3px); bottom: 74px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); animation: scrolldot 2s infinite var(--ease);
}
@keyframes rise { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(74px); opacity: 0; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__catch { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.6; letter-spacing: .08em; }
.about__body p + p { margin-top: 1.4em; }
.about__body { color: #2b3645; }
.about__origin {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 2.2em !important;
  padding: 14px 22px; border-radius: var(--radius); background: var(--bg-soft);
  font-family: var(--font-en); font-weight: 500;
}
.about__origin span { font-family: var(--font-ja); font-size: .8rem; color: var(--muted); }
.about__origin strong { color: var(--teal-dark); font-weight: 800; }

/* ---------- MVV ---------- */
.mvv { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.mvv::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25,195,177,.22), transparent 65%);
}
.mvv .container { position: relative; }
.mvv__label { font-family: var(--font-en); font-weight: 700; font-size: .8rem; letter-spacing: .3em; color: var(--teal); }
.mvv__purpose { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.15); }
.mvv__purpose-text { font-family: var(--font-en); font-weight: 800; font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.2; margin-top: 8px; }
.mvv__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv__item {
  padding: 36px 32px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: background .3s, transform .3s var(--ease);
}
.mvv__item:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.mvv__item h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.7; margin: 14px 0 16px; }
.mvv__item h3 small { font-size: .85rem; font-weight: 500; opacity: .8; }
.mvv__item p:last-child { font-size: .9rem; color: rgba(255,255,255,.75); }

/* ---------- Service ---------- */
.service { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 40px 36px;
  box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11,31,58,.12); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(25,195,177,.1); display: grid; place-items: center; }
.card__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--teal-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card__num { position: absolute; top: 28px; right: 32px; font-family: var(--font-en); font-weight: 800; font-size: 2.6rem; color: var(--bg-soft); line-height: 1; }
.card__title { font-size: 1.25rem; margin: 22px 0 12px; }
.card__text { color: var(--muted); font-size: .95rem; }

/* ---------- Strength ---------- */
.strength__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.strength__list li { padding: 40px 32px 8px; border-right: 1px solid var(--line); }
.strength__list li:last-child { border-right: 0; }
.strength__no { font-family: var(--font-en); font-weight: 800; font-size: 1rem; color: var(--teal-dark); }
.strength__list h3 { font-size: 1.2rem; margin: 10px 0 12px; }
.strength__list p { color: var(--muted); font-size: .95rem; }

/* ---------- Message ---------- */
.message { background: var(--bg-soft); }
.message__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.message__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; color: rgba(255,255,255,.4); font-family: var(--font-en); letter-spacing: .3em;
}
.message__photo { margin: 0; }
.message__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.message__photo::after { z-index: 2; opacity: .6; mix-blend-mode: screen; pointer-events: none; content: ""; position: absolute; inset: auto -20% -30% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(25,195,177,.45), transparent 65%); }
.message__catch { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.7; margin-bottom: 28px; }
.message__body > p + p { margin-top: 1.2em; }
.message__body > p:not(.message__catch):not(.message__sign) { color: #2b3645; }
.message__sign { margin-top: 32px !important; text-align: right; font-size: .9rem; color: var(--muted); }
.message__sign strong { display: block; font-size: 1.4rem; color: var(--ink); letter-spacing: .2em; margin-top: 4px; }

/* ---------- Company ---------- */
.company__table dl { margin: 0; border-top: 2px solid var(--navy-800); }
.company__table dl > div { display: grid; grid-template-columns: 260px 1fr; border-bottom: 1px solid var(--line); }
.company__table dt { padding: 24px 24px 24px 8px; font-weight: 700; }
.company__table dd { margin: 0; padding: 24px 8px; }
.company__table dd small { color: var(--muted); }
.company__table dd a { color: var(--teal-dark); }
.company__table .todo { color: #c0392b; }

/* ---------- News ---------- */
.news { padding-top: 0; }
.news__list li {
  display: grid; grid-template-columns: 120px 110px 1fr; align-items: center; gap: 16px;
  padding: 24px 8px; border-bottom: 1px solid var(--line);
}
.news__list li:first-child { border-top: 1px solid var(--line); }
.news__list time { font-family: var(--font-en); font-weight: 500; color: var(--muted); }
.news__list .tag { font-size: .75rem; text-align: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--teal-dark); color: var(--teal-dark); }
.news__list a { text-decoration: none; transition: color .2s; }
.news__list a:hover { color: var(--teal-dark); }

/* ---------- Recruit ---------- */
.recruit {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background:
    radial-gradient(800px 400px at 15% 110%, rgba(25,195,177,.5), transparent 60%),
    radial-gradient(800px 400px at 90% -10%, rgba(74,168,255,.45), transparent 60%),
    var(--navy-800);
}
.recruit__inner { width: min(860px, 100% - 48px); margin-inline: auto; padding: clamp(96px, 14vw, 160px) 0; }
.recruit__en { font-family: var(--font-en); font-weight: 800; font-size: clamp(3rem, 10vw, 7rem); line-height: 1; opacity: .12; letter-spacing: .05em; }
.recruit__title { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.6; margin: -0.6em 0 24px; position: relative; }
.recruit__text { opacity: .85; margin-bottom: 40px; }

/* ---------- Contact form ---------- */
.form__row { margin-bottom: 24px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.req { display: inline-block; margin-left: 8px; font-size: .7rem; padding: 0 8px; border-radius: 4px; background: var(--teal-dark); color: #fff; vertical-align: 2px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(25,195,177,.15); }
.form .is-invalid { border-color: #d64545 !important; }
.form__agree label { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.form__agree a { color: var(--teal-dark); }
.form__status { min-height: 1.5em; margin-bottom: 12px; font-size: .9rem; }
.form__status.is-error { color: #d64545; }
.form__status.is-ok { color: var(--teal-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 72px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.logo--footer { color: #fff; }
.footer__purpose { font-family: var(--font-en); font-weight: 700; margin-top: 4px; color: var(--teal); }
.footer__addr { margin-top: 20px; font-size: .85rem; }
.footer__nav { display: grid; grid-template-columns: repeat(4, auto); gap: 14px 40px; align-content: start; }
.footer__nav a { font-family: var(--font-en); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-decoration: none; }
.footer__nav a:hover { color: var(--teal); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.footer__bottom a { text-decoration: none; }

.totop {
  position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; color: #fff; background: var(--grad);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s var(--ease); z-index: 90;
}
.totop.is-show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .mvv__list, .strength__list { grid-template-columns: 1fr; }
  .strength__list li { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 8px; }
  .about__grid, .message__inner { grid-template-columns: 1fr; }
  .message__visual { max-width: 360px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .gnav {
    position: fixed; inset: 0; background: rgba(7,20,40,.97); display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .gnav ul { flex-direction: column; gap: 28px; }
  .gnav a, .header.is-scrolled .gnav a { color: #fff; font-size: 1.1rem; }
  body.nav-open .gnav { opacity: 1; visibility: visible; }
  body.nav-open .burger span { background: #fff; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open .logo { color: #fff; }
}
@media (max-width: 640px) {
  .container, .container--narrow, .hero__content, .header__inner { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .company__table dl > div { grid-template-columns: 1fr; }
  .company__table dt { padding: 18px 8px 0; color: var(--teal-dark); font-size: .85rem; }
  .company__table dd { padding: 4px 8px 18px; }
  .news__list li { grid-template-columns: auto auto; gap: 6px 12px; }
  .news__list li a { grid-column: 1 / -1; }
  .form__row--2 { grid-template-columns: 1fr; }
  .btn { min-width: 0; width: 100%; }
  .hero__btns { flex-direction: column; }
  .hero__scroll { display: none; }
  .footer__nav { grid-template-columns: repeat(2, auto); }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .sp { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
