/* =========================================================
   agk Co., Ltd. — Corporate Site
   ========================================================= */

:root {
  --ink: #111111;
  --ink-2: #3a3a3a;
  --mute: #6f6f6f;
  --paper: #fafaf7;
  --paper-2: #f1f0eb;
  --line: rgba(17, 17, 17, 0.12);
  --red: #ec1c24;
  --red-dark: #c8141b;
  --dark: #0e0e0e;

  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(96px, 13vw, 168px);
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 34px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--red); }
.btn__arrow { font-family: var(--font-en); transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { padding: 11px 22px; font-size: 13px; }
.btn--block { width: 100%; padding: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: color .3s var(--ease);
}
.link-arrow::after { content: "→"; font-family: var(--font-en); transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light:hover { color: #fff; opacity: .7; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(250, 250, 247, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 100%; max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.header__logo img { width: auto; height: 48px; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.nav__list a { position: relative; padding: 4px 0; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none; position: relative; z-index: 120;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .header__logo img { height: 38px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 48px;
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav__list { flex-direction: column; align-items: center; gap: 24px; font-size: 28px; font-weight: 600; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 64px) 0 clamp(56px, 8vw, 96px);
}
.hero__inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero__title {
  font-size: clamp(40px, 8.2vw, 116px);
  font-weight: 900; line-height: 1.16; letter-spacing: -0.01em;
}
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--red); }
.hero__bottom {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) { .hero__bottom { grid-template-columns: 1fr auto; gap: 64px; } }
.hero__lead { font-size: clamp(14px, 1.3vw, 16px); color: var(--ink-2); line-height: 2.1; max-width: 640px; }
.hero__cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero__en {
  position: absolute; right: calc(var(--gutter) * -0.3); top: calc(var(--header-h) + 8px);
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(80px, 17vw, 260px); line-height: 0.86; letter-spacing: -0.05em;
  text-align: right; color: transparent;
  -webkit-text-stroke: 1px rgba(17, 17, 17, 0.08);
  pointer-events: none; user-select: none;
}
@media (max-width: 899px) { .hero__en { top: auto; bottom: 46%; font-size: 26vw; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--red); color: #fff; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center;
  font-family: var(--font-en); font-size: clamp(18px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap; padding: 0 28px;
}
.marquee span::after { content: "/"; margin-left: 56px; opacity: .45; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections (shared) ---------- */
.section { padding: var(--section-y) 0; }
.section__head { margin-bottom: clamp(48px, 7vw, 88px); }
.section__label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 24px;
}
.section__label span { color: var(--red); }
.section__label::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .35; }
.section__title { font-size: clamp(30px, 4.6vw, 60px); font-weight: 900; line-height: 1.3; letter-spacing: 0.01em; }
.section__title--oneline { white-space: nowrap; font-size: min(clamp(30px, 4.6vw, 60px), 7.4vw); }

/* ---------- About ---------- */
.about__body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about__body { grid-template-columns: 1fr 1fr; } .about__text { grid-column: 2; } }
.about__text { font-size: clamp(15px, 1.4vw, 17px); line-height: 2.2; color: var(--ink-2); }
.strengths {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .strengths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .strengths { grid-template-columns: repeat(4, 1fr); } }
.strength { padding: 40px 28px 40px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) {
  .strength { padding: 48px 32px 8px; border-bottom: 0; border-left: 1px solid var(--line); }
  .strength:first-child { border-left: 0; padding-left: 0; }
}
.strength__num { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 20px; }
.strength__title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.strength__text { font-size: 14px; color: var(--mute); line-height: 2; }

/* ---------- Services ---------- */
.services { background: var(--paper-2); }
.service-list { border-top: 1px solid var(--ink); }
.service {
  display: grid; gap: 16px 40px;
  grid-template-columns: 1fr;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
@media (min-width: 900px) {
  .service { grid-template-columns: 80px 1fr 1.15fr; align-items: start; }
}
.service__num { font-family: var(--font-en); font-size: 15px; font-weight: 700; color: var(--red); padding-top: 6px; }
.service__en {
  font-family: var(--font-en); font-size: clamp(24px, 2.8vw, 36px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px;
  transition: color .3s var(--ease);
}
.service:hover .service__en { color: var(--red); }
.service__ja { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.service__detail p { font-size: 15px; color: var(--ink-2); line-height: 2; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}

/* ---------- Process ---------- */
.process { background: var(--dark); color: #fff; }
.process .section__label::after { opacity: .5; }
.steps { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 32px 24px 32px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.step::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.step__num { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.step__title { font-family: var(--font-en); font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.step__ja { font-size: 14px; font-weight: 700; margin: 8px 0 16px; }
.step__text { font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, 0.62); }

/* ---------- Our Brand ---------- */
.brand { background: var(--red); color: #fff; }
.brand__inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
@media (min-width: 900px) { .brand__inner { grid-template-columns: 1fr 1fr; gap: 80px; } .brand .section__head { margin-bottom: 0; } }
.brand .section__label span { color: #fff; }
.brand__card { border-top: 1px solid rgba(255, 255, 255, 0.45); padding-top: 32px; }
.brand__name { font-family: var(--font-en); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px; }
.brand__text { font-size: 15px; line-height: 2.1; margin-bottom: 32px; color: rgba(255, 255, 255, 0.92); }

/* ---------- Company ---------- */
.company__inner { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .company__inner { grid-template-columns: 1fr 1.6fr; gap: 80px; } }
.company__table { border-top: 1px solid var(--ink); }
.company__table > div { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .company__table > div { grid-template-columns: 160px 1fr; gap: 24px; } }
.company__table dt { font-size: 14px; font-weight: 700; color: var(--mute); }
.company__table dd { font-size: 15px; }
.company__table .sub { display: block; font-family: var(--font-en); font-size: 13px; color: var(--mute); }
.company__list li { position: relative; padding-left: 18px; }
.company__list li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1px; background: var(--red); }
.todo { color: var(--red); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); }
.contact__inner { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1.25fr; gap: 80px; } }
.contact__text { margin-top: 32px; font-size: 15px; color: var(--ink-2); line-height: 2.1; }
.form { display: grid; gap: 24px; }
.form__row { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 10px; }
.field__label { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.field__label em { font-style: normal; font-size: 11px; color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-size: 16px; line-height: 1.6;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.field .is-invalid, .field input.is-invalid, .field textarea.is-invalid { border-color: var(--red); }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 14px; min-height: 1.5em; }
.form__status.is-error { color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 80px 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 56px; font-family: var(--font-en); font-size: 14px; }
@media (min-width: 900px) { .footer__nav { grid-template-columns: repeat(4, auto); } }
.footer__nav a { color: rgba(255, 255, 255, 0.75); transition: color .3s var(--ease); }
.footer__nav a:hover { color: #fff; }
.footer__bottom { padding-top: 28px; font-family: var(--font-en); font-size: 12px; color: rgba(255, 255, 255, 0.45); }

/* ---------- Sub page (privacy) ---------- */
.page { padding: calc(var(--header-h) + 80px) 0 var(--section-y); }
.page__title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; margin-bottom: 56px; }
.prose { max-width: 820px; font-size: 15px; color: var(--ink-2); line-height: 2.1; }
.prose h2 { font-size: 18px; color: var(--ink); margin: 48px 0 12px; }
.prose ol, .prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
