@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #E94E4E;
  --primary-dark: #B03535;
  --background: #2B0A0A;
  --panel: #4A1F1F;
  --panel-transparent: rgba(74, 31, 31, 0.7);
  --border: rgba(255, 255, 255, 0.12);
  --text: #FFFFFF;          
  --text-secondary: rgba(255, 255, 255, 0.8);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before, body::after {
  content: '';
  position: fixed;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.6;
  border-radius: 50%;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #E94E4E, transparent 50%);
  top: -15%;
  left: -10%;
  animation-name: move-aurora-1;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #FF86AC, transparent 50%);
  bottom: -15%;
  right: -15%;
  animation-name: move-aurora-2;
}

@keyframes move-aurora-1 {
  from { transform: translate(-20%, -20%) rotate(0deg); }
  to { transform: translate(20%, 20%) rotate(90deg); }
}

@keyframes move-aurora-2 {
  from { transform: translate(20%, 20%) rotate(0deg); }
  to { transform: translate(-20%, -20%) rotate(-90deg); }
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.navbar {
  background-color: rgba(43, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(43, 10, 10, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 0 15px rgba(233, 78, 78, 0.8);
  margin: 0;
}

nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.hero {
  padding: 200px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(45deg, #FF4F4F, #E94E4E, #FF86AC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 50px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.hero-buttons .btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-buttons .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 78, 78, 0.6);
}
.hero-buttons .btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(233, 78, 78, 0.8);
}

.hero-buttons .btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.hero-buttons .btn-secondary:hover {
  background: var(--border);
  color: var(--text);
  border-color: transparent;
}

.btn i {
  transition: transform 0.2s ease-in-out;
}
.btn:hover i {
  transform: rotate(-5deg) scale(1.1);
}

.hero::before, .hero::after {
  display: none;
}

.tutorial-section {
  padding: 100px 0;
  background-color: var(--background);
}

.tutorial-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-link.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233, 78, 78, 0.3);
}

.tutorial-content {
  display: none;
}

.tutorial-content.active {
  display: block;
}

.youtube-embed-text {
  text-align: center;
  color: var(--text);
  max-width: 700px;
  margin: 30px auto 20px;
  font-family: 'Inter', sans-serif;
}

.youtube-embed-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.youtube-embed-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}


.youtube-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 700px;
  margin: 40px auto 60px;
}

.video-container {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(233, 78, 78, 0.3);
  overflow: hidden;
}


.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


.tutorial-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.browser-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-browser {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-browser:hover {
  background: var(--border);
  color: var(--primary);
}

.features-section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--panel-transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(80% 80% at top left, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(233, 78, 78, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
  opacity: 0.15;
}

.feature-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 78, 78, 0.15);
  border-radius: 50%;
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-description {
  color: var(--text-secondary);
}

.community-section {
  padding: 100px 0;
  text-align: center;
}

.community-content .section-title {
  font-size: 42px;
}

.community-content .hero-subtitle {
  margin-bottom: 40px;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 12px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background-color: var(--border);
  border-color: var(--text-secondary);
}

.docs-section {
  padding: 100px 0;
  background-color: #3c1414;
}

.docs-content {
  background-color: var(--panel);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.docs-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary);
}

.docs-content h4 {
  font-size: 20px;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 10px;
}

.docs-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.docs-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-content pre {
  background-color: var(--background);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ffdede;
}

.docs-content code {
  font-family: 'Courier New', Courier, monospace;
  color: #ffc7c7;
}

.inline-code {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.faq-section {
  padding: 100px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

footer {
  text-align: center;
  padding: 50px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.getting-started-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--text);
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(233, 78, 78, 0.6);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 50px;
  text-align: center;
}

.getting-started-btn:hover {
  box-shadow: 0 12px 40px rgba(233, 78, 78, 0.85);
  transform: translateY(-4px) scale(1.05);
}

.logo-button {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text);
  text-shadow:
    0 0 6px rgba(233, 78, 78, 0.5),
    0 0 12px rgba(233, 78, 78, 0.3);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  padding: 4px 12px;
  transition: var(--transition);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-block;
  position: relative;
  box-shadow: none;
  border: none;
  outline: none;
}

.logo-button:hover,
.logo-button:focus {
  color: var(--primary);
  text-shadow:
    0 0 10px rgba(233, 78, 78, 1),
    0 0 20px rgba(233, 78, 78, 0.7),
    0 0 30px rgba(233, 78, 78, 0.5);
  box-shadow: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none !important;
}

.cmd-box {
  display: flex;
  align-items: center;
  gap: 20px; /* コマンドとボタンの間の余白 */
  background-color: #000000;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Consolas', 'Courier New', monospace;
  color: #ffffff;
  box-shadow: 0 0 12px #00ff00aa;
  user-select: text;
}

.cmd-commands {
  flex-grow: 1;
}

.cmd-commands pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.4;
}

#copyButton {
  height: 60px; /* コマンドの高さに合わせる */
  align-self: center; /* ボタンを縦中央に */
  padding: 0 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  transition: var(--transition);
  user-select: none;
}

#copyButton:hover {
  background: var(--border);
  color: var(--primary);
}

code {
  background: #111;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  white-space: pre;
}

.notice-bar {
  background-color: #FFD700;
  color: #000;
  text-align: center;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.notice-bar.hidden {
  opacity: 0;
  visibility: hidden;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
}

.cmd-green {
  color: #00ff00;
  font-weight: bold;
}

.cmd-path {
  color: #ccc;
}
