/* ==========================================================================
   BLARE Inc. — Global Design System
   Institutional Minimalism | White Corporate | Champagne Gold
   ========================================================================== */

/* --- Custom Properties -------------------------------------------------- */
:root {
  --bg:          #F9F8F6;
  --bg-2:        #F3F1ED;
  --surface:     #FFFFFF;
  --border:      rgba(10, 10, 10, 0.08);
  --border-med:  rgba(10, 10, 10, 0.14);
  --text-1:      #0A0A0A;
  --text-2:      rgba(10, 10, 10, 0.52);
  --text-3:      rgba(10, 10, 10, 0.32);
  --gold:        #C5A059;
  --gold-lt:     #D4B472;
  --gold-dim:    rgba(197, 160, 89, 0.10);
  --gold-border: rgba(197, 160, 89, 0.32);
  --nav-scrolled-bg: rgba(249, 248, 246, 0.92);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', 'Inter', sans-serif;

  --max-w:   1200px;
  --gutter:  48px;
  --nav-h:   72px;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* --- Scrollbar ----------------------------------------------------------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- Layout Utilities ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Scroll-triggered Animations ---------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}
.fade-up.is-visible,
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.44s; }
.delay-5 { transition-delay: 0.56s; }

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
  user-select: none;
}
.nav__logo em { font-style: normal; color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link,
.nav__lang {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav__link:hover,
.nav__lang:hover { color: var(--text-1); }
.nav__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  border: 1px solid var(--border-med);
  padding: 8px 18px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav__cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Very subtle warm grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
}

/* Gold warm glow — top right */
.hero::after {
  content: '';
  position: absolute;
  top: -10%; right: 0;
  width: 60%; height: 75%;
  background: radial-gradient(ellipse at 70% 20%, rgba(197, 160, 89, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 128px 100px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  opacity: 0;
  animation: anim-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero__eyebrow-rule {
  width: 44px; height: 1px;
  background: var(--gold);
}
.hero__eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(50px, 7.5vw, 100px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text-1);
  max-width: 840px;
  margin-bottom: 32px;
  opacity: 0;
  animation: anim-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.38s forwards;
}
.hero__headline em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 300;
  color: var(--text-2);
  max-width: 460px;
  line-height: 1.55;
  margin-bottom: 60px;
  opacity: 0;
  animation: anim-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: anim-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: anim-fade-in 1s ease 1.4s forwards;
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}
.hero__scroll-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #FFFFFF;
  padding: 15px 36px;
}
.btn--primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}
.btn--ghost {
  border: 1px solid var(--border-med);
  color: var(--text-2);
  padding: 15px 36px;
}
.btn--ghost:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Section Common ----------------------------------------------------- */
.section {
  padding-block: 128px;
  border-top: 1px solid var(--border);
}
.section--tint {
  background: var(--bg-2);
}
.section__label,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section__label-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.section__label-rule,
.eyebrow::before {
  width: 20px;
  height: 1px;
  background: var(--gold-border);
  content: "";
}
.section__label-text,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section__heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 20px;
}
.section__lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
}

/* --- Solutions Section -------------------------------------------------- */
.solutions__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 80px;
}
.solutions__header-note {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 340px;
  align-self: end;
}
.solutions__footnote {
  margin-top: 26px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 720px;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.sol-card {
  position: relative;
  background: var(--bg);
  padding: 52px 44px 88px;
  overflow: hidden;
  transition: background 0.3s;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sol-card:hover { background: var(--surface); }
.sol-card:hover::before { transform: scaleX(1); }

.sol-card__ghost {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  color: rgba(197, 160, 89, 0.08);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  user-select: none;
}
.sol-card__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.sol-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 18px;
  line-height: 1.2;
}
.sol-card__desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
}
.sol-card__stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.sol-stat { display: flex; align-items: baseline; gap: 10px; }
.sol-stat__val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.sol-stat__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-3);
}
.sol-card__cta {
  position: absolute;
  bottom: 44px; right: 44px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}
.sol-card:hover .sol-card__cta {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}
.sol-card__cta svg { width: 13px; height: 13px; color: var(--gold); }

/* --- About / Founder ---------------------------------------------------- */
.about { background: var(--bg-2); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  max-width: 760px;
  margin-inline: auto;
}
.about__content { padding-top: 12px; }
.about__name {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.about__alias {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.about__bio {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 48px;
}
.about__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 28px;
  margin-bottom: 44px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
}
.about__facts dt {
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.about__facts dd {
  min-width: 0;
}
.about__links { display: flex; flex-direction: column; }
.about__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.about__link:first-child { border-top: 1px solid var(--border); }
.about__link:hover { color: var(--gold); }
.about__link-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.about__link:hover .about__link-icon { border-color: var(--gold-border); }
.about__link-icon svg { width: 15px; height: 15px; }
.about__link-label { flex: 1; }
.about__link-arrow { color: var(--text-3); font-size: 16px; }

/* --- Contact ------------------------------------------------------------ */
.contact { text-align: center; }
.contact__inner { max-width: 660px; margin-inline: auto; }
.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 28px;
}
.contact__heading em { font-style: normal; color: var(--gold); }
.contact__sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 52px;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 10px;
  margin-bottom: 44px;
  transition: color 0.2s, border-color 0.2s;
}
.contact__email:hover { color: var(--gold-lt); border-color: var(--gold-lt); }
.contact__email--plain {
  cursor: default;
}
.contact__email--plain:hover {
  color: var(--gold);
  border-color: var(--gold-border);
}
.contact__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  padding-block: 48px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
}
.footer__logo em { font-style: normal; color: var(--gold); }
.footer__copy { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }
.footer__links { display: flex; gap: 28px; align-items: center; }
.footer__link {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--gold); }

/* --- Shared Utilities For Extended Pages -------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(249, 248, 246, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-2);
  transition: color 0.2s;
}
.mobile-menu__link:hover { color: var(--gold); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-1);
}
.page-shell { padding-top: var(--nav-h); }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: 0;
  width: 55%;
  height: 75%;
  background: radial-gradient(ellipse at 70% 20%, rgba(197, 160, 89, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__title {
  position: relative;
  z-index: 1;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.page-hero__lede {
  position: relative;
  z-index: 1;
  max-width: 700px;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
}
.stack-lg {
  display: grid;
  gap: 24px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--gold);
  color: #FFFFFF;
}
.footer__center { display: flex; align-items: center; }

/* --- Keyframes ---------------------------------------------------------- */
@keyframes anim-fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes anim-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .solutions__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .solutions__header { grid-template-columns: 1fr; gap: 16px; }
  .solutions__header-note { display: none; }
  .solutions__footnote { max-width: none; }
  .about__inner { gap: 0; }
  .nav__links .nav__link,
  .nav__links .nav__lang,
  .nav__cta { display: none; }
  .section { padding-block: 88px; }
  .hamburger { display: flex; }
  .page-hero { padding: 84px 0 56px; }

  /* H1のはみ出し修正 */
  .hero__headline {
    font-size: clamp(28px, 8vw, 56px);
    word-break: break-word;
  }
}
@media (max-width: 640px) {
  .solutions__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .contact__actions { flex-direction: column; align-items: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .mobile-menu__link { font-size: 28px; }
  .page-hero__title { font-size: clamp(32px, 12vw, 54px); }
  .page-hero__lede { font-size: 16px; }
}
