/*
Theme Name: CPR Motor Tokyo
Theme URI: https://cpr-inc.jp
Author: CPR MOTOR TOKYO
Description: 中古ハーレーショップ CPR MOTOR TOKYO 向けオリジナルテーマ（デザイン確認用モックアップ）。Friscoチョッパー風のガレージテイストを取り入れた配色・レイアウトです。
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpr-motor
*/

:root{
  --asphalt:#15130f;
  --asphalt-2:#201d16;
  --asphalt-3:#2a2620;
  --steel:#55514a;
  --steel-light:#7a756a;
  --bone:#ede6d6;
  --bone-dim:#b7ae9b;
  --rust:#b5451f;
  --rust-bright:#d05a2c;
  --rust-dark:#7a2f16;
  --brass:#9c7a3e;
  --brass-light:#c4a568;
  --oxide-red:#7a2620;
  --radius-plate: 2px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  background:var(--asphalt);
  color:var(--bone);
  font-family:'Archivo', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* subtle metal grain overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:999;
  opacity:0.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

h1,h2,h3,.wordmark,.plate-label,.nav-link,.btn,.chip,.step-num{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
}

.mono{ font-family:'IBM Plex Mono', monospace; }

a{ color:inherit; text-decoration:none; }

img, .ph{ display:block; max-width:100%; }

.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:0 28px;
}

/* ---------- NAV ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  background:
    repeating-linear-gradient(100deg, #23201a 0px, #23201a 2px, #1b1913 2px, #1b1913 4px);
  border-bottom:1px solid var(--asphalt-3);
  box-shadow:0 6px 18px rgba(0,0,0,0.35);
}
.nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.wordmark{
  font-size:22px; font-weight:700; letter-spacing:1px; color:var(--bone);
  display:flex; flex-direction:column; line-height:1;
}
.wordmark span{
  font-family:'IBM Plex Mono', monospace;
  font-size:9px; letter-spacing:4px; color:var(--brass-light);
  margin-top:4px; text-transform:uppercase;
}
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-link{ font-size:13px; letter-spacing:1.5px; color:var(--bone-dim); font-weight:500; transition:color .15s; }
.nav-link:hover{ color:var(--rust-bright); }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-size:13px; letter-spacing:1.5px; font-weight:600;
  padding:12px 24px;
  border-radius:var(--radius-plate);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
  border:1px solid transparent;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--rust); color:var(--bone); box-shadow:0 4px 0 var(--rust-dark); }
.btn-primary:hover{ background:var(--rust-bright); }
.btn-outline{ background:transparent; color:var(--bone); border-color:var(--steel-light); }
.btn-outline:hover{ border-color:var(--brass-light); color:var(--brass-light); }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:640px;
  display:flex; align-items:center;
  overflow:hidden;
  background:
    radial-gradient(ellipse 900px 500px at 78% 45%, rgba(181,69,31,0.18), transparent 60%),
    linear-gradient(180deg, #1a1712 0%, #100e0a 100%);
  border-bottom:1px solid var(--asphalt-3);
}
.hero-moto{
  position:absolute; right:-40px; bottom:-30px;
  width:min(58vw, 720px);
  opacity:0.9;
}
.hero-content{
  position:relative; z-index:2;
  max-width:640px;
  padding:120px 0 100px;
}
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px; letter-spacing:4px; color:var(--brass-light);
  display:flex; align-items:center; gap:10px; margin-bottom:22px;
}
.eyebrow::before{ content:""; width:26px; height:1px; background:var(--brass-light); }
.hero h1{
  font-size:clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight:700; line-height:1.08; letter-spacing:0.5px;
  color:var(--bone);
  margin-bottom:22px;
}
.hero h1 em{
  font-style:normal; color:var(--rust-bright);
}
.hero p{
  font-size:16px; color:var(--bone-dim); max-width:480px; margin-bottom:36px;
}
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- PLATE DIVIDER (signature element) ---------- */
.plate{
  display:flex; align-items:center; gap:18px;
  padding:56px 0 34px;
}
.plate::before, .plate::after{
  content:""; flex:1; height:2px;
  background:linear-gradient(90deg, transparent, var(--steel) 20%, var(--steel) 80%, transparent);
}
.plate-label{
  position:relative;
  font-size:13px; font-weight:600; letter-spacing:5px;
  color:var(--brass-light);
  padding:10px 22px;
  background:var(--asphalt-2);
  border:1px solid var(--steel);
  border-radius:var(--radius-plate);
  white-space:nowrap;
}
.plate-label::before, .plate-label::after{
  content:""; position:absolute; top:50%; width:5px; height:5px; border-radius:50%;
  background:var(--steel-light); transform:translateY(-50%);
  box-shadow:inset 0 1px 1px rgba(0,0,0,0.5);
}
.plate-label::before{ left:6px; }
.plate-label::after{ right:6px; }

