/*
Theme Name: Captain Foods
Theme URI: https://captainfoods-official.com/
Author: キャプテンフーヅ株式会社
Description: キャプテンフーヅ公式サイトテーマ
Version: 1.0.0
License: Private
Text Domain: captain-foods
*/

/* ============================================================
   RESET & ROOT VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal-deep:  #1A2F4A;
  --teal-mid:   #2A4A6B;
  --teal-light: #3A6A90;
  --coral:      #C0392B;
  --coral-warm: #D94F3C;
  --gold:       #C9943E;
  --cream:      #FFFEF9;
  --cream-warm: #FDF5E8;
  --cream-mid:  #F5EDE0;
  --text:       #1A1A18;
  --text-mid:   #3D3D38;
  --text-muted: #6B6B60;
  --border:     #E0D8CC;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 12px rgba(26,47,74,0.08);
  --shadow:     0 6px 28px rgba(26,47,74,0.12);
  --shadow-lg:  0 16px 56px rgba(26,47,74,0.18);
  /* legacy aliases */
  --navy: #1A2F4A;
  --ocean: #2A4A6B;
  --accent: #C0392B;
  --bg: #FDF5E8;
  --white: #FFFEF9;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0 32px;
  transition: background 300ms, box-shadow 300ms;
}
.nav.scrolled,
.nav.nav-solid {
  background: rgba(26,47,74,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: white;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em;
}
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.03em;
  transition: color 200ms;
}
.nav-links a:hover { color: white; }
.nav-cta {
  background: var(--coral) !important; color: white !important;
  padding: 9px 22px !important; border-radius: 6px !important;
  font-weight: 500 !important; letter-spacing: 0.03em !important;
  transition: background 200ms !important;
}
.nav-cta:hover { background: var(--coral-warm) !important; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--teal-deep); color: rgba(255,255,255,0.55);
  padding: 56px 32px 28px;
}
.footer-top {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 1.05rem;
  color: white; margin-bottom: 14px;
}
.footer-logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-desc { font-size: 0.82rem; line-height: 1.85; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 6px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: background 200ms, color 200ms;
}
.footer-social a:hover { background: var(--gold); color: white; }
.footer-col-title {
  color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; transition: color 200ms; }
.footer-links a:hover { color: white; }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }

/* ============================================================
   COMMON UTILITIES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms, transform 600ms; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open {
    display: flex; flex-direction: column;
    background: rgba(26,47,74,0.98);
    position: fixed; inset: 68px 0 0 0;
    padding: 28px 24px; gap: 20px; z-index: 49;
  }
  .nav-mobile a {
    color: white; text-decoration: none; font-size: 1rem;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
