/* ============================================================
   DOGHAND — Dog Wear Studio
   ============================================================ */

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

:root {
  --cream:       #F7F3ED;
  --cream-dark:  #EDE7DC;
  --dark:        #2C2825;
  --dark-soft:   #3D3733;
  --orange:      #C96B2D;
  --orange-light:#E08040;
  --gray:        #8A8278;
  --gray-light:  #E4DED5;
  --white:       #FFFFFF;
  --footer-bg:   #1A1714;

  --font-serif:  'Noto Serif JP', serif;
  --font-sans:   'Noto Sans JP', sans-serif;

  --max-w: 1100px;
  --section-pad: 96px 40px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  image-orientation: from-image;
}

/* ============================================================
   UTILITIES
   ============================================================ */

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

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-label--light {
  color: rgba(255,255,255,0.5);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-title--light { color: var(--white); }

.section-body {
  font-size: 0.9rem;
  color: #5C5550;
  line-height: 2.1;
  max-width: 580px;
}

.section-body--light {
  color: rgba(255,255,255,0.6);
}

.section-body--center {
  margin: 0 auto;
  text-align: center;
  max-width: none;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: rgba(247, 243, 237, 0.97);
  padding: 14px 48px;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.3s;
}

.nav.scrolled .nav-logo { color: var(--dark); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s;
}

.nav.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--orange) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.nav.scrolled .nav-hamburger span { background: var(--dark); }

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-menu.active { display: flex; }

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}

.mobile-menu-close:hover { opacity: 1; }

.mobile-link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.25s;
}

.mobile-link:hover { color: var(--orange); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(20, 16, 14, 0.25) 0%,
    rgba(20, 16, 14, 0.55) 60%,
    rgba(20, 16, 14, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  margin-bottom: 22px;
  opacity: 0.75;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  opacity: 0.8;
  margin-bottom: 44px;
  line-height: 2.2;
  letter-spacing: 0.05em;
}

.btn-primary {
  display: inline-block;
  padding: 15px 48px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollDrop 1.8s ease infinite;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */

.features {
  background: var(--dark);
  padding: 72px 40px;
}

.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-item {
  text-align: center;
  padding: 32px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item:last-child { border-right: none; }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: white;
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.feature-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 2.1;
}

/* ============================================================
   WORKS GALLERY
   ============================================================ */

.section-works {
  padding: var(--section-pad);
}

.gallery-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-light);
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 37, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(44, 40, 37, 0.35);
}

.gallery-overlay-text {
  color: white;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-overlay-text {
  opacity: 1;
  transform: none;
}

/* ============================================================
   BEFORE & AFTER
   ============================================================ */

.section-story {
  padding: var(--section-pad);
  background: #EDE7DC;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 52px;
}

.ba-card {
  background: var(--white);
  overflow: hidden;
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  height: 300px;
}

.ba-img-wrap {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.ba-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ba-arrow {
  padding: 0 12px;
  font-size: 1.6rem;
  color: var(--orange);
  flex-shrink: 0;
  text-align: center;
}

.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  font-weight: 500;
}

.ba-tag--before {
  background: rgba(44, 40, 37, 0.82);
  color: rgba(255, 255, 255, 0.9);
}

.ba-tag--after {
  background: var(--orange);
  color: white;
}

.ba-info {
  padding: 28px 28px 32px;
}

.ba-brand {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.ba-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.ba-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 2;
  margin-bottom: 16px;
}

.ba-price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.ba-note {
  margin-top: 28px;
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
}

/* ============================================================
   ORDER FLOW
   ============================================================ */

.section-order {
  padding: var(--section-pad);
}

.order-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-top: 52px;
}

.order-step {
  background: var(--white);
  padding: 32px 24px;
}

.step-divider {
  display: flex;
  align-items: flex-start;
  padding-top: 52px;
  padding-left: 8px;
  padding-right: 8px;
  color: var(--orange);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gray-light);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.step-text {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 2;
}

/* ============================================================
   ORDER FORM
   ============================================================ */

.section-form {
  padding: var(--section-pad);
  background: var(--dark);
}

.order-form {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.required {
  color: var(--orange);
}

.form-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  padding: 13px 16px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.25); }

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

.form-select option {
  background: var(--dark);
  color: white;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group--full-row {
  grid-column: span 2;
}

/* 料金見積もり */
.price-estimate {
  background: rgba(201, 107, 45, 0.12);
  border: 1px solid rgba(201, 107, 45, 0.35);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.price-estimate-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

.price-estimate-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--orange);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.price-estimate-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  flex-basis: 100%;
  margin-top: -6px;
}

.form-submit {
  padding-top: 4px;
}

.btn-submit {
  width: 100%;
  padding: 17px;
  background: var(--orange);
  color: white;
  border: none;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover { background: var(--orange-light); }

.form-success {
  display: none;
  margin-top: 44px;
  text-align: center;
  padding: 60px 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.form-success.visible { display: block; }

.form-success-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--orange);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
  margin-bottom: 24px;
}

.btn-instagram-small {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transition: border-color 0.25s, color 0.25s;
}

.btn-instagram-small:hover {
  border-color: white;
  color: white;
}

/* ============================================================
   INSTAGRAM CTA
   ============================================================ */

.section-instagram {
  padding: var(--section-pad);
  text-align: center;
}

.section-instagram .section-label { text-align: center; }
.section-instagram .section-title { text-align: center; }

.instagram-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: var(--dark);
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  transition: background 0.3s;
}

.btn-instagram:hover { background: var(--dark-soft); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
  background: var(--dark);
  color: white;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--footer-bg);
  padding: 64px 48px 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: white;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 2.1;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: white; }

.footer-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 7, 0.95);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: min(90vw, 800px);
  max-height: 85vh;
  object-fit: contain;
  object-position: center;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
}

.lightbox-close:hover { color: white; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 3rem;
  cursor: pointer;
  padding: 16px 20px;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-prev:hover,
.lightbox-next:hover { color: white; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .order-steps {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .step-divider {
    display: none;
  }

  .order-step {
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px 32px; }

  .nav { padding: 18px 32px; }
  .nav.scrolled { padding: 12px 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 32px;
  }

  .feature-item:last-child { border-bottom: none; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .ba-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ba-images { height: 240px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px 20px; }

  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 11px 20px; }
  .footer { padding: 48px 24px 32px; }
  .footer-inner { flex-direction: column; gap: 28px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 4px;
  }

  .order-steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group--full { grid-column: span 1; }

  .ba-images { height: 200px; }
  .ba-arrow { padding: 0 8px; font-size: 1.2rem; }

  .instagram-cta-buttons { flex-direction: column; align-items: center; }
  .btn-instagram, .btn-outline { width: 100%; justify-content: center; }

  .lightbox-img { max-width: 95vw; }
  .lightbox-prev, .lightbox-next { font-size: 2rem; padding: 12px; }
}
