﻿@charset "utf-8";

/* ===============================
   Modal Button
================================ */

.modalbtn:not(.is-open):hover span:nth-child(1),
.modalbtn:not(.is-open):hover span:nth-child(2),
.modalbtn:not(.is-open):hover span:nth-child(3) {
  width: 46px;
}

.modalbtn.is-open {
  width: auto;
  min-width: 82px;
  height: 38px;
  padding: 0 18px;

  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);

  animation:
    modalCloseButtonIn 0.72s var(--ease-main) 1.05s forwards;
}

.modalbtn.is-open p {
  display: none;
}

.modalbtn.is-open::after {
  content: "CLOSE";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1;
  
  transform: translateY(-1px);
}

.modalbtn.is-open:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.56);
}

@keyframes modalCloseButtonIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ===============================
   Global Menu Base
================================ */

.global-menu {
  position: fixed;
  inset: 0;
  z-index: 9990;

  opacity: 1;
  visibility: hidden;
  pointer-events: none;
}

.global-menu.is-open,
.global-menu.is-closing {
  visibility: visible;
  pointer-events: auto;
}

/* ===============================
   Backdrop
================================ */

.global-menu__backdrop {
  position: absolute;
  inset: 0;

  opacity: 0;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);

  transition:
    opacity 1.35s var(--ease-main);
}

.global-menu__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0;

  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.28), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.26), rgba(0,0,0,0.34));

  transition:
    opacity 1.15s var(--ease-main) 0.1s;
}

.global-menu.is-open .global-menu__backdrop {
  opacity: 1;
}

.global-menu.is-open .global-menu__backdrop::before {
  opacity: 0.72;
}

.global-menu.is-closing .global-menu__backdrop,
.global-menu.is-closing .global-menu__backdrop::before {
  opacity: 0;
}

/* ===============================
   Panel
================================ */

.global-menu__panel {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);

  width: 100%;
  height: 100%;
  padding:
    max(70px, env(safe-area-inset-top))
    clamp(36px, 6vw, 100px)
    max(48px, env(safe-area-inset-bottom));

  color: #fff;

  opacity: 0;
  filter: blur(16px);
  transform: scale(1.012);

  transition:
    opacity 0.9s var(--ease-main) 0.28s,
    filter 0.9s var(--ease-main) 0.28s,
    transform 0.9s var(--ease-main) 0.28s;
}

.global-menu.is-open .global-menu__panel {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.global-menu.is-closing .global-menu__panel {
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.01);

  transition:
    opacity 1.25s var(--ease-main),
    filter 1.25s var(--ease-main),
    transform 1.25s var(--ease-main);
}

/* ===============================
   Left Area
================================ */

.global-menu__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;

  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 28px, 0);
}

.global-menu.is-open .global-menu__left {
  animation: globalMenuLeftIn 0.95s var(--ease-main) 0.42s forwards;
}

.global-menu__brand {
  width: min(220px, 58%);
  margin-bottom: 34px;
}

.global-menu__brand img {
  width: 100%;
  height: auto;
}

.global-menu__lead {
  margin: 0;
  font-family:
    "Shippori Mincho",
    "Noto Serif JP",
    serif;
  font-size: clamp(24px, 2.5vw, 46px);
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.global-menu__sns {
  display: grid;
  gap: 12px;
  margin-top: 46px;
}

.global-menu__sns a {
  width: fit-content;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.global-menu__sns a:hover {
  color: #fff;
}

/* ===============================
   Right Area
================================ */

.global-menu__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* ===============================
   Icon Menu
================================ */

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

.global-menu__card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;

  min-height: 72px;
  padding: 0px;

  color: #fff;
  text-decoration: none;

  background: rgba(255,255,255,0);
  overflow: hidden;

  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);

  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s var(--ease-main);
}

.global-menu.is-open .global-menu__card {
  animation: globalMenuItemIn 0.82s var(--ease-main) forwards;
}

.global-menu.is-open .global-menu__card:nth-child(1) { animation-delay: 0.54s; }
.global-menu.is-open .global-menu__card:nth-child(2) { animation-delay: 0.60s; }
.global-menu.is-open .global-menu__card:nth-child(3) { animation-delay: 0.66s; }
.global-menu.is-open .global-menu__card:nth-child(4) { animation-delay: 0.72s; }
.global-menu.is-open .global-menu__card:nth-child(5) { animation-delay: 0.78s; }
.global-menu.is-open .global-menu__card:nth-child(6) { animation-delay: 0.84s; }
.global-menu.is-open .global-menu__card:nth-child(7) { animation-delay: 0.90s; }
.global-menu.is-open .global-menu__card:nth-child(8) { animation-delay: 0.96s; }

.global-menu__card:hover {
  transform: translateY(-2px);
}

.global-menu__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;

  border-radius: 10px;

  background: rgba(255,255,255,0.08);
}

