/* landing-page-design スキルの規則に沿った値のみを使う
   余白: 2/4/8/12/16/24/32/40/48/64/80/96px、文字サイズ: Tailwind の既定スケール、角丸: Tailwind の既定値 */

:root {
  --bg: #000000;
  --surface: #181818;
  --line: #313131;
  --text: #ffffff;
  --muted: #9b9b9b;
  --muted-reveal: rgba(255, 255, 255, 0.3);
  --accent: #5b8cff; /* 設計図の青。箇条書きの点とリンクのホバーにだけ使う */
  --todo: #ffd479;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: var(--text-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
a { color: inherit; }

/* 句の途中で改行させない */
.nb { display: inline-block; }

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

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 8px 12px; background: var(--text); color: var(--bg);
  border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: transform 300ms var(--ease);
}
.skip:focus { transform: translateY(80px); }

.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1200px; }
.container--narrow { max-width: 760px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 120px; padding: 8px 12px;
  background: var(--text); color: var(--bg);
  border-radius: 8px; border: 1px solid var(--text);
  font: inherit; font-size: var(--text-base); font-weight: 600; line-height: 1.5;
  text-decoration: none; cursor: pointer;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 40px; min-width: 0; font-size: var(--text-sm); }

/* ナビゲーション */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav__bar {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 32px;
  padding: 8px 12px 8px 24px;
  border: 1px solid var(--line); border-radius: 16px;
}
/* blur は疑似要素に置く（バー自体に付けると、中の fixed パネルの基準がバーになってしまう） */
.nav__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav__brand { font-weight: 700; font-size: var(--text-lg); text-decoration: none; letter-spacing: 0.02em; }
.nav__list { display: flex; align-items: center; gap: 24px; font-size: var(--text-sm); font-weight: 600; }
.nav__list a:not(.btn) { color: var(--muted); text-decoration: none; transition: color 300ms var(--ease); }
.nav__list a:not(.btn):hover,
.nav__list a[aria-current="true"] { color: var(--text); }
.nav__toggle { display: none; }

@media (max-width: 767px) {
  .nav__bar { width: 100%; justify-content: space-between; padding: 8px 8px 8px 24px; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; color: var(--text);
  }
  .nav__toggle-line { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 500ms var(--ease); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-line:first-child { transform: translateY(5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-line:last-child { transform: translateY(-5px) rotate(-45deg); }

  /* 全高のパネル */
  .nav__panel {
    position: fixed; inset: 0; z-index: -1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.94);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden;
    transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
  }
  .nav.is-open .nav__panel { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 24px; font-size: var(--text-2xl); }
  .nav__list li { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .nav.is-open .nav__list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms); }
  .nav__list .btn--sm { min-height: 44px; font-size: var(--text-base); }
}

/* ヒーロー（文字だけ） */
.hero { padding: 128px 0 64px; }
.hero__title {
  max-width: 680px; font-size: var(--text-3xl); line-height: 1.3;
  background: linear-gradient(to right, #ffffff, #9b9b9b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead { max-width: 680px; margin-top: 24px; font-size: var(--text-base); line-height: 1.85; color: var(--muted); }
.hero__actions { margin-top: 40px; }

/* 届出、免許、設立 */
.facts { display: grid; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts__label { font-size: var(--text-xs); color: var(--muted); }

/* セクション共通 */
.section { padding: 64px 0; }
.section__title { font-size: var(--text-2xl); line-height: 1.4; margin-bottom: 32px; }

/* 箇条書き（点だけ色を付ける） */
.list { display: grid; gap: 8px; margin-top: 24px; }
.list li { position: relative; padding-left: 16px; }
.list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 9999px; background: var(--accent); }

/* 事業内容（二本柱） */
.pillars { display: grid; gap: 48px; }
.pillar { padding-top: 24px; border-top: 1px solid var(--line); }
.pillar__title { font-size: var(--text-xl); line-height: 1.4; }
.pillar__text { margin-top: 12px; color: var(--muted); }
.pillar__cred { margin-top: 24px; font-size: var(--text-sm); color: var(--muted); }

/* タグライン（1文字ずつ点灯） */
.tagline { padding: 96px 0; }
.tagline__text { font-size: var(--text-3xl); line-height: 1.6; max-width: 680px; }
.tagline__line { display: block; }
.js .tagline__char { color: var(--muted-reveal); transition: color 500ms var(--ease); }
.js .tagline__char.is-on { color: var(--text); }

/* 会社概要 */
.profile { border-top: 1px solid var(--line); }
.profile__row { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: var(--text-sm); color: var(--muted); }
.todo { color: var(--todo); font-size: var(--text-sm); }

/* 問い合わせ */
.cta { padding: 64px 0 96px; }
.contact .section__title { margin-bottom: 16px; }
.contact__lead { max-width: 680px; margin-bottom: 32px; color: var(--muted); }
.contact__mail { margin-top: 24px; font-size: var(--text-sm); color: var(--muted); }
.contact__mail a { text-decoration: underline; text-underline-offset: 4px; color: var(--text); }

/* フッター */
.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.footer__legal { display: grid; gap: 4px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer__name { font-weight: 700; color: var(--text); }
.footer__address { font-style: normal; }
.footer__inner { display: flex; flex-direction: column; gap: 16px; }
.footer__links { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover,
.footer a[aria-current="page"] { color: var(--text); }

/* 下層ページ（プライバシー、404） */
.doc { padding: 128px 0 64px; }
.doc h1 { font-size: var(--text-3xl); line-height: 1.4; margin-bottom: 32px; }
.doc h2 { font-size: var(--text-xl); line-height: 1.5; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 24px; list-style: disc; }
.doc .btn { margin-top: 32px; }

/* スクロールで一度だけ立ち上がる */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .hero { padding: 160px 0 96px; }
  .hero__title { font-size: var(--text-5xl); line-height: 1.25; }
  .hero__lead { font-size: var(--text-lg); }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px; margin-top: 80px; }
  .section { padding: 96px 0; }
  .section__title { font-size: var(--text-3xl); line-height: 1.4; margin-bottom: 40px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .pillar__title { font-size: var(--text-2xl); }
  .tagline { padding: 128px 0; }
  .tagline__text { font-size: var(--text-4xl); line-height: 1.5; }
  .profile__row { grid-template-columns: 240px 1fr; gap: 24px; }
  .cta { padding: 96px 0; }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .tagline__text { font-size: var(--text-5xl); line-height: 1.5; max-width: 880px; }
}

/* 動きを減らす設定では、移動をやめて不透明度だけ変える */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms linear; }
  .btn:hover, .btn:active { transform: none; }
  .nav__list li, .nav__toggle-line { transition-property: opacity; }
  .nav__list li { transform: none; }
}
