:root {
  --nav-x: clamp(34px, 5.8vw, 104px);
  --nav-top: clamp(150px, 25vh, 250px);
  --nav-gap: clamp(36px, 6.2vh, 76px);
  --white: rgba(255,255,255,.96);
  --panel-left: clamp(360px, 31vw, 420px);
  --panel-top: clamp(34px, 5vh, 54px);
  --panel-right: clamp(26px, 2.8vw, 40px);
  --panel-bottom: clamp(24px, 3.2vh, 38px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: #071139;
  color: white;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: .05em;
}
button, a { font: inherit; }
@media (pointer:fine) { body { cursor: auto; } }
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
}
.bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .64s ease, transform 1s ease;
  z-index: 0;
}
.bg.is-visible { opacity: 1; transform: scale(1); }
.bg-top { background-image: url("assets/bg-top-user.jpg"); }
.bg-sub { background-image: url("assets/bg-sub-user.jpg"); }
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,22,74,.04), rgba(5,22,74,.02));
}

.top-ocean-window {
  position: absolute;
  z-index: 2;
  left: 4%;
  top: -4%;
  width: 93%;
  height: 108%;
  overflow: hidden;
  border-radius: 50% / 46%;
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(.98);
  transition: opacity .55s ease, transform .75s ease;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 57% 63% at 58% 45%, rgba(0,0,0,1) 58%, rgba(0,0,0,.99) 66%, rgba(0,0,0,.92) 73%, rgba(0,0,0,.72) 80%, rgba(0,0,0,.36) 87%, rgba(0,0,0,.06) 92%, rgba(0,0,0,0) 96%);
  mask-image: radial-gradient(ellipse 57% 63% at 58% 45%, rgba(0,0,0,1) 58%, rgba(0,0,0,.99) 66%, rgba(0,0,0,.92) 73%, rgba(0,0,0,.72) 80%, rgba(0,0,0,.36) 87%, rgba(0,0,0,.06) 92%, rgba(0,0,0,0) 96%);
}
.top-ocean-window::before {
  content: "";
  position: absolute;
  inset: -3%;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 64% at 58% 45%, rgba(164, 235, 255, .18) 56%, rgba(164, 235, 255, .12) 67%, rgba(164, 235, 255, .07) 78%, rgba(164, 235, 255, 0) 90%);
  filter: blur(22px);
  opacity: .9;
}
.stage[data-page="top"] .top-ocean-window { opacity: .92; transform: scale(1); }
.stage[data-variant="b"] .top-ocean-window {
  left: 24%;
  top: 9%;
  width: 62%;
  height: 72%;
  opacity: .85;
  -webkit-mask-image: radial-gradient(ellipse 45% 44% at 57% 46%, rgba(0,0,0,1) 58%, rgba(0,0,0,.98) 65%, rgba(0,0,0,.88) 72%, rgba(0,0,0,.55) 79%, rgba(0,0,0,.18) 85%, rgba(0,0,0,0) 90%);
  mask-image: radial-gradient(ellipse 45% 44% at 57% 46%, rgba(0,0,0,1) 58%, rgba(0,0,0,.98) 65%, rgba(0,0,0,.88) 72%, rgba(0,0,0,.55) 79%, rgba(0,0,0,.18) 85%, rgba(0,0,0,0) 90%);
}
.top-ocean-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.top-ocean-video.is-active { opacity: 1; }
.top-ocean-softlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 24%, rgba(255,255,255,.16), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 50% 92%, rgba(115, 220, 255, .10), rgba(115,220,255,0) 26%),
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 54%, rgba(255,255,255,0) 100%);
}
.top-logo-overlay { display: none !important; }
.top-logo-overlay img { display:none !important; }


