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

:root {
  --primary:      #0f2044;
  --primary-mid:  #1a3666;
  --accent:       #c8922a;
  --accent-bright:#e8a820;
  --text:         #1e2030;
  --text-muted:   #5a5c72;
  --bg:           #f5f6fa;
  --white:        #ffffff;
  --border:       #dde2f0;
  --shadow:       0 4px 20px rgba(15,32,68,.12);
  --radius:       10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── Header ───────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  letter-spacing: -1px;
}

.logo-text { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; }
.logo-sub  { color: var(--accent-bright); font-size: 10px; font-weight: 400; }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 13px;
  border-radius: 6px;
  transition: all .2s;
  white-space: nowrap;
}
nav a:hover            { background: rgba(255,255,255,.1); color: #fff; }
nav a.btn-contact-nav  { background: var(--accent); color: #fff !important; }
nav a.btn-contact-nav:hover { background: var(--accent-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  padding: 4px 8px;
  line-height: 1;
}

/* ── Hero ─────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, #080e1e 0%, #0f2044 55%, #1a3666 100%);
  padding: 96px 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(200,146,42,.18);
  border: 1px solid rgba(200,146,42,.6);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: .1em;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 50px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero h1 span { color: var(--accent-bright); }

.hero-catch {
  font-size: clamp(14px, 2.2vw, 19px);
  color: rgba(255,255,255,.72);
  margin-bottom: 44px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(200,146,42,.45);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,.38);
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── Section base ─────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(21px, 3.2vw, 32px);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ── Services ─────────────────────────────── */
.services-section {
  background: var(--bg);
  padding: 80px 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-desc { font-size: 13px; color: var(--text-muted); line-height: 1.75; }

/* ── Features ─────────────────────────────── */
.features-section { padding: 80px 24px; background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.feature-item:hover { box-shadow: var(--shadow); }

.feature-num {
  font-size: 52px;
  font-weight: 900;
  color: var(--accent);
  opacity: .25;
  line-height: 1;
  margin-bottom: 6px;
}

.feature-title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature-text  { font-size: 13px; color: var(--text-muted); line-height: 1.85; }

/* ── 古物商 section ────────────────────────── */
.kojin-section {
  background: linear-gradient(135deg, #08111f, #0f2044);
  padding: 60px 24px;
  text-align: center;
}

.kojin-inner { max-width: 760px; margin: 0 auto; width: 100%; }

.kojin-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.kojin-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  column-gap: 24px;
  row-gap: 16px;
  width: 100%;
}

.kojin-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(200,146,42,.12);
  border: 1px solid rgba(200,146,42,.38);
  color: rgba(255,255,255,.88);
  padding: 22px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.9;
  box-sizing: border-box;
}

.kojin-box strong { color: var(--accent-bright); display: block; margin-bottom: 4px; }

@media (max-width: 600px) {
  .kojin-boxes { grid-template-columns: 1fr; }
}

/* ── Contact CTA ──────────────────────────── */
.cta-section {
  background: var(--bg);
  padding: 80px 24px;
  text-align: center;
}

.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-inner .section-desc { margin: 0 auto 32px; }

/* ── Contact form (contact.php) ───────────── */
.contact-section { padding: 72px 24px; }

.contact-form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group label .req {
  color: #e03030;
  margin-left: 4px;
  font-size: 11px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,146,42,.15);
  background: #fff;
}

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

.honeypot { display: none !important; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}
.btn-submit:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,146,42,.4);
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.alert-error   { background: #fce4ec; border: 1px solid #f48fb1; color: #880e4f; }

/* ── Page hero (sub pages) ────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0a1628, #1a3666);
  padding: 56px 24px 48px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; color: #fff; margin-bottom: 6px; }
.page-hero p  { color: rgba(255,255,255,.55); font-size: 13px; letter-spacing: .05em; }

/* ── 特商法 table ──────────────────────────── */
.toku-section { max-width: 820px; margin: 0 auto; padding: 60px 24px 80px; }

.toku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.85;
}
.toku-table th,
.toku-table td {
  padding: 15px 18px;
  border: 1px solid #e0e4ee;
  vertical-align: top;
  text-align: left;
}
.toku-table th {
  width: 200px;
  background: #f5f6fa;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}
.toku-table td { color: #444; }
.toku-table tr:first-child th,
.toku-table tr:first-child td { border-top: 2px solid var(--accent); }

.omit-badge {
  display: inline-block;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  color: #7b5900;
  margin-top: 5px;
}

.toku-note {
  margin-top: 28px;
  background: #f5f6fa;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

/* ── Footer ───────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 44px 24px 20px;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo  { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 24px; }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 13px;
}
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--primary);
    padding: 12px 16px 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    z-index: 99;
  }
  nav.open a { padding: 12px 16px; border-radius: 8px; }
  .nav-toggle { display: flex; align-items: center; }

  .hero { padding: 60px 20px 44px; }

  .toku-table th { width: 110px; white-space: normal; font-size: 12px; }
  .toku-table td { font-size: 13px; }

  .contact-form-wrap { padding: 24px 18px; }

  .footer-bottom { flex-direction: column; }
}
