:root {
  --navy: #102c40;
  --navy-deep: #071b2a;
  --green: #315d54;
  --glass: #a7d3d5;
  --gold: #b89a62;
  --white: #ffffff;
  --muted: #66737a;
  --line: #d8dedc;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--navy-deep);
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.portal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 27, 42, 0.72);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-symbol {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-symbol i {
  position: absolute;
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
}

.brand-symbol i:first-child {
  top: 2px;
  left: 2px;
  background: rgba(167, 211, 213, 0.16);
}

.brand-symbol i:last-child {
  right: 2px;
  bottom: 2px;
  background: rgba(49, 93, 84, 0.16);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
}

.brand-copy strong {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.back-link {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.portal-main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 150px 24px 80px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 78% 28%, rgba(86, 147, 139, 0.34), transparent 31%),
    linear-gradient(122deg, var(--navy-deep), #123c52 56%, #254f4c);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.glass-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 45px rgba(255, 255, 255, 0.045), 0 28px 70px rgba(7, 27, 42, 0.2);
  backdrop-filter: blur(3px);
}

.glass-shape-a {
  width: 360px;
  height: 500px;
  top: 130px;
  right: 8%;
  transform: rotate(-8deg);
}

.glass-shape-b {
  width: 250px;
  height: 350px;
  right: -45px;
  bottom: 40px;
  transform: rotate(7deg);
  opacity: 0.55;
}

.access-card {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  padding: 52px;
  border-top: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
}

.access-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.access-card h1 {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.access-description {
  margin: 24px 0 0;
  color: #4e5e67;
}

.access-form {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.access-form label {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.access-form input {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  color: var(--navy);
  border: 1px solid #bac6c8;
  border-radius: 0;
  background: var(--white);
  outline: none;
}

.access-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 93, 84, 0.12);
}

.access-form button {
  min-height: 56px;
  margin-top: 6px;
  color: var(--white);
  border: 0;
  background: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.access-form button:hover {
  background: var(--green);
}

.form-message {
  min-height: 1.6em;
  margin: 4px 0 0;
  color: #a12d2d;
  font-size: 0.82rem;
}

.form-message.is-success {
  color: var(--green);
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-symbol i {
    width: 23px;
    height: 23px;
  }

  .brand-copy small {
    font-size: 0.56rem;
  }

  .brand-copy strong {
    font-size: 0.84rem;
  }

  .back-link {
    font-size: 0.7rem;
  }

  .portal-main {
    padding: 124px 16px 54px;
  }

  .glass-shape-a {
    right: -150px;
  }

  .glass-shape-b {
    display: none;
  }

  .access-card {
    padding: 36px 24px;
  }
}
