/* ============================================================
   Buggyrun Station — Global Styles
   ============================================================ */

:root {
  --black: #111111;
  --white: #ffffff;
  --green: #c0392b;
  --green-light: #e74c3c;
  --green-pale: #fde8e6;
  --gray: #f5f5f5;
  --gray-mid: #888888;
  --text: #1a1a1a;
  --font-en: 'Montserrat', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ---- Typography ---- */
.en { font-family: var(--font-en); }

h1, h2, h3 { line-height: 1.3; }

/* ---- Section heading ---- */
.section-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-title.dark { color: var(--black); }
.section-title.light { color: var(--white); }

.section-sub {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  font-family: var(--font-en);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.9em 2.5em;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--green); border-color: var(--green); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-light); border-color: var(--green-light); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(17, 17, 17, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.logo span { color: var(--green-light); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-light); }
.nav-links .nav-cta {
  background: var(--green);
  padding: 0.5em 1.2em;
  transition: background 0.2s;
}
.nav-links .nav-cta:hover { background: var(--green-light); color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; order: 2; }
  .site-header nav { order: 3; width: 0; overflow: hidden; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100vh;
  min-height: 600px;
  background: var(--black);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 4rem 6rem;
  position: relative;
  z-index: 1;
  width: 100%;
}
@media (max-width: 600px) {
  .hero {
    height: auto;
    padding-bottom: 4rem;
  }
  .hero-left {
    padding: 8rem 2rem 3rem;
  }
  .hero-scroll { display: none; }
}
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-en);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero-title em {
  font-style: normal;
  color: var(--green-light);
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: nowrap; justify-content: center; }
.hero-actions .btn { padding: 0.9em 1.5em; font-size: 0.8rem; }

