/* ============================================
   egisfile LP — v5: Full-bleed hero, text left
   ============================================ */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef2f8;
  --color-divider: #dde3ee;
  --color-border: #c8d1e0;

  --color-text: #1a2438;
  --color-text-muted: #5a6580;
  --color-text-faint: #9aa4ba;

  --color-primary: #1a3a6c;
  --color-primary-hover: #143058;
  --color-primary-light: rgba(26, 58, 108, 0.05);

  --color-accent: #d97f2e;
  --color-accent-light: rgba(217, 127, 46, 0.08);
  --color-danger: #dc2626;

  --radius-sm: 0.375rem; --radius-md: 0.5rem;
  --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(26, 36, 56, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 36, 56, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 36, 56, 0.12);

  --content-default: 960px;
  --content-wide: 1200px;

  --font-body: 'Noto Sans JP', 'Inter', sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  min-height: 100dvh;
  line-height: 1.7;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
::selection { background: rgba(255, 255, 255, 0.2); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: var(--radius-sm); }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--content-wide); margin: 0 auto; padding: 0 var(--space-6); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); font-size: var(--text-sm); font-weight: 500;
  border-radius: var(--radius-md); transition: all var(--transition); white-space: nowrap;
}
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--primary { background: var(--color-primary); color: #fff; font-weight: 700; }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26, 58, 108, 0.25); }
.btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.15); }

/* 背景の暗いトーンになじむ透過枠線ボタン */
.btn--outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  font-weight: 500;
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden { transform: translateY(-100%); }
.header__inner { max-width: var(--content-wide); margin: 0 auto; padding: var(--space-2) var(--space-6); display: flex; align-items: center; justify-content: space-between; }
.logo__img { height: 48px; width: auto; }
.header__nav { display: flex; align-items: center; gap: var(--space-6); }
.header__nav a { font-size: var(--text-sm); color: rgba(255,255,255,0.7); }
.header__nav a:hover { color: #fff; }
.header__nav .btn { color: #fff; }

/* Section header */
.section__header { text-align: center; max-width: var(--content-default); margin: 0 auto var(--space-10); }
.section__label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.2em; color: var(--color-accent); margin-bottom: var(--space-3); font-family: 'Inter', sans-serif; }
.section__title { font-size: var(--text-2xl); font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: var(--space-4); color: var(--color-text); }
.section__lead { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.6; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: var(--space-32) var(--space-6) var(--space-16);
}
.hero__bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('images/hero-illustration.jpg');
  background-size: cover; background-position: center right;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(10, 14, 26, 0.85) 0%,
    rgba(10, 14, 26, 0.7) 35%,
    rgba(10, 14, 26, 0.3) 60%,
    rgba(10, 14, 26, 0.1) 100%
  );
}
.hero__content {
  position: relative; z-index: 2; max-width: var(--content-wide); margin: 0 auto;
  width: 100%;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: center;
}
.hero__left { max-width: 560px; }
.hero__logo { margin-bottom: var(--space-6); }
.hero__logo img { height: 72px; width: auto; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3)); }
.hero__title { font-size: var(--text-2xl); font-weight: 900; line-height: 1.25; letter-spacing: -0.03em; margin-bottom: var(--space-5); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero__title--emphasis { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; line-height: 1; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem); }
.hero__title-line { font-size: 0.6em; line-height: 1.1; }
.hero__title-mark { font-size: 2em; color: #f5e6a3; line-height: 1.05; letter-spacing: -0.02em; }
.hero__sub { font-size: var(--text-base); color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: var(--space-6); text-shadow: 0 1px 8px rgba(0,0,0,0.2); }

/* HEROボタンの配置・中央揃え制御 */
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__actions--center {
  justify-content: center;
  margin-top: var(--space-4);
}

.hero__right { width: 100%; }

/* Browser mockup (no URL bar) */
.browser-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser-mock__bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
}
.browser-mock__dots { display: flex; gap: 6px; }
.browser-mock__dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-mock__dots span:nth-child(1) { background: #e05555; }
.browser-mock__dots span:nth-child(2) { background: #e5a83a; }
.browser-mock__dots span:nth-child(3) { background: #4bb866; }
.browser-mock__body { overflow: hidden; }
.browser-mock__body img { width: 100%; height: auto; display: block; }

/* What is egisfile */
.what { padding: var(--space-16) 0; }
.what__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.what__desc { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.8; margin-bottom: var(--space-8); }
.what__points { display: flex; flex-direction: column; gap: var(--space-5); }
.what__point { display: flex; align-items: flex-start; gap: var(--space-4); }
.what__point-num { width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; font-size: var(--text-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.what__point strong { font-size: var(--text-base); color: var(--color-text); display: block; margin-bottom: 2px; }
.what__point p { font-size: var(--text-sm); color: var(--color-text-muted); }
.what__visual { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.what__caption { font-size: var(--text-xs); color: var(--color-text-faint); text-align: center; }

/* Risks */
.risks { padding: var(--space-16) 0; background: var(--color-surface); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.risks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-10); }
.risk-card { padding: var(--space-6); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); border-top: 3px solid var(--color-danger); transition: box-shadow var(--transition), transform var(--transition); }
.risk-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.risk-card__icon {
  color: var(--color-danger);
  margin-bottom: var(--space-4);
  
  /* ★以下を追加：アイコンを中央寄せにする */
  display: flex;
  justify-content: center;
  align-items: center;
}
.risk-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-4); color: var(--color-text); }
.risk-card ul { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.risk-card ul li { position: relative; padding-left: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.risk-card ul li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-danger); opacity: 0.7; }
.source { font-size: var(--text-xs); color: var(--color-text-faint); padding-top: var(--space-3); border-top: 1px solid var(--color-divider); }
.source a { color: var(--color-text-muted); text-decoration: underline; text-decoration-color: var(--color-text-faint); text-underline-offset: 3px; }
.source a:hover { color: var(--color-primary); }

/* Bridge */

.bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  margin-top: var(--space-8);
}

.bridge__badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
}

