/* ============================================
   Bwill Corporate Site - style.css
   ============================================ */

:root {
  --color-navy: #12203a;
  --color-navy-light: #1c3358;
  --color-gold: #b58a4a;
  --color-gold-light: #d8b878;
  --color-ink: #22262f;
  --color-sub: #5c6270;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f6f3;
  --color-line: #e7e4de;

  --font-serif: "Noto Serif JP", "Cormorant Garamond", serif;
  --font-en: "Cormorant Garamond", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --container-w: 1140px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.pc-only { display: inline; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.25,.7,.35,1), transform 0.9s cubic-bezier(.25,.7,.35,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}
.btn--primary:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--ghost:hover {
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
}
.btn--wide {
  width: 100%;
  padding: 18px 40px;
  font-size: 1rem;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 500;
  background: rgba(255,255,255,0);
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(18,32,58,0.06);
  height: 72px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
}
.logo__mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-gold);
}
.header:not(.is-scrolled) .logo__mark,
.header:not(.is-scrolled) .logo__text {
  color: #fff;
  border-color: #fff;
}
.logo__text {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  padding: 6px 0;
}
.header:not(.is-scrolled) .nav__link:not(.nav__link--cta) {
  color: #fff;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  border: 1px solid var(--color-navy);
  padding: 10px 24px;
  color: var(--color-navy);
}
.header:not(.is-scrolled) .nav__link--cta {
  border-color: #fff;
  color: #fff;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--color-navy);
  color: #fff !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-navy);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.header:not(.is-scrolled) .menu-btn span { background: #fff; }
.menu-btn.is-open span { background: var(--color-navy) !important; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(18,32,58,0.86) 0%, rgba(18,32,58,0.72) 45%, rgba(28,51,88,0.78) 100%),
    linear-gradient(120deg, #0e1a30 0%, #1c3358 55%, #23406e 100%);
  z-index: -2;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.6) 0, rgba(255,255,255,0.6) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.6) 0, rgba(255,255,255,0.6) 1px, transparent 1px, transparent 64px);
}
.hero__inner {
  padding-top: var(--header-h);
  max-width: 780px;
}
.hero__eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--color-gold-light);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.5;
  margin: 0 0 28px;
}
.hero__accent { color: var(--color-gold-light); }
.hero__lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 44px;
  line-height: 2;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.hero .btn--ghost:hover {
  background: #fff;
  color: var(--color-navy);
}
.hero .btn--primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}
.hero .btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ============================================
   Section common
   ============================================ */
section { padding: 130px 0; }
.section-eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--color-gold);
  text-transform: uppercase;
  margin: 0 0 18px;
  text-align: center;
}
.section-eyebrow--light { color: var(--color-gold-light); }
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: center;
  margin: 0 0 28px;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}
.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 70px;
  color: var(--color-sub);
}

/* ============================================
   About
   ============================================ */
.about { background: var(--color-bg); }

.about__grid {
  max-width: 760px;
  margin: 0 auto 90px;
}
.about__lead {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 28px;
  line-height: 1.9;
  text-align: center;
}
.about__text p { color: var(--color-sub); margin: 0 0 20px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  border-top: 1px solid var(--color-line);
  padding-top: 70px;
}
.value { text-align: center; }
.value__icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  color: var(--color-gold);
  margin-bottom: 22px;
}
.value__icon svg { width: 100%; height: 100%; }
.value h3 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: 1.1rem;
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.value p { color: var(--color-sub); font-size: 0.92rem; margin: 0; }

/* ============================================
   Business
   ============================================ */
.business { background: var(--color-bg-soft); }

.business__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 100px;
}
.business-card {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 44px 40px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(18,32,58,0.08);
  border-color: var(--color-gold-light);
}
.business-card__no {
  font-family: var(--font-en);
  font-size: 2.2rem;
  color: var(--color-gold-light);
  font-weight: 600;
  display: block;
  margin-bottom: 18px;
}
.business-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-navy);
  margin: 0 0 16px;
  letter-spacing: 0.03em;
}
.business-card__text {
  color: var(--color-sub);
  margin: 0;
  font-size: 0.95rem;
}

.flow__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-navy);
  margin: 0 0 50px;
  letter-spacing: 0.05em;
}
.flow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow__steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--color-line);
}
.flow__step {
  text-align: center;
  position: relative;
}
.flow__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.flow__step-title {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-navy);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  position: relative;
  background: var(--color-navy);
  color: #fff;
  overflow: hidden;
}
.contact__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 1px, transparent 60px);
}
.contact__inner { position: relative; }
.contact__title {
  font-family: var(--font-serif);
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 24px;
  font-weight: 600;
}
.contact__lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
  color: rgba(255,255,255,0.78);
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 48px;
  border-radius: 4px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.9);
}
.required {
  display: inline-block;
  font-size: 0.68rem;
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn--primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
  margin-top: 8px;
}
.contact-form .btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
}
.form-note {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--color-gold-light);
  min-height: 1.4em;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0e1a30;
  color: rgba(255,255,255,0.7);
  padding: 50px 0;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.logo--footer .logo__text { color: #fff; }
.footer__contact {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.footer__contact p { margin: 0; }
.footer__contact a { color: rgba(255,255,255,0.7); }
.footer__contact a:hover { color: var(--color-gold-light); }
.footer__nav {
  display: flex;
  gap: 30px;
  font-size: 0.88rem;
  padding-top: 8px;
}
.footer__nav a:hover { color: var(--color-gold-light); }
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  margin: 0;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .business__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 44px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --header-h: 64px; }
  .container { padding: 0 22px; }
  section { padding: 90px 0; }

  .pc-only { display: none; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78%, 320px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.25,.7,.35,1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link,
  .header:not(.is-scrolled) .nav__link:not(.nav__link--cta) {
    color: var(--color-navy) !important;
    font-size: 1.05rem;
  }
  .nav__link--cta {
    border-color: var(--color-navy) !important;
    color: var(--color-navy) !important;
  }
  .menu-btn { display: flex; }

  .hero { min-height: 100svh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .flow__steps { grid-template-columns: 1fr; gap: 40px; }
  .flow__steps::before { display: none; }

  .contact-form { padding: 30px 22px; }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__brand { align-items: center; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 1.7rem; }
}
