/* ===================================================
   有限会社 高坂工業 コーポレートサイト
   共通スタイルシート
=================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary:       #1a3a5c;
  --primary-dark:  #0d2238;
  --primary-light: #2a5a8c;
  --accent:        #c8861e;
  --accent-hover:  #e09a28;
  --light-bg:      #f7f6f2;
  --section-alt:   #eef1f7;
  --text:          #2c2c2c;
  --text-muted:    #666;
  --white:         #ffffff;
  --border:        #ddd8cc;
  --shadow:        0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover:  0 8px 32px rgba(0, 0, 0, 0.16);
  --radius:        6px;
  --radius-lg:     12px;
  --transition:    all 0.3s ease;
  --header-h:      80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Section Common --- */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-title .en {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7em;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 134, 30, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================================================
   HEADER
=================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(13, 34, 56, 0.97);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  font-weight: 500;
}

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

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.03em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,134,30,0.4);
}

.nav-cta::after { display: none; }

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

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================
   PAGE HERO (サブページ用)
=================================================== */
.page-hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 40px,
      rgba(255,255,255,0.02) 40px,
      rgba(255,255,255,0.02) 80px
    );
}

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

.page-hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.page-hero-desc {
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  font-size: 0.95rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-size: 1.1rem;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

.footer-info {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 2;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  color: var(--accent);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===================================================
   CARD
=================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ===================================================
   PAGE WRAPPER (body padding for header)
=================================================== */
.page-main {
  padding-top: var(--header-h);
}

/* ===================================================
   UTILITY
=================================================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.fw-bold { font-weight: 700; }
.color-accent { color: var(--accent); }
.color-primary { color: var(--primary); }
.color-muted { color: var(--text-muted); }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 32px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link, .nav-cta {
    padding: 14px 16px;
    margin: 0;
    font-size: 0.95rem;
    border-radius: var(--radius);
  }

  .nav-link::after { display: none; }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 600px) {
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
