/*
Theme Name: Crowdroid AI Web Marketing
Theme URI: https://crowdroid.example.com/
Author: OpenAI Codex
Author URI: https://openai.com/
Description: CrowdroidのLPをベースにしたWordPressテーマ。フロントページLPとお知らせ詳細ページを含みます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: crowdroid-ai-web-marketing
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  letter-spacing: 0.02em !important;
}

h2,
h3,
h4 {
  line-height: 1.15 !important;
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-content {
  position: relative;
  z-index: 1;
}

.page-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 205, 140, 0.35), transparent 28%),
    radial-gradient(circle at 78% 40%, rgba(30, 62, 125, 0.24), transparent 32%),
    linear-gradient(180deg, #09090d 0%, #05060a 42%, #070814 100%);
}

.night-field {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 205, 140, 0.22), transparent 24%),
    radial-gradient(circle at 78% 40%, rgba(25, 54, 108, 0.22), transparent 28%),
    linear-gradient(180deg, #050507 0%, #06070d 35%, #0a0f21 100%);
}

.night-field::before,
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.7px),
    radial-gradient(circle at 24% 52%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.5px),
    radial-gradient(circle at 44% 30%, rgba(255, 255, 255, 0.25) 0 1px, transparent 1.7px),
    radial-gradient(circle at 66% 40%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.7px),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.6px),
    radial-gradient(circle at 16% 82%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.7px);
  opacity: 0.6;
  pointer-events: none;
}

.crowdroid-video {
  opacity: 0;
}

.crowdroid-nav-logo {
  transition: backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease, background 0.25s ease;
}

.crowdroid-nav-logo.is-scrolled {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.08);
}

.crowdroid-nav-shell {
  transition: backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease, background 0.25s ease;
}

.crowdroid-nav-shell.is-scrolled {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.08);
}

.hero-cta-glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(64px) saturate(1.35);
  -webkit-backdrop-filter: blur(64px) saturate(1.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.28);
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-cta-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.crowdroid-entry-content > *:first-child {
  margin-top: 0;
}

.crowdroid-entry-content > *:last-child {
  margin-bottom: 0;
}

.crowdroid-entry-content p,
.crowdroid-entry-content li {
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.crowdroid-entry-content h2,
.crowdroid-entry-content h3,
.crowdroid-entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.crowdroid-entry-content a {
  color: #fff;
  text-decoration: underline;
}

.crowdroid-entry-content ul,
.crowdroid-entry-content ol {
  padding-left: 1.2rem;
}

.crowdroid-cf7 .wpcf7-form-control-wrap {
  display: block;
}

.crowdroid-cf7 input[type="text"],
.crowdroid-cf7 input[type="email"],
.crowdroid-cf7 input[type="url"],
.crowdroid-cf7 textarea,
.crowdroid-cf7 select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1rem;
  color: #fff;
  font: inherit;
  outline: none;
}

.crowdroid-cf7 textarea {
  min-height: 9rem;
  resize: vertical;
}

.crowdroid-cf7 input::placeholder,
.crowdroid-cf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.crowdroid-cf7 label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.crowdroid-cf7 .wpcf7-submit {
  display: inline-flex;
  width: auto;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.9rem 1.5rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 767px) {
  .crowdroid-mobile-square {
    border-radius: 1rem !important;
  }
}
