/*
Theme Name: Matsushima One
Theme URI: https://www.kkmatsushima.com
Author: Claude
Description: マツシマ 自動車・自転車ケア＆情報セキュリティ ペラ1テーマ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: matsushima-one
*/

/* ===== Google Fonts & Variables ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&family=Share+Tech+Mono&display=swap');

:root {
  --c-bg:        #0d0f14;
  --c-surface:   #141720;
  --c-card:      #1a1e2a;
  --c-border:    #252a38;
  --c-accent:    #00bfff;
  --c-accent2:   #005f7f;
  --c-text:      #e8ecf4;
  --c-muted:     #6b7590;
  --c-white:     #ffffff;
  --font-display:'Bebas Neue', sans-serif;
  --font-body:   'Zen Kaku Gothic New', sans-serif;
  --font-mono:   'Share Tech Mono', monospace;
  --max:         1100px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Utilities ===== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ===== Noise overlay ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  transition: color 0.2s;
  font-weight: 500;
}
.header-nav a:hover { color: var(--c-text); }
.header-nav .nav-contact {
  border: 1px solid var(--c-accent2);
  color: var(--c-accent);
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: all 0.25s;
}
.header-nav .nav-contact:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Grid lines background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 75%);
}

/* Glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: 10%; left: 55%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,191,255,0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: blob-drift 8s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 20px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.2s forwards;
}
.hero-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--c-accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--c-white);
  margin-bottom: 8px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.35s forwards;
}
.hero h1 span {
  color: var(--c-accent);
  display: block;
}

.hero-sub {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.5s forwards;
}

.hero-desc {
  font-size: 15px;
  color: var(--c-muted);
  max-width: 480px;
  line-height: 1.85;
  margin-bottom: 48px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.8s forwards;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover {
  background: var(--c-white);
  transform: translateY(-2px);
}

.btn-ghost {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  font-family: var(--font-mono);
}
.btn-ghost:hover { color: var(--c-accent); }
.btn-ghost::after { content: '↓'; }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 1s var(--ease) 1.2s forwards;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Services Section ===== */
.services {
  padding: 100px 0;
  background: var(--c-surface);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent2), transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.06em;
  color: var(--c-white);
  line-height: 1;
}
.section-head p {
  font-size: 14px;
  color: var(--c-muted);
  max-width: 340px;
  line-height: 1.8;
  text-align: right;
}

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

.service-card {
  background: var(--c-card);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { background: #1e2435; }
.service-card:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
  opacity: 0.7;
}
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--c-accent);
}
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--c-white);
  letter-spacing: 0.02em;
}
.service-card p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.9;
}

/* ===== About Section ===== */
.about {
  padding: 110px 0;
  position: relative;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-box {
  aspect-ratio: 4/3;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}
.about-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,191,255,0.05) 0%, transparent 60%);
}
/* Corner decorations */
.about-box .corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--c-accent);
  border-style: solid;
}
.about-box .corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.about-box .corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.about-box .corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.about-box .corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.about-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 2px;
}

.about-content .label { margin-bottom: 16px; }
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  color: var(--c-white);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.about-content p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.95;
  margin-bottom: 14px;
}
.about-specs {
  margin-top: 36px;
  border-top: 1px solid var(--c-border);
}
.spec-row {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
  gap: 24px;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}
.spec-value {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,191,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left .label { margin-bottom: 16px; }
.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--c-white);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 24px;
}
.contact-left p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.9;
  margin-bottom: 36px;
}
.contact-tel {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--c-white);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.contact-tel svg { color: var(--c-accent); width: 28px; height: 28px; }
.tel-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.contact-form-box {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 40px;
  position: relative;
}
.contact-form-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
}
.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--c-accent2);
}
.form-row textarea { height: 120px; resize: vertical; }

.btn-submit {
  width: 100%;
  background: var(--c-accent);
  color: var(--c-bg);
  border: none;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  margin-top: 8px;
}
.btn-submit:hover { background: var(--c-white); }

/* ===== Footer ===== */
.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 44px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--c-white);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-text); }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
}
.footer-address {
  font-size: 12px;
  color: var(--c-muted);
  text-align: right;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive: Tablet ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 0; bottom: -12px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head p { text-align: left; max-width: 100%; }
  .services { padding: 72px 0; }
  .about { padding: 72px 0; }
  .contact { padding: 72px 0; }
  .contact-form-box { padding: 32px; }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 600px) {
  /* Base */
  html { font-size: 15px; }
  .wrap { padding: 0 18px; }

  /* Header */
  .site-header { padding: 14px 0; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(13,15,20,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    gap: 36px;
  }
  .header-nav.open a {
    font-size: 20px;
    letter-spacing: 0.1em;
    color: var(--c-text);
  }
  .header-nav.open .nav-contact {
    font-size: 16px;
    padding: 12px 32px;
    border: 1px solid var(--c-accent);
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 300;
    position: relative;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--c-text);
    transition: all 0.3s var(--ease);
    transform-origin: center;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding: 110px 0 60px;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(52px, 16vw, 76px);
    line-height: 0.95;
    margin-bottom: 6px;
  }
  .hero-tag { margin-bottom: 20px; }
  .hero-sub {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    white-space: normal;
    word-break: break-word;
  }
  .hero-desc {
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.85;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 14px;
    clip-path: none;
    border-radius: 2px;
  }
  .btn-ghost { justify-content: center; }
  .hero-scroll { display: none; }

  /* Services */
  .services { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 34px; }
  .service-card { padding: 30px 22px; }
  .service-icon { width: 38px; height: 38px; margin-bottom: 16px; }
  .service-card h3 { font-size: 18px; margin-bottom: 10px; }
  .service-card p { font-size: 13px; line-height: 1.85; }

  /* About */
  .about { padding: 60px 0; }
  .about-content h2 { font-size: 30px !important; margin-bottom: 20px; }
  .about-content p { font-size: 14px; line-height: 1.9; }
  .about-specs { margin-top: 28px; }
  .spec-row { flex-direction: column; gap: 4px; padding: 14px 0; }
  .spec-label { width: auto; font-size: 10px; }
  .spec-value { font-size: 13px; }

  /* Contact */
  .contact { padding: 60px 0; }
  .contact-inner { gap: 32px; }
  .contact-left h2 { font-size: 34px; }
  .contact-left p { font-size: 14px; margin-bottom: 24px; }
  .contact-form-box { padding: 22px 18px; }
  .form-row { margin-bottom: 16px; }
  .form-row input,
  .form-row textarea,
  .form-row select {
    font-size: 16px; /* iOSの自動ズーム防止 */
    padding: 13px 14px;
  }
  .btn-submit { padding: 16px; font-size: 15px; }

  /* Footer */
  .site-footer { padding: 36px 0 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .footer-links { flex-wrap: wrap; gap: 12px 18px; }
  .footer-links a { font-size: 13px; }
  .footer-bottom { padding-top: 18px; }
  .footer-copy { font-size: 11px; }
}
