/*
 Theme Name: MAKTA
 Theme URI: https://www.makunique.com/brand/
 Description: MAKTA 单页品牌专题主题（白底为主，黑色文字 + 红色点缀，少量黑色锚定；自适应 PC/Pad/手机）。自主开发，无第三方主题依赖。
 Version: 1.1.0
 Author: MAKTA
 Author URI: https://www.makunique.com/
 Tags: white, red, black, one-page, responsive, custom-theme, outdoor, bicycle, camping, fishing
 Text Domain: makta
*/

/* ============================================================
   1. BASE / RESET
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --white:   #ffffff;
  --paper:   #f6f6f6;   /* 浅灰分区背景 */
  --ink:     #161616;   /* 近黑正文 */
  --ink-2:   #333333;
  --muted:   #6b6b6b;
  --line:    rgba(0, 0, 0, 0.10);
  --red:     #e60012;   /* 主点缀红 */
  --red-2:   #ff1f33;
  --black:   #111111;   /* 少量黑色：页脚 / 强调分隔 */
  --maxw:    1180px;
  --radius:  14px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Yu Gothic", "YuGothic", "Meiryo", system-ui, -apple-system,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: 0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   2. HEADER / NAV  (白底)
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 34px; width: auto; }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red); transition: width 0.25s ease;
}
.site-nav a:hover { color: var(--red); }
.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   3. HERO / BRAND  (白底分栏)
   ============================================================ */
.hero { padding: 130px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.4em; color: var(--red); margin: 0 0 18px; }
.hero__title { font-size: clamp(52px, 10vw, 120px); margin: 0; color: var(--ink); line-height: 0.95; letter-spacing: 0.01em; }
.hero__jp { display: inline-block; font-size: clamp(18px, 3vw, 28px); color: var(--muted); margin-left: 14px; vertical-align: middle; font-weight: 600; }
.hero__tagline { font-size: clamp(20px, 3.2vw, 32px); font-weight: 700; color: var(--ink); margin: 22px 0 0; letter-spacing: 0.03em; }
.hero__lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); margin: 24px 0 34px; max-width: 560px; }
.hero__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,0.08); }

/* ============================================================
   4. SHARED SECTION
   ============================================================ */
.section { padding: 92px 0; position: relative; }
.section--paper { background: var(--paper); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.34em; color: var(--red); margin: 0 0 14px; }
.section__title { font-size: clamp(26px, 4vw, 44px); color: var(--ink); margin: 0 0 28px; }
.center { text-align: center; }

/* ============================================================
   5. CONCEPT
   ============================================================ */
.concept { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.concept__text p { color: var(--ink-2); margin: 0 0 18px; }
.concept__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.media__cap { font-size: 13px; color: var(--muted); margin: 12px 2px 0; }

/* ============================================================
   6. THREE FIELDS
   ============================================================ */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.field { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.field:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 16px 36px rgba(0,0,0,0.10); }
.field__num { font-size: 46px; font-weight: 900; color: var(--red); padding: 22px 24px 0; line-height: 1; }
.field__media { padding: 14px 24px 0; }
.field__media img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }
.field__title { font-size: 30px; color: var(--ink); margin: 18px 24px 6px; letter-spacing: 0.08em; }
.field__sub { font-weight: 700; color: var(--ink); margin: 0 24px 10px; }
.field p:last-child { color: var(--ink-2); margin: 0 24px 26px; }

/* ============================================================
   7. VALUE
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.value { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; padding: 26px 24px; }
.value__no { font-size: 14px; font-weight: 800; color: var(--red); letter-spacing: 0.2em; }
.value h3 { font-size: 19px; color: var(--ink); margin: 8px 0 10px; }
.value p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* ============================================================
   8. CATEGORY  (图片卡，深色渐变保证可读)
   ============================================================ */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat:hover img { transform: scale(1.08); }
.cat__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%); }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.cat__title { font-size: 24px; color: #fff; margin: 0 0 8px; letter-spacing: 0.06em; }
.cat__body p { color: #efefef; font-size: 14px; margin: 0; }

/* ============================================================
   9. MESSAGE  (黑色强调带，少量黑色)
   ============================================================ */
.section--message { background: var(--black); }
.message { max-width: 880px; margin: 0 auto; text-align: center; }
.message .kicker { color: var(--red-2); }
.message__big { font-size: clamp(30px, 6vw, 60px); color: #fff; margin: 6px 0 26px; letter-spacing: 0.02em; }
.message p { color: #e6e6e6; font-size: clamp(15px, 1.8vw, 18px); margin: 0 0 16px; }

/* ============================================================
   10. CONTACT
   ============================================================ */
.contact { max-width: 1000px; margin: 0 auto; }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; margin-top: 10px; }
.contact__info p { color: var(--ink-2); }
.contact__info ul { list-style: none; padding: 0; margin: 18px 0 0; }
.contact__info li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.contact__info a { color: var(--red); font-weight: 700; }
.contact__form { display: flex; flex-direction: column; gap: 14px; }
.contact__form input, .contact__form textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 14px 16px; font-family: inherit; font-size: 15px;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--red); }
.contact__form textarea { min-height: 130px; resize: vertical; }
.contact__note { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

/* ============================================================
   11. BUTTON
   ============================================================ */
.btn { display: inline-block; font-weight: 800; letter-spacing: 0.1em; border-radius: 999px; padding: 14px 34px; cursor: pointer; border: 0; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(230, 0, 18, 0.25); }
.btn--red:hover { background: var(--red-2); transform: translateY(-2px); }

/* ============================================================
   12. FOOTER  (黑色，少量黑色锚定)
   ============================================================ */
.site-footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.08); padding: 40px 0; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__logo { height: 28px; filter: invert(1); } /* 黑底上转白 */
.site-footer__copy { color: #9a9a9a; font-size: 13px; margin: 0; }

/* ============================================================
   13. REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   14. RESPONSIVE — TABLET (<=1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 74px 0; }
  .hero { padding: 110px 0 64px; }
  .concept { grid-template-columns: 1fr; gap: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; max-width: 520px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   15. RESPONSIVE — PHONE (<=640px)
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .site-header__inner { height: 60px; }
  .brand__logo { height: 28px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--line);
    padding: 8px 0 18px; transform: translateY(-130%); transition: transform 0.35s ease; z-index: 998;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-nav a::after { display: none; }

  .hero { padding: 92px 0 54px; }
  .section { padding: 58px 0; }
  .fields { grid-template-columns: 1fr; gap: 20px; }
  .field__media img { height: 180px; }
  .values { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .section__title { font-size: 26px; }
  .hero__tagline { font-size: 22px; }
  .site-footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