.left-veil {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(33vw, 400px);
  pointer-events: none;
  z-index: 4;

  background: linear-gradient(
    90deg,
    rgba(34, 145, 224, 0.18) 0%,
    rgba(15, 96, 177, 0.10) 45%,
    rgba(15, 96, 177, 0.04) 70%,
    rgba(15, 96, 177, 0) 100%
  );

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
}
.side-nav {
  position: absolute;
  left: var(--nav-x);
  top: var(--nav-top);
  width: clamp(240px, 22vw, 360px);
  z-index: 20;
}
.menu-dolphin {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.55));
  transition: transform .55s cubic-bezier(.16,.92,.24,1.08), filter .26s ease;
}
.menu-dolphin.is-jumping { filter: drop-shadow(0 0 16px rgba(255,255,255,.92)) drop-shadow(0 0 30px rgba(117,228,255,.82)); }
.nav-item {
  display: block;
  position: relative;
  margin: 0 0 var(--nav-gap);
  padding: 0 0 0 68px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  font-size: clamp(18px, 1.42vw, 30px);
  font-weight: 500;
  letter-spacing: .06em;
  opacity: .94;
  text-shadow: 0 0 12px rgba(150,230,255,.12);
  transition: transform .24s ease, opacity .24s ease, text-shadow .24s ease;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 60px;
  top: 50%;
  width: 0;
  height: 2px;
  opacity: 0;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.98), rgba(165,238,255,.85), rgba(255,255,255,0));
  box-shadow: 0 0 14px rgba(255,255,255,.8), 0 0 28px rgba(76,208,255,.45);
}
.nav-item:hover, .nav-item:focus-visible, .nav-item.is-active {
  opacity: 1;
  transform: translateX(6px);
  text-shadow: 0 0 12px rgba(255,255,255,.52), 0 0 22px rgba(90,216,255,.4);
  outline: none;
}
.nav-item.is-clicked::after { animation: navGlow .58s ease; }
@keyframes navGlow { 0% { width: 0; opacity: 0; } 22% { width: 78%; opacity: 1; } 100% { width: 78%; opacity: 0; } }

.content {
  position: absolute;
  z-index: 6;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .48s ease, transform .62s ease;
}
.content.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.content-top { inset: 0; }
.content-gallery, .content-company, .content-contact {
  top: var(--panel-top);
  left: var(--panel-left);
  right: var(--panel-right);
  bottom: var(--panel-bottom);
}
.content-gallery {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.gallery-shell, .company-shell {
  width: 100%;
  height: 100%;
  padding: clamp(20px, 2.1vw, 28px);
}
.gallery-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.company-shell {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7,29,83,.16), rgba(7,29,83,.07));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-shell {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 46px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7,29,83,.20), rgba(7,29,83,.09));
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-shell h1 {
  margin: 0;
  font-size: clamp(26px, 2.15vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  text-shadow: 0 0 22px rgba(100,219,255,.28);
}
.contact-lead {
  max-width: 720px;
  margin: 14px 0 28px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.8;
}
.contact-form {
  width: min(760px, 100%);
  display: grid;
  gap: 18px;
}
.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  letter-spacing: .12em;
}
.contact-form label span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-form label small {
  color: rgba(174,231,255,.72);
  font-size: 9px;
  letter-spacing: .08em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: white;
  padding: 13px 15px;
  outline: none;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(168,231,255,.58);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 20px rgba(91,205,255,.12);
}
.contact-submit {
  width: fit-content;
  min-width: 190px;
  margin-top: 4px;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 12px;
  letter-spacing: .16em;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}