.hero-scroll { display: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 7rem 2rem;
  background: var(--white);
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  overflow: hidden;
  border-radius: 4px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text .section-sub { margin-bottom: 1rem; }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-lead {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.about-note {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.9;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-img { aspect-ratio: 16/9; }
}

/* ============================================================
   MOVIE
   ============================================================ */
.movie {
  padding: 5rem 2rem;
  background: var(--black);
  text-align: center;
}
.movie-inner { max-width: 900px; margin: 0 auto; }
.movie .section-sub { color: var(--green-light); justify-content: center; display: block; margin-bottom: 0.5rem; }
.movie .section-title { margin-bottom: 0.5rem; }
.movie-desc { color: rgba(255,255,255,0.7); margin-bottom: 3rem; font-size: 0.95rem; }
.movie-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.movie-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   SERVICES (cards: station + catalog)
   ============================================================ */
.services {
  padding: 7rem 2rem;
  background: var(--gray);
}
.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.services-header {
  text-align: center;
  margin-bottom: 4rem;
}
.services-header .section-title { color: var(--black); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.service-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.service-card-img {
  aspect-ratio: 16/9;
  background: var(--black);
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}
.service-card:hover .service-card-img img { opacity: 1; transform: scale(1.04); }
.service-card-body { padding: 2rem; }
.service-card-tag {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.9rem; color: var(--gray-mid); margin-bottom: 1.5rem; line-height: 1.8; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INSTAGRAM STRIP
   ============================================================ */
.instagram {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--white);
}
.instagram-inner { max-width: 1100px; margin: 0 auto; }
.instagram .section-title { margin-bottom: 0.5rem; }
.instagram-handle {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}
.instagram-handle a:hover { color: var(--green); }
.instagram-link .btn { margin-top: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.footer-logo-img img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
}
.footer-brand .logo { margin-bottom: 1rem; font-size: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 260px; }
.footer-nav h4 {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.85rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--green-light); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-sns { display: flex; gap: 1.2rem; }
.footer-sns a { transition: color 0.2s; }
.footer-sns a:hover { color: var(--green-light); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--black);
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: attr(data-title);
  position: absolute;
  bottom: -0.2em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.page-header .section-sub { color: var(--green-light); margin-bottom: 0.75rem; }
.page-header .section-title { color: var(--white); }

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.diff-section {
  padding: 6rem 2rem;
  background: var(--white);
}
.diff-inner {
  max-width: 960px;
  margin: 0 auto;
}
.diff-header { text-align: center; margin-bottom: 4rem; }
.diff-header .section-title { color: var(--black); }
.diff-header p { margin-top: 1rem; color: var(--gray-mid); }

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 2px solid var(--black);
}
.diff-col {
  padding: 3rem 2.5rem;
}
.diff-col.regular { background: var(--gray); }
.diff-col.running { background: var(--black); color: var(--white); }
.diff-col h3 {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
  opacity: 0.6;
}
.diff-col.running h3 { opacity: 0.6; }
.diff-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.diff-col li {
  font-size: 0.95rem;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.7;
}
.diff-col li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

@media (max-width: 640px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ---- Buggy Cards ---- */
.catalog-section {
  padding: 5rem 2rem 7rem;
  background: var(--gray);
}
.catalog-inner { max-width: 1100px; margin: 0 auto; }
.catalog-header { text-align: center; margin-bottom: 4rem; }
.catalog-header .section-title { color: var(--black); }
.catalog-header p { margin-top: 1rem; color: var(--gray-mid); font-size: 0.9rem; }

.buggy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.buggy-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.buggy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.buggy-card-img {
  aspect-ratio: 1/1;
  background: #fafafa;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}
.buggy-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.3s;
}
.buggy-card:hover .buggy-card-img img { transform: scale(1.05); }
.buggy-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.buggy-brand {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.buggy-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}
.buggy-specs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.buggy-spec {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.buggy-spec .label {
  color: var(--gray-mid);
  white-space: nowrap;
  min-width: 3em;
}
.buggy-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray);
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.catalog-age-note {
  background: var(--white);
  border-left: 4px solid var(--green);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.catalog-age-note h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--black);
}
.catalog-age-note p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.8;
}

/* 5枚目のカードを左寄せで半幅に */
.buggy-card--wide {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .buggy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .buggy-grid { grid-template-columns: 1fr; }
  .buggy-card--wide { grid-column: span 1; }
}

/* ============================================================
   STATION PAGE
   ============================================================ */
.station-overview {
  padding: 6rem 2rem;
  background: var(--white);
}
.station-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.station-info .section-sub { margin-bottom: 1rem; }
.station-info .section-title { color: var(--black); margin-bottom: 2rem; }
.station-info p { font-size: 0.95rem; color: var(--gray-mid); line-height: 1.9; margin-bottom: 1rem; }
.station-details { display: flex; flex-direction: column; gap: 1rem; }
.station-detail-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray);
  font-size: 0.9rem;
}
.station-detail-row .key {
  font-weight: 700;
  min-width: 6em;
  color: var(--black);
}
.station-detail-row .val { color: var(--gray-mid); line-height: 1.8; }
/* Service Sections */
.service-section {
  padding: 5rem 2rem;
  background: var(--white);
}
.service-section--dark {
  background: var(--black);
}
.service-section--dark p { color: rgba(255,255,255,0.85); }
.service-section--dark .section-sub { color: var(--green-light); }
.service-section-inner {
  max-width: 800px;
  margin: 0 auto;
}
.service-section-inner > p { margin-bottom: 1.5rem; line-height: 1.9; }
.service-detail-block {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--gray);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.service-section--dark .service-detail-block {
  background: rgba(255,255,255,0.07);
}
.service-detail-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--green);
}
.service-section--dark .service-detail-block h3 { color: var(--green-light); }
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.service-list li {
  padding-left: 1rem;
  position: relative;
  line-height: 1.7;
  font-size: 0.95rem;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green-light);
}
.service-section--dark .service-list li { color: rgba(255,255,255,0.85); }
.service-note {
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-top: 0.5rem;
}
.service-section--dark .service-note { color: rgba(255,255,255,0.5); }
.service-section .section-title { margin-bottom: 1.5rem; }
.service-section .section-sub { margin-bottom: 0.5rem; }
.service-section .btn { margin-top: 2rem; }

.station-cta {
  padding: 5rem 2rem;
  background: var(--green);
  text-align: center;
}
.station-cta h2 {
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.station-cta p { color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; font-size: 0.95rem; }

@media (max-width: 900px) {
  .station-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   MEDIA PAGE
   ============================================================ */
.media-list {
  padding: 6rem 2rem 7rem;
  background: var(--white);
}
.media-inner { max-width: 960px; margin: 0 auto; }
.media-grid { display: flex; flex-direction: column; gap: 0; }
.media-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray);
  transition: background 0.2s;
}
.media-item:first-child { border-top: 1px solid var(--gray); }
.media-date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
}
.media-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  display: block;
}
.media-info .media-outlet {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.media-info h3 { font-size: 1rem; font-weight: 600; line-height: 1.5; }

@media (max-width: 640px) {
  .media-item { grid-template-columns: 80px 1fr; gap: 1rem; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 6rem 2rem 7rem;
  background: var(--white);
}
.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}
.contact-intro { text-align: center; margin-bottom: 4rem; }
.contact-intro .section-title { color: var(--black); margin-bottom: 1rem; }
.contact-intro p { color: var(--gray-mid); line-height: 1.9; }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}
.form-group label .req {
  color: var(--green);
  margin-left: 0.3em;
  font-size: 0.75rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid #ddd;
  font-family: var(--font-ja);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { text-align: center; margin-top: 2rem; }
.form-submit .btn { padding: 1em 3.5em; font-size: 0.9rem; }

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
