:root {
  --brand: #5b6efb;
  --brand-dark: #4253e0;
  --brand-soft: #eef0ff;
  --teal: #17b6cc;
  --text: #2b2d33;
  --muted: #5f6470;
  --line: #e3e6ee;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --header-h: 72px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 52, 120, .08);
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--brand); color: #fff; border: 2px solid var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn--outline:hover { background: var(--brand-soft); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}
.header__inner {
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px;
}
.header__logo { flex: 0 0 auto; display: block; }
.header__logo img { width: 200px; }
.header__nav { display: flex; gap: 28px; margin-left: auto; }
.header__nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.header__nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; gap: 10px; }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .header__inner { padding: 0 12px 0 16px; gap: 12px; }
  .header__logo img { width: 160px; }
  .header__nav, .header__actions { display: none; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 48px; height: 48px; padding: 0 12px;
    background: none; border: 0; border-radius: 10px; cursor: pointer;
  }
  .menu-btn span { display: block; height: 3px; border-radius: 2px; background: var(--brand); transition: transform .25s, opacity .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
@media (max-width: 359px) {
  .header__logo img { width: 136px; }
}

/* ドロワー（スマホメニュー） */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer__nav { display: flex; flex-direction: column; padding: 12px 20px 40px; }
.drawer__nav a {
  display: block; padding: 18px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 17px; font-weight: 700; text-decoration: none;
}
.drawer__nav a:active { color: var(--brand); }
body.is-menu-open { overflow: hidden; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; background: #11131a; overflow: hidden; }
.hero__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(10, 12, 24, .62), rgba(10, 12, 24, 0));
  pointer-events: none;
}
.hero__copy {
  position: absolute; right: 40px; bottom: 32px; z-index: 1;
  color: #fff; font-weight: 700; font-size: 32px; line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
@media (max-width: 1023px) {
  .hero__copy { font-size: 24px; right: 24px; bottom: 20px; }
}
@media (max-width: 767px) {
  .hero__img { aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .hero__copy { font-size: 16px; right: 14px; left: 14px; bottom: 14px; text-align: right; }
}
@media (max-width: 359px) {
  .hero__copy { font-size: 14px; }
}

/* よく使うメニュー（スマホのみ） */
.quick { display: none; }
@media (max-width: 1023px) {
  .quick {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .quick__item {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 8px; border-radius: 12px;
    border: 2px solid var(--brand); background: #fff; color: var(--brand);
    font-size: 15px; font-weight: 700; text-decoration: none;
  }
  .quick__item--primary { background: var(--brand); color: #fff; }
  .quick__item svg { width: 22px; height: 22px; flex: 0 0 auto; }
}
@media (max-width: 359px) {
  .quick { gap: 8px; padding: 12px; }
  .quick__item { font-size: 14px; gap: 6px; }
  .quick__item svg { width: 18px; height: 18px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; position: relative; }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.section__title {
  text-align: center; color: var(--brand);
  font-size: 32px; font-weight: 700; line-height: 1.4; margin-bottom: 48px;
}
.section__title::after {
  content: ""; display: block; width: 48px; height: 4px; margin: 16px auto 0;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--teal));
}
@media (max-width: 767px) {
  .section__title { font-size: 24px; margin-bottom: 32px; }
}
.eyebrow { text-align: center; font-weight: 700; color: var(--text); font-size: 18px; letter-spacing: .08em; }

/* ---------- スローガン ---------- */
.slogan { overflow: hidden; }
.slogan__title { text-align: center; margin: 16px 0 40px; line-height: 1.3; }
.slogan__title span {
  display: inline-block; color: var(--brand); font-weight: 900; font-size: 48px;
  padding: 4px 24px;
  background: linear-gradient(transparent 62%, var(--brand-soft) 62%);
}
.slogan__body { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 2; }
.slogan__body p + p { margin-top: 1.4em; }
.slogan__end { font-weight: 700; color: var(--brand); }
.slogan__deco--side { position: absolute; right: max(0px, calc(50% - 640px)); top: 40px; width: 160px; opacity: .9; pointer-events: none; }
.slogan__deco--wave { width: 220px; margin: 48px 0 0 auto; opacity: .95; }
@media (max-width: 1023px) {
  .slogan__deco--side { width: 110px; top: 24px; opacity: .55; }
}
@media (max-width: 767px) {
  .eyebrow { font-size: 15px; }
  .slogan__title { margin: 12px 0 28px; }
  .slogan__title span { font-size: 30px; padding: 2px 10px; }
  .slogan__body { font-size: 15px; line-height: 1.95; }
  .slogan__deco--side { width: 72px; top: 8px; right: 0; opacity: .45; }
  .slogan__deco--wave { width: 150px; margin-top: 32px; }
}
@media (max-width: 359px) {
  .slogan__title span { font-size: 26px; }
}

/* ---------- 事業内容 ---------- */
.work { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 639px) { .cards { grid-template-columns: 1fr; gap: 16px; } }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid #edf0f7;
  display: flex; flex-direction: column;
}
.card__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card__title { font-size: 18px; font-weight: 700; line-height: 1.55; margin-bottom: 12px; color: var(--text); }
.card p { font-size: 15px; line-height: 1.85; color: var(--muted); }
@media (max-width: 639px) {
  .card { padding: 24px 20px; }
  .card__icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; }
  .card__icon svg { width: 26px; height: 26px; }
  .card__title { font-size: 17px; }
  .card__title br { display: none; }
}

/* ---------- 会社概要 ---------- */
.profile { border-top: 1px solid var(--line); }
.profile__row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); }
.profile dt { padding: 20px 16px; font-weight: 700; color: var(--brand); background: #fafbff; }
.profile dd { padding: 20px 16px; min-width: 0; overflow-wrap: anywhere; }
.profile a { color: inherit; text-decoration: none; }
.biz li { position: relative; padding-left: 1.1em; }
.biz li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
@media (max-width: 639px) {
  .profile__row { grid-template-columns: 92px 1fr; }
  .profile dt { padding: 14px 10px; font-size: 14px; }
  .profile dd { padding: 14px 12px; font-size: 15px; line-height: 1.75; }
}
@media (max-width: 359px) {
  .profile__row { grid-template-columns: 1fr; }
  .profile dt { padding: 10px 12px 4px; background: none; }
  .profile dd { padding: 0 12px 12px; }
}

/* ---------- アクセス ---------- */
.access { background: var(--bg-alt); }
.access__map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 7; background: #e9ecf3; }
.access__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .access__map { aspect-ratio: 4 / 3; } }
.access__addr { margin-top: 20px; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- フッター ---------- */
.footer { background: #1f2240; color: #d8dbee; padding: 56px 0 24px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__name { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.footer__nav { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.footer__nav a { color: #d8dbee; text-decoration: none; font-size: 14px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; font-size: 12px; color: #9da2c2; margin-top: 40px; padding: 0 16px; }
@media (max-width: 767px) {
  .footer { padding: 40px 0 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { flex-direction: column; gap: 0; width: 100%; }
  .footer__nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
}

/* ---------- 下層ページ（404 等） ---------- */
.page { padding: 80px 0 96px; text-align: center; }
.page h1 { font-size: 28px; color: var(--brand); margin-bottom: 16px; }
.page p { margin-bottom: 32px; }

/* ---------- 表示アニメーション ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
