/* =========================================================
   株式会社Another 新コーポレートサイト 共通スタイル
   配色: 紺 #003C78 / 赤 #DC0032 / 白
   基調=紺、赤=採用＆小アクセントのみ
   モチーフ: ダブルスラッシュ "//"
   見出し=Zen Kaku Gothic New / 英数字=Manrope Italic
   ========================================================= */

:root {
  --navy: #003C78;
  --navy-deep: #002B56;
  --navy-700: #013368;
  --red: #DC0032;
  --red-deep: #B5002A;
  --white: #ffffff;
  --ink: #14253b;
  --muted: #5c6b7e;
  --line: #e3e8ef;
  --bg-soft: #f4f7fb;
  --bg-navy-soft: #eef3f9;

  --maxw: 1160px;
  --radius: 14px;
  --shadow-sm: 0 4px 18px rgba(0, 43, 86, .07);
  --shadow-md: 0 14px 40px rgba(0, 43, 86, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-jp: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-en: "Manrope", var(--font-jp);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-weight: 500;
  letter-spacing: .01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-jp); font-weight: 900; line-height: 1.35; margin: 0; letter-spacing: .02em; }
p { margin: 0 0 1em; }

/* manrope italic accent for latin/numbers */
.en { font-family: var(--font-en); font-style: italic; font-weight: 800; letter-spacing: .01em; }

/* ---------- layout ---------- */
.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .lead, .section--navy p { color: rgba(255,255,255,.86); }

