@charset "UTF-8";

/* ===== アクセシビリティ ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 8px 16px;
  font-size: 1.4rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0s;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

html {
  font-size: 62.5%;
  height: 100%;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul, ol {
  list-style: none;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  z-index: 2100;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
}

#Slogo {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  margin-right: 16px;
}

.header-inner > a {
  flex-shrink: 0;
}

/* ===== Global Navigation ===== */
.global-nav {
  flex: 1;
}

.navi {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  margin: 0;
}

.navi-item {
  position: relative;
}

.navi-item > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 76px;
  padding: 29px 12px 0;
  font-size: 1.54rem;
  font-weight: normal;
  color: #000;
  white-space: nowrap;
  transition: color 0.2s;
  line-height: 1;
}

.navi-item > a:hover {
  color: #555;
}

.nav-arrow {
  display: block;
  font-size: 0;
  width: 11px;
  height: 7px;
  margin-top: 16px;
  position: relative;
  flex-shrink: 0;
}

.nav-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #666;
  border-bottom: 1.5px solid #666;
  transform: rotate(45deg) translateY(-2px);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  min-width: 200px;
  z-index: 200;
  border-top: 2px solid #e0e0e0;
}

.navi-item:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 1.3rem;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: #f5f5f5;
  color: #333;
}

/* Company name */
.company-name {
  font-size: 1.54rem;
  font-weight: normal;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* ===== ハンバーガーボタン（PC では非表示） ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 2100;
}

.hamburger .icon-menu,
.hamburger .icon-close {
  display: block;
  width: 28px;
  height: 28px;
}

.hamburger .icon-close {
  display: none;
}

.hamburger.is-open .icon-menu {
  display: none;
}

.hamburger.is-open .icon-close {
  display: block;
}

.nav-overlay {
  display: none !important;
}

/* ===== FOOTER ===== */
footer {
  color: #fff;
}

.footer-nav {
  background: #5d5849;
  padding: 48px 24px 40px;
}

@media screen and (max-width: 768px) {
  .footer-nav {
    padding: 25px;
  }
}

.footer-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .footer-nav-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
}

.footer-col {
  flex: 1;
  min-width: 0;
}

.footer-col h3 {
  font-size: 1.6rem;
  font-weight: normal;
  margin-bottom: 12px;
}

.footer-col h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #fff;
  border-top: 1.5px solid #fff;
  transform: rotate(45deg);
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.footer-col h3 > a {
  color: #fff;
}

.footer-col h3 > a:hover {
  opacity: 0.8;
}

.footer-col ul {
  padding-left: 14px;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.6;
  transition: opacity 0.15s;
}

.footer-col ul li a:hover {
  opacity: 0.8;
}

.footer-center {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 24px;
}

.footer-center-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-marks img {
  height: 52px;
  width: auto;
}

.footer-bottom {
  background: #302e28;
  padding: 14px 24px 12px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #fff;
  font-size: 1.2rem;
  padding: 0 16px;
  transition: opacity 0.15s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-links a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.copyright {
  font-size: 1.2rem;
  color: #fff;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #555;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 500;
  border: none;
}

.back-to-top.visible {
  opacity: 0.75;
}

.back-to-top:hover {
  opacity: 1;
}

/* ===== モバイル：ハンバーガーメニュー ===== */
@media screen and (max-width: 768px) {
  .header-inner {
    height: 80px;
    padding: 0 16px;
    flex-wrap: nowrap;
    align-items: center;
  }

  /* 配置順: [ロゴ] [社名] [ハンバーガー] */
  .header-inner > a { order: 1; }
  .company-name     { order: 2; }
  .hamburger        { order: 3; }

  .company-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: #292f36;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 12px;
    margin-right: 0;
    flex: 1;
    min-width: 0;
  }

  .hamburger {
    display: flex;
    margin-left: 0;
    flex-shrink: 0;
  }

  .global-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 0;
    overflow: hidden;
    background: #fff;
    z-index: 2000;
    transition: height 0.32s ease, box-shadow 0.32s ease;
    flex: none;
  }

  .global-nav.is-open {
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .navi {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .navi-item:first-child > a {
    border-top: 1px solid #e8e8e8;
  }

  .navi-item > a {
    display: flex;
    height: auto;
    padding: 0 20px;
    font-size: 1.6rem;
    font-weight: normal;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    line-height: 3.73;
    color: #000;
    text-decoration: none;
  }

  .navi-item > a:hover {
    color: #555;
    background: rgba(0, 0, 0, 0.02);
  }

  .nav-arrow {
    display: block;
    margin-top: 0;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
  }

  .nav-arrow::before {
    border-right-color: #888;
    border-bottom-color: #888;
    transform: rotate(-45deg);
  }

  .dropdown {
    display: none !important;
  }
}
