/* home.css — トップページ専用スタイル。
   下層ページは従来の style.css を参照しており、このファイルの影響を受けない */

:root {
  --bg: #ffffff;
  --fg: #14161b;
  --muted: #5c6472;
  --line: #e6e8ee;
  --accent: #2563eb;
  --accent-soft: #eaf0fb;
  --soft: #f6f8fb;
  --dot: rgba(30, 50, 90, 0.10);
  --logo-dim: #b9c1cf;
  --logo-live: #2563eb;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- header ---- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: .04em;
  color: var(--fg);
  text-decoration: none;
}

.mark { display: block; flex: none; }
.mark .dim { fill: var(--logo-dim); }
.mark .live { fill: var(--logo-live); }

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 14px;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

header.site nav a:hover { color: var(--fg); }

@media (max-width: 560px) {
  header.site nav a.nav-sub { display: none; }
}

/* ---- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 116px 0 128px;
  /* canvas起動前・JS無効環境の静的ドット(canvas起動時は .fx-on が消す) */
  background-image: radial-gradient(circle, var(--dot) 1.4px, transparent 1.5px);
  background-size: 36px 36px;
}

.hero.fx-on { background-image: none; }

#fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 画面端でドットが不意に切れないように下端をそっと溶かす */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero .en {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.42;
  letter-spacing: .03em;
  font-weight: 700;
}

/* ---- sections ---- */

.section { padding: 96px 0; }
.section.alt { background: var(--soft); }

.label {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(25px, 4vw, 33px);
  line-height: 1.5;
  letter-spacing: .03em;
}

/* ---- business ---- */

.biz-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.biz-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  padding: 34px 32px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.biz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 25, 50, 0.07);
}

.biz-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}

.biz-icon svg { width: 24px; height: 24px; }

.biz-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: .03em;
}

.biz-card p {
  margin: 0;
  font-size: 15px;
  line-height: 2.05;
  color: var(--muted);
}

/* ---- company ---- */

table.info {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

table.info th, table.info td {
  border-bottom: 1px solid var(--line);
  padding: 18px 8px;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

table.info th {
  width: 27%;
  min-width: 108px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
}

table.info a { color: var(--accent); text-decoration: none; }
table.info a:hover { text-decoration: underline; }

/* ---- contact ---- */

.contact-box { max-width: 40em; }

.contact-box p { margin: 0 0 30px; color: var(--muted); }

a.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}

a.btn:hover { opacity: .82; transform: translateY(-1px); }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 13px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: .04em;
}

footer.site .copy { margin-left: auto; }

/* ---- hero entrance animation (CSSのみ・JS不要。無効環境でも最終状態が表示される) ---- */

@media (prefers-reduced-motion: no-preference) {
  /* 初期stateは通常表示のまま、from句とfill-mode:backwardsだけで登場させる。
     アニメーション未対応・未実行でも要素は必ず見える */
  .hero .en, .hero h1 {
    animation: rise .9s ease-out backwards;
  }
  .hero h1 { animation-delay: .12s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
  }
}
