@charset "UTF-8";

/*
########################################################
  header要素
########################################################
*/

header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  height: 100px;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  text-align: center;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid var(--color-red);
  top: 0;
  left: 0;
}

@media (max-width: 767px) {
  header {
    height: 70px;
    padding: 0;
  }
}

/* 右上のページリンク */
header .pagelink {
  text-align: right;
  margin-bottom: 10px;
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 1002;
}

@media (max-width: 767px) {
  header .pagelink {
    top: 3px;
    right: 10px;
  }
}

header .pagelink a {
  font-size: 11px;
  color: #666;
  text-decoration: none;
  padding: 5px 10px;
  display: inline-block;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  header .pagelink a {
    font-size: 9px;
    padding: 2px 4px;
  }
}

header .pagelink a:hover {
  color: var(--color-red);
}

/* メインヘッダー部分 */
header .header-main {
  display: flex;
  width: 100%;
  min-width: 1100px;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  header .header-main {
    min-width: auto;
  }
}

/* ロゴ画像 */
header h1 img {
  width: 230px;
  top: -36px;
  position: relative;
  display: block;
  margin-left: 20px;
  margin-top: 70px;
}

@media (max-width: 767px) {
  header h1 img {
    width: 180px;
    margin-left: 10px;
    margin-top: 5px;
    top: 0;
  }
}

/* ナビゲーション */
header nav {
  display: flex;
  position: absolute;
  bottom:0;
  right:30px;
}

@media (max-width: 767px) {
  header nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: #fff;
    padding: 0;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  }
  header nav.active {
    right: 0;
  }
}

header nav > ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  header nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

header nav ul li {
  list-style: none;
  position: relative;
  margin: 0;
}

@media (max-width: 767px) {
  header nav ul li {
    width: 100%;
    margin-top: 0;
  }
}

header nav > ul > li {
  position: relative;
  margin: 0;
}

@media (max-width: 767px) {
  header nav > ul > li {
    margin: 0;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
}

header nav > ul > li > a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 3px solid var(--color-white);
  line-height: normal;
  margin: 0;
  padding: 10px 15px;
}

@media (max-width: 767px) {
  header nav > ul > li > a {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    border-bottom: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }
}

header nav > ul > li > a:hover {
  color: var(--color-red);
}

header nav > ul > li:hover > a {
  color: var(--color-red);
  border-bottom: 3px solid var(--color-red);
}

@media (max-width: 767px) {
  header nav > ul > li:hover > a {
    border-bottom: none;
  }
}

/* 表示ページアクティブ状態 */
#home nav .home > a,
#company nav .company > a,
#locations nav .locations > a,
#business nav .business > a,
#ir nav .ir > a,
#recruit nav .recruit > a,
#contact nav .contact > a {
  color: var(--color-red);
  border-bottom: 3px solid var(--color-red);
}

/* 通常のドロップダウンメニュー(会社情報用) */
header nav > ul > li:not(.has-megamenu) > ul {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  margin: 0;
  padding: 0;
  background: #fff;
  min-width: 220px;
  width: max-content;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  header nav > ul > li:not(.has-megamenu) > ul {
    position: static;
    display: none;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    min-width: auto;
    max-width: none;
    width: 100%;
    box-shadow: none;
  }
}

header nav > ul > li:not(.has-megamenu):hover > ul {
  display: block;
}

@media (max-width: 767px) {
  header nav > ul > li:not(.has-megamenu):hover > ul {
    display: none;
  }
  header nav > ul > li:not(.has-megamenu).open > ul {
    display: block;
  }
}

header nav > ul > li:not(.has-megamenu) ul li {
  width: 100%;
}

@media (max-width: 767px) {
  header nav > ul > li:not(.has-megamenu) ul li {
    border-bottom: 1px solid #e0e0e0;
  }
  header nav > ul > li:not(.has-megamenu) ul li:last-child {
    border-bottom: none;
  }
}

header nav > ul > li:not(.has-megamenu) ul li a {
  display: block;
  width: 100%;
  color: #555;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
  padding: 10px 15px;
}

@media (max-width: 767px) {
  header nav > ul > li:not(.has-megamenu) ul li a {
    padding: 12px 20px;
    font-size: 13px;
    min-height: auto;
  }
}

header nav > ul > li:not(.has-megamenu) ul li a:hover {
  background: #f8f9fa;
  color: var(--color-red);
}

@media (max-width: 767px) {
  header nav > ul > li:not(.has-megamenu) ul li a:hover {
    background: #e9ecef;
  }
}

/* メガメニュー */
.megamenu-wrapper {
  position: fixed;
  top: 98px;
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 998;
}

