:root {
  --header: #000000;
  --page: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --max: 1100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

* {
  box-sizing: border-box;
}



body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.6;
}

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--page);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.skip:focus {
  left: 12px;
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: none;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  padding: 6px 8px;
  position: relative;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.nav a:focus-visible {
  outline: none;
}

.hero {
  padding: 54px 0 30px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-copy {
  text-align: center;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 920px) {
  .brand {
    min-width: unset;
  }
}

.eyebrow {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

/* ライセンス・プライバシーページのh1 */
.section h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 20px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: #656bad;
  color: var(--text);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;

  position: relative;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  outline: none;
  overflow: hidden; /* はみ出た光を隠す */
  z-index: 1;
}

/* 縁を回るグラデーション（疑似要素） */
.btn::before {
  content: "";
  position: absolute;
  /* ボタンより大きくして、回転したときに角が切れないようにする */
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    transparent,
    transparent,
    #FFFFFF
  ); /* 最後の色が光る部分になります */
  animation: rotate-border 2s linear infinite;
  z-index: -2;
}

/* ボタンの中面を隠すための背景（疑似要素） */
.btn::after {
  content: "";
  position: absolute;
  /* 境界線の太さ */
  inset: 1px;
  background: #201f33;
  border-radius: 13px; /* 外側の角丸(14px)からinset(1px)引いた値 */
  z-index: -1;
}

/* 回転アニメーションの定義 */
@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn.primary {
  background: #656bad;
  color: #ffffff;
}
.btn.ghost {
  background: transparent;
}

.meta {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.meta li {
  margin: 6px 0;
}

.hero-screenshot {
  background: var(--page);
  overflow: hidden;
  margin-top: 8px;
  text-align: center;
  padding: 0 16px;
}

.shot {
  background: rgba(255, 255, 255, 0.06);
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1196px;
}

.card-note {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 46px 0;
}
.section.alt {
  background: var(--page);
}

.license-item {
  padding: 12px 0;
}
.license-item + .license-item {
  border-top: 1px solid var(--border);
}
.license-item h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.license-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}



h2 {
  margin: 0 0 12px;
  letter-spacing: -0.3px;
  font-size: 26px;
}

.section-header
{
    text-align: center;
}

.section-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 920px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  border: 1px solid var(--border);
  background: var(--page);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  line-height: 1;
}
.feature-icon--camera {
  transform: translateY(-8px);
}
.feature-icon--Illustration {
  transform: translateY(-4px);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.formats {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 920px) {
  .formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.formats li {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--page);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
}
.formats li.format-ext {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.format-name {
  font-weight: 700;
}
.format-req {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}
.format-req:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}


.shortcuts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 920px) {
  .shortcuts {
    grid-template-columns: 1fr;
  }
}
.shortcuts li {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--page);
  color: #ffffff;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.shortcuts code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.download-grid {
  display: flex;
  justify-content: center;
}
@media (max-width: 920px) {
  .download-grid {
    flex-direction: column;
    align-items: center;
  }
}
.download-card {
  background: var(--page);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.download-card.info {
  background: var(--page);
}
.download-card h3 {
  margin: 0 0 8px;
}
.download-card p {
  margin: 0 0 12px;
  color: var(--muted);
}
.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.small {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.muted {
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 18px;
  background: var(--header);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-right a {
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}
.footer-right a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.fineprint {
  color: #ffffff;
  font-size: 12px;
  padding-top: 6px;
}



/* Demo Video Grid styles */
.hero-videos {
  padding: 16px;
  background: var(--page);
}

.hero-videos-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.video-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.2s ease;
}

.video-item:hover .video-thumb-wrapper,
.video-item:focus-visible .video-thumb-wrapper {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: none;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.video-item:hover img,
.video-item:focus-visible img {
  opacity: 1;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.video-item:hover .play-overlay,
.video-item:focus-visible .play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.play-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 11px;
  padding-left: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, color 0.2s ease;
}

.video-item:hover .play-icon,
.video-item:focus-visible .play-icon {
  transform: scale(1.15);
  background: #ff0000;
  color: #ffffff;
}

.video-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.video-item:hover .video-title,
.video-item:focus-visible .video-title {
  color: #ffffff;
}

/* Video Modal styles */
.video-modal-content {
  width: min(800px, 90%);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Functions Grid styles */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.functions-grid li {
  padding: 12px 16px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.functions-grid li::before {
  content: "✓";
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  .functions-grid {
    grid-template-columns: 1fr;
  }
}

/* プライバシーポリシーページ */
.privacy-policy {
  line-height: 1.75;
}

.privacy-policy h1 {
  margin: 0 0 24px;
  line-height: 1.3;
}

.privacy-policy h2 {
  margin: 32px 0 12px;
  line-height: 1.4;
}

.privacy-policy p {
  margin: 0 0 16px;
  line-height: 1.75;
}

.privacy-policy ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.privacy-policy li {
  margin-bottom: 6px;
  line-height: 1.75;
}

.privacy-policy li:last-child {
  margin-bottom: 0;
}

.privacy-policy p.small {
  margin: 8px 0 0;
  font-size: 14px;
}

