:root {
  --bg: #fff8ef;
  --ink: #111827;
  --muted: #4b5563;
  --line: #eadfcf;
  --primary: #c2410c;
  --primary-strong: #9a3412;
  --mint: #0f766e;
  --card: #fffefb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 15% 12%, #ffe5c3 0%, transparent 30%),
    radial-gradient(circle at 82% 5%, #d7f9f2 0%, transparent 25%),
    linear-gradient(180deg, #fff8ef 0%, #fffdf7 55%, #fff8ef 100%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.6;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(#000 0.4px, transparent 0.4px);
  background-size: 5px 5px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5vw;
  background: #215bab;
  border-bottom: 2px solid #c4a15a;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 28px; /* ロゴの高さに合わせて調整 */
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: #c4a15a;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #c4a15a;
  font-weight: 700;
  font-size: 0.9rem;
}

.lang-switch a {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.lang-switch a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch .current {
  background: rgba(196, 161, 90, 0.18);
  border-color: rgba(196, 161, 90, 0.7);
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: 78vh;
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0.6rem;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(130deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 10px 22px rgba(154, 52, 18, 0.24);
}

.btn.accent {
  color: #083344;
  background: linear-gradient(130deg, #99f6e4 0%, #5eead4 100%);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.btn.ghost {
  color: var(--ink);
  border-color: #cbd5e1;
  background: #fff;
}

.caption {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 60ch;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
}

.hero-ambient-image {
  display: block;
  width: min(460px, 100%);
  height: auto;
  opacity: 0.94;
  filter: drop-shadow(0 24px 42px rgba(17, 24, 39, 0.14));
  pointer-events: none;
  user-select: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  animation: float 6s ease-in-out infinite;
}

.orb-a {
  width: 240px;
  height: 240px;
  left: 8%;
  top: 0;
  background: linear-gradient(150deg, #ffedd5 0%, #fdba74 100%);
}

.orb-b {
  width: 190px;
  height: 190px;
  right: 10%;
  top: 130px;
  background: linear-gradient(150deg, #99f6e4 0%, #2dd4bf 100%);
  animation-delay: 0.8s;
}

.section {
  padding: 2rem 0;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scenes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.05);
  animation: rise 0.56s ease both;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

/* ===== Step Flow ===== */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .step-flow {
    flex-direction: row;
    align-items: stretch;
  }
}

.step-card {
  flex: 1;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.03);
}

.step-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.step-badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-top: 1rem;
}

.small-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ===== Downloads ===== */

.downloads-intro {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.download-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.04);
}

.download-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.12);
}

.download-head {
  margin-bottom: 0.75rem;
}

.download-head h3 {
  margin-top: 0.55rem;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.download-badge {
  display: inline-block;
  background: #ecfeff;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.download-badge.soon {
  background: #f1f5f9;
  color: var(--muted);
}

.download-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.download-meta {
  font-size: 0.9rem;
}

.download-link {
  width: 100%;
  margin-top: 0.35rem;
}

/* ===== Plans / Pricing Cards ===== */

.plans-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--muted);
}

.plan-cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.03);
}

.plan-card.premium {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.08);
}

.plan-badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.premium-badge {
  background: #ffedd5;
  color: var(--primary-strong);
}

.plan-card h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.plan-card h3 small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: normal;
}

.plan-card .price {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plan-card .price strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-strong);
  line-height: 1.2;
}

.plan-card .price small {
  color: var(--muted);
  font-weight: bold;
}

.plan-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  flex-grow: 1;
}

.plan-details li {
  margin-bottom: 0.8rem;
  padding-left: 1.3rem;
  position: relative;
}

.plan-details li::before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.plan-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  background: #f8fafc;
  padding: 0.8rem;
  border-radius: 8px;
}

.feature-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature-block.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1 1 300px;
}

.feature-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-strong);
}

.feature-block .shot {
  flex: 1 1 200px;
  margin: 0;
  grid-column: auto;
}

.feature-block .shot.wide {
  flex: 2 1 400px;
}

