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

body {
  margin: 0;
  font-family:
    "Helvetica Neue", Arial, "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    Meiryo, sans-serif;
  color: #000;
  background: #ffffff;
}

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

.contact a:hover,
.corporate a:hover,
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   Layout (Sticky Footer)
========================= */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

/* =========================
   Utility
========================= */
.sp-only {
  display: none;
}
.pc-only {
  display: inline;
}

@media screen and (max-width: 767px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }
}

/* =========================
   Header
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 0 60px;
}

.header__logo {
  margin: 0;
  flex-shrink: 0;
}

.header__logo a {
  display: flex;
  align-items: center;
  height: 80px;
}

.header__logo img {
  display: block;
  height: 42px;
  width: auto;
  transform: translateY(2px);
}

.header__nav {
  margin-left: auto;
}

.header__navList {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__navItem {
  position: relative;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.header__navItem--divider {
  padding-right: 40px;
}

.header__navItem--divider::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

.header__navLink {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 80px;
  padding: 0 18px;
  color: #fff;
  background: #000;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.header__navLink:hover,
.header__navItem--hasDropdown:hover > .header__navLink,
.header__navItem--hasDropdown:focus-within > .header__navLink {
  background: #8d8d8d;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.header__dropdown li {
  margin: 0;
  padding: 0;
}

.header__dropdown a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  width: 100%;
  padding: 0 14px;
  color: #fff;
  text-align: center;
  background: #000;
  transition: background-color 0.3s ease;
}

.header__dropdown a:hover {
  background: #8d8d8d;
}

.header__navItem--hasDropdown:hover .header__dropdown,
.header__navItem--hasDropdown:focus-within .header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header__menuButton {
  display: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.header__mobileNav {
  display: none;
}

/* =========================
   Footer
========================= */
.footer {
  position: relative;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: 160px 120px 140px;
}

.footer__toTop {
  position: absolute;
  top: -80px;
  right: 120px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.footer__toTopTriangle {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid #e60012; /* 赤 */
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.footer__toTop:hover .footer__toTopTriangle {
  transform: translateY(-4px);
  opacity: 0.8;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 120px;
  align-items: start;
}

.footer__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo {
  margin: 0 0 56px;
}

.footer__logo img {
  display: block;
  height: 80px;
  width: auto;
}

.footer__address {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  align-self: stretch;
}

.footer__links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.footer__links li {
  font-size: 12px;
  line-height: 1.6;
}

.footer__links li + li {
  margin-top: 16px;
}

.footer__links a {
  color: #fff;
  text-decoration: none;
}

.footer__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 800px) {
  /* =========================
     Header
  ========================= */
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* PCナビはSPで非表示 */
  .header__nav {
    display: none;
  }

  .header__inner {
    position: relative;
    min-height: 130px;
    padding: 0 20px;
  }

  .header__logo {
    position: relative;
    z-index: 1101;
  }

  .header__logo a {
    height: 130px;
  }

  .header__logo img {
    height: 58px;
    transform: translateY(20px);
  }

  /* ハンバーガーボタン */
  .header__menuButton {
    position: relative;
    z-index: 1101;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    top: 18px;
  }

  .header__menuLine {
    display: block;
    width: 28px;
    height: 1px;
    background: #fff;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    transform-origin: center;
  }

  /* メニュー開いたらバツ */
  .header--menuOpen .header__menuLine:nth-child(1) {
    transform: translateY(5px) rotate(30deg);
  }

  .header--menuOpen .header__menuLine:nth-child(2) {
    transform: translateY(-5px) rotate(-30deg);
  }

  /* 全面黒メニュー */
  .header__mobileNav {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .header--menuOpen .header__logo {
    opacity: 0;
    pointer-events: none;
  }

  .header--menuOpen .header__mobileNav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header__mobileNavList {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header__mobileNavList {
    transform: translateY(40px);
  }

  .header__mobileNavList li:last-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .header__mobileNavList li:nth-last-child(2) {
    margin-top: 40px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .header__mobileNavList a {
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    font-weight: 300;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  .header__mobileNavList a:hover {
    opacity: 0.7;
  }

  body.is-menuOpen {
    overflow: hidden;
  }

  /* =========================
     Footer
  ========================= */
  .footer {
    padding: 50px 20px 60px;
  }

  .footer__toTop {
    top: -56px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .footer__toTopTriangle {
    border-left-width: 12px;
    border-right-width: 12px;
    border-bottom-width: 22px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .footer__logo {
    margin-bottom: 30px;
  }

  .footer__logo img {
    height: 64px;
  }

  .footer__right {
    align-self: start;
  }

  .footer__links {
    margin-bottom: 16px;
  }

  .footer__address,
  .footer__copy {
    font-size: 12px;
  }
}
