@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&family=Noto+Sans+JP:wght@300;400;500&display=swap');

:root {
  --sky-top: #bfe4f5;
  --sky-bottom: #eef8fc;
  --ink: #1f3a4d;
  --ink-soft: #52707e;
  --cloud: #ffffff;
  --sun-accent: #ff9d6c;
  --line: rgba(31, 58, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--sky-top);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---- ヘッダー ---- */
.site-header {
  position: relative;
  z-index: 1;
  padding: 3rem 6vw 1.5rem;
}

.site-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--sun-accent);
  border-radius: 2px;
}

/* ---- メインレイアウト:動画 左 / テキスト 右 ---- */
.main-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 2rem;
  align-items: stretch;
  padding: 0 3vw 4rem;
  max-width: 1800px;
  height: 75vh;
  min-height: 560px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.video-panel {
  background: var(--cloud);
  border-radius: 28px;
  padding: 0.75rem;
  box-shadow: 0 20px 40px -20px rgba(31, 58, 77, 0.35);
  display: flex;
}

.video-panel video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  background: #000;
  object-fit: cover;
}

.text-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 2.2rem;
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.text-panel h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  letter-spacing: 0.08em;
}

.text-panel p {
  font-size: 0.98rem;
  line-height: 1.9;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 1rem;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

/* ---- ログインページ ---- */
.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.8rem 2.6rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -24px rgba(31, 58, 77, 0.4);
}

.login-card h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.login-card .sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
  font-weight: 300;
}

.login-card input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.login-card input[type="password"]:focus {
  border-color: var(--sun-accent);
}

.login-card button {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.login-card button:hover {
  background: var(--sun-accent);
}

.login-card button:active {
  transform: scale(0.98);
}

.login-card .error {
  color: #c0522f;
  font-size: 0.85rem;
  margin-top: 1rem;
  font-weight: 400;
}
