@charset "utf-8";
/*header, main, footer などの大枠レイアウト*/

/* ========================================
   大枠レイアウト（header, main, footer など）
======================================== */

header {
  position: fixed;
  width: 100%;
  overflow: hidden;
  z-index: 9999999;
  background-color: rgb(24 96 173 / 0.7);
}

/* ========================================
   ナビゲーション：ロゴ & コンテナ
======================================== */

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 30px;
}

.header_logo {
  max-width: 15%;
  min-width: 200px;
  padding-top: 10px;
}

.header_logo img {
  width: 100%;
  height: auto;
}

/* ========================================
   メインナビゲーション（PC）
======================================== */

.main-nav {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: flex-end;
  padding: 0;
  margin: 0;
}

.main-nav li {
  padding: 0 20px;
  max-width: 40%;
  transform: skewX(150deg);
  border-bottom: 2px solid #ffffff;
  color: white;
  transition: all 0.3s ease;
}

.main-nav li span {
  display: block;
  transform: skewX(-150deg);
}

.main-nav li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  z-index: 1;
  overflow: hidden;
  padding: 50px 0px 10px;
  margin-right: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.main-nav li:hover {
  background-color: #FFD700;
  color: #000000;
}

/* ========================================
   ハンバーガーメニュー（PCでは非表示）
======================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10001;
  gap: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
	width: 24px;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   レスポンシブ（スマホ・タブレット用）
======================================== */

@media screen and (max-width: 980px) {
  .nav-container {
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
  }

  .header_logo {
    max-width: 40%;
    min-width: auto;
    padding-top: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .main-nav li {
    width: 100%;
    max-width: 150px;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    border: none;
    transform: none;
  }

  .main-nav li span {
    transform: none;
  }

  .main-nav li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    box-sizing: border-box;
  }

  .main-nav li:hover {
    background-color: #FFD700;
    color: #000000;
  }

  .hamburger {
    display: flex;
  }
}

/* ========================================
   オーバーレイ & 状態クラス
======================================== */

body.menu-open {
  overflow: hidden;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

body.menu-open .overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ===========================
   フッター全体のスタイル
   =========================== */
.custom-footer {
  background-image: url("../images/top_main.jpg");
  background-color: rgba(56,47,175, 0.5); /* ← 重ねる色と透明度 */
  background-blend-mode: multiply;     /* ← 合成方法 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 20px 20px;
  font-family: sans-serif;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left,
.footer-right {
  flex: 1 1 300px;
  margin: 10px;
}

/* ロゴ */
.footer-logo {
  height: 50px;
  margin-bottom: 10px;
}

/* 会社名 */
.company-name {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}

/* 住所・連絡先 */
address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
}

/* ===========================
   フッターナビ（2列対応）
   =========================== */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 2列 */
  gap: 10px 40px;                 /* 行・列の余白 */
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.3s ease;
}

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

/* ===========================
   フッター下部
   =========================== */
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #ccc;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

/* ===========================
   レスポンシブ対応
   =========================== */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    flex: 1 1 100%;
  }
	
	.footer-left{
		border-bottom:1px solid rgba(255, 255, 255, 0.2);
		padding-bottom: 20px;
	}

	.footer-logo {
    display: block;
    margin: 0 auto 10px auto; /* 上下マージンはお好みで */
  }
	

  .footer-nav li {
    text-align: center;
  }

  .footer-bottom {
    font-size: 11px;
  }
}
