/* ========================================
   Footer
======================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 132px 0 32px;
  color: var(--color-white);
  background: linear-gradient(
    to bottom,
    #15345a 0%,
    var(--color-night) 32%,
    #102b4d 68%,
    #0b2039 100%
  );
}

/* 夜空の淡い光 */
.site-footer::before {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 900px;
  height: 420px;
  border-radius: 50%;
  background: rgba(143, 205, 235, 0.08);
  filter: blur(80px);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

/* 水平線 */
.site-footer::after {
  position: absolute;
  top: 122px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.28) 18%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.28) 82%,
    transparent
  );
  content: "";
  pointer-events: none;
}

/* ========================================
   Harbor Scene
======================================== */

.site-footer__scene {
  position: absolute;
  top: 82px;
  right: 0;
  left: 0;
  height: 82px;
  pointer-events: none;
}

/* 港の灯り */
.site-footer__light {
  position: absolute;
  bottom: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 224, 158, 0.95);
  box-shadow:
    0 0 10px rgba(255, 224, 158, 0.7),
    0 0 24px rgba(255, 224, 158, 0.35);
}

.site-footer__light::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 1px;
  height: 36px;
  background: linear-gradient(
    to bottom,
    rgba(255, 224, 158, 0.45),
    transparent
  );
  content: "";
  transform: translateX(-50%);
}

.site-footer__light--1 {
  left: 12%;
}

.site-footer__light--2 {
  left: 30%;
  bottom: 22px;
}

.site-footer__light--3 {
  left: 52%;
  bottom: 12px;
}

.site-footer__light--4 {
  left: 72%;
  bottom: 25px;
}

.site-footer__light--5 {
  left: 88%;
  bottom: 16px;
}

/* ========================================
   Footer Inner
======================================== */

.site-footer__inner {
  position: relative;
  z-index: 1;
}

/* ========================================
   Main
======================================== */

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(400px, 0.8fr);
  gap: 96px;
  padding: 64px 0 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer__company {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.site-footer__name {
  margin: 0;
  color: var(--color-white);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.site-footer__license {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

.site-footer__info {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.site-footer__info-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.site-footer__info-icon {
  display: grid;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__info-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__info-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--font-size-sm);
  line-height: 1.9;
}

/* ========================================
   Navigation
======================================== */

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.site-footer__nav-title {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-footer__nav-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.site-footer__nav-list a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  transition:
    color var(--transition),
    transform var(--transition);
}

.site-footer__nav-list a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--color-kobe-red);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.site-footer__nav-list a:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.site-footer__nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer__nav-list a:focus-visible,
.site-footer__pagetop:focus-visible {
  outline: 3px solid rgba(143, 205, 235, 0.5);
  outline-offset: 5px;
}

/* ========================================
   Bottom
======================================== */

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-en);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.site-footer__privacy {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}

.site-footer__privacy:hover,
.site-footer__privacy:focus-visible {
  color: var(--color-white);
}

.site-footer__pagetop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--color-white);
  background: rgba(25, 60, 104, 0.94);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    color var(--transition),
    transform var(--transition),
    opacity var(--transition),
    visibility var(--transition);
}
.site-footer__pagetop.is-visible { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }

.site-footer__pagetop-line {
  position: relative;
  display: inline-block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.site-footer__pagetop-line::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  content: "";
  transition: transform var(--duration-slow) var(--ease-brand);
}

.site-footer__pagetop:hover {
  color: var(--color-white);
  background: var(--color-kobe-red);
  transform: translateY(-3px);
}

.site-footer__pagetop:hover .site-footer__pagetop-line::after {
  transform: translateY(-100%);
}

/* ========================================
   Tablet
======================================== */

@media (max-width: 1024px) {
  .site-footer {
    padding-top: 132px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .site-footer__nav {
    max-width: 560px;
  }
}

/* ========================================
   Mobile
======================================== */

@media (max-width: 768px) {
  .site-footer {
    padding: 104px 0 24px;
  }

  .site-footer::after {
    top: 92px;
  }

  .site-footer__scene {
    top: 58px;
    height: 68px;
  }

  .site-footer__main {
    gap: 48px;
    padding: 48px 0 56px;
  }

  .site-footer__name {
    font-size: 22px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__bottom {
    align-items: flex-end;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    display: grid;
  }

  .site-footer__pagetop {
    justify-self: end;
  }
}