.contact-submit:hover,
.contact-submit:focus-visible {
  background: white;
  color: #0b2760;
  box-shadow: 0 0 24px rgba(123,219,255,.34);
  outline: none;
}
.contact-note {
  margin: -4px 0 0;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  line-height: 1.6;
}
.gallery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-label { margin: 0 0 10px; color: rgba(255,255,255,.76); font-size: clamp(12px,.88vw,15px); letter-spacing: .18em; }
.gallery-header h1, .company-shell h1 {
  margin: 0;
  font-size: clamp(26px, 2.15vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  text-shadow: 0 0 22px rgba(100,219,255,.28);
}
.admin-note { margin: 0; max-width: 320px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.7); text-align: right; }
/* Gallery shape: outer area becomes a wide rounded rectangle; thumbnails use wide rounded rectangles. */
.gallery-orbit {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 44px 38px 34px;
  border-radius: 64px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.gallery-orbit::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 58px;
  pointer-events: none;
  border: 1.4px solid rgba(188, 236, 255, .16);
  box-shadow:
    0 0 18px rgba(122, 224, 255, .07),
    inset 0 0 18px rgba(255,255,255,.02);
}
.gallery-orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 52px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.05);
  opacity: .8;
}
.gallery-grid {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px 26px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: clamp(22px, 1.8vw, 30px);
  row-gap: clamp(24px, 2.8vh, 34px);
  align-content: start;
  grid-auto-flow: row;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.gallery-grid::-webkit-scrollbar { width: 8px; }
.gallery-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 999px; }
.gallery-grid::-webkit-scrollbar-thumb { background: rgba(164,233,255,.3); border-radius: 999px; }
.tile {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  align-self: start;
  overflow: visible;
  border-radius: 32px;
  animation: tileFloat var(--float-duration, 11s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transform-origin: center;
}
.tile::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 38px;
  background: radial-gradient(ellipse, rgba(255,255,255,.56) 0%, rgba(255,255,255,.26) 28%, rgba(255,255,255,.10) 48%, rgba(255,255,255,.04) 62%, rgba(255,255,255,0) 80%);
  filter: blur(16px);
  z-index: 0;
  opacity: .9;
}
.tile::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 30% 18%, rgba(255,255,255,.16), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 30%, rgba(255,255,255,.03));
  z-index: 2;
  pointer-events: none;
}
.tile-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.tile.size-a, .tile.size-b, .tile.size-c, .tile.size-d, .tile.size-e {
  grid-column: span 1;
  grid-row: auto;
}
@keyframes tileFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(var(--scale-min, .985)); }
  25% { transform: translate3d(var(--move-x1, 6px), var(--move-y1, -4px), 0) scale(var(--scale-max, 1.016)); }
  50% { transform: translate3d(var(--move-x2, -5px), var(--move-y2, 5px), 0) scale(var(--scale-min2, .995)); }
  75% { transform: translate3d(var(--move-x3, 3px), var(--move-y3, -3px), 0) scale(var(--scale-max2, 1.01)); }
}
.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 24px;
  color: rgba(255,255,255,.74);
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  padding: 30px 18px;
}
.empty-state p { margin: 8px 0; }
.company-shell { overflow-y: auto; }
.company-list { margin: 28px 0 0; display: grid; gap: 16px; }
.company-list div { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.company-list dt { margin-bottom: 8px; color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.company-list dd { margin: 0; line-height: 1.7; color: rgba(255,255,255,.92); }
.company-list a { color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.ventures-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.screen-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 25;
  background: radial-gradient(circle at 22% 22%, rgba(255,255,255,.06), transparent 22%), radial-gradient(circle at 54% 50%, rgba(164,233,255,.12), transparent 22%);
}
.screen-glow.is-on { animation: screenGlow .42s ease-out; }
@keyframes screenGlow { 0% { opacity: 0; } 38% { opacity: 1; } 100% { opacity: 0; } }

/* TOP water-surface light removed. */

@media (max-width: 980px) {
  body { overflow: auto; }
  .stage { min-height: 900px; height: 100svh; }
  .side-nav {
    left: clamp(22px, 5vw, 48px);
    top: clamp(118px, 18vh, 170px);
    width: min(80vw, 330px);
  }
  .nav-item {
    font-size: clamp(15px, 3.5vw, 22px);
    margin-bottom: clamp(28px, 5vh, 52px);
  }
  .content-gallery,
  .content-company,
  .content-contact {
    top: 34px;
    left: clamp(230px, 31vw, 320px);
    right: 20px;
    bottom: 24px;
  }
  .gallery-shell,
  .company-shell,
  .contact-shell { padding: 18px; }
  .gallery-orbit {
    padding: 26px 20px 20px;
    border-radius: 48px;
  }
  .gallery-orbit::before { inset: 8px; border-radius: 42px; }
  .gallery-orbit::after { inset: 18px; border-radius: 36px; }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    padding: 16px 14px 14px;
    gap: 18px;
  }
  .tile {
    aspect-ratio: 1.45 / 1;
    border-radius: 28px;
  }
  .tile::before { border-radius: 32px; inset: -14px; }
  .tile::after,
  .tile-frame { border-radius: 28px; }
  .gallery-header { gap: 10px; }
  .admin-note { display: none; }
}

@media (max-width: 680px) {
  .stage { min-height: 980px; }
  .left-veil { width: 100%; height: 44%; background: linear-gradient(180deg, rgba(19,107,181,.16), transparent); }
  .side-nav {
    top: 112px;
    left: 20px;
    width: calc(100% - 40px);
  }
  .nav-item {
    font-size: 16px;
    margin-bottom: 31px;
    padding-left: 58px;
  }
  .menu-dolphin { width: 46px; }
  .content-gallery,
  .content-company,
  .content-contact {
    top: 500px;
    left: 14px;
    right: 14px;
    bottom: auto;
    height: 450px;
  }
  .gallery-shell,
  .company-shell,
  .contact-shell { padding: 16px; }
  .contact-row { grid-template-columns: 1fr; }
  .gallery-orbit {
    padding: 20px 14px 18px;
    border-radius: 42px;
  }
  .gallery-orbit::before { inset: 8px; border-radius: 36px; }
  .gallery-orbit::after { inset: 16px; border-radius: 30px; }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    padding: 12px 10px 14px;
    gap: 16px;
  }
  .tile {
    aspect-ratio: 1.55 / 1;
    border-radius: 24px;
  }
  .tile::before { border-radius: 28px; inset: -12px; }
  .tile::after,
  .tile-frame { border-radius: 24px; }
  .tile.size-a,
  .tile.size-b,
  .tile.size-c,
  .tile.size-d,
  .tile.size-e {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* Gallery loading / connection states */
.empty-state.is-loading,
.empty-state.is-error {
  border: 0;
  background: transparent;
}
.empty-state.is-loading strong::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-left: .7em;
  vertical-align: -.2em;
  border: 2px solid rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.92);
  border-radius: 50%;
  animation: gallerySpinner .8s linear infinite;
}
.empty-state.is-error { color: rgba(255, 215, 220, .88); }
@keyframes gallerySpinner { to { transform: rotate(360deg); } }
/* ----------------------------------
   Contact
---------------------------------- */

.contact-wrapper {
  position: relative;
}


/* フォーム */

.contact-form {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.contact-form.is-hide {
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
}


/* Bot対策 */

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* 送信ボタン */

.contact-submit {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* エラー */

.contact-error {
  margin-top: 16px;
  min-height: 20px;

  color: #c62828;

  font-size: 14px;
  line-height: 1.6;
}


/* ----------------------------------
   THANK YOU
---------------------------------- */

.contact-thanks {
  display: none;

  opacity: 0;
  transform: translateY(15px);

  text-align: center;
}

.contact-thanks.is-show {
  display: block;

  animation: contactThanksFadeIn 0.6s ease forwards;
}

.contact-thanks-inner {
  padding: 60px 20px;
}

.contact-thanks h2 {
  margin: 0 0 20px;

  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contact-thanks p {
  margin: 0;

  font-size: 16px;
  line-height: 1.8;
}

.contact-thanks-sub {
  margin-top: 12px !important;

  opacity: 0.6;

  font-size: 13px !important;
}


@keyframes contactThanksFadeIn {

  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}