/* ---------- "//" section heading ---------- */
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .eyebrow {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-family: var(--font-en); font-style: italic; font-weight: 800;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
}
.section--navy .sec-head .eyebrow { color: #9fc1e8; }
.slash { color: var(--red); font-family: var(--font-en); font-style: italic; font-weight: 800; }
.sec-head h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  letter-spacing: .03em;
}
.sec-head h2 .slash { font-size: .8em; margin-right: .15em; }
.sec-head .sub { color: var(--muted); margin-top: 14px; max-width: 60ch; }
.section--navy .sec-head .sub { color: rgba(255,255,255,.8); }
.sec-head.center { text-align: center; }
.sec-head.center .sub { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --skew: -9deg;
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 30px; font-weight: 800; font-size: .98rem;
  font-family: var(--font-jp); letter-spacing: .04em;
  cursor: pointer; border: 0; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  isolation: isolate;
}
/* parallelogram via skewed background layer */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: skewX(var(--skew)); transition: inherit;
}
.btn:hover { transform: translateY(-3px); }
.btn .arrow { font-family: var(--font-en); font-style: italic; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-navy { color: #fff; }
.btn-navy::before { background: var(--navy); box-shadow: var(--shadow-sm); }
.btn-navy:hover::before { background: var(--navy-deep); }

.btn-red { color: #fff; }
.btn-red::before { background: var(--red); }
.btn-red:hover::before { background: var(--red-deep); }

.btn-outline { color: var(--navy); }
.btn-outline::before { background: transparent; border: 2px solid var(--navy); }
.btn-outline:hover { color: #fff; }
.btn-outline:hover::before { background: var(--navy); }

.btn-white { color: var(--navy); }
.btn-white::before { background: #fff; }

.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 1.5rem; color: var(--navy); letter-spacing: .01em; }
.brand img { height: 30px; width: auto; display: block; }
.brand .mark { color: var(--red); margin-left: 2px; font-weight: 800; }
.brand small { font-style: normal; font-family: var(--font-jp); font-weight: 700; font-size: .58rem; letter-spacing: .18em; color: var(--muted); margin-left: 8px; align-self: center; }

.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: clamp(14px, 1.7vw, 26px); align-items: center; }
.gnav a { font-weight: 700; font-size: .92rem; color: var(--ink); position: relative; padding: 6px 0; transition: color .2s; }
.gnav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--navy); transition: width .25s var(--ease); }
.gnav a:hover { color: var(--navy); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { width: 100%; }
.gnav a[aria-current="page"] { color: var(--navy); }

.header-cta { display: flex; gap: 10px; }
.header-cta .btn { padding: 11px 18px; font-size: .85rem; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--navy); transform: translate(-50%,-50%); transition: .25s var(--ease); }
.nav-toggle span::before { transform: translate(-50%,-7px); }
.nav-toggle span::after { transform: translate(-50%,5px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translate(-50%,-50%) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* ---------- hero (generic page) ---------- */
.page-hero {
  position: relative; background: var(--navy); color: #fff;
  padding: clamp(70px, 11vw, 132px) 0 clamp(60px, 9vw, 104px);
  overflow: hidden;
}
.page-hero::before {
  content: "//"; position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-en); font-style: italic; font-weight: 800;
  font-size: clamp(220px, 40vw, 460px); color: rgba(255,255,255,.05); line-height: 1; pointer-events: none;
}
.page-hero .eyebrow { font-family: var(--font-en); font-style: italic; font-weight: 800; letter-spacing: .16em; color: #9fc1e8; text-transform: uppercase; font-size: .85rem; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); margin: 14px 0 18px; letter-spacing: .03em; }
.page-hero p { color: rgba(255,255,255,.84); max-width: 64ch; margin: 0; font-size: 1.05rem; }
.page-hero .slash-accent { color: #6fa6e0; }

/* breadcrumb */
.crumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.crumb ol { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; font-size: .8rem; color: var(--muted); }
.crumb li::after { content: "/"; margin-left: 8px; color: var(--red); font-style: italic; }
.crumb li:last-child::after { content: ""; }
.crumb a:hover { color: var(--navy); }

/* ---------- footer (white base) ---------- */
.site-footer { background: #fff; border-top: 4px solid var(--navy); color: var(--ink); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .brand { font-size: 1.8rem; }
.footer-brand .brand img { height: 46px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 34ch; }
.footer-col h4 { font-size: .78rem; letter-spacing: .12em; color: var(--navy); margin-bottom: 16px; font-family: var(--font-en); font-style: italic; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-info p { font-size: .9rem; color: var(--ink); }
.footer-col a:hover { color: var(--red); }
.footer-info p { color: var(--muted); margin: 0 0 8px; }
.footer-info strong { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; font-size: .8rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--navy); }
.footer-bottom .en { color: var(--navy); }

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .idx { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 2.1rem; color: var(--navy); opacity: .25; line-height: 1; }
.card h3 { font-size: 1.25rem; margin: 12px 0 12px; }
.card h3 .slash { color: var(--red); font-size: .85em; margin-right: .2em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* feature list w/ slash bullets */
.slash-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink); }
.slash-list li::before { content: "//"; position: absolute; left: 0; top: 0; color: var(--red); font-family: var(--font-en); font-style: italic; font-weight: 800; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: #fff; text-align: center; overflow: hidden; }
.cta-band::before, .cta-band::after { content: "//"; position: absolute; font-family: var(--font-en); font-style: italic; font-weight: 800; color: rgba(255,255,255,.06); font-size: clamp(140px, 22vw, 300px); line-height: 1; }
.cta-band::before { left: -1%; top: -30%; }
.cta-band::after { right: -1%; bottom: -40%; }
.cta-band .inner { position: relative; z-index: 1; padding: clamp(56px, 8vw, 92px) 0; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 14px; letter-spacing: .03em; }
.cta-band p { color: rgba(255,255,255,.82); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .gnav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); z-index: 99;
  }
  .nav-open .gnav { max-height: 92vh; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { display: block; padding: 16px 0; font-size: 1rem; }
  .gnav .mobile-cta { display: flex; gap: 12px; padding-top: 18px; }
  .gnav .mobile-cta .btn { flex: 1; justify-content: center; }
}
@media (min-width: 861px) { .gnav .mobile-cta { display: none; } }