@media (max-width: 767px) {
  .megamenu-wrapper {
    position: static;
    box-shadow: none;
    background: #f8f9fa;
    top: auto;
  }
}

.has-megamenu:hover .megamenu-wrapper {
  display: block;
}

@media (max-width: 767px) {
  .has-megamenu:hover .megamenu-wrapper {
    display: none;
  }
  .has-megamenu.open .megamenu-wrapper {
    display: block;
  }
}

.megamenu {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .megamenu {
    padding: 0;
    max-width: none;
  }
}

.megamenu-container {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .megamenu-container {
    flex-direction: column;
    gap: 0;
  }
}

.megamenu-column {
  flex: 1;
  min-width: 0;
}

@media (max-width: 767px) {
  .megamenu-column {
    border-bottom: 1px solid #e0e0e0;
  }
  .megamenu-column:last-child {
    border-bottom: none;
  }
}

.megamenu-title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-black);
  transition: color 0.3s ease;
  text-align: left;
  line-height: 1.5; /* 1行の高さ */
  height: 3em; /* 2行分の高さ (1.5 × 2) */
  display: flex;
  align-items: center; /* 上下中央揃え */
}
.megamenu-title img{
  border-radius: 3px;
  margin-bottom:7px;
}
@media (max-width: 767px) {
  .megamenu-title {
    display: block;
    font-size: 14px;
    line-height: 1.5; /* 追加 */
    min-height: 4em; /* 追加: 2行分の高さ (1.5 × 2) */
    display: flex; /* 追加 */
    align-items: center; /* 追加 */
    padding: 12px 20px 12px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-lightgray);
  }
}

.megamenu-title:hover {
  color: var(--color-red);
}

.megamenu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-column ul li {
  margin: 0;
}

@media (max-width: 767px) {
  .megamenu-column ul li {
    border-bottom: 1px solid #e0e0e0;
  }
  .megamenu-column ul li:last-child {
    border-bottom: none;
  }
}

.megamenu-column ul li a {
  display: block;
  padding: 2px 0;
  text-align: left;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .megamenu-column ul li a {
    padding: 12px 20px 12px 35px;
    font-size: 13px;
  }
}

.megamenu-column ul li a:hover {
  color: var(--color-red);
  padding-left: 10px;
  background: #f8f9fa;
}

@media (max-width: 767px) {
  .megamenu-column ul li a:hover {
    padding-left: 40px;
    background: #e9ecef;
  }
}

/* ハンバーガーメニューボタン(PC時は非表示) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: 30px;
  right: 20px;
  z-index: 1001;
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
    top: 25px;
    right: 15px;
    padding: 5px;
  }
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ハンバーガーメニューが開いた時のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* デモ用コンテンツ */
.demo-content {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-content h2 {
  margin-bottom: 20px;
}

.demo-content p {
  line-height: 1.8;
  margin-bottom: 15px;
}

/*
########################################################
  footer要素
########################################################
*/

footer {
  background-color: #f5f5f5;
  width: 100%;
}

footer .site-footer {
  width: 1100px;
  height: auto;
  display: block; 
  color: #000000;
  padding: 40px 20px;
  font-size: 14px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  footer .site-footer {
    width: 100%;
    padding: 30px 20px;
  }
}

footer .site-footer .footLogo {
  width: 200px;
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  footer .site-footer .footLogo {
    display: none;
    margin-bottom: 0;
  }
}

footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 30px;
}

@media (max-width: 767px) {
  footer .footer-container {
    grid-template-columns: 1fr;
  }
}

footer .footer-container .business{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 767px) {
  footer .footer-container .business{
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

footer .footer-container > div h4 {
  margin-bottom: 10px;
  font-size: 16px;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
}
@media (max-width: 767px) {
  footer .footer-container > div h4 {
    margin-top: 0;
    font-size: 15px;
    text-align: left;
  }
}

footer .footer-container > div ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-container > div ul li {
  margin: 5px 0;
  list-style: none;
}

footer .footer-container > div a {
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-container > div a:hover {
  color: var(--color-red);
}

footer .footer-container > div ul ul {
  margin-left: 15px;
  margin-top: 5px;
}

footer .footer-container > div ul ul li a {
  font-size: 13px;
}
footer .footer-container > div ul ul li a::before {
  content: ">";
  margin-right:0.3em;
}
@media (max-width: 767px) {
  footer .footer-container > div ul ul li a {
    font-size: 12px;
  }
}

footer .footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #aaa;
}
@media (max-width: 767px) {
  footer .footer-bottom {
    font-size: 11px;
    line-height: 1.6;
  }
}