:root {
  --bg-deep: #07142d;
  --bg-mid: #0b2551;
  --bg-soft: #eef4ff;

  --text-main: #0d2346;
  --text-sub: #355178;
  --text-on-dark: #eef6ff;

  --primary: #2f6cf3;
  --primary-strong: #4ca3ff;
  --accent: #19b7bf;

  --card: rgba(255, 255, 255, 0.96);
  --card-border: rgba(255, 255, 255, 0.78);

  --shadow-lg: 0 24px 60px rgba(2, 12, 34, 0.34);
  --shadow-md: 0 18px 44px rgba(8, 23, 58, 0.18);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;

  --content-width: 520px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Noto Sans JP",
    sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 20% 10%, rgba(111, 211, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(47, 140, 255, 0.22), transparent 24%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 58%, #f4f8ff 58%, var(--bg-soft) 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -----------------------------
   共通レイアウト
----------------------------- */

.landing-wrap,
.landing-shell,
.placeholder-wrap {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.hero {
  position: relative;
  padding: 28px 20px 24px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 18% 14%, rgba(111, 211, 255, 0.18), transparent 25%),
    radial-gradient(circle at 82% 0%, rgba(47, 140, 255, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(10, 32, 76, 0.96) 0%, rgba(7, 20, 45, 0.98) 100%);
  color: var(--text-on-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.08;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.site-kicker {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #d3ecff;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 4.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(1, 8, 24, 0.52);
}

.hero-copy {
  max-width: 24em;
  margin: 14px 0 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: #eef7ff;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.panel,
.placeholder-card {
  margin-top: 18px;
  padding: 20px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
}

.panel h2,
.placeholder-card h1,
.placeholder-card h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--text-main);
}

.panel p,
.placeholder-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.panel p + p,
.placeholder-card p + p {
  margin-top: 8px;
}

.panel-narrow,
.login-panel,
.dashboard-panel,
.dashboard-actions {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

/* -----------------------------
   ボタン
----------------------------- */

.btn,
.landing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover,
.landing-cta:hover {
  transform: translateY(-1px);
}

.btn:active,
.landing-cta:active {
  transform: translateY(0);
}

.btn:focus-visible,
.landing-cta:focus-visible,
.form-input:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 119, 243, 0.24);
}

.btn-primary,
.landing-cta-primary {
  color: #ffffff;
  background: linear-gradient(180deg, var(--primary-strong) 0%, var(--primary) 100%);
  box-shadow: 0 14px 28px rgba(35, 119, 243, 0.28);
}

.btn-primary:hover,
.landing-cta-primary:hover {
  background: linear-gradient(180deg, #57a8ff 0%, #2c81fa 100%);
}

.btn-secondary,
.landing-cta-secondary {
  color: #11407e;
  background: #ffffff;
  border: 1px solid rgba(24, 85, 163, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover,
.landing-cta-secondary:hover {
  background: #f8fbff;
}

.btn-accent {
  color: #0c4b57;
  background: linear-gradient(180deg, #dfffff 0%, #c7f3f8 100%);
  border: 1px solid rgba(0, 183, 199, 0.16);
  box-shadow: 0 10px 24px rgba(0, 183, 199, 0.12);
}

.btn-accent:hover {
  background: linear-gradient(180deg, #ebffff 0%, #d4f8fc 100%);
}

.btn-essay {
  color: #f8fbff;
  background: linear-gradient(180deg, #8c6cff 0%, #6e53d2 100%);
  border: 1px solid rgba(224, 231, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -8px 14px rgba(30, 19, 78, 0.24),
    0 12px 26px rgba(70, 40, 161, 0.34);
  text-shadow: 0 1px 1px rgba(6, 12, 42, 0.28);
}

.btn-essay:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #9a7eff 0%, #7f63e8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -8px 14px rgba(30, 19, 78, 0.2),
    0 14px 28px rgba(78, 44, 176, 0.38);
}

.btn-quiet {
  color: #d5e7ff;
  background: rgba(18, 50, 99, 0.46);
  border: 1px solid rgba(176, 205, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-quiet:hover {
  background: rgba(18, 50, 99, 0.58);
}

.btn-unavailable {
  color: #d8e4f5;
  background: rgba(94, 113, 143, 0.52);
  border: 1px solid rgba(216, 228, 245, 0.22);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-unavailable:hover {
  transform: none;
}

/* -----------------------------
   フォーム
----------------------------- */

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #d8ecff;
  font-size: 0.93rem;
  font-weight: 700;
}

.form-input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(24, 85, 163, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-input::placeholder {
  color: #7e9bc5;
}

.form-input:focus {
  outline: none;
  border-color: rgba(35, 119, 243, 0.42);
  box-shadow:
    0 0 0 3px rgba(35, 119, 243, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-error,
.login-error {
  margin-top: 10px;
  color: #f66b79;
  font-size: 0.92rem;
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-submit {
  width: 100%;
}

/* -----------------------------
   login.html
----------------------------- */

.login-page {
  background:
    radial-gradient(circle at 20% 8%, rgba(111, 211, 255, 0.18), transparent 26%),
    radial-gradient(circle at 84% 4%, rgba(47, 140, 255, 0.24), transparent 22%),
    linear-gradient(180deg, #0b2551 0%, #07142d 58%, #eef4ff 58%, #eaf2ff 100%);
}

.login-page .landing-wrap {
  width: min(100%, 560px);
}

.login-page .login-hero-inner {
  padding-bottom: 64px;
}

.login-page .hero {
  min-height: 560px;
  padding-bottom: 96px;
}

.login-page .hero::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -22px;
  width: 180px;
  height: 220px;
  border-radius: 26px;
  transform: skew(-12deg);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 12px
    ),
    linear-gradient(180deg, rgba(90, 160, 255, 0.22), rgba(12, 44, 92, 0.18));
  border: 1px solid rgba(208, 232, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -10px 20px rgba(1, 8, 24, 0.16),
    0 18px 42px rgba(3, 12, 34, 0.24);
  opacity: 0.7;
  pointer-events: none;
}

.login-page .panel,
.login-page .login-panel {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.login-page .login-panel .form-label {
  color: var(--text-main);
}

.login-page .login-panel .form-label:not(:first-child) {
  margin-top: 12px;
}

/* -----------------------------
   dashboard.html
----------------------------- */

.dashboard-panel p {
  overflow-wrap: anywhere;
}

.logout-btn,
#logout-btn {
  width: 100%;
}

/* -----------------------------
   index.html 用 landing-v3
----------------------------- */

.landing-v3 {
  background:
    radial-gradient(circle at 20% 10%, rgba(111, 211, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(47, 140, 255, 0.22), transparent 24%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 52%, #f4f8ff 52%, var(--bg-soft) 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-v3 .landing-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.landing-v3 .landing-hero {
  position: relative;
  margin-bottom: 22px;
}

.landing-v3 .landing-hero-media {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0d2044;
}

.landing-v3 .landing-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.landing-v3 .landing-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 38, 0.05) 0%,
      rgba(8, 20, 49, 0.08) 35%,
      rgba(9, 24, 58, 0.16) 70%,
      rgba(7, 17, 39, 0.26) 100%
    ),
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.10), transparent 24%);
  pointer-events: none;
}

.landing-v3 .landing-cta-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  margin: -20px auto 0;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-v3 .landing-cta-card > * + * {
  margin-top: 12px;
}

.landing-v3 .about-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
}

.landing-v3 .about-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(180deg, #eff7ff 0%, #dcecff 100%);
}

.landing-v3 .about-icon-svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #2377f3;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-v3 .about-body h2 {
  margin: 2px 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--text-main);
}

.landing-v3 .about-body p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.landing-v3 .about-body p + p {
  margin-top: 8px;
}

/* -----------------------------
   PC 調整
----------------------------- */

@media (min-width: 700px) {
  .landing-wrap,
  .landing-shell,
  .placeholder-wrap {
    padding: 28px 24px 40px;
  }

  .hero {
    padding: 34px 34px 30px;
  }

  .hero-title {
    font-size: clamp(4.2rem, 8vw, 6.2rem);
  }

  .hero-actions {
    max-width: 420px;
  }

  .panel,
  .placeholder-card {
    padding: 24px 24px;
  }

  .landing-v3 .landing-shell {
    width: min(100%, 520px);
    padding: 28px 14px 40px;
  }

  .landing-v3 .landing-cta-card {
    width: calc(100% - 28px);
    margin: -20px auto 0;
    padding: 14px;
  }

  .landing-v3 .about-card {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 20px 18px;
  }

  .landing-v3 .about-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .landing-v3 .about-icon-svg {
    width: 42px;
    height: 42px;
  }

  .landing-v3 .about-body h2 {
    font-size: 1.28rem;
  }

  .login-page .hero::after {
    width: 220px;
    height: 260px;
    top: 26px;
    right: -10px;
  }
}
