: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;
}

.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;
}

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;
}

.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.ghost {
  color: var(--ink);
  border-color: #cbd5e1;
  background: #fff;
}

.caption {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 60ch;
}

.hero-art {
  position: relative;
  min-height: 320px;
}

.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;
}

.hero-card {
  position: absolute;
  right: 18%;
  top: 95px;
  width: 260px;
  border: 1px solid #f5d9b9;
  border-radius: 22px;
  background: color-mix(in srgb, #fff 92%, transparent);
  backdrop-filter: blur(4px);
  padding: 1rem;
  box-shadow: 0 20px 38px rgba(17, 24, 39, 0.12);
}

.hero-card p,
.hero-card small {
  margin: 0;
  color: var(--muted);
}

.hero-card strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--primary-strong);
}

.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;
}

/* ===== 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) {
  .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;
}

@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;
  }

  .hero-art {
    min-height: 280px;
  }

  .hero-card {
    right: 10%;
  }

  .features,
  .scenes {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot.wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .hero-card {
    right: 6%;
    width: min(260px, 88vw);
  }
}
