/*
Theme Name: WAKO PRECISION
Theme URI: https://wako-precision.jp
Author: Wakou Densetu Co., Ltd.
Author URI: https://wako-precision.jp
Description: Official theme for WAKO PRECISION — Licensed Firearms Dealer & Gunsmith
Version: 1.0.0
License: Private
Text Domain: wako-precision
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #414a4e;   /* ロゴ ダークグレー */
  --paper:      #f4f3f1;   /* オフホワイト（ニュートラル） */
  --warm-mid:   #b0b8bc;   /* ミッドグレー */
  --accent:     #e06c21;   /* ロゴ オレンジ */
  --accent-dk:  #b85418;   /* オレンジ深み */
  --rule:       #d8dadb;   /* 罫線 */
  --serif-en:   'Cormorant Garamond', Georgia, serif;
  --serif-jp:   'Noto Serif JP', serif;
  --mono:       'Courier Prime', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-jp);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif-jp);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

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

.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

.site-nav .nav-contact a {
  border: 1px solid var(--accent);
  padding: 6px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  transition: background 0.2s, color 0.2s;
}

.site-nav .nav-contact a::after { display: none; }
.site-nav .nav-contact a:hover { background: var(--accent); color: var(--paper); }

/* ── HAMBURGER (mobile) ── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 64px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 80px;
  position: relative;
}

.hero-left::after {
  content: '';
  position: absolute;
  top: 15%; bottom: 15%; right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rule) 30%, var(--rule) 70%, transparent);
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--serif-en);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-subtitle-jp {
  font-family: var(--serif-jp);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent-dk);
  margin-bottom: 48px;
  padding-left: 4px;
}

.hero-desc {
  font-size: 14px;
  line-height: 2.1;
  color: #4a4740;
  max-width: 400px;
  margin-bottom: 48px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--accent-dk);
  color: var(--paper);
  padding: 13px 32px;
  font-family: var(--serif-jp);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

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

.btn-ghost {
  color: var(--ink);
  font-family: var(--serif-jp);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--accent); }

.btn-ghost::after {
  content: '→';
  font-family: var(--serif-en);
  transition: transform 0.2s;
}

.btn-ghost:hover::after { transform: translateX(4px); }

.hero-right {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,191,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,191,170,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-graphic {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-spec {
  position: absolute;
  bottom: 48px;
  left: 48px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--warm-mid);
  line-height: 2;
}

/* ── SECTION BASE ── */
.site-section {
  padding: 96px 80px;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-family: var(--serif-en);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 48px;
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

/* ── ABOUT ── */
.about-section {
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body p {
  font-size: 14px;
  line-height: 2.2;
  color: #3a3830;
  margin-bottom: 20px;
}

.about-data { padding-top: 48px; }

.data-item {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
}

.data-item:last-child { border-bottom: 1px solid var(--rule); }

.data-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.data-value {
  font-family: var(--serif-jp);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
}

/* ── SERVICES ── */
.services-section { background: var(--paper); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-card {
  background: var(--paper);
  padding: 40px 36px;
  transition: background 0.2s;
}

.service-card:hover { background: #eeebe3; }

.service-number {
  font-family: var(--serif-en);
  font-size: 40px;
  font-weight: 300;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 20px;
  font-style: italic;
}

.service-title {
  font-family: var(--serif-jp);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--ink);
}

.service-title-en {
  font-family: var(--serif-en);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.service-desc {
  font-size: 13px;
  line-height: 2;
  color: #5a5750;
}

/* ── BRANDS ── */
.brands-section {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 80px;
}

.brands-section .section-label { color: var(--warm-mid); }
.brands-section .section-label::before { background: var(--warm-mid); }
.brands-section .section-heading { color: var(--paper); }
.brands-section .section-heading em { color: var(--accent); }

.brands-list {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #333;
}

.brand-item {
  padding: 28px 48px;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  font-family: var(--serif-en);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--warm-mid);
  transition: color 0.2s;
}

.brand-item:hover { color: var(--paper); }

.brand-note {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #666;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── NOTICE ── */
.notice-section {
  background: #f0ece4;
  padding: 64px 80px;
  border-top: 1px solid var(--rule);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.notice-block h3 {
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.notice-block p,
.notice-block li {
  font-size: 12px;
  line-height: 2;
  color: #5a5750;
}

.notice-block ul { list-style: none; }

.notice-block ul li::before {
  content: '—  ';
  color: var(--accent);
  font-family: var(--serif-en);
}

/* ── BLOG ── */
.blog-section { background: white; }

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

.blog-card {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: opacity 0.2s;
}

.blog-card:hover { opacity: 0.75; }

.blog-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}

.blog-tag {
  display: inline-block;
  background: var(--rule);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 2px 8px;
  margin-bottom: 12px;
  font-family: var(--mono);
  color: #777;
}

.blog-title {
  font-family: var(--serif-jp);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 12px;
  line-height: 1.9;
  color: #6a6760;
}

/* ── CONTACT ── */
.contact-section {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 96px 80px;
}

.contact-section .section-label { color: var(--warm-mid); justify-content: center; }
.contact-section .section-label::before { background: var(--warm-mid); }

.contact-heading {
  font-family: var(--serif-en);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--paper);
}

.contact-note {
  font-size: 13px;
  line-height: 2;
  color: var(--warm-mid);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-contact {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--paper);
  padding: 16px 48px;
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-contact:hover { background: var(--accent); color: var(--paper); }

/* ── FOOTER ── */
.site-footer {
  background: #111;
  color: #666;
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--serif-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #888;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

.footer-links a:hover { color: #aaa; }

/* ── DIVIDER ── */
.rule-full {
  height: 1px;
  background: var(--rule);
}

/* ── ANIMATIONS ── */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

.cross-rotate {
  animation: rotate-slow 30s linear infinite;
  transform-origin: center;
}

.cross-pulse {
  animation: fade-pulse 4s ease-in-out infinite;
}

/* ── SINGLE POST ── */
.single-post-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 40px 96px;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.post-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
}

.post-title {
  font-family: var(--serif-jp);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.post-content {
  font-size: 15px;
  line-height: 2.1;
  color: #3a3830;
}

.post-content h2 {
  font-family: var(--serif-jp);
  font-size: 20px;
  font-weight: 400;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.post-content h3 {
  font-family: var(--serif-jp);
  font-size: 17px;
  font-weight: 400;
  margin: 32px 0 12px;
}

.post-content p { margin-bottom: 20px; }

.post-content img {
  width: 100%;
  margin: 32px 0;
}

.post-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

/* ── ARCHIVE ── */
.archive-wrap {
  padding: 120px 80px 96px;
}

.archive-title {
  font-family: var(--serif-en);
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 48px;
  color: var(--ink);
}

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

/* ── CONTACT PAGE FORM ── */
.contact-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 40px 96px;
}

.wpcf7-form p { margin-bottom: 24px; }

.wpcf7-form label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  background: white;
  border: 1px solid var(--rule);
  padding: 12px 16px;
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--accent);
}

.wpcf7-form textarea { height: 160px; resize: vertical; }

.wpcf7-form input[type="submit"] {
  background: var(--accent-dk);
  color: var(--paper);
  border: none;
  padding: 13px 40px;
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.2s;
}

.wpcf7-form input[type="submit"]:hover { background: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .site-header { padding: 0 32px; }
  .hero-left { padding: 60px 48px; }
  .site-section { padding: 72px 48px; }
  .about-section { padding: 72px 48px; gap: 48px; }
  .brands-section { padding: 72px 48px; }
  .notice-section { padding: 64px 48px; }
  .contact-section { padding: 72px 48px; }
  .site-footer { padding: 40px 48px; }
  .archive-wrap { padding: 120px 48px 72px; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 24px; }

  .site-nav { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 24px; gap: 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav li { width: 100%; }
  .menu-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 60px 24px; }
  .hero-left::after { display: none; }
  .hero-right { min-height: 320px; }
  .hero-spec { left: 24px; bottom: 24px; }

  .site-section { padding: 64px 24px; }
  .about-section { grid-template-columns: 1fr; padding: 64px 24px; gap: 40px; }
  .about-data { padding-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .brands-section { padding: 64px 24px; }
  .brands-list { flex-direction: column; }
  .brand-item { border-right: none; }
  .notice-section { padding: 48px 24px; }
  .notice-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 64px 24px; }
  .site-footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
  .archive-wrap { padding: 100px 24px 64px; }
  .single-post-wrap { padding: 100px 24px 64px; }
  .contact-page-wrap { padding: 100px 24px 64px; }
}
