/* ============================================================
   株式会社PURE — 共通スタイル
   カラー: 白 #ffffff / チャコール #1f2937 / スカイブルー #0ea5e9
   フォント: Noto Sans JP (Google Fonts)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

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

/* --- Variables --- */
:root {
  --blue: #0ea5e9;
  --blue-dark: #0284c7;
  --charcoal: #1f2937;
  --gray: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
}

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* --- Header / Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 40px; width: auto; }

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

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

nav a:hover { color: var(--blue); }

nav a.btn-nav {
  background: var(--charcoal);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a.btn-nav:hover { background: var(--blue); color: #fff; }

/* --- Hamburger (mobile) --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  background: var(--charcoal);
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  opacity: 0.9;
}

.hero .container { position: relative; z-index: 1; }

.hero-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 4px 12px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 strong { font-weight: 700; }

.hero p {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}

.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #fff;
  color: #fff;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 4px;
  margin-left: 16px;
  transition: background 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* --- Stats bar --- */
.stats {
  background: var(--blue);
  color: #fff;
  padding: 40px 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num span { font-size: 18px; font-weight: 400; }

.stat-label { font-size: 13px; opacity: 0.85; letter-spacing: 0.06em; }

/* --- Section heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading .en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.section-heading p {
  margin-top: 16px;
  color: var(--gray);
  font-size: 15px;
  max-width: 500px;
  margin-inline: auto;
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: 6px;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(14,165,233,0.12);
  border-color: var(--blue);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--blue);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* --- Why section --- */
.why { background: var(--light); }

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

.why-item { display: flex; gap: 20px; }

.why-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.why-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--gray); }

/* --- Gallery placeholder --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--light);
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
  gap: 8px;
}

/* --- CTA section --- */
.cta {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.cta p { color: #94a3b8; margin-bottom: 40px; font-size: 15px; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.cta-tel {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.cta-tel a { color: var(--blue); }
.cta-tel small { display: block; font-size: 12px; font-weight: 400; color: #94a3b8; margin-top: 4px; text-align: center; }

/* --- Page hero (subpages) --- */
.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: 64px 0 56px;
}

.page-hero .en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* --- Company table --- */
.company-table { width: 100%; border-collapse: collapse; }

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.company-table th {
  width: 180px;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
}

/* --- Services detail --- */
.service-detail { padding: 64px 0; }

.service-detail:nth-child(even) { background: var(--light); }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }

.service-detail h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-bottom: 16px;
}

.service-detail p { font-size: 15px; color: var(--gray); line-height: 1.9; }

.service-img-placeholder {
  aspect-ratio: 4/3;
  background: var(--light);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
}

/* --- Process steps --- */
.process { background: var(--charcoal); color: #fff; padding: 80px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  position: relative;
}

.step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 24px;
  color: var(--blue);
  font-size: 20px;
}

.step:last-child::after { display: none; }

.step-num {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 12px; color: #94a3b8; }

/* --- Map --- */
.map-wrap { border-radius: 8px; overflow: hidden; height: 360px; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* --- Footer --- */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 13px;
}

footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-info .logo img { filter: invert(1); opacity: 0.85; margin-bottom: 16px; }

.footer-info p { line-height: 1.9; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; text-align: right; }

.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 12px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  nav { display: none; }
  .hamburger { display: flex; }

  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .stats .container { grid-template-columns: 1fr; gap: 16px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 16px; }
  .stat-item:last-child { border-bottom: none; }

  .service-detail-inner { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-inner.reverse { direction: ltr; }

  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }

  footer .container { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; }

  .company-table th { width: 120px; }

  .btn-outline { margin-left: 0; }
  .cta-actions { flex-direction: column; }
}
