/* ============================
   髙橋フードテック株式会社
   style.css
   ============================ */

:root {
  --black: #0e0d0b;
  --white: #faf9f6;
  --cream: #f3f0e8;
  --tan: #c8b99a;
  --tan-dark: #9a8268;
  --brown: #5c3d2e;
  --brown-light: #8b6347;
  --charcoal: #1e1a18;
  --gray-mid: #6e6660;
  --gray-light: #b8b0a8;
  --accent: #D42B2B;
  --accent-dark: #aa2020;

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

  --container: 1100px;
  --header-h: 72px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.header.scrolled {
  background: rgba(250, 249, 246, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo image */
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition);
}

.footer-logo-img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* Hero mode: logo on dark bg — keep as is (logo has white bg, so we just keep it) */
.header.hero-mode .logo-img {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.header.hero-mode .nav-link { color: rgba(255,255,255,0.85); }
.header.hero-mode .nav-link:hover { color: var(--white); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent); }
.header.hero-mode .nav-link.active { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: var(--transition);
}
.header.hero-mode .hamburger span { background: var(--white); }

/* ============================
   HERO SLIDER
   ============================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--charcoal);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide-bg {
  position: absolute;
  inset: 0;
}

.slide-bg-1 {
  background: var(--charcoal);
  background-image: radial-gradient(ellipse at 30% 60%, rgba(212,43,43,0.12) 0%, transparent 60%);
}

.slide-bg-2 {
  background: #1a1a14;
  background-image: radial-gradient(ellipse at 70% 40%, rgba(139,99,71,0.2) 0%, transparent 55%);
}

.slide-bg-3 {
  background: #141a1a;
  background-image: radial-gradient(ellipse at 50% 50%, rgba(43,100,120,0.15) 0%, transparent 60%);
}

.slide-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
  padding: 0 2rem;
}

.slide-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.slide-copy {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  width: 44px; height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.13);
  color: var(--white);
}

.slider-prev { left: 2rem; }
.slider-next { right: 2rem; }

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.slider-counter {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  z-index: 10;
}

/* ============================
   PHILOSOPHY
   ============================ */
.philosophy-inner {
  max-width: 760px;
  margin: 0 auto;
}

.philosophy-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  letter-spacing: 0.03em;
}

.philosophy-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.5rem;
}

.philosophy-body p {
  font-size: 0.95rem;
  color: rgba(250,249,246,0.55);
  line-height: 2;
  font-weight: 300;
}

.philosophy-closing {
  font-size: 0.95rem !important;
  color: rgba(250,249,246,0.8) !important;
  font-weight: 400 !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.5rem;
}

/* ============================
   CORPORATE INFO
   ============================ */
.corporate-table {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.corporate-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.corporate-table th {
  width: 160px;
  padding: 1.1rem 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-mid);
  text-align: left;
  vertical-align: top;
}

.corporate-table td {
  padding: 1.1rem 0;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.8;
}



/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 400;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(250,249,246,0.4);
}
.btn-outline:hover {
  background: rgba(250,249,246,0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--charcoal);
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-large { padding: 1rem 2.5rem; font-size: 0.85rem; }

/* ============================
   SECTIONS
   ============================ */
.section { padding: 6rem 0; }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-light { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.section-dark .section-title { color: var(--white); }

/* ============================
   FEATURES
   ============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.06);
}

.feature-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  transition: background var(--transition);
}
.feature-card:hover { background: var(--cream); }

.feature-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(0,0,0,0.06);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.feature-text {
  font-size: 0.88rem;
  color: var(--gray-mid);
  line-height: 1.85;
  font-weight: 300;
}

/* ============================
   PRODUCTS PREVIEW
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }

.product-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.product-img-1 { background: linear-gradient(135deg, #3d2b1f 0%, #7a4f32 100%); }
.product-img-2 { background: linear-gradient(135deg, #2b1f14 0%, #6b3d20 100%); }
.product-img-3 { background: linear-gradient(135deg, #1a2b1f 0%, #3d6b4a 100%); }

.product-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  font-weight: 400;
  z-index: 1;
}

.product-info { padding: 1.5rem; }

.product-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.85rem;
  color: rgba(250,249,246,0.55);
  margin-bottom: 1.25rem;
  line-height: 1.75;
  font-weight: 300;
}

.product-link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--tan);
  transition: color var(--transition);
}
.product-link:hover { color: var(--white); }

.center { text-align: center; }

/* ============================
   FACTORY
   ============================ */
.factory-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.factory-text .section-title { margin-bottom: 1.5rem; }

.factory-desc {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.9;
  margin-bottom: 2rem;
  font-weight: 300;
}

.factory-visual {
  position: relative;
  height: 380px;
}

.visual-box { position: absolute; }

.visual-box-main {
  width: 75%; height: 80%;
  top: 0; right: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #8b1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-box-sub {
  width: 55%; height: 55%;
  bottom: 0; left: 0;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.08);
}

.factory-label-box { text-align: center; }

.factory-label-en {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.factory-label-ja {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.1em;
}

.visual-label {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--gray-mid);
  letter-spacing: 0.15em;
  z-index: 2;
}

/* ============================
   NEWS
   ============================ */
.news-list { list-style: none; border-top: 1px solid rgba(0,0,0,0.08); }

.news-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: padding-left var(--transition);
}
.news-item:hover { padding-left: 0.5rem; }