.delivery-intro {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.delivery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .download-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-intro {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.shot {
  margin: 0;
  grid-column: span 4;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #3b82f6;
  background: #e2e8f0;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.shot.wide {
  grid-column: span 6;
}

.shot img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: #e2e8f0;
  pointer-events: none; /* 画像検索アイコン等のブラウザ独自機能を無効化 */
}

.shot figcaption {
  padding: 0.58rem 0.7rem;
  font-size: 0.87rem;
  color: var(--muted);
  border-top: 1px solid #cbd5e1;
  background: #fff;
  pointer-events: none;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.lightbox img {
  display: block;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  pointer-events: none; /* 拡大後も画像検索アイコンを出さない */
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #bbb;
}

.terminology .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.terminology .chips p {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
}

.terminology .chips span {
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #f1e7d8;
  vertical-align: top;
}

th {
  background: #fff7ea;
  font-weight: 700;
}

.notice ul {
  margin: 0;
  padding-left: 1.2rem;
}

.notice li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.site-footer {
  background: #215bab;
  color: #c4a15a;
  text-align: center;
  padding: 2rem 5vw;
  font-size: 0.93rem;
  border-top: 2px solid #c4a15a;
  margin-top: 3rem;
}

.site-footer p {
  margin: 0.4rem 0;
}

.subpage-main {
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: stretch;
  margin: 1rem 0 1.8rem;
}

.page-hero-card,
.info-card,
.purchase-card,
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

.page-hero-card {
  padding: 1.5rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #ecfeff;
  color: var(--mint);
  font-weight: 700;
  font-size: 0.84rem;
}

.hero-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-points li {
  margin-bottom: 0.45rem;
}

.price-stack {
  display: grid;
  gap: 1rem;
}

.price-box {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7ea 0%, #fff 100%);
  border: 1px solid #f5d8b0;
}

.price-box strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary-strong);
}

.price-box span,
.price-box small {
  color: var(--muted);
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.purchase-card,
.result-card,
.info-card {
  padding: 1.35rem;
}

.purchase-card h2,
.info-card h2,
.result-card h2 {
  margin-bottom: 0.85rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #d6d3d1;
  font: inherit;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(194, 65, 12, 0.18);
  border-color: var(--primary);
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-box {
  border: 1px dashed #d6d3d1;
  border-radius: 16px;
  padding: 1rem;
  background: #fffdfa;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f3ede3;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row strong {
  color: var(--primary-strong);
}

.alert {
  display: none;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.alert.show {
  display: block;
}

.alert.info {
  background: #eff6ff;
  color: #1d4ed8;
}

.alert.success {
  background: #ecfdf5;
  color: #047857;
}

.alert.error {
  background: #fef2f2;
  color: #b91c1c;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-code {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #f5f5f4;
  font-family: Consolas, monospace;
  font-size: 0.92rem;
}

.key-display {
  display: block;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px dashed #c4a15a;
  border-radius: 14px;
  background: #fff7ea;
  font-family: Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.status-list {
  display: grid;
  gap: 0.8rem;
}

.status-item {
  border-radius: 14px;
  background: #fffdfa;
  border: 1px solid #eee2cf;
  padding: 0.95rem 1rem;
}

.status-item h3 {
  margin-bottom: 0.35rem;
}

.status-item p {
  margin: 0;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.muted-box {
  border-radius: 16px;
  padding: 1rem;
  background: #f8fafc;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.8rem;
    padding-bottom: 0;
  }

  .hero-art {
    margin-top: 0.5rem;
    padding-top: 0;
    padding-bottom: 1.5rem;
  }

  .hero-ambient-image {
    width: min(440px, 100%);
  }

  .features,
  .scenes {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot.wide {
    grid-column: span 1;
  }

  .page-hero,
  .purchase-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .lang-switch {
    flex-wrap: wrap;
  }

  .hero-art {
    width: 100%;
    overflow: hidden;
  }

  .hero-ambient-image {
    display: block;
    width: min(340px, 92%);
    margin: 0 auto;
    filter: none;
  }
}
