/* ========================
   リセット・基本設定
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors - Blue Theme */
  --primary-color: #0d387c; /* Deep Corporate Blue */
  --primary-hover: #082554;
  --secondary-color: #333333; /* Dark Grey / Black text */
  --accent-color: #00909e; /* Turquoise/Blue for accents if needed */
  
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  
  --header-height: 80px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 2px; /* Sharp industrial look */
  
  --font-base: 'Noto Sans JP', 'Roboto', 'Arial', sans-serif;
  --font-serif: 'Shippori Mincho', serif;
  --font-hand: 'Caveat', cursive;
}

body, html {
  font-family: var(--font-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "palt";
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* ========================
   ヘッダー・ナビゲーション (Makita Style)
   ======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  height: 100%;
}

/* ロゴエリア (左側・白背景) */
.header-logo-area {
  background-color: var(--white);
  width: 320px; /* 社名表示のため幅を拡張 */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid #eee;
  flex-shrink: 0;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 10px 16px;
  transition: background-color 0.3s;
}

.header-logo-link:hover {
  background-color: #fafafa;
}

.logo {
  height: auto;
  max-height: 50px;
  max-width: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-company-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

/* ナビゲーションエリア (右側・白背景) */
.header-nav-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 5px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* お問い合わせボタン (Special styling for contact) */
.nav-contact .btn-contact {
  background-color: var(--secondary-color);
  color: var(--white) !important;
  padding: 10px 25px;
  border-radius: 2px;
  font-weight: 500;
}

.nav-contact .btn-contact::after {
  display: none; /* No underline for button */
}

.nav-contact .btn-contact:hover {
  background-color: var(--primary-color);
  opacity: 1;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  gap: 5px;
  margin-left: 20px;
  z-index: 1002;
}

.hamburger-line {
  width: 28px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

/* スマホ・タブレット用レスポンシブ */
@media (max-width: 1000px) {
  :root {
    --header-height: 60px;
  }
  
  .header-logo-area {
    width: auto;
    min-width: 60px;
  }
  
  .header-company-name {
    display: none; /* スマホでは社名を非表示 */
  }
  
  .logo {
    max-height: 40px;
    max-width: 50px;
  }

  .header-nav-area {
    padding-right: 15px;
    justify-content: flex-end;
  }
  
  .hamburger {
    display: flex;
  }

  /* モバイルナビゲーション */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
    overflow-y: auto;
    z-index: 1001;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-link {
    display: block;
    padding: 15px 30px;
    width: 100%;
    font-size: 1rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-contact {
    margin: 30px;
    width: auto;
    border: none;
  }
  
  .nav-contact .btn-contact {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}


/* ========================
   共通レイアウト
   ======================== */
main {
  margin-top: var(--header-height);
  padding-bottom: 0; /* No padding bottom to allow footer to sit flush if needed */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

/* セクションタイトル (Makita like: bold, simple) */
.section-heading {
  font-family: var(--font-base); /* Sans-serif for heading */
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 60px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  text-align: center;
  letter-spacing: 0.05em;
}

.section-heading .sub-heading {
  display: block;
  font-size: 1rem;
  color: var(--primary-color);
  margin-top: 15px;
  font-weight: 500;
  font-family: var(--font-serif);
}

/* ========================
   ボタンなど共通パーツ
   ======================== */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 40px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
  text-align: center;
}

.btn-primary:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* ========================
   フッター (Makita Style)
   ======================== */
.footer {
  background-color: #222222; /* Very dark grey */
  color: #cccccc;
  padding: 80px 0 30px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 50px;
}

.footer-info {
  flex: 1;
  min-width: 300px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.footer-logo {
  height: 40px;
  /* Logo filter for dark bg if needed */
  background: #fff;
  padding: 3px;
}

.footer-company-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.footer-address-list {
  border-left: 2px solid var(--primary-color);
  padding-left: 15px;
}

.footer-address-list p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-nav-list li {
  margin-bottom: 15px;
}

.footer-nav-list a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

/* ホバー時：青いアンダーラインが左からスライドイン */
.footer-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4a9eff;
  transition: width 0.3s ease;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-nav-list a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 30px;
  text-align: center;
}

.related-company {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.related-company a {
  color: #fff;
  text-decoration: underline;
  margin-left: 5px;
}

.copyright {
  color: #777;
  font-size: 0.8rem;
  font-family: 'Arial', sans-serif;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 0;
  }
  
  .footer-nav-list {
    margin-bottom: 30px;
  }
}