.bridge__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.bridge__name {
  height: 4.5em;
  width: auto;
  display: block;
  margin: var(--space-2) auto 0;
}

/* Screens */
.screens { padding: var(--space-16) 0; }
.screens__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.screen-card { display: flex; flex-direction: column; }
.screen-card__body { padding: var(--space-5) var(--space-2) 0; text-align: center; }
.screen-card__body h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); color: var(--color-text); }
.screen-card__body p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* Features */
.features { padding: var(--space-16) 0; background: var(--color-surface); border-top: 1px solid var(--color-divider); }
.features__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.feature { flex: 1 1 calc(33.333% - var(--space-4)); min-width: 260px; display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.feature__icon { color: var(--color-primary); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--color-primary-light); border-radius: var(--radius-md); flex-shrink: 0; }
.feature h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: 2px; color: var(--color-text); }
.feature p { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }

/* CTA */
.cta { padding: var(--space-16) 0; background: linear-gradient(135deg, var(--color-primary) 0%, #0e2545 100%); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent 80%); }
.cta__inner { text-align: center; max-width: var(--content-default); margin: 0 auto; position: relative; z-index: 1; }
.cta__title { font-size: var(--text-2xl); font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: var(--space-5); color: #fff; }
.cta__sub { font-size: var(--text-base); color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: var(--space-8); }
.cta__actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.cta .btn--primary { background: #fff; color: var(--color-primary); }
.cta .btn--primary:hover { background: var(--color-surface-2); }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta .btn--ghost:hover { border-color: #fff; }

/* Footer */
.footer { padding: var(--space-10) 0 var(--space-6); background: var(--color-bg); border-top: 1px solid var(--color-divider); }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-6); }
.footer__brand { max-width: 360px; }
.footer__logo { height: 44px; width: auto; margin-bottom: var(--space-3); }
.footer__copy { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.footer__col h4 { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-3); }
.footer__col a { display: block; font-size: var(--text-sm); color: var(--color-text-muted); padding: var(--space-1) 0; }
.footer__col a:hover { color: var(--color-primary); }
.footer__bottom { padding-top: var(--space-5); border-top: 1px solid var(--color-divider); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer__bottom p { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer__note { max-width: 600px; line-height: 1.5; }

/* Responsive */
@media (max-width: 900px) {
  .header__nav a:not(.btn) { display: none; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__overlay { background: linear-gradient(180deg, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0.6) 100%); }
  .hero__left { max-width: none; text-align: center; }
  .hero__logo img { margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .hero__right { display: none; }
  .what__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .risks__grid { grid-template-columns: 1fr; }
  .screens__grid { grid-template-columns: 1fr; }
  .feature { flex-basis: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero__title br, .hero__sub br { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { width: 100%; }
  .logo__img { height: 36px; }
  .hero__logo img { height: 52px; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}