/* futuristic.css - 近未来感のあるPC/スマホ両対応デザイン */

:root {
  --primary: #0ff1ce;
  --secondary: #23272f;
  --bg: #10131a;
  --card-bg: #181c25;
  --accent: #ff00a8;
  --text: #e6e6e6;
  --radius: 18px;
  --shadow: 0 4px 24px 0 rgba(0,255,255,0.08);
  --font-main: 'Orbitron', 'Segoe UI', Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  letter-spacing: 0.02em;
}

header, nav, footer {
  background: var(--secondary);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  position: relative;
}

#header-auth-area {
  position: absolute;
  top: 1.5em;
  right: 2em;
  display: flex;
  align-items: center;
  gap: 0.7em;
  z-index: 10;
}

#header-username {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1em;
}

#header-menu-container {
  display: flex;
  align-items: center;
  position: relative;
}

#header-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 36px;
  width: 36px;
}

#header-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: background 0.2s;
}

#header-menu-dropdown {
  display: none;
  position: absolute;
  top: 2.5em;
  right: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 140px;
  z-index: 100;
  border: 1px solid var(--primary);
}

.header-menu-item {
  display: block;
  padding: 0.8em 1.2em;
  color: var(--primary);
  text-decoration: none;
  font-size: 1em;
  transition: background 0.15s, color 0.15s;
}

.header-menu-item:hover {
  background: var(--primary);
  color: var(--bg);
}

#header-logout-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--accent);
  padding: 0.8em 1.2em;
  text-align: left;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.15s, color 0.15s;
}

#header-logout-btn:hover {
  background: var(--accent);
  color: #fff;
}

h1, h2, h3, h4, h5 {
  color: var(--primary);
  font-family: var(--font-main);
  text-shadow: 0 2px 8px #0ff1ce44;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}

.container, .main {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.card, .panel, .form-box {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #0ff1ce22;
}

input, select, textarea, button {
  background: #181c25;
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.7em 1em;
  margin-bottom: 1em;
  font-size: 1em;
  font-family: var(--font-main);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 8px var(--primary);
}
button {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #10131a;
  font-weight: bold;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 12px #0ff1ce33;
  transition: background 0.2s, color 0.2s;
}
button:hover {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
}

.register-form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 350px;
  margin: 0 auto 1.5em auto;
}
.register-form-vertical input,
.register-form-vertical button {
  width: 100%;
  box-sizing: border-box;
}

.login-form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 350px;
  margin: 0 auto 1.5em auto;
}
.login-form-vertical input,
.login-form-vertical button {
  width: 100%;
  box-sizing: border-box;
}

.center-title {
  text-align: center;
  margin-bottom: 1.2em;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  padding-right: 2.5em;
}
.toggle-password-visibility {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.toggle-password-visibility:focus,
.toggle-password-visibility:hover {
  opacity: 1;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.toggle-password-visibility svg {
  display: block;
}

.profile-view-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5em 2em;
  margin-bottom: 1.5em;
  font-size: 1.1em;
}
.profile-view-box div {
  margin-bottom: 0.7em;
}
.profile-edit-form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 350px;
  margin: 0 auto 1.5em auto;
}
.profile-edit-form-vertical input,
.profile-edit-form-vertical button {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .container, .main {
    padding: 1rem;
    margin: 1rem;
  }
  header, nav, footer {
    padding: 0.7rem 1rem;
  }
  h1 {
    font-size: 1.7em;
  }
  #header-auth-area {
    top: 1em;
    right: 1em;
    font-size: 0.95em;
  }
  #header-menu-dropdown {
    min-width: 110px;
    right: 0;
    top: 2.2em;
  }
}

::-webkit-scrollbar {
  width: 8px;
  background: #23272f;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
}
