/* ========================================
   NINAHAW Corporate Site - Style
   ======================================== */

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

:root {
  --color-primary: #5C3D2E;
  --color-secondary: #8B6914;
  --color-accent: #C0392B;
  --color-bg: #FAF6F0;
  --color-bg-alt: #F0E8DC;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-white: #ffffff;
  --color-border: #D4C5B0;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-brand: 'Cormorant Garamond', serif;
  --header-height: 72px;
  --section-padding: 100px;
}

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

body.menu-open {
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(92, 61, 46, 0.1);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-company {
  font-size: 0.65rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/external/hero_bg.jpg') center center / cover no-repeat;
  margin-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 12, 8, 0.3) 0%,
    rgba(20, 12, 8, 0.5) 40%,
    rgba(20, 12, 8, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
}

.hero-sub {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  margin-bottom: 24px;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-family: var(--font-brand);
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Common --- */
.section {
  padding: var(--section-padding) 0;
}

.section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.section-label {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 2;
}

/* --- Brand --- */
.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.brand-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-white);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(92, 61, 46, 0.1);
}

.brand-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--color-secondary);
}

.brand-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.brand-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* --- Movie --- */
.movie-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 56.25%; /* 16:9 */
}

.movie-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* --- Products --- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.product-hero-image img {
  border-radius: 4px;
}

.product-name {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.product-name span {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 4px;
  color: var(--color-text-light);
}

.product-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
}

.product-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.product-color-item {
  text-align: center;
}

.product-color-image {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-color-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.product-color-item p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.product-specs {
  max-width: 100%;
  margin: 0 auto;
}

.product-specs h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--color-border);
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 140px;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
}

.spec-table td {
  color: var(--color-text);
}

/* --- Product Category & Cards --- */
.product-category {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--color-border);
}

.product-category-title {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.product-category-title span {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 4px;
  color: var(--color-text-light);
}

.product-category-desc {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.92rem;
  max-width: 780px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(92, 61, 46, 0.1);
}

.product-card-image {
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card h4 {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 16px 16px 0;
  letter-spacing: 0.03em;
}

.product-card p {
  font-size: 0.78rem;
  color: var(--color-secondary);
  padding: 2px 16px 0;
  letter-spacing: 0.05em;
}

.product-card-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding: 8px 16px 20px;
  line-height: 1.7;
}

/* --- Yosegi --- */
.yosegi-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.yosegi-image img {
  border-radius: 4px;
}

.yosegi-text h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.yosegi-text p {
  font-size: 0.92rem;
  line-height: 2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.yosegi-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.yosegi-gallery img {
  border-radius: 4px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* --- Craftsmen --- */
.craftsmen-movie {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 48px;
  padding-top: 56.25%;
}

.craftsmen-movie iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.craftsmen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 560px;
  margin: 0 auto;
}

.craftsman-card {
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.craftsman-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.craftsman-info {
  padding: 28px 24px;
}

.craftsman-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.craftsman-role {
  font-size: 0.8rem;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.craftsman-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--color-text-light);
}

/* --- Achievements --- */
.achievement-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.achievement-image img {
  border-radius: 4px;
}

.achievement-text h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.achievement-project {
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.7;
}

.achievement-text p {
  font-size: 0.92rem;
  line-height: 2;
  margin-bottom: 12px;
}

.achievement-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.achievement-link:hover {
  opacity: 0.7;
}

/* --- Company --- */
.company {
  background-color: var(--color-bg) !important;
}

.company-table {
  width: 100%;
  max-width: 720px;
  margin: 40px auto 0;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table tr:first-child {
  border-top: 2px solid var(--color-primary);
}

.company-table tr:last-child {
  border-bottom: 2px solid var(--color-primary);
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  font-size: 0.92rem;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: rgba(92, 61, 46, 0.04);
  white-space: nowrap;
}

.company-table td {
  color: var(--color-text);
  line-height: 1.8;
}

.company-table td a {
  color: var(--color-secondary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.company-table td a:hover {
  border-bottom-color: var(--color-secondary);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.footer-company {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-white);
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    padding: 100px 32px 40px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .nav.open {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 24px;
  }

  .nav a {
    font-size: 1rem;
  }

  .hero {
    height: 85vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .brand-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-colors {
    gap: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .product-category {
    margin-top: 56px;
    padding-top: 40px;
  }

  .yosegi-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .yosegi-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .craftsmen-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .achievement-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .company-table th {
    width: 120px;
    font-size: 0.85rem;
  }

  .company-table td {
    font-size: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .product-name {
    font-size: 1.6rem;
  }

  .product-colors {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-grid,
  .product-grid-2col {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }

  .company-table th {
    padding-bottom: 0;
  }

  .company-table td {
    padding-top: 4px;
  }
}