.global-menu__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.04);
  transform: scale(1.01);
  transition:
    transform 0.55s var(--ease-main),
    filter 0.45s ease;
}

.global-menu__card:hover .global-menu__thumb img {
  transform: scale(1.08);
  filter: grayscale(0) contrast(1.08);
}

.global-menu__label {
  font-size: clamp(12px, 0.9vw, 13px);
  line-height: 1.45;
  letter-spacing: 0.08em;
}
.global-menu__label span {
  display: block;
  color: rgb(255,255,255,0.5);
  font-size: clamp(10px, 0.7vw, 12px);
  letter-spacing: 0.5px;
}

/* ===============================
   Text Menu
================================ */

.global-menu__textnav {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  margin-top: 50px;
}

.global-menu__textnav a {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  min-height: 34px;
  padding: 0 0 7px;

  color: rgba(255,255,255,0.88);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;

  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  opacity: 0;
  filter: blur(14px);
  transform: translateY(18px);
}

.global-menu__textnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;
  background: rgba(255,255,255,0.45);

  transform: scaleX(0.6);
  transform-origin: left;

  transition:
    transform 360ms var(--ease-main),
    background-color 360ms ease;
}

.global-menu__textnav a:hover {
  color: #fff;
  background: transparent;
}

.global-menu__textnav a:hover::after {
  transform: scaleX(1);
  background: rgba(255,255,255,0.9);
}

.global-menu.is-open .global-menu__textnav a {
  animation: globalMenuItemIn 0.82s var(--ease-main) forwards;
}

.global-menu.is-open .global-menu__textnav a:nth-child(1) { animation-delay: 1.04s; }
.global-menu.is-open .global-menu__textnav a:nth-child(2) { animation-delay: 1.10s; }
.global-menu.is-open .global-menu__textnav a:nth-child(3) { animation-delay: 1.16s; }

/* icons */
.global-menu__texticon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

/* mail */
.global-menu__texticon--mail {
  width: 13px;
  height: 9px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 2px;
}

.global-menu__texticon--mail::before,
.global-menu__texticon--mail::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 7px;
  height: 1px;
  background: rgba(255,255,255,0.82);
}

.global-menu__texticon--mail::before {
  left: 0;
  transform: rotate(28deg);
  transform-origin: left center;
}

.global-menu__texticon--mail::after {
  right: 0;
  transform: rotate(-28deg);
  transform-origin: right center;
}

/* user / meeting */
.global-menu__texticon--user::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255,255,255,0.84);
  border-radius: 50%;
}

.global-menu__texticon--user::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 9px;
  height: 6px;
  border: 1px solid rgba(255,255,255,0.84);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

/* download */
.global-menu__texticon--download::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 1px;
  height: 8px;
  background: rgba(255,255,255,0.82);
}

.global-menu__texticon--download::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.82);
  transform: rotate(45deg);
}

.global-menu__texticon--download {
  border-bottom: 1px solid rgba(255,255,255,0.82);
}

/* ===============================
   Animations
================================ */

@keyframes globalMenuLeftIn {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(0, 28px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes globalMenuItemIn {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(0, 30px, 0) scale(0.985);
  }
  62% {
    opacity: 1;
    filter: blur(3px);
    transform: translate3d(0, -3px, 0) scale(1.006);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* ===============================
   Responsive Base
================================ */

@media (max-width: 1024px) {
  .global-menu__panel {
    grid-template-columns: 1fr;
    gap: 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .global-menu__left {
    justify-content: flex-start;
  }

  .global-menu__brand {
    width: 120px;
    margin-bottom: 18px;
  }

  .global-menu__lead {
    font-size: 26px;
  }

  .global-menu__sns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
  }

  .global-menu__right {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .modalbtn {
    top: 24px;
    right: 22px;
  }

  .global-menu__panel {
    padding:
      max(58px, env(safe-area-inset-top))
      18px
      max(24px, env(safe-area-inset-bottom));
  }

  .global-menu__brand {
    width: 154px;
    margin: -6px auto 22px;
  }

  .global-menu__iconnav {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .global-menu__card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 66px;
    gap: 14px;
    padding: 4px 10px;
  }

  .global-menu__label {
    font-size: 13px;
  }

  .global-menu__textnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .global-menu__textnav a {
    width: 100%;
  }
}

body.is-global-menu-open .header-actions {
  z-index: 9980;
  pointer-events: none;
}


/* =========================================
   SP First Boot / Menu Scroll Stabilize
========================================= */

@media (max-width: 1050px) {
  html.is-fallback-scroll body.is-global-menu-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  html.is-fallback-scroll .global-menu.is-open {
    overflow: hidden !important;
    overscroll-behavior: contain !important;
  }

  html.is-fallback-scroll .global-menu__panel {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
  }
}