.news-date {
  font-size: 0.8rem;
  color: var(--gray-light);
  white-space: nowrap;
  font-weight: 300;
  min-width: 80px;
}

.news-cat {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: var(--cream);
  color: var(--brown);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  min-width: 72px;
  text-align: center;
}

.news-title {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 400;
  transition: color var(--transition);
}
.news-title:hover { color: var(--accent); }

/* ============================
   CTA
   ============================ */
.cta { background: var(--black); text-align: center; }

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1rem;
}

.cta-desc {
  color: rgba(250,249,246,0.5);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--charcoal); color: rgba(250,249,246,0.65); }

.footer-inner {
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: rgba(250,249,246,0.4);
  font-weight: 300;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: rgba(250,249,246,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-info {
  font-size: 0.82rem;
  line-height: 1.9;
  font-weight: 300;
}

.footer-bottom { padding: 1.25rem 2rem; }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(250,249,246,0.3); }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.75rem;
  color: rgba(250,249,246,0.3);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(250,249,246,0.65); }

/* ============================
   PAGE HERO (inner pages)
   ============================ */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: var(--charcoal);
  text-align: center;
}
.page-hero-sub {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 400;
}

/* ============================
   PRODUCTS PAGE
   ============================ */
.products-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-full-card {
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.product-full-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.product-full-img { height: 260px; position: relative; }
.product-full-img-1 { background: linear-gradient(135deg, #5c3d2e 0%, #a06540 100%); }
.product-full-img-2 { background: linear-gradient(135deg, #3d2b20 0%, #8b5a35 100%); }
.product-full-img-3 { background: linear-gradient(135deg, #2b3d2e 0%, #4a7a55 100%); }
.product-full-img-4 { background: linear-gradient(135deg, #3d1a1a 0%, #8b3535 100%); }

.product-full-info { padding: 2rem; }
.product-full-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.product-full-sub {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.product-full-desc {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.product-specs {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-light);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1.25rem;
  flex-wrap: wrap;
}
.product-spec span {
  display: block;
  color: var(--charcoal);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ============================
   ABOUT PAGE
   ============================ */
.about-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 2rem;
}
.about-intro p {
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 2;
  font-weight: 300;
}

.about-values { background: var(--cream); padding: 5rem 0; }

.about-company-table {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}
.about-company-table tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.about-company-table th {
  width: 160px;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-mid);
  text-align: left;
  vertical-align: top;
}
.about-company-table td {
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.8;
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-wrapper { max-width: 640px; margin: 0 auto; }
.contact-form { margin-top: 3rem; }

.form-group { margin-bottom: 1.75rem; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
  letter-spacing: 0.03em;
}
.form-label .required { color: var(--accent); margin-left: 0.25rem; font-size: 0.7rem; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  border-radius: 0;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 160px; resize: vertical; }

.form-submit { text-align: center; margin-top: 2.5rem; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
  margin-bottom: 4rem;
}
.contact-info-card { background: var(--white); padding: 2rem; text-align: center; }
.contact-info-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.contact-info-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
}

/* ============================
   BREADCRUMB
   ============================ */
.breadcrumb {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--gray-light);
}
.breadcrumb-list li:not(:last-child)::after { content: '›'; margin-left: 0.5rem; }
.breadcrumb-list a { color: var(--gray-mid); }
.breadcrumb-list a:hover { color: var(--accent); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .factory-inner { grid-template-columns: 1fr; gap: 3rem; }
  .factory-visual { height: 280px; }
  .products-full-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .brand-banner-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .logo-img { height: 38px; }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { color: var(--charcoal) !important; }

  .hamburger { display: flex; }

  .news-item { flex-wrap: wrap; gap: 0.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}
