/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #162436;
  --white:       #FFFFFF;
  --gold:        #C9A84C;
  --gold-dark:   #a8863a;
  --gray-bg:     #F5F5F5;
  --text:        #1a1a1a;
  --text-muted:  #666666;

  --font-en: 'Montserrat', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;

  --header-h: 72px;
  --ease:     0.3s ease;
  --ease-out: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-py: clamp(72px, 10vw, 128px);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ja);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  color: inherit;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto 0;
}

.section-sub {
  margin-top: 20px;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 18px 44px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
  text-align: center;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn--full { width: 100%; }

/* ============================================================
   Helper
   ============================================================ */
.br-pc { display: none; }

@media (min-width: 768px) {
  .br-pc { display: inline; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background var(--ease), backdrop-filter var(--ease), box-shadow var(--ease);
}

.header.scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--ease);
}

.header__logo:hover { opacity: 0.8; }

.header__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 767px) {
  .header__logo-img { height: 30px; }
}

/* Nav */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
}

.header__nav-link {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--ease);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--ease);
}

.header__nav-link:hover { color: var(--gold); }
.header__nav-link:hover::after { width: 100%; }

.header__nav-link--cta {
  padding: 9px 20px;
  border: 1.5px solid rgba(201, 168, 76, 0.6);
  color: var(--gold);
  padding-bottom: 9px;
}

.header__nav-link--cta::after { display: none; }

.header__nav-link--cta:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
  transform-origin: center;
}

.header__hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header__hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.header__hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(13, 27, 42, 0.60) 0%,
      rgba(13, 27, 42, 0.60) 50%,
      rgba(22, 50, 80, 0.60) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 var(--pad-x);
  max-width: 860px;
}

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.2s both;
}

.hero__title {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  animation: fadeUp 0.8s 0.4s both;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--gold);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  font-weight: 300;
  animation: fadeUp 0.8s 0.6s both;
}

.hero__desc {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 2;
  margin-bottom: 52px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  animation: fadeUp 0.8s 0.8s both;
}

.hero .btn { animation: fadeUp 0.8s 1.0s both; }

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(201, 168, 76, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  animation: fadeUp 1s 1.4s both;
}

.hero__scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 2s 2s infinite;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 32px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 22px;
}

.service-card__title {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--navy);
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================================
   STRENGTHS
   ============================================================ */
.strengths {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* subtle background texture */
.strengths::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.strengths .section-header { position: relative; }
.strengths .section-sub { color: rgba(255, 255, 255, 0.5); }
.strengths .section-title::after { background: var(--gold); }

.strengths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}

.strength-card {
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 40px);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  position: relative;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.strength-card:hover {
  border-color: rgba(201, 168, 76, 0.6);
  background: rgba(201, 168, 76, 0.04);
  transform: translateY(-4px);
}

.strength-card__number {
  font-family: var(--font-en);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--gold);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.strength-card__title {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.strength-card__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.95;
  font-weight: 300;
}

/* ============================================================
   WORKS
   ============================================================ */
.works { background: var(--gray-bg); }

.works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.work-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--ease), box-shadow var(--ease);
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

/* Aspect-ratio image wrapper */
.work-card__img {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Placeholder gradients per card when no image is present */
.work-card__img--1 { background-color: #1a2a3a; }
.work-card__img--2 { background-color: #0f2030; }
.work-card__img--3 { background-color: #1e2c38; }
.work-card__img--4 { background-color: #0d1f2e; }
.work-card__img--5 { background-color: #182535; }
.work-card__img--6 { background-color: #122030; }

/* Play icon on placeholder */
.work-card__img::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border: 2px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C9A84C' fill-opacity='0.4'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 24px;
  z-index: 1;
  transition: opacity var(--ease);
}

.work-card:hover .work-card__img::before { opacity: 0; }

/* Hover overlay */
.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  transition: opacity var(--ease-out);
  z-index: 2;
}

.work-card:hover .work-card__overlay { opacity: 1; }

.work-card__overlay-text {
  color: var(--white);
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.85;
  transform: translateY(8px);
  transition: transform var(--ease-out);
}

.work-card:hover .work-card__overlay-text { transform: translateY(0); }

/* Card footer */
.work-card__info {
  padding: 16px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-card__title {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.work-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--navy);
  color: var(--gold);
  white-space: nowrap;
  border-radius: 2px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--white); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

/* Form */
.form-group { margin-bottom: 24px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
}

.badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge--required {
  background: var(--navy);
  color: var(--white);
}

.badge--optional {
  background: #ddd;
  color: #666;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 2px;
  background: #FAFAFA;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}

/* Company info */
.contact__info {
  padding: 40px 36px;
  background: var(--gray-bg);
  border-left: 3px solid var(--gold);
}

.contact__info-logo {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 28px;
}

.contact__info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__info-item dt {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact__info-item dd {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
}

.contact__info-item a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}

.contact__info-item a:hover { color: var(--gold); }

.contact__info-line-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  padding: 36px 0;
  text-align: center;
}

.footer__copy {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(16px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Fade-in on scroll (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   Responsive — Tablet (≥640px)
   ============================================================ */
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ============================================================
   Responsive — Desktop (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .strengths__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .works__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Responsive — Mobile Nav (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --header-h: 60px; }

  .header__hamburger { display: flex; }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(12px);
    padding: 32px var(--pad-x) 40px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header__nav-link {
    font-size: 1rem;
    padding: 12px 0;
    display: block;
    width: 100%;
  }

  .header__nav-link--cta {
    margin-top: 12px;
    padding: 14px 24px;
    display: inline-block;
    width: auto;
  }

  .hero {
    background-attachment: scroll;
  }
}

/* ============================================================
   Responsive — Small Mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__title { font-size: 2.25rem; }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .works__grid {
    grid-template-columns: 1fr;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .btn { padding: 16px 32px; }
}