section{ padding-bottom:20px; }
.section-intro{ text-align:center; max-width:560px; margin:0 auto 46px; }
.section-intro p{ color:var(--bone-dim); font-size:14.5px; }

/* ---------- INVENTORY ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; padding-bottom:70px; }
.card{
  background:var(--asphalt-2);
  border:1px solid var(--asphalt-3);
  border-radius:var(--radius-plate);
  overflow:hidden;
  transition:border-color .15s, transform .15s;
}
.card:hover{ border-color:var(--brass); transform:translateY(-3px); }
.card-photo{
  position:relative;
  aspect-ratio:4/3;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(150deg, #33302a, #17150f 70%);
  display:flex; align-items:center; justify-content:center;
}
.card-photo svg{ width:58%; opacity:0.55; }
.ribbon{
  position:absolute; top:14px; left:14px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px; letter-spacing:2px; font-weight:600;
  padding:5px 10px; border-radius:var(--radius-plate);
  background:var(--oxide-red); color:var(--bone);
}
.ribbon.new{ background:var(--brass); color:#1a1712; }
.card-body{ padding:20px 20px 22px; }
.card-title{ font-size:17px; font-weight:600; letter-spacing:0.5px; margin-bottom:10px; }
.card-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.chip{
  font-size:10.5px; letter-spacing:1px; font-weight:500;
  color:var(--bone-dim); background:var(--asphalt);
  border:1px solid var(--asphalt-3); padding:5px 9px; border-radius:var(--radius-plate);
  text-transform:none; font-family:'IBM Plex Mono', monospace;
}
.card-foot{ display:flex; align-items:baseline; justify-content:space-between; border-top:1px dashed var(--asphalt-3); padding-top:14px; }
.price{ font-family:'IBM Plex Mono', monospace; font-size:20px; color:var(--rust-bright); font-weight:600; }
.price span{ font-size:11px; color:var(--bone-dim); margin-left:4px; }
.card-link{ font-size:12px; letter-spacing:1px; color:var(--brass-light); font-weight:600; }

/* ---------- ABOUT ---------- */
.about{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; padding-bottom:80px; }
.about-copy h2{ font-size:clamp(1.6rem,3vw,2.3rem); line-height:1.25; margin-bottom:20px; color:var(--bone); }
.about-copy p{ color:var(--bone-dim); font-size:14.5px; margin-bottom:14px; }
.about-photo{
  aspect-ratio:1/1;
  border-radius:var(--radius-plate);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(156,122,62,0.15), transparent 55%),
    linear-gradient(160deg, #2b2721, #14120d 75%);
  border:1px solid var(--asphalt-3);
  display:flex; align-items:center; justify-content:center;
}
.about-photo svg{ width:42%; opacity:0.4; }

/* ---------- PROCESS ---------- */
.process{ padding-bottom:80px; }
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; position:relative; }
.steps::before{
  content:""; position:absolute; top:26px; left:8%; right:8%; height:1px;
  background:repeating-linear-gradient(90deg, var(--steel) 0 8px, transparent 8px 16px);
  z-index:0;
}
.step{ position:relative; z-index:1; padding:0 20px; text-align:center; }
.step-num{
  width:52px; height:52px; margin:0 auto 20px;
  display:flex; align-items:center; justify-content:center;
  background:var(--asphalt); border:2px solid var(--brass);
  border-radius:50%;
  font-family:'IBM Plex Mono', monospace; font-size:15px; color:var(--brass-light);
}
.step h3{ font-size:15px; letter-spacing:1px; margin-bottom:10px; color:var(--bone); }
.step p{ font-size:13.5px; color:var(--bone-dim); }

