/*
Theme Name: おのざき
Theme URI: https://onozaki.net
Description: 株式会社おのざき 公式テーマ — Elementor対応
Author: Onozaki Inc.
Version: 3.0
Text Domain: onozaki
*/

/* ============================================================
   0. CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --ink:        #0B1D35;
  --ink-light:  #1a2d48;
  --navy:       #132B4D;
  --gold:       #C5973A;
  --gold-light: #d4ab5a;
  --cream:      #FAF7F2;
  --white:      #ffffff;
  --gray-100:   #f5f5f5;
  --gray-200:   #e8e8e8;
  --gray-400:   #999;
  --gray-600:   #666;
  --text:       #333;
  --text-light: #555;

  /* Typography */
  --font-serif:    'Noto Serif JP', 'Georgia', serif;
  --font-sans:     'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-display:  'Cormorant Garamond', var(--font-serif);

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --content-max: 1100px;
  --wide-max:    1300px;

  /* Transitions */
  --ease: cubic-bezier(.25, .46, .45, .94);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ============================================================
   2. Utility
   ============================================================ */
.container     { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.wide          { max-width: var(--wide-max); margin: 0 auto; padding: 0 24px; }
.section-pad   { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.text-center   { text-align: center; }
.bg-cream      { background: var(--cream); }
.bg-ink        { background: var(--ink); color: var(--white); }

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading .en {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-heading .ja {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: .05em;
}

/* Scroll Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   3. Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--ink);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 29, 53, .97);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.header-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo .logo-img {
  height: 45px;
  width: auto;
}
.site-logo .logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .1em;
}

/* Nav */
.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-list li a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  padding: 6px 0;
  position: relative;
  transition: color .3s;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-list li a:hover,
.nav-list li.current-menu-item a,
.nav-list li.current a {
  color: var(--white);
}
.nav-list li a:hover::after,
.nav-list li.current-menu-item a::after,
.nav-list li.current a::after {
  width: 100%;
}

.external-icon {
  font-size: 11px;
  margin-left: 3px;
  opacity: .6;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 24px;
  position: relative;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: .3s var(--ease);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

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

/* ============================================================
   4. Hero Slideshow
   ============================================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,29,53,.4) 0%,
    rgba(11,29,53,.15) 40%,
    rgba(11,29,53,.5) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 0; right: 0;
  text-align: center;
  color: var(--white);
  z-index: 2;
  padding: 0 24px;
}
.hero-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-content p {
  font-size: clamp(14px, 1.5vw, 16px);
  margin-top: 16px;
  opacity: .9;
  letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  transition: .3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

/* Hero fallback (no images) */
.hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85vh;
  min-height: 500px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 0 24px;
}
.hero-fallback h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: .1em;
}
.hero-fallback p {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 18px);
  margin-top: 16px;
  letter-spacing: .15em;
  color: var(--gold);
}

/* ============================================================
   5. Ticker
   ============================================================ */
.ticker {
  background: var(--gold);
  color: var(--white);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: 0 48px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   6. Brand Statement / About
   ============================================================ */
.brand-section {
  text-align: center;
}
.brand-statement {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 2;
  letter-spacing: .06em;
  max-width: 700px;
  margin: 0 auto 48px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
  letter-spacing: .08em;
}

/* ============================================================
   7. CTA Band
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 24px;
  letter-spacing: .06em;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  transition: .3s var(--ease);
}
.btn:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ============================================================
   8. Page Hero (sub pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 140px 24px 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: .08em;
}
.page-hero .en {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}

/* ============================================================
   9. Content Area
   ============================================================ */
.content-area {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}
.content-area h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.content-area h2:first-child { margin-top: 0; }
.content-area p { margin-bottom: 16px; }

/* ============================================================
   10. Cards Grid
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body {
  padding: 20px 24px;
}
.card-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================================
   11. News List
   ============================================================ */
.news-list { list-style: none; }
.news-item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background .2s;
}
.news-item:hover { background: var(--gray-100); padding-left: 12px; }
.news-date {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gray-400);
  flex-shrink: 0;
  letter-spacing: .05em;
}
.news-title {
  font-size: 15px;
  font-weight: 500;
}
.news-title a:hover { color: var(--gold); }

/* ============================================================
   12. Contact Form
   ============================================================ */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group label .required {
  color: #c0392b;
  font-size: 12px;
  margin-left: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color .3s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 180px; resize: vertical; }

.honeypot { position: absolute; left: -9999px; }

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.alert {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   13. Shops Grid
   ============================================================ */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.shop-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.shop-card-img {
  aspect-ratio: 16/10;
  background: var(--gray-100);
  overflow: hidden;
}
.shop-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.shop-card-body {
  padding: 20px 24px;
}
.shop-card-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 8px;
}
.shop-card-body .shop-info {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ============================================================
   14. Recruit
   ============================================================ */
.recruit-section { margin-bottom: 48px; }
.recruit-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
}
.recruit-table th,
.recruit-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.recruit-table th {
  width: 140px;
  font-weight: 500;
  background: var(--cream);
  white-space: nowrap;
}

/* ============================================================
   15. Company Info
   ============================================================ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}
.company-table th,
.company-table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 160px;
  font-weight: 600;
  background: var(--cream);
}

/* ============================================================
   16. Single Post
   ============================================================ */
.single-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--gray-400);
}
.single-meta .post-type-label {
  background: var(--gold);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: .08em;
}
.single-content {
  font-size: 15px;
  line-height: 2;
}
.single-content p { margin-bottom: 20px; }
.single-content img { margin: 24px 0; border-radius: 4px; }

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}
.post-nav a:hover { color: var(--gold); }

/* ============================================================
   17. Footer
   ============================================================ */
.site-footer {
  background: var(--cream);
  color: var(--text);
}
.footer-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { height: 55px; width: auto; margin-bottom: 12px; }
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.footer-tagline {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.footer-inner h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}
.footer-inner ul li {
  margin-bottom: 8px;
}
.footer-inner ul li a {
  font-size: 13px;
  color: var(--gray-600);
  transition: color .3s;
}
.footer-inner ul li a:hover { color: var(--gold); }

.footer-address address {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--gray-400);
}

/* ============================================================
   18. Elementor Overrides
   ============================================================ */
.elementor-page .site-header { background: var(--ink); }
.elementor-page .page-hero { display: none; }

/* ============================================================
   19. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .site-logo .logo-img { height: 36px; }

  /* Mobile Nav */
  .hamburger { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 360px;
    height: 100vh;
    background: var(--ink);
    padding: 80px 32px 40px;
    transition: right .4s var(--ease);
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list li a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  /* Hero */
  .hero { height: 60vh; min-height: 400px; }
  .hero-fallback { height: 60vh; min-height: 400px; }
  .page-hero { padding: 100px 24px 40px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* News */
  .news-item { flex-direction: column; gap: 4px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-row { gap: 24px; }

  /* Recruit Table */
  .recruit-table th,
  .recruit-table td {
    display: block;
    width: 100%;
  }
  .recruit-table th { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero { height: 50vh; }
  .hero-fallback { height: 50vh; }
  .hero-content h2 { font-size: 24px; }
  .stats-row { flex-direction: column; gap: 20px; }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
}
.nav-overlay.active { display: block; }