/* ---------- INSTAGRAM ---------- */
.ig{ padding-bottom:80px; }
.ig-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; flex-wrap:wrap; gap:14px; }
.ig-handle{ font-family:'IBM Plex Mono', monospace; color:var(--brass-light); font-size:14px; }
.grid-ig{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.ig-item{
  aspect-ratio:1/1; border-radius:var(--radius-plate);
  background:linear-gradient(155deg, #2f2b24, #171510 75%);
  border:1px solid var(--asphalt-3);
  display:flex; align-items:center; justify-content:center;
}
.ig-item svg{ width:34%; opacity:0.35; }
.ig-embed-grid{ display:flex; flex-wrap:wrap; gap:20px; justify-content:center; }
.ig-embed-grid > blockquote.instagram-media{ margin:0 !important; min-width:auto !important; }

/* ---------- CONTACT ---------- */
.contact{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:50px; padding-bottom:90px; }
.contact-info h2{ font-size:clamp(1.5rem,2.8vw,2rem); margin-bottom:22px; color:var(--bone); }
.info-row{ display:flex; gap:16px; padding:14px 0; border-bottom:1px solid var(--asphalt-3); }
.info-row .k{ width:88px; flex-shrink:0; font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:1.5px; color:var(--brass-light); padding-top:2px; }
.info-row .v{ font-size:14.5px; color:var(--bone-dim); }
.map-ph{
  border-radius:var(--radius-plate);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #23201a, #14120d);
  border:1px solid var(--asphalt-3);
  min-height:280px;
  overflow:hidden;
}
.map-ph iframe{
  width:100%;
  height:100%;
  min-height:280px;
  border:0;
  display:block;
  filter:grayscale(0.3) contrast(1.05);
}

/* ---------- VEHICLE DETAIL PAGE ---------- */
.cpr-detail{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:start; padding-bottom:40px; }
.cpr-detail-photo{
  position:relative;
  aspect-ratio:4/3;
  border-radius:var(--radius-plate);
  overflow:hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(150deg, #33302a, #17150f 70%);
  display:flex; align-items:center; justify-content:center;
}
.cpr-detail-photo svg{ width:58%; opacity:0.55; }
.cpr-detail-body h1{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  font-size:clamp(1.8rem,3.5vw,2.6rem);
  letter-spacing:0.5px;
  color:var(--bone);
  margin-bottom:18px;
}
.cpr-detail-body .card-chips{ margin-bottom:20px; }
.cpr-detail-price{ font-size:26px; margin-bottom:26px; }
.cpr-detail-desc{ color:var(--bone-dim); font-size:14.5px; line-height:1.9; margin-bottom:34px; }
.cpr-detail-desc p{ margin-bottom:14px; }
.cpr-detail-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
@media (max-width:860px){
  .cpr-detail{ grid-template-columns:1fr; }
}
.cpr-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(130px,1fr));
  gap:12px;
  padding-bottom:40px;
}
.cpr-gallery-item{
  display:block;
  aspect-ratio:1/1;
  border-radius:var(--radius-plate);
  overflow:hidden;
  border:1px solid var(--asphalt-3);
}
.cpr-gallery-item img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition:transform .2s ease;
}
.cpr-gallery-item:hover img{ transform:scale(1.06); }

/* ---------- CONTACT PAGE FORM ---------- */
.cpr-contact-wrap{ max-width:640px; margin:0 auto; padding-bottom:40px; }
.cpr-contact-notice{
  padding:18px 20px;
  border-radius:var(--radius-plate);
  margin-bottom:28px;
  font-size:14.5px;
}
.cpr-contact-notice--ok{ background:var(--asphalt-2); border:1px solid var(--brass); color:var(--bone); }
.cpr-contact-notice--error{ background:var(--asphalt-2); border:1px solid var(--rust); color:var(--bone); }
.cpr-hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.cpr-field{ margin-bottom:20px; }
.cpr-field label{
  display:block;
  font-family:'Oswald', sans-serif;
  font-size:12px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--brass-light);
  margin-bottom:8px;
}
.cpr-field .req{
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:1px;
  color:var(--rust-bright);
  text-transform:none;
  margin-left:4px;
}
.cpr-field input[type="text"],
.cpr-field input[type="email"],
.cpr-field input[type="tel"],
.cpr-field select,
.cpr-field textarea{
  width:100%;
  padding:12px 14px;
  background:var(--asphalt-2);
  border:1px solid var(--asphalt-3);
  border-radius:var(--radius-plate);
  color:var(--bone);
  font-family:'Archivo', sans-serif;
  font-size:14.5px;
}
.cpr-field input:focus,
.cpr-field select:focus,
.cpr-field textarea:focus{
  outline:none;
  border-color:var(--brass);
}
.cpr-field textarea{ resize:vertical; }
.cpr-contact-submit{ width:100%; border:none; font-size:14px; padding:14px 24px; }

/* ---------- FOOTER ---------- */
footer{
  background:repeating-linear-gradient(100deg, #1c1a14 0px, #1c1a14 2px, #161409 2px, #161409 4px);
  border-top:1px solid var(--asphalt-3);
  padding:38px 0;
}
footer .wrap{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.foot-note{ font-size:12px; color:var(--steel-light); font-family:'IBM Plex Mono', monospace; }
.foot-social{ display:flex; gap:18px; }
.foot-social a{ font-size:12px; letter-spacing:1.5px; color:var(--bone-dim); font-family:'Oswald',sans-serif; }
.foot-social a:hover{ color:var(--rust-bright); }

@media (max-width:860px){
  .nav-links{ display:none; }
  .about, .contact{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr 1fr; }
  .grid-ig{ grid-template-columns:repeat(3,1fr); }
  .steps{ grid-template-columns:1fr; gap:34px; }
  .steps::before{ display:none; }
  .hero-moto{ opacity:0.35; }
}
@media (max-width:560px){
  .grid-3{ grid-template-columns:1fr; }
  .grid-ig{ grid-template-columns:repeat(3,1fr); }
  .hero-content{ padding:90px 0 70px; }
